remove layer when destroyed
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
Details
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
Details
parent
878944b056
commit
431cc78c19
|
@ -438,5 +438,6 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange
|
|||
|
||||
ngOnDestroy() {
|
||||
this.unInstallMapEventHandler();
|
||||
this.map.instance.removeLayer(this.instance);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue