Function attachGeospatialControls
-
attachGeospatialControls(
camera: GeospatialCamera,
canvas: HTMLCanvasElement,
scene: SceneContext,
options?: GeospatialControlOptions,
): () => voidParameters
- camera: GeospatialCamera
- canvas: HTMLCanvasElement
- scene: SceneContext
Optionaloptions: GeospatialControlOptions
Returns () => void
Attach orbit / pan / zoom controls to a GeospatialCamera, matching Babylon.js
GeospatialCamerainteractions:Movement uses Babylon.js's framerate-independent physics model (velocity + inertial decay). Globe picking is analytic ray-sphere against the planet sphere (origin-centred, radius =
limits.planetRadius) — no mesh picking subsystem is required. Inertia is integrated once per frame from the scene's render loop (scene._beforeRender).Returns a disposer that removes all listeners and the per-frame hook.