Bounds
fitBounds
Parameters
Parameter (Required)
Description
Remark
bounds
Center these bounds in the viewport and use the highest zoom level up to and including the map.
JSON
Parameter (Optional)
Description
Remark
padding
The amount of padding in pixels to add to the given bounds.
Numeric
linear
If true, the map transitions using Map#easeTo. If false, the map transitions using Map#flyTo.
Bool
maxZoom
The maximum zoom level to allow when the map view transitions to the specified bounds.
Numeric
Returns
Parameter
Description
Remark
Example
getBounds
Parameters
Parameter (Required)
Description
Remark
Returns
Parameter
Description
Remark
Intercardinal coordinates (ne, sw) with latitude and longitude
Example
Last updated