perf(map): reuse resources across routes
Build Push and Deploy / docker-image (push) Successful in 54s
Build Push and Deploy / deploy-fallback-log (push) Has been skipped

Preserve standard network layers between map pages while disposing route-owned overlays and controls to prevent memory growth.
This commit is contained in:
2026-07-10 15:31:14 +08:00
parent c6e6e24aab
commit f5e7312e3b
36 changed files with 753 additions and 703 deletions
+6
View File
@@ -70,6 +70,12 @@ export class DeckLayer extends Layer {
this.deck.setProps({ layers });
}
resetSessionLayers(): void {
if (this.isDisposed) return;
this.userVisibility.clear();
this.deck.setProps({ layers: [] });
}
// 获取当前图层
getDeckLayers(): any[] {
if (this.isDisposed) return [];