mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-14 23:32:20 +00:00
Keep Contacts, active layer intents and mapped sites across globe switches
This commit is contained in:
1 parent
81bcae907f
commit
87bbe14748
35 files changed
+465
-118
No files matched your search
@@ -85,6 +85,19 @@ export class ContextControls {
|
||||
this[field] = null;
|
||||
}
|
||||
}
|
||||
canRetainContacts() {
|
||||
return this._contextMode === 'flights' && !this._contextModeChanging &&
|
||||
!this._contextRestoreState && !this._clearSelectedLayersPromise &&
|
||||
!this._contextLayerReactionPromises.size;
|
||||
}
|
||||
captureScene() {
|
||||
return { mode: this._contextMode, snapshot: this._contextSessionSnapshot };
|
||||
}
|
||||
resumeScene(saved) {
|
||||
if (!saved) return;
|
||||
this._contextMode = saved.mode;
|
||||
this._contextSessionSnapshot = saved.snapshot;
|
||||
}
|
||||
stop() {
|
||||
if (this.destroyed) return;
|
||||
this.destroyed = true;
|
||||
|
||||
Reference in new issue
Block a user