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 |
---|---|---|
fexids | 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:
|
buffers | Number | Distances to be used for buffering. |
bufferUnits | Number | Distance units for buffering. The default is 9002, feet. |
bufferType | 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,mapserviceids:syntheticLayerIds,visible,alpha)
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. |
mapserviceids | String | The unique ID of the map service. |
syntheticLayerIds | String | A list of synthetic layer IDs as defined in the XML definition file. |
visible | Boolean | Disables or enables synthetic layers. |
alpha | Number | Controls the transparency of the layers drawn by WebFOCUS. Values can range from 0 (full transparency) to 1 (no transparency, full visibility). |
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:
jsSetMapExtent2(geometry)
The following table lists and describes the parameter for the jsSetMapExtent2 function.
Parameters | Type | Description |
---|---|---|
geometry | Object | An array of coordinates. |
WebFOCUS |