diff --git a/src/lib/map/shared/map.ts b/src/lib/map/shared/map.ts index 7ff1d8b229..e23121a7f8 100644 --- a/src/lib/map/shared/map.ts +++ b/src/lib/map/shared/map.ts @@ -124,6 +124,7 @@ export class IgoMap { this.layers[to] = layer; this.layers[from] = layerTo; + this.layers$.next(this.layers.slice(0)); } moveToExtent(extent: ol.Extent) {