In this section: |
This section lists and describes the JavaScript functions that are available from the Flexmapviewer.jsp file.
Function:
jsRunFex(fexids,disableZoom,parms,callBack,geometry,geometrySymbol, spatialRelationship,buffer,bufferUnits,bufferType,bufferSymbols,options)
The following table lists and describes the parameters for the jsRunFex function.
Parameters | Type | Description |
---|---|---|
fexId | String | A comma delimited list of FEX IDs to execute. |
disableZoom | Boolean | Disables or enables the Zoom to features setting if it is on or off in the FEX. |
parms | Object | A JavaScript object that contains values to pass along to the FEX, (&ers) |
callback | String | Call to a JavaScript function, once the current FEX is executed. |
geometry | Object | An array of coordinates. |
geometrySymbol | String | Symbol ID to draw geometry. |
spatialRelationship | String | Spatial filtering criteria needed to perform selections from a layer. Select one of the following values:
|
pbuffers | Number | Distances to be used for buffering. |
pbufferUnits | Number | Distance units for buffering. The default is 9002, feet. |
pbufferType | String | Type of buffering. |
bufferSymbols | String | List of symbol IDs for each buffer distance. The default is null. |
options | String | Buffering options:
|
Function:
jsSetLayerVisible(callBack,fexids,syntheticLayerIds,visible)
The following table lists and describes the parameters for the jsSetLayerVisible function.
Parameters | Type | Description |
---|---|---|
callBack | String | Call to a JavaScript function, once the current FEX is executed. |
fexIds | String | A comma delimited list of FEX IDs. |
syntheticLayerIds | String | A list of synthetic layer IDs as defined in the esriinfo file. |
visible | Boolean | Disables or enables synthetic layers. |
Function:
jsClearMap(callBack,fexids,clearSelect,clearBuffer)
The following table lists and describes the parameters for the jsClearMap function.
Parameters | Type | Description |
---|---|---|
callBack | String | Call to a JavaScript function, once the current FEX is executed. |
fexIds | String | A comma delimited list of FEX IDs after the function. |
clearSelect | Boolean | Clears selected features if set to true. |
clearBuffer | Boolean | Clears buffered zones if set to true. |
Function:
jsRunFex2(fexids,disableZoom,parms,callBack,shapeKey)
The following table lists and describes the parameters for the jsRunFex2 function.
Parameters | Type | Description |
---|---|---|
callBack | String | Call to a JavaScript function, once the current FEX is executed. |
fexIds | String | A list of FEX IDs to execute. |
disableZoom | Boolean | Disables or enables the Zoom to features setting if it is enabled in the FEX. |
parms | Object | A JavaScript object that contains values to pass along to the FEX, (&ers). |
shapekey (required) | String | Internal key value to pass a shape. |
Function:
jsSetMapExtent2(geometry)
The following table lists and describes the parameters for the jsSetMapExtent2 function.
Parameters | Type | Description |
---|---|---|
geometry | Object | An array of coordinates. |
WebFOCUS |