Function flyGeospatialCameraToAsync
-
flyGeospatialCameraToAsync(
camera: GeospatialCamera,
scene: SceneContext,
options: GeospatialFlyOptions,
): Promise<void>Parameters
- camera: GeospatialCamera
- scene: SceneContext
- options: GeospatialFlyOptions
Returns Promise<void>
Smoothly animate a GeospatialCamera to new yaw/pitch/radius/centre over
durationMs, driven by the scene's render loop. Yaw takes the shortest angular path; the centre follows a great-circle (with an optional parabolic hop).The returned promise resolves when the flight completes; it also resolves early if the flight is interrupted (by user input through
attachGeospatialControls, or by a subsequentflyGeospatialCameraToAsynccall). Only one flight runs at a time.