markerDefaults.tooltip.template String|Template
The template which renders the tooltip content.
The fields which can be used in the template are:
- location - the marker location (
kendo.dataviz.map.Location
instance) - marker - the marker instance
Setting a template disables the content option.
Example - set tooltip template
<div id="map"></div>
<script>
$("#map").kendoMap({
layers: [{
type: "tile",
urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
attribution: "© OpenStreetMap"
}],
markerDefaults: {
tooltip: {
template: "Lon:#= location.lng #, Lat:#= location.lat #"
}
},
markers: [{
location: [42, 27]
}, {
location: [40, 20]
}]
});
</script>