Is there a way to access multiple shapes on the mouse over event? Using the demo below, I'd like to highlight Alaska and the continental US when hovering over one of them.
http://demos.telerik.com/kendo-ui/map/geojson
Thanks,
Mike
2 Answers, 1 is accepted
0
T. Tsonev
Telerik team
answered on 10 Jul 2014, 07:03 AM
Hi,
The existing shapes are accessible through the shape layer drawing surface (e.g. map.layers[0].surface).
I'll provide an alternative for the moment, as this part of the API is still unofficial and subject to change. It will be made public for the next release.
My suggestion is to store a reference to the desired shapes in the shapeCreated event. Those are live objects that will respond to changes in fill, stroke, etc.
Does this make sense?
Regards,
T. Tsonev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Yes, that worked. I was able to create an array of shapes in the shapeCreated event and reference that array in the shapeMouseEnter and shapeMouseLeave events to create the effect we needed.