API

Interface GeospatialControlOptions

interface GeospatialControlOptions {
    checkCollisions?: boolean;
    doubleTapAnimationDurationMs?: number;
    doubleTapEasingFunction?: ((g: number) => number) | null;
    zoomToCursor?: boolean;
}
Index
checkCollisions?: boolean

Enable simple sphere collision so the camera cannot dip below the surface. Default false.

doubleTapAnimationDurationMs?: number

Duration (ms) of the fly-to animation triggered by a primary-pointer double tap. Default 1000.

doubleTapEasingFunction?: ((g: number) => number) | null

Optional easing applied to the double-tap fly-to animation (normalized progress g ∈ [0,1]). A single function instance can be created once and reused across double taps. Default null (uses the fly module's cubic ease-in-out).

zoomToCursor?: boolean

When true, zooming moves toward the point under the cursor; otherwise along the look vector. Default true.