Keep Contacts, active layer intents and mapped sites across globe switches

This commit is contained in:
German Khokhlov committed 2026-11-03 03:05:47 +04:00
1 parent 81bcae907f
commit 87bbe14748
35 files changed
+465 -118

No files matched your search

+13
View File
@@ -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;