New to Kendo UI for jQuery? Start a free 30-day trial

Resize

methods

Adjusts the widget layout to match the size of the container.

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

    $("#map")
       .css({ width: "1024px", height: "1024px" })
       .data("kendoMap").resize();
</script>
Not finding the help you need?
Contact Support