Fit to the bounds of a lineString
Fit a map to a bounding boxExample
Fit the map to a specific area, 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