I'm displaying a map using GeoJson data and would like to display a tooltip when the user moves the mouse over a shape, is this possible?
I'm using the asp.net MVC wrapper and only managed to show tooltips for markers, not shapes.
Thanks!
8 Answers, 1 is accepted
We have not build in MVC configuration for shape's tooltip. But you can try to hook up to the map's shapeMouseEnter event and add a tooltip with the desired output? In shapeMouseLeave you need to hide it.
I hope this helps.
Regards,
Hristo Germanov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

In what shape property should I hook the tooltip? If I try to add it to the "e.shape", I get an error because it has no "width".
In this event you have:
e.originalEvent Object
The source jQuery event instance
Regards,
Hristo Germanov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.


There's no built-in support for tooltips, but I've got a snippet that demonstrates how this can be done for now.
I hope this helps.
Regards,
T. Tsonev
Telerik

Thank you very much, this was extremely helpful! You guys do such a great job supporting us developers with these forums!
I was able to get a tooltip to show properly when I entered each shape on my US map (I am working with ASP MVC).
I was wondering if you had any advice as to showing a legend for a map. I created a tooltip for the map itself with the legend information but I would like something in the map itself. Is this possible?
Thanks,
Justine
The Map doesn't currently offer a built-in legend. I imagine a legend should be a color scale in this scale, right?
Please, file a request for this feature on our UserVoice portal if you have minute.
This will help us gauge the overall interest and prioritize.
Regards,
T. Tsonev
Telerik