Edit this page

markers.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>
        layers: [{
            type: "tile",
            urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        markers: [{
            location: [42, 27],
            tooltip: {
                template: "Lon:#= location.lng #, Lat:#= location.lat #"
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article