beforeReset

Fired immediately before the map is reset. This event is typically used for cleanup by layer implementers.

Example - handling beforeReset event

<div id="map"></div>
<script>
    $("#map").kendoMap({
        center: [30.268107, -97.744821],
        zoom: 3,
        layers: [{
            type: "tile",
            urlTemplate: "https://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        }],
        beforeReset: function(e) {
            console.log("Map is about to reset");
            // Perform cleanup operations here
        }
    });
</script>

Event Data

e.sender kendo.dataviz.ui.Map

The source widget instance.

In this article
beforeReset
Not finding the help you need?
Contact Support