ThinkGeo.com    |     Documentation    |     Premium Support

Tooltip for feature in WPF-Mapsuite 10.0 or above

Hi everyone,

i want to do a (as i thought) simple task and show a tooltip for features when the user hovers with the mouse over it. There seemed to be a solution in some older Versions, which no longer work, and there seems to be some “dirty” hacks, which i don’t really like (using a mouse move event and then search the nearest feature).

What is the best solution to implement tooltip functionality for a map with 20+feature layers and overall 10000+ features.

Any help is appreciated.

Regards,
Andreas

Hi Andreas,

In WPF our tile is control but the feature in it is only in an image. So if you don’t use spatial query with mouse event, you cannot make it works.

If you don’t want to use spatial query, you can use marker for it, because marker is a control also, and it have the tooltip property, but you cannot build 10000+ control at the same time, that will very slow.

So maybe you need to build markers when you pan or zoom map each time.

Regards,

Ethan