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?
1 Answer 1
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.
-
1Thanks, 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– geogeogeo2014年08月24日 23:48:11 +00:00Commented Aug 24, 2014 at 23:48
-
1we'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– john gravois2014年08月28日 16:16:13 +00:00Commented Aug 28, 2014 at 16:16
-
@JohnGravois I know you you guys are. I was just venting. Thanks for asking that's nice of you.geogeogeo– geogeogeo2014年09月05日 05:51:38 +00:00Commented Sep 5, 2014 at 5:51
Explore related questions
See similar questions with these tags.