@idmwx/idmui-gl3 6.3.7 → 6.3.9
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 +131 -135
- package/dist/index.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -535,7 +535,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
535
535
|
return g(), y("div", {
|
|
536
536
|
key: h.key,
|
|
537
537
|
class: ee(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
|
|
538
|
-
onClick: (
|
|
538
|
+
onClick: (v) => s.handleOtherLayerPick(h)
|
|
539
539
|
}, [
|
|
540
540
|
o("div", Kt, [
|
|
541
541
|
o("div", Xt, [
|
|
@@ -562,11 +562,11 @@ function aa(a, e, t, r, i, s) {
|
|
|
562
562
|
value: h.name
|
|
563
563
|
}, {
|
|
564
564
|
default: Pe(() => {
|
|
565
|
-
var
|
|
565
|
+
var v, x, E, f, I, _;
|
|
566
566
|
return [
|
|
567
567
|
ue(k(h.name) + " ", 1),
|
|
568
568
|
p !== 0 ? (g(), y("span", $t, k(h.resolution) + "km " + k(h.length) + "days", 1)) : q("", !0),
|
|
569
|
-
p === 0 ? (g(), y("div", ea, "Provides the best forecast")) : (E = (x = (
|
|
569
|
+
p === 0 ? (g(), y("div", ea, "Provides the best forecast")) : (E = (x = (v = h == null ? void 0 : h.update) == null ? void 0 : v.default) == null ? void 0 : x.meta) != null && E.initialisationTime ? (g(), y("div", ta, "Update: " + k(s.computeDateZ((_ = (I = (f = h == null ? void 0 : h.update) == null ? void 0 : f.default) == null ? void 0 : I.meta) == null ? void 0 : _.initialisationTime)), 1)) : q("", !0)
|
|
570
570
|
];
|
|
571
571
|
}),
|
|
572
572
|
_: 2
|
|
@@ -775,8 +775,8 @@ class et {
|
|
|
775
775
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
776
776
|
*/
|
|
777
777
|
getBoundPixel() {
|
|
778
|
-
const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [d, h] = this.mercator.px([s, r[1]], t), [p,
|
|
779
|
-
return [p,
|
|
778
|
+
const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [d, h] = this.mercator.px([s, r[1]], t), [p, v] = this.mercator.px([l, i[1]], t), x = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
|
|
779
|
+
return [p, v, d + x, h];
|
|
780
780
|
}
|
|
781
781
|
/**
|
|
782
782
|
* [视窗边界像素宽度]
|
|
@@ -957,7 +957,7 @@ class We {
|
|
|
957
957
|
sRange: t.getUniformLocation(r, "u_range_s")
|
|
958
958
|
};
|
|
959
959
|
h.resolution && t.uniform2f(h.resolution, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), h.image && t.uniform1i(h.image, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, s), h.color && t.uniform1i(h.color, 1), l != null && l.uvRange && (l != null && l.sRange) && (h.uvRange && t.uniform2f(h.uvRange, l.uvRange[0], l.uvRange[1]), h.sRange && t.uniform2f(h.sRange, l.sRange[0], l.sRange[1])), h.scale && t.uniform1f(h.scale, (l == null ? void 0 : l.scale) || 1);
|
|
960
|
-
const p = e.getBoundPixel(),
|
|
960
|
+
const p = e.getBoundPixel(), v = e.map.getZoom() + 1, x = e.getWorldCopy(p, v);
|
|
961
961
|
for (const E of x) {
|
|
962
962
|
const f = (E[0] - p[0]) * e.ratio, I = (E[1] - p[3]) * e.ratio, _ = E[2] * e.ratio, [A, w, m, L] = [f, _ + f, I, _ + I], u = new Float32Array([A, m, w, m, A, L, A, L, w, m, w, L]);
|
|
963
963
|
t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, u, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
@@ -4708,18 +4708,18 @@ class ht {
|
|
|
4708
4708
|
const i = e.toLowerCase().split(","), s = [], n = [];
|
|
4709
4709
|
for (const l of i) {
|
|
4710
4710
|
let c = Xe.find((h) => {
|
|
4711
|
-
var p,
|
|
4712
|
-
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((
|
|
4711
|
+
var p, v, x;
|
|
4712
|
+
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((v = h.alias) == null ? void 0 : v.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.toLowerCase()) === l;
|
|
4713
4713
|
}), d = Je.find((h) => {
|
|
4714
|
-
var p,
|
|
4715
|
-
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((
|
|
4714
|
+
var p, v, x;
|
|
4715
|
+
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((v = h.alias) == null ? void 0 : v.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.toLowerCase()) === l;
|
|
4716
4716
|
});
|
|
4717
4717
|
c = c || Xe.find((h) => {
|
|
4718
|
-
var p,
|
|
4719
|
-
return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((
|
|
4718
|
+
var p, v;
|
|
4719
|
+
return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((v = d == null ? void 0 : d.alias) == null ? void 0 : v.toLowerCase());
|
|
4720
4720
|
}), d = d || Je.find((h) => {
|
|
4721
|
-
var p,
|
|
4722
|
-
return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((
|
|
4721
|
+
var p, v;
|
|
4722
|
+
return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((v = c == null ? void 0 : c.alias) == null ? void 0 : v.toLowerCase());
|
|
4723
4723
|
}), c = c || Xe[0], d = d || Je[0], s.push((t = c.models) != null && t.includes(l) ? l : c.model), n.push((r = d.models) != null && r.includes(l) ? l : d.model);
|
|
4724
4724
|
}
|
|
4725
4725
|
return {
|
|
@@ -4737,7 +4737,7 @@ class ht {
|
|
|
4737
4737
|
}), i;
|
|
4738
4738
|
}
|
|
4739
4739
|
static pickHourly(e, t) {
|
|
4740
|
-
var r, i, s, n, l, c, d, h, p,
|
|
4740
|
+
var r, i, s, n, l, c, d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie;
|
|
4741
4741
|
const ie = typeof t == "string" ? ae(t) : t, J = e == null ? void 0 : e.weather, P = e == null ? void 0 : e.marine, Ce = ae((i = (r = J == null ? void 0 : J[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = Ce.clone().add((l = (n = (s = J == null ? void 0 : J[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), Z = Ce.clone().add((h = (d = (c = J == null ? void 0 : J[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Se = [];
|
|
4742
4742
|
if (ie.isBetween(K, Z, "millisecond", "[]")) {
|
|
4743
4743
|
const S = ie.utc().diff(K, "h", !1);
|
|
@@ -4749,7 +4749,7 @@ class ht {
|
|
|
4749
4749
|
for (let Ne = S - (S - 1) % 3; Ne <= S; Ne++)
|
|
4750
4750
|
Te += (p = O == null ? void 0 : O.precipitation) == null ? void 0 : p.at(Ne);
|
|
4751
4751
|
for (let Ne = S - (S - 1) % 6; Ne <= S; Ne++)
|
|
4752
|
-
Qe += (
|
|
4752
|
+
Qe += (v = O == null ? void 0 : O.precipitation) == null ? void 0 : v.at(Ne);
|
|
4753
4753
|
Ae = {
|
|
4754
4754
|
temp: (x = O == null ? void 0 : O.temperature_2m) == null ? void 0 : x.at(S),
|
|
4755
4755
|
apparentTemp: (E = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : E.at(S),
|
|
@@ -4766,7 +4766,7 @@ class ht {
|
|
|
4766
4766
|
code: (L = O == null ? void 0 : O.weather_code) == null ? void 0 : L.at(S),
|
|
4767
4767
|
visibility: this.m2nm((u = O == null ? void 0 : O.visibility) == null ? void 0 : u.at(S)),
|
|
4768
4768
|
wind: {
|
|
4769
|
-
speed: (
|
|
4769
|
+
speed: (b = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : b.at(S),
|
|
4770
4770
|
kts: (z = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : z.at(S),
|
|
4771
4771
|
degree: (D = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : D.at(S),
|
|
4772
4772
|
bearing: ((N = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : N.at(S)) !== null ? (((H = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : H.at(S)) + 180) % 360 : null,
|
|
@@ -4846,7 +4846,7 @@ class ht {
|
|
|
4846
4846
|
};
|
|
4847
4847
|
}
|
|
4848
4848
|
static pickDaily(e, t) {
|
|
4849
|
-
var r, i, s, n, l, c, d, h, p,
|
|
4849
|
+
var r, i, s, n, l, c, d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B;
|
|
4850
4850
|
const ke = typeof t == "string" ? ae(t) : t, Le = e == null ? void 0 : e.weather, De = e == null ? void 0 : e.marine, Be = ae((s = (i = (r = Le == null ? void 0 : Le[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), ze = ae((c = (l = (n = Le == null ? void 0 : Le[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), Ie = [];
|
|
4851
4851
|
if (ke.isBetween(Be, ze, "millisecond", "[]")) {
|
|
4852
4852
|
let ie, J;
|
|
@@ -4859,7 +4859,7 @@ class ht {
|
|
|
4859
4859
|
temp: {
|
|
4860
4860
|
max: (h = K.temperature_2m_max) == null ? void 0 : h.at(P),
|
|
4861
4861
|
min: (p = K.temperature_2m_min) == null ? void 0 : p.at(P),
|
|
4862
|
-
mean: (
|
|
4862
|
+
mean: (v = K.temperature_2m_mean) == null ? void 0 : v.at(P)
|
|
4863
4863
|
},
|
|
4864
4864
|
apparentTemp: {
|
|
4865
4865
|
max: (x = K.apparent_temperature_max) == null ? void 0 : x.at(P),
|
|
@@ -4876,7 +4876,7 @@ class ht {
|
|
|
4876
4876
|
rh: {
|
|
4877
4877
|
max: (L = K.relative_humidity_2m_max) == null ? void 0 : L.at(P),
|
|
4878
4878
|
min: (u = K.relative_humidity_2m_min) == null ? void 0 : u.at(P),
|
|
4879
|
-
mean: (
|
|
4879
|
+
mean: (b = K.relative_humidity_2m_mean) == null ? void 0 : b.at(P)
|
|
4880
4880
|
},
|
|
4881
4881
|
wind: {
|
|
4882
4882
|
speed: (z = K.wind_speed_10m_max) == null ? void 0 : z.at(P),
|
|
@@ -5467,7 +5467,7 @@ const Oa = {
|
|
|
5467
5467
|
));
|
|
5468
5468
|
},
|
|
5469
5469
|
handleRender() {
|
|
5470
|
-
var a, e, t, r, i, s, n, l, c, d, h, p,
|
|
5470
|
+
var a, e, t, r, i, s, n, l, c, d, h, p, v;
|
|
5471
5471
|
if (!this.map)
|
|
5472
5472
|
setTimeout(() => {
|
|
5473
5473
|
this.handleRender();
|
|
@@ -5616,31 +5616,10 @@ const Oa = {
|
|
|
5616
5616
|
"#fff"
|
|
5617
5617
|
]
|
|
5618
5618
|
}
|
|
5619
|
-
}), this.fromTropicalReport)
|
|
5620
|
-
this.
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
source: this.clusterSource,
|
|
5624
|
-
filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["!=", "disabled", !0]],
|
|
5625
|
-
layout: {
|
|
5626
|
-
"text-field": ["get", "format"],
|
|
5627
|
-
"text-offset": [0, -0.5],
|
|
5628
|
-
"text-anchor": "bottom-left",
|
|
5629
|
-
"text-size": 12
|
|
5630
|
-
},
|
|
5631
|
-
paint: {
|
|
5632
|
-
"text-color": "rgba(0, 0, 0, 1)",
|
|
5633
|
-
"text-halo-color": "#fff",
|
|
5634
|
-
"text-halo-width": 1
|
|
5635
|
-
}
|
|
5636
|
-
});
|
|
5637
|
-
else {
|
|
5638
|
-
const _ = (h = this.tropicals.data.features) == null ? void 0 : h.filter((u) => {
|
|
5639
|
-
var v;
|
|
5640
|
-
return u.geometry.type === "Point" && u.properties.type === "forecast" && ((v = u.properties) == null ? void 0 : v.model) === "ecmwf" && u.properties.name === "melissa";
|
|
5641
|
-
});
|
|
5642
|
-
let A = 0, w = 0, m = 0, L = (b = (p = this.findClosestToNumber(_, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : b.hour;
|
|
5643
|
-
_.forEach((u, v) => {
|
|
5619
|
+
}), this.fromTropicalReport) {
|
|
5620
|
+
const _ = (h = this.tropicals.data.features) == null ? void 0 : h.filter((u) => u.geometry.type === "Point" && u.properties.type === "forecast");
|
|
5621
|
+
let A = 0, w = 0, m = 0, L = (v = (p = this.findClosestToNumber(_, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : v.hour;
|
|
5622
|
+
_.forEach((u, b) => {
|
|
5644
5623
|
var N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie;
|
|
5645
5624
|
let z;
|
|
5646
5625
|
const D = this.findClosestToNumber(_, "hour", L + A * 24);
|
|
@@ -5661,7 +5640,24 @@ const Oa = {
|
|
|
5661
5640
|
`, this.labelMarkers.push(new Re.Marker(Ce).setLngLat(u.geometry.coordinates).setOffset(ie).addTo(this.map)), A = A + 1;
|
|
5662
5641
|
}
|
|
5663
5642
|
});
|
|
5664
|
-
}
|
|
5643
|
+
} else
|
|
5644
|
+
this.map.addLayer({
|
|
5645
|
+
id: this.pointLabelLayer,
|
|
5646
|
+
type: "symbol",
|
|
5647
|
+
source: this.clusterSource,
|
|
5648
|
+
filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["!=", "disabled", !0]],
|
|
5649
|
+
layout: {
|
|
5650
|
+
"text-field": ["get", "format"],
|
|
5651
|
+
"text-offset": [0, -0.5],
|
|
5652
|
+
"text-anchor": "bottom-left",
|
|
5653
|
+
"text-size": 12
|
|
5654
|
+
},
|
|
5655
|
+
paint: {
|
|
5656
|
+
"text-color": "rgba(0, 0, 0, 1)",
|
|
5657
|
+
"text-halo-color": "#fff",
|
|
5658
|
+
"text-halo-width": 1
|
|
5659
|
+
}
|
|
5660
|
+
});
|
|
5665
5661
|
this.map.addLayer({
|
|
5666
5662
|
id: this.historyPointCircleLayer + "-border",
|
|
5667
5663
|
type: "circle",
|
|
@@ -5747,7 +5743,7 @@ const Oa = {
|
|
|
5747
5743
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource), this.labelMarkers.forEach((e) => e == null ? void 0 : e.remove()), this.labelMarkers = []);
|
|
5748
5744
|
},
|
|
5749
5745
|
handleDateChange() {
|
|
5750
|
-
var a, e, t, r, i, s, n, l, c, d, h, p,
|
|
5746
|
+
var a, e, t, r, i, s, n, l, c, d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z, D, N, H, j, G, W, ce;
|
|
5751
5747
|
if ((a = this.interpolateMarkers) == null || a.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
5752
5748
|
const re = ae(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = ae.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), we = re.isBefore(de) && de.diff(re, "h") < 2 ? de.format() : re.format(), pe = this.interpolateData.filter((U) => U.properties.date === we && !U.properties.disabled), ve = this.handleComputePolygons(pe), me = Q.featureCollection([...pe]);
|
|
5753
5749
|
ve.forEach((U) => {
|
|
@@ -5769,7 +5765,7 @@ const Oa = {
|
|
|
5769
5765
|
for (const U of pe)
|
|
5770
5766
|
if (!U.properties.disabled) {
|
|
5771
5767
|
let V = "#f44336";
|
|
5772
|
-
((l = (n = U.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = U.properties) == null ? void 0 : c.wind) != null && d.kts) ? V = "#03f869" : ((p = (h = U.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((x = (
|
|
5768
|
+
((l = (n = U.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = U.properties) == null ? void 0 : c.wind) != null && d.kts) ? V = "#03f869" : ((p = (h = U.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((x = (v = U.properties) == null ? void 0 : v.wind) == null ? void 0 : x.kts) < 47 ? V = "#f2f202" : ((f = (E = U.properties) == null ? void 0 : E.wind) == null ? void 0 : f.kts) >= 47 && ((_ = (I = U.properties) == null ? void 0 : I.wind) == null ? void 0 : _.kts) < 63 ? V = "#ff9100" : ((w = (A = U.properties) == null ? void 0 : A.wind) == null ? void 0 : w.kts) >= 63 && ((L = (m = U.properties) == null ? void 0 : m.wind) == null ? void 0 : L.kts) < 79 ? V = "#f44336" : ((b = (u = U.properties) == null ? void 0 : u.wind) == null ? void 0 : b.kts) >= 79 && ((D = (z = U.properties) == null ? void 0 : z.wind) == null ? void 0 : D.kts) < 94 ? V = "#f903d0" : ((H = (N = U.properties) == null ? void 0 : N.wind) == null ? void 0 : H.kts) >= 94 ? V = "#8702f9" : V = "#f44336";
|
|
5773
5769
|
const ye = `<svg t="1719918955501"
|
|
5774
5770
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5775
5771
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -5793,7 +5789,7 @@ const Oa = {
|
|
|
5793
5789
|
(W = this.map) != null && W.getSource(this.interpolateSource) && ((ce = this.map) == null || ce.getSource(this.interpolateSource).setData(this.empty));
|
|
5794
5790
|
},
|
|
5795
5791
|
handleClick(a) {
|
|
5796
|
-
var s, n, l, c, d, h, p,
|
|
5792
|
+
var s, n, l, c, d, h, p, v;
|
|
5797
5793
|
const e = a.features[0], t = (n = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : n.features.filter(
|
|
5798
5794
|
(x) => {
|
|
5799
5795
|
var E;
|
|
@@ -5809,7 +5805,7 @@ const Oa = {
|
|
|
5809
5805
|
name: (d = e == null ? void 0 : e.properties) == null ? void 0 : d.name,
|
|
5810
5806
|
forecasts: t.map((x) => x.properties),
|
|
5811
5807
|
history: (h = r[0]) == null ? void 0 : h.properties,
|
|
5812
|
-
showCircle: (
|
|
5808
|
+
showCircle: (v = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : v.showCircle
|
|
5813
5809
|
}, this.showTropicals = !0;
|
|
5814
5810
|
const i = document.getElementById("idm-tropical-gl3");
|
|
5815
5811
|
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new Re.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
@@ -5923,7 +5919,7 @@ const Oa = {
|
|
|
5923
5919
|
style: { "justify-content": "flex-start" }
|
|
5924
5920
|
}, ai = { class: "forecast-models" }, ii = ["onClick"], ri = { class: "more" };
|
|
5925
5921
|
function si(a, e, t, r, i, s) {
|
|
5926
|
-
var n, l, c, d, h, p,
|
|
5922
|
+
var n, l, c, d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z;
|
|
5927
5923
|
return Fe((g(), y("div", Ra, [
|
|
5928
5924
|
o("div", ja, [
|
|
5929
5925
|
o("div", {
|
|
@@ -5934,7 +5930,7 @@ function si(a, e, t, r, i, s) {
|
|
|
5934
5930
|
(l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (g(), y("span", Ga, k((d = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : d.level) + " , ", 1)) : q("", !0),
|
|
5935
5931
|
ue(k((h = i.activeTropicals) == null ? void 0 : h.name), 1)
|
|
5936
5932
|
]),
|
|
5937
|
-
o("div", Ua, " Last update: " + k(s.computeTime(((
|
|
5933
|
+
o("div", Ua, " Last update: " + k(s.computeTime(((v = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : v.updated) || ((f = (E = (x = i.activeTropicals) == null ? void 0 : x.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : f.date))), 1)
|
|
5938
5934
|
]),
|
|
5939
5935
|
o("div", Ya, [
|
|
5940
5936
|
o("div", Ka, [
|
|
@@ -5956,7 +5952,7 @@ function si(a, e, t, r, i, s) {
|
|
|
5956
5952
|
]),
|
|
5957
5953
|
o("div", $a, [
|
|
5958
5954
|
e[6] || (e[6] = o("label", null, "Move Dir: ", -1)),
|
|
5959
|
-
o("span", null, k((
|
|
5955
|
+
o("span", null, k((b = s.computeMovement(i.activeTropicals)) == null ? void 0 : b.deg) + " [°]", 1)
|
|
5960
5956
|
])
|
|
5961
5957
|
]),
|
|
5962
5958
|
o("div", ei, [
|
|
@@ -6695,7 +6691,7 @@ const _i = {
|
|
|
6695
6691
|
initTableData(a) {
|
|
6696
6692
|
var e, t, r, i, s, n, l, c, d;
|
|
6697
6693
|
this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Ye(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a, ae(this.ts))) == null ? void 0 : l[0], ((d = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : d.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
6698
|
-
var p,
|
|
6694
|
+
var p, v, x, E, f, I, _, A, w, m, L, u, b, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe;
|
|
6699
6695
|
if (!document.getElementById("meteoMainBox"))
|
|
6700
6696
|
return !1;
|
|
6701
6697
|
if (!this.currentHourData)
|
|
@@ -6704,7 +6700,7 @@ const _i = {
|
|
|
6704
6700
|
const _e = Ye(this.ts).tz(this.positionGmt).add(3 * be, "h").format();
|
|
6705
6701
|
this.tableData.hours.push(_e);
|
|
6706
6702
|
const B = ((p = Ke.pickHourly(a, _e)) == null ? void 0 : p[0]) || {};
|
|
6707
|
-
this.tableData.temp.push(this.roundPrecision((
|
|
6703
|
+
this.tableData.temp.push(this.roundPrecision((v = B == null ? void 0 : B.weather) == null ? void 0 : v.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (x = B == null ? void 0 : B.weather) == null ? void 0 : x.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((I = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.precip) == null ? void 0 : I.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = B == null ? void 0 : B.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((w = (A = B == null ? void 0 : B.weather) == null ? void 0 : A.wind) == null ? void 0 : w.kts, 1) ?? "-"), this.tableData.windDir.push((L = (m = B == null ? void 0 : B.weather) == null ? void 0 : m.wind) == null ? void 0 : L.bearing), this.tableData.windGust.push(this.roundPrecision((b = (u = B == null ? void 0 : B.weather) == null ? void 0 : u.wind) == null ? void 0 : b.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (z = B == null ? void 0 : B.wave) == null ? void 0 : z.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (N = B == null ? void 0 : B.wave) == null ? void 0 : N.sig) == null ? void 0 : H.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((G = (j = B == null ? void 0 : B.wave) == null ? void 0 : j.wd) == null ? void 0 : G.height, 1) ?? "-"), this.tableData.windwaveDir.push((ce = (W = B == null ? void 0 : B.wave) == null ? void 0 : W.wd) == null ? void 0 : ce.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((de = (re = B == null ? void 0 : B.wave) == null ? void 0 : re.wd) == null ? void 0 : de.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((pe = (we = B == null ? void 0 : B.wave) == null ? void 0 : we.swell) == null ? void 0 : pe.height, 1) ?? "-"), this.tableData.swellDir.push((me = (ve = B == null ? void 0 : B.wave) == null ? void 0 : ve.swell) == null ? void 0 : me.bearing), this.tableData.swellPeriod.push(this.roundPrecision((V = (U = B == null ? void 0 : B.wave) == null ? void 0 : U.swell) == null ? void 0 : V.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((ye = B == null ? void 0 : B.current) == null ? void 0 : ye.speed, 1) ?? "-"), this.tableData.currentDir.push((ne = B == null ? void 0 : B.current) == null ? void 0 : ne.bearing), this.tableData.seaLevel.push(this.roundPrecision(B == null ? void 0 : B.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(B == null ? void 0 : B.sst, 0) ?? "-"), this.tableData.weatherUrls.push((fe = B == null ? void 0 : B.weather) == null ? void 0 : fe.url), this.tableData.weatherNames.push(((xe = B == null ? void 0 : B.weather) == null ? void 0 : xe.name) ?? "-");
|
|
6708
6704
|
}
|
|
6709
6705
|
});
|
|
6710
6706
|
},
|
|
@@ -6830,7 +6826,7 @@ const _i = {
|
|
|
6830
6826
|
class: "main-box flex-center"
|
|
6831
6827
|
};
|
|
6832
6828
|
function Qr(a, e, t, r, i, s) {
|
|
6833
|
-
var d, h, p,
|
|
6829
|
+
var d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie, ie, J, P, Ce, K, Z, Se, S, Ae, Me, Te, Qe, M, O, Ge, Ue, oe, Ne, tt, at, it, rt, st, ot;
|
|
6834
6830
|
const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
|
|
6835
6831
|
return Fe((g(), y("div", Bi, [
|
|
6836
6832
|
o("div", Ii, [
|
|
@@ -6875,7 +6871,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6875
6871
|
F(c, {
|
|
6876
6872
|
placement: "top",
|
|
6877
6873
|
effect: "light",
|
|
6878
|
-
content: (
|
|
6874
|
+
content: (v = (p = i.currentHourData) == null ? void 0 : p.weather) == null ? void 0 : v.name,
|
|
6879
6875
|
"show-after": 1e3
|
|
6880
6876
|
}, {
|
|
6881
6877
|
default: Pe(() => {
|
|
@@ -7304,7 +7300,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7304
7300
|
[Oe, i.activeIndex === 4]
|
|
7305
7301
|
])
|
|
7306
7302
|
], 512), [
|
|
7307
|
-
[Oe, ((z = (
|
|
7303
|
+
[Oe, ((z = (b = i.tableData) == null ? void 0 : b.hours) == null ? void 0 : z.length) > 0 && i.showTables]
|
|
7308
7304
|
]),
|
|
7309
7305
|
Fe(o("div", wr, [
|
|
7310
7306
|
o("div", vr, [
|
|
@@ -8712,21 +8708,21 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8712
8708
|
var t, r, i, s, n, l, c, d, h, p;
|
|
8713
8709
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
8714
8710
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8715
|
-
const
|
|
8716
|
-
this.pointMarkers[
|
|
8711
|
+
const v = this.geojson.filter((I) => I.id === e.split("-")[0])[0];
|
|
8712
|
+
this.pointMarkers[v.id].filter((I) => {
|
|
8717
8713
|
var _;
|
|
8718
8714
|
return ((_ = I._element) == null ? void 0 : _.id) === e;
|
|
8719
8715
|
})[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
|
|
8720
8716
|
let E;
|
|
8721
|
-
|
|
8717
|
+
v.features.forEach((I, _) => {
|
|
8722
8718
|
if (I.geometry.type === "Point" && I.properties.id == e.split("-")[1]) {
|
|
8723
8719
|
E = _;
|
|
8724
8720
|
return;
|
|
8725
8721
|
}
|
|
8726
8722
|
});
|
|
8727
|
-
const f =
|
|
8723
|
+
const f = v.features.filter((I) => I.geometry.type === "Point");
|
|
8728
8724
|
this.handleTmpPointUpdate(
|
|
8729
|
-
|
|
8725
|
+
v,
|
|
8730
8726
|
f[E - 1],
|
|
8731
8727
|
{ lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat, properties: f[E].properties },
|
|
8732
8728
|
E === f.length - 1 ? void 0 : f[E + 1]
|
|
@@ -8737,13 +8733,13 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8737
8733
|
var t, r, i, s, n, l, c, d, h, p;
|
|
8738
8734
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
8739
8735
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8740
|
-
const
|
|
8741
|
-
this.pointMarkers[
|
|
8736
|
+
const v = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
|
|
8737
|
+
this.pointMarkers[v.id].filter((f) => {
|
|
8742
8738
|
var I;
|
|
8743
8739
|
return ((I = f._element) == null ? void 0 : I.id) === e;
|
|
8744
8740
|
})[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
|
|
8745
|
-
const E =
|
|
8746
|
-
E.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat],
|
|
8741
|
+
const E = v.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
|
|
8742
|
+
E.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat], v.features = v.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(v);
|
|
8747
8743
|
}
|
|
8748
8744
|
},
|
|
8749
8745
|
handleContextmenu(a) {
|
|
@@ -8792,9 +8788,9 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8792
8788
|
for (let i = 1; i < e.length; i++) {
|
|
8793
8789
|
const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h = je.calculateDistance(c, d, l.mode === "RL", 4), p = je.calculateBearing(c, d, l.mode === "RL", 2);
|
|
8794
8790
|
t = le.roundPrecision(t + h, 2);
|
|
8795
|
-
let
|
|
8796
|
-
l.mode === "RL" ?
|
|
8797
|
-
const x = Q.lineString(
|
|
8791
|
+
let v;
|
|
8792
|
+
l.mode === "RL" ? v = le.convertToMonotonicLng([c, d]) : v = le.convertToMonotonicLng(je.interpolateCoordinates(c, d, 200));
|
|
8793
|
+
const x = Q.lineString(v.map((E) => [E.lng, E.lat]));
|
|
8798
8794
|
x.properties.dist = h, x.properties.bearing = p, x.properties.total = t, r.push(x);
|
|
8799
8795
|
}
|
|
8800
8796
|
e.push(...r), a.total = t;
|
|
@@ -8809,16 +8805,16 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8809
8805
|
s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8810
8806
|
let p;
|
|
8811
8807
|
c.mode === "RL" ? p = le.convertToMonotonicLng([d, h]) : p = le.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
|
|
8812
|
-
const
|
|
8813
|
-
|
|
8808
|
+
const v = Q.lineString(p.map((x) => [x.lng, x.lat]));
|
|
8809
|
+
v.properties.dist = s, v.properties.bearing = n, i.features.push(v);
|
|
8814
8810
|
}
|
|
8815
8811
|
if (r) {
|
|
8816
8812
|
const c = t.properties, d = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
8817
8813
|
s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8818
8814
|
let p;
|
|
8819
8815
|
c.mode === "RL" ? p = le.convertToMonotonicLng([d, h]) : p = le.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
|
|
8820
|
-
const
|
|
8821
|
-
|
|
8816
|
+
const v = Q.lineString(p.map((x) => [x.lng, x.lat]));
|
|
8817
|
+
v.properties.dist = s, v.properties.bearing = n, i.features.push(v);
|
|
8822
8818
|
}
|
|
8823
8819
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
8824
8820
|
type: "geojson",
|
|
@@ -8930,11 +8926,11 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8930
8926
|
}
|
|
8931
8927
|
},
|
|
8932
8928
|
handleClear(a, e = !0) {
|
|
8933
|
-
var s, n, l, c, d, h, p,
|
|
8929
|
+
var s, n, l, c, d, h, p, v, x;
|
|
8934
8930
|
const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
|
|
8935
8931
|
(s = this.map) != null && s.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[a.id]) == null || d.remove(), this.closeMarkers[a.id] = void 0, (h = this.pointMarkers[a.id]) == null || h.forEach((E) => {
|
|
8936
8932
|
E == null || E.remove();
|
|
8937
|
-
}), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((
|
|
8933
|
+
}), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((v = this.map) != null && v.getSource(t)) && this.map.removeSource(t), e && ((x = this.map) != null && x.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
8938
8934
|
}
|
|
8939
8935
|
}
|
|
8940
8936
|
};
|
|
@@ -9305,11 +9301,11 @@ const js = {
|
|
|
9305
9301
|
},
|
|
9306
9302
|
activeWeatherLayers: {
|
|
9307
9303
|
handler() {
|
|
9308
|
-
var t, r, i, s, n, l, c, d, h, p,
|
|
9304
|
+
var t, r, i, s, n, l, c, d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z;
|
|
9309
9305
|
if (!this.map)
|
|
9310
9306
|
return !1;
|
|
9311
9307
|
const a = this.activeWeatherLayers.some((D) => D.key === "wind" && D.particle === !0 || D.key === "current" && D.particle === !0 || D.key === "ice-edge" || D.key === "ice-thickness" || D.key === "ice-cover" || D.key === "temp" || D.key === "water-temp"), e = this.activeWeatherLayers.some((D) => D.key === "visibility" || D.key === "precip3h");
|
|
9312
|
-
this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((
|
|
9308
|
+
this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((v = this.map) != null && v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((x = this.viewport) == null ? void 0 : x.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((I = this.map) == null || I.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (f = this.viewport) == null ? void 0 : f.rampColorLayer))) : ((A = (_ = this.map) == null ? void 0 : _.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || A.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (m = (w = this.map) == null ? void 0 : w.getLayer(this.enc)) == null || m.setLayoutProperty("visibility", "visible") : ((u = (L = this.map) == null ? void 0 : L.getLayer("i4")) == null || u.setLayoutProperty("visibility", "none"), (z = (b = this.map) == null ? void 0 : b.getLayer("hi")) == null || z.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
|
|
9313
9309
|
},
|
|
9314
9310
|
immediate: !0
|
|
9315
9311
|
},
|
|
@@ -9361,7 +9357,7 @@ const js = {
|
|
|
9361
9357
|
},
|
|
9362
9358
|
methods: {
|
|
9363
9359
|
async fetchWeatherLayers(a = { tropicals: !1 }) {
|
|
9364
|
-
var i, s, n, l, c, d, h, p,
|
|
9360
|
+
var i, s, n, l, c, d, h, p, v;
|
|
9365
9361
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
9366
9362
|
let t = 0, r = 0;
|
|
9367
9363
|
if (this.map) {
|
|
@@ -9383,25 +9379,25 @@ const js = {
|
|
|
9383
9379
|
});
|
|
9384
9380
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l = w == null ? void 0 : w.data) == null ? void 0 : l.code) === 0) {
|
|
9385
9381
|
const m = (c = w == null ? void 0 : w.data) == null ? void 0 : c.data, L = [];
|
|
9386
|
-
for (const
|
|
9387
|
-
|
|
9388
|
-
He.get(m[
|
|
9382
|
+
for (const b in m)
|
|
9383
|
+
b !== "tropicals" && L.push(
|
|
9384
|
+
He.get(m[b], {
|
|
9389
9385
|
headers: {
|
|
9390
9386
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9391
|
-
key:
|
|
9387
|
+
key: b
|
|
9392
9388
|
},
|
|
9393
|
-
responseType: /\.(jpg|png)$/.test(m[
|
|
9389
|
+
responseType: /\.(jpg|png)$/.test(m[b]) ? "blob" : "json"
|
|
9394
9390
|
}).catch((z) => {
|
|
9395
|
-
console.log(`[${
|
|
9391
|
+
console.log(`[${b}] fetch layer error: ${z}`);
|
|
9396
9392
|
})
|
|
9397
9393
|
);
|
|
9398
9394
|
const u = await Promise.all(L);
|
|
9399
|
-
this.weatherLayers = {}, u.map((
|
|
9395
|
+
this.weatherLayers = {}, u.map((b) => {
|
|
9400
9396
|
var N, H, j, G;
|
|
9401
|
-
const z = ((N =
|
|
9397
|
+
const z = ((N = b == null ? void 0 : b.data) == null ? void 0 : N.data) || (b == null ? void 0 : b.data), D = (j = (H = b == null ? void 0 : b.config) == null ? void 0 : H.headers) == null ? void 0 : j.key;
|
|
9402
9398
|
D && z && (this.weatherLayers[D] = {
|
|
9403
9399
|
raw: z,
|
|
9404
|
-
type: ((G =
|
|
9400
|
+
type: ((G = b == null ? void 0 : b.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
|
|
9405
9401
|
etime: w.data.etime
|
|
9406
9402
|
});
|
|
9407
9403
|
}), m.tropicals && He.get(m.tropicals, {
|
|
@@ -9409,9 +9405,9 @@ const js = {
|
|
|
9409
9405
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9410
9406
|
key: "tropicals"
|
|
9411
9407
|
}
|
|
9412
|
-
}).then((
|
|
9408
|
+
}).then((b) => {
|
|
9413
9409
|
var N, H, j;
|
|
9414
|
-
const z = ct.convert2Geojson(((N =
|
|
9410
|
+
const z = ct.convert2Geojson(((N = b == null ? void 0 : b.data) == null ? void 0 : N.data) || (b == null ? void 0 : b.data)), D = (j = (H = b == null ? void 0 : b.config) == null ? void 0 : H.headers) == null ? void 0 : j.key;
|
|
9415
9411
|
this.weatherLayers[D] = {
|
|
9416
9412
|
data: z,
|
|
9417
9413
|
active: !0,
|
|
@@ -9432,7 +9428,7 @@ const js = {
|
|
|
9432
9428
|
};
|
|
9433
9429
|
}
|
|
9434
9430
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
9435
|
-
const m = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, L = (
|
|
9431
|
+
const m = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, L = (v = this.weatherLayers["current-speed"]) == null ? void 0 : v.raw;
|
|
9436
9432
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
9437
9433
|
type: "json",
|
|
9438
9434
|
direction: m,
|
|
@@ -9461,10 +9457,10 @@ const js = {
|
|
|
9461
9457
|
}
|
|
9462
9458
|
});
|
|
9463
9459
|
if (((e = p == null ? void 0 : p.data) == null ? void 0 : e.code) === 0) {
|
|
9464
|
-
const
|
|
9465
|
-
for (const f in
|
|
9460
|
+
const v = (t = p == null ? void 0 : p.data) == null ? void 0 : t.data, x = [];
|
|
9461
|
+
for (const f in v)
|
|
9466
9462
|
x.push(
|
|
9467
|
-
He.get(
|
|
9463
|
+
He.get(v[f], {
|
|
9468
9464
|
headers: {
|
|
9469
9465
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9470
9466
|
key: f
|
|
@@ -9485,10 +9481,10 @@ const js = {
|
|
|
9485
9481
|
}
|
|
9486
9482
|
});
|
|
9487
9483
|
if (((r = p == null ? void 0 : p.data) == null ? void 0 : r.code) === 0) {
|
|
9488
|
-
const
|
|
9489
|
-
for (const f in
|
|
9484
|
+
const v = (i = p == null ? void 0 : p.data) == null ? void 0 : i.data, x = [];
|
|
9485
|
+
for (const f in v)
|
|
9490
9486
|
x.push(
|
|
9491
|
-
He.get(
|
|
9487
|
+
He.get(v[f], {
|
|
9492
9488
|
headers: {
|
|
9493
9489
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9494
9490
|
key: f
|
|
@@ -9553,7 +9549,7 @@ const js = {
|
|
|
9553
9549
|
);
|
|
9554
9550
|
},
|
|
9555
9551
|
handleDrawWeather4Json() {
|
|
9556
|
-
var d, h, p,
|
|
9552
|
+
var d, h, p, v, x, E;
|
|
9557
9553
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
9558
9554
|
let e = 0, t = 0;
|
|
9559
9555
|
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = le.convertToStdLng(r._sw.lng), n = le.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
|
|
@@ -9567,37 +9563,37 @@ const js = {
|
|
|
9567
9563
|
for (const m in A)
|
|
9568
9564
|
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9569
9565
|
const L = A[m].lng;
|
|
9570
|
-
s > n ? L.forEach((u,
|
|
9566
|
+
s > n ? L.forEach((u, b) => {
|
|
9571
9567
|
var z, D, N, H, j, G;
|
|
9572
9568
|
if (i < 2) {
|
|
9573
9569
|
if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
|
|
9574
9570
|
const W = Q.point([u, m], {
|
|
9575
|
-
val: ((z = A[m].val) == null ? void 0 : z[
|
|
9576
|
-
spd: (N = A[m].spd) == null ? void 0 : N[
|
|
9571
|
+
val: ((z = A[m].val) == null ? void 0 : z[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
|
|
9572
|
+
spd: (N = A[m].spd) == null ? void 0 : N[b]
|
|
9577
9573
|
});
|
|
9578
9574
|
_.push(W);
|
|
9579
9575
|
}
|
|
9580
9576
|
} else if ((u >= s && u <= 180 || u >= -180 && u <= n) && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9581
9577
|
const W = Q.point([u, m], {
|
|
9582
|
-
val: ((H = A[m].val) == null ? void 0 : H[
|
|
9583
|
-
spd: (G = A[m].spd) == null ? void 0 : G[
|
|
9578
|
+
val: ((H = A[m].val) == null ? void 0 : H[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
|
|
9579
|
+
spd: (G = A[m].spd) == null ? void 0 : G[b]
|
|
9584
9580
|
});
|
|
9585
9581
|
_.push(W);
|
|
9586
9582
|
}
|
|
9587
|
-
}) : L.forEach((u,
|
|
9583
|
+
}) : L.forEach((u, b) => {
|
|
9588
9584
|
var z, D, N, H, j, G;
|
|
9589
9585
|
if (s < 2) {
|
|
9590
9586
|
if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
|
|
9591
9587
|
const W = Q.point([u, m], {
|
|
9592
|
-
val: ((z = A[m].val) == null ? void 0 : z[
|
|
9593
|
-
spd: (N = A[m].spd) == null ? void 0 : N[
|
|
9588
|
+
val: ((z = A[m].val) == null ? void 0 : z[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
|
|
9589
|
+
spd: (N = A[m].spd) == null ? void 0 : N[b]
|
|
9594
9590
|
});
|
|
9595
9591
|
_.push(W);
|
|
9596
9592
|
}
|
|
9597
9593
|
} else if (u >= s && u <= n && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9598
9594
|
const W = Q.point([u, m], {
|
|
9599
|
-
val: ((H = A[m].val) == null ? void 0 : H[
|
|
9600
|
-
spd: (G = A[m].spd) == null ? void 0 : G[
|
|
9595
|
+
val: ((H = A[m].val) == null ? void 0 : H[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
|
|
9596
|
+
spd: (G = A[m].spd) == null ? void 0 : G[b]
|
|
9601
9597
|
});
|
|
9602
9598
|
_.push(W);
|
|
9603
9599
|
}
|
|
@@ -9610,9 +9606,9 @@ const js = {
|
|
|
9610
9606
|
const m = [];
|
|
9611
9607
|
for (const L in (p = w.raw) == null ? void 0 : p.LineString) {
|
|
9612
9608
|
const u = w.raw.LineString[L];
|
|
9613
|
-
for (const
|
|
9609
|
+
for (const b of u)
|
|
9614
9610
|
m.push(
|
|
9615
|
-
Q.lineString(
|
|
9611
|
+
Q.lineString(b, {
|
|
9616
9612
|
val: Number(L)
|
|
9617
9613
|
})
|
|
9618
9614
|
);
|
|
@@ -9627,41 +9623,41 @@ const js = {
|
|
|
9627
9623
|
}
|
|
9628
9624
|
} else if (f === "current" && this.showCurrentIsoband) {
|
|
9629
9625
|
I = !0;
|
|
9630
|
-
const A = ((
|
|
9626
|
+
const A = ((v = this.weatherLayers[f]) == null ? void 0 : v.direction) || {};
|
|
9631
9627
|
for (const m in A)
|
|
9632
9628
|
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9633
9629
|
const L = A[m].lng;
|
|
9634
|
-
s > n ? L.forEach((u,
|
|
9630
|
+
s > n ? L.forEach((u, b) => {
|
|
9635
9631
|
var z, D, N, H, j, G;
|
|
9636
9632
|
if (i < 2) {
|
|
9637
9633
|
if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
|
|
9638
9634
|
const W = Q.point([u, m], {
|
|
9639
|
-
val: ((z = A[m].val) == null ? void 0 : z[
|
|
9640
|
-
spd: (N = A[m].spd) == null ? void 0 : N[
|
|
9635
|
+
val: ((z = A[m].val) == null ? void 0 : z[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
|
|
9636
|
+
spd: (N = A[m].spd) == null ? void 0 : N[b]
|
|
9641
9637
|
});
|
|
9642
9638
|
_.push(W);
|
|
9643
9639
|
}
|
|
9644
9640
|
} else if ((u >= s && u <= 180 || u >= -180 && u <= n) && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9645
9641
|
const W = Q.point([u, m], {
|
|
9646
|
-
val: ((H = A[m].val) == null ? void 0 : H[
|
|
9647
|
-
spd: (G = A[m].spd) == null ? void 0 : G[
|
|
9642
|
+
val: ((H = A[m].val) == null ? void 0 : H[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
|
|
9643
|
+
spd: (G = A[m].spd) == null ? void 0 : G[b]
|
|
9648
9644
|
});
|
|
9649
9645
|
_.push(W);
|
|
9650
9646
|
}
|
|
9651
|
-
}) : L.forEach((u,
|
|
9647
|
+
}) : L.forEach((u, b) => {
|
|
9652
9648
|
var z, D, N, H, j, G;
|
|
9653
9649
|
if (s < 2) {
|
|
9654
9650
|
if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
|
|
9655
9651
|
const W = Q.point([u, m], {
|
|
9656
|
-
val: ((z = A[m].val) == null ? void 0 : z[
|
|
9657
|
-
spd: (N = A[m].spd) == null ? void 0 : N[
|
|
9652
|
+
val: ((z = A[m].val) == null ? void 0 : z[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
|
|
9653
|
+
spd: (N = A[m].spd) == null ? void 0 : N[b]
|
|
9658
9654
|
});
|
|
9659
9655
|
_.push(W);
|
|
9660
9656
|
}
|
|
9661
9657
|
} else if (u >= s && u <= n && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9662
9658
|
const W = Q.point([u, m], {
|
|
9663
|
-
val: ((H = A[m].val) == null ? void 0 : H[
|
|
9664
|
-
spd: (G = A[m].spd) == null ? void 0 : G[
|
|
9659
|
+
val: ((H = A[m].val) == null ? void 0 : H[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
|
|
9660
|
+
spd: (G = A[m].spd) == null ? void 0 : G[b]
|
|
9665
9661
|
});
|
|
9666
9662
|
_.push(W);
|
|
9667
9663
|
}
|
|
@@ -9673,8 +9669,8 @@ const js = {
|
|
|
9673
9669
|
if (!w.data) {
|
|
9674
9670
|
const L = [];
|
|
9675
9671
|
for (const u in (x = w.raw) == null ? void 0 : x.Polygon) {
|
|
9676
|
-
const
|
|
9677
|
-
for (const z of
|
|
9672
|
+
const b = w.raw.Polygon[u];
|
|
9673
|
+
for (const z of b)
|
|
9678
9674
|
L.push(
|
|
9679
9675
|
Q.polygon(z, {
|
|
9680
9676
|
val: Number(u)
|
|
@@ -9693,11 +9689,11 @@ const js = {
|
|
|
9693
9689
|
if (w > l && w < c && (!(i <= this.zoom) || w % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9694
9690
|
const m = A[w].lng;
|
|
9695
9691
|
s > n ? m.forEach((L, u) => {
|
|
9696
|
-
var
|
|
9692
|
+
var b, z, D, N;
|
|
9697
9693
|
if (i < 2) {
|
|
9698
9694
|
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
9699
9695
|
const H = Q.point([L, w], {
|
|
9700
|
-
dir: ((
|
|
9696
|
+
dir: ((b = A[w].val) == null ? void 0 : b[u]) || ((z = A[w].dir) == null ? void 0 : z[u]),
|
|
9701
9697
|
spd: A[w].spd[u]
|
|
9702
9698
|
});
|
|
9703
9699
|
_.push(H);
|
|
@@ -9710,11 +9706,11 @@ const js = {
|
|
|
9710
9706
|
_.push(H);
|
|
9711
9707
|
}
|
|
9712
9708
|
}) : m.forEach((L, u) => {
|
|
9713
|
-
var
|
|
9709
|
+
var b, z, D, N;
|
|
9714
9710
|
if (i < 2) {
|
|
9715
9711
|
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
9716
9712
|
const H = Q.point([L, w], {
|
|
9717
|
-
dir: ((
|
|
9713
|
+
dir: ((b = A[w].val) == null ? void 0 : b[u]) || ((z = A[w].dir) == null ? void 0 : z[u]),
|
|
9718
9714
|
spd: A[w].spd[u]
|
|
9719
9715
|
});
|
|
9720
9716
|
_.push(H);
|
|
@@ -9835,8 +9831,8 @@ const js = {
|
|
|
9835
9831
|
this.handleBeforeLayerToggle();
|
|
9836
9832
|
},
|
|
9837
9833
|
handleBeforeLayerToggle() {
|
|
9838
|
-
var a, e, t, r, i, s, n, l, c, d, h, p,
|
|
9839
|
-
(a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (
|
|
9834
|
+
var a, e, t, r, i, s, n, l, c, d, h, p, v, x, E, f;
|
|
9835
|
+
(a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (v = this.otherLayers) != null && v.chinaRoute || (x = this.otherLayers) != null && x["voluntary-reporting-area"] || (E = this.otherLayers) != null && E["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
9840
9836
|
},
|
|
9841
9837
|
handleDateChange(a = { tropicals: !1 }) {
|
|
9842
9838
|
this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -9870,8 +9866,8 @@ const js = {
|
|
|
9870
9866
|
}
|
|
9871
9867
|
},
|
|
9872
9868
|
handle3dToggle(a) {
|
|
9873
|
-
var e, t, r, i, s, n, l, c, d, h, p,
|
|
9874
|
-
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (
|
|
9869
|
+
var e, t, r, i, s, n, l, c, d, h, p, v, x, E, f, I, _, A, w, m;
|
|
9870
|
+
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (v = this.map) != null && v.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((x = this.map) != null && x.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((I = this.viewport) == null ? void 0 : I.particleLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((m = this.map) == null || m.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
9875
9871
|
},
|
|
9876
9872
|
handleParticle(a) {
|
|
9877
9873
|
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
|
|
@@ -9896,7 +9892,7 @@ const js = {
|
|
|
9896
9892
|
};
|
|
9897
9893
|
function Gs(a, e, t, r, i, s) {
|
|
9898
9894
|
var V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie, ie, J, P, Ce, K, Z, Se, S, Ae, Me, Te, Qe, M, O, Ge, Ue;
|
|
9899
|
-
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"),
|
|
9895
|
+
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), v = R("IdmSwell"), x = R("IdmPrmsl"), E = R("IdmIceEdge"), f = R("IdmIceCover"), I = R("IdmIceThickness"), _ = R("IdmTropicals"), A = R("IdmCurrents"), w = R("IdmCurrentParticle"), m = R("IdmWindBarb"), L = R("IdmWindParticle"), u = R("IdmPrecip3h"), b = R("IdmVisibility"), z = R("IdmWaterTemp"), D = R("IdmTemp"), N = R("IdmWarZone"), H = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), ce = R("IdmLoadLine"), re = R("IdmTimezone"), de = R("IdmVRA"), we = R("IdmSpecialArea"), pe = R("IdmTerminator"), ve = R("IdmLatLng"), me = R("IdmMeasure"), U = R("IdmPoint");
|
|
9900
9896
|
return t.map ? (g(), y("div", Ws, [
|
|
9901
9897
|
F(n, X({
|
|
9902
9898
|
ref: "layer",
|
|
@@ -9961,7 +9957,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9961
9957
|
"before-layer": t.beforeLayer,
|
|
9962
9958
|
"active-weather-layers": i.activeWeatherLayers
|
|
9963
9959
|
}, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "active-weather-layers"]),
|
|
9964
|
-
F(
|
|
9960
|
+
F(v, X({
|
|
9965
9961
|
map: t.map,
|
|
9966
9962
|
swell: (be = i.weatherLayers) == null ? void 0 : be.swell,
|
|
9967
9963
|
"before-layer": t.beforeLayer,
|
|
@@ -10046,7 +10042,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10046
10042
|
"before-layer": t.beforeLayer,
|
|
10047
10043
|
"toggle-version": t.toggleVersion
|
|
10048
10044
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10049
|
-
F(
|
|
10045
|
+
F(b, X({
|
|
10050
10046
|
viewport: i.viewport,
|
|
10051
10047
|
factor: (Ce = i.weatherLayers) == null ? void 0 : Ce.visibility,
|
|
10052
10048
|
"before-layer": t.beforeLayer,
|