Fit the map to a bounding box
1 | 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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.