mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-15 15:52:21 +00:00
Move Directions routes and active camera flights between globes
This commit is contained in:
1 parent
5cea3e8cbb
commit
605b9490f3
12 files changed
+568
-63
No files matched your search
@@ -37,6 +37,7 @@ async function start(next, engineSwitch = false, cockpit = null) {
|
||||
if (engineSwitch) {
|
||||
const style = controls.styleManager;
|
||||
await style.initialRestorePromise;
|
||||
if (layerSession.handoffLayers) layerSession.manager.layers.get('directions')?.module.resumeCamera?.();
|
||||
// Only resume the aircraft that actually survived the handoff. A history
|
||||
// entry may select a different subject, and a stale track may disappear.
|
||||
const target = style.getAircraftTrackingTarget();
|
||||
@@ -137,6 +138,7 @@ async function reconcile(remember = false) {
|
||||
id, { entry: entry.module.attachRenderer ? entry : null, enabled: manager.isEffectivelyEnabled(id) },
|
||||
]))
|
||||
: null;
|
||||
if (layerSession.handoffLayers) manager.layers.get('directions')?.module.suspendCamera?.();
|
||||
renderers.retain(kind);
|
||||
await application.destroy();
|
||||
await start(pageEngineKind(), true, cockpit);
|
||||
|
||||
Reference in new issue
Block a user