Restrict map panning to an area
Prevent a map from being panned to a different place by setting maxBounds
.
Related examples
An extension of MapLibre GL JS
Prevent a map from being panned to a different place by setting maxBounds
.