mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
fix(search): cancel active lookup when controls are disposed
This commit is contained in:
1 parent
eec4dd5cdb
commit
3263fe6ff1
4 files changed
+11
-2
No files matched your search
@@ -4236,7 +4236,6 @@ export class StyleManager {
|
||||
};
|
||||
if (panelId === 'control-panel') {
|
||||
this._cancelMapSourceFocus?.();
|
||||
this._locationSearchController?.abort();
|
||||
this._cancelMapSourceFocus = cancelMapSourceFocus;
|
||||
}
|
||||
|
||||
@@ -10319,6 +10318,7 @@ export class StyleManager {
|
||||
this._globalStatusNotice = null;
|
||||
if (this._globalLoadingStatus) this._globalLoadingStatus.hidden = true;
|
||||
this._disposed = true;
|
||||
this._locationSearchController?.abort();
|
||||
this._cancelMapSourceFocus?.();
|
||||
// Revoke persistence/hash authority before teardown can emit manager changes.
|
||||
this._layerStateCoordinator?.destroy();
|
||||
|
||||
Reference in new issue
Block a user