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


<div id="map" style="width: 512px; height: 512px;"></div>
        zoom: 3,
        center: [0, 0],
        layers: [{
            type: "tile",
            urlTemplate: " zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"

       .css({ width: "1024px", height: "1024px" })


force Boolean optional

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

In this article
Not finding the help you need? Improve this article