FitBoundsOptions
FitBoundsOptions =
FlyToOptions&object
Options for Map.fitBounds method
Type Declaration
linear?
optionallinear?:boolean
If true, the map transitions using Map.easeTo. If false, the map transitions using Map.flyTo. See those functions and AnimationOptions for information about options available.
Default Value
false
maxZoom?
optionalmaxZoom?:number
The maximum zoom level to allow when the map view transitions to the specified bounds.
offset?
optionaloffset?:PointLike
The center of the given bounds relative to the map's center, measured in pixels.
Default Value
[0, 0]
© MapLibre contributors
Licensed under the 3-Clause BSD License.
https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/FitBoundsOptions/