CameraForBoundsOptions
CameraForBoundsOptions =
CameraOptions&object
Defined in: ui/camera.ts:107
A options object for the Map#cameraForBounds method
Type Declaration
maxZoom?
optionalmaxZoom:number
The maximum zoom level to allow when the camera would transition to the specified bounds.
offset?
optionaloffset:PointLike
The center of the given bounds relative to the map's center, measured in pixels.
Default Value
padding?
optionalpadding:number|RequireAtLeastOne<PaddingOptions>
The amount of padding in pixels to add to the given bounds.