maxZoom Number (default: 19)

The maximum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).

The map zoom is clamped to the [minZoom, maxZoom] interval.

Example - limit zoom in to level 10

<div id="map"></div>
        layers: [{
            type: "tile",
            urlTemplate: " zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        maxZoom: 10,
        zoom: 5
In this article