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.
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
The GraphicsLayer has an onMouseOver event (doc). Not sure if that's what you're looking for. |
|||
|
|
|
dojo.connect(yourLayer, "onMouseOver", function(evt) { .... map.setMapCursor("pointer"); } dojo.connect(map.graphics, "onMouseOut", function(evt) { map.graphics.clear(); map.setMapCursor("default"); } |
|||
|
|