JavaScript Functions Available From Flexmapviewer.jsp

In this section:

This section lists and describes the JavaScript functions that are available from the Flexmapviewer.jsp file.


Top of page

x
jsRunFex

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, (&ampers)

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:

  • esriGeometryRelationCross
  • esriGeometryRelationIntersection (default)
  • esriGeometryRelationLineTouch
  • esriGeometryRelationOverlap
  • esriGeometryRelationWithin
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:

  • bufferDataInclusive
  • bufferUnionResults
  • dataInclusive



x
jsSetLayerVisible

Function:

jsSetLayerVisible(callBack,fexids,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.

syntheticLayerIds

String

A list of synthetic layer IDs as defined in the esriinfo 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).



x
jsClearMap

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.



x
jsRunFex2

Function:

jsRunFex2(fexids,disableZoom,parms,callBack,shapeKey)

The following table lists and describes the parameters for the jsRunFex2 function.

Parameters

Type

Description

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, (&ampers).

callBack

String

Call to a JavaScript function, once the current FEX is executed.

shapekey

(required)

String

Internal key value to pass a shape.



x
jsSetMapExtent2

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