Hi,
I am trying to add hover over tooltip to my application, but once I add code for tooltip, the dialog is not showing up and now even the circle that is used to draw a buffer and select features disappears, here is what I have so far, if anyone take a look and point out what is missing or needs to be corrected, that will be great, thanks!
http://jsfiddle.net/JSSR/b2cjcdoc/
Solved! Go to Solution.
Here's the updated Fiddle.
Ken,
Thanks for looking at my application and the quick reply, the tooltip is showing up, but the circle still disappears, is there a way where we can have the circle to stay up once it selects the features, so the user can hover around different points to see the FacilityIDs .
Thanks.
Your issue is that you add the circle to your map.graphics layer, which is also where the highlightGraphics are added. When you add the mouse out event listener with this line
map.graphics.on("mouse-out", closeDialog);
that also applies to the circle graphic you've added. And in the closeDialog function, you clear the map.graphics layer.
You should add the circle to a different graphics layer.
Here's the updated Fiddle.
Ken,
Thanks for the help and explaining the problem, that helps a lot to understand why it I was not getting the desired results.