Spec-Zone.ru › MapLibre GL JS

CameraForBoundsOptions

CameraForBoundsOptions = CameraOptions & object

A options object for the Map.cameraForBounds method

Type Declaration

maxZoom?

optional maxZoom?: number

The maximum zoom level to allow when the camera would transition to the specified bounds.

offset?

optional offset?: PointLike

The center of the given bounds relative to the map's center, measured in pixels.

Default Value

[0, 0]

padding?

optional padding?: number | PaddingOptions

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

© MapLibre contributors
Licensed under the 3-Clause BSD License.
https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/CameraForBoundsOptions/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API