Sign up ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 7 down vote accepted

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

share|improve this answer
dojo.connect(yourLayer, "onMouseOver", function(evt) {


dojo.connect(, "onMouseOut", function(evt) {;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.