The location of the clicked point.
The source widget instance.
The source jQuery event instance
<div id="map"></div>
<script>
$("#map").kendoMap({
zoom: 3,
center: [0, 0],
layers: [{
type: "tile",
urlTemplate: "https://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
attribution: "© OpenStreetMap"
}],
click: function(e) {
e.sender.markers.add({
location: e.location,
tooltip: {
content: "Foo"
}
});
}
});
</script>
<div id="map"></div>
<script>
$("#map").kendoMap({
zoom: 3,
center: [0, 0],
layers: [{
type: "tile",
urlTemplate: "https://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
attribution: "© OpenStreetMap"
}]
});
var map = $("#map").data("kendoMap");
map.bind("click", function(e) {
console.log("You clicked at " + e.location.toString());
});
</script>