Interface GeospatialControlOptions
interface GeospatialControlOptions {
checkCollisions?: boolean;
doubleTapAnimationDurationMs?: number;
doubleTapEasingFunction?: ((g: number) => number) | null;
zoomToCursor?: boolean;
}
checkCollisions?: boolean;
doubleTapAnimationDurationMs?: number;
doubleTapEasingFunction?: ((g: number) => number) | null;
zoomToCursor?: boolean;
}
Properties
Optionalcheck Collisions
checkCollisions?: boolean
Enable simple sphere collision so the camera cannot dip below the surface. Default false.
Optionaldouble Tap Animation Duration Ms
doubleTapAnimationDurationMs?: number
Duration (ms) of the fly-to animation triggered by a primary-pointer double tap. Default 1000.
Optionaldouble Tap Easing Function
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).
Optionalzoom To Cursor
zoomToCursor?: boolean
When true, zooming moves toward the point under the cursor; otherwise along the look vector. Default true.
Options for attachGeospatialControls.