undefined

API Docs for: 5.4.1
Show:

TmplUtil Class

A set of functions that can be accessed within templates

Imports RAMP Modules:

GlobalStorage

Methods

getFeatureName

(
  • fData
  • layerConfig
)
String

Given a feature data object return the attribute value for its designed "name" field

Parameters:

  • fData Object

    feature data object

  • layerConfig Object

    layer config for feature

Returns:

String:

imageUrl Url to the features symbology image

getGraphicIcon

(
  • fData
  • layerConfig
)
String

Given a feature data object return the image URL for that feature/graphic object.

Parameters:

  • fData Object

    feature data object

  • layerConfig Object

    layer config for feature

Returns:

String:

imageUrl Url to the features symbology image

getObjectId

(
  • fData
)
Integer

Given a feature data object return the objectid for that item.

Parameters:

  • fData Object

    feature data object

Returns:

Integer:

objectId

getSymbolForLayer

(
  • layerConfig
)
Icon

Gets an array of symbology images to display in the layer selector

Parameters:

  • layerConfig Object

    A layer's config object

Returns:

Icon:

The array of icon(s) to use in layer selector