@idmwx/idmui-gl3 5.1.4 → 5.1.6

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.
package/dist/index.js CHANGED
@@ -1300,7 +1300,7 @@ const k = (b, M) => {
1300
1300
  { weight: 4096, name: "Pressure", key: "prmsl", enabled: !0, type: "json" },
1301
1301
  { weight: 256, name: "Tropicals", key: "tropicals", enabled: !0, type: "json" }
1302
1302
  ]
1303
- )), M = localStorage.getItem(this.activeWeatherLayersCache), z = JSON.parse(M), this.autoActive && (this.activeWeatherLayers = [...z]), z.some((O) => O.key === "wind" && O.particle) && this.$emit("toggleWindParticle", !0), localStorage.getItem(this.windFeatherCache) === "true" && this.$emit("toggleWindFeather", !0), z.some((O) => O.key === "current" && O.particle) && this.$emit("toggleCurrentParticle", !0), localStorage.getItem(this.currentIsobandCache) === "true" && this.$emit("toggleCurrentIsoband", !0), M = localStorage.getItem(this.activeOtherLayersCache), z = JSON.parse(M || '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}, {"weight": 2048,"name": "ENC","key": "enc","h5": true,"enabled": true,"type": "origin"}]'), this.activeOtherLayers = z, M = localStorage.getItem(this.sourceCache), this.source = M ? M === "CMEMS" ? "ECMWF" : M : this.source;
1303
+ )), M = localStorage.getItem(this.activeWeatherLayersCache), z = JSON.parse(M), this.autoActive && (this.activeWeatherLayers = [...z]), z.some((O) => O.key === "wind" && O.particle) && this.$emit("toggleWindParticle", !0), localStorage.getItem(this.windFeatherCache) === "true" && this.$emit("toggleWindFeather", !0), z.some((O) => O.key === "current" && O.particle) && this.$emit("toggleCurrentParticle", !0), localStorage.getItem(this.currentIsobandCache) === "true" && this.$emit("toggleCurrentIsoband", !0), M = localStorage.getItem(this.activeOtherLayersCache), z = JSON.parse(M || '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}, {"weight": 2048,"name": "ENC","key": "enc","h5": true,"enabled": true,"type": "origin"}]'), this.activeOtherLayers = z, M = localStorage.getItem(this.sourceCache), this.source = M ? M === "CMEMS" ? "ECMWF" : M : this.source, this.$emit("forecastModel", this.source);
1304
1304
  },
1305
1305
  handleConfirm() {
1306
1306
  var M;
@@ -4879,8 +4879,8 @@ const l2 = /* @__PURE__ */ k(s2, [["render", W2]]), f2 = {
4879
4879
  "line-width": 1,
4880
4880
  "line-opacity": 1
4881
4881
  }
4882
- },
4883
- this.beforeLayer
4882
+ }
4883
+ // this.beforeLayer,
4884
4884
  ), (z = this.map) == null || z.addLayer(
4885
4885
  {
4886
4886
  id: this.labelLayer,
@@ -4900,8 +4900,7 @@ const l2 = /* @__PURE__ */ k(s2, [["render", W2]]), f2 = {
4900
4900
  "text-halo-color": "rgba(255,255,255,1)",
4901
4901
  "text-halo-width": 1
4902
4902
  }
4903
- },
4904
- this.beforeLayer
4903
+ }
4905
4904
  ), setTimeout(() => {
4906
4905
  this.map.addLayer(
4907
4906
  {
@@ -4933,15 +4932,15 @@ const l2 = /* @__PURE__ */ k(s2, [["render", W2]]), f2 = {
4933
4932
  ],
4934
4933
  "text-halo-width": 4
4935
4934
  }
4936
- },
4937
- this.beforeLayer
4935
+ }
4936
+ // this.beforeLayer,
4938
4937
  );
4939
4938
  }, 0), o = (/* @__PURE__ */ new Date()).valueOf() - (O + p), console.log("[prmsl] add elapsed: ", o, ", total: ", p += o));
4940
4939
  }
4941
4940
  },
4942
4941
  handleMove() {
4943
4942
  var b, M;
4944
- (M = (b = this.map) == null ? void 0 : b.getLayer("country-boundaries")) == null || M.setLayoutProperty("visibility", "visible"), this.map.getLayer(this.pointLabelLayer) && this.map.moveLayer(this.pointLabelLayer, "country-boundaries"), this.map.getLayer(this.labelLayer) && this.map.moveLayer(this.labelLayer, "country-boundaries"), this.map.getLayer(this.layer) && this.map.moveLayer(this.layer, "country-boundaries");
4943
+ (M = (b = this.map) == null ? void 0 : b.getLayer("country-boundaries")) == null || M.setLayoutProperty("visibility", "visible");
4945
4944
  },
4946
4945
  handleClear() {
4947
4946
  var b, M;