Fit the map to a bounding box

fit_bounds(map, bounds, ...)

Arguments

map

A mapboxer object.

bounds

The bounding box as a vector in [west, south, east, north] order or a bbox object.

...

Optional arguments, see https://docs.mapbox.com/mapbox-gl-js/api/map/#map#fitbounds.