This project has moved. For the latest updates, please go here.

Is it possible to add comments/Tooltips in different points?

Oct 18, 2009 at 2:59 PM

Hi guys,

I want to know if it's possible to add comment boxes in the map(MapImage) (something similar to the Tooltip in .Net). Now my aplication draws symbols and labels but I want to show somothing like a textbox with when the users move the mouse over symbol/label. It's possible to do that? How? I've been searching but i didn't found anything.

Thanks for your help ;)

Oct 19, 2009 at 1:55 PM

Hi Sensifire, there is no built in API for doing this - but it would be straight forward to implement yourself. You would need to:

Add a handler that converts mouseover / mouseout into some kind of hover event.

Query the relevant layer on reciept of the hover event (use provider.ExecuteIntersectionQuery )

Create a control of your choice - populate with relevant data and move to the position on the map (possibly taking into account the position of the feature relative to the viewport and offsetting accordingly)


hth jd