@regionerne/gis-komponent 0.0.79 → 0.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -964,7 +964,7 @@ class LayerSelectorComponent {
964
964
  group.layers.forEach(layer => layer.visible = false); //Turn all layers off in selector to begin with
965
965
  group.visible = true; // Expand the group (there will be at least one active layer)
966
966
  group.expanded = true;
967
- this._layerHelper.startFailoverForBackgroundGroup(this.map, group.id);
967
+ this.map?.once('rendercomplete', () => this._layerHelper.startFailoverForBackgroundGroup(this.map, group.id));
968
968
  });
969
969
  this._initializeMapControl();
970
970
  }