diff --git a/src/lib/layer/shared/layers/layer.ts b/src/lib/layer/shared/layers/layer.ts index 4b641b45c5..f108053530 100644 --- a/src/lib/layer/shared/layers/layer.ts +++ b/src/lib/layer/shared/layers/layer.ts @@ -72,7 +72,7 @@ export abstract class Layer { remove() { this.map = undefined; - map.ol.removeLayer(this.ol); + this.map.ol.removeLayer(this.ol); } }