remove layer when destroyed
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2021-01-26 14:38:40 +01:00
parent 878944b056
commit 431cc78c19

View File

@ -438,5 +438,6 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange
ngOnDestroy() { ngOnDestroy() {
this.unInstallMapEventHandler(); this.unInstallMapEventHandler();
this.map.instance.removeLayer(this.instance);
} }
} }