zoomEnd

Fired when the map zoom level has changed.

Event Data

e.sender kendo.dataviz.ui.Map

The source widget instance.

e.originalEvent Object

The source jQuery event instance

Example - bind to the map zoomEnd 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"
        }],
        zoomEnd: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
            console.log("zoom end @ " + e.sender.zoom());
        }
    });
</script>

Example - bind to the map zoomEnd 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("zoomEnd", function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
        console.log("zoom end @ " + e.sender.zoom());
    });
</script>
In this article