DatagridClickHandler Class
Datagridclick handler class.
Item Index
Methods
_getSymbolConfig
-
layerUrl
-
wmsName
Gets the defined symbology from a layer's web service
Parameters:
Returns:
The defined symbology from the layer definition
getGraphicTitle
-
graphic
Returns the content of the name field of the provided graphic object
Parameters:
-
graphic
Esri/Graphica graphic object or a feature object
Returns:
getLayerConfig
-
graphic
Given a graphic object, returns the config object associated with the graphic's layer.
Parameters:
-
graphic
Esri/Graphica graphic object or a feature object
Returns:
getOid
-
graphic
Returns the oid of the given graphic object
Parameters:
-
graphic
Esri/Graphic
getSymbolForFeature
-
feature
Given a feature object or a graphic object (or any object that has a getLayer method and an attributes field) return the object containing the image URL and legend text for that feature/graphic object.
Parameters:
-
feature
Object
Returns:
The default icon used to represent the feature layer
getSymbolForLayer
-
layer
-
wmsName
Gets the default symbology icon from a layer's web service
Parameters:
Returns:
The default icon from the layer's symbology
getTextContent
-
graphic
Get popup content for a graphic (i.e. a point) This logic is customized per project
Parameters:
-
graphic
Object
Returns:
found graphic object
loadStrings
()
Updates some of the Strings on the HTML page using the config string resources
onDetailDeselect
()
This function is called whenever the "Details" button is deselected (either by the user click on another "Details" button, clicking on another point, or by clicking on an already highlighted "Details" button).
onDetailSelect
-
buttonNode
-
selectedGraphic
This function is called whenever the "Details" button is clicked in the datagrid.
Parameters:
-
buttonNode
JObjectthe "Details" button node
-
selectedGraphic
Object{esri/Graphic} the graphic object associated with the entry in the datagrid
onZoomBack
()
This function is called whenever the user clicks on the "Zoom Back" button.
onZoomCancel
()
This function is called whenever the user deselects the "Zoom To" button (either by the user clicking on another point on the map, or by clicking on another "Zoom To" button)
onZoomCancel
()
Publishes new events when zoomCancel event happens. Following events are published: highlighter/zoomlight-hide datagrid/zoomlightrow-hide
onZoomTo
-
currentExtent
-
zoomToGraphic
This function is called whenever the user clicks on the "Zoom To" button.
Parameters:
-
currentExtent
Esri/geometry/Extentthe current extent of the map
-
zoomToGraphic
Objectgraphic object of the feature to zoom to