@emuanalytics/flow-rdf-ui 4.1.0-preview.26 → 4.1.0-preview.27

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.
@@ -67,6 +67,8 @@ class FlowUiMap extends FlowRdfElement {
67
67
  handleBaseStyleChange() {
68
68
  if (this._map) {
69
69
  this._map.setBaseStyle(this.baseStyle);
70
+ } else {
71
+ this._pendingBaseStyle = this.baseStyle;
70
72
  }
71
73
  }
72
74
  async connectedCallback() {
@@ -103,6 +105,10 @@ class FlowUiMap extends FlowRdfElement {
103
105
  map.setCenter(this._pendingCenter);
104
106
  this._pendingCenter = void 0;
105
107
  }
108
+ if (this._pendingBaseStyle) {
109
+ map.setBaseStyle(this._pendingBaseStyle);
110
+ this._pendingBaseStyle = void 0;
111
+ }
106
112
  map.on("loading", (ev) => {
107
113
  this._mapLoading = ev.loading;
108
114
  });