> For AI agents: the complete documentation index is available at /jp/core-sdk/map/web/llms.txt, the full documentation bundle is available at /jp/core-sdk/map/web/llms-full.txt.

# Restrict Map Zoom Level

To set the minimum and maximum zoom levels for your map:

```js
// init maplibre-gl map
const maplibreMap = new maplibregl.Map({
    container: 'map'
});
// use maplibre setMinZoom function
maplibreMap.setMinZoom(16);
// use maplibre setMaxZoom function
maplibreMap.setMaxZoom(18);
```

Sample web page:

<iframe src="https://map-service.mapxus.co.jp/bssww/restrictMapZoom" width="100%" height="550px"></iframe>
