FeatureClickHandler Class
Feature click handler class.
The featureClickHandler uses Dojo/Topic to publish centralized global mouse event messages related to feature selection. Any function subscribes to the topic will be able handle the specific event.
Item Index
Methods
_wrapFileCallInPromise
-
readMethod
Helper function for wrapping File API calls in Promise objects. Used for building a series of helpers which call different file read methods.
Parameters:
-
readMethod
Stringa string indicating the FileReader method to call
Returns:
a function which accepts a {File} object and returns a Promise
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:
getOid
-
graphic
Returns the oid of the given graphic object
Parameters:
-
graphic
Esri/Graphic
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
onFeatureDeselect
()
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, or clicking somewhere on the map where is no features present).
onFeatureMouseOut
-
evt
This function is called whenever the user moves the mouse away from a feature being hovered over.
onFeatureMouseOver
-
evt
This function is called whenever the user hovers over a feature on the map when another feature already has been selected.
onFeatureSelect
-
evt
This function is called whenever the feature on the map is clicked/selected by the user. Publish the "Gui/subPanelOpen" message to indicate a feature has been selected. Panel content and Panel event handler information is passed in as the additional object for the event handler.