For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
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.
A options object for the Map.cameraForBounds method