resize

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

Example

<div id="map" style="width: 512px; height: 512px;"></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"
        }]
    });

    $("#map")
       .css({ width: "1024px", height: "1024px" })
       .data("kendoMap").resize();
</script>

Parameters

force Boolean optional

Defines whether the widget should proceed with resizing even if the element dimensions have not changed.

In this article