undefined

API Docs for: 5.4.2
Show:

GraphicExtension Class

Module: Map
Parent Module: RAMP

GraphicExtension class containing helper functions for graphic objects, data attribute objects, and the bridging between the two

Imports RAMP Modules:

Dictionary TmplHelper Util Array

Uses RAMP Templates:

templates/point_details_list_Template.json templates/point_details_list_item_Template.json

Methods

findGraphic

(
  • objectId
  • layerId
)
Esri/Graphic

Will find a graphic in a feature layer

Parameters:

  • objectId Integer

    an object id to find

  • layerId String

    a feature layer id containing the graphic

Returns:

Esri/Graphic:

graphic in the layer with the object id

getConfigForFData

(
  • fData
)
Object

Returns the layer config node for a feature data object

Parameters:

  • fData Object

    a feature data object

Returns:

Object:

layer config node

getFDataForGraphic

(
  • graphic
)
Object

Returns the feature data object of the given graphic object

Parameters:

  • graphic Esri/Graphic

Returns:

Object:

feature data object of the given graphic object. undefined if feature data object doesn't exist

getFDataOid

(
  • fData
)
Integer

Returns the object id of the given feature data object

Parameters:

  • fData Object

    a feature data object

Returns:

Integer:

object id for data attribute

getFDataTextContent

(
  • fData
)
Object private

Get popup content for a feature data object

Parameters:

  • fData Object

    a feature data object

Returns:

Object:

popup content for feature data object

getFDataTitle

(
  • fData
)

Returns the content of the name field of the provided feature data object

Parameters:

  • fData Object

    a feature data object

Returns:

getGraphicOid

(
  • graphic
)
Integer

Returns the object id of the given graphic object

Parameters:

  • graphic Esri/Graphic

Returns:

Integer:

object id for the graphic

getGraphicTextContent

(
  • graphic
)
Object private

Get details popup content for a graphic (i.e. a point)

Parameters:

  • graphic Esri/Graphic

Returns:

Object:

popup content for graphic

getGraphicTitle

(
  • graphic
)

Returns the content of the name field of the provided graphic object

Parameters:

  • graphic Esri/Graphic

    a graphic object or a feature object

Returns: