Saturday, 3 September 2016

How to trigger a hover event for map graphics in ArcGIS Javascript API?


I want to trigger an event when the user hovers over a geometry that they drew. I know how to set up hover events for DOM objects, but not for graphic elements within the map window.



Answer



The GraphicsLayer has an onMouseOver event (doc). Not sure if that's what you're looking for.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...