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 CameraInitOptions

type CameraInitOptions = {
    bearingSnap: number;
    cancelRenderFrame: (_: TaskID) => void;
    centerClampedToGround: boolean;
    maxPitch: number;
    maxZoom: number;
    minPitch: number;
    minZoom: number;
    renderWorldCopies: boolean;
    requestRenderFrame: (a: () => void) => TaskID;
    stopHandlers?: () => void;
    terrain: Terrain;
    transformCameraUpdate: CameraUpdateTransformFunction | null;
    transformConstrain: TransformConstrainFunction;
    zoomSnap: number;
}
Index

Properties

bearingSnap: number
cancelRenderFrame: (_: TaskID) => void
centerClampedToGround: boolean
maxPitch: number
maxZoom: number
minPitch: number
minZoom: number
renderWorldCopies: boolean
requestRenderFrame: (a: () => void) => TaskID
stopHandlers?: () => void

Callback invoked by Camera.stop to halt any in-progress user gestures. The Camera does not own the gesture handlers (the Map does), so it is injected with a way to stop them rather than holding a reference to the HandlerManager.

terrain: Terrain
transformCameraUpdate: CameraUpdateTransformFunction | null
transformConstrain: TransformConstrainFunction
zoomSnap: number
Was this helpful?