References

⇠ Go Back

fitBounds

fitBounds(bounds, zoom = mapOptions.zoom)

Set zoom and the display area limits of the map.

Parameters

bounds - Object

The display area limits of the map.

zoom - Number

The zoom level.