Interface FitBoundsOptions

Hierarchy

Index

Properties

Properties

optional public animate?: boolean

An equivalent of passing animate to both zoom and pan options (see below).

optional public padding?: Point

Equivalent of setting both top left and bottom right padding to the same value.

Default value: [0, 0].

optional public paddingBottomRight?: Point

The same for bottom right corner of the map.

Default value: [0, 0].

optional public paddingTopLeft?: Point

Sets the amount of padding in the top left corner of a map container that shouldn't be accounted for when setting the view to fit bounds. Useful if you have some control overlays on the map like a sidebar and you don't want them to obscure objects you're zooming to.

Default value: [0, 0].

optional public pan?: PanOptions

Sets the options for the panning (without the zoom change) if it occurs.

optional public reset?: boolean

If true, the map view will be completely reset (without any animations).

Default value: false.

optional public zoom?: ZoomOptions

Sets the options for the zoom change if it occurs.