@idmwx/idmui-gl3 6.2.6 → 6.2.7
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 +266 -257
- package/dist/index.umd.cjs +4 -4
- package/package.json +1 -1
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) {
|
|
@@ -3260,7 +3260,7 @@ const la = {
|
|
|
3260
3260
|
}, ha = { key: 0 };
|
|
3261
3261
|
function ca(a, e, t, r, i, s) {
|
|
3262
3262
|
var n;
|
|
3263
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
3263
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", ha, [
|
|
3264
3264
|
o("div", {
|
|
3265
3265
|
class: "legend-bars flex-center",
|
|
3266
3266
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -3593,7 +3593,7 @@ const ga = {
|
|
|
3593
3593
|
}, ya = { key: 0 };
|
|
3594
3594
|
function fa(a, e, t, r, i, s) {
|
|
3595
3595
|
var n;
|
|
3596
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
3596
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", ya, [
|
|
3597
3597
|
o("div", {
|
|
3598
3598
|
class: "legend-bars flex-center",
|
|
3599
3599
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -3737,7 +3737,7 @@ const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-c2962e63
|
|
|
3737
3737
|
}
|
|
3738
3738
|
};
|
|
3739
3739
|
function va(a, e, t, r, i, s) {
|
|
3740
|
-
return m(),
|
|
3740
|
+
return m(), g("div");
|
|
3741
3741
|
}
|
|
3742
3742
|
const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
|
|
3743
3743
|
name: "IdmSwell",
|
|
@@ -3895,7 +3895,7 @@ const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
|
|
|
3895
3895
|
}
|
|
3896
3896
|
};
|
|
3897
3897
|
function Ca(a, e, t, r, i, s) {
|
|
3898
|
-
return m(),
|
|
3898
|
+
return m(), g("div");
|
|
3899
3899
|
}
|
|
3900
3900
|
const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
|
|
3901
3901
|
name: "IdmPrmsl",
|
|
@@ -4033,7 +4033,7 @@ const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
|
|
|
4033
4033
|
}
|
|
4034
4034
|
};
|
|
4035
4035
|
function Ba(a, e, t, r, i, s) {
|
|
4036
|
-
return m(),
|
|
4036
|
+
return m(), g("div");
|
|
4037
4037
|
}
|
|
4038
4038
|
const Ia = /* @__PURE__ */ U(_a, [["render", Ba]]);
|
|
4039
4039
|
const Ea = {
|
|
@@ -4140,7 +4140,7 @@ const Ea = {
|
|
|
4140
4140
|
}, ka = { key: 0 };
|
|
4141
4141
|
function Da(a, e, t, r, i, s) {
|
|
4142
4142
|
var n;
|
|
4143
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
4143
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", ka, [
|
|
4144
4144
|
o("div", {
|
|
4145
4145
|
class: "legend-bars flex-center",
|
|
4146
4146
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -4256,7 +4256,7 @@ const Pa = {
|
|
|
4256
4256
|
}, Ma = { key: 0 };
|
|
4257
4257
|
function Sa(a, e, t, r, i, s) {
|
|
4258
4258
|
var n;
|
|
4259
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
4259
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", Ma, [
|
|
4260
4260
|
o("div", {
|
|
4261
4261
|
class: "legend-bars flex-center",
|
|
4262
4262
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -4374,7 +4374,7 @@ const Qa = {
|
|
|
4374
4374
|
}, Ha = { key: 0 };
|
|
4375
4375
|
function Na(a, e, t, r, i, s) {
|
|
4376
4376
|
var n;
|
|
4377
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
4377
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", Ha, [
|
|
4378
4378
|
o("div", {
|
|
4379
4379
|
class: "legend-bars flex-center",
|
|
4380
4380
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -4707,11 +4707,11 @@ class ht {
|
|
|
4707
4707
|
const i = e.toLowerCase().split(","), s = [], n = [];
|
|
4708
4708
|
for (const l of i) {
|
|
4709
4709
|
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 || ((
|
|
4710
|
+
var d, A, b;
|
|
4711
|
+
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
4712
|
}), 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 || ((
|
|
4713
|
+
var d, A, b;
|
|
4714
|
+
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
4715
|
});
|
|
4716
4716
|
c = c || Xe.find((h) => {
|
|
4717
4717
|
var d, A;
|
|
@@ -4736,7 +4736,7 @@ class ht {
|
|
|
4736
4736
|
}), i;
|
|
4737
4737
|
}
|
|
4738
4738
|
static pickHourly(e, t) {
|
|
4739
|
-
var r, i, s, n, l, c, p, h, d, A,
|
|
4739
|
+
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
4740
|
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
4741
|
if (re.isBetween(K, q, "millisecond", "[]")) {
|
|
4742
4742
|
const P = re.utc().diff(K, "h", !1);
|
|
@@ -4750,7 +4750,7 @@ class ht {
|
|
|
4750
4750
|
for (let Ne = P - (P - 1) % 6; Ne <= P; Ne++)
|
|
4751
4751
|
Te += (A = O == null ? void 0 : O.precipitation) == null ? void 0 : A.at(Ne);
|
|
4752
4752
|
de = {
|
|
4753
|
-
temp: (
|
|
4753
|
+
temp: (b = O == null ? void 0 : O.temperature_2m) == null ? void 0 : b.at(P),
|
|
4754
4754
|
apparentTemp: (E = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : E.at(P),
|
|
4755
4755
|
rh: (w = O == null ? void 0 : O.relative_humidity_2m) == null ? void 0 : w.at(P),
|
|
4756
4756
|
dp: (k = O == null ? void 0 : O.dew_point_2m) == null ? void 0 : k.at(P),
|
|
@@ -4760,8 +4760,8 @@ class ht {
|
|
|
4760
4760
|
sum3Hours: Math.round(Se * 100) / 100,
|
|
4761
4761
|
sum6Hours: Math.round(Te * 100) / 100
|
|
4762
4762
|
},
|
|
4763
|
-
pmsl: (
|
|
4764
|
-
psurf: (
|
|
4763
|
+
pmsl: (v = O == null ? void 0 : O.pressure_msl) == null ? void 0 : v.at(P),
|
|
4764
|
+
psurf: (u = O == null ? void 0 : O.surface_pressure) == null ? void 0 : u.at(P),
|
|
4765
4765
|
code: (C = O == null ? void 0 : O.weather_code) == null ? void 0 : C.at(P),
|
|
4766
4766
|
visibility: this.m2nm((y = O == null ? void 0 : O.visibility) == null ? void 0 : y.at(P)),
|
|
4767
4767
|
wind: {
|
|
@@ -4845,7 +4845,7 @@ class ht {
|
|
|
4845
4845
|
};
|
|
4846
4846
|
}
|
|
4847
4847
|
static pickDaily(e, t) {
|
|
4848
|
-
var r, i, s, n, l, c, p, h, d, A,
|
|
4848
|
+
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
4849
|
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
4850
|
if (ze.isBetween(Ee, He, "millisecond", "[]")) {
|
|
4851
4851
|
let re, ce;
|
|
@@ -4861,7 +4861,7 @@ class ht {
|
|
|
4861
4861
|
mean: (A = K.temperature_2m_mean) == null ? void 0 : A.at(Q)
|
|
4862
4862
|
},
|
|
4863
4863
|
apparentTemp: {
|
|
4864
|
-
max: (
|
|
4864
|
+
max: (b = K.apparent_temperature_max) == null ? void 0 : b.at(Q),
|
|
4865
4865
|
min: (E = K.apparent_temperature_min) == null ? void 0 : E.at(Q)
|
|
4866
4866
|
},
|
|
4867
4867
|
precip: {
|
|
@@ -4869,8 +4869,8 @@ class ht {
|
|
|
4869
4869
|
rainSum: (k = K.rain_sum) == null ? void 0 : k.at(Q),
|
|
4870
4870
|
snowfallSum: (_ = K.snowfall_sum) == null ? void 0 : _.at(Q),
|
|
4871
4871
|
showersSum: (f = K.showers_sum) == null ? void 0 : f.at(Q),
|
|
4872
|
-
hours: (
|
|
4873
|
-
probability: (
|
|
4872
|
+
hours: (v = K.precipitation_hours) == null ? void 0 : v.at(Q),
|
|
4873
|
+
probability: (u = K.precipitation_probability_max) == null ? void 0 : u.at(Q)
|
|
4874
4874
|
},
|
|
4875
4875
|
rh: {
|
|
4876
4876
|
max: (C = K.relative_humidity_2m_max) == null ? void 0 : C.at(Q),
|
|
@@ -5461,8 +5461,8 @@ const Oa = {
|
|
|
5461
5461
|
else {
|
|
5462
5462
|
if (this.tropicals) {
|
|
5463
5463
|
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),
|
|
5464
|
+
let A = 0, b = 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), b = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropicals] update elapsed: ", b, ", total: ", A += b)) : (this.map.addSource(this.source, {
|
|
5466
5466
|
type: "geojson",
|
|
5467
5467
|
data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
|
|
5468
5468
|
}), this.map.addLayer({
|
|
@@ -5559,7 +5559,7 @@ const Oa = {
|
|
|
5559
5559
|
],
|
|
5560
5560
|
"text-halo-width": 4
|
|
5561
5561
|
}
|
|
5562
|
-
}),
|
|
5562
|
+
}), 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
5563
|
type: "geojson",
|
|
5564
5564
|
data: (c = this.tropicals) != null && c.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
5565
5565
|
// cluster: true,
|
|
@@ -5676,7 +5676,7 @@ const Oa = {
|
|
|
5676
5676
|
"text-halo-color": "#0033ff",
|
|
5677
5677
|
"text-halo-width": 4
|
|
5678
5678
|
}
|
|
5679
|
-
}),
|
|
5679
|
+
}), b = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropical] add elapsed: ", b, ", total: ", A += b));
|
|
5680
5680
|
}
|
|
5681
5681
|
this.handleDrawCircle();
|
|
5682
5682
|
const h = ct.interpolate(this.tropicals, 1);
|
|
@@ -5688,7 +5688,7 @@ const Oa = {
|
|
|
5688
5688
|
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
5689
|
},
|
|
5690
5690
|
handleDateChange() {
|
|
5691
|
-
var a, e, t, r, i, s, n, l, c, p, h, d, A,
|
|
5691
|
+
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
5692
|
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
5693
|
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
5694
|
fe.forEach((Y) => {
|
|
@@ -5710,7 +5710,7 @@ const Oa = {
|
|
|
5710
5710
|
for (const Y of ue)
|
|
5711
5711
|
if (!Y.properties.disabled) {
|
|
5712
5712
|
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 && ((
|
|
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 && ((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
5714
|
const Ae = `<svg t="1719918955501"
|
|
5715
5715
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5716
5716
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -5736,19 +5736,19 @@ const Oa = {
|
|
|
5736
5736
|
handleClick(a) {
|
|
5737
5737
|
var s, n, l, c, p, h, d, A;
|
|
5738
5738
|
const e = a.features[0], t = (n = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : n.features.filter(
|
|
5739
|
-
(
|
|
5739
|
+
(b) => {
|
|
5740
5740
|
var E;
|
|
5741
|
-
return
|
|
5741
|
+
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
5742
|
}
|
|
5743
5743
|
), r = (c = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : c.features.filter(
|
|
5744
|
-
(
|
|
5744
|
+
(b) => {
|
|
5745
5745
|
var E;
|
|
5746
|
-
return
|
|
5746
|
+
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
5747
|
}
|
|
5748
5748
|
);
|
|
5749
5749
|
this.activeTropicals = {
|
|
5750
5750
|
name: (p = e == null ? void 0 : e.properties) == null ? void 0 : p.name,
|
|
5751
|
-
forecasts: t.map((
|
|
5751
|
+
forecasts: t.map((b) => b.properties),
|
|
5752
5752
|
history: (h = r[0]) == null ? void 0 : h.properties,
|
|
5753
5753
|
showCircle: (A = (d = t[0]) == null ? void 0 : d.properties) == null ? void 0 : A.showCircle
|
|
5754
5754
|
}, this.showTropicals = !0;
|
|
@@ -5864,18 +5864,18 @@ const Oa = {
|
|
|
5864
5864
|
style: { "justify-content": "flex-start" }
|
|
5865
5865
|
}, ai = { class: "forecast-models" }, ii = ["onClick"], ri = { class: "more" };
|
|
5866
5866
|
function si(a, e, t, r, i, s) {
|
|
5867
|
-
var n, l, c, p, h, d, A,
|
|
5868
|
-
return Fe((m(),
|
|
5867
|
+
var n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T;
|
|
5868
|
+
return Fe((m(), g("div", Ra, [
|
|
5869
5869
|
o("div", ja, [
|
|
5870
5870
|
o("div", {
|
|
5871
5871
|
class: "iconfont close-btn",
|
|
5872
5872
|
onClick: e[0] || (e[0] = (D) => i.showTropicals = !1)
|
|
5873
5873
|
}, ""),
|
|
5874
5874
|
o("div", Wa, [
|
|
5875
|
-
(l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (m(),
|
|
5875
|
+
(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
5876
|
ne(I((h = i.activeTropicals) == null ? void 0 : h.name), 1)
|
|
5877
5877
|
]),
|
|
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 = (
|
|
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 = (b = i.activeTropicals) == null ? void 0 : b.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : w.date))), 1)
|
|
5879
5879
|
]),
|
|
5880
5880
|
o("div", Ya, [
|
|
5881
5881
|
o("div", Ka, [
|
|
@@ -5883,11 +5883,11 @@ function si(a, e, t, r, i, s) {
|
|
|
5883
5883
|
o("div", Ja, [
|
|
5884
5884
|
e[3] || (e[3] = o("label", null, "Wind speed : ", -1)),
|
|
5885
5885
|
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(((
|
|
5886
|
+
o("span", null, ", BF " + I(s.computeBF(((v = (f = i.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : v.kts) || 0)), 1)
|
|
5887
5887
|
]),
|
|
5888
5888
|
o("div", qa, [
|
|
5889
5889
|
e[4] || (e[4] = o("label", null, "Pressure : ", -1)),
|
|
5890
|
-
o("span", null, I(((C = (
|
|
5890
|
+
o("span", null, I(((C = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : C.pressure) || "-") + " [hPa]", 1)
|
|
5891
5891
|
])
|
|
5892
5892
|
]),
|
|
5893
5893
|
o("div", Va, [
|
|
@@ -5904,9 +5904,9 @@ function si(a, e, t, r, i, s) {
|
|
|
5904
5904
|
o("div", ti, [
|
|
5905
5905
|
e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
5906
5906
|
o("div", ai, [
|
|
5907
|
-
(m(!0),
|
|
5907
|
+
(m(!0), g(V, null, $((T = i.activeTropicals) == null ? void 0 : T.forecasts, (D, F) => {
|
|
5908
5908
|
var N, j, G, W;
|
|
5909
|
-
return m(),
|
|
5909
|
+
return m(), g("div", {
|
|
5910
5910
|
key: F,
|
|
5911
5911
|
class: Z([
|
|
5912
5912
|
"model",
|
|
@@ -5926,7 +5926,7 @@ function si(a, e, t, r, i, s) {
|
|
|
5926
5926
|
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
5927
|
]),
|
|
5928
5928
|
o("div", ri, [
|
|
5929
|
-
t.permission & i.helper.LEVEL.Supper ? (m(),
|
|
5929
|
+
t.permission & i.helper.LEVEL.Supper ? (m(), g("div", {
|
|
5930
5930
|
key: 0,
|
|
5931
5931
|
class: "button",
|
|
5932
5932
|
style: { "margin-right": "10px" },
|
|
@@ -6047,7 +6047,7 @@ const oi = {
|
|
|
6047
6047
|
}, ni = { key: 0 };
|
|
6048
6048
|
function li(a, e, t, r, i, s) {
|
|
6049
6049
|
var n;
|
|
6050
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
6050
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", ni, [
|
|
6051
6051
|
o("div", {
|
|
6052
6052
|
class: "legend-bars flex-center",
|
|
6053
6053
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -6161,7 +6161,7 @@ const ci = {
|
|
|
6161
6161
|
}, di = { key: 0 };
|
|
6162
6162
|
function pi(a, e, t, r, i, s) {
|
|
6163
6163
|
var n;
|
|
6164
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
6164
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", di, [
|
|
6165
6165
|
o("div", {
|
|
6166
6166
|
class: "legend-bars flex-center",
|
|
6167
6167
|
style: le([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
@@ -6281,7 +6281,7 @@ const ui = {
|
|
|
6281
6281
|
}, gi = { key: 0 };
|
|
6282
6282
|
function yi(a, e, t, r, i, s) {
|
|
6283
6283
|
var n;
|
|
6284
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
6284
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", gi, [
|
|
6285
6285
|
o("div", {
|
|
6286
6286
|
class: "legend-bars flex-center",
|
|
6287
6287
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -6404,7 +6404,7 @@ const Ai = {
|
|
|
6404
6404
|
}, wi = { key: 0 };
|
|
6405
6405
|
function vi(a, e, t, r, i, s) {
|
|
6406
6406
|
var n;
|
|
6407
|
-
return (n = t.factor) != null && n.active ? (m(),
|
|
6407
|
+
return (n = t.factor) != null && n.active ? (m(), g("div", wi, [
|
|
6408
6408
|
o("div", {
|
|
6409
6409
|
class: "legend-bars flex-center",
|
|
6410
6410
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -6426,7 +6426,7 @@ var Li = /* @__PURE__ */ ft({
|
|
|
6426
6426
|
name: "LocationFilled",
|
|
6427
6427
|
__name: "location-filled",
|
|
6428
6428
|
setup(a) {
|
|
6429
|
-
return (e, t) => (m(),
|
|
6429
|
+
return (e, t) => (m(), g("svg", {
|
|
6430
6430
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6431
6431
|
viewBox: "0 0 1024 1024"
|
|
6432
6432
|
}, [
|
|
@@ -6636,7 +6636,7 @@ const _i = {
|
|
|
6636
6636
|
initTableData(a) {
|
|
6637
6637
|
var e, t, r, i, s, n, l, c, p;
|
|
6638
6638
|
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,
|
|
6639
|
+
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
6640
|
if (!document.getElementById("meteoMainBox"))
|
|
6641
6641
|
return !1;
|
|
6642
6642
|
if (!this.currentHourData)
|
|
@@ -6645,7 +6645,7 @@ const _i = {
|
|
|
6645
6645
|
const _e = Ye(this.ts).tz(this.positionGmt).add(3 * we, "h").format();
|
|
6646
6646
|
this.tableData.hours.push(_e);
|
|
6647
6647
|
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 = (
|
|
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 = (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
6649
|
}
|
|
6650
6650
|
});
|
|
6651
6651
|
},
|
|
@@ -6771,9 +6771,9 @@ const _i = {
|
|
|
6771
6771
|
class: "main-box flex-center"
|
|
6772
6772
|
};
|
|
6773
6773
|
function Qr(a, e, t, r, i, s) {
|
|
6774
|
-
var p, h, d, A,
|
|
6774
|
+
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
6775
|
const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
|
|
6776
|
-
return Fe((m(),
|
|
6776
|
+
return Fe((m(), g("div", Bi, [
|
|
6777
6777
|
o("div", Ii, [
|
|
6778
6778
|
o("div", Ei, [
|
|
6779
6779
|
o("div", ki, [
|
|
@@ -6786,11 +6786,11 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6786
6786
|
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
6787
|
]),
|
|
6788
6788
|
o("div", zi, [
|
|
6789
|
-
i.showTables ? (m(),
|
|
6789
|
+
i.showTables ? (m(), g("div", {
|
|
6790
6790
|
key: 0,
|
|
6791
6791
|
class: "iconfont toggle",
|
|
6792
6792
|
onClick: e[0] || (e[0] = (x) => i.showTables = !i.showTables)
|
|
6793
|
-
}, "")) : (m(),
|
|
6793
|
+
}, "")) : (m(), g("div", {
|
|
6794
6794
|
key: 1,
|
|
6795
6795
|
class: "iconfont toggle",
|
|
6796
6796
|
onClick: e[1] || (e[1] = (x) => i.showTables = !i.showTables)
|
|
@@ -6801,12 +6801,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6801
6801
|
}, "")
|
|
6802
6802
|
])
|
|
6803
6803
|
]),
|
|
6804
|
-
i.loading ? (m(),
|
|
6804
|
+
i.loading ? (m(), g("div", Tr, e[43] || (e[43] = [
|
|
6805
6805
|
o("img", {
|
|
6806
6806
|
src: xi,
|
|
6807
6807
|
alt: ""
|
|
6808
6808
|
}, null, -1)
|
|
6809
|
-
]))) : (m(),
|
|
6809
|
+
]))) : (m(), g("div", {
|
|
6810
6810
|
key: 0,
|
|
6811
6811
|
class: Z(["main-box", i.isDay ? "day-bg" : "night-bg"]),
|
|
6812
6812
|
id: "meteoMainBox"
|
|
@@ -6822,19 +6822,19 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6822
6822
|
default: Ie(() => {
|
|
6823
6823
|
var x, M, nt, lt;
|
|
6824
6824
|
return [
|
|
6825
|
-
(M = (x = i.currentHourData) == null ? void 0 : x.weather) != null && M.url ? (m(),
|
|
6825
|
+
(M = (x = i.currentHourData) == null ? void 0 : x.weather) != null && M.url ? (m(), g("img", {
|
|
6826
6826
|
key: 0,
|
|
6827
6827
|
class: "iconfont icon",
|
|
6828
6828
|
style: { "margin-right": "5px" },
|
|
6829
6829
|
src: (lt = (nt = i.currentHourData) == null ? void 0 : nt.weather) == null ? void 0 : lt.url
|
|
6830
|
-
}, null, 8, Si)) : (m(),
|
|
6830
|
+
}, null, 8, Si)) : (m(), g("span", Ti))
|
|
6831
6831
|
];
|
|
6832
6832
|
}),
|
|
6833
6833
|
_: 1
|
|
6834
6834
|
}, 8, ["content"]),
|
|
6835
6835
|
o("div", Qi, [
|
|
6836
6836
|
o("div", null, [
|
|
6837
|
-
ne(I(s.roundPrecision((E = (
|
|
6837
|
+
ne(I(s.roundPrecision((E = (b = i.currentHourData) == null ? void 0 : b.weather) == null ? void 0 : E.temp, 0)), 1),
|
|
6838
6838
|
e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
6839
6839
|
])
|
|
6840
6840
|
]),
|
|
@@ -6845,11 +6845,11 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6845
6845
|
]),
|
|
6846
6846
|
o("div", Fi, [
|
|
6847
6847
|
e[11] || (e[11] = o("label", null, "Visibility : ", -1)),
|
|
6848
|
-
o("span", null, I(s.roundPrecision((
|
|
6848
|
+
o("span", null, I(s.roundPrecision((v = (f = i.currentHourData) == null ? void 0 : f.weather) == null ? void 0 : v.visibility, 0)) + " nm", 1)
|
|
6849
6849
|
]),
|
|
6850
6850
|
o("div", Oi, [
|
|
6851
6851
|
e[12] || (e[12] = o("label", null, "Wind : ", -1)),
|
|
6852
|
-
o("span", null, I(s.roundPrecision((y = (C = (
|
|
6852
|
+
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
6853
|
])
|
|
6854
6854
|
])
|
|
6855
6855
|
]),
|
|
@@ -6887,7 +6887,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6887
6887
|
ne("Hours"),
|
|
6888
6888
|
o("span", { class: "unit" }, "(LT)")
|
|
6889
6889
|
], -1)),
|
|
6890
|
-
(m(!0),
|
|
6890
|
+
(m(!0), g(V, null, $(i.tableData.hours, (x) => (m(), g("th", {
|
|
6891
6891
|
rowspan: "1",
|
|
6892
6892
|
colspan: "1",
|
|
6893
6893
|
key: `HourL${x}`
|
|
@@ -6902,7 +6902,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6902
6902
|
ne("UTC"),
|
|
6903
6903
|
o("span", { class: "unit" })
|
|
6904
6904
|
], -1)),
|
|
6905
|
-
(m(!0),
|
|
6905
|
+
(m(!0), g(V, null, $(i.tableData.hours, (x) => (m(), g("th", {
|
|
6906
6906
|
rowspan: "1",
|
|
6907
6907
|
colspan: "1",
|
|
6908
6908
|
key: `HourZ${x}`
|
|
@@ -6914,7 +6914,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6914
6914
|
colspan: "1",
|
|
6915
6915
|
class: "tr-title"
|
|
6916
6916
|
}, null, -1)),
|
|
6917
|
-
(m(!0),
|
|
6917
|
+
(m(!0), g(V, null, $(i.tableData.weatherUrls, (x, M) => (m(), g("th", {
|
|
6918
6918
|
rowspan: "1",
|
|
6919
6919
|
colspan: "1",
|
|
6920
6920
|
key: `weatherUrls${M}${x}`
|
|
@@ -6926,7 +6926,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6926
6926
|
"show-after": 500
|
|
6927
6927
|
}, {
|
|
6928
6928
|
default: Ie(() => [
|
|
6929
|
-
x ? (m(),
|
|
6929
|
+
x ? (m(), g("img", {
|
|
6930
6930
|
key: 0,
|
|
6931
6931
|
class: "iconfont weather-icon",
|
|
6932
6932
|
src: x,
|
|
@@ -6946,7 +6946,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6946
6946
|
ne("Temp"),
|
|
6947
6947
|
o("span", { class: "unit" }, "°C")
|
|
6948
6948
|
], -1)),
|
|
6949
|
-
(m(!0),
|
|
6949
|
+
(m(!0), g(V, null, $(i.tableData.temp, (x, M) => (m(), g("td", {
|
|
6950
6950
|
rowspan: "1",
|
|
6951
6951
|
colspan: "1",
|
|
6952
6952
|
key: `weatherUrls${M}${x}`
|
|
@@ -6961,7 +6961,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6961
6961
|
ne("Precip"),
|
|
6962
6962
|
o("span", { class: "unit" }, "mm")
|
|
6963
6963
|
], -1)),
|
|
6964
|
-
(m(!0),
|
|
6964
|
+
(m(!0), g(V, null, $(i.tableData.precip1h, (x, M) => (m(), g("td", {
|
|
6965
6965
|
rowspan: "1",
|
|
6966
6966
|
colspan: "1",
|
|
6967
6967
|
key: `precip1h${M}${x}`
|
|
@@ -6976,7 +6976,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6976
6976
|
ne("Visibility"),
|
|
6977
6977
|
o("span", { class: "unit" }, "nm")
|
|
6978
6978
|
], -1)),
|
|
6979
|
-
(m(!0),
|
|
6979
|
+
(m(!0), g(V, null, $(i.tableData.visibility, (x, M) => (m(), g("td", {
|
|
6980
6980
|
rowspan: "1",
|
|
6981
6981
|
colspan: "1",
|
|
6982
6982
|
key: `visibility${M}${x}`
|
|
@@ -6991,7 +6991,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6991
6991
|
ne("Wind gust"),
|
|
6992
6992
|
o("span", { class: "unit" }, "kts")
|
|
6993
6993
|
], -1)),
|
|
6994
|
-
(m(!0),
|
|
6994
|
+
(m(!0), g(V, null, $(i.tableData.windGust, (x, M) => (m(), g("td", {
|
|
6995
6995
|
rowspan: "1",
|
|
6996
6996
|
colspan: "1",
|
|
6997
6997
|
key: `windGust${M}${x}`
|
|
@@ -7012,7 +7012,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7012
7012
|
ne("Hours"),
|
|
7013
7013
|
o("span", { class: "unit" }, "(LT)")
|
|
7014
7014
|
], -1)),
|
|
7015
|
-
(m(!0),
|
|
7015
|
+
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
7016
7016
|
rowspan: "1",
|
|
7017
7017
|
colspan: "1",
|
|
7018
7018
|
key: `currenthoursL${M}${x}`
|
|
@@ -7027,7 +7027,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7027
7027
|
ne("UTC"),
|
|
7028
7028
|
o("span", { class: "unit" })
|
|
7029
7029
|
], -1)),
|
|
7030
|
-
(m(!0),
|
|
7030
|
+
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
7031
7031
|
rowspan: "1",
|
|
7032
7032
|
colspan: "1",
|
|
7033
7033
|
key: `currenthoursZ${M}${x}`
|
|
@@ -7042,12 +7042,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7042
7042
|
ne("Wind"),
|
|
7043
7043
|
o("span", { class: "unit" }, "kts")
|
|
7044
7044
|
], -1)),
|
|
7045
|
-
(m(!0),
|
|
7045
|
+
(m(!0), g(V, null, $(i.tableData.windSpeed, (x, M) => (m(), g("td", {
|
|
7046
7046
|
rowspan: "1",
|
|
7047
7047
|
colspan: "1",
|
|
7048
7048
|
key: `windSpeed${M}${x}`
|
|
7049
7049
|
}, [
|
|
7050
|
-
isNaN(i.tableData.windDir[M]) ? J("", !0) : (m(),
|
|
7050
|
+
isNaN(i.tableData.windDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7051
7051
|
key: 0,
|
|
7052
7052
|
class: "iconfont icon wind",
|
|
7053
7053
|
style: le({ display: "inline-block", transform: `rotate(${i.tableData.windDir[M]}deg)` })
|
|
@@ -7064,12 +7064,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7064
7064
|
ne("Sig Wave"),
|
|
7065
7065
|
o("span", { class: "unit" }, "m")
|
|
7066
7066
|
], -1)),
|
|
7067
|
-
(m(!0),
|
|
7067
|
+
(m(!0), g(V, null, $(i.tableData.sigwaveHeight, (x, M) => (m(), g("td", {
|
|
7068
7068
|
rowspan: "1",
|
|
7069
7069
|
colspan: "1",
|
|
7070
7070
|
key: `sigwaveHeight${M}${x}`
|
|
7071
7071
|
}, [
|
|
7072
|
-
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(),
|
|
7072
|
+
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7073
7073
|
key: 0,
|
|
7074
7074
|
class: "iconfont icon sigwave",
|
|
7075
7075
|
style: le({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[M]}deg)` })
|
|
@@ -7086,12 +7086,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7086
7086
|
ne("Wind Wave"),
|
|
7087
7087
|
o("span", { class: "unit" }, "m")
|
|
7088
7088
|
], -1)),
|
|
7089
|
-
(m(!0),
|
|
7089
|
+
(m(!0), g(V, null, $(i.tableData.windwaveHeight, (x, M) => (m(), g("td", {
|
|
7090
7090
|
rowspan: "1",
|
|
7091
7091
|
colspan: "1",
|
|
7092
7092
|
key: `windwaveHeight${M}${x}`
|
|
7093
7093
|
}, [
|
|
7094
|
-
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(),
|
|
7094
|
+
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7095
7095
|
key: 0,
|
|
7096
7096
|
class: "iconfont icon windwave",
|
|
7097
7097
|
style: le({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[M]}deg)` })
|
|
@@ -7108,12 +7108,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7108
7108
|
ne("Swell"),
|
|
7109
7109
|
o("span", { class: "unit" }, "m")
|
|
7110
7110
|
], -1)),
|
|
7111
|
-
(m(!0),
|
|
7111
|
+
(m(!0), g(V, null, $(i.tableData.swellHeight, (x, M) => (m(), g("td", {
|
|
7112
7112
|
rowspan: "1",
|
|
7113
7113
|
colspan: "1",
|
|
7114
7114
|
key: `swellHeight${M}${x}`
|
|
7115
7115
|
}, [
|
|
7116
|
-
isNaN(i.tableData.swellDir[M]) ? J("", !0) : (m(),
|
|
7116
|
+
isNaN(i.tableData.swellDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7117
7117
|
key: 0,
|
|
7118
7118
|
class: "iconfont icon swell",
|
|
7119
7119
|
style: le({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[M]}deg)` })
|
|
@@ -7130,12 +7130,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7130
7130
|
ne("Current"),
|
|
7131
7131
|
o("span", { class: "unit" }, "kts")
|
|
7132
7132
|
], -1)),
|
|
7133
|
-
(m(!0),
|
|
7133
|
+
(m(!0), g(V, null, $(i.tableData.currentSpeed, (x, M) => (m(), g("td", {
|
|
7134
7134
|
rowspan: "1",
|
|
7135
7135
|
colspan: "1",
|
|
7136
7136
|
key: `currentSpeed${M}${x}`
|
|
7137
7137
|
}, [
|
|
7138
|
-
isNaN(i.tableData.currentDir[M]) ? J("", !0) : (m(),
|
|
7138
|
+
isNaN(i.tableData.currentDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7139
7139
|
key: 0,
|
|
7140
7140
|
class: "iconfont icon current",
|
|
7141
7141
|
id: "meteoGrayIcon",
|
|
@@ -7157,7 +7157,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7157
7157
|
ne("Hours"),
|
|
7158
7158
|
o("span", { class: "unit" }, "(LT)")
|
|
7159
7159
|
], -1)),
|
|
7160
|
-
(m(!0),
|
|
7160
|
+
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
7161
7161
|
rowspan: "1",
|
|
7162
7162
|
colspan: "1",
|
|
7163
7163
|
key: `seahoursL${M}${x}`
|
|
@@ -7172,7 +7172,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7172
7172
|
ne("UTC"),
|
|
7173
7173
|
o("span", { class: "unit" })
|
|
7174
7174
|
], -1)),
|
|
7175
|
-
(m(!0),
|
|
7175
|
+
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
7176
7176
|
rowspan: "1",
|
|
7177
7177
|
colspan: "1",
|
|
7178
7178
|
key: `seahoursZ${M}${x}`
|
|
@@ -7187,7 +7187,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7187
7187
|
ne("SeaLevel"),
|
|
7188
7188
|
o("span", { class: "unit" }, "m")
|
|
7189
7189
|
], -1)),
|
|
7190
|
-
(m(!0),
|
|
7190
|
+
(m(!0), g(V, null, $(i.tableData.seaLevel, (x, M) => (m(), g("td", {
|
|
7191
7191
|
rowspan: "1",
|
|
7192
7192
|
colspan: "1",
|
|
7193
7193
|
key: `SeaLevel${M}${x}`
|
|
@@ -7202,7 +7202,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7202
7202
|
ne("SeaTemp"),
|
|
7203
7203
|
o("span", { class: "unit" }, "°C")
|
|
7204
7204
|
], -1)),
|
|
7205
|
-
(m(!0),
|
|
7205
|
+
(m(!0), g(V, null, $(i.tableData.seaTemp, (x, M) => (m(), g("td", {
|
|
7206
7206
|
rowspan: "1",
|
|
7207
7207
|
colspan: "1",
|
|
7208
7208
|
key: `SeaTemp${M}${x}`
|
|
@@ -7211,26 +7211,26 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7211
7211
|
], 512), [
|
|
7212
7212
|
[Oe, i.activeIndex === 3]
|
|
7213
7213
|
]),
|
|
7214
|
-
i.activeIndex === 3 ? (m(),
|
|
7214
|
+
i.activeIndex === 3 ? (m(), g("div", ur, e[31] || (e[31] = [
|
|
7215
7215
|
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
7216
|
]))) : J("", !0),
|
|
7217
7217
|
Fe(o("table", gr, [
|
|
7218
7218
|
o("tr", yr, [
|
|
7219
|
-
(m(!0),
|
|
7219
|
+
(m(!0), g(V, null, $(i.tideTableData, (x, M) => (m(), g("th", {
|
|
7220
7220
|
rowspan: "1",
|
|
7221
7221
|
colspan: "1",
|
|
7222
7222
|
key: `Tide-tr-${M}${x}`
|
|
7223
7223
|
}, I(x.type) + " Tide", 1))), 128))
|
|
7224
7224
|
]),
|
|
7225
7225
|
o("tr", fr, [
|
|
7226
|
-
(m(!0),
|
|
7226
|
+
(m(!0), g(V, null, $(i.tideTableData, (x, M) => (m(), g("td", {
|
|
7227
7227
|
rowspan: "1",
|
|
7228
7228
|
colspan: "1",
|
|
7229
7229
|
key: `Tide-date-${M}${x}`
|
|
7230
7230
|
}, I(s.computeHourHmmLT(x == null ? void 0 : x.date)), 1))), 128))
|
|
7231
7231
|
]),
|
|
7232
7232
|
o("tr", Ar, [
|
|
7233
|
-
(m(!0),
|
|
7233
|
+
(m(!0), g(V, null, $(i.tideTableData, (x, M) => (m(), g("td", {
|
|
7234
7234
|
rowspan: "1",
|
|
7235
7235
|
colspan: "1",
|
|
7236
7236
|
key: `Tide-height-${M}${x}`
|
|
@@ -7304,7 +7304,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7304
7304
|
o("div", {
|
|
7305
7305
|
class: Z(["action", i.isDay ? "day" : "night"])
|
|
7306
7306
|
}, [
|
|
7307
|
-
t.permission & i.helper.LEVEL.Supper ? (m(),
|
|
7307
|
+
t.permission & i.helper.LEVEL.Supper ? (m(), g("div", {
|
|
7308
7308
|
key: 0,
|
|
7309
7309
|
class: "button",
|
|
7310
7310
|
style: { "margin-right": "10px" },
|
|
@@ -7414,7 +7414,7 @@ const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-3afdcf26
|
|
|
7414
7414
|
}
|
|
7415
7415
|
};
|
|
7416
7416
|
function Fr(a, e, t, r, i, s) {
|
|
7417
|
-
return m(),
|
|
7417
|
+
return m(), g("div");
|
|
7418
7418
|
}
|
|
7419
7419
|
const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
|
|
7420
7420
|
name: "IdmGmdssArea",
|
|
@@ -7540,7 +7540,7 @@ const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
|
|
|
7540
7540
|
}
|
|
7541
7541
|
};
|
|
7542
7542
|
function jr(a, e, t, r, i, s) {
|
|
7543
|
-
return m(),
|
|
7543
|
+
return m(), g("div");
|
|
7544
7544
|
}
|
|
7545
7545
|
const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
|
|
7546
7546
|
name: "IdmEcaZone",
|
|
@@ -7637,7 +7637,7 @@ const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
|
|
|
7637
7637
|
}
|
|
7638
7638
|
};
|
|
7639
7639
|
function Ur(a, e, t, r, i, s) {
|
|
7640
|
-
return m(),
|
|
7640
|
+
return m(), g("div");
|
|
7641
7641
|
}
|
|
7642
7642
|
const Yr = /* @__PURE__ */ U(Gr, [["render", Ur]]);
|
|
7643
7643
|
const Kr = {
|
|
@@ -7776,7 +7776,7 @@ const Kr = {
|
|
|
7776
7776
|
}, Xr = { id: "idm-gl3-zone-info" }, Jr = ["innerHTML"];
|
|
7777
7777
|
function qr(a, e, t, r, i, s) {
|
|
7778
7778
|
var n;
|
|
7779
|
-
return Fe((m(),
|
|
7779
|
+
return Fe((m(), g("div", Xr, [
|
|
7780
7780
|
o("div", {
|
|
7781
7781
|
class: "iconfont close",
|
|
7782
7782
|
onClick: e[0] || (e[0] = (l) => i.showZone = !1)
|
|
@@ -7893,7 +7893,7 @@ const Zr = {
|
|
|
7893
7893
|
style: { "align-items": "flex-start" }
|
|
7894
7894
|
}, ss = { class: "meteo-forecast flex-end" };
|
|
7895
7895
|
function os(a, e, t, r, i, s) {
|
|
7896
|
-
return Fe((m(),
|
|
7896
|
+
return Fe((m(), g("div", $r, [
|
|
7897
7897
|
o("div", {
|
|
7898
7898
|
class: "close iconfont",
|
|
7899
7899
|
onClick: e[0] || (e[0] = (n) => i.showPort = !1)
|
|
@@ -7999,7 +7999,7 @@ const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-39da1804
|
|
|
7999
7999
|
}
|
|
8000
8000
|
};
|
|
8001
8001
|
function hs(a, e, t, r, i, s) {
|
|
8002
|
-
return m(),
|
|
8002
|
+
return m(), g("div");
|
|
8003
8003
|
}
|
|
8004
8004
|
const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
|
|
8005
8005
|
name: "IdmTimezone",
|
|
@@ -8170,7 +8170,7 @@ const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
|
|
|
8170
8170
|
}
|
|
8171
8171
|
};
|
|
8172
8172
|
function ps(a, e, t, r, i, s) {
|
|
8173
|
-
return m(),
|
|
8173
|
+
return m(), g("div");
|
|
8174
8174
|
}
|
|
8175
8175
|
const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
|
|
8176
8176
|
name: "IdmVoluntaryReportingArea",
|
|
@@ -8264,7 +8264,7 @@ const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
|
|
|
8264
8264
|
}
|
|
8265
8265
|
};
|
|
8266
8266
|
function gs(a, e, t, r, i, s) {
|
|
8267
|
-
return m(),
|
|
8267
|
+
return m(), g("div");
|
|
8268
8268
|
}
|
|
8269
8269
|
const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
|
|
8270
8270
|
name: "IdmSpecialArea",
|
|
@@ -8360,7 +8360,7 @@ const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
|
|
|
8360
8360
|
}
|
|
8361
8361
|
};
|
|
8362
8362
|
function As(a, e, t, r, i, s) {
|
|
8363
|
-
return m(),
|
|
8363
|
+
return m(), g("div");
|
|
8364
8364
|
}
|
|
8365
8365
|
const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
|
|
8366
8366
|
name: "IdmTerminator",
|
|
@@ -8415,7 +8415,7 @@ const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
|
|
|
8415
8415
|
}
|
|
8416
8416
|
};
|
|
8417
8417
|
function bs(a, e, t, r, i, s) {
|
|
8418
|
-
return m(),
|
|
8418
|
+
return m(), g("div");
|
|
8419
8419
|
}
|
|
8420
8420
|
const Ls = /* @__PURE__ */ U(vs, [["render", bs]]);
|
|
8421
8421
|
const Cs = {
|
|
@@ -8575,7 +8575,7 @@ const Cs = {
|
|
|
8575
8575
|
}
|
|
8576
8576
|
};
|
|
8577
8577
|
function xs(a, e, t, r, i, s) {
|
|
8578
|
-
return i.lngLat ? (m(),
|
|
8578
|
+
return i.lngLat ? (m(), g("div", {
|
|
8579
8579
|
key: 0,
|
|
8580
8580
|
class: "lat-lng-tip",
|
|
8581
8581
|
style: le({ right: i.right + "px", bottom: t.bottom })
|
|
@@ -8736,8 +8736,8 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8736
8736
|
t = se.roundPrecision(t + h, 2);
|
|
8737
8737
|
let A;
|
|
8738
8738
|
l.mode === "RL" ? A = se.convertToMonotonicLng([c, p]) : A = se.convertToMonotonicLng(Re.interpolateCoordinates(c, p, 200));
|
|
8739
|
-
const
|
|
8740
|
-
|
|
8739
|
+
const b = S.lineString(A.map((E) => [E.lng, E.lat]));
|
|
8740
|
+
b.properties.dist = h, b.properties.bearing = d, b.properties.total = t, r.push(b);
|
|
8741
8741
|
}
|
|
8742
8742
|
e.push(...r), a.total = t;
|
|
8743
8743
|
}
|
|
@@ -8751,7 +8751,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8751
8751
|
s = Re.calculateDistance(p, h, c.mode === "RL", 4), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
|
|
8752
8752
|
let d;
|
|
8753
8753
|
c.mode === "RL" ? d = se.convertToMonotonicLng([p, h]) : d = se.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
|
|
8754
|
-
const A = S.lineString(d.map((
|
|
8754
|
+
const A = S.lineString(d.map((b) => [b.lng, b.lat]));
|
|
8755
8755
|
A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
|
|
8756
8756
|
}
|
|
8757
8757
|
if (r) {
|
|
@@ -8759,7 +8759,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8759
8759
|
s = Re.calculateDistance(p, h, c.mode === "RL", 4), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
|
|
8760
8760
|
let d;
|
|
8761
8761
|
c.mode === "RL" ? d = se.convertToMonotonicLng([p, h]) : d = se.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
|
|
8762
|
-
const A = S.lineString(d.map((
|
|
8762
|
+
const A = S.lineString(d.map((b) => [b.lng, b.lat]));
|
|
8763
8763
|
A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
|
|
8764
8764
|
}
|
|
8765
8765
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
@@ -8872,16 +8872,16 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8872
8872
|
}
|
|
8873
8873
|
},
|
|
8874
8874
|
handleClear(a, e = !0) {
|
|
8875
|
-
var s, n, l, c, p, h, d, A,
|
|
8875
|
+
var s, n, l, c, p, h, d, A, b;
|
|
8876
8876
|
const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
|
|
8877
8877
|
(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
8878
|
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 && ((
|
|
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 && ((b = this.map) != null && b.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
8880
8880
|
}
|
|
8881
8881
|
}
|
|
8882
8882
|
};
|
|
8883
8883
|
function Bs(a, e, t, r, i, s) {
|
|
8884
|
-
return m(),
|
|
8884
|
+
return m(), g("div");
|
|
8885
8885
|
}
|
|
8886
8886
|
const Is = /* @__PURE__ */ U(_s, [["render", Bs]]);
|
|
8887
8887
|
const Es = {
|
|
@@ -8942,7 +8942,7 @@ const Es = {
|
|
|
8942
8942
|
}, ks = { key: 0 }, Ds = { class: "bar-item" };
|
|
8943
8943
|
function zs(a, e, t, r, i, s) {
|
|
8944
8944
|
const n = R("ElTooltip");
|
|
8945
|
-
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (m(),
|
|
8945
|
+
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (m(), g("div", ks, [
|
|
8946
8946
|
o("div", {
|
|
8947
8947
|
class: "menu-bar-box",
|
|
8948
8948
|
style: le({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
@@ -9247,11 +9247,11 @@ const js = {
|
|
|
9247
9247
|
},
|
|
9248
9248
|
activeWeatherLayers: {
|
|
9249
9249
|
handler() {
|
|
9250
|
-
var t, r, i, s, n, l, c, p, h, d, A,
|
|
9250
|
+
var t, r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T;
|
|
9251
9251
|
if (!this.map)
|
|
9252
9252
|
return !1;
|
|
9253
9253
|
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((
|
|
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((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
9255
|
},
|
|
9256
9256
|
immediate: !0
|
|
9257
9257
|
},
|
|
@@ -9307,7 +9307,7 @@ const js = {
|
|
|
9307
9307
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
9308
9308
|
let t = 0, r = 0;
|
|
9309
9309
|
if (this.map) {
|
|
9310
|
-
const
|
|
9310
|
+
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
9311
|
if (this.particleFactor && ((n = this.$refs.layer) != null && n.autoActive)) {
|
|
9312
9312
|
const k = Ze.WEATHER_LAYERS.find((_) => {
|
|
9313
9313
|
var f;
|
|
@@ -9318,21 +9318,21 @@ const js = {
|
|
|
9318
9318
|
if (this.weatherWeight > 0) {
|
|
9319
9319
|
let k = this.weatherWeight, _;
|
|
9320
9320
|
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))],
|
|
9321
|
+
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
9322
|
headers: {
|
|
9323
9323
|
Authorization: this.token || this.defaultMeteoToken
|
|
9324
9324
|
}
|
|
9325
9325
|
});
|
|
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
|
|
9326
|
+
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) {
|
|
9327
|
+
const u = (c = v == null ? void 0 : v.data) == null ? void 0 : c.data, C = [];
|
|
9328
|
+
for (const L in u)
|
|
9329
9329
|
L !== "tropicals" && C.push(
|
|
9330
|
-
Qe.get(
|
|
9330
|
+
Qe.get(u[L], {
|
|
9331
9331
|
headers: {
|
|
9332
9332
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9333
9333
|
key: L
|
|
9334
9334
|
},
|
|
9335
|
-
responseType: /\.(jpg|png)$/.test(
|
|
9335
|
+
responseType: /\.(jpg|png)$/.test(u[L]) ? "blob" : "json"
|
|
9336
9336
|
}).catch((T) => {
|
|
9337
9337
|
console.log(`[${L}] fetch layer error: ${T}`);
|
|
9338
9338
|
})
|
|
@@ -9344,9 +9344,9 @@ const js = {
|
|
|
9344
9344
|
D && T && (this.weatherLayers[D] = {
|
|
9345
9345
|
raw: T,
|
|
9346
9346
|
type: ((G = L == null ? void 0 : L.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
|
|
9347
|
-
etime:
|
|
9347
|
+
etime: v.data.etime
|
|
9348
9348
|
});
|
|
9349
|
-
}),
|
|
9349
|
+
}), u.tropicals && Qe.get(u.tropicals, {
|
|
9350
9350
|
headers: {
|
|
9351
9351
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9352
9352
|
key: "tropicals"
|
|
@@ -9359,27 +9359,27 @@ const js = {
|
|
|
9359
9359
|
active: !0,
|
|
9360
9360
|
cached: !1,
|
|
9361
9361
|
type: "json",
|
|
9362
|
-
etime:
|
|
9362
|
+
etime: v.data.etime,
|
|
9363
9363
|
version: Math.random() + 1
|
|
9364
9364
|
};
|
|
9365
9365
|
});
|
|
9366
9366
|
}
|
|
9367
9367
|
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
|
|
9368
|
+
const u = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, C = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
|
|
9369
9369
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
9370
9370
|
type: "json",
|
|
9371
|
-
direction:
|
|
9371
|
+
direction: u,
|
|
9372
9372
|
height: { raw: C },
|
|
9373
|
-
etime:
|
|
9373
|
+
etime: v.data.etime
|
|
9374
9374
|
};
|
|
9375
9375
|
}
|
|
9376
9376
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
9377
|
-
const
|
|
9377
|
+
const u = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, C = (A = this.weatherLayers["current-speed"]) == null ? void 0 : A.raw;
|
|
9378
9378
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
9379
9379
|
type: "json",
|
|
9380
|
-
direction:
|
|
9380
|
+
direction: u,
|
|
9381
9381
|
speed: { raw: C },
|
|
9382
|
-
etime:
|
|
9382
|
+
etime: v.data.etime
|
|
9383
9383
|
};
|
|
9384
9384
|
}
|
|
9385
9385
|
}
|
|
@@ -9403,9 +9403,9 @@ const js = {
|
|
|
9403
9403
|
}
|
|
9404
9404
|
});
|
|
9405
9405
|
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,
|
|
9406
|
+
const A = (t = d == null ? void 0 : d.data) == null ? void 0 : t.data, b = [];
|
|
9407
9407
|
for (const w in A)
|
|
9408
|
-
|
|
9408
|
+
b.push(
|
|
9409
9409
|
Qe.get(A[w], {
|
|
9410
9410
|
headers: {
|
|
9411
9411
|
Authorization: this.token || this.defaultMeteoToken,
|
|
@@ -9413,10 +9413,10 @@ const js = {
|
|
|
9413
9413
|
}
|
|
9414
9414
|
})
|
|
9415
9415
|
);
|
|
9416
|
-
const E = await Promise.all(
|
|
9416
|
+
const E = await Promise.all(b);
|
|
9417
9417
|
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), _ = (
|
|
9418
|
+
var f, v, u;
|
|
9419
|
+
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
9420
|
this.otherLayers[_] = k;
|
|
9421
9421
|
});
|
|
9422
9422
|
}
|
|
@@ -9427,9 +9427,9 @@ const js = {
|
|
|
9427
9427
|
}
|
|
9428
9428
|
});
|
|
9429
9429
|
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,
|
|
9430
|
+
const A = (i = d == null ? void 0 : d.data) == null ? void 0 : i.data, b = [];
|
|
9431
9431
|
for (const w in A)
|
|
9432
|
-
|
|
9432
|
+
b.push(
|
|
9433
9433
|
Qe.get(A[w], {
|
|
9434
9434
|
headers: {
|
|
9435
9435
|
Authorization: this.token || this.defaultMeteoToken,
|
|
@@ -9437,9 +9437,9 @@ const js = {
|
|
|
9437
9437
|
}
|
|
9438
9438
|
})
|
|
9439
9439
|
);
|
|
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), _ = (
|
|
9440
|
+
(await Promise.all(b)).map((w) => {
|
|
9441
|
+
var f, v, u;
|
|
9442
|
+
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
9443
|
this.otherLayers[_] = k;
|
|
9444
9444
|
});
|
|
9445
9445
|
}
|
|
@@ -9495,7 +9495,7 @@ const js = {
|
|
|
9495
9495
|
);
|
|
9496
9496
|
},
|
|
9497
9497
|
handleDrawWeather4Json() {
|
|
9498
|
-
var p, h, d, A,
|
|
9498
|
+
var p, h, d, A, b, E;
|
|
9499
9499
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
9500
9500
|
let e = 0, t = 0;
|
|
9501
9501
|
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 +9506,23 @@ const js = {
|
|
|
9506
9506
|
if (w === "swell") {
|
|
9507
9507
|
k = !0;
|
|
9508
9508
|
const f = ((h = this.weatherLayers[w]) == null ? void 0 : h.direction) || {};
|
|
9509
|
-
for (const
|
|
9510
|
-
if (
|
|
9511
|
-
const C = f[
|
|
9509
|
+
for (const u in f)
|
|
9510
|
+
if (u > l && u < c && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9511
|
+
const C = f[u].lng;
|
|
9512
9512
|
s > n ? C.forEach((y, L) => {
|
|
9513
9513
|
var T, D, F, N, j, G;
|
|
9514
9514
|
if (i < 2) {
|
|
9515
9515
|
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[
|
|
9516
|
+
const W = S.point([y, u], {
|
|
9517
|
+
val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
|
|
9518
|
+
spd: (F = f[u].spd) == null ? void 0 : F[L]
|
|
9519
9519
|
});
|
|
9520
9520
|
_.push(W);
|
|
9521
9521
|
}
|
|
9522
9522
|
} 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[
|
|
9523
|
+
const W = S.point([y, u], {
|
|
9524
|
+
val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
|
|
9525
|
+
spd: (G = f[u].spd) == null ? void 0 : G[L]
|
|
9526
9526
|
});
|
|
9527
9527
|
_.push(W);
|
|
9528
9528
|
}
|
|
@@ -9530,63 +9530,63 @@ const js = {
|
|
|
9530
9530
|
var T, D, F, N, j, G;
|
|
9531
9531
|
if (s < 2) {
|
|
9532
9532
|
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[
|
|
9533
|
+
const W = S.point([y, u], {
|
|
9534
|
+
val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
|
|
9535
|
+
spd: (F = f[u].spd) == null ? void 0 : F[L]
|
|
9536
9536
|
});
|
|
9537
9537
|
_.push(W);
|
|
9538
9538
|
}
|
|
9539
9539
|
} 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[
|
|
9540
|
+
const W = S.point([y, u], {
|
|
9541
|
+
val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
|
|
9542
|
+
spd: (G = f[u].spd) == null ? void 0 : G[L]
|
|
9543
9543
|
});
|
|
9544
9544
|
_.push(W);
|
|
9545
9545
|
}
|
|
9546
9546
|
});
|
|
9547
9547
|
}
|
|
9548
9548
|
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 =
|
|
9549
|
+
const v = this.weatherLayers[w].height;
|
|
9550
|
+
if (v) {
|
|
9551
|
+
if (!v.data) {
|
|
9552
|
+
const u = [];
|
|
9553
|
+
for (const C in (d = v.raw) == null ? void 0 : d.LineString) {
|
|
9554
|
+
const y = v.raw.LineString[C];
|
|
9555
9555
|
for (const L of y)
|
|
9556
|
-
|
|
9556
|
+
u.push(
|
|
9557
9557
|
S.lineString(L, {
|
|
9558
9558
|
val: Number(C)
|
|
9559
9559
|
})
|
|
9560
9560
|
);
|
|
9561
|
-
|
|
9561
|
+
v.data = S.featureCollection(u);
|
|
9562
9562
|
}
|
|
9563
9563
|
}
|
|
9564
|
-
if (
|
|
9565
|
-
const
|
|
9566
|
-
_ = _.concat(
|
|
9564
|
+
if (v.data) {
|
|
9565
|
+
const u = this.handleBboxClip(v.data, r);
|
|
9566
|
+
_ = _.concat(u);
|
|
9567
9567
|
}
|
|
9568
9568
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
|
|
9569
9569
|
}
|
|
9570
9570
|
} else if (w === "current" && this.showCurrentIsoband) {
|
|
9571
9571
|
k = !0;
|
|
9572
9572
|
const f = ((A = this.weatherLayers[w]) == null ? void 0 : A.direction) || {};
|
|
9573
|
-
for (const
|
|
9574
|
-
if (
|
|
9575
|
-
const C = f[
|
|
9573
|
+
for (const u in f)
|
|
9574
|
+
if (u > l && u < c && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9575
|
+
const C = f[u].lng;
|
|
9576
9576
|
s > n ? C.forEach((y, L) => {
|
|
9577
9577
|
var T, D, F, N, j, G;
|
|
9578
9578
|
if (i < 2) {
|
|
9579
9579
|
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[
|
|
9580
|
+
const W = S.point([y, u], {
|
|
9581
|
+
val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
|
|
9582
|
+
spd: (F = f[u].spd) == null ? void 0 : F[L]
|
|
9583
9583
|
});
|
|
9584
9584
|
_.push(W);
|
|
9585
9585
|
}
|
|
9586
9586
|
} 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[
|
|
9587
|
+
const W = S.point([y, u], {
|
|
9588
|
+
val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
|
|
9589
|
+
spd: (G = f[u].spd) == null ? void 0 : G[L]
|
|
9590
9590
|
});
|
|
9591
9591
|
_.push(W);
|
|
9592
9592
|
}
|
|
@@ -9594,28 +9594,28 @@ const js = {
|
|
|
9594
9594
|
var T, D, F, N, j, G;
|
|
9595
9595
|
if (s < 2) {
|
|
9596
9596
|
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[
|
|
9597
|
+
const W = S.point([y, u], {
|
|
9598
|
+
val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
|
|
9599
|
+
spd: (F = f[u].spd) == null ? void 0 : F[L]
|
|
9600
9600
|
});
|
|
9601
9601
|
_.push(W);
|
|
9602
9602
|
}
|
|
9603
9603
|
} 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[
|
|
9604
|
+
const W = S.point([y, u], {
|
|
9605
|
+
val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
|
|
9606
|
+
spd: (G = f[u].spd) == null ? void 0 : G[L]
|
|
9607
9607
|
});
|
|
9608
9608
|
_.push(W);
|
|
9609
9609
|
}
|
|
9610
9610
|
});
|
|
9611
9611
|
}
|
|
9612
9612
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current direction elapsed: ", t, ", total: ", e += t);
|
|
9613
|
-
const
|
|
9614
|
-
if (
|
|
9615
|
-
if (!
|
|
9613
|
+
const v = this.weatherLayers[w].speed;
|
|
9614
|
+
if (v) {
|
|
9615
|
+
if (!v.data) {
|
|
9616
9616
|
const C = [];
|
|
9617
|
-
for (const y in (
|
|
9618
|
-
const L =
|
|
9617
|
+
for (const y in (b = v.raw) == null ? void 0 : b.Polygon) {
|
|
9618
|
+
const L = v.raw.Polygon[y];
|
|
9619
9619
|
for (const T of L)
|
|
9620
9620
|
C.push(
|
|
9621
9621
|
S.polygon(T, {
|
|
@@ -9623,48 +9623,48 @@ const js = {
|
|
|
9623
9623
|
})
|
|
9624
9624
|
);
|
|
9625
9625
|
}
|
|
9626
|
-
|
|
9626
|
+
v.data = S.featureCollection(C);
|
|
9627
9627
|
}
|
|
9628
|
-
const
|
|
9629
|
-
_ = _.concat(
|
|
9628
|
+
const u = i < this.zoom ? v.data.features.filter((C) => C.properties.val > 0.5) : v.data.features;
|
|
9629
|
+
_ = _.concat(u), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
|
|
9630
9630
|
}
|
|
9631
9631
|
} else if (w === "wind" && this.showWindFeather) {
|
|
9632
9632
|
k = !0;
|
|
9633
9633
|
const f = this.weatherLayers.wind.raw;
|
|
9634
|
-
for (const
|
|
9635
|
-
if (
|
|
9636
|
-
const
|
|
9637
|
-
s > n ?
|
|
9634
|
+
for (const v in f)
|
|
9635
|
+
if (v > l && v < c && (!(i <= this.zoom) || v % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9636
|
+
const u = f[v].lng;
|
|
9637
|
+
s > n ? u.forEach((C, y) => {
|
|
9638
9638
|
var L, T, D, F;
|
|
9639
9639
|
if (i < 2) {
|
|
9640
9640
|
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[
|
|
9641
|
+
const N = S.point([C, v], {
|
|
9642
|
+
dir: ((L = f[v].val) == null ? void 0 : L[y]) || ((T = f[v].dir) == null ? void 0 : T[y]),
|
|
9643
|
+
spd: f[v].spd[y]
|
|
9644
9644
|
});
|
|
9645
9645
|
_.push(N);
|
|
9646
9646
|
}
|
|
9647
9647
|
} 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[
|
|
9648
|
+
const N = S.point([C, v], {
|
|
9649
|
+
dir: ((D = f[v].val) == null ? void 0 : D[y]) || ((F = f[v].dir) == null ? void 0 : F[y]),
|
|
9650
|
+
spd: f[v].spd[y]
|
|
9651
9651
|
});
|
|
9652
9652
|
_.push(N);
|
|
9653
9653
|
}
|
|
9654
|
-
}) :
|
|
9654
|
+
}) : u.forEach((C, y) => {
|
|
9655
9655
|
var L, T, D, F;
|
|
9656
9656
|
if (i < 2) {
|
|
9657
9657
|
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[
|
|
9658
|
+
const N = S.point([C, v], {
|
|
9659
|
+
dir: ((L = f[v].val) == null ? void 0 : L[y]) || ((T = f[v].dir) == null ? void 0 : T[y]),
|
|
9660
|
+
spd: f[v].spd[y]
|
|
9661
9661
|
});
|
|
9662
9662
|
_.push(N);
|
|
9663
9663
|
}
|
|
9664
9664
|
} 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[
|
|
9665
|
+
const N = S.point([C, v], {
|
|
9666
|
+
dir: ((D = f[v].val) == null ? void 0 : D[y]) || ((F = f[v].dir) == null ? void 0 : F[y]),
|
|
9667
|
+
spd: f[v].spd[y]
|
|
9668
9668
|
});
|
|
9669
9669
|
_.push(N);
|
|
9670
9670
|
}
|
|
@@ -9678,26 +9678,35 @@ const js = {
|
|
|
9678
9678
|
k = !0;
|
|
9679
9679
|
const f = this.weatherLayers[w].raw;
|
|
9680
9680
|
if (f) {
|
|
9681
|
-
const
|
|
9682
|
-
for (const
|
|
9683
|
-
const C = f.Polygon[
|
|
9681
|
+
const v = [];
|
|
9682
|
+
for (const u in f.Polygon) {
|
|
9683
|
+
const C = f.Polygon[u];
|
|
9684
9684
|
for (const y of C)
|
|
9685
|
-
|
|
9685
|
+
v.push(
|
|
9686
9686
|
S.polygon(y, {
|
|
9687
|
-
val: Number(
|
|
9687
|
+
val: Number(u)
|
|
9688
9688
|
})
|
|
9689
9689
|
);
|
|
9690
9690
|
}
|
|
9691
|
-
for (const
|
|
9692
|
-
const C = f.
|
|
9691
|
+
for (const u in f.MultiPolygon) {
|
|
9692
|
+
const C = f.MultiPolygon[u];
|
|
9693
|
+
for (const y of C)
|
|
9694
|
+
v.push(
|
|
9695
|
+
S.multiPolygon(y, {
|
|
9696
|
+
val: Number(u)
|
|
9697
|
+
})
|
|
9698
|
+
);
|
|
9699
|
+
}
|
|
9700
|
+
for (const u in f.Point) {
|
|
9701
|
+
const C = f.Point[u];
|
|
9693
9702
|
for (let y = 0; y < ((E = C.lng) == null ? void 0 : E.length); y++)
|
|
9694
|
-
|
|
9695
|
-
S.point([C.lng[y],
|
|
9703
|
+
v.push(
|
|
9704
|
+
S.point([C.lng[y], u], {
|
|
9696
9705
|
val: Number(C.val[y])
|
|
9697
9706
|
})
|
|
9698
9707
|
);
|
|
9699
9708
|
}
|
|
9700
|
-
_ = _.concat(
|
|
9709
|
+
_ = _.concat(v);
|
|
9701
9710
|
}
|
|
9702
9711
|
}
|
|
9703
9712
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
|
|
@@ -9708,26 +9717,26 @@ const js = {
|
|
|
9708
9717
|
k = !0;
|
|
9709
9718
|
const f = this.weatherLayers[w].raw;
|
|
9710
9719
|
if (f) {
|
|
9711
|
-
const
|
|
9712
|
-
for (const
|
|
9713
|
-
const C = f.LineString[
|
|
9720
|
+
const v = [];
|
|
9721
|
+
for (const u in f.LineString) {
|
|
9722
|
+
const C = f.LineString[u];
|
|
9714
9723
|
for (const y of C)
|
|
9715
|
-
|
|
9724
|
+
v.push(
|
|
9716
9725
|
S.lineString(y, {
|
|
9717
|
-
val: Number(
|
|
9726
|
+
val: Number(u)
|
|
9718
9727
|
})
|
|
9719
9728
|
);
|
|
9720
9729
|
}
|
|
9721
|
-
for (const
|
|
9722
|
-
f.Point[
|
|
9723
|
-
C = se.convertToStdLng(C),
|
|
9724
|
-
S.point([C,
|
|
9725
|
-
val: f.Point[
|
|
9726
|
-
type: f.Point[
|
|
9730
|
+
for (const u in f.Point)
|
|
9731
|
+
f.Point[u].lng.forEach((C, y) => {
|
|
9732
|
+
C = se.convertToStdLng(C), v.push(
|
|
9733
|
+
S.point([C, u], {
|
|
9734
|
+
val: f.Point[u].val[y],
|
|
9735
|
+
type: f.Point[u].type[y]
|
|
9727
9736
|
})
|
|
9728
9737
|
);
|
|
9729
9738
|
});
|
|
9730
|
-
_ = _.concat(
|
|
9739
|
+
_ = _.concat(v);
|
|
9731
9740
|
}
|
|
9732
9741
|
}
|
|
9733
9742
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
@@ -9768,8 +9777,8 @@ const js = {
|
|
|
9768
9777
|
this.handleBeforeLayerToggle();
|
|
9769
9778
|
},
|
|
9770
9779
|
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 || (
|
|
9780
|
+
var a, e, t, r, i, s, n, l, c, p, h, d, A, b, E, w;
|
|
9781
|
+
(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
9782
|
},
|
|
9774
9783
|
handleDateChange(a = { tropicals: !1 }) {
|
|
9775
9784
|
this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -9803,8 +9812,8 @@ const js = {
|
|
|
9803
9812
|
}
|
|
9804
9813
|
},
|
|
9805
9814
|
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) && ((
|
|
9815
|
+
var e, t, r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u;
|
|
9816
|
+
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
9817
|
},
|
|
9809
9818
|
handleParticle(a) {
|
|
9810
9819
|
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
|
|
@@ -9829,8 +9838,8 @@ const js = {
|
|
|
9829
9838
|
};
|
|
9830
9839
|
function Gs(a, e, t, r, i, s) {
|
|
9831
9840
|
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(),
|
|
9841
|
+
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");
|
|
9842
|
+
return t.map ? (m(), g("div", Ws, [
|
|
9834
9843
|
H(n, X({
|
|
9835
9844
|
ref: "layer",
|
|
9836
9845
|
map: t.map,
|
|
@@ -9900,7 +9909,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9900
9909
|
"before-layer": t.beforeLayer,
|
|
9901
9910
|
"active-weather-layers": i.activeWeatherLayers
|
|
9902
9911
|
}, a.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
|
|
9903
|
-
H(
|
|
9912
|
+
H(b, X({
|
|
9904
9913
|
map: t.map,
|
|
9905
9914
|
prmsl: (_e = i.weatherLayers) == null ? void 0 : _e.prmsl,
|
|
9906
9915
|
"before-layer": t.beforeLayer,
|
|
@@ -9945,13 +9954,13 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9945
9954
|
onParticle: s.handleParticle,
|
|
9946
9955
|
onHandleToggleVersion: s.handleToggleVersion
|
|
9947
9956
|
}), 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(
|
|
9957
|
+
H(v, X({
|
|
9949
9958
|
viewport: i.viewport,
|
|
9950
9959
|
factor: (He = i.weatherLayers) == null ? void 0 : He["current-particle"],
|
|
9951
9960
|
"before-layer": t.beforeLayer,
|
|
9952
9961
|
"toggle-version": t.toggleVersion
|
|
9953
9962
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9954
|
-
H(
|
|
9963
|
+
H(u, X({
|
|
9955
9964
|
ref: "windBarb",
|
|
9956
9965
|
map: t.map,
|
|
9957
9966
|
"map-projection": i.mapProjection,
|