Type Alias: FitOptions
void
Options interface to select when making a fitBounds call on a map Combines camera configuration with animation options for smooth transitions
Type declaration
maxZoom?
Max zoom allowed when trying to make a fitBounds call Prevents the map from zooming in too far when fitting bounds
offset?
Value in which the center of the fit will be moved Allows adjusting the center point of the fitted bounds
onComplete()?
Callback function executed when the fit animation completes Called after the camera has finished moving to the new position
Returns
void
Example
padding?
Set padding (in pixels) to be added at the edges of the canvas Provides space around the fitted bounds to prevent elements from being cut off
Last updated on