Fit a map to a bounding box
fitBounds to show a specific area of the map in view, regardless of the pixel size of the map.
Restrict map panning to an areaExample
Prevent a map from being panned to a different place by setting maxBounds.
An extension of MapLibre GL JS