FitBoundsOptions | MapGL | 2GIS Documentation
MapGL JS API

FitBoundsOptions

Options for fitBounds method.

Properties

Animation options.

undefinedfalsetrue

If true the fitBounds will consider the map rotation

undefinednumber

The limit for the maximum zoom.

Partial<Padding>

The amount of padding in pixels to add to the given bounds.

undefinedfalsetrue

If true fitBounds ignores the padding property in the map options