@idmwx/idmui-gl3 6.2.6 → 6.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { LayerHelper as Ze, CompanyHelper as qe } from "@idm-plugin/tag";
|
|
|
5
5
|
import ee from "moment";
|
|
6
6
|
import Qe from "axios";
|
|
7
7
|
import Ye from "moment-timezone";
|
|
8
|
-
import { resolveComponent as R, openBlock as m, createElementBlock as
|
|
8
|
+
import { resolveComponent as R, openBlock as m, createElementBlock as g, createElementVNode as o, normalizeStyle as le, createVNode as H, withCtx as Ie, normalizeClass as Z, Fragment as V, renderList as $, toDisplayString as I, createCommentVNode as J, createBlock as gt, createTextVNode as ne, withDirectives as Fe, createStaticVNode as yt, vShow as Oe, defineComponent as ft, withModifiers as Ve, mergeProps as X } from "vue";
|
|
9
9
|
import * as S from "@turf/turf";
|
|
10
10
|
import At from "@mapbox/sphericalmercator";
|
|
11
11
|
import je from "mapbox-gl";
|
|
@@ -302,7 +302,7 @@ const U = (a, e) => {
|
|
|
302
302
|
};
|
|
303
303
|
function aa(a, e, t, r, i, s) {
|
|
304
304
|
const n = R("ElTooltip"), l = R("ElRadio"), c = R("ElRadioGroup"), p = R("ElScrollbar");
|
|
305
|
-
return m(),
|
|
305
|
+
return m(), g("div", vt, [
|
|
306
306
|
o("div", {
|
|
307
307
|
class: "menu-bar-box",
|
|
308
308
|
style: le({ top: t.top + 10 + "px", right: i.right + "px" })
|
|
@@ -397,7 +397,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
397
397
|
})
|
|
398
398
|
])
|
|
399
399
|
], 4),
|
|
400
|
-
s.hasCollectedLayers ? (m(),
|
|
400
|
+
s.hasCollectedLayers ? (m(), g("div", {
|
|
401
401
|
key: 0,
|
|
402
402
|
class: "active-layers",
|
|
403
403
|
style: le({ right: i.right + "px", bottom: "100px" })
|
|
@@ -409,10 +409,10 @@ function aa(a, e, t, r, i, s) {
|
|
|
409
409
|
style: { "font-size": "28px", "margin-right": "0" },
|
|
410
410
|
onClick: e[5] || (e[5] = (...h) => s.toggleAutoActive && s.toggleAutoActive(...h))
|
|
411
411
|
}, [
|
|
412
|
-
i.autoActive ? (m(),
|
|
412
|
+
i.autoActive ? (m(), g("i", xt, "")) : (m(), g("i", _t, ""))
|
|
413
413
|
])
|
|
414
414
|
]),
|
|
415
|
-
(m(!0),
|
|
415
|
+
(m(!0), g(V, null, $(i.layers.weather.filter((h) => h.collected), (h) => (m(), g("div", {
|
|
416
416
|
key: h.key,
|
|
417
417
|
class: Z(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
418
418
|
}, [
|
|
@@ -424,7 +424,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
424
424
|
class: "name",
|
|
425
425
|
onClick: (d) => s.handleWeatherLayerPick(h)
|
|
426
426
|
}, I(h.name), 9, It),
|
|
427
|
-
h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(),
|
|
427
|
+
h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), g("div", Et, [
|
|
428
428
|
o("i", {
|
|
429
429
|
class: Z(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
430
430
|
onClick: e[6] || (e[6] = (d) => s.handleToggleWindParticle())
|
|
@@ -434,7 +434,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
434
434
|
onClick: e[7] || (e[7] = (d) => s.handleToggleWindFeather())
|
|
435
435
|
}, "", 2)
|
|
436
436
|
])) : J("", !0),
|
|
437
|
-
h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(),
|
|
437
|
+
h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), g("div", kt, [
|
|
438
438
|
o("i", {
|
|
439
439
|
class: Z(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
440
440
|
onClick: e[8] || (e[8] = (d) => s.handleToggleCurrentParticle())
|
|
@@ -470,14 +470,14 @@ function aa(a, e, t, r, i, s) {
|
|
|
470
470
|
style: { "margin-right": "0" },
|
|
471
471
|
onClick: e[11] || (e[11] = (...h) => s.toggleAutoActive && s.toggleAutoActive(...h))
|
|
472
472
|
}, [
|
|
473
|
-
i.autoActive ? (m(),
|
|
473
|
+
i.autoActive ? (m(), g("i", Mt, "")) : (m(), g("i", St, ""))
|
|
474
474
|
])
|
|
475
475
|
]),
|
|
476
476
|
o("div", Tt, [
|
|
477
|
-
(m(!0),
|
|
477
|
+
(m(!0), g(V, null, $(i.layers.weather, (h) => (m(), g(V, {
|
|
478
478
|
key: h.key
|
|
479
479
|
}, [
|
|
480
|
-
h.hide ? J("", !0) : (m(),
|
|
480
|
+
h.hide ? J("", !0) : (m(), g("div", {
|
|
481
481
|
key: 0,
|
|
482
482
|
class: Z(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
483
483
|
}, [
|
|
@@ -490,7 +490,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
490
490
|
class: "name",
|
|
491
491
|
onClick: (d) => s.handleWeatherLayerPick(h)
|
|
492
492
|
}, I(h.name), 9, Nt),
|
|
493
|
-
h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(),
|
|
493
|
+
h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), g("div", Ft, [
|
|
494
494
|
o("i", {
|
|
495
495
|
class: Z(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
496
496
|
onClick: e[12] || (e[12] = (d) => s.handleToggleWindParticle())
|
|
@@ -500,7 +500,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
500
500
|
onClick: e[13] || (e[13] = (d) => s.handleToggleWindFeather())
|
|
501
501
|
}, "", 2)
|
|
502
502
|
])) : J("", !0),
|
|
503
|
-
h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(),
|
|
503
|
+
h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), g("div", Ot, [
|
|
504
504
|
o("i", {
|
|
505
505
|
class: Z(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
506
506
|
onClick: e[14] || (e[14] = (d) => s.handleToggleCurrentParticle())
|
|
@@ -514,7 +514,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
514
514
|
o("div", {
|
|
515
515
|
onClick: (d) => s.handleWeatherLayerCollect(h)
|
|
516
516
|
}, [
|
|
517
|
-
h.collected ? (m(),
|
|
517
|
+
h.collected ? (m(), g("i", jt, "")) : (m(), g("i", Wt, ""))
|
|
518
518
|
], 8, Rt)
|
|
519
519
|
], 2))
|
|
520
520
|
], 64))), 128)),
|
|
@@ -530,16 +530,16 @@ function aa(a, e, t, r, i, s) {
|
|
|
530
530
|
o("div", Gt, [
|
|
531
531
|
e[26] || (e[26] = o("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
532
532
|
o("div", Ut, [
|
|
533
|
-
(m(!0),
|
|
533
|
+
(m(!0), g(V, null, $(i.layers.other, (h) => {
|
|
534
534
|
var d;
|
|
535
|
-
return m(),
|
|
535
|
+
return m(), g("div", {
|
|
536
536
|
key: h.key,
|
|
537
537
|
class: Z(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
|
|
538
538
|
onClick: (A) => s.handleOtherLayerPick(h)
|
|
539
539
|
}, [
|
|
540
540
|
o("div", Kt, [
|
|
541
541
|
o("div", Xt, [
|
|
542
|
-
(d = s.computeLayerClass(h, i.activeOtherLayers)) != null && d.includes("active") ? (m(),
|
|
542
|
+
(d = s.computeLayerClass(h, i.activeOtherLayers)) != null && d.includes("active") ? (m(), g("i", Jt, "")) : (m(), g("i", qt, ""))
|
|
543
543
|
]),
|
|
544
544
|
o("span", null, I(h.name), 1)
|
|
545
545
|
])
|
|
@@ -557,16 +557,16 @@ function aa(a, e, t, r, i, s) {
|
|
|
557
557
|
style: { width: "180px", "align-items": "flex-start" }
|
|
558
558
|
}, {
|
|
559
559
|
default: Ie(() => [
|
|
560
|
-
(m(!0),
|
|
560
|
+
(m(!0), g(V, null, $(i.sourceList, (h, d) => (m(), gt(l, {
|
|
561
561
|
key: `source${h.name}`,
|
|
562
562
|
value: h.name
|
|
563
563
|
}, {
|
|
564
564
|
default: Ie(() => {
|
|
565
|
-
var A,
|
|
565
|
+
var A, b, E, w, k, _;
|
|
566
566
|
return [
|
|
567
567
|
ne(I(h.name) + " ", 1),
|
|
568
|
-
d !== 0 ? (m(),
|
|
569
|
-
d === 0 ? (m(),
|
|
568
|
+
d !== 0 ? (m(), g("span", $t, I(h.resolution) + "km " + I(h.length) + "days", 1)) : J("", !0),
|
|
569
|
+
d === 0 ? (m(), g("div", ea, "Provides the best forecast")) : (E = (b = (A = h == null ? void 0 : h.update) == null ? void 0 : A.default) == null ? void 0 : b.meta) != null && E.initialisationTime ? (m(), g("div", ta, "Update: " + I(s.computeDateZ((_ = (k = (w = h == null ? void 0 : h.update) == null ? void 0 : w.default) == null ? void 0 : k.meta) == null ? void 0 : _.initialisationTime)), 1)) : J("", !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]), [p, h] = this.mercator.px([s, r[1]], t), [d, A] = this.mercator.px([l, i[1]], t),
|
|
779
|
-
return [d, A, 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]), [p, h] = this.mercator.px([s, r[1]], t), [d, A] = this.mercator.px([l, i[1]], t), b = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
|
|
779
|
+
return [d, A, p + b, h];
|
|
780
780
|
}
|
|
781
781
|
/**
|
|
782
782
|
* [视窗边界像素宽度]
|
|
@@ -957,9 +957,9 @@ 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 d = e.getBoundPixel(), A = e.map.getZoom() + 1,
|
|
961
|
-
for (const E of
|
|
962
|
-
const w = (E[0] - d[0]) * e.ratio, k = (E[1] - d[3]) * e.ratio, _ = E[2] * e.ratio, [f,
|
|
960
|
+
const d = e.getBoundPixel(), A = e.map.getZoom() + 1, b = e.getWorldCopy(d, A);
|
|
961
|
+
for (const E of b) {
|
|
962
|
+
const w = (E[0] - d[0]) * e.ratio, k = (E[1] - d[3]) * e.ratio, _ = E[2] * e.ratio, [f, v, u, C] = [w, _ + w, k, _ + k], y = new Float32Array([f, u, v, u, f, C, f, C, v, u, v, C]);
|
|
963
963
|
t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, y, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
964
964
|
}
|
|
965
965
|
} catch (h) {
|
|
@@ -3134,10 +3134,11 @@ const la = {
|
|
|
3134
3134
|
// how often the particles move to a random place
|
|
3135
3135
|
dropRateBump: 0.01,
|
|
3136
3136
|
// drop rate increase relative to individual particle speed
|
|
3137
|
-
uvRange: [-
|
|
3137
|
+
uvRange: [-50, 50],
|
|
3138
3138
|
// uv 分量最小最大值
|
|
3139
|
-
sRange: [0,
|
|
3139
|
+
sRange: [0, 50],
|
|
3140
3140
|
// speed分量最小最大值
|
|
3141
|
+
scale: 1
|
|
3141
3142
|
},
|
|
3142
3143
|
paused: !1,
|
|
3143
3144
|
initial: !0,
|
|
@@ -3260,7 +3261,7 @@ const la = {
|
|
|
3260
3261
|
}, ha = { key: 0 };
|
|
3261
3262
|
function ca(a, e, t, r, i, s) {
|
|
3262
3263
|
var n;
|
|
3263
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
3264
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", ha, [
|
|
3264
3265
|
o("div", {
|
|
3265
3266
|
class: "legend-bars flex-center",
|
|
3266
3267
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -3276,7 +3277,7 @@ function ca(a, e, t, r, i, s) {
|
|
|
3276
3277
|
]), 4)
|
|
3277
3278
|
])) : J("", !0);
|
|
3278
3279
|
}
|
|
3279
|
-
const da = /* @__PURE__ */ U(la, [["render", ca], ["__scopeId", "data-v-
|
|
3280
|
+
const da = /* @__PURE__ */ U(la, [["render", ca], ["__scopeId", "data-v-e5910f11"]]);
|
|
3280
3281
|
const pa = {
|
|
3281
3282
|
name: "IdmCurrent",
|
|
3282
3283
|
props: {
|
|
@@ -3593,7 +3594,7 @@ const ga = {
|
|
|
3593
3594
|
}, ya = { key: 0 };
|
|
3594
3595
|
function fa(a, e, t, r, i, s) {
|
|
3595
3596
|
var n;
|
|
3596
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
3597
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", ya, [
|
|
3597
3598
|
o("div", {
|
|
3598
3599
|
class: "legend-bars flex-center",
|
|
3599
3600
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -3737,7 +3738,7 @@ const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-c2962e63
|
|
|
3737
3738
|
}
|
|
3738
3739
|
};
|
|
3739
3740
|
function va(a, e, t, r, i, s) {
|
|
3740
|
-
return m(),
|
|
3741
|
+
return m(), g("div");
|
|
3741
3742
|
}
|
|
3742
3743
|
const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
|
|
3743
3744
|
name: "IdmSwell",
|
|
@@ -3895,7 +3896,7 @@ const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
|
|
|
3895
3896
|
}
|
|
3896
3897
|
};
|
|
3897
3898
|
function Ca(a, e, t, r, i, s) {
|
|
3898
|
-
return m(),
|
|
3899
|
+
return m(), g("div");
|
|
3899
3900
|
}
|
|
3900
3901
|
const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
|
|
3901
3902
|
name: "IdmPrmsl",
|
|
@@ -4033,7 +4034,7 @@ const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
|
|
|
4033
4034
|
}
|
|
4034
4035
|
};
|
|
4035
4036
|
function Ba(a, e, t, r, i, s) {
|
|
4036
|
-
return m(),
|
|
4037
|
+
return m(), g("div");
|
|
4037
4038
|
}
|
|
4038
4039
|
const Ia = /* @__PURE__ */ U(_a, [["render", Ba]]);
|
|
4039
4040
|
const Ea = {
|
|
@@ -4140,7 +4141,7 @@ const Ea = {
|
|
|
4140
4141
|
}, ka = { key: 0 };
|
|
4141
4142
|
function Da(a, e, t, r, i, s) {
|
|
4142
4143
|
var n;
|
|
4143
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
4144
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", ka, [
|
|
4144
4145
|
o("div", {
|
|
4145
4146
|
class: "legend-bars flex-center",
|
|
4146
4147
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -4256,7 +4257,7 @@ const Pa = {
|
|
|
4256
4257
|
}, Ma = { key: 0 };
|
|
4257
4258
|
function Sa(a, e, t, r, i, s) {
|
|
4258
4259
|
var n;
|
|
4259
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
4260
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", Ma, [
|
|
4260
4261
|
o("div", {
|
|
4261
4262
|
class: "legend-bars flex-center",
|
|
4262
4263
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -4374,7 +4375,7 @@ const Qa = {
|
|
|
4374
4375
|
}, Ha = { key: 0 };
|
|
4375
4376
|
function Na(a, e, t, r, i, s) {
|
|
4376
4377
|
var n;
|
|
4377
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
4378
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", Ha, [
|
|
4378
4379
|
o("div", {
|
|
4379
4380
|
class: "legend-bars flex-center",
|
|
4380
4381
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -4707,11 +4708,11 @@ class ht {
|
|
|
4707
4708
|
const i = e.toLowerCase().split(","), s = [], n = [];
|
|
4708
4709
|
for (const l of i) {
|
|
4709
4710
|
let c = Xe.find((h) => {
|
|
4710
|
-
var d, A,
|
|
4711
|
-
return ((d = h.models) == null ? void 0 : d.includes(l)) || ((A = h.alias) == null ? void 0 : A.toLowerCase()) === l || ((
|
|
4711
|
+
var d, A, b;
|
|
4712
|
+
return ((d = h.models) == null ? void 0 : d.includes(l)) || ((A = h.alias) == null ? void 0 : A.toLowerCase()) === l || ((b = h.name) == null ? void 0 : b.toLowerCase()) === l;
|
|
4712
4713
|
}), p = Je.find((h) => {
|
|
4713
|
-
var d, A,
|
|
4714
|
-
return ((d = h.models) == null ? void 0 : d.includes(l)) || ((A = h.alias) == null ? void 0 : A.toLowerCase()) === l || ((
|
|
4714
|
+
var d, A, b;
|
|
4715
|
+
return ((d = h.models) == null ? void 0 : d.includes(l)) || ((A = h.alias) == null ? void 0 : A.toLowerCase()) === l || ((b = h.name) == null ? void 0 : b.toLowerCase()) === l;
|
|
4715
4716
|
});
|
|
4716
4717
|
c = c || Xe.find((h) => {
|
|
4717
4718
|
var d, A;
|
|
@@ -4736,7 +4737,7 @@ class ht {
|
|
|
4736
4737
|
}), i;
|
|
4737
4738
|
}
|
|
4738
4739
|
static pickHourly(e, t) {
|
|
4739
|
-
var r, i, s, n, l, c, p, h, d, A,
|
|
4740
|
+
var r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe, we, _e, B, ze, ve, Pe, Ee, He, ke;
|
|
4740
4741
|
const re = typeof t == "string" ? ee(t) : t, ce = e == null ? void 0 : e.weather, Q = e == null ? void 0 : e.marine, Be = ee((i = (r = ce == null ? void 0 : ce[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = Be.clone().add((l = (n = (s = ce == null ? void 0 : ce[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), q = Be.clone().add((h = (p = (c = ce == null ? void 0 : ce[0]) == null ? void 0 : c.hourly) == null ? void 0 : p.time) == null ? void 0 : h.at(-1), "h"), Me = [];
|
|
4741
4742
|
if (re.isBetween(K, q, "millisecond", "[]")) {
|
|
4742
4743
|
const P = re.utc().diff(K, "h", !1);
|
|
@@ -4750,7 +4751,7 @@ class ht {
|
|
|
4750
4751
|
for (let Ne = P - (P - 1) % 6; Ne <= P; Ne++)
|
|
4751
4752
|
Te += (A = O == null ? void 0 : O.precipitation) == null ? void 0 : A.at(Ne);
|
|
4752
4753
|
de = {
|
|
4753
|
-
temp: (
|
|
4754
|
+
temp: (b = O == null ? void 0 : O.temperature_2m) == null ? void 0 : b.at(P),
|
|
4754
4755
|
apparentTemp: (E = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : E.at(P),
|
|
4755
4756
|
rh: (w = O == null ? void 0 : O.relative_humidity_2m) == null ? void 0 : w.at(P),
|
|
4756
4757
|
dp: (k = O == null ? void 0 : O.dew_point_2m) == null ? void 0 : k.at(P),
|
|
@@ -4760,8 +4761,8 @@ class ht {
|
|
|
4760
4761
|
sum3Hours: Math.round(Se * 100) / 100,
|
|
4761
4762
|
sum6Hours: Math.round(Te * 100) / 100
|
|
4762
4763
|
},
|
|
4763
|
-
pmsl: (
|
|
4764
|
-
psurf: (
|
|
4764
|
+
pmsl: (v = O == null ? void 0 : O.pressure_msl) == null ? void 0 : v.at(P),
|
|
4765
|
+
psurf: (u = O == null ? void 0 : O.surface_pressure) == null ? void 0 : u.at(P),
|
|
4765
4766
|
code: (C = O == null ? void 0 : O.weather_code) == null ? void 0 : C.at(P),
|
|
4766
4767
|
visibility: this.m2nm((y = O == null ? void 0 : O.visibility) == null ? void 0 : y.at(P)),
|
|
4767
4768
|
wind: {
|
|
@@ -4845,7 +4846,7 @@ class ht {
|
|
|
4845
4846
|
};
|
|
4846
4847
|
}
|
|
4847
4848
|
static pickDaily(e, t) {
|
|
4848
|
-
var r, i, s, n, l, c, p, h, d, A,
|
|
4849
|
+
var r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe, we, _e, B;
|
|
4849
4850
|
const ze = typeof t == "string" ? ee(t) : t, ve = e == null ? void 0 : e.weather, Pe = e == null ? void 0 : e.marine, Ee = ee((s = (i = (r = ve == null ? void 0 : ve[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), He = ee((c = (l = (n = ve == null ? void 0 : ve[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), ke = [];
|
|
4850
4851
|
if (ze.isBetween(Ee, He, "millisecond", "[]")) {
|
|
4851
4852
|
let re, ce;
|
|
@@ -4861,7 +4862,7 @@ class ht {
|
|
|
4861
4862
|
mean: (A = K.temperature_2m_mean) == null ? void 0 : A.at(Q)
|
|
4862
4863
|
},
|
|
4863
4864
|
apparentTemp: {
|
|
4864
|
-
max: (
|
|
4865
|
+
max: (b = K.apparent_temperature_max) == null ? void 0 : b.at(Q),
|
|
4865
4866
|
min: (E = K.apparent_temperature_min) == null ? void 0 : E.at(Q)
|
|
4866
4867
|
},
|
|
4867
4868
|
precip: {
|
|
@@ -4869,8 +4870,8 @@ class ht {
|
|
|
4869
4870
|
rainSum: (k = K.rain_sum) == null ? void 0 : k.at(Q),
|
|
4870
4871
|
snowfallSum: (_ = K.snowfall_sum) == null ? void 0 : _.at(Q),
|
|
4871
4872
|
showersSum: (f = K.showers_sum) == null ? void 0 : f.at(Q),
|
|
4872
|
-
hours: (
|
|
4873
|
-
probability: (
|
|
4873
|
+
hours: (v = K.precipitation_hours) == null ? void 0 : v.at(Q),
|
|
4874
|
+
probability: (u = K.precipitation_probability_max) == null ? void 0 : u.at(Q)
|
|
4874
4875
|
},
|
|
4875
4876
|
rh: {
|
|
4876
4877
|
max: (C = K.relative_humidity_2m_max) == null ? void 0 : C.at(Q),
|
|
@@ -5461,8 +5462,8 @@ const Oa = {
|
|
|
5461
5462
|
else {
|
|
5462
5463
|
if (this.tropicals) {
|
|
5463
5464
|
const d = (/* @__PURE__ */ new Date()).valueOf();
|
|
5464
|
-
let A = 0,
|
|
5465
|
-
(a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty),
|
|
5465
|
+
let A = 0, b = 0;
|
|
5466
|
+
(a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), b = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropicals] update elapsed: ", b, ", total: ", A += b)) : (this.map.addSource(this.source, {
|
|
5466
5467
|
type: "geojson",
|
|
5467
5468
|
data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
|
|
5468
5469
|
}), this.map.addLayer({
|
|
@@ -5559,7 +5560,7 @@ const Oa = {
|
|
|
5559
5560
|
],
|
|
5560
5561
|
"text-halo-width": 4
|
|
5561
5562
|
}
|
|
5562
|
-
}),
|
|
5563
|
+
}), b = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropical] add elapsed: ", b, ", total: ", A += b)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), b = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropical] update elapsed: ", b, ", total: ", A += b)) : (this.map.addSource(this.clusterSource, {
|
|
5563
5564
|
type: "geojson",
|
|
5564
5565
|
data: (c = this.tropicals) != null && c.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
5565
5566
|
// cluster: true,
|
|
@@ -5676,7 +5677,7 @@ const Oa = {
|
|
|
5676
5677
|
"text-halo-color": "#0033ff",
|
|
5677
5678
|
"text-halo-width": 4
|
|
5678
5679
|
}
|
|
5679
|
-
}),
|
|
5680
|
+
}), b = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropical] add elapsed: ", b, ", total: ", A += b));
|
|
5680
5681
|
}
|
|
5681
5682
|
this.handleDrawCircle();
|
|
5682
5683
|
const h = ct.interpolate(this.tropicals, 1);
|
|
@@ -5688,7 +5689,7 @@ const Oa = {
|
|
|
5688
5689
|
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));
|
|
5689
5690
|
},
|
|
5690
5691
|
handleDateChange() {
|
|
5691
|
-
var a, e, t, r, i, s, n, l, c, p, h, d, A,
|
|
5692
|
+
var a, e, t, r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me;
|
|
5692
5693
|
if ((a = this.interpolateMarkers) == null || a.forEach((he) => he == null ? void 0 : he.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
5693
5694
|
const he = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ue = this.interpolateData.filter((Y) => Y.properties.date === he.format() && !Y.properties.disabled), fe = this.handleComputePolygons(ue), ge = S.featureCollection([...ue]);
|
|
5694
5695
|
fe.forEach((Y) => {
|
|
@@ -5710,7 +5711,7 @@ const Oa = {
|
|
|
5710
5711
|
for (const Y of ue)
|
|
5711
5712
|
if (!Y.properties.disabled) {
|
|
5712
5713
|
let ae = "#f44336";
|
|
5713
|
-
((l = (n = Y.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((p = (c = Y.properties) == null ? void 0 : c.wind) != null && p.kts) ? ae = "#03f869" : ((d = (h = Y.properties) == null ? void 0 : h.wind) == null ? void 0 : d.kts) >= 32 && ((
|
|
5714
|
+
((l = (n = Y.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((p = (c = Y.properties) == null ? void 0 : c.wind) != null && p.kts) ? ae = "#03f869" : ((d = (h = Y.properties) == null ? void 0 : h.wind) == null ? void 0 : d.kts) >= 32 && ((b = (A = Y.properties) == null ? void 0 : A.wind) == null ? void 0 : b.kts) < 47 ? ae = "#f2f202" : ((w = (E = Y.properties) == null ? void 0 : E.wind) == null ? void 0 : w.kts) >= 47 && ((_ = (k = Y.properties) == null ? void 0 : k.wind) == null ? void 0 : _.kts) < 63 ? ae = "#ff9100" : ((v = (f = Y.properties) == null ? void 0 : f.wind) == null ? void 0 : v.kts) >= 63 && ((C = (u = Y.properties) == null ? void 0 : u.wind) == null ? void 0 : C.kts) < 79 ? ae = "#f44336" : ((L = (y = Y.properties) == null ? void 0 : y.wind) == null ? void 0 : L.kts) >= 79 && ((D = (T = Y.properties) == null ? void 0 : T.wind) == null ? void 0 : D.kts) < 94 ? ae = "#f903d0" : ((N = (F = Y.properties) == null ? void 0 : F.wind) == null ? void 0 : N.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
|
|
5714
5715
|
const Ae = `<svg t="1719918955501"
|
|
5715
5716
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5716
5717
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -5736,19 +5737,19 @@ const Oa = {
|
|
|
5736
5737
|
handleClick(a) {
|
|
5737
5738
|
var s, n, l, c, p, h, d, A;
|
|
5738
5739
|
const e = a.features[0], t = (n = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : n.features.filter(
|
|
5739
|
-
(
|
|
5740
|
+
(b) => {
|
|
5740
5741
|
var E;
|
|
5741
|
-
return
|
|
5742
|
+
return b.geometry.type === "LineString" && b.properties.type === "forecast" && b.properties.name === ((E = e == null ? void 0 : e.properties) == null ? void 0 : E.name);
|
|
5742
5743
|
}
|
|
5743
5744
|
), r = (c = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : c.features.filter(
|
|
5744
|
-
(
|
|
5745
|
+
(b) => {
|
|
5745
5746
|
var E;
|
|
5746
|
-
return
|
|
5747
|
+
return b.geometry.type === "LineString" && b.properties.type === "history" && b.properties.name === ((E = e == null ? void 0 : e.properties) == null ? void 0 : E.name);
|
|
5747
5748
|
}
|
|
5748
5749
|
);
|
|
5749
5750
|
this.activeTropicals = {
|
|
5750
5751
|
name: (p = e == null ? void 0 : e.properties) == null ? void 0 : p.name,
|
|
5751
|
-
forecasts: t.map((
|
|
5752
|
+
forecasts: t.map((b) => b.properties),
|
|
5752
5753
|
history: (h = r[0]) == null ? void 0 : h.properties,
|
|
5753
5754
|
showCircle: (A = (d = t[0]) == null ? void 0 : d.properties) == null ? void 0 : A.showCircle
|
|
5754
5755
|
}, this.showTropicals = !0;
|
|
@@ -5864,18 +5865,18 @@ const Oa = {
|
|
|
5864
5865
|
style: { "justify-content": "flex-start" }
|
|
5865
5866
|
}, ai = { class: "forecast-models" }, ii = ["onClick"], ri = { class: "more" };
|
|
5866
5867
|
function si(a, e, t, r, i, s) {
|
|
5867
|
-
var n, l, c, p, h, d, A,
|
|
5868
|
-
return Fe((m(),
|
|
5868
|
+
var n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T;
|
|
5869
|
+
return Fe((m(), g("div", Ra, [
|
|
5869
5870
|
o("div", ja, [
|
|
5870
5871
|
o("div", {
|
|
5871
5872
|
class: "iconfont close-btn",
|
|
5872
5873
|
onClick: e[0] || (e[0] = (D) => i.showTropicals = !1)
|
|
5873
5874
|
}, ""),
|
|
5874
5875
|
o("div", Wa, [
|
|
5875
|
-
(l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (m(),
|
|
5876
|
+
(l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (m(), g("span", Ga, I((p = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : p.level) + " , ", 1)) : J("", !0),
|
|
5876
5877
|
ne(I((h = i.activeTropicals) == null ? void 0 : h.name), 1)
|
|
5877
5878
|
]),
|
|
5878
|
-
o("div", Ua, " Last update: " + I(s.computeTime(((A = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : A.updated) || ((w = (E = (
|
|
5879
|
+
o("div", Ua, " Last update: " + I(s.computeTime(((A = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : A.updated) || ((w = (E = (b = i.activeTropicals) == null ? void 0 : b.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : w.date))), 1)
|
|
5879
5880
|
]),
|
|
5880
5881
|
o("div", Ya, [
|
|
5881
5882
|
o("div", Ka, [
|
|
@@ -5883,11 +5884,11 @@ function si(a, e, t, r, i, s) {
|
|
|
5883
5884
|
o("div", Ja, [
|
|
5884
5885
|
e[3] || (e[3] = o("label", null, "Wind speed : ", -1)),
|
|
5885
5886
|
o("span", null, I(((_ = (k = i.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : _.kts) || "-") + " [kts]", 1),
|
|
5886
|
-
o("span", null, ", BF " + I(s.computeBF(((
|
|
5887
|
+
o("span", null, ", BF " + I(s.computeBF(((v = (f = i.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : v.kts) || 0)), 1)
|
|
5887
5888
|
]),
|
|
5888
5889
|
o("div", qa, [
|
|
5889
5890
|
e[4] || (e[4] = o("label", null, "Pressure : ", -1)),
|
|
5890
|
-
o("span", null, I(((C = (
|
|
5891
|
+
o("span", null, I(((C = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : C.pressure) || "-") + " [hPa]", 1)
|
|
5891
5892
|
])
|
|
5892
5893
|
]),
|
|
5893
5894
|
o("div", Va, [
|
|
@@ -5904,9 +5905,9 @@ function si(a, e, t, r, i, s) {
|
|
|
5904
5905
|
o("div", ti, [
|
|
5905
5906
|
e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
5906
5907
|
o("div", ai, [
|
|
5907
|
-
(m(!0),
|
|
5908
|
+
(m(!0), g(V, null, $((T = i.activeTropicals) == null ? void 0 : T.forecasts, (D, F) => {
|
|
5908
5909
|
var N, j, G, W;
|
|
5909
|
-
return m(),
|
|
5910
|
+
return m(), g("div", {
|
|
5910
5911
|
key: F,
|
|
5911
5912
|
class: Z([
|
|
5912
5913
|
"model",
|
|
@@ -5926,7 +5927,7 @@ function si(a, e, t, r, i, s) {
|
|
|
5926
5927
|
e[8] || (e[8] = yt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);"></div><div class="row" style="padding:2px 10px;"><div class="legend"><div class="icon td"></div><div class="label">TD</div></div><div class="legend"><div class="icon ts"></div><div class="label">TS</div></div><div class="legend"><div class="icon sts"></div><div class="label">STS</div></div><div class="legend"><div class="icon ty"></div><div class="label">TY</div></div><div class="legend"><div class="icon sty"></div><div class="label">STY</div></div><div class="legend"><div class="icon supper-ty"></div><div class="label">Super TY</div></div></div><div class="row" style="padding:2px 10px;"><div class="legend"><div class="icon history"></div><div class="label">History</div></div><div class="legend"><div class="icon r7"></div><div class="label">35kts Radii</div></div><div class="legend"><div class="icon r10"></div><div class="label">50kts Radii</div></div></div>', 3))
|
|
5927
5928
|
]),
|
|
5928
5929
|
o("div", ri, [
|
|
5929
|
-
t.permission & i.helper.LEVEL.Supper ? (m(),
|
|
5930
|
+
t.permission & i.helper.LEVEL.Supper ? (m(), g("div", {
|
|
5930
5931
|
key: 0,
|
|
5931
5932
|
class: "button",
|
|
5932
5933
|
style: { "margin-right": "10px" },
|
|
@@ -6047,7 +6048,7 @@ const oi = {
|
|
|
6047
6048
|
}, ni = { key: 0 };
|
|
6048
6049
|
function li(a, e, t, r, i, s) {
|
|
6049
6050
|
var n;
|
|
6050
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
6051
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", ni, [
|
|
6051
6052
|
o("div", {
|
|
6052
6053
|
class: "legend-bars flex-center",
|
|
6053
6054
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -6161,7 +6162,7 @@ const ci = {
|
|
|
6161
6162
|
}, di = { key: 0 };
|
|
6162
6163
|
function pi(a, e, t, r, i, s) {
|
|
6163
6164
|
var n;
|
|
6164
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
6165
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", di, [
|
|
6165
6166
|
o("div", {
|
|
6166
6167
|
class: "legend-bars flex-center",
|
|
6167
6168
|
style: le([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
@@ -6281,7 +6282,7 @@ const ui = {
|
|
|
6281
6282
|
}, gi = { key: 0 };
|
|
6282
6283
|
function yi(a, e, t, r, i, s) {
|
|
6283
6284
|
var n;
|
|
6284
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
6285
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", gi, [
|
|
6285
6286
|
o("div", {
|
|
6286
6287
|
class: "legend-bars flex-center",
|
|
6287
6288
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -6404,7 +6405,7 @@ const Ai = {
|
|
|
6404
6405
|
}, wi = { key: 0 };
|
|
6405
6406
|
function vi(a, e, t, r, i, s) {
|
|
6406
6407
|
var n;
|
|
6407
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
6408
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", wi, [
|
|
6408
6409
|
o("div", {
|
|
6409
6410
|
class: "legend-bars flex-center",
|
|
6410
6411
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -6426,7 +6427,7 @@ var Li = /* @__PURE__ */ ft({
|
|
|
6426
6427
|
name: "LocationFilled",
|
|
6427
6428
|
__name: "location-filled",
|
|
6428
6429
|
setup(a) {
|
|
6429
|
-
return (e, t) => (m(),
|
|
6430
|
+
return (e, t) => (m(), g("svg", {
|
|
6430
6431
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6431
6432
|
viewBox: "0 0 1024 1024"
|
|
6432
6433
|
}, [
|
|
@@ -6636,7 +6637,7 @@ const _i = {
|
|
|
6636
6637
|
initTableData(a) {
|
|
6637
6638
|
var e, t, r, i, s, n, l, c, p;
|
|
6638
6639
|
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, ee(this.ts))) == null ? void 0 : l[0], ((p = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : p.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
6639
|
-
var d, A,
|
|
6640
|
+
var d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe;
|
|
6640
6641
|
if (!document.getElementById("meteoMainBox"))
|
|
6641
6642
|
return !1;
|
|
6642
6643
|
if (!this.currentHourData)
|
|
@@ -6645,7 +6646,7 @@ const _i = {
|
|
|
6645
6646
|
const _e = Ye(this.ts).tz(this.positionGmt).add(3 * we, "h").format();
|
|
6646
6647
|
this.tableData.hours.push(_e);
|
|
6647
6648
|
const B = ((d = Ke.pickHourly(a, _e)) == null ? void 0 : d[0]) || {};
|
|
6648
|
-
this.tableData.temp.push(this.roundPrecision((A = B == null ? void 0 : B.weather) == null ? void 0 : A.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (
|
|
6649
|
+
this.tableData.temp.push(this.roundPrecision((A = B == null ? void 0 : B.weather) == null ? void 0 : A.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (b = B == null ? void 0 : B.weather) == null ? void 0 : b.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((k = (w = B == null ? void 0 : B.weather) == null ? void 0 : w.precip) == null ? void 0 : k.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((v = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((C = (u = B == null ? void 0 : B.weather) == null ? void 0 : u.wind) == null ? void 0 : C.bearing), this.tableData.windGust.push(this.roundPrecision((L = (y = B == null ? void 0 : B.weather) == null ? void 0 : y.wind) == null ? void 0 : L.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (T = B == null ? void 0 : B.wave) == null ? void 0 : T.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((N = (F = B == null ? void 0 : B.wave) == null ? void 0 : F.sig) == null ? void 0 : N.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((me = (W = B == null ? void 0 : B.wave) == null ? void 0 : W.wd) == null ? void 0 : me.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ue = (he = B == null ? void 0 : B.wave) == null ? void 0 : he.wd) == null ? void 0 : ue.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (fe = B == null ? void 0 : B.wave) == null ? void 0 : fe.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((ae = (Y = B == null ? void 0 : B.wave) == null ? void 0 : Y.swell) == null ? void 0 : ae.bearing), this.tableData.swellPeriod.push(this.roundPrecision((pe = (Ae = B == null ? void 0 : B.wave) == null ? void 0 : Ae.swell) == null ? void 0 : pe.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((Le = B == null ? void 0 : B.current) == null ? void 0 : Le.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((Ce = B == null ? void 0 : B.weather) == null ? void 0 : Ce.url), this.tableData.weatherNames.push(((xe = B == null ? void 0 : B.weather) == null ? void 0 : xe.name) ?? "-");
|
|
6649
6650
|
}
|
|
6650
6651
|
});
|
|
6651
6652
|
},
|
|
@@ -6771,9 +6772,9 @@ const _i = {
|
|
|
6771
6772
|
class: "main-box flex-center"
|
|
6772
6773
|
};
|
|
6773
6774
|
function Qr(a, e, t, r, i, s) {
|
|
6774
|
-
var p, h, d, A,
|
|
6775
|
+
var p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe, we, _e, B, ze, ve, Pe, Ee, He, ke, re, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue, ie, Ne, tt, at, it, rt, st, ot;
|
|
6775
6776
|
const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
|
|
6776
|
-
return Fe((m(),
|
|
6777
|
+
return Fe((m(), g("div", Bi, [
|
|
6777
6778
|
o("div", Ii, [
|
|
6778
6779
|
o("div", Ei, [
|
|
6779
6780
|
o("div", ki, [
|
|
@@ -6786,11 +6787,11 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6786
6787
|
o("div", Di, I(s.computeLat((p = i.point) == null ? void 0 : p.lat)) + "," + I(s.computeLng((h = i.point) == null ? void 0 : h.lng)), 1)
|
|
6787
6788
|
]),
|
|
6788
6789
|
o("div", zi, [
|
|
6789
|
-
i.showTables ? (m(),
|
|
6790
|
+
i.showTables ? (m(), g("div", {
|
|
6790
6791
|
key: 0,
|
|
6791
6792
|
class: "iconfont toggle",
|
|
6792
6793
|
onClick: e[0] || (e[0] = (x) => i.showTables = !i.showTables)
|
|
6793
|
-
}, "")) : (m(),
|
|
6794
|
+
}, "")) : (m(), g("div", {
|
|
6794
6795
|
key: 1,
|
|
6795
6796
|
class: "iconfont toggle",
|
|
6796
6797
|
onClick: e[1] || (e[1] = (x) => i.showTables = !i.showTables)
|
|
@@ -6801,12 +6802,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6801
6802
|
}, "")
|
|
6802
6803
|
])
|
|
6803
6804
|
]),
|
|
6804
|
-
i.loading ? (m(),
|
|
6805
|
+
i.loading ? (m(), g("div", Tr, e[43] || (e[43] = [
|
|
6805
6806
|
o("img", {
|
|
6806
6807
|
src: xi,
|
|
6807
6808
|
alt: ""
|
|
6808
6809
|
}, null, -1)
|
|
6809
|
-
]))) : (m(),
|
|
6810
|
+
]))) : (m(), g("div", {
|
|
6810
6811
|
key: 0,
|
|
6811
6812
|
class: Z(["main-box", i.isDay ? "day-bg" : "night-bg"]),
|
|
6812
6813
|
id: "meteoMainBox"
|
|
@@ -6822,19 +6823,19 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6822
6823
|
default: Ie(() => {
|
|
6823
6824
|
var x, M, nt, lt;
|
|
6824
6825
|
return [
|
|
6825
|
-
(M = (x = i.currentHourData) == null ? void 0 : x.weather) != null && M.url ? (m(),
|
|
6826
|
+
(M = (x = i.currentHourData) == null ? void 0 : x.weather) != null && M.url ? (m(), g("img", {
|
|
6826
6827
|
key: 0,
|
|
6827
6828
|
class: "iconfont icon",
|
|
6828
6829
|
style: { "margin-right": "5px" },
|
|
6829
6830
|
src: (lt = (nt = i.currentHourData) == null ? void 0 : nt.weather) == null ? void 0 : lt.url
|
|
6830
|
-
}, null, 8, Si)) : (m(),
|
|
6831
|
+
}, null, 8, Si)) : (m(), g("span", Ti))
|
|
6831
6832
|
];
|
|
6832
6833
|
}),
|
|
6833
6834
|
_: 1
|
|
6834
6835
|
}, 8, ["content"]),
|
|
6835
6836
|
o("div", Qi, [
|
|
6836
6837
|
o("div", null, [
|
|
6837
|
-
ne(I(s.roundPrecision((E = (
|
|
6838
|
+
ne(I(s.roundPrecision((E = (b = i.currentHourData) == null ? void 0 : b.weather) == null ? void 0 : E.temp, 0)), 1),
|
|
6838
6839
|
e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
6839
6840
|
])
|
|
6840
6841
|
]),
|
|
@@ -6845,11 +6846,11 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6845
6846
|
]),
|
|
6846
6847
|
o("div", Fi, [
|
|
6847
6848
|
e[11] || (e[11] = o("label", null, "Visibility : ", -1)),
|
|
6848
|
-
o("span", null, I(s.roundPrecision((
|
|
6849
|
+
o("span", null, I(s.roundPrecision((v = (f = i.currentHourData) == null ? void 0 : f.weather) == null ? void 0 : v.visibility, 0)) + " nm", 1)
|
|
6849
6850
|
]),
|
|
6850
6851
|
o("div", Oi, [
|
|
6851
6852
|
e[12] || (e[12] = o("label", null, "Wind : ", -1)),
|
|
6852
|
-
o("span", null, I(s.roundPrecision((y = (C = (
|
|
6853
|
+
o("span", null, I(s.roundPrecision((y = (C = (u = i.currentHourData) == null ? void 0 : u.weather) == null ? void 0 : C.wind) == null ? void 0 : y.kts, 1)) + " kts", 1)
|
|
6853
6854
|
])
|
|
6854
6855
|
])
|
|
6855
6856
|
]),
|
|
@@ -6887,7 +6888,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6887
6888
|
ne("Hours"),
|
|
6888
6889
|
o("span", { class: "unit" }, "(LT)")
|
|
6889
6890
|
], -1)),
|
|
6890
|
-
(m(!0),
|
|
6891
|
+
(m(!0), g(V, null, $(i.tableData.hours, (x) => (m(), g("th", {
|
|
6891
6892
|
rowspan: "1",
|
|
6892
6893
|
colspan: "1",
|
|
6893
6894
|
key: `HourL${x}`
|
|
@@ -6902,7 +6903,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6902
6903
|
ne("UTC"),
|
|
6903
6904
|
o("span", { class: "unit" })
|
|
6904
6905
|
], -1)),
|
|
6905
|
-
(m(!0),
|
|
6906
|
+
(m(!0), g(V, null, $(i.tableData.hours, (x) => (m(), g("th", {
|
|
6906
6907
|
rowspan: "1",
|
|
6907
6908
|
colspan: "1",
|
|
6908
6909
|
key: `HourZ${x}`
|
|
@@ -6914,7 +6915,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6914
6915
|
colspan: "1",
|
|
6915
6916
|
class: "tr-title"
|
|
6916
6917
|
}, null, -1)),
|
|
6917
|
-
(m(!0),
|
|
6918
|
+
(m(!0), g(V, null, $(i.tableData.weatherUrls, (x, M) => (m(), g("th", {
|
|
6918
6919
|
rowspan: "1",
|
|
6919
6920
|
colspan: "1",
|
|
6920
6921
|
key: `weatherUrls${M}${x}`
|
|
@@ -6926,7 +6927,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6926
6927
|
"show-after": 500
|
|
6927
6928
|
}, {
|
|
6928
6929
|
default: Ie(() => [
|
|
6929
|
-
x ? (m(),
|
|
6930
|
+
x ? (m(), g("img", {
|
|
6930
6931
|
key: 0,
|
|
6931
6932
|
class: "iconfont weather-icon",
|
|
6932
6933
|
src: x,
|
|
@@ -6946,7 +6947,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6946
6947
|
ne("Temp"),
|
|
6947
6948
|
o("span", { class: "unit" }, "°C")
|
|
6948
6949
|
], -1)),
|
|
6949
|
-
(m(!0),
|
|
6950
|
+
(m(!0), g(V, null, $(i.tableData.temp, (x, M) => (m(), g("td", {
|
|
6950
6951
|
rowspan: "1",
|
|
6951
6952
|
colspan: "1",
|
|
6952
6953
|
key: `weatherUrls${M}${x}`
|
|
@@ -6961,7 +6962,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6961
6962
|
ne("Precip"),
|
|
6962
6963
|
o("span", { class: "unit" }, "mm")
|
|
6963
6964
|
], -1)),
|
|
6964
|
-
(m(!0),
|
|
6965
|
+
(m(!0), g(V, null, $(i.tableData.precip1h, (x, M) => (m(), g("td", {
|
|
6965
6966
|
rowspan: "1",
|
|
6966
6967
|
colspan: "1",
|
|
6967
6968
|
key: `precip1h${M}${x}`
|
|
@@ -6976,7 +6977,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6976
6977
|
ne("Visibility"),
|
|
6977
6978
|
o("span", { class: "unit" }, "nm")
|
|
6978
6979
|
], -1)),
|
|
6979
|
-
(m(!0),
|
|
6980
|
+
(m(!0), g(V, null, $(i.tableData.visibility, (x, M) => (m(), g("td", {
|
|
6980
6981
|
rowspan: "1",
|
|
6981
6982
|
colspan: "1",
|
|
6982
6983
|
key: `visibility${M}${x}`
|
|
@@ -6991,7 +6992,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6991
6992
|
ne("Wind gust"),
|
|
6992
6993
|
o("span", { class: "unit" }, "kts")
|
|
6993
6994
|
], -1)),
|
|
6994
|
-
(m(!0),
|
|
6995
|
+
(m(!0), g(V, null, $(i.tableData.windGust, (x, M) => (m(), g("td", {
|
|
6995
6996
|
rowspan: "1",
|
|
6996
6997
|
colspan: "1",
|
|
6997
6998
|
key: `windGust${M}${x}`
|
|
@@ -7012,7 +7013,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7012
7013
|
ne("Hours"),
|
|
7013
7014
|
o("span", { class: "unit" }, "(LT)")
|
|
7014
7015
|
], -1)),
|
|
7015
|
-
(m(!0),
|
|
7016
|
+
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
7016
7017
|
rowspan: "1",
|
|
7017
7018
|
colspan: "1",
|
|
7018
7019
|
key: `currenthoursL${M}${x}`
|
|
@@ -7027,7 +7028,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7027
7028
|
ne("UTC"),
|
|
7028
7029
|
o("span", { class: "unit" })
|
|
7029
7030
|
], -1)),
|
|
7030
|
-
(m(!0),
|
|
7031
|
+
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
7031
7032
|
rowspan: "1",
|
|
7032
7033
|
colspan: "1",
|
|
7033
7034
|
key: `currenthoursZ${M}${x}`
|
|
@@ -7042,12 +7043,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7042
7043
|
ne("Wind"),
|
|
7043
7044
|
o("span", { class: "unit" }, "kts")
|
|
7044
7045
|
], -1)),
|
|
7045
|
-
(m(!0),
|
|
7046
|
+
(m(!0), g(V, null, $(i.tableData.windSpeed, (x, M) => (m(), g("td", {
|
|
7046
7047
|
rowspan: "1",
|
|
7047
7048
|
colspan: "1",
|
|
7048
7049
|
key: `windSpeed${M}${x}`
|
|
7049
7050
|
}, [
|
|
7050
|
-
isNaN(i.tableData.windDir[M]) ? J("", !0) : (m(),
|
|
7051
|
+
isNaN(i.tableData.windDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7051
7052
|
key: 0,
|
|
7052
7053
|
class: "iconfont icon wind",
|
|
7053
7054
|
style: le({ display: "inline-block", transform: `rotate(${i.tableData.windDir[M]}deg)` })
|
|
@@ -7064,12 +7065,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7064
7065
|
ne("Sig Wave"),
|
|
7065
7066
|
o("span", { class: "unit" }, "m")
|
|
7066
7067
|
], -1)),
|
|
7067
|
-
(m(!0),
|
|
7068
|
+
(m(!0), g(V, null, $(i.tableData.sigwaveHeight, (x, M) => (m(), g("td", {
|
|
7068
7069
|
rowspan: "1",
|
|
7069
7070
|
colspan: "1",
|
|
7070
7071
|
key: `sigwaveHeight${M}${x}`
|
|
7071
7072
|
}, [
|
|
7072
|
-
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(),
|
|
7073
|
+
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7073
7074
|
key: 0,
|
|
7074
7075
|
class: "iconfont icon sigwave",
|
|
7075
7076
|
style: le({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[M]}deg)` })
|
|
@@ -7086,12 +7087,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7086
7087
|
ne("Wind Wave"),
|
|
7087
7088
|
o("span", { class: "unit" }, "m")
|
|
7088
7089
|
], -1)),
|
|
7089
|
-
(m(!0),
|
|
7090
|
+
(m(!0), g(V, null, $(i.tableData.windwaveHeight, (x, M) => (m(), g("td", {
|
|
7090
7091
|
rowspan: "1",
|
|
7091
7092
|
colspan: "1",
|
|
7092
7093
|
key: `windwaveHeight${M}${x}`
|
|
7093
7094
|
}, [
|
|
7094
|
-
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(),
|
|
7095
|
+
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7095
7096
|
key: 0,
|
|
7096
7097
|
class: "iconfont icon windwave",
|
|
7097
7098
|
style: le({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[M]}deg)` })
|
|
@@ -7108,12 +7109,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7108
7109
|
ne("Swell"),
|
|
7109
7110
|
o("span", { class: "unit" }, "m")
|
|
7110
7111
|
], -1)),
|
|
7111
|
-
(m(!0),
|
|
7112
|
+
(m(!0), g(V, null, $(i.tableData.swellHeight, (x, M) => (m(), g("td", {
|
|
7112
7113
|
rowspan: "1",
|
|
7113
7114
|
colspan: "1",
|
|
7114
7115
|
key: `swellHeight${M}${x}`
|
|
7115
7116
|
}, [
|
|
7116
|
-
isNaN(i.tableData.swellDir[M]) ? J("", !0) : (m(),
|
|
7117
|
+
isNaN(i.tableData.swellDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7117
7118
|
key: 0,
|
|
7118
7119
|
class: "iconfont icon swell",
|
|
7119
7120
|
style: le({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[M]}deg)` })
|
|
@@ -7130,12 +7131,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7130
7131
|
ne("Current"),
|
|
7131
7132
|
o("span", { class: "unit" }, "kts")
|
|
7132
7133
|
], -1)),
|
|
7133
|
-
(m(!0),
|
|
7134
|
+
(m(!0), g(V, null, $(i.tableData.currentSpeed, (x, M) => (m(), g("td", {
|
|
7134
7135
|
rowspan: "1",
|
|
7135
7136
|
colspan: "1",
|
|
7136
7137
|
key: `currentSpeed${M}${x}`
|
|
7137
7138
|
}, [
|
|
7138
|
-
isNaN(i.tableData.currentDir[M]) ? J("", !0) : (m(),
|
|
7139
|
+
isNaN(i.tableData.currentDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7139
7140
|
key: 0,
|
|
7140
7141
|
class: "iconfont icon current",
|
|
7141
7142
|
id: "meteoGrayIcon",
|
|
@@ -7157,7 +7158,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7157
7158
|
ne("Hours"),
|
|
7158
7159
|
o("span", { class: "unit" }, "(LT)")
|
|
7159
7160
|
], -1)),
|
|
7160
|
-
(m(!0),
|
|
7161
|
+
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
7161
7162
|
rowspan: "1",
|
|
7162
7163
|
colspan: "1",
|
|
7163
7164
|
key: `seahoursL${M}${x}`
|
|
@@ -7172,7 +7173,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7172
7173
|
ne("UTC"),
|
|
7173
7174
|
o("span", { class: "unit" })
|
|
7174
7175
|
], -1)),
|
|
7175
|
-
(m(!0),
|
|
7176
|
+
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
7176
7177
|
rowspan: "1",
|
|
7177
7178
|
colspan: "1",
|
|
7178
7179
|
key: `seahoursZ${M}${x}`
|
|
@@ -7187,7 +7188,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7187
7188
|
ne("SeaLevel"),
|
|
7188
7189
|
o("span", { class: "unit" }, "m")
|
|
7189
7190
|
], -1)),
|
|
7190
|
-
(m(!0),
|
|
7191
|
+
(m(!0), g(V, null, $(i.tableData.seaLevel, (x, M) => (m(), g("td", {
|
|
7191
7192
|
rowspan: "1",
|
|
7192
7193
|
colspan: "1",
|
|
7193
7194
|
key: `SeaLevel${M}${x}`
|
|
@@ -7202,7 +7203,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7202
7203
|
ne("SeaTemp"),
|
|
7203
7204
|
o("span", { class: "unit" }, "°C")
|
|
7204
7205
|
], -1)),
|
|
7205
|
-
(m(!0),
|
|
7206
|
+
(m(!0), g(V, null, $(i.tableData.seaTemp, (x, M) => (m(), g("td", {
|
|
7206
7207
|
rowspan: "1",
|
|
7207
7208
|
colspan: "1",
|
|
7208
7209
|
key: `SeaTemp${M}${x}`
|
|
@@ -7211,26 +7212,26 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7211
7212
|
], 512), [
|
|
7212
7213
|
[Oe, i.activeIndex === 3]
|
|
7213
7214
|
]),
|
|
7214
|
-
i.activeIndex === 3 ? (m(),
|
|
7215
|
+
i.activeIndex === 3 ? (m(), g("div", ur, e[31] || (e[31] = [
|
|
7215
7216
|
o("p", { style: { "font-size": "12px", padding: "12px 20px 0 20px", "line-height": "16px" } }, "*Sea level height accounts for tides, barometer effects, and global variations. Based on mean sea level, accuracy is limited in coastal areas. For coastal navigation, use data from Tides Tab.", -1)
|
|
7216
7217
|
]))) : J("", !0),
|
|
7217
7218
|
Fe(o("table", gr, [
|
|
7218
7219
|
o("tr", yr, [
|
|
7219
|
-
(m(!0),
|
|
7220
|
+
(m(!0), g(V, null, $(i.tideTableData, (x, M) => (m(), g("th", {
|
|
7220
7221
|
rowspan: "1",
|
|
7221
7222
|
colspan: "1",
|
|
7222
7223
|
key: `Tide-tr-${M}${x}`
|
|
7223
7224
|
}, I(x.type) + " Tide", 1))), 128))
|
|
7224
7225
|
]),
|
|
7225
7226
|
o("tr", fr, [
|
|
7226
|
-
(m(!0),
|
|
7227
|
+
(m(!0), g(V, null, $(i.tideTableData, (x, M) => (m(), g("td", {
|
|
7227
7228
|
rowspan: "1",
|
|
7228
7229
|
colspan: "1",
|
|
7229
7230
|
key: `Tide-date-${M}${x}`
|
|
7230
7231
|
}, I(s.computeHourHmmLT(x == null ? void 0 : x.date)), 1))), 128))
|
|
7231
7232
|
]),
|
|
7232
7233
|
o("tr", Ar, [
|
|
7233
|
-
(m(!0),
|
|
7234
|
+
(m(!0), g(V, null, $(i.tideTableData, (x, M) => (m(), g("td", {
|
|
7234
7235
|
rowspan: "1",
|
|
7235
7236
|
colspan: "1",
|
|
7236
7237
|
key: `Tide-height-${M}${x}`
|
|
@@ -7304,7 +7305,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7304
7305
|
o("div", {
|
|
7305
7306
|
class: Z(["action", i.isDay ? "day" : "night"])
|
|
7306
7307
|
}, [
|
|
7307
|
-
t.permission & i.helper.LEVEL.Supper ? (m(),
|
|
7308
|
+
t.permission & i.helper.LEVEL.Supper ? (m(), g("div", {
|
|
7308
7309
|
key: 0,
|
|
7309
7310
|
class: "button",
|
|
7310
7311
|
style: { "margin-right": "10px" },
|
|
@@ -7414,7 +7415,7 @@ const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-3afdcf26
|
|
|
7414
7415
|
}
|
|
7415
7416
|
};
|
|
7416
7417
|
function Fr(a, e, t, r, i, s) {
|
|
7417
|
-
return m(),
|
|
7418
|
+
return m(), g("div");
|
|
7418
7419
|
}
|
|
7419
7420
|
const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
|
|
7420
7421
|
name: "IdmGmdssArea",
|
|
@@ -7540,7 +7541,7 @@ const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
|
|
|
7540
7541
|
}
|
|
7541
7542
|
};
|
|
7542
7543
|
function jr(a, e, t, r, i, s) {
|
|
7543
|
-
return m(),
|
|
7544
|
+
return m(), g("div");
|
|
7544
7545
|
}
|
|
7545
7546
|
const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
|
|
7546
7547
|
name: "IdmEcaZone",
|
|
@@ -7637,7 +7638,7 @@ const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
|
|
|
7637
7638
|
}
|
|
7638
7639
|
};
|
|
7639
7640
|
function Ur(a, e, t, r, i, s) {
|
|
7640
|
-
return m(),
|
|
7641
|
+
return m(), g("div");
|
|
7641
7642
|
}
|
|
7642
7643
|
const Yr = /* @__PURE__ */ U(Gr, [["render", Ur]]);
|
|
7643
7644
|
const Kr = {
|
|
@@ -7776,7 +7777,7 @@ const Kr = {
|
|
|
7776
7777
|
}, Xr = { id: "idm-gl3-zone-info" }, Jr = ["innerHTML"];
|
|
7777
7778
|
function qr(a, e, t, r, i, s) {
|
|
7778
7779
|
var n;
|
|
7779
|
-
return Fe((m(),
|
|
7780
|
+
return Fe((m(), g("div", Xr, [
|
|
7780
7781
|
o("div", {
|
|
7781
7782
|
class: "iconfont close",
|
|
7782
7783
|
onClick: e[0] || (e[0] = (l) => i.showZone = !1)
|
|
@@ -7893,7 +7894,7 @@ const Zr = {
|
|
|
7893
7894
|
style: { "align-items": "flex-start" }
|
|
7894
7895
|
}, ss = { class: "meteo-forecast flex-end" };
|
|
7895
7896
|
function os(a, e, t, r, i, s) {
|
|
7896
|
-
return Fe((m(),
|
|
7897
|
+
return Fe((m(), g("div", $r, [
|
|
7897
7898
|
o("div", {
|
|
7898
7899
|
class: "close iconfont",
|
|
7899
7900
|
onClick: e[0] || (e[0] = (n) => i.showPort = !1)
|
|
@@ -7999,7 +8000,7 @@ const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-39da1804
|
|
|
7999
8000
|
}
|
|
8000
8001
|
};
|
|
8001
8002
|
function hs(a, e, t, r, i, s) {
|
|
8002
|
-
return m(),
|
|
8003
|
+
return m(), g("div");
|
|
8003
8004
|
}
|
|
8004
8005
|
const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
|
|
8005
8006
|
name: "IdmTimezone",
|
|
@@ -8170,7 +8171,7 @@ const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
|
|
|
8170
8171
|
}
|
|
8171
8172
|
};
|
|
8172
8173
|
function ps(a, e, t, r, i, s) {
|
|
8173
|
-
return m(),
|
|
8174
|
+
return m(), g("div");
|
|
8174
8175
|
}
|
|
8175
8176
|
const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
|
|
8176
8177
|
name: "IdmVoluntaryReportingArea",
|
|
@@ -8264,7 +8265,7 @@ const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
|
|
|
8264
8265
|
}
|
|
8265
8266
|
};
|
|
8266
8267
|
function gs(a, e, t, r, i, s) {
|
|
8267
|
-
return m(),
|
|
8268
|
+
return m(), g("div");
|
|
8268
8269
|
}
|
|
8269
8270
|
const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
|
|
8270
8271
|
name: "IdmSpecialArea",
|
|
@@ -8360,7 +8361,7 @@ const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
|
|
|
8360
8361
|
}
|
|
8361
8362
|
};
|
|
8362
8363
|
function As(a, e, t, r, i, s) {
|
|
8363
|
-
return m(),
|
|
8364
|
+
return m(), g("div");
|
|
8364
8365
|
}
|
|
8365
8366
|
const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
|
|
8366
8367
|
name: "IdmTerminator",
|
|
@@ -8415,7 +8416,7 @@ const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
|
|
|
8415
8416
|
}
|
|
8416
8417
|
};
|
|
8417
8418
|
function bs(a, e, t, r, i, s) {
|
|
8418
|
-
return m(),
|
|
8419
|
+
return m(), g("div");
|
|
8419
8420
|
}
|
|
8420
8421
|
const Ls = /* @__PURE__ */ U(vs, [["render", bs]]);
|
|
8421
8422
|
const Cs = {
|
|
@@ -8575,7 +8576,7 @@ const Cs = {
|
|
|
8575
8576
|
}
|
|
8576
8577
|
};
|
|
8577
8578
|
function xs(a, e, t, r, i, s) {
|
|
8578
|
-
return i.lngLat ? (m(),
|
|
8579
|
+
return i.lngLat ? (m(), g("div", {
|
|
8579
8580
|
key: 0,
|
|
8580
8581
|
class: "lat-lng-tip",
|
|
8581
8582
|
style: le({ right: i.right + "px", bottom: t.bottom })
|
|
@@ -8736,8 +8737,8 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8736
8737
|
t = se.roundPrecision(t + h, 2);
|
|
8737
8738
|
let A;
|
|
8738
8739
|
l.mode === "RL" ? A = se.convertToMonotonicLng([c, p]) : A = se.convertToMonotonicLng(Re.interpolateCoordinates(c, p, 200));
|
|
8739
|
-
const
|
|
8740
|
-
|
|
8740
|
+
const b = S.lineString(A.map((E) => [E.lng, E.lat]));
|
|
8741
|
+
b.properties.dist = h, b.properties.bearing = d, b.properties.total = t, r.push(b);
|
|
8741
8742
|
}
|
|
8742
8743
|
e.push(...r), a.total = t;
|
|
8743
8744
|
}
|
|
@@ -8751,7 +8752,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8751
8752
|
s = Re.calculateDistance(p, h, c.mode === "RL", 4), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
|
|
8752
8753
|
let d;
|
|
8753
8754
|
c.mode === "RL" ? d = se.convertToMonotonicLng([p, h]) : d = se.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
|
|
8754
|
-
const A = S.lineString(d.map((
|
|
8755
|
+
const A = S.lineString(d.map((b) => [b.lng, b.lat]));
|
|
8755
8756
|
A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
|
|
8756
8757
|
}
|
|
8757
8758
|
if (r) {
|
|
@@ -8759,7 +8760,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8759
8760
|
s = Re.calculateDistance(p, h, c.mode === "RL", 4), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
|
|
8760
8761
|
let d;
|
|
8761
8762
|
c.mode === "RL" ? d = se.convertToMonotonicLng([p, h]) : d = se.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
|
|
8762
|
-
const A = S.lineString(d.map((
|
|
8763
|
+
const A = S.lineString(d.map((b) => [b.lng, b.lat]));
|
|
8763
8764
|
A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
|
|
8764
8765
|
}
|
|
8765
8766
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
@@ -8872,16 +8873,16 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8872
8873
|
}
|
|
8873
8874
|
},
|
|
8874
8875
|
handleClear(a, e = !0) {
|
|
8875
|
-
var s, n, l, c, p, h, d, A,
|
|
8876
|
+
var s, n, l, c, p, h, d, A, b;
|
|
8876
8877
|
const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
|
|
8877
8878
|
(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), (p = this.closeMarkers[a.id]) == null || p.remove(), this.closeMarkers[a.id] = void 0, (h = this.pointMarkers[a.id]) == null || h.forEach((E) => {
|
|
8878
8879
|
E == null || E.remove();
|
|
8879
|
-
}), this.pointMarkers[a.id] = [], (d = this.tipMarker) == null || d.remove(), this.tipMarker = void 0, e && ((A = this.map) != null && A.getSource(t)) && this.map.removeSource(t), e && ((
|
|
8880
|
+
}), this.pointMarkers[a.id] = [], (d = this.tipMarker) == null || d.remove(), this.tipMarker = void 0, e && ((A = this.map) != null && A.getSource(t)) && this.map.removeSource(t), e && ((b = this.map) != null && b.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
8880
8881
|
}
|
|
8881
8882
|
}
|
|
8882
8883
|
};
|
|
8883
8884
|
function Bs(a, e, t, r, i, s) {
|
|
8884
|
-
return m(),
|
|
8885
|
+
return m(), g("div");
|
|
8885
8886
|
}
|
|
8886
8887
|
const Is = /* @__PURE__ */ U(_s, [["render", Bs]]);
|
|
8887
8888
|
const Es = {
|
|
@@ -8942,7 +8943,7 @@ const Es = {
|
|
|
8942
8943
|
}, ks = { key: 0 }, Ds = { class: "bar-item" };
|
|
8943
8944
|
function zs(a, e, t, r, i, s) {
|
|
8944
8945
|
const n = R("ElTooltip");
|
|
8945
|
-
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (m(),
|
|
8946
|
+
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (m(), g("div", ks, [
|
|
8946
8947
|
o("div", {
|
|
8947
8948
|
class: "menu-bar-box",
|
|
8948
8949
|
style: le({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
@@ -9247,11 +9248,11 @@ const js = {
|
|
|
9247
9248
|
},
|
|
9248
9249
|
activeWeatherLayers: {
|
|
9249
9250
|
handler() {
|
|
9250
|
-
var t, r, i, s, n, l, c, p, h, d, A,
|
|
9251
|
+
var t, r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T;
|
|
9251
9252
|
if (!this.map)
|
|
9252
9253
|
return !1;
|
|
9253
9254
|
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");
|
|
9254
|
-
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")), (p = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || p.setLayoutProperty("visibility", "visible"), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((
|
|
9255
|
+
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")), (p = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || p.setLayoutProperty("visibility", "visible"), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((b = this.viewport) == null ? void 0 : b.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((k = this.map) == null || k.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (w = this.viewport) == null ? void 0 : w.rampColorLayer))) : ((f = (_ = this.map) == null ? void 0 : _.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || f.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (u = (v = this.map) == null ? void 0 : v.getLayer(this.enc)) == null || u.setLayoutProperty("visibility", "visible") : ((y = (C = this.map) == null ? void 0 : C.getLayer("i4")) == null || y.setLayoutProperty("visibility", "none"), (T = (L = this.map) == null ? void 0 : L.getLayer("hi")) == null || T.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
|
|
9255
9256
|
},
|
|
9256
9257
|
immediate: !0
|
|
9257
9258
|
},
|
|
@@ -9307,7 +9308,7 @@ const js = {
|
|
|
9307
9308
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
9308
9309
|
let t = 0, r = 0;
|
|
9309
9310
|
if (this.map) {
|
|
9310
|
-
const
|
|
9311
|
+
const b = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, E = (s = this.map) == null ? void 0 : s.getBounds(), w = `${E._sw.lng},${E._sw.lat},${E._ne.lng},${E._ne.lat}`;
|
|
9311
9312
|
if (this.particleFactor && ((n = this.$refs.layer) != null && n.autoActive)) {
|
|
9312
9313
|
const k = Ze.WEATHER_LAYERS.find((_) => {
|
|
9313
9314
|
var f;
|
|
@@ -9318,21 +9319,21 @@ const js = {
|
|
|
9318
9319
|
if (this.weatherWeight > 0) {
|
|
9319
9320
|
let k = this.weatherWeight, _;
|
|
9320
9321
|
if (a.tropicals || this.weatherWeight & 256 && (_ = this.weatherLayers.tropicals, _ && (k -= 256, _.version = Math.random() + 1)), k > 0) {
|
|
9321
|
-
const f = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))],
|
|
9322
|
+
const f = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], v = await Qe.get(`${f}/api/arc/weather/layers2/links?l=${k}&v=${this.source}&z=${b}&bbox=${w}&t=${this.ts}`, {
|
|
9322
9323
|
headers: {
|
|
9323
9324
|
Authorization: this.token || this.defaultMeteoToken
|
|
9324
9325
|
}
|
|
9325
9326
|
});
|
|
9326
|
-
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l =
|
|
9327
|
-
const
|
|
9328
|
-
for (const L in
|
|
9327
|
+
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l = v == null ? void 0 : v.data) == null ? void 0 : l.code) === 0) {
|
|
9328
|
+
const u = (c = v == null ? void 0 : v.data) == null ? void 0 : c.data, C = [];
|
|
9329
|
+
for (const L in u)
|
|
9329
9330
|
L !== "tropicals" && C.push(
|
|
9330
|
-
Qe.get(
|
|
9331
|
+
Qe.get(u[L], {
|
|
9331
9332
|
headers: {
|
|
9332
9333
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9333
9334
|
key: L
|
|
9334
9335
|
},
|
|
9335
|
-
responseType: /\.(jpg|png)$/.test(
|
|
9336
|
+
responseType: /\.(jpg|png)$/.test(u[L]) ? "blob" : "json"
|
|
9336
9337
|
}).catch((T) => {
|
|
9337
9338
|
console.log(`[${L}] fetch layer error: ${T}`);
|
|
9338
9339
|
})
|
|
@@ -9344,9 +9345,9 @@ const js = {
|
|
|
9344
9345
|
D && T && (this.weatherLayers[D] = {
|
|
9345
9346
|
raw: T,
|
|
9346
9347
|
type: ((G = L == null ? void 0 : L.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
|
|
9347
|
-
etime:
|
|
9348
|
+
etime: v.data.etime
|
|
9348
9349
|
});
|
|
9349
|
-
}),
|
|
9350
|
+
}), u.tropicals && Qe.get(u.tropicals, {
|
|
9350
9351
|
headers: {
|
|
9351
9352
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9352
9353
|
key: "tropicals"
|
|
@@ -9359,27 +9360,27 @@ const js = {
|
|
|
9359
9360
|
active: !0,
|
|
9360
9361
|
cached: !1,
|
|
9361
9362
|
type: "json",
|
|
9362
|
-
etime:
|
|
9363
|
+
etime: v.data.etime,
|
|
9363
9364
|
version: Math.random() + 1
|
|
9364
9365
|
};
|
|
9365
9366
|
});
|
|
9366
9367
|
}
|
|
9367
9368
|
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"]) {
|
|
9368
|
-
const
|
|
9369
|
+
const u = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, C = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
|
|
9369
9370
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
9370
9371
|
type: "json",
|
|
9371
|
-
direction:
|
|
9372
|
+
direction: u,
|
|
9372
9373
|
height: { raw: C },
|
|
9373
|
-
etime:
|
|
9374
|
+
etime: v.data.etime
|
|
9374
9375
|
};
|
|
9375
9376
|
}
|
|
9376
9377
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
9377
|
-
const
|
|
9378
|
+
const u = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, C = (A = this.weatherLayers["current-speed"]) == null ? void 0 : A.raw;
|
|
9378
9379
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
9379
9380
|
type: "json",
|
|
9380
|
-
direction:
|
|
9381
|
+
direction: u,
|
|
9381
9382
|
speed: { raw: C },
|
|
9382
|
-
etime:
|
|
9383
|
+
etime: v.data.etime
|
|
9383
9384
|
};
|
|
9384
9385
|
}
|
|
9385
9386
|
}
|
|
@@ -9403,9 +9404,9 @@ const js = {
|
|
|
9403
9404
|
}
|
|
9404
9405
|
});
|
|
9405
9406
|
if (((e = d == null ? void 0 : d.data) == null ? void 0 : e.code) === 0) {
|
|
9406
|
-
const A = (t = d == null ? void 0 : d.data) == null ? void 0 : t.data,
|
|
9407
|
+
const A = (t = d == null ? void 0 : d.data) == null ? void 0 : t.data, b = [];
|
|
9407
9408
|
for (const w in A)
|
|
9408
|
-
|
|
9409
|
+
b.push(
|
|
9409
9410
|
Qe.get(A[w], {
|
|
9410
9411
|
headers: {
|
|
9411
9412
|
Authorization: this.token || this.defaultMeteoToken,
|
|
@@ -9413,10 +9414,10 @@ const js = {
|
|
|
9413
9414
|
}
|
|
9414
9415
|
})
|
|
9415
9416
|
);
|
|
9416
|
-
const E = await Promise.all(
|
|
9417
|
+
const E = await Promise.all(b);
|
|
9417
9418
|
this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: p }, E.map((w) => {
|
|
9418
|
-
var f,
|
|
9419
|
-
const k = ((f = w == null ? void 0 : w.data) == null ? void 0 : f.data) || (w == null ? void 0 : w.data), _ = (
|
|
9419
|
+
var f, v, u;
|
|
9420
|
+
const k = ((f = w == null ? void 0 : w.data) == null ? void 0 : f.data) || (w == null ? void 0 : w.data), _ = (u = (v = w == null ? void 0 : w.config) == null ? void 0 : v.headers) == null ? void 0 : u.key;
|
|
9420
9421
|
this.otherLayers[_] = k;
|
|
9421
9422
|
});
|
|
9422
9423
|
}
|
|
@@ -9427,9 +9428,9 @@ const js = {
|
|
|
9427
9428
|
}
|
|
9428
9429
|
});
|
|
9429
9430
|
if (((r = d == null ? void 0 : d.data) == null ? void 0 : r.code) === 0) {
|
|
9430
|
-
const A = (i = d == null ? void 0 : d.data) == null ? void 0 : i.data,
|
|
9431
|
+
const A = (i = d == null ? void 0 : d.data) == null ? void 0 : i.data, b = [];
|
|
9431
9432
|
for (const w in A)
|
|
9432
|
-
|
|
9433
|
+
b.push(
|
|
9433
9434
|
Qe.get(A[w], {
|
|
9434
9435
|
headers: {
|
|
9435
9436
|
Authorization: this.token || this.defaultMeteoToken,
|
|
@@ -9437,9 +9438,9 @@ const js = {
|
|
|
9437
9438
|
}
|
|
9438
9439
|
})
|
|
9439
9440
|
);
|
|
9440
|
-
(await Promise.all(
|
|
9441
|
-
var f,
|
|
9442
|
-
const k = ((f = w == null ? void 0 : w.data) == null ? void 0 : f.data) || (w == null ? void 0 : w.data), _ = (
|
|
9441
|
+
(await Promise.all(b)).map((w) => {
|
|
9442
|
+
var f, v, u;
|
|
9443
|
+
const k = ((f = w == null ? void 0 : w.data) == null ? void 0 : f.data) || (w == null ? void 0 : w.data), _ = (u = (v = w == null ? void 0 : w.config) == null ? void 0 : v.headers) == null ? void 0 : u.key;
|
|
9443
9444
|
this.otherLayers[_] = k;
|
|
9444
9445
|
});
|
|
9445
9446
|
}
|
|
@@ -9495,7 +9496,7 @@ const js = {
|
|
|
9495
9496
|
);
|
|
9496
9497
|
},
|
|
9497
9498
|
handleDrawWeather4Json() {
|
|
9498
|
-
var p, h, d, A,
|
|
9499
|
+
var p, h, d, A, b, E;
|
|
9499
9500
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
9500
9501
|
let e = 0, t = 0;
|
|
9501
9502
|
const r = (p = this.map) == null ? void 0 : p.getBounds(), i = this.map.getZoom(), s = se.convertToStdLng(r._sw.lng), n = se.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
|
|
@@ -9506,23 +9507,23 @@ const js = {
|
|
|
9506
9507
|
if (w === "swell") {
|
|
9507
9508
|
k = !0;
|
|
9508
9509
|
const f = ((h = this.weatherLayers[w]) == null ? void 0 : h.direction) || {};
|
|
9509
|
-
for (const
|
|
9510
|
-
if (
|
|
9511
|
-
const C = f[
|
|
9510
|
+
for (const u in f)
|
|
9511
|
+
if (u > l && u < c && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9512
|
+
const C = f[u].lng;
|
|
9512
9513
|
s > n ? C.forEach((y, L) => {
|
|
9513
9514
|
var T, D, F, N, j, G;
|
|
9514
9515
|
if (i < 2) {
|
|
9515
9516
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9516
|
-
const W = S.point([y,
|
|
9517
|
-
val: ((T = f[
|
|
9518
|
-
spd: (F = f[
|
|
9517
|
+
const W = S.point([y, u], {
|
|
9518
|
+
val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
|
|
9519
|
+
spd: (F = f[u].spd) == null ? void 0 : F[L]
|
|
9519
9520
|
});
|
|
9520
9521
|
_.push(W);
|
|
9521
9522
|
}
|
|
9522
9523
|
} else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9523
|
-
const W = S.point([y,
|
|
9524
|
-
val: ((N = f[
|
|
9525
|
-
spd: (G = f[
|
|
9524
|
+
const W = S.point([y, u], {
|
|
9525
|
+
val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
|
|
9526
|
+
spd: (G = f[u].spd) == null ? void 0 : G[L]
|
|
9526
9527
|
});
|
|
9527
9528
|
_.push(W);
|
|
9528
9529
|
}
|
|
@@ -9530,63 +9531,63 @@ const js = {
|
|
|
9530
9531
|
var T, D, F, N, j, G;
|
|
9531
9532
|
if (s < 2) {
|
|
9532
9533
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9533
|
-
const W = S.point([y,
|
|
9534
|
-
val: ((T = f[
|
|
9535
|
-
spd: (F = f[
|
|
9534
|
+
const W = S.point([y, u], {
|
|
9535
|
+
val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
|
|
9536
|
+
spd: (F = f[u].spd) == null ? void 0 : F[L]
|
|
9536
9537
|
});
|
|
9537
9538
|
_.push(W);
|
|
9538
9539
|
}
|
|
9539
9540
|
} else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9540
|
-
const W = S.point([y,
|
|
9541
|
-
val: ((N = f[
|
|
9542
|
-
spd: (G = f[
|
|
9541
|
+
const W = S.point([y, u], {
|
|
9542
|
+
val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
|
|
9543
|
+
spd: (G = f[u].spd) == null ? void 0 : G[L]
|
|
9543
9544
|
});
|
|
9544
9545
|
_.push(W);
|
|
9545
9546
|
}
|
|
9546
9547
|
});
|
|
9547
9548
|
}
|
|
9548
9549
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell direction elapsed: ", t, ", total: ", e += t);
|
|
9549
|
-
const
|
|
9550
|
-
if (
|
|
9551
|
-
if (!
|
|
9552
|
-
const
|
|
9553
|
-
for (const C in (d =
|
|
9554
|
-
const y =
|
|
9550
|
+
const v = this.weatherLayers[w].height;
|
|
9551
|
+
if (v) {
|
|
9552
|
+
if (!v.data) {
|
|
9553
|
+
const u = [];
|
|
9554
|
+
for (const C in (d = v.raw) == null ? void 0 : d.LineString) {
|
|
9555
|
+
const y = v.raw.LineString[C];
|
|
9555
9556
|
for (const L of y)
|
|
9556
|
-
|
|
9557
|
+
u.push(
|
|
9557
9558
|
S.lineString(L, {
|
|
9558
9559
|
val: Number(C)
|
|
9559
9560
|
})
|
|
9560
9561
|
);
|
|
9561
|
-
|
|
9562
|
+
v.data = S.featureCollection(u);
|
|
9562
9563
|
}
|
|
9563
9564
|
}
|
|
9564
|
-
if (
|
|
9565
|
-
const
|
|
9566
|
-
_ = _.concat(
|
|
9565
|
+
if (v.data) {
|
|
9566
|
+
const u = this.handleBboxClip(v.data, r);
|
|
9567
|
+
_ = _.concat(u);
|
|
9567
9568
|
}
|
|
9568
9569
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
|
|
9569
9570
|
}
|
|
9570
9571
|
} else if (w === "current" && this.showCurrentIsoband) {
|
|
9571
9572
|
k = !0;
|
|
9572
9573
|
const f = ((A = this.weatherLayers[w]) == null ? void 0 : A.direction) || {};
|
|
9573
|
-
for (const
|
|
9574
|
-
if (
|
|
9575
|
-
const C = f[
|
|
9574
|
+
for (const u in f)
|
|
9575
|
+
if (u > l && u < c && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9576
|
+
const C = f[u].lng;
|
|
9576
9577
|
s > n ? C.forEach((y, L) => {
|
|
9577
9578
|
var T, D, F, N, j, G;
|
|
9578
9579
|
if (i < 2) {
|
|
9579
9580
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9580
|
-
const W = S.point([y,
|
|
9581
|
-
val: ((T = f[
|
|
9582
|
-
spd: (F = f[
|
|
9581
|
+
const W = S.point([y, u], {
|
|
9582
|
+
val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
|
|
9583
|
+
spd: (F = f[u].spd) == null ? void 0 : F[L]
|
|
9583
9584
|
});
|
|
9584
9585
|
_.push(W);
|
|
9585
9586
|
}
|
|
9586
9587
|
} else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9587
|
-
const W = S.point([y,
|
|
9588
|
-
val: ((N = f[
|
|
9589
|
-
spd: (G = f[
|
|
9588
|
+
const W = S.point([y, u], {
|
|
9589
|
+
val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
|
|
9590
|
+
spd: (G = f[u].spd) == null ? void 0 : G[L]
|
|
9590
9591
|
});
|
|
9591
9592
|
_.push(W);
|
|
9592
9593
|
}
|
|
@@ -9594,28 +9595,28 @@ const js = {
|
|
|
9594
9595
|
var T, D, F, N, j, G;
|
|
9595
9596
|
if (s < 2) {
|
|
9596
9597
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9597
|
-
const W = S.point([y,
|
|
9598
|
-
val: ((T = f[
|
|
9599
|
-
spd: (F = f[
|
|
9598
|
+
const W = S.point([y, u], {
|
|
9599
|
+
val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
|
|
9600
|
+
spd: (F = f[u].spd) == null ? void 0 : F[L]
|
|
9600
9601
|
});
|
|
9601
9602
|
_.push(W);
|
|
9602
9603
|
}
|
|
9603
9604
|
} else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9604
|
-
const W = S.point([y,
|
|
9605
|
-
val: ((N = f[
|
|
9606
|
-
spd: (G = f[
|
|
9605
|
+
const W = S.point([y, u], {
|
|
9606
|
+
val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
|
|
9607
|
+
spd: (G = f[u].spd) == null ? void 0 : G[L]
|
|
9607
9608
|
});
|
|
9608
9609
|
_.push(W);
|
|
9609
9610
|
}
|
|
9610
9611
|
});
|
|
9611
9612
|
}
|
|
9612
9613
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current direction elapsed: ", t, ", total: ", e += t);
|
|
9613
|
-
const
|
|
9614
|
-
if (
|
|
9615
|
-
if (!
|
|
9614
|
+
const v = this.weatherLayers[w].speed;
|
|
9615
|
+
if (v) {
|
|
9616
|
+
if (!v.data) {
|
|
9616
9617
|
const C = [];
|
|
9617
|
-
for (const y in (
|
|
9618
|
-
const L =
|
|
9618
|
+
for (const y in (b = v.raw) == null ? void 0 : b.Polygon) {
|
|
9619
|
+
const L = v.raw.Polygon[y];
|
|
9619
9620
|
for (const T of L)
|
|
9620
9621
|
C.push(
|
|
9621
9622
|
S.polygon(T, {
|
|
@@ -9623,48 +9624,48 @@ const js = {
|
|
|
9623
9624
|
})
|
|
9624
9625
|
);
|
|
9625
9626
|
}
|
|
9626
|
-
|
|
9627
|
+
v.data = S.featureCollection(C);
|
|
9627
9628
|
}
|
|
9628
|
-
const
|
|
9629
|
-
_ = _.concat(
|
|
9629
|
+
const u = i < this.zoom ? v.data.features.filter((C) => C.properties.val > 0.5) : v.data.features;
|
|
9630
|
+
_ = _.concat(u), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
|
|
9630
9631
|
}
|
|
9631
9632
|
} else if (w === "wind" && this.showWindFeather) {
|
|
9632
9633
|
k = !0;
|
|
9633
9634
|
const f = this.weatherLayers.wind.raw;
|
|
9634
|
-
for (const
|
|
9635
|
-
if (
|
|
9636
|
-
const
|
|
9637
|
-
s > n ?
|
|
9635
|
+
for (const v in f)
|
|
9636
|
+
if (v > l && v < c && (!(i <= this.zoom) || v % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9637
|
+
const u = f[v].lng;
|
|
9638
|
+
s > n ? u.forEach((C, y) => {
|
|
9638
9639
|
var L, T, D, F;
|
|
9639
9640
|
if (i < 2) {
|
|
9640
9641
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9641
|
-
const N = S.point([C,
|
|
9642
|
-
dir: ((L = f[
|
|
9643
|
-
spd: f[
|
|
9642
|
+
const N = S.point([C, v], {
|
|
9643
|
+
dir: ((L = f[v].val) == null ? void 0 : L[y]) || ((T = f[v].dir) == null ? void 0 : T[y]),
|
|
9644
|
+
spd: f[v].spd[y]
|
|
9644
9645
|
});
|
|
9645
9646
|
_.push(N);
|
|
9646
9647
|
}
|
|
9647
9648
|
} else if ((C >= s && C <= 180 || C >= -180 && C <= n) && (!(i <= this.zoom) || C % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9648
|
-
const N = S.point([C,
|
|
9649
|
-
dir: ((D = f[
|
|
9650
|
-
spd: f[
|
|
9649
|
+
const N = S.point([C, v], {
|
|
9650
|
+
dir: ((D = f[v].val) == null ? void 0 : D[y]) || ((F = f[v].dir) == null ? void 0 : F[y]),
|
|
9651
|
+
spd: f[v].spd[y]
|
|
9651
9652
|
});
|
|
9652
9653
|
_.push(N);
|
|
9653
9654
|
}
|
|
9654
|
-
}) :
|
|
9655
|
+
}) : u.forEach((C, y) => {
|
|
9655
9656
|
var L, T, D, F;
|
|
9656
9657
|
if (i < 2) {
|
|
9657
9658
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9658
|
-
const N = S.point([C,
|
|
9659
|
-
dir: ((L = f[
|
|
9660
|
-
spd: f[
|
|
9659
|
+
const N = S.point([C, v], {
|
|
9660
|
+
dir: ((L = f[v].val) == null ? void 0 : L[y]) || ((T = f[v].dir) == null ? void 0 : T[y]),
|
|
9661
|
+
spd: f[v].spd[y]
|
|
9661
9662
|
});
|
|
9662
9663
|
_.push(N);
|
|
9663
9664
|
}
|
|
9664
9665
|
} else if (C >= s && C <= n && (!(i <= this.zoom) || C % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9665
|
-
const N = S.point([C,
|
|
9666
|
-
dir: ((D = f[
|
|
9667
|
-
spd: f[
|
|
9666
|
+
const N = S.point([C, v], {
|
|
9667
|
+
dir: ((D = f[v].val) == null ? void 0 : D[y]) || ((F = f[v].dir) == null ? void 0 : F[y]),
|
|
9668
|
+
spd: f[v].spd[y]
|
|
9668
9669
|
});
|
|
9669
9670
|
_.push(N);
|
|
9670
9671
|
}
|
|
@@ -9678,26 +9679,35 @@ const js = {
|
|
|
9678
9679
|
k = !0;
|
|
9679
9680
|
const f = this.weatherLayers[w].raw;
|
|
9680
9681
|
if (f) {
|
|
9681
|
-
const
|
|
9682
|
-
for (const
|
|
9683
|
-
const C = f.Polygon[
|
|
9682
|
+
const v = [];
|
|
9683
|
+
for (const u in f.Polygon) {
|
|
9684
|
+
const C = f.Polygon[u];
|
|
9684
9685
|
for (const y of C)
|
|
9685
|
-
|
|
9686
|
+
v.push(
|
|
9686
9687
|
S.polygon(y, {
|
|
9687
|
-
val: Number(
|
|
9688
|
+
val: Number(u)
|
|
9688
9689
|
})
|
|
9689
9690
|
);
|
|
9690
9691
|
}
|
|
9691
|
-
for (const
|
|
9692
|
-
const C = f.
|
|
9692
|
+
for (const u in f.MultiPolygon) {
|
|
9693
|
+
const C = f.MultiPolygon[u];
|
|
9694
|
+
for (const y of C)
|
|
9695
|
+
v.push(
|
|
9696
|
+
S.multiPolygon(y, {
|
|
9697
|
+
val: Number(u)
|
|
9698
|
+
})
|
|
9699
|
+
);
|
|
9700
|
+
}
|
|
9701
|
+
for (const u in f.Point) {
|
|
9702
|
+
const C = f.Point[u];
|
|
9693
9703
|
for (let y = 0; y < ((E = C.lng) == null ? void 0 : E.length); y++)
|
|
9694
|
-
|
|
9695
|
-
S.point([C.lng[y],
|
|
9704
|
+
v.push(
|
|
9705
|
+
S.point([C.lng[y], u], {
|
|
9696
9706
|
val: Number(C.val[y])
|
|
9697
9707
|
})
|
|
9698
9708
|
);
|
|
9699
9709
|
}
|
|
9700
|
-
_ = _.concat(
|
|
9710
|
+
_ = _.concat(v);
|
|
9701
9711
|
}
|
|
9702
9712
|
}
|
|
9703
9713
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
|
|
@@ -9708,26 +9718,26 @@ const js = {
|
|
|
9708
9718
|
k = !0;
|
|
9709
9719
|
const f = this.weatherLayers[w].raw;
|
|
9710
9720
|
if (f) {
|
|
9711
|
-
const
|
|
9712
|
-
for (const
|
|
9713
|
-
const C = f.LineString[
|
|
9721
|
+
const v = [];
|
|
9722
|
+
for (const u in f.LineString) {
|
|
9723
|
+
const C = f.LineString[u];
|
|
9714
9724
|
for (const y of C)
|
|
9715
|
-
|
|
9725
|
+
v.push(
|
|
9716
9726
|
S.lineString(y, {
|
|
9717
|
-
val: Number(
|
|
9727
|
+
val: Number(u)
|
|
9718
9728
|
})
|
|
9719
9729
|
);
|
|
9720
9730
|
}
|
|
9721
|
-
for (const
|
|
9722
|
-
f.Point[
|
|
9723
|
-
C = se.convertToStdLng(C),
|
|
9724
|
-
S.point([C,
|
|
9725
|
-
val: f.Point[
|
|
9726
|
-
type: f.Point[
|
|
9731
|
+
for (const u in f.Point)
|
|
9732
|
+
f.Point[u].lng.forEach((C, y) => {
|
|
9733
|
+
C = se.convertToStdLng(C), v.push(
|
|
9734
|
+
S.point([C, u], {
|
|
9735
|
+
val: f.Point[u].val[y],
|
|
9736
|
+
type: f.Point[u].type[y]
|
|
9727
9737
|
})
|
|
9728
9738
|
);
|
|
9729
9739
|
});
|
|
9730
|
-
_ = _.concat(
|
|
9740
|
+
_ = _.concat(v);
|
|
9731
9741
|
}
|
|
9732
9742
|
}
|
|
9733
9743
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
@@ -9768,8 +9778,8 @@ const js = {
|
|
|
9768
9778
|
this.handleBeforeLayerToggle();
|
|
9769
9779
|
},
|
|
9770
9780
|
handleBeforeLayerToggle() {
|
|
9771
|
-
var a, e, t, r, i, s, n, l, c, p, h, d, A,
|
|
9772
|
-
(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 || (p = this.otherLayers) != null && p.enc || (h = this.otherLayers) != null && h.world12nm || (d = this.otherLayers) != null && d.worldMarine || (A = this.otherLayers) != null && A.chinaRoute || (
|
|
9781
|
+
var a, e, t, r, i, s, n, l, c, p, h, d, A, b, E, w;
|
|
9782
|
+
(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 || (p = this.otherLayers) != null && p.enc || (h = this.otherLayers) != null && h.world12nm || (d = this.otherLayers) != null && d.worldMarine || (A = this.otherLayers) != null && A.chinaRoute || (b = this.otherLayers) != null && b["voluntary-reporting-area"] || (E = this.otherLayers) != null && E["eca-zones"] || (w = this.otherLayers) != null && w["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
9773
9783
|
},
|
|
9774
9784
|
handleDateChange(a = { tropicals: !1 }) {
|
|
9775
9785
|
this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -9803,8 +9813,8 @@ const js = {
|
|
|
9803
9813
|
}
|
|
9804
9814
|
},
|
|
9805
9815
|
handle3dToggle(a) {
|
|
9806
|
-
var e, t, r, i, s, n, l, c, p, h, d, A,
|
|
9807
|
-
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((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("move", this.handleDraWeather4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("move", this.handleDraWeather4Image), this.handleDraWeather4Image(), (A = this.map) != null && A.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((
|
|
9816
|
+
var e, t, r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u;
|
|
9817
|
+
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((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("move", this.handleDraWeather4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("move", this.handleDraWeather4Image), this.handleDraWeather4Image(), (A = this.map) != null && A.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((w = this.map) == null || w.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((k = this.viewport) == null ? void 0 : k.particleLayer) && ((f = this.map) != null && f.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((u = this.map) == null || u.moveLayer((v = this.viewport) == null ? void 0 : v.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
9808
9818
|
},
|
|
9809
9819
|
handleParticle(a) {
|
|
9810
9820
|
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
|
|
@@ -9829,8 +9839,8 @@ const js = {
|
|
|
9829
9839
|
};
|
|
9830
9840
|
function Gs(a, e, t, r, i, s) {
|
|
9831
9841
|
var pe, ye, Le, Ce, xe, we, _e, B, ze, ve, Pe, Ee, He, ke, re, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue;
|
|
9832
|
-
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), p = R("IdmWorldMarine"), h = R("IdmChinaRoute"), d = R("IdmSigWave"), A = R("IdmSwell"),
|
|
9833
|
-
return t.map ? (m(),
|
|
9842
|
+
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), p = R("IdmWorldMarine"), h = R("IdmChinaRoute"), d = R("IdmSigWave"), A = R("IdmSwell"), b = R("IdmPrmsl"), E = R("IdmIceEdge"), w = R("IdmIceCover"), k = R("IdmIceThickness"), _ = R("IdmTropicals"), f = R("IdmCurrents"), v = R("IdmCurrentParticle"), u = R("IdmWindBarb"), C = R("IdmWindParticle"), y = R("IdmPrecip3h"), L = R("IdmVisibility"), T = R("IdmWaterTemp"), D = R("IdmTemp"), F = R("IdmWarZone"), N = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), me = R("IdmLoadLine"), he = R("IdmTimezone"), ue = R("IdmVRA"), fe = R("IdmSpecialArea"), ge = R("IdmTerminator"), Y = R("IdmLatLng"), ae = R("IdmMeasure"), Ae = R("IdmPoint");
|
|
9843
|
+
return t.map ? (m(), g("div", Ws, [
|
|
9834
9844
|
H(n, X({
|
|
9835
9845
|
ref: "layer",
|
|
9836
9846
|
map: t.map,
|
|
@@ -9900,7 +9910,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9900
9910
|
"before-layer": t.beforeLayer,
|
|
9901
9911
|
"active-weather-layers": i.activeWeatherLayers
|
|
9902
9912
|
}, a.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
|
|
9903
|
-
H(
|
|
9913
|
+
H(b, X({
|
|
9904
9914
|
map: t.map,
|
|
9905
9915
|
prmsl: (_e = i.weatherLayers) == null ? void 0 : _e.prmsl,
|
|
9906
9916
|
"before-layer": t.beforeLayer,
|
|
@@ -9945,13 +9955,13 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9945
9955
|
onParticle: s.handleParticle,
|
|
9946
9956
|
onHandleToggleVersion: s.handleToggleVersion
|
|
9947
9957
|
}), null, 16, ["map", "map-projection", "current", "before-layer", "show-current-isoband", "show-current-particle", "toggle-partice-version", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
9948
|
-
H(
|
|
9958
|
+
H(v, X({
|
|
9949
9959
|
viewport: i.viewport,
|
|
9950
9960
|
factor: (He = i.weatherLayers) == null ? void 0 : He["current-particle"],
|
|
9951
9961
|
"before-layer": t.beforeLayer,
|
|
9952
9962
|
"toggle-version": t.toggleVersion
|
|
9953
9963
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9954
|
-
H(
|
|
9964
|
+
H(u, X({
|
|
9955
9965
|
ref: "windBarb",
|
|
9956
9966
|
map: t.map,
|
|
9957
9967
|
"map-projection": i.mapProjection,
|