I created this JSFiddle for an example.

Currently, a user needs to click on the graphic point to see the attribute. How can I make it so the user only needs to hover over the graphic for the popup to open?



Add the graphics to a graphicsLayer, and listen for this layer's mouse-over event to detect when the hover starts. Listen for the mouse-out event to detect when the user's mouse has left the graphic (in which case you may want to close the infoWindow).

There's a sample here which demonstrates this, albeit in a slightly more complicated manner.

  • 1
    Thanks, the graphicsLayer is exactly what I needed. I hate how ESRI wants everyone to use the AMD module, but so many of their samples are still using the legacy module. – geogeogeo Aug 24 '14 at 23:48
  • 1
    we're chipping away at migrating them all to AMD, but there are a LOT of samples. any one in particular you'd like to see upgraded? – john gravois Aug 28 '14 at 16:16
  • @JohnGravois I know you you guys are. I was just venting. Thanks for asking that's nice of you. – geogeogeo Sep 5 '14 at 5:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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