@idmwx/idmui-gl3 3.4.3 → 3.4.5
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 +124 -122
- package/dist/index.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/package.json +70 -70
package/dist/index.js
CHANGED
|
@@ -144,8 +144,8 @@ const k = (i, e) => {
|
|
|
144
144
|
mt
|
|
145
145
|
], ft = { class: "bar-item tool-bars" }, yt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), gt = [
|
|
146
146
|
yt
|
|
147
|
-
],
|
|
148
|
-
|
|
147
|
+
], bt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), vt = [
|
|
148
|
+
bt
|
|
149
149
|
], _t = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), Lt = [
|
|
150
150
|
_t
|
|
151
151
|
], wt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), xt = [
|
|
@@ -182,7 +182,7 @@ function Ft(i, e, t, r, a, s) {
|
|
|
182
182
|
l("div", {
|
|
183
183
|
class: z(a.showPoint ? "menu-icon active" : "menu-icon"),
|
|
184
184
|
onClick: e[2] || (e[2] = (...o) => s.handlePointToggle && s.handlePointToggle(...o))
|
|
185
|
-
},
|
|
185
|
+
}, vt, 2),
|
|
186
186
|
l("div", {
|
|
187
187
|
class: z(a.showCoord ? "menu-icon active" : "menu-icon"),
|
|
188
188
|
onClick: e[3] || (e[3] = (...o) => s.handleCoordToggle && s.handleCoordToggle(...o))
|
|
@@ -559,10 +559,12 @@ class Ue {
|
|
|
559
559
|
e.setCoordinates(this.getBoundLngLat()), e = this.map.getSource(this.particleSource), e.setCoordinates(this.getBoundLngLat()), this.rampColorCanvas.width = this.map._canvas.clientWidth, this.rampColorCanvas.height = this.map._canvas.clientHeight, this.particleCanvas.width = this.map._canvas.clientWidth, this.particleCanvas.height = this.map._canvas.clientHeight;
|
|
560
560
|
}
|
|
561
561
|
toggle(e) {
|
|
562
|
-
this.map.
|
|
562
|
+
const t = this.map.getLayoutProperty(this.rampColorLayer, "visibility"), r = e ? "visible" : "none";
|
|
563
|
+
t !== r && this.map.setLayoutProperty(this.rampColorLayer, "visibility", r);
|
|
563
564
|
}
|
|
564
565
|
toggleParticle(e) {
|
|
565
|
-
this.map.
|
|
566
|
+
const t = this.map.getLayoutProperty(this.particleLayer, "visibility"), r = e ? "visible" : "none";
|
|
567
|
+
t !== r && this.map.setLayoutProperty(this.particleLayer, "visibility", r);
|
|
566
568
|
}
|
|
567
569
|
}
|
|
568
570
|
class le {
|
|
@@ -701,12 +703,12 @@ class le {
|
|
|
701
703
|
try {
|
|
702
704
|
const f = t.getUniformLocation(r, "u_resolution"), d = t.getUniformLocation(r, "u_image"), m = t.getUniformLocation(r, "u_color");
|
|
703
705
|
if (t.useProgram(r), t.uniform2f(f, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, a), t.uniform1i(d, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, s), t.uniform1i(m, 1), o != null && o.uvRange && (o != null && o.sRange)) {
|
|
704
|
-
const p = t.getUniformLocation(r, "u_range_u_v"),
|
|
705
|
-
t.uniform2f(p, o.uvRange[0], o.uvRange[1]), t.uniform2f(
|
|
706
|
+
const p = t.getUniformLocation(r, "u_range_u_v"), v = t.getUniformLocation(r, "u_range_s");
|
|
707
|
+
t.uniform2f(p, o.uvRange[0], o.uvRange[1]), t.uniform2f(v, o.sRange[0], o.sRange[1]);
|
|
706
708
|
}
|
|
707
709
|
const u = e.getBoundPixel(), g = e.map.getZoom() + 1, y = e.getWorldCopy(u, g);
|
|
708
710
|
for (const p of y) {
|
|
709
|
-
const
|
|
711
|
+
const v = (p[0] - u[0]) * e.ratio, b = (p[1] - u[3]) * e.ratio, L = p[2] * e.ratio, [P, _, I, $] = [v, L + v, b, L + b], D = new Float32Array([P, I, _, I, P, $, P, $, _, I, _, $]);
|
|
710
712
|
t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, D, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
711
713
|
}
|
|
712
714
|
} catch (f) {
|
|
@@ -1030,8 +1032,8 @@ const Kt = {
|
|
|
1030
1032
|
}
|
|
1031
1033
|
},
|
|
1032
1034
|
handleClear() {
|
|
1033
|
-
var i, e, t, r, a, s, n;
|
|
1034
|
-
(i = this.viewport) == null || i.toggle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (
|
|
1035
|
+
var i, e, t, r, a, s, n, o;
|
|
1036
|
+
(i = this.viewport) == null || i.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (t = this.viewport) == null ? void 0 : t.map) == null || r.off("resize", this.handleResize), (s = (a = this.viewport) == null ? void 0 : a.map) == null || s.off("movestart", this.handlePause), (o = (n = this.viewport) == null ? void 0 : n.map) == null || o.off("moveend", this.handlePlay), this.handlePause();
|
|
1035
1037
|
},
|
|
1036
1038
|
handleSetup() {
|
|
1037
1039
|
if (!this.context) {
|
|
@@ -1114,7 +1116,7 @@ const Kt = {
|
|
|
1114
1116
|
});
|
|
1115
1117
|
}
|
|
1116
1118
|
}
|
|
1117
|
-
}, re = (i) => (U("data-v-
|
|
1119
|
+
}, re = (i) => (U("data-v-bc5ff165"), i = i(), G(), i), Qt = { key: 0 }, ei = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "kts", -1)), ti = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "0", -1)), ii = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "5", -1)), ai = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "10", -1)), ri = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "20", -1)), si = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "30", -1)), oi = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "40", -1)), ni = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "60", -1)), li = [
|
|
1118
1120
|
ei,
|
|
1119
1121
|
ti,
|
|
1120
1122
|
ii,
|
|
@@ -1133,7 +1135,7 @@ function hi(i, e, t, r, a, s) {
|
|
|
1133
1135
|
}, li, 4)
|
|
1134
1136
|
])) : j("", !0);
|
|
1135
1137
|
}
|
|
1136
|
-
const ci = /* @__PURE__ */ k(Kt, [["render", hi], ["__scopeId", "data-v-
|
|
1138
|
+
const ci = /* @__PURE__ */ k(Kt, [["render", hi], ["__scopeId", "data-v-bc5ff165"]]);
|
|
1137
1139
|
const di = {
|
|
1138
1140
|
name: "IdmCurrent",
|
|
1139
1141
|
props: {
|
|
@@ -1342,8 +1344,8 @@ function gi(i, e, t, r, a, s) {
|
|
|
1342
1344
|
], 4)
|
|
1343
1345
|
])) : j("", !0);
|
|
1344
1346
|
}
|
|
1345
|
-
const
|
|
1346
|
-
const
|
|
1347
|
+
const bi = /* @__PURE__ */ k(di, [["render", gi], ["__scopeId", "data-v-ce5e09b8"]]);
|
|
1348
|
+
const vi = {
|
|
1347
1349
|
name: "IdmCurrentParticle",
|
|
1348
1350
|
props: {
|
|
1349
1351
|
factor: {
|
|
@@ -1425,8 +1427,8 @@ const bi = {
|
|
|
1425
1427
|
}
|
|
1426
1428
|
},
|
|
1427
1429
|
handleClear() {
|
|
1428
|
-
var i, e, t, r, a, s, n;
|
|
1429
|
-
(i = this.viewport) == null || i.toggle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (
|
|
1430
|
+
var i, e, t, r, a, s, n, o;
|
|
1431
|
+
(i = this.viewport) == null || i.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (t = this.viewport) == null ? void 0 : t.map) == null || r.off("resize", this.handleResize), (s = (a = this.viewport) == null ? void 0 : a.map) == null || s.off("movestart", this.handlePause), (o = (n = this.viewport) == null ? void 0 : n.map) == null || o.off("moveend", this.handlePlay), this.handlePause();
|
|
1430
1432
|
},
|
|
1431
1433
|
handleSetup() {
|
|
1432
1434
|
if (!this.context) {
|
|
@@ -1504,7 +1506,7 @@ const bi = {
|
|
|
1504
1506
|
});
|
|
1505
1507
|
}
|
|
1506
1508
|
}
|
|
1507
|
-
}, he = (i) => (U("data-v-
|
|
1509
|
+
}, he = (i) => (U("data-v-5f45c14c"), i = i(), G(), i), _i = { key: 0 }, Li = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "kts", -1)), wi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0", -1)), xi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0.4", -1)), Ci = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0.8", -1)), Si = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "1.6", -1)), Pi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "2", -1)), Ti = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ei = [
|
|
1508
1510
|
Li,
|
|
1509
1511
|
wi,
|
|
1510
1512
|
xi,
|
|
@@ -1522,7 +1524,7 @@ function ki(i, e, t, r, a, s) {
|
|
|
1522
1524
|
}, Ei, 4)
|
|
1523
1525
|
])) : j("", !0);
|
|
1524
1526
|
}
|
|
1525
|
-
const Ri = /* @__PURE__ */ k(
|
|
1527
|
+
const Ri = /* @__PURE__ */ k(vi, [["render", ki], ["__scopeId", "data-v-5f45c14c"]]), Ii = {
|
|
1526
1528
|
name: "IdmSigWave",
|
|
1527
1529
|
props: {
|
|
1528
1530
|
map: {
|
|
@@ -1969,7 +1971,7 @@ const Vi = {
|
|
|
1969
1971
|
type: String
|
|
1970
1972
|
}
|
|
1971
1973
|
},
|
|
1972
|
-
emits: ["tropical"],
|
|
1974
|
+
emits: ["tropical", "tropicalProbability"],
|
|
1973
1975
|
data() {
|
|
1974
1976
|
return {
|
|
1975
1977
|
source: "tropicals-source",
|
|
@@ -2034,11 +2036,11 @@ const Vi = {
|
|
|
2034
2036
|
var u, g;
|
|
2035
2037
|
return ((u = m.geometry) == null ? void 0 : u.type) === "LineString" && ((g = m.properties) == null ? void 0 : g.type) === "forecast";
|
|
2036
2038
|
})[0]) == null ? void 0 : d.properties.model, f.forEach((m, u) => {
|
|
2037
|
-
var g, y, p,
|
|
2038
|
-
((g = m.geometry) == null ? void 0 : g.type) === "Point" && ((y = m.properties) == null ? void 0 : y.type) === "history" && (n = u, o = o === void 0 ? u : o), ((p = m.geometry) == null ? void 0 : p.type) === "Point" && ((
|
|
2039
|
+
var g, y, p, v, b, L;
|
|
2040
|
+
((g = m.geometry) == null ? void 0 : g.type) === "Point" && ((y = m.properties) == null ? void 0 : y.type) === "history" && (n = u, o = o === void 0 ? u : o), ((p = m.geometry) == null ? void 0 : p.type) === "Point" && ((v = m.properties) == null ? void 0 : v.type) === "forecast" && o === void 0 && (o = u), ((b = m.geometry) == null ? void 0 : b.type) === "LineString" && ((L = m.properties) == null ? void 0 : L.type) === "forecast" && (c = `${s}-${h}`);
|
|
2039
2041
|
}), f.map((m, u) => {
|
|
2040
|
-
var g, y, p,
|
|
2041
|
-
if (((g = m.geometry) == null ? void 0 : g.type) === "LineString" && ((y = m.properties) == null ? void 0 : y.type) === "forecast" && (m.properties.disabled = ((p = m.properties) == null ? void 0 : p.model) !== h), ((
|
|
2042
|
+
var g, y, p, v, b, L, P, _, I, $;
|
|
2043
|
+
if (((g = m.geometry) == null ? void 0 : g.type) === "LineString" && ((y = m.properties) == null ? void 0 : y.type) === "forecast" && (m.properties.disabled = ((p = m.properties) == null ? void 0 : p.model) !== h), ((v = m.geometry) == null ? void 0 : v.type) === "Point" && ((b = m.properties) == null ? void 0 : b.type) === "forecast" && (m.properties.disabled = ((L = m.properties) == null ? void 0 : L.category) !== c, m.properties.name = s), ((P = m.geometry) == null ? void 0 : P.type) === "Point" && ((_ = m.properties) == null ? void 0 : _.type) === "history") {
|
|
2042
2044
|
const D = (($ = (I = m.properties) == null ? void 0 : I.format) == null ? void 0 : $.slice(7, 12)) === q().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
|
|
2043
2045
|
m.properties.showHistoryLabel = D || u === n, m.properties.showNameLabel = u === n, m.properties.name = s;
|
|
2044
2046
|
}
|
|
@@ -2306,17 +2308,17 @@ const Vi = {
|
|
|
2306
2308
|
if (!((f = this.tropicals) != null && f.cached)) {
|
|
2307
2309
|
const d = et.interpolate(this.tropicals, 1), m = JSON.parse(JSON.stringify(d)), u = [];
|
|
2308
2310
|
m.forEach((g) => {
|
|
2309
|
-
var y, p,
|
|
2310
|
-
(y = g.properties) != null && y.name && !u.includes((p = g.properties) == null ? void 0 : p.name) && u.push((
|
|
2311
|
+
var y, p, v;
|
|
2312
|
+
(y = g.properties) != null && y.name && !u.includes((p = g.properties) == null ? void 0 : p.name) && u.push((v = g.properties) == null ? void 0 : v.name);
|
|
2311
2313
|
}), u.forEach((g) => {
|
|
2312
|
-
var
|
|
2313
|
-
const p = (
|
|
2314
|
+
var v;
|
|
2315
|
+
const p = (v = m.filter((b) => {
|
|
2314
2316
|
var L;
|
|
2315
|
-
return ((L =
|
|
2316
|
-
})[0]) == null ? void 0 :
|
|
2317
|
-
m.map((
|
|
2317
|
+
return ((L = b.properties) == null ? void 0 : L.name) === g;
|
|
2318
|
+
})[0]) == null ? void 0 : v.properties.model;
|
|
2319
|
+
m.map((b, L) => {
|
|
2318
2320
|
var P, _;
|
|
2319
|
-
return ((P =
|
|
2321
|
+
return ((P = b.properties) == null ? void 0 : P.name) === g && (b.properties.disabled = ((_ = b.properties) == null ? void 0 : _.model) !== p), b;
|
|
2320
2322
|
});
|
|
2321
2323
|
}), this.interpolateData = JSON.parse(JSON.stringify(m));
|
|
2322
2324
|
}
|
|
@@ -2328,7 +2330,7 @@ const Vi = {
|
|
|
2328
2330
|
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), (i = this.interpolateMarkers) == null || i.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));
|
|
2329
2331
|
},
|
|
2330
2332
|
handleDateChange() {
|
|
2331
|
-
var i, e, t, r, a, s, n, o, h, c, f, d, m, u, g, y, p,
|
|
2333
|
+
var i, e, t, r, a, s, n, o, h, c, f, d, m, u, g, y, p, v, b, L, P, _, I, $, D, O, W, H;
|
|
2332
2334
|
if ((i = this.interpolateMarkers) == null || i.forEach((Z) => Z == null ? void 0 : Z.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
2333
2335
|
const Z = q(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ee = this.interpolateData.filter((A) => A.properties.date === Z.format() && !A.properties.disabled), ce = this.handleComputePolygons(ee), te = C.featureCollection([...ee]);
|
|
2334
2336
|
ce.forEach((A) => {
|
|
@@ -2350,7 +2352,7 @@ const Vi = {
|
|
|
2350
2352
|
for (const A of ee)
|
|
2351
2353
|
if (!A.properties.disabled) {
|
|
2352
2354
|
let V = "#f44336";
|
|
2353
|
-
((o = (n = A.properties) == null ? void 0 : n.wind) == null ? void 0 : o.spd) < 17.2 ? V = "#03f869" : ((c = (h = A.properties) == null ? void 0 : h.wind) == null ? void 0 : c.spd) >= 17.2 && ((d = (f = A.properties) == null ? void 0 : f.wind) == null ? void 0 : d.spd) < 24.5 ? V = "#f2f202" : ((u = (m = A.properties) == null ? void 0 : m.wind) == null ? void 0 : u.spd) >= 24.5 && ((y = (g = A.properties) == null ? void 0 : g.wind) == null ? void 0 : y.spd) < 32.7 ? V = "#ff9100" : ((
|
|
2355
|
+
((o = (n = A.properties) == null ? void 0 : n.wind) == null ? void 0 : o.spd) < 17.2 ? V = "#03f869" : ((c = (h = A.properties) == null ? void 0 : h.wind) == null ? void 0 : c.spd) >= 17.2 && ((d = (f = A.properties) == null ? void 0 : f.wind) == null ? void 0 : d.spd) < 24.5 ? V = "#f2f202" : ((u = (m = A.properties) == null ? void 0 : m.wind) == null ? void 0 : u.spd) >= 24.5 && ((y = (g = A.properties) == null ? void 0 : g.wind) == null ? void 0 : y.spd) < 32.7 ? V = "#ff9100" : ((v = (p = A.properties) == null ? void 0 : p.wind) == null ? void 0 : v.spd) >= 32.7 && ((L = (b = A.properties) == null ? void 0 : b.wind) == null ? void 0 : L.spd) < 41.5 ? V = "#f44336" : ((_ = (P = A.properties) == null ? void 0 : P.wind) == null ? void 0 : _.spd) >= 41.5 && (($ = (I = A.properties) == null ? void 0 : I.wind) == null ? void 0 : $.spd) < 51 ? V = "#c604a4" : ((O = (D = A.properties) == null ? void 0 : D.wind) == null ? void 0 : O.spd) >= 51 ? V = "#6b05bb" : V = "#f44336";
|
|
2354
2356
|
const de = `<svg t="1719918955501"
|
|
2355
2357
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
2356
2358
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -2458,7 +2460,7 @@ const Vi = {
|
|
|
2458
2460
|
return C.lineToPolygon(a, { properties: t });
|
|
2459
2461
|
}
|
|
2460
2462
|
}
|
|
2461
|
-
}, Ge = (i) => (U("data-v-
|
|
2463
|
+
}, Ge = (i) => (U("data-v-bb8414b4"), i = i(), G(), i), Ui = {
|
|
2462
2464
|
id: "active-tropical",
|
|
2463
2465
|
class: "active-tropical"
|
|
2464
2466
|
}, Gi = { class: "header-box" }, Hi = { class: "main" }, Xi = { key: 0 }, Zi = { class: "sub" }, Ji = {
|
|
@@ -2473,9 +2475,9 @@ const Vi = {
|
|
|
2473
2475
|
}, ta = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), ia = { class: "row" }, aa = {
|
|
2474
2476
|
class: "col col-24",
|
|
2475
2477
|
style: { "justify-content": "flex-start" }
|
|
2476
|
-
}, ra = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), sa = { class: "forecast-models" }, oa = ["onClick"], na = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-
|
|
2478
|
+
}, ra = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), sa = { class: "forecast-models" }, oa = ["onClick"], na = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-bb8414b4></div><div class="row" style="padding:2px 10px;" data-v-bb8414b4><div class="legend" data-v-bb8414b4><div class="icon td" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>TD</div></div><div class="legend" data-v-bb8414b4><div class="icon ts" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>TS</div></div><div class="legend" data-v-bb8414b4><div class="icon sts" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>STS</div></div><div class="legend" data-v-bb8414b4><div class="icon ty" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>TY</div></div><div class="legend" data-v-bb8414b4><div class="icon sty" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>STY</div></div><div class="legend" data-v-bb8414b4><div class="icon supper-ty" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-bb8414b4><div class="legend" data-v-bb8414b4><div class="icon history" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>History</div></div><div class="legend" data-v-bb8414b4><div class="icon r7" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>35kts Radii</div></div><div class="legend" data-v-bb8414b4><div class="icon r10" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>50kts Radii</div></div></div>', 3), la = { class: "more" };
|
|
2477
2479
|
function ha(i, e, t, r, a, s) {
|
|
2478
|
-
var n, o, h, c, f, d, m, u, g, y, p,
|
|
2480
|
+
var n, o, h, c, f, d, m, u, g, y, p, v, b, L, P;
|
|
2479
2481
|
return ze((w(), x("div", Ui, [
|
|
2480
2482
|
l("div", Gi, [
|
|
2481
2483
|
l("div", {
|
|
@@ -2493,11 +2495,11 @@ function ha(i, e, t, r, a, s) {
|
|
|
2493
2495
|
l("div", qi, [
|
|
2494
2496
|
l("div", Ki, [
|
|
2495
2497
|
Qi,
|
|
2496
|
-
l("span", null, S(((
|
|
2498
|
+
l("span", null, S(((v = (p = a.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
|
|
2497
2499
|
]),
|
|
2498
2500
|
l("div", ea, [
|
|
2499
2501
|
ta,
|
|
2500
|
-
l("span", null, S(((L = (
|
|
2502
|
+
l("span", null, S(((L = (b = a.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : L.pressure) || "-") + "[hPa]", 1)
|
|
2501
2503
|
])
|
|
2502
2504
|
]),
|
|
2503
2505
|
l("div", ia, [
|
|
@@ -2536,7 +2538,7 @@ function ha(i, e, t, r, a, s) {
|
|
|
2536
2538
|
[Me, a.showTropicals]
|
|
2537
2539
|
]);
|
|
2538
2540
|
}
|
|
2539
|
-
const tt = /* @__PURE__ */ k(Vi, [["render", ha], ["__scopeId", "data-v-
|
|
2541
|
+
const tt = /* @__PURE__ */ k(Vi, [["render", ha], ["__scopeId", "data-v-bb8414b4"]]);
|
|
2540
2542
|
const ca = {
|
|
2541
2543
|
name: "IdmPrecip3h",
|
|
2542
2544
|
props: {
|
|
@@ -2638,15 +2640,15 @@ const ca = {
|
|
|
2638
2640
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
2639
2641
|
}
|
|
2640
2642
|
}
|
|
2641
|
-
}, se = (i) => (U("data-v-42b977ed"), i = i(), G(), i), da = { key: 0 }, pa = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "mm", -1)), ma = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "1.5", -1)), ua = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "2", -1)), fa = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "3", -1)), ya = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "7", -1)), ga = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "10", -1)),
|
|
2643
|
+
}, se = (i) => (U("data-v-42b977ed"), i = i(), G(), i), da = { key: 0 }, pa = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "mm", -1)), ma = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "1.5", -1)), ua = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "2", -1)), fa = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "3", -1)), ya = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "7", -1)), ga = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "10", -1)), ba = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "20", -1)), va = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "30", -1)), _a = [
|
|
2642
2644
|
pa,
|
|
2643
2645
|
ma,
|
|
2644
2646
|
ua,
|
|
2645
2647
|
fa,
|
|
2646
2648
|
ya,
|
|
2647
2649
|
ga,
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
+
ba,
|
|
2651
|
+
va
|
|
2650
2652
|
];
|
|
2651
2653
|
function La(i, e, t, r, a, s) {
|
|
2652
2654
|
var n;
|
|
@@ -3211,17 +3213,17 @@ const fr = {
|
|
|
3211
3213
|
}, Q = (i) => (U("data-v-8b51d938"), i = i(), G(), i), yr = {
|
|
3212
3214
|
id: "point-meteo",
|
|
3213
3215
|
class: "point-meteo"
|
|
3214
|
-
}, gr = { class: "meteo-box" },
|
|
3216
|
+
}, gr = { class: "meteo-box" }, br = { class: "header-box" }, vr = { class: "main" }, _r = { class: "sub" }, Lr = { class: "main-box" }, wr = { class: "flex-space" }, xr = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Cr = { class: "flex-space" }, Sr = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), Pr = { class: "flex-space" }, Tr = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Er = { class: "flex-space" }, kr = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), Rr = { class: "flex-space" }, Ir = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Current", -1)), Ar = { class: "flex-space" }, $r = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Dr = { class: "flex-space" }, zr = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Mr = { class: "flex-space" }, Br = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Or = { class: "flex-space" }, Wr = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Water Temp", -1));
|
|
3215
3217
|
function Nr(i, e, t, r, a, s) {
|
|
3216
|
-
var n, o, h, c, f, d, m, u, g, y, p,
|
|
3218
|
+
var n, o, h, c, f, d, m, u, g, y, p, v, b, L, P, _, I, $, D, O, W, H, Z, ee, ce, te, A, V, de, J, ne, ye, ge, be, ve, _e, Le, we, xe, Ce, Se, Pe, Te, Ee, ke, Re, Ie;
|
|
3217
3219
|
return ze((w(), x("div", yr, [
|
|
3218
3220
|
l("div", gr, [
|
|
3219
|
-
l("div",
|
|
3221
|
+
l("div", br, [
|
|
3220
3222
|
l("div", {
|
|
3221
3223
|
class: "iconfont close",
|
|
3222
3224
|
onClick: e[0] || (e[0] = (Oe) => a.showMeteo = !1)
|
|
3223
3225
|
}, ""),
|
|
3224
|
-
l("div",
|
|
3226
|
+
l("div", vr, S(s.computeLat((n = t.meteo) == null ? void 0 : n.lat)) + "," + S(s.computeLng((o = t.meteo) == null ? void 0 : o.lng)), 1),
|
|
3225
3227
|
l("div", _r, S(s.computeTime((h = t.meteo) == null ? void 0 : h.utc)), 1)
|
|
3226
3228
|
]),
|
|
3227
3229
|
l("div", Lr, [
|
|
@@ -3231,7 +3233,7 @@ function Nr(i, e, t, r, a, s) {
|
|
|
3231
3233
|
]),
|
|
3232
3234
|
l("div", Cr, [
|
|
3233
3235
|
Sr,
|
|
3234
|
-
l("span", null, S(((L = (
|
|
3236
|
+
l("span", null, S(((L = (b = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : L.direction) || "-") + "/" + S(s.roundPrecision((I = (_ = (P = t.meteo) == null ? void 0 : P.wave) == null ? void 0 : _.wd) == null ? void 0 : I.height, 1)) + "[m]/" + S(s.roundPrecision((O = (D = ($ = t.meteo) == null ? void 0 : $.wave) == null ? void 0 : D.wd) == null ? void 0 : O.period, 1)) + "[s]", 1)
|
|
3235
3237
|
]),
|
|
3236
3238
|
l("div", Pr, [
|
|
3237
3239
|
Tr,
|
|
@@ -3239,7 +3241,7 @@ function Nr(i, e, t, r, a, s) {
|
|
|
3239
3241
|
]),
|
|
3240
3242
|
l("div", Er, [
|
|
3241
3243
|
kr,
|
|
3242
|
-
l("span", null, S(((ye = (ne = (J = t.meteo) == null ? void 0 : J.wave) == null ? void 0 : ne.sig) == null ? void 0 : ye.direction) || "-") + "/" + S(s.roundPrecision((
|
|
3244
|
+
l("span", null, S(((ye = (ne = (J = t.meteo) == null ? void 0 : J.wave) == null ? void 0 : ne.sig) == null ? void 0 : ye.direction) || "-") + "/" + S(s.roundPrecision((ve = (be = (ge = t.meteo) == null ? void 0 : ge.wave) == null ? void 0 : be.sig) == null ? void 0 : ve.height, 1)) + "[m]/" + S(s.roundPrecision((we = (Le = (_e = t.meteo) == null ? void 0 : _e.wave) == null ? void 0 : Le.sig) == null ? void 0 : we.period, 1)) + "[s]", 1)
|
|
3243
3245
|
]),
|
|
3244
3246
|
l("div", Rr, [
|
|
3245
3247
|
Ir,
|
|
@@ -3917,7 +3919,7 @@ const us = /* @__PURE__ */ k(is, [["render", ms], ["__scopeId", "data-v-6fdfee96
|
|
|
3917
3919
|
function ys(i, e, t, r, a, s) {
|
|
3918
3920
|
return w(), x("div");
|
|
3919
3921
|
}
|
|
3920
|
-
const gs = /* @__PURE__ */ k(fs, [["render", ys]]),
|
|
3922
|
+
const gs = /* @__PURE__ */ k(fs, [["render", ys]]), bs = {
|
|
3921
3923
|
name: "IdmTimezone",
|
|
3922
3924
|
props: {
|
|
3923
3925
|
map: {
|
|
@@ -4082,10 +4084,10 @@ const gs = /* @__PURE__ */ k(fs, [["render", ys]]), vs = {
|
|
|
4082
4084
|
}
|
|
4083
4085
|
}
|
|
4084
4086
|
};
|
|
4085
|
-
function
|
|
4087
|
+
function vs(i, e, t, r, a, s) {
|
|
4086
4088
|
return w(), x("div");
|
|
4087
4089
|
}
|
|
4088
|
-
const _s = /* @__PURE__ */ k(
|
|
4090
|
+
const _s = /* @__PURE__ */ k(bs, [["render", vs]]), Ls = {
|
|
4089
4091
|
name: "IdmVoluntaryReportingArea",
|
|
4090
4092
|
props: {
|
|
4091
4093
|
map: {
|
|
@@ -4553,13 +4555,13 @@ const it = /* @__PURE__ */ k(Rs, [["render", $s], ["__scopeId", "data-v-9f51b3f9
|
|
|
4553
4555
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
4554
4556
|
const m = this.geojson.filter((p) => p.id === e.split("-")[0])[0];
|
|
4555
4557
|
this.pointMarkers[m.id].filter((p) => {
|
|
4556
|
-
var
|
|
4557
|
-
return ((
|
|
4558
|
+
var v;
|
|
4559
|
+
return ((v = p._element) == null ? void 0 : v.id) === e;
|
|
4558
4560
|
})[0].setLngLat([(s = (a = i.target) == null ? void 0 : a._lngLat) == null ? void 0 : s.lng, (o = (n = i.target) == null ? void 0 : n._lngLat) == null ? void 0 : o.lat]);
|
|
4559
4561
|
let g;
|
|
4560
|
-
m.features.forEach((p,
|
|
4562
|
+
m.features.forEach((p, v) => {
|
|
4561
4563
|
if (p.geometry.type === "Point" && p.properties.id == e.split("-")[1]) {
|
|
4562
|
-
g =
|
|
4564
|
+
g = v;
|
|
4563
4565
|
return;
|
|
4564
4566
|
}
|
|
4565
4567
|
});
|
|
@@ -4864,7 +4866,7 @@ const Hs = {
|
|
|
4864
4866
|
IdmGlLayer: Vt,
|
|
4865
4867
|
IdmWindBarb: qt,
|
|
4866
4868
|
IdmWindParticle: ci,
|
|
4867
|
-
IdmCurrents:
|
|
4869
|
+
IdmCurrents: bi,
|
|
4868
4870
|
IdmCurrentParticle: Ri,
|
|
4869
4871
|
IdmSigWave: $i,
|
|
4870
4872
|
IdmSwell: Mi,
|
|
@@ -4953,7 +4955,7 @@ const Hs = {
|
|
|
4953
4955
|
var i, e, t, r, a, s, n, o, h, c, f, d, m, u, g, y, p;
|
|
4954
4956
|
if (!this.map)
|
|
4955
4957
|
return !1;
|
|
4956
|
-
this.activeWeatherLayers.some((
|
|
4958
|
+
this.activeWeatherLayers.some((v) => ["wind", "current"].includes(v.key)) && ((i = this.particleFactor) != null && i.particle) || this.activeWeatherLayers.some((v) => ["temp", "water-temp"].includes(v.key)) ? ((t = (e = this.map) == null ? void 0 : e.getLayer("grayland")) == null || t.setLayoutProperty("visibility", "visible"), (a = (r = this.map) == null ? void 0 : r.getLayer("darkmap")) == null || a.setLayoutProperty("visibility", "visible"), (s = this.map) != null && s.getLayer("grayland") && ((o = this.map) == null || o.moveLayer((n = this.viewport) == null ? void 0 : n.rampColorLayer, "grayland")), (h = this.map) != null && h.getLayer("grayland") && ((f = this.map) == null || f.moveLayer((c = this.viewport) == null ? void 0 : c.particleLayer, "grayland"))) : ((m = this.map) == null || m.moveLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer, null), (g = (u = this.map) == null ? void 0 : u.getLayer("grayland")) == null || g.setLayoutProperty("visibility", "none"), (p = (y = this.map) == null ? void 0 : y.getLayer("darkmap")) == null || p.setLayoutProperty("visibility", "none"));
|
|
4957
4959
|
},
|
|
4958
4960
|
immediate: !0
|
|
4959
4961
|
},
|
|
@@ -4981,29 +4983,29 @@ const Hs = {
|
|
|
4981
4983
|
const m = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, u = (s = this.map) == null ? void 0 : s.getBounds(), g = `${u._sw.lng},${u._sw.lat},${u._ne.lng},${u._ne.lat}`;
|
|
4982
4984
|
if (this.handleRampColorState(), this.particleFactor) {
|
|
4983
4985
|
const y = Fe.WEATHER_LAYERS.find((p) => {
|
|
4984
|
-
var
|
|
4985
|
-
return ((
|
|
4986
|
+
var v;
|
|
4987
|
+
return ((v = p.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
|
|
4986
4988
|
});
|
|
4987
4989
|
this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & y.weight ? this.weatherWeight : this.weatherWeight + y.weight : this.weatherWeight = this.weatherWeight & y.weight ? this.weatherWeight - y.weight : this.weatherWeight;
|
|
4988
4990
|
}
|
|
4989
4991
|
if (this.weatherWeight > 0) {
|
|
4990
4992
|
let y = this.weatherWeight, p;
|
|
4991
4993
|
if (i.tropicals || this.weatherWeight & 256 && (p = this.weatherLayers.tropicals, p && (y -= 256, p.version = Math.random() + 1)), y > 0) {
|
|
4992
|
-
const
|
|
4994
|
+
const v = await ie.get(`${this.gateway}/api/arc/weather/layers/links?l=${y}&v=${this.source}&z=${m}&bbox=${g}&t=${this.ts}`, {
|
|
4993
4995
|
headers: {
|
|
4994
4996
|
Authorization: this.token || this.defaultMeteoToken
|
|
4995
4997
|
}
|
|
4996
4998
|
});
|
|
4997
|
-
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((n =
|
|
4998
|
-
const
|
|
4999
|
-
for (const _ in
|
|
5000
|
-
_ === "ice-edge" && (
|
|
5001
|
-
ie.get(
|
|
4999
|
+
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((n = v == null ? void 0 : v.data) == null ? void 0 : n.code) === 0) {
|
|
5000
|
+
const b = (o = v == null ? void 0 : v.data) == null ? void 0 : o.data, L = [];
|
|
5001
|
+
for (const _ in b)
|
|
5002
|
+
_ === "ice-edge" && (b[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && L.push(
|
|
5003
|
+
ie.get(b[_], {
|
|
5002
5004
|
headers: {
|
|
5003
5005
|
Authorization: this.token || this.defaultMeteoToken,
|
|
5004
5006
|
key: _
|
|
5005
5007
|
},
|
|
5006
|
-
responseType: /\.(jpg|png)$/.test(
|
|
5008
|
+
responseType: /\.(jpg|png)$/.test(b[_]) ? "blob" : "json"
|
|
5007
5009
|
}).catch((I) => {
|
|
5008
5010
|
console.log(`[${_}] fetch layer error: ${I}`);
|
|
5009
5011
|
})
|
|
@@ -5017,7 +5019,7 @@ const Hs = {
|
|
|
5017
5019
|
type: ((H = _ == null ? void 0 : _.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
|
|
5018
5020
|
etime: this.ts
|
|
5019
5021
|
});
|
|
5020
|
-
}),
|
|
5022
|
+
}), b.tropicals && ie.get(b.tropicals, {
|
|
5021
5023
|
headers: {
|
|
5022
5024
|
Authorization: this.token || this.defaultMeteoToken,
|
|
5023
5025
|
key: "tropicals"
|
|
@@ -5036,19 +5038,19 @@ const Hs = {
|
|
|
5036
5038
|
});
|
|
5037
5039
|
}
|
|
5038
5040
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather layers elapsed: ", r, ", total: ", t += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
5039
|
-
const
|
|
5041
|
+
const b = (h = this.weatherLayers["swell-direction"]) == null ? void 0 : h.raw, L = (c = this.weatherLayers["swell-height"]) == null ? void 0 : c.raw;
|
|
5040
5042
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
5041
5043
|
type: "json",
|
|
5042
|
-
direction:
|
|
5044
|
+
direction: b,
|
|
5043
5045
|
height: { raw: L },
|
|
5044
5046
|
etime: this.ts
|
|
5045
5047
|
};
|
|
5046
5048
|
}
|
|
5047
5049
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
5048
|
-
const
|
|
5050
|
+
const b = (f = this.weatherLayers["current-direction"]) == null ? void 0 : f.raw, L = (d = this.weatherLayers["current-speed"]) == null ? void 0 : d.raw;
|
|
5049
5051
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
5050
5052
|
type: "json",
|
|
5051
|
-
direction:
|
|
5053
|
+
direction: b,
|
|
5052
5054
|
speed: { raw: L },
|
|
5053
5055
|
etime: this.ts
|
|
5054
5056
|
};
|
|
@@ -5178,20 +5180,20 @@ const Hs = {
|
|
|
5178
5180
|
const y = ((f = this.weatherLayers[u]) == null ? void 0 : f.direction) || {};
|
|
5179
5181
|
for (const p in y)
|
|
5180
5182
|
if (p > o && p < h && (!(a <= this.zoom) || p % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5181
|
-
const
|
|
5182
|
-
s > n ?
|
|
5183
|
+
const v = y[p].lng;
|
|
5184
|
+
s > n ? v.forEach((b, L) => {
|
|
5183
5185
|
var P;
|
|
5184
|
-
if ((
|
|
5185
|
-
const _ = C.point([
|
|
5186
|
+
if ((b >= s && b <= 180 || b >= -180 && b <= n) && (!(a <= this.zoom) || b % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5187
|
+
const _ = C.point([b, p], {
|
|
5186
5188
|
val: y[p].val[L],
|
|
5187
5189
|
spd: (P = y[p].spd) == null ? void 0 : P[L]
|
|
5188
5190
|
});
|
|
5189
5191
|
g.push(_);
|
|
5190
5192
|
}
|
|
5191
|
-
}) :
|
|
5193
|
+
}) : v.forEach((b, L) => {
|
|
5192
5194
|
var P;
|
|
5193
|
-
if (
|
|
5194
|
-
const _ = C.point([
|
|
5195
|
+
if (b >= s && b <= n && (!(a <= this.zoom) || b % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5196
|
+
const _ = C.point([b, p], {
|
|
5195
5197
|
val: y[p].val[L],
|
|
5196
5198
|
spd: (P = y[p].spd) == null ? void 0 : P[L]
|
|
5197
5199
|
});
|
|
@@ -5203,21 +5205,21 @@ const Hs = {
|
|
|
5203
5205
|
const p = this.weatherLayers[u].height;
|
|
5204
5206
|
if (p) {
|
|
5205
5207
|
if (!p.data) {
|
|
5206
|
-
const
|
|
5207
|
-
for (const
|
|
5208
|
-
const L = p.raw.LineString[
|
|
5208
|
+
const v = [];
|
|
5209
|
+
for (const b in (d = p.raw) == null ? void 0 : d.LineString) {
|
|
5210
|
+
const L = p.raw.LineString[b];
|
|
5209
5211
|
for (const P of L)
|
|
5210
|
-
|
|
5212
|
+
v.push(
|
|
5211
5213
|
C.lineString(P, {
|
|
5212
|
-
val: Number(
|
|
5214
|
+
val: Number(b)
|
|
5213
5215
|
})
|
|
5214
5216
|
);
|
|
5215
|
-
p.data = C.featureCollection(
|
|
5217
|
+
p.data = C.featureCollection(v);
|
|
5216
5218
|
}
|
|
5217
5219
|
}
|
|
5218
5220
|
if (p.data) {
|
|
5219
|
-
const
|
|
5220
|
-
g = g.concat(
|
|
5221
|
+
const v = this.handleBboxClip(p.data, r);
|
|
5222
|
+
g = g.concat(v);
|
|
5221
5223
|
}
|
|
5222
5224
|
t = (/* @__PURE__ */ new Date()).valueOf() - (i + e), console.log("height elapsed: ", t, ", total: ", e += t);
|
|
5223
5225
|
}
|
|
@@ -5226,38 +5228,38 @@ const Hs = {
|
|
|
5226
5228
|
const p = this.weatherLayers[u].speed;
|
|
5227
5229
|
if (p) {
|
|
5228
5230
|
if (!p.data) {
|
|
5229
|
-
const
|
|
5231
|
+
const b = [];
|
|
5230
5232
|
for (const L in (m = p.raw) == null ? void 0 : m.Polygon) {
|
|
5231
5233
|
const P = p.raw.Polygon[L];
|
|
5232
5234
|
for (const _ of P)
|
|
5233
|
-
|
|
5235
|
+
b.push(
|
|
5234
5236
|
C.polygon(_, {
|
|
5235
5237
|
val: Number(L)
|
|
5236
5238
|
})
|
|
5237
5239
|
);
|
|
5238
5240
|
}
|
|
5239
|
-
p.data = C.featureCollection(
|
|
5241
|
+
p.data = C.featureCollection(b);
|
|
5240
5242
|
}
|
|
5241
|
-
const
|
|
5242
|
-
g = g.concat(
|
|
5243
|
+
const v = a < this.zoom ? p.data.features.filter((b) => b.properties.val > 0.5) : p.data.features;
|
|
5244
|
+
g = g.concat(v), t = (/* @__PURE__ */ new Date()).valueOf() - (i + e), console.log("speed elapsed: ", t, ", total: ", e += t);
|
|
5243
5245
|
}
|
|
5244
5246
|
}
|
|
5245
5247
|
} else if (u === "wind") {
|
|
5246
5248
|
const y = this.weatherLayers.wind.raw;
|
|
5247
5249
|
for (const p in y)
|
|
5248
5250
|
if (p > o && p < h && (!(a <= this.zoom) || p % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5249
|
-
const
|
|
5250
|
-
s > n ?
|
|
5251
|
-
if ((
|
|
5252
|
-
const P = C.point([
|
|
5251
|
+
const v = y[p].lng;
|
|
5252
|
+
s > n ? v.forEach((b, L) => {
|
|
5253
|
+
if ((b >= s && b <= 180 || b >= -180 && b <= n) && (!(a <= this.zoom) || b % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5254
|
+
const P = C.point([b, p], {
|
|
5253
5255
|
val: y[p].val[L],
|
|
5254
5256
|
spd: y[p].spd[L]
|
|
5255
5257
|
});
|
|
5256
5258
|
g.push(P);
|
|
5257
5259
|
}
|
|
5258
|
-
}) :
|
|
5259
|
-
if (
|
|
5260
|
-
const P = C.point([
|
|
5260
|
+
}) : v.forEach((b, L) => {
|
|
5261
|
+
if (b >= s && b <= n && (!(a <= this.zoom) || b % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5262
|
+
const P = C.point([b, p], {
|
|
5261
5263
|
val: y[p].val[L],
|
|
5262
5264
|
spd: y[p].spd[L]
|
|
5263
5265
|
});
|
|
@@ -5273,12 +5275,12 @@ const Hs = {
|
|
|
5273
5275
|
const y = this.weatherLayers[u].raw;
|
|
5274
5276
|
if (y) {
|
|
5275
5277
|
const p = [];
|
|
5276
|
-
for (const
|
|
5277
|
-
const
|
|
5278
|
-
for (const L of
|
|
5278
|
+
for (const v in y.Polygon) {
|
|
5279
|
+
const b = y.Polygon[v];
|
|
5280
|
+
for (const L of b)
|
|
5279
5281
|
p.push(
|
|
5280
5282
|
C.polygon(L, {
|
|
5281
|
-
val: Number(
|
|
5283
|
+
val: Number(v)
|
|
5282
5284
|
})
|
|
5283
5285
|
);
|
|
5284
5286
|
}
|
|
@@ -5293,21 +5295,21 @@ const Hs = {
|
|
|
5293
5295
|
const y = this.weatherLayers[u].raw;
|
|
5294
5296
|
if (y) {
|
|
5295
5297
|
const p = [];
|
|
5296
|
-
for (const
|
|
5297
|
-
const
|
|
5298
|
-
for (const L of
|
|
5298
|
+
for (const v in y.LineString) {
|
|
5299
|
+
const b = y.LineString[v];
|
|
5300
|
+
for (const L of b)
|
|
5299
5301
|
p.push(
|
|
5300
5302
|
C.lineString(L, {
|
|
5301
|
-
val: Number(
|
|
5303
|
+
val: Number(v)
|
|
5302
5304
|
})
|
|
5303
5305
|
);
|
|
5304
5306
|
}
|
|
5305
|
-
for (const
|
|
5306
|
-
y.Point[
|
|
5307
|
-
|
|
5308
|
-
C.point([
|
|
5309
|
-
val: y.Point[
|
|
5310
|
-
type: y.Point[
|
|
5307
|
+
for (const v in y.Point)
|
|
5308
|
+
y.Point[v].lng.forEach((b, L) => {
|
|
5309
|
+
b = Ae(b), p.push(
|
|
5310
|
+
C.point([b, v], {
|
|
5311
|
+
val: y.Point[v].val[L],
|
|
5312
|
+
type: y.Point[v].type[L]
|
|
5311
5313
|
})
|
|
5312
5314
|
);
|
|
5313
5315
|
});
|
|
@@ -5322,12 +5324,12 @@ const Hs = {
|
|
|
5322
5324
|
const y = this.weatherLayers[u].raw;
|
|
5323
5325
|
if (y) {
|
|
5324
5326
|
const p = [];
|
|
5325
|
-
for (const
|
|
5326
|
-
const
|
|
5327
|
-
for (const L of
|
|
5327
|
+
for (const v in y.LineString) {
|
|
5328
|
+
const b = y.LineString[v];
|
|
5329
|
+
for (const L of b)
|
|
5328
5330
|
p.push(
|
|
5329
5331
|
C.lineString(L, {
|
|
5330
|
-
val: Number(
|
|
5332
|
+
val: Number(v)
|
|
5331
5333
|
})
|
|
5332
5334
|
);
|
|
5333
5335
|
}
|
|
@@ -5428,8 +5430,8 @@ const Hs = {
|
|
|
5428
5430
|
class: "map-gl-home"
|
|
5429
5431
|
};
|
|
5430
5432
|
function Zs(i, e, t, r, a, s) {
|
|
5431
|
-
var J, ne, ye, ge,
|
|
5432
|
-
const n = T("IdmGlLayer"), o = T("IdmENC"), h = T("IdmSigWave"), c = T("IdmSwell"), f = T("IdmPrmsl"), d = T("IdmIceberg"), m = T("IdmTropicals"), u = T("IdmCurrents"), g = T("IdmCurrentParticle"), y = T("IdmWindBarb"), p = T("IdmWindParticle"),
|
|
5433
|
+
var J, ne, ye, ge, be, ve, _e, Le, we, xe, Ce, Se, Pe, Te, Ee, ke, Re, Ie, Oe, He, Xe, Ze, Je, Ye, qe, Ke;
|
|
5434
|
+
const n = T("IdmGlLayer"), o = T("IdmENC"), h = T("IdmSigWave"), c = T("IdmSwell"), f = T("IdmPrmsl"), d = T("IdmIceberg"), m = T("IdmTropicals"), u = T("IdmCurrents"), g = T("IdmCurrentParticle"), y = T("IdmWindBarb"), p = T("IdmWindParticle"), v = T("IdmPrecip3h"), b = T("IdmVisibility"), L = T("IdmWaterTemp"), P = T("IdmTemp"), _ = T("IdmArctic"), I = T("IdmWarZone"), $ = T("IdmGmdssArea"), D = T("IdmEcaZone"), O = T("IdmAlertZone"), W = T("IdmPort"), H = T("IdmLoadLine"), Z = T("IdmTimezone"), ee = T("IdmVRA"), ce = T("IdmSpecialArea"), te = T("IdmTerminator"), A = T("IdmLatLng"), V = T("IdmMeasure"), de = T("IdmPoint");
|
|
5433
5435
|
return t.map ? (w(), x("div", Xs, [
|
|
5434
5436
|
E(n, R({
|
|
5435
5437
|
ref: "layer",
|
|
@@ -5469,13 +5471,13 @@ function Zs(i, e, t, r, a, s) {
|
|
|
5469
5471
|
}, i.$attrs), null, 16, ["map", "prmsl", "before-layer"]),
|
|
5470
5472
|
E(d, R({
|
|
5471
5473
|
map: t.map,
|
|
5472
|
-
iceberg: (
|
|
5474
|
+
iceberg: (be = a.weatherLayers) == null ? void 0 : be.iceberg,
|
|
5473
5475
|
"before-layer": t.beforeLayer
|
|
5474
5476
|
}, i.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
5475
5477
|
E(m, R({
|
|
5476
5478
|
map: t.map,
|
|
5477
5479
|
date: t.ts,
|
|
5478
|
-
tropicals: (
|
|
5480
|
+
tropicals: (ve = a.weatherLayers) == null ? void 0 : ve.tropicals,
|
|
5479
5481
|
"before-layer": t.beforeLayer
|
|
5480
5482
|
}, i.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
5481
5483
|
E(u, R({
|
|
@@ -5512,13 +5514,13 @@ function Zs(i, e, t, r, a, s) {
|
|
|
5512
5514
|
"before-layer": t.beforeLayer,
|
|
5513
5515
|
"toggle-version": a.toggleVersion
|
|
5514
5516
|
}, i.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
5515
|
-
E(
|
|
5517
|
+
E(v, R({
|
|
5516
5518
|
viewport: a.viewport,
|
|
5517
5519
|
factor: (Se = a.weatherLayers) == null ? void 0 : Se.precip3h,
|
|
5518
5520
|
"before-layer": t.beforeLayer,
|
|
5519
5521
|
"toggle-version": a.toggleVersion
|
|
5520
5522
|
}, i.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
5521
|
-
E(
|
|
5523
|
+
E(b, R({
|
|
5522
5524
|
viewport: a.viewport,
|
|
5523
5525
|
factor: (Pe = a.weatherLayers) == null ? void 0 : Pe.visibility,
|
|
5524
5526
|
"before-layer": t.beforeLayer,
|