Fit the map to a bounding box
fit_bounds(map, bounds, ...)
map | A mapboxer object. |
---|---|
bounds | The bounding box as a vector in [west, south, east, north] order
or a |
... | Optional arguments, see https://docs.mapbox.com/mapbox-gl-js/api/map/#map#fitbounds. |