GraphicExtension Class
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
Item Index
Methods
findGraphic
-
objectId
-
layerId
Will find a graphic in a feature layer
Parameters:
-
objectId
Integeran object id to find
-
layerId
Stringa feature layer id containing the graphic
Returns:
graphic in the layer with the object id
getConfigForFData
-
fData
Returns the layer config node for a feature data object
Parameters:
-
fData
Objecta feature data object
Returns:
layer config node
getFDataForGraphic
-
graphic
Returns the feature data object of the given graphic object
Parameters:
-
graphic
Esri/Graphic
Returns:
feature data object of the given graphic object. undefined if feature data object doesn't exist
getFDataOid
-
fData
Returns the object id of the given feature data object
Parameters:
-
fData
Objecta feature data object
Returns:
object id for data attribute
getFDataTextContent
-
fData
Get popup content for a feature data object
Parameters:
-
fData
Objecta feature data object
Returns:
popup content for feature data object
getFDataTitle
-
fData
Returns the content of the name field of the provided feature data object
Parameters:
-
fData
Objecta feature data object
Returns:
getGraphicOid
-
graphic
Returns the object id of the given graphic object
Parameters:
-
graphic
Esri/Graphic
Returns:
object id for the graphic
getGraphicTextContent
-
graphic
Get details popup content for a graphic (i.e. a point)
Parameters:
-
graphic
Esri/Graphic
Returns:
popup content for graphic
getGraphicTitle
-
graphic
Returns the content of the name field of the provided graphic object
Parameters:
-
graphic
Esri/Graphica graphic object or a feature object