Fit a map to a bounding box
Use fitBounds
to show a specific area of the map in view, regardless of the pixel size of the map.
Related examples
An extension of MapLibre GL JS
Use fitBounds
to show a specific area of the map in view, regardless of the pixel size of the map.