Type Alias CameraForBoundsOptions
CameraForBoundsOptions: CameraOptions & {
maxZoom?: number;
offset?: PointLike;
padding?: number | PaddingOptions;
}
maxZoom?: number;
offset?: PointLike;
padding?: number | PaddingOptions;
}
Type Declaration
OptionalmaxZoom?: numberThe maximum zoom level to allow when the camera would transition to the specified bounds.
Optionaloffset?: PointLikeThe center of the given bounds relative to the map's center, measured in pixels.
Optionalpadding?: number | PaddingOptionsThe amount of padding in pixels to add to the given bounds.
Was this helpful?
A options object for the Map.cameraForBounds method