From 431cc78c19bbbd02b680af96036aa4ec69f4d831 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Tue, 26 Jan 2021 14:38:40 +0100 Subject: [PATCH] remove layer when destroyed --- .../fm-map/components/aol/item-layers/item-layers.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts b/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts index 89aee79..c80b682 100644 --- a/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts +++ b/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts @@ -438,5 +438,6 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange ngOnDestroy() { this.unInstallMapEventHandler(); + this.map.instance.removeLayer(this.instance); } }