8 Answers, 1 is accepted
0
Accepted
Hi Michael,
At this point Kendo UI Map does not raise a click events for the markers. As a possible workaround I can suggest displaying markers.tooltip on "click" and attach a handler to the show event:
Regards,
Iliana Nikolova
Telerik
At this point Kendo UI Map does not raise a click events for the markers. As a possible workaround I can suggest displaying markers.tooltip on "click" and attach a handler to the show event:
$(
"#map"
).kendoMap({
//....
markers: [{
//....
tooltip: {
content:
"Austin, TX"
,
showOn:
"click"
,
show: onShow
}
}]
});
function
onShow(){
//....
}
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Michael
Top achievements
Rank 1
answered on 14 May 2014, 11:09 PM
Thanks IIiana :)
0
Chris
Top achievements
Rank 1
answered on 08 Oct 2014, 01:58 PM
Iliana,
does this work with 'type: "tile"' types or ONLY 'type: "shape"'
see my http://dojo.telerik.com/@wcaulton/iLOCA using tile but no location coordinates showing.
does this work with 'type: "tile"' types or ONLY 'type: "shape"'
see my http://dojo.telerik.com/@wcaulton/iLOCA using tile but no location coordinates showing.
0
Hi Warren,
I am glad to inform you that markerClick event is already available. For your convenience here is the updated example.
Regards,
Iliana Nikolova
Telerik
I am glad to inform you that markerClick event is already available. For your convenience here is the updated example.
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
0
Hi Warren,
I am not quite sure what the expected info is, however in the markerClick event you have the marker instance. Please take a look at this updated example and let me know if I am missing something.
Regards,
Iliana Nikolova
Telerik
I am not quite sure what the expected info is, however in the markerClick event you have the marker instance. Please take a look at this updated example and let me know if I am missing something.
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Tarik
Top achievements
Rank 1
answered on 21 Oct 2020, 07:26 PM
Hi, Im using markerClick, but I see no way of getting to the dataItem. I want to get to the source data bound to the marker. How do I do this?
0
Hello Tarik,
To get the dataItem of the marker, use the e.marker parameter of the event handler. More information about this is available here - https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/map/events/markerclick
For example, check this Dojo - https://dojo.telerik.com/ediXeDaL
I hope this helps.
Regards,
Preslav
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.