setOptions

Resets the map and applies new options over the current state.

Parameters

options Object

The new options to be applied.

Example - set map zoom & center simultaneously

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

    var map = $("#map").data("kendoMap");
    map.setOptions({
        zoom: 10,
        center: [32.7758, -96.7966]
    });
</script>
In this article