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

# Restrict Map Planning

To restrict the map move within an area:

```js
// init maplibre-gl map
const maplibreMap = new maplibregl.Map({
    container: 'map'
});
// use maplibre setMaxBounds function
maplibreMap.setMaxBounds([[114.15867, 22.30276], [114.16503, 22.30729]]);
```

Sample web page:

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