reset

Fired when the map is reset. This typically occurs on initial load and after a zoom/center change.

Event Data

e.sender kendo.dataviz.ui.Map

The source widget instance.

Example - bind to the map reset event on initialization

<div id="map"></div>
<script>
    $("#map").kendoMap({
        zoom: 3,
        center: [0, 0],
        layers: [{
            type: "tile",
            urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        }],
        reset: function() {
            console.log("map reset");
        }
    });
</script>

Example - bind to the map reset event after initialization

<div id="map"></div>
<script>
    $("#map").kendoMap({
        zoom: 3,
        center: [0, 0],
        layers: [{
            type: "tile",
            urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        }]
    });

    var map = $("#map").data("kendoMap");
    map.bind("reset", function(e) {
        console.log("map reset");
    });
</script>
In this article
Not finding the help you need? Improve this article