@idmwx/idmui-gl3 3.9.2 → 3.9.3
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/README.md +26 -26
- package/dist/index.js +207 -198
- package/dist/index.umd.cjs +4 -4
- package/dist/pi.svg +48 -48
- package/dist/style.css +1 -1
- package/package.json +71 -71
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var rt = Object.defineProperty;
|
|
|
2
2
|
var ot = (t, e, a) => e in t ? rt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
3
3
|
var R = (t, e, a) => (ot(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
4
4
|
import { LayerHelper as Ve, CompanyHelper as Me, LngLatHelper as te, convertToMonotonicLng2 as st, calculateDistance as Oe, calculateBearing as je, convertToMonotonicLng as xe, interpolateCoordinates as Fe, convertToStandardLng as Re } from "@idmwx/idmwx-base";
|
|
5
|
-
import { resolveComponent as z, openBlock as
|
|
5
|
+
import { resolveComponent as z, openBlock as L, createElementBlock as x, createElementVNode as l, normalizeStyle as j, normalizeClass as M, Fragment as De, renderList as Ae, toDisplayString as S, createVNode as P, withCtx as nt, createTextVNode as Ke, createCommentVNode as $, pushScopeId as U, popScopeId as G, withDirectives as $e, vShow as Be, createStaticVNode as lt, mergeProps as I } from "vue";
|
|
6
6
|
import * as C from "@turf/turf";
|
|
7
7
|
import ct from "@mapbox/sphericalmercator";
|
|
8
8
|
import ee from "moment";
|
|
@@ -150,7 +150,7 @@ const T = (t, e) => {
|
|
|
150
150
|
this.source = t, this.handleConfirm();
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
}, J = (t) => (U("data-v-
|
|
153
|
+
}, J = (t) => (U("data-v-29d43760"), t = t(), G(), t), dt = { class: "idm-gl-layer" }, pt = { class: "bar-item layer-bars" }, mt = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), ut = [
|
|
154
154
|
mt
|
|
155
155
|
], yt = { class: "bar-item tool-bars" }, ft = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), gt = [
|
|
156
156
|
ft
|
|
@@ -168,7 +168,7 @@ const T = (t, e) => {
|
|
|
168
168
|
}, Et = { style: { "font-size": "12px" } }, It = { class: "layers-body" }, Rt = ["onClick"], Dt = /* @__PURE__ */ J(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), At = { class: "other-layers" }, Mt = /* @__PURE__ */ J(() => /* @__PURE__ */ l("div", { class: "layers-title" }, "Other Layers", -1)), $t = { class: "layers-body" }, Bt = ["onClick"], Nt = /* @__PURE__ */ J(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Wt = { class: "source-layers" }, Ot = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "layers-title" }, "Forecast Model", -1)), jt = { class: "layers-body model-box" };
|
|
169
169
|
function Ft(t, e, a, r, i, o) {
|
|
170
170
|
const n = z("ElScrollbar");
|
|
171
|
-
return
|
|
171
|
+
return L(), x("div", dt, [
|
|
172
172
|
l("div", {
|
|
173
173
|
class: "menu-bar-box",
|
|
174
174
|
style: j({ top: a.top + 10 + "px", right: i.right + "px" })
|
|
@@ -207,7 +207,7 @@ function Ft(t, e, a, r, i, o) {
|
|
|
207
207
|
class: "active-layers",
|
|
208
208
|
style: j({ right: i.right + "px", bottom: "100px" })
|
|
209
209
|
}, [
|
|
210
|
-
(
|
|
210
|
+
(L(!0), x(De, null, Ae(i.weatherLayers, (s) => (L(), x("div", {
|
|
211
211
|
key: s.key,
|
|
212
212
|
class: M(o.computeLayerClass(s, i.activeWeatherLayers)),
|
|
213
213
|
onClick: (c) => o.handleActiveWeatherLayerPick(s)
|
|
@@ -238,10 +238,10 @@ function Ft(t, e, a, r, i, o) {
|
|
|
238
238
|
])
|
|
239
239
|
]),
|
|
240
240
|
l("div", It, [
|
|
241
|
-
(
|
|
241
|
+
(L(!0), x(De, null, Ae(i.layers.weather, (s) => (L(), x(De, {
|
|
242
242
|
key: s.key
|
|
243
243
|
}, [
|
|
244
|
-
s.hide ? $("", !0) : (
|
|
244
|
+
s.hide ? $("", !0) : (L(), x("div", {
|
|
245
245
|
key: 0,
|
|
246
246
|
class: M(o.computeLayerClass(s, i.weatherLayers)),
|
|
247
247
|
onClick: (c) => o.handleWeatherLayerPick(s)
|
|
@@ -255,7 +255,7 @@ function Ft(t, e, a, r, i, o) {
|
|
|
255
255
|
l("div", At, [
|
|
256
256
|
Mt,
|
|
257
257
|
l("div", $t, [
|
|
258
|
-
(
|
|
258
|
+
(L(!0), x(De, null, Ae(i.layers.other, (s) => (L(), x("div", {
|
|
259
259
|
key: s.key,
|
|
260
260
|
class: M(o.computeLayerClass(s, i.otherLayers)),
|
|
261
261
|
onClick: (c) => o.handleOtherLayerPick(s)
|
|
@@ -285,7 +285,7 @@ function Ft(t, e, a, r, i, o) {
|
|
|
285
285
|
], 4)
|
|
286
286
|
]);
|
|
287
287
|
}
|
|
288
|
-
const Vt = /* @__PURE__ */ T(ht, [["render", Ft], ["__scopeId", "data-v-
|
|
288
|
+
const Vt = /* @__PURE__ */ T(ht, [["render", Ft], ["__scopeId", "data-v-29d43760"]]);
|
|
289
289
|
const Ut = {
|
|
290
290
|
name: "IdmWindBarb",
|
|
291
291
|
props: {
|
|
@@ -460,28 +460,28 @@ const Ut = {
|
|
|
460
460
|
};
|
|
461
461
|
function qt(t, e, a, r, i, o) {
|
|
462
462
|
var n;
|
|
463
|
-
return (n = a.wind) != null && n.active ? (
|
|
463
|
+
return (n = a.wind) != null && n.active ? (L(), x("div", Gt, [
|
|
464
464
|
l("div", {
|
|
465
465
|
class: "flex-center tool-bars",
|
|
466
466
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
|
|
467
467
|
}, [
|
|
468
|
-
a.mapProjection === "mercator" ? (
|
|
468
|
+
a.mapProjection === "mercator" ? (L(), x("div", {
|
|
469
469
|
key: 0,
|
|
470
470
|
class: "flex-start",
|
|
471
471
|
onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
|
|
472
472
|
}, [
|
|
473
|
-
a.showParticle ? (
|
|
473
|
+
a.showParticle ? (L(), x("i", Ht, "")) : (L(), x("i", Zt, "")),
|
|
474
474
|
l("span", {
|
|
475
475
|
class: M(a.showParticle ? "active" : "")
|
|
476
476
|
}, "Wind Particles", 2)
|
|
477
477
|
])) : $("", !0),
|
|
478
|
-
a.showParticle ? (
|
|
478
|
+
a.showParticle ? (L(), x("div", {
|
|
479
479
|
key: 1,
|
|
480
480
|
class: "flex-start",
|
|
481
481
|
style: { "margin-left": "16px" },
|
|
482
482
|
onClick: e[1] || (e[1] = (s) => i.showFeather = !i.showFeather)
|
|
483
483
|
}, [
|
|
484
|
-
i.showFeather ? (
|
|
484
|
+
i.showFeather ? (L(), x("i", Jt, "")) : (L(), x("i", Xt, "")),
|
|
485
485
|
l("span", {
|
|
486
486
|
class: M(i.showFeather ? "active" : "")
|
|
487
487
|
}, "Wind Feather", 2)
|
|
@@ -489,7 +489,7 @@ function qt(t, e, a, r, i, o) {
|
|
|
489
489
|
], 4)
|
|
490
490
|
])) : $("", !0);
|
|
491
491
|
}
|
|
492
|
-
const Yt = /* @__PURE__ */ T(Ut, [["render", qt], ["__scopeId", "data-v-
|
|
492
|
+
const Yt = /* @__PURE__ */ T(Ut, [["render", qt], ["__scopeId", "data-v-f409772c"]]);
|
|
493
493
|
class Ue {
|
|
494
494
|
constructor(e) {
|
|
495
495
|
R(this, "map");
|
|
@@ -712,9 +712,9 @@ class we {
|
|
|
712
712
|
const u = a.getUniformLocation(r, "u_range_u_v"), v = a.getUniformLocation(r, "u_range_s");
|
|
713
713
|
a.uniform2f(u, s.uvRange[0], s.uvRange[1]), a.uniform2f(v, s.sRange[0], s.sRange[1]);
|
|
714
714
|
}
|
|
715
|
-
const m = e.getBoundPixel(),
|
|
715
|
+
const m = e.getBoundPixel(), b = e.map.getZoom() + 1, y = e.getWorldCopy(m, b);
|
|
716
716
|
for (const u of y) {
|
|
717
|
-
const v = (u[0] - m[0]) * e.ratio,
|
|
717
|
+
const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio, w = u[2] * e.ratio, [k, _, D, A] = [v, w + v, g, w + g], B = new Float32Array([k, D, _, D, k, A, k, A, _, D, _, A]);
|
|
718
718
|
a.bindBuffer(a.ARRAY_BUFFER, n), a.bufferData(a.ARRAY_BUFFER, B, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
|
|
719
719
|
}
|
|
720
720
|
} catch (d) {
|
|
@@ -2726,7 +2726,7 @@ const Kt = {
|
|
|
2726
2726
|
});
|
|
2727
2727
|
}
|
|
2728
2728
|
}
|
|
2729
|
-
}, le = (t) => (U("data-v-
|
|
2729
|
+
}, le = (t) => (U("data-v-6e0050df"), t = t(), G(), t), ea = { key: 0 }, ta = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "kts", -1)), aa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "0", -1)), ia = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "5", -1)), ra = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "10", -1)), oa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "20", -1)), sa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "30", -1)), na = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "40", -1)), la = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "60", -1)), ca = [
|
|
2730
2730
|
ta,
|
|
2731
2731
|
aa,
|
|
2732
2732
|
ia,
|
|
@@ -2738,14 +2738,14 @@ const Kt = {
|
|
|
2738
2738
|
];
|
|
2739
2739
|
function ha(t, e, a, r, i, o) {
|
|
2740
2740
|
var n;
|
|
2741
|
-
return (n = a.factor) != null && n.active ? (
|
|
2741
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", ea, [
|
|
2742
2742
|
l("div", {
|
|
2743
2743
|
class: "legend-bars flex-center",
|
|
2744
2744
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
2745
2745
|
}, ca, 4)
|
|
2746
2746
|
])) : $("", !0);
|
|
2747
2747
|
}
|
|
2748
|
-
const da = /* @__PURE__ */ T(Kt, [["render", ha], ["__scopeId", "data-v-
|
|
2748
|
+
const da = /* @__PURE__ */ T(Kt, [["render", ha], ["__scopeId", "data-v-6e0050df"]]);
|
|
2749
2749
|
const pa = {
|
|
2750
2750
|
name: "IdmCurrent",
|
|
2751
2751
|
props: {
|
|
@@ -2921,28 +2921,28 @@ const pa = {
|
|
|
2921
2921
|
};
|
|
2922
2922
|
function ba(t, e, a, r, i, o) {
|
|
2923
2923
|
var n;
|
|
2924
|
-
return (n = a.current) != null && n.active ? (
|
|
2924
|
+
return (n = a.current) != null && n.active ? (L(), x("div", ma, [
|
|
2925
2925
|
l("div", {
|
|
2926
2926
|
class: "flex-center tool-bars",
|
|
2927
2927
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
|
|
2928
2928
|
}, [
|
|
2929
|
-
a.mapProjection === "mercator" ? (
|
|
2929
|
+
a.mapProjection === "mercator" ? (L(), x("div", {
|
|
2930
2930
|
key: 0,
|
|
2931
2931
|
class: "flex-start",
|
|
2932
2932
|
onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
|
|
2933
2933
|
}, [
|
|
2934
|
-
a.showParticle ? (
|
|
2934
|
+
a.showParticle ? (L(), x("i", ua, "")) : (L(), x("i", ya, "")),
|
|
2935
2935
|
l("span", {
|
|
2936
2936
|
class: M(a.showParticle ? "active" : "")
|
|
2937
2937
|
}, "Current Particles", 2)
|
|
2938
2938
|
])) : $("", !0),
|
|
2939
|
-
a.showParticle ? (
|
|
2939
|
+
a.showParticle ? (L(), x("div", {
|
|
2940
2940
|
key: 1,
|
|
2941
2941
|
class: "flex-start",
|
|
2942
2942
|
style: { "margin-left": "16px" },
|
|
2943
2943
|
onClick: e[1] || (e[1] = (s) => i.showJson = !i.showJson)
|
|
2944
2944
|
}, [
|
|
2945
|
-
i.showJson ? (
|
|
2945
|
+
i.showJson ? (L(), x("i", fa, "")) : (L(), x("i", ga, "")),
|
|
2946
2946
|
l("span", {
|
|
2947
2947
|
class: M(i.showJson ? "active" : "")
|
|
2948
2948
|
}, "Current", 2)
|
|
@@ -2950,7 +2950,7 @@ function ba(t, e, a, r, i, o) {
|
|
|
2950
2950
|
], 4)
|
|
2951
2951
|
])) : $("", !0);
|
|
2952
2952
|
}
|
|
2953
|
-
const va = /* @__PURE__ */ T(pa, [["render", ba], ["__scopeId", "data-v-
|
|
2953
|
+
const va = /* @__PURE__ */ T(pa, [["render", ba], ["__scopeId", "data-v-4f257fc7"]]);
|
|
2954
2954
|
const _a = {
|
|
2955
2955
|
name: "IdmCurrentParticle",
|
|
2956
2956
|
props: {
|
|
@@ -3108,7 +3108,7 @@ const _a = {
|
|
|
3108
3108
|
});
|
|
3109
3109
|
}
|
|
3110
3110
|
}
|
|
3111
|
-
}, Le = (t) => (U("data-v-
|
|
3111
|
+
}, Le = (t) => (U("data-v-ec0ae348"), t = t(), G(), t), wa = { key: 0 }, La = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "kts", -1)), xa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0", -1)), Ca = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.4", -1)), Sa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.8", -1)), ka = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "1.6", -1)), za = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "2", -1)), Pa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ta = [
|
|
3112
3112
|
La,
|
|
3113
3113
|
xa,
|
|
3114
3114
|
Ca,
|
|
@@ -3119,14 +3119,14 @@ const _a = {
|
|
|
3119
3119
|
];
|
|
3120
3120
|
function Ea(t, e, a, r, i, o) {
|
|
3121
3121
|
var n;
|
|
3122
|
-
return (n = a.factor) != null && n.active ? (
|
|
3122
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", wa, [
|
|
3123
3123
|
l("div", {
|
|
3124
3124
|
class: "legend-bars flex-center",
|
|
3125
3125
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
3126
3126
|
}, Ta, 4)
|
|
3127
3127
|
])) : $("", !0);
|
|
3128
3128
|
}
|
|
3129
|
-
const Ia = /* @__PURE__ */ T(_a, [["render", Ea], ["__scopeId", "data-v-
|
|
3129
|
+
const Ia = /* @__PURE__ */ T(_a, [["render", Ea], ["__scopeId", "data-v-ec0ae348"]]), Ra = {
|
|
3130
3130
|
name: "IdmSigWave",
|
|
3131
3131
|
props: {
|
|
3132
3132
|
map: {
|
|
@@ -3212,11 +3212,11 @@ const Ia = /* @__PURE__ */ T(_a, [["render", Ea], ["__scopeId", "data-v-9115889b
|
|
|
3212
3212
|
id: this.heightLabelLayer,
|
|
3213
3213
|
type: "symbol",
|
|
3214
3214
|
source: this.source,
|
|
3215
|
-
filter: ["==", "$type", "
|
|
3215
|
+
filter: ["==", "$type", "Point"],
|
|
3216
3216
|
layout: {
|
|
3217
|
-
|
|
3217
|
+
// 'symbol-placement': 'line',
|
|
3218
3218
|
"symbol-avoid-edges": !0,
|
|
3219
|
-
|
|
3219
|
+
// 'symbol-sort-key': ['get', 'val'],
|
|
3220
3220
|
// 'text-field': '{index} - {val} m',
|
|
3221
3221
|
"text-field": "{val} m",
|
|
3222
3222
|
"text-rotation-alignment": "viewport",
|
|
@@ -3236,7 +3236,7 @@ const Ia = /* @__PURE__ */ T(_a, [["render", Ea], ["__scopeId", "data-v-9115889b
|
|
|
3236
3236
|
}
|
|
3237
3237
|
};
|
|
3238
3238
|
function Da(t, e, a, r, i, o) {
|
|
3239
|
-
return
|
|
3239
|
+
return L(), x("div");
|
|
3240
3240
|
}
|
|
3241
3241
|
const Aa = /* @__PURE__ */ T(Ra, [["render", Da]]), Ma = {
|
|
3242
3242
|
name: "IdmSwell",
|
|
@@ -3377,7 +3377,7 @@ const Aa = /* @__PURE__ */ T(Ra, [["render", Da]]), Ma = {
|
|
|
3377
3377
|
}
|
|
3378
3378
|
};
|
|
3379
3379
|
function $a(t, e, a, r, i, o) {
|
|
3380
|
-
return
|
|
3380
|
+
return L(), x("div");
|
|
3381
3381
|
}
|
|
3382
3382
|
const Ba = /* @__PURE__ */ T(Ma, [["render", $a]]), Na = {
|
|
3383
3383
|
name: "IdmPrmsl",
|
|
@@ -3508,7 +3508,7 @@ const Ba = /* @__PURE__ */ T(Ma, [["render", $a]]), Na = {
|
|
|
3508
3508
|
}
|
|
3509
3509
|
};
|
|
3510
3510
|
function Wa(t, e, a, r, i, o) {
|
|
3511
|
-
return
|
|
3511
|
+
return L(), x("div");
|
|
3512
3512
|
}
|
|
3513
3513
|
const Oa = /* @__PURE__ */ T(Na, [["render", Wa]]), ja = {
|
|
3514
3514
|
name: "IdmIceberg",
|
|
@@ -3568,7 +3568,7 @@ const Oa = /* @__PURE__ */ T(Na, [["render", Wa]]), ja = {
|
|
|
3568
3568
|
}
|
|
3569
3569
|
};
|
|
3570
3570
|
function Fa(t, e, a, r, i, o) {
|
|
3571
|
-
return
|
|
3571
|
+
return L(), x("div");
|
|
3572
3572
|
}
|
|
3573
3573
|
const Va = /* @__PURE__ */ T(ja, [["render", Fa]]);
|
|
3574
3574
|
const Ua = {
|
|
@@ -3653,12 +3653,12 @@ const Ua = {
|
|
|
3653
3653
|
var p, f;
|
|
3654
3654
|
return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((f = d.properties) == null ? void 0 : f.type) === "forecast";
|
|
3655
3655
|
})[0]) == null || h.properties.model, c.forEach((d, p) => {
|
|
3656
|
-
var f, m,
|
|
3657
|
-
((f = d.geometry) == null ? void 0 : f.type) === "Point" && ((m = d.properties) == null ? void 0 : m.type) === "history" && (n = p, s = s === void 0 ? p : s), ((
|
|
3656
|
+
var f, m, b, y, u, v;
|
|
3657
|
+
((f = d.geometry) == null ? void 0 : f.type) === "Point" && ((m = d.properties) == null ? void 0 : m.type) === "history" && (n = p, s = s === void 0 ? p : s), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && s === void 0 && (s = p), ((u = d.geometry) == null ? void 0 : u.type) === "LineString" && ((v = d.properties) == null || v.type);
|
|
3658
3658
|
}), c.map((d, p) => {
|
|
3659
|
-
var f, m,
|
|
3660
|
-
if (((f = d.geometry) == null ? void 0 : f.type) === "LineString" && ((m = d.properties) == null || m.type), ((
|
|
3661
|
-
const k = ((
|
|
3659
|
+
var f, m, b, y, u, v, g, w;
|
|
3660
|
+
if (((f = d.geometry) == null ? void 0 : f.type) === "LineString" && ((m = d.properties) == null || m.type), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && (d.properties.name = o), ((u = d.geometry) == null ? void 0 : u.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
|
|
3661
|
+
const k = ((w = (g = d.properties) == null ? void 0 : g.format) == null ? void 0 : w.slice(7, 12)) === ee().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
|
|
3662
3662
|
d.properties.showHistoryLabel = k || p === n, d.properties.showNameLabel = p === n, d.properties.name = o;
|
|
3663
3663
|
}
|
|
3664
3664
|
return d;
|
|
@@ -3934,7 +3934,7 @@ const Ua = {
|
|
|
3934
3934
|
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), (t = this.interpolateMarkers) == null || t.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));
|
|
3935
3935
|
},
|
|
3936
3936
|
handleDateChange() {
|
|
3937
|
-
var t, e, a, r, i, o, n, s, c, h, d, p, f, m,
|
|
3937
|
+
var t, e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, D, A, B, W, O, H, de, pe, me, ue, ye, fe, ge, ae;
|
|
3938
3938
|
if ((t = this.interpolateMarkers) == null || t.forEach((Z) => Z == null ? void 0 : Z.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
3939
3939
|
const Z = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), q = this.interpolateData.filter((E) => E.properties.date === Z.format() && !E.properties.disabled), be = this.handleComputePolygons(q), Y = C.featureCollection([...q]);
|
|
3940
3940
|
be.forEach((E) => {
|
|
@@ -3956,7 +3956,7 @@ const Ua = {
|
|
|
3956
3956
|
for (const E of q)
|
|
3957
3957
|
if (!E.properties.disabled) {
|
|
3958
3958
|
let F = "#f44336";
|
|
3959
|
-
((s = (n = E.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = E.properties) == null ? void 0 : c.wind) != null && h.spd) ? F = "#03f869" : ((p = (d = E.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((m = (f = E.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? F = "#f2f202" : ((y = (
|
|
3959
|
+
((s = (n = E.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = E.properties) == null ? void 0 : c.wind) != null && h.spd) ? F = "#03f869" : ((p = (d = E.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((m = (f = E.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? F = "#f2f202" : ((y = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : y.spd) >= 24.5 && ((v = (u = E.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) < 32.7 ? F = "#ff9100" : ((w = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : w.spd) >= 32.7 && ((_ = (k = E.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) < 41.5 ? F = "#f44336" : ((A = (D = E.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((W = (B = E.properties) == null ? void 0 : B.wind) == null ? void 0 : W.spd) < 51 ? F = "#f903d0" : ((H = (O = E.properties) == null ? void 0 : O.wind) == null ? void 0 : H.spd) >= 51 ? F = "#8702f9" : F = "#f44336";
|
|
3960
3960
|
const ve = `<svg t="1719918955501"
|
|
3961
3961
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
3962
3962
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -3993,18 +3993,18 @@ const Ua = {
|
|
|
3993
3993
|
var o, n, s, c, h, d, p, f;
|
|
3994
3994
|
const e = t.features[0], a = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
|
|
3995
3995
|
(m) => {
|
|
3996
|
-
var
|
|
3997
|
-
return m.geometry.type === "LineString" && m.properties.type === "forecast" && m.properties.name === ((
|
|
3996
|
+
var b;
|
|
3997
|
+
return m.geometry.type === "LineString" && m.properties.type === "forecast" && m.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
|
|
3998
3998
|
}
|
|
3999
3999
|
);
|
|
4000
|
-
a.sort((m,
|
|
4001
|
-
var y, u, v,
|
|
4002
|
-
return ((y = m.properties) == null ? void 0 : y.model) === "cma" ? -1 : ((u = m.properties) == null ? void 0 : u.model) === "jma" ? ((v =
|
|
4000
|
+
a.sort((m, b) => {
|
|
4001
|
+
var y, u, v, g;
|
|
4002
|
+
return ((y = m.properties) == null ? void 0 : y.model) === "cma" ? -1 : ((u = m.properties) == null ? void 0 : u.model) === "jma" ? ((v = b.properties) == null ? void 0 : v.model) === "cma" ? 1 : -1 : m.properties.model === "ecmwf" ? ["jma", "cma"].includes((g = b.properties) == null ? void 0 : g.model) ? 1 : -1 : 0;
|
|
4003
4003
|
});
|
|
4004
4004
|
const r = (c = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : c.features.filter(
|
|
4005
4005
|
(m) => {
|
|
4006
|
-
var
|
|
4007
|
-
return m.geometry.type === "LineString" && m.properties.type === "history" && m.properties.name === ((
|
|
4006
|
+
var b;
|
|
4007
|
+
return m.geometry.type === "LineString" && m.properties.type === "history" && m.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
|
|
4008
4008
|
}
|
|
4009
4009
|
);
|
|
4010
4010
|
this.activeTropicals = {
|
|
@@ -4099,7 +4099,7 @@ const Ua = {
|
|
|
4099
4099
|
return C.lineToPolygon(i, { properties: a });
|
|
4100
4100
|
}
|
|
4101
4101
|
}
|
|
4102
|
-
}, Ge = (t) => (U("data-v-
|
|
4102
|
+
}, Ge = (t) => (U("data-v-62a2f148"), t = t(), G(), t), Ga = {
|
|
4103
4103
|
id: "active-tropical",
|
|
4104
4104
|
class: "active-tropical"
|
|
4105
4105
|
}, Ha = { class: "header-box" }, Za = { class: "main" }, Ja = { key: 0 }, Xa = { class: "sub" }, qa = {
|
|
@@ -4114,20 +4114,20 @@ const Ua = {
|
|
|
4114
4114
|
}, ai = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), ii = { class: "row" }, ri = {
|
|
4115
4115
|
class: "col col-24",
|
|
4116
4116
|
style: { "justify-content": "flex-start" }
|
|
4117
|
-
}, oi = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), si = { class: "forecast-models" }, ni = ["onClick"], li = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-
|
|
4117
|
+
}, oi = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), si = { class: "forecast-models" }, ni = ["onClick"], li = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-62a2f148></div><div class="row" style="padding:2px 10px;" data-v-62a2f148><div class="legend" data-v-62a2f148><div class="icon td" data-v-62a2f148></div><div class="label" data-v-62a2f148>TD</div></div><div class="legend" data-v-62a2f148><div class="icon ts" data-v-62a2f148></div><div class="label" data-v-62a2f148>TS</div></div><div class="legend" data-v-62a2f148><div class="icon sts" data-v-62a2f148></div><div class="label" data-v-62a2f148>STS</div></div><div class="legend" data-v-62a2f148><div class="icon ty" data-v-62a2f148></div><div class="label" data-v-62a2f148>TY</div></div><div class="legend" data-v-62a2f148><div class="icon sty" data-v-62a2f148></div><div class="label" data-v-62a2f148>STY</div></div><div class="legend" data-v-62a2f148><div class="icon supper-ty" data-v-62a2f148></div><div class="label" data-v-62a2f148>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-62a2f148><div class="legend" data-v-62a2f148><div class="icon history" data-v-62a2f148></div><div class="label" data-v-62a2f148>History</div></div><div class="legend" data-v-62a2f148><div class="icon r7" data-v-62a2f148></div><div class="label" data-v-62a2f148>35kts Radii</div></div><div class="legend" data-v-62a2f148><div class="icon r10" data-v-62a2f148></div><div class="label" data-v-62a2f148>50kts Radii</div></div></div>', 3), ci = { class: "more" };
|
|
4118
4118
|
function hi(t, e, a, r, i, o) {
|
|
4119
|
-
var n, s, c, h, d, p, f, m,
|
|
4120
|
-
return $e((
|
|
4119
|
+
var n, s, c, h, d, p, f, m, b, y, u, v, g, w, k;
|
|
4120
|
+
return $e((L(), x("div", Ga, [
|
|
4121
4121
|
l("div", Ha, [
|
|
4122
4122
|
l("div", {
|
|
4123
4123
|
class: "iconfont close-btn",
|
|
4124
4124
|
onClick: e[0] || (e[0] = (_) => i.showTropicals = !1)
|
|
4125
4125
|
}, ""),
|
|
4126
4126
|
l("div", Za, [
|
|
4127
|
-
(s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (
|
|
4127
|
+
(s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (L(), x("span", Ja, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : $("", !0),
|
|
4128
4128
|
Ke(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
|
|
4129
4129
|
]),
|
|
4130
|
-
l("div", Xa, " Last update: " + S(o.computeTime(((f = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : f.updated) || ((y = (
|
|
4130
|
+
l("div", Xa, " Last update: " + S(o.computeTime(((f = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : f.updated) || ((y = (b = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : b.filter((_) => !_.disabled)[0]) == null ? void 0 : y.date))), 1)
|
|
4131
4131
|
]),
|
|
4132
4132
|
l("div", qa, [
|
|
4133
4133
|
l("div", Ya, [
|
|
@@ -4138,16 +4138,16 @@ function hi(t, e, a, r, i, o) {
|
|
|
4138
4138
|
]),
|
|
4139
4139
|
l("div", ti, [
|
|
4140
4140
|
ai,
|
|
4141
|
-
l("span", null, S(((
|
|
4141
|
+
l("span", null, S(((w = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : w.pressure) || "-") + "[hPa]", 1)
|
|
4142
4142
|
])
|
|
4143
4143
|
]),
|
|
4144
4144
|
l("div", ii, [
|
|
4145
4145
|
l("div", ri, [
|
|
4146
4146
|
oi,
|
|
4147
4147
|
l("div", si, [
|
|
4148
|
-
(
|
|
4148
|
+
(L(!0), x(De, null, Ae((k = i.activeTropicals) == null ? void 0 : k.forecasts, (_, D) => {
|
|
4149
4149
|
var A, B, W, O;
|
|
4150
|
-
return
|
|
4150
|
+
return L(), x("div", {
|
|
4151
4151
|
key: D,
|
|
4152
4152
|
class: M([
|
|
4153
4153
|
"model",
|
|
@@ -4177,7 +4177,7 @@ function hi(t, e, a, r, i, o) {
|
|
|
4177
4177
|
[Be, i.showTropicals && !t.$attrs.hideTropicalsLegend]
|
|
4178
4178
|
]);
|
|
4179
4179
|
}
|
|
4180
|
-
const tt = /* @__PURE__ */ T(Ua, [["render", hi], ["__scopeId", "data-v-
|
|
4180
|
+
const tt = /* @__PURE__ */ T(Ua, [["render", hi], ["__scopeId", "data-v-62a2f148"]]);
|
|
4181
4181
|
const di = {
|
|
4182
4182
|
name: "IdmPrecip3h",
|
|
4183
4183
|
props: {
|
|
@@ -4279,7 +4279,7 @@ const di = {
|
|
|
4279
4279
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4280
4280
|
}
|
|
4281
4281
|
}
|
|
4282
|
-
}, ce = (t) => (U("data-v-
|
|
4282
|
+
}, ce = (t) => (U("data-v-42b977ed"), t = t(), G(), t), pi = { key: 0 }, mi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "mm", -1)), ui = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), yi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "2", -1)), fi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "3", -1)), gi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "7", -1)), bi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "10", -1)), vi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "20", -1)), _i = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "30", -1)), wi = [
|
|
4283
4283
|
mi,
|
|
4284
4284
|
ui,
|
|
4285
4285
|
yi,
|
|
@@ -4291,14 +4291,14 @@ const di = {
|
|
|
4291
4291
|
];
|
|
4292
4292
|
function Li(t, e, a, r, i, o) {
|
|
4293
4293
|
var n;
|
|
4294
|
-
return (n = a.factor) != null && n.active ? (
|
|
4294
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", pi, [
|
|
4295
4295
|
l("div", {
|
|
4296
4296
|
class: "legend-bars flex-center",
|
|
4297
4297
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4298
4298
|
}, wi, 4)
|
|
4299
4299
|
])) : $("", !0);
|
|
4300
4300
|
}
|
|
4301
|
-
const xi = /* @__PURE__ */ T(di, [["render", Li], ["__scopeId", "data-v-
|
|
4301
|
+
const xi = /* @__PURE__ */ T(di, [["render", Li], ["__scopeId", "data-v-42b977ed"]]);
|
|
4302
4302
|
const Ci = {
|
|
4303
4303
|
name: "IdmVisibility",
|
|
4304
4304
|
props: {
|
|
@@ -4393,7 +4393,7 @@ const Ci = {
|
|
|
4393
4393
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4394
4394
|
}
|
|
4395
4395
|
}
|
|
4396
|
-
}, Ce = (t) => (U("data-v-
|
|
4396
|
+
}, Ce = (t) => (U("data-v-2a5fbadd"), t = t(), G(), t), Si = { key: 0 }, ki = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "nm", -1)), zi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0", -1)), Pi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Ti = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), Ei = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "3", -1)), Ii = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "9", -1)), Ri = [
|
|
4397
4397
|
ki,
|
|
4398
4398
|
zi,
|
|
4399
4399
|
Pi,
|
|
@@ -4403,14 +4403,14 @@ const Ci = {
|
|
|
4403
4403
|
];
|
|
4404
4404
|
function Di(t, e, a, r, i, o) {
|
|
4405
4405
|
var n;
|
|
4406
|
-
return (n = a.factor) != null && n.active ? (
|
|
4406
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", Si, [
|
|
4407
4407
|
l("div", {
|
|
4408
4408
|
class: "legend-bars flex-center",
|
|
4409
4409
|
style: j([{ position: "absolute" }, { right: t.right + "px", bottom: a.bottom }])
|
|
4410
4410
|
}, Ri, 4)
|
|
4411
4411
|
])) : $("", !0);
|
|
4412
4412
|
}
|
|
4413
|
-
const Ai = /* @__PURE__ */ T(Ci, [["render", Di], ["__scopeId", "data-v-
|
|
4413
|
+
const Ai = /* @__PURE__ */ T(Ci, [["render", Di], ["__scopeId", "data-v-2a5fbadd"]]);
|
|
4414
4414
|
const Mi = {
|
|
4415
4415
|
name: "IdmWaterTemp",
|
|
4416
4416
|
props: {
|
|
@@ -4513,7 +4513,7 @@ const Mi = {
|
|
|
4513
4513
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4514
4514
|
}
|
|
4515
4515
|
}
|
|
4516
|
-
}, Se = (t) => (U("data-v-
|
|
4516
|
+
}, Se = (t) => (U("data-v-5b28deaf"), t = t(), G(), t), $i = { key: 0 }, Bi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ni = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "0", -1)), Wi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "10", -1)), Oi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "20", -1)), ji = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "30", -1)), Fi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "40", -1)), Vi = [
|
|
4517
4517
|
Bi,
|
|
4518
4518
|
Ni,
|
|
4519
4519
|
Wi,
|
|
@@ -4523,14 +4523,14 @@ const Mi = {
|
|
|
4523
4523
|
];
|
|
4524
4524
|
function Ui(t, e, a, r, i, o) {
|
|
4525
4525
|
var n;
|
|
4526
|
-
return (n = a.factor) != null && n.active ? (
|
|
4526
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", $i, [
|
|
4527
4527
|
l("div", {
|
|
4528
4528
|
class: "legend-bars flex-center",
|
|
4529
4529
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4530
4530
|
}, Vi, 4)
|
|
4531
4531
|
])) : $("", !0);
|
|
4532
4532
|
}
|
|
4533
|
-
const Gi = /* @__PURE__ */ T(Mi, [["render", Ui], ["__scopeId", "data-v-
|
|
4533
|
+
const Gi = /* @__PURE__ */ T(Mi, [["render", Ui], ["__scopeId", "data-v-5b28deaf"]]);
|
|
4534
4534
|
const Hi = {
|
|
4535
4535
|
name: "IdmTemp",
|
|
4536
4536
|
props: {
|
|
@@ -4636,7 +4636,7 @@ const Hi = {
|
|
|
4636
4636
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4637
4637
|
}
|
|
4638
4638
|
}
|
|
4639
|
-
}, he = (t) => (U("data-v-
|
|
4639
|
+
}, he = (t) => (U("data-v-72cd9cf1"), t = t(), G(), t), Zi = { key: 0 }, Ji = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "°C", -1)), Xi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-20", -1)), qi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-10", -1)), Yi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0", -1)), Qi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "10", -1)), Ki = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "20", -1)), er = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "30", -1)), tr = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "40", -1)), ar = [
|
|
4640
4640
|
Ji,
|
|
4641
4641
|
Xi,
|
|
4642
4642
|
qi,
|
|
@@ -4648,14 +4648,14 @@ const Hi = {
|
|
|
4648
4648
|
];
|
|
4649
4649
|
function ir(t, e, a, r, i, o) {
|
|
4650
4650
|
var n;
|
|
4651
|
-
return (n = a.factor) != null && n.active ? (
|
|
4651
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", Zi, [
|
|
4652
4652
|
l("div", {
|
|
4653
4653
|
class: "legend-bars flex-center",
|
|
4654
4654
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4655
4655
|
}, ar, 4)
|
|
4656
4656
|
])) : $("", !0);
|
|
4657
4657
|
}
|
|
4658
|
-
const rr = /* @__PURE__ */ T(Hi, [["render", ir], ["__scopeId", "data-v-
|
|
4658
|
+
const rr = /* @__PURE__ */ T(Hi, [["render", ir], ["__scopeId", "data-v-72cd9cf1"]]);
|
|
4659
4659
|
const or = {
|
|
4660
4660
|
name: "IdmArctic",
|
|
4661
4661
|
props: {
|
|
@@ -4752,7 +4752,7 @@ const or = {
|
|
|
4752
4752
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4753
4753
|
}
|
|
4754
4754
|
}
|
|
4755
|
-
}, ke = (t) => (U("data-v-
|
|
4755
|
+
}, ke = (t) => (U("data-v-2092df03"), t = t(), G(), t), sr = { key: 0 }, nr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "m", -1)), lr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "0", -1)), cr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "0.5", -1)), hr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "1", -1)), dr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "1.5", -1)), pr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "2", -1)), mr = [
|
|
4756
4756
|
nr,
|
|
4757
4757
|
lr,
|
|
4758
4758
|
cr,
|
|
@@ -4762,14 +4762,14 @@ const or = {
|
|
|
4762
4762
|
];
|
|
4763
4763
|
function ur(t, e, a, r, i, o) {
|
|
4764
4764
|
var n;
|
|
4765
|
-
return (n = a.factor) != null && n.active ? (
|
|
4765
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", sr, [
|
|
4766
4766
|
l("div", {
|
|
4767
4767
|
class: "legend-bars flex-center",
|
|
4768
4768
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4769
4769
|
}, mr, 4)
|
|
4770
4770
|
])) : $("", !0);
|
|
4771
4771
|
}
|
|
4772
|
-
const yr = /* @__PURE__ */ T(or, [["render", ur], ["__scopeId", "data-v-
|
|
4772
|
+
const yr = /* @__PURE__ */ T(or, [["render", ur], ["__scopeId", "data-v-2092df03"]]);
|
|
4773
4773
|
const fr = {
|
|
4774
4774
|
name: "IdmPoint",
|
|
4775
4775
|
emits: ["point", "more"],
|
|
@@ -4849,7 +4849,7 @@ const fr = {
|
|
|
4849
4849
|
}
|
|
4850
4850
|
}
|
|
4851
4851
|
}
|
|
4852
|
-
}, X = (t) => (U("data-v-
|
|
4852
|
+
}, X = (t) => (U("data-v-22faa80f"), t = t(), G(), t), gr = {
|
|
4853
4853
|
id: "point-meteo",
|
|
4854
4854
|
class: "point-meteo"
|
|
4855
4855
|
}, br = { class: "meteo-box" }, vr = { class: "header-box" }, _r = { class: "main" }, wr = { class: "sub" }, Lr = { class: "main-box" }, xr = { class: "flex-space" }, Cr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Sr = { class: "flex-space" }, kr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), zr = { class: "flex-space" }, Pr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Tr = { class: "flex-space" }, Er = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), Ir = { class: "flex-space" }, Rr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Current", -1)), Dr = { class: "flex-space" }, Ar = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Mr = { class: "flex-space" }, $r = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Br = { class: "flex-space" }, Nr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Wr = { class: "flex-space" }, Or = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), jr = {
|
|
@@ -4860,8 +4860,8 @@ const fr = {
|
|
|
4860
4860
|
Fr
|
|
4861
4861
|
];
|
|
4862
4862
|
function Ur(t, e, a, r, i, o) {
|
|
4863
|
-
var n, s, c, h, d, p, f, m,
|
|
4864
|
-
return $e((
|
|
4863
|
+
var n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, D, A, B, W, O, H, de, pe, me, ue, ye, fe, ge, ae, Z, q, be, Y, E, F, ve, Q, _e, ie, re, oe, ze, Pe, Te, Ee, Ie;
|
|
4864
|
+
return $e((L(), x("div", gr, [
|
|
4865
4865
|
l("div", br, [
|
|
4866
4866
|
l("div", vr, [
|
|
4867
4867
|
l("div", {
|
|
@@ -4874,11 +4874,11 @@ function Ur(t, e, a, r, i, o) {
|
|
|
4874
4874
|
l("div", Lr, [
|
|
4875
4875
|
l("div", xr, [
|
|
4876
4876
|
Cr,
|
|
4877
|
-
l("span", null, S(((d = (h = a.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((f = (p = a.meteo) == null ? void 0 : p.wind) == null ? void 0 : f.kts, 1)) + "[kts]/" + S((
|
|
4877
|
+
l("span", null, S(((d = (h = a.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((f = (p = a.meteo) == null ? void 0 : p.wind) == null ? void 0 : f.kts, 1)) + "[kts]/" + S((b = (m = a.meteo) == null ? void 0 : m.wind) == null ? void 0 : b.scale) + "[BF]/" + S(o.roundPrecision((u = (y = a.meteo) == null ? void 0 : y.gusts) == null ? void 0 : u.kts, 1)) + "[kts]", 1)
|
|
4878
4878
|
]),
|
|
4879
4879
|
l("div", Sr, [
|
|
4880
4880
|
kr,
|
|
4881
|
-
l("span", null, S(((
|
|
4881
|
+
l("span", null, S(((w = (g = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : g.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((D = (_ = (k = a.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : D.height, 1)) + "[m]/" + S(o.roundPrecision((W = (B = (A = a.meteo) == null ? void 0 : A.wave) == null ? void 0 : B.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
|
|
4882
4882
|
]),
|
|
4883
4883
|
l("div", zr, [
|
|
4884
4884
|
Pr,
|
|
@@ -4909,13 +4909,13 @@ function Ur(t, e, a, r, i, o) {
|
|
|
4909
4909
|
l("span", null, S(o.roundPrecision((Ie = a.meteo) == null ? void 0 : Ie.waterTemp, 2)) + "[°C]", 1)
|
|
4910
4910
|
])
|
|
4911
4911
|
]),
|
|
4912
|
-
t.$attrs.permission & i.helper.LEVEL.Prime ? (
|
|
4912
|
+
t.$attrs.permission & i.helper.LEVEL.Prime ? (L(), x("div", jr, Vr)) : $("", !0)
|
|
4913
4913
|
])
|
|
4914
4914
|
], 512)), [
|
|
4915
4915
|
[Be, i.showMeteo]
|
|
4916
4916
|
]);
|
|
4917
4917
|
}
|
|
4918
|
-
const Gr = /* @__PURE__ */ T(fr, [["render", Ur], ["__scopeId", "data-v-
|
|
4918
|
+
const Gr = /* @__PURE__ */ T(fr, [["render", Ur], ["__scopeId", "data-v-22faa80f"]]), Hr = {
|
|
4919
4919
|
name: "IdmWarZone",
|
|
4920
4920
|
props: {
|
|
4921
4921
|
map: {
|
|
@@ -5006,7 +5006,7 @@ const Gr = /* @__PURE__ */ T(fr, [["render", Ur], ["__scopeId", "data-v-24f49eee
|
|
|
5006
5006
|
}
|
|
5007
5007
|
};
|
|
5008
5008
|
function Zr(t, e, a, r, i, o) {
|
|
5009
|
-
return
|
|
5009
|
+
return L(), x("div");
|
|
5010
5010
|
}
|
|
5011
5011
|
const Jr = /* @__PURE__ */ T(Hr, [["render", Zr]]), Xr = {
|
|
5012
5012
|
name: "IdmGmdssArea",
|
|
@@ -5129,7 +5129,7 @@ const Jr = /* @__PURE__ */ T(Hr, [["render", Zr]]), Xr = {
|
|
|
5129
5129
|
}
|
|
5130
5130
|
};
|
|
5131
5131
|
function qr(t, e, a, r, i, o) {
|
|
5132
|
-
return
|
|
5132
|
+
return L(), x("div");
|
|
5133
5133
|
}
|
|
5134
5134
|
const Yr = /* @__PURE__ */ T(Xr, [["render", qr]]), Qr = {
|
|
5135
5135
|
name: "IdmEcaZone",
|
|
@@ -5220,7 +5220,7 @@ const Yr = /* @__PURE__ */ T(Xr, [["render", qr]]), Qr = {
|
|
|
5220
5220
|
}
|
|
5221
5221
|
};
|
|
5222
5222
|
function Kr(t, e, a, r, i, o) {
|
|
5223
|
-
return
|
|
5223
|
+
return L(), x("div");
|
|
5224
5224
|
}
|
|
5225
5225
|
const eo = /* @__PURE__ */ T(Qr, [["render", Kr]]);
|
|
5226
5226
|
const to = {
|
|
@@ -5352,7 +5352,7 @@ const to = {
|
|
|
5352
5352
|
}, ao = { id: "zone-info" }, io = ["innerHTML"];
|
|
5353
5353
|
function ro(t, e, a, r, i, o) {
|
|
5354
5354
|
var n;
|
|
5355
|
-
return $e((
|
|
5355
|
+
return $e((L(), x("div", ao, [
|
|
5356
5356
|
l("div", {
|
|
5357
5357
|
class: "iconfont close",
|
|
5358
5358
|
onClick: e[0] || (e[0] = (s) => i.showZone = !1)
|
|
@@ -5365,7 +5365,7 @@ function ro(t, e, a, r, i, o) {
|
|
|
5365
5365
|
[Be, i.showZone]
|
|
5366
5366
|
]);
|
|
5367
5367
|
}
|
|
5368
|
-
const oo = /* @__PURE__ */ T(to, [["render", ro], ["__scopeId", "data-v-
|
|
5368
|
+
const oo = /* @__PURE__ */ T(to, [["render", ro], ["__scopeId", "data-v-d1cb4e6e"]]);
|
|
5369
5369
|
const so = {
|
|
5370
5370
|
name: "IdmPort",
|
|
5371
5371
|
props: {
|
|
@@ -5458,12 +5458,12 @@ const so = {
|
|
|
5458
5458
|
this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
5459
5459
|
}
|
|
5460
5460
|
}
|
|
5461
|
-
}, Ne = (t) => (U("data-v-
|
|
5461
|
+
}, Ne = (t) => (U("data-v-6fdfee96"), t = t(), G(), t), no = { id: "port-info" }, lo = { class: "port-box" }, co = { class: "flex-start" }, ho = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), po = { class: "flex-start" }, mo = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), uo = { class: "flex-start" }, yo = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), fo = {
|
|
5462
5462
|
class: "flex-start",
|
|
5463
5463
|
style: { "align-items": "flex-start" }
|
|
5464
5464
|
}, go = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
|
|
5465
5465
|
function bo(t, e, a, r, i, o) {
|
|
5466
|
-
return $e((
|
|
5466
|
+
return $e((L(), x("div", no, [
|
|
5467
5467
|
l("div", {
|
|
5468
5468
|
class: "close iconfont",
|
|
5469
5469
|
onClick: e[0] || (e[0] = (n) => i.showPort = !1)
|
|
@@ -5492,7 +5492,7 @@ function bo(t, e, a, r, i, o) {
|
|
|
5492
5492
|
[Be, i.showPort]
|
|
5493
5493
|
]);
|
|
5494
5494
|
}
|
|
5495
|
-
const vo = /* @__PURE__ */ T(so, [["render", bo], ["__scopeId", "data-v-
|
|
5495
|
+
const vo = /* @__PURE__ */ T(so, [["render", bo], ["__scopeId", "data-v-6fdfee96"]]), _o = {
|
|
5496
5496
|
name: "IdmLoadLine",
|
|
5497
5497
|
props: {
|
|
5498
5498
|
map: {
|
|
@@ -5563,7 +5563,7 @@ const vo = /* @__PURE__ */ T(so, [["render", bo], ["__scopeId", "data-v-30e545a2
|
|
|
5563
5563
|
}
|
|
5564
5564
|
};
|
|
5565
5565
|
function wo(t, e, a, r, i, o) {
|
|
5566
|
-
return
|
|
5566
|
+
return L(), x("div");
|
|
5567
5567
|
}
|
|
5568
5568
|
const Lo = /* @__PURE__ */ T(_o, [["render", wo]]), xo = {
|
|
5569
5569
|
name: "IdmTimezone",
|
|
@@ -5731,7 +5731,7 @@ const Lo = /* @__PURE__ */ T(_o, [["render", wo]]), xo = {
|
|
|
5731
5731
|
}
|
|
5732
5732
|
};
|
|
5733
5733
|
function Co(t, e, a, r, i, o) {
|
|
5734
|
-
return
|
|
5734
|
+
return L(), x("div");
|
|
5735
5735
|
}
|
|
5736
5736
|
const So = /* @__PURE__ */ T(xo, [["render", Co]]), ko = {
|
|
5737
5737
|
name: "IdmVoluntaryReportingArea",
|
|
@@ -5822,7 +5822,7 @@ const So = /* @__PURE__ */ T(xo, [["render", Co]]), ko = {
|
|
|
5822
5822
|
}
|
|
5823
5823
|
};
|
|
5824
5824
|
function zo(t, e, a, r, i, o) {
|
|
5825
|
-
return
|
|
5825
|
+
return L(), x("div");
|
|
5826
5826
|
}
|
|
5827
5827
|
const Po = /* @__PURE__ */ T(ko, [["render", zo]]), To = {
|
|
5828
5828
|
name: "IdmSpecialArea",
|
|
@@ -5915,7 +5915,7 @@ const Po = /* @__PURE__ */ T(ko, [["render", zo]]), To = {
|
|
|
5915
5915
|
}
|
|
5916
5916
|
};
|
|
5917
5917
|
function Eo(t, e, a, r, i, o) {
|
|
5918
|
-
return
|
|
5918
|
+
return L(), x("div");
|
|
5919
5919
|
}
|
|
5920
5920
|
const Io = /* @__PURE__ */ T(To, [["render", Eo]]), Ro = {
|
|
5921
5921
|
name: "IdmTerminator",
|
|
@@ -5967,7 +5967,7 @@ const Io = /* @__PURE__ */ T(To, [["render", Eo]]), Ro = {
|
|
|
5967
5967
|
}
|
|
5968
5968
|
};
|
|
5969
5969
|
function Do(t, e, a, r, i, o) {
|
|
5970
|
-
return
|
|
5970
|
+
return L(), x("div");
|
|
5971
5971
|
}
|
|
5972
5972
|
const Ao = /* @__PURE__ */ T(Ro, [["render", Do]]);
|
|
5973
5973
|
const Mo = {
|
|
@@ -6125,9 +6125,9 @@ const Mo = {
|
|
|
6125
6125
|
(t = this.map) != null && t.getLayer(this.layer) && ((e = this.map) == null || e.removeLayer(this.layer)), (a = this.map) != null && a.getLayer(this.labelLayer) && ((r = this.map) == null || r.removeLayer(this.labelLayer)), (i = this.map) != null && i.getSource(this.source) && ((o = this.map) == null || o.removeSource(this.source));
|
|
6126
6126
|
}
|
|
6127
6127
|
}
|
|
6128
|
-
}, $o = (t) => (U("data-v-
|
|
6128
|
+
}, $o = (t) => (U("data-v-9f51b3f9"), t = t(), G(), t), Bo = /* @__PURE__ */ $o(() => /* @__PURE__ */ l("span", null, ", ", -1));
|
|
6129
6129
|
function No(t, e, a, r, i, o) {
|
|
6130
|
-
return i.lngLat ? (
|
|
6130
|
+
return i.lngLat ? (L(), x("div", {
|
|
6131
6131
|
key: 0,
|
|
6132
6132
|
class: "lat-lng-tip",
|
|
6133
6133
|
style: j({ right: i.right + "px", bottom: a.bottom })
|
|
@@ -6137,7 +6137,7 @@ function No(t, e, a, r, i, o) {
|
|
|
6137
6137
|
l("span", null, S(i.lngLat.lng.pretty), 1)
|
|
6138
6138
|
], 4)) : $("", !0);
|
|
6139
6139
|
}
|
|
6140
|
-
const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-
|
|
6140
|
+
const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-9f51b3f9"]]), Wo = {
|
|
6141
6141
|
name: "IdmMeasure",
|
|
6142
6142
|
props: {
|
|
6143
6143
|
map: {
|
|
@@ -6204,19 +6204,19 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6204
6204
|
var v;
|
|
6205
6205
|
return ((v = u._element) == null ? void 0 : v.id) === e;
|
|
6206
6206
|
})[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
|
|
6207
|
-
let
|
|
6207
|
+
let b;
|
|
6208
6208
|
f.features.forEach((u, v) => {
|
|
6209
6209
|
if (u.geometry.type === "Point" && u.properties.id == e.split("-")[1]) {
|
|
6210
|
-
|
|
6210
|
+
b = v;
|
|
6211
6211
|
return;
|
|
6212
6212
|
}
|
|
6213
6213
|
});
|
|
6214
6214
|
const y = f.features.filter((u) => u.geometry.type === "Point");
|
|
6215
6215
|
this.handleTmpPointUpdate(
|
|
6216
6216
|
f,
|
|
6217
|
-
y[
|
|
6218
|
-
{ lng: (h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties: y[
|
|
6219
|
-
|
|
6217
|
+
y[b - 1],
|
|
6218
|
+
{ lng: (h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties: y[b].properties },
|
|
6219
|
+
b === y.length - 1 ? void 0 : y[b + 1]
|
|
6220
6220
|
);
|
|
6221
6221
|
}
|
|
6222
6222
|
},
|
|
@@ -6229,8 +6229,8 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6229
6229
|
var u;
|
|
6230
6230
|
return ((u = y._element) == null ? void 0 : u.id) === e;
|
|
6231
6231
|
})[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
|
|
6232
|
-
const
|
|
6233
|
-
|
|
6232
|
+
const b = f.features.filter((y) => y.geometry.type === "Point" && y.properties.id == e.split("-")[1])[0];
|
|
6233
|
+
b.geometry.coordinates = [(h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat], f.features = f.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(f);
|
|
6234
6234
|
}
|
|
6235
6235
|
},
|
|
6236
6236
|
handleContextmenu(t) {
|
|
@@ -6281,7 +6281,7 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6281
6281
|
a = te.roundPrecision(a + d, 2);
|
|
6282
6282
|
let f;
|
|
6283
6283
|
s.mode === "RL" ? f = xe([c, h]) : f = xe(Fe(c, h, 200));
|
|
6284
|
-
const m = C.lineString(f.map((
|
|
6284
|
+
const m = C.lineString(f.map((b) => [b.lng, b.lat]));
|
|
6285
6285
|
m.properties.dist = d, m.properties.bearing = p, m.properties.total = a, r.push(m);
|
|
6286
6286
|
}
|
|
6287
6287
|
e.push(...r), t.total = a;
|
|
@@ -6419,14 +6419,14 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6419
6419
|
handleClear(t, e = !0) {
|
|
6420
6420
|
var o, n, s, c, h, d, p, f, m;
|
|
6421
6421
|
const a = `${t.id}-${this.source}`, r = `${t.id}-${this.layer}`, i = `${t.id}-${this.labelLayer}`;
|
|
6422
|
-
(o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (h = this.closeMarkers[t.id]) == null || h.remove(), this.closeMarkers[t.id] = void 0, (d = this.pointMarkers[t.id]) == null || d.forEach((
|
|
6423
|
-
|
|
6422
|
+
(o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (h = this.closeMarkers[t.id]) == null || h.remove(), this.closeMarkers[t.id] = void 0, (d = this.pointMarkers[t.id]) == null || d.forEach((b) => {
|
|
6423
|
+
b == null || b.remove();
|
|
6424
6424
|
}), this.pointMarkers[t.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(a)) && this.map.removeSource(a), e && ((m = this.map) != null && m.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
6425
6425
|
}
|
|
6426
6426
|
}
|
|
6427
6427
|
};
|
|
6428
6428
|
function Oo(t, e, a, r, i, o) {
|
|
6429
|
-
return
|
|
6429
|
+
return L(), x("div");
|
|
6430
6430
|
}
|
|
6431
6431
|
const jo = /* @__PURE__ */ T(Wo, [["render", Oo]]);
|
|
6432
6432
|
const Fo = {
|
|
@@ -6481,13 +6481,13 @@ const Fo = {
|
|
|
6481
6481
|
}
|
|
6482
6482
|
},
|
|
6483
6483
|
methods: {}
|
|
6484
|
-
}, it = (t) => (U("data-v-
|
|
6484
|
+
}, it = (t) => (U("data-v-2d85e33b"), t = t(), G(), t), Vo = { key: 0 }, Uo = { class: "bar-item" }, Go = /* @__PURE__ */ it(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), Ho = [
|
|
6485
6485
|
Go
|
|
6486
6486
|
], Zo = /* @__PURE__ */ it(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), Jo = [
|
|
6487
6487
|
Zo
|
|
6488
6488
|
];
|
|
6489
6489
|
function Xo(t, e, a, r, i, o) {
|
|
6490
|
-
return a.enabled && a.permission & i.helper.LEVEL.Supper ? (
|
|
6490
|
+
return a.enabled && a.permission & i.helper.LEVEL.Supper ? (L(), x("div", Vo, [
|
|
6491
6491
|
l("div", {
|
|
6492
6492
|
class: "menu-bar-box",
|
|
6493
6493
|
style: j({ position: "absolute", right: i.right + "px", bottom: a.bottom })
|
|
@@ -6505,7 +6505,7 @@ function Xo(t, e, a, r, i, o) {
|
|
|
6505
6505
|
], 4)
|
|
6506
6506
|
])) : $("", !0);
|
|
6507
6507
|
}
|
|
6508
|
-
const qo = /* @__PURE__ */ T(Fo, [["render", Xo], ["__scopeId", "data-v-
|
|
6508
|
+
const qo = /* @__PURE__ */ T(Fo, [["render", Xo], ["__scopeId", "data-v-2d85e33b"]]);
|
|
6509
6509
|
const Yo = {
|
|
6510
6510
|
name: "IdmGLV2",
|
|
6511
6511
|
components: {
|
|
@@ -6608,10 +6608,10 @@ const Yo = {
|
|
|
6608
6608
|
},
|
|
6609
6609
|
activeWeatherLayers: {
|
|
6610
6610
|
handler() {
|
|
6611
|
-
var t, e, a, r, i, o, n, s, c, h, d, p, f, m,
|
|
6611
|
+
var t, e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v;
|
|
6612
6612
|
if (!this.map)
|
|
6613
6613
|
return !1;
|
|
6614
|
-
this.activeWeatherLayers.length > 0 ? (
|
|
6614
|
+
this.activeWeatherLayers.length > 0 ? ((e = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (a = this.map) == null ? void 0 : a.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((c = this.map) == null || c.moveLayer((s = this.viewport) == null ? void 0 : s.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) && ((p = this.map) != null && p.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((m = this.map) == null || m.moveLayer((f = this.viewport) == null ? void 0 : f.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((y = (b = this.map) == null ? void 0 : b.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible"), (v = (u = this.map) == null ? void 0 : u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none"));
|
|
6615
6615
|
},
|
|
6616
6616
|
immediate: !0
|
|
6617
6617
|
}
|
|
@@ -6662,7 +6662,7 @@ const Yo = {
|
|
|
6662
6662
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
6663
6663
|
let a = 0, r = 0;
|
|
6664
6664
|
if (this.map) {
|
|
6665
|
-
const f = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, m = (o = this.map) == null ? void 0 : o.getBounds(),
|
|
6665
|
+
const f = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, m = (o = this.map) == null ? void 0 : o.getBounds(), b = `${m._sw.lng},${m._sw.lat},${m._ne.lng},${m._ne.lat}`;
|
|
6666
6666
|
if (this.handleRampColorState(), this.particleFactor) {
|
|
6667
6667
|
const y = Ve.WEATHER_LAYERS.find((u) => {
|
|
6668
6668
|
var v;
|
|
@@ -6673,26 +6673,26 @@ const Yo = {
|
|
|
6673
6673
|
if (this.weatherWeight > 0) {
|
|
6674
6674
|
let y = this.weatherWeight, u;
|
|
6675
6675
|
if (t.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (y -= 256, u.version = Math.random() + 1)), y > 0) {
|
|
6676
|
-
const v = await se.get(`${this.gateway}/api/arc/weather/layers/links?l=${y}&v=${this.source}&z=${f}&bbox=${
|
|
6676
|
+
const v = await se.get(`${this.gateway}/api/arc/weather/layers/links?l=${y}&v=${this.source}&z=${f}&bbox=${b}&t=${this.ts}`, {
|
|
6677
6677
|
headers: {
|
|
6678
6678
|
Authorization: this.token || this.defaultMeteoToken
|
|
6679
6679
|
}
|
|
6680
6680
|
});
|
|
6681
6681
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", r, ", total: ", a += r), ((n = v == null ? void 0 : v.data) == null ? void 0 : n.code) === 0) {
|
|
6682
|
-
const
|
|
6683
|
-
for (const _ in
|
|
6684
|
-
_ === "ice-edge" && (
|
|
6685
|
-
se.get(
|
|
6682
|
+
const g = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
|
|
6683
|
+
for (const _ in g)
|
|
6684
|
+
_ === "ice-edge" && (g[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && w.push(
|
|
6685
|
+
se.get(g[_], {
|
|
6686
6686
|
headers: {
|
|
6687
6687
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6688
6688
|
key: _
|
|
6689
6689
|
},
|
|
6690
|
-
responseType: /\.(jpg|png)$/.test(
|
|
6690
|
+
responseType: /\.(jpg|png)$/.test(g[_]) ? "blob" : "json"
|
|
6691
6691
|
}).catch((D) => {
|
|
6692
6692
|
console.log(`[${_}] fetch layer error: ${D}`);
|
|
6693
6693
|
})
|
|
6694
6694
|
);
|
|
6695
|
-
const k = await Promise.all(
|
|
6695
|
+
const k = await Promise.all(w);
|
|
6696
6696
|
this.weatherLayers = {}, k.map((_) => {
|
|
6697
6697
|
var B, W, O, H;
|
|
6698
6698
|
const D = ((B = _ == null ? void 0 : _.data) == null ? void 0 : B.data) || (_ == null ? void 0 : _.data), A = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
|
|
@@ -6701,7 +6701,7 @@ const Yo = {
|
|
|
6701
6701
|
type: ((H = _ == null ? void 0 : _.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
|
|
6702
6702
|
etime: this.ts
|
|
6703
6703
|
});
|
|
6704
|
-
}),
|
|
6704
|
+
}), g.tropicals && se.get(g.tropicals, {
|
|
6705
6705
|
headers: {
|
|
6706
6706
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6707
6707
|
key: "tropicals"
|
|
@@ -6720,20 +6720,20 @@ const Yo = {
|
|
|
6720
6720
|
});
|
|
6721
6721
|
}
|
|
6722
6722
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather layers elapsed: ", r, ", total: ", a += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
6723
|
-
const
|
|
6723
|
+
const g = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw, w = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
|
|
6724
6724
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
6725
6725
|
type: "json",
|
|
6726
|
-
direction:
|
|
6727
|
-
height: { raw:
|
|
6726
|
+
direction: g,
|
|
6727
|
+
height: { raw: w },
|
|
6728
6728
|
etime: this.ts
|
|
6729
6729
|
};
|
|
6730
6730
|
}
|
|
6731
6731
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
6732
|
-
const
|
|
6732
|
+
const g = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, w = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
|
|
6733
6733
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
6734
6734
|
type: "json",
|
|
6735
|
-
direction:
|
|
6736
|
-
speed: { raw:
|
|
6735
|
+
direction: g,
|
|
6736
|
+
speed: { raw: w },
|
|
6737
6737
|
etime: this.ts
|
|
6738
6738
|
};
|
|
6739
6739
|
}
|
|
@@ -6770,8 +6770,8 @@ const Yo = {
|
|
|
6770
6770
|
);
|
|
6771
6771
|
const d = await Promise.all(h);
|
|
6772
6772
|
this.otherLayers = { enc: n }, d.map((p) => {
|
|
6773
|
-
var
|
|
6774
|
-
const f = ((
|
|
6773
|
+
var b, y, u;
|
|
6774
|
+
const f = ((b = p == null ? void 0 : p.data) == null ? void 0 : b.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
|
|
6775
6775
|
this.otherLayers[m] = f;
|
|
6776
6776
|
});
|
|
6777
6777
|
}
|
|
@@ -6793,8 +6793,8 @@ const Yo = {
|
|
|
6793
6793
|
})
|
|
6794
6794
|
);
|
|
6795
6795
|
(await Promise.all(h)).map((p) => {
|
|
6796
|
-
var
|
|
6797
|
-
const f = ((
|
|
6796
|
+
var b, y, u;
|
|
6797
|
+
const f = ((b = p == null ? void 0 : p.data) == null ? void 0 : b.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
|
|
6798
6798
|
this.otherLayers[m] = f;
|
|
6799
6799
|
});
|
|
6800
6800
|
}
|
|
@@ -6857,29 +6857,29 @@ const Yo = {
|
|
|
6857
6857
|
for (const m in this.weatherLayers)
|
|
6858
6858
|
if (this.weatherLayers[m].active && this.weatherLayers[m].type === "json") {
|
|
6859
6859
|
this.weatherLayers[m].active = !1, this.weatherLayers[m].version = Math.random() + 1;
|
|
6860
|
-
let
|
|
6860
|
+
let b = [];
|
|
6861
6861
|
if (["swell", "current"].includes(m)) {
|
|
6862
6862
|
const y = ((d = this.weatherLayers[m]) == null ? void 0 : d.direction) || {};
|
|
6863
6863
|
for (const u in y)
|
|
6864
6864
|
if (u > s && u < c && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6865
6865
|
const v = y[u].lng;
|
|
6866
|
-
o > n ? v.forEach((
|
|
6866
|
+
o > n ? v.forEach((g, w) => {
|
|
6867
6867
|
var k;
|
|
6868
|
-
if ((
|
|
6869
|
-
const _ = C.point([
|
|
6870
|
-
val: y[u].val[
|
|
6871
|
-
spd: (k = y[u].spd) == null ? void 0 : k[
|
|
6868
|
+
if ((g >= o && g <= 180 || g >= -180 && g <= n) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6869
|
+
const _ = C.point([g, u], {
|
|
6870
|
+
val: y[u].val[w],
|
|
6871
|
+
spd: (k = y[u].spd) == null ? void 0 : k[w]
|
|
6872
6872
|
});
|
|
6873
|
-
|
|
6873
|
+
b.push(_);
|
|
6874
6874
|
}
|
|
6875
|
-
}) : v.forEach((
|
|
6875
|
+
}) : v.forEach((g, w) => {
|
|
6876
6876
|
var k;
|
|
6877
|
-
if (
|
|
6878
|
-
const _ = C.point([
|
|
6879
|
-
val: y[u].val[
|
|
6880
|
-
spd: (k = y[u].spd) == null ? void 0 : k[
|
|
6877
|
+
if (g >= o && g <= n && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6878
|
+
const _ = C.point([g, u], {
|
|
6879
|
+
val: y[u].val[w],
|
|
6880
|
+
spd: (k = y[u].spd) == null ? void 0 : k[w]
|
|
6881
6881
|
});
|
|
6882
|
-
|
|
6882
|
+
b.push(_);
|
|
6883
6883
|
}
|
|
6884
6884
|
});
|
|
6885
6885
|
}
|
|
@@ -6888,12 +6888,12 @@ const Yo = {
|
|
|
6888
6888
|
if (u) {
|
|
6889
6889
|
if (!u.data) {
|
|
6890
6890
|
const v = [];
|
|
6891
|
-
for (const
|
|
6892
|
-
const
|
|
6893
|
-
for (const k of
|
|
6891
|
+
for (const g in (p = u.raw) == null ? void 0 : p.LineString) {
|
|
6892
|
+
const w = u.raw.LineString[g];
|
|
6893
|
+
for (const k of w)
|
|
6894
6894
|
v.push(
|
|
6895
6895
|
C.lineString(k, {
|
|
6896
|
-
val: Number(
|
|
6896
|
+
val: Number(g)
|
|
6897
6897
|
})
|
|
6898
6898
|
);
|
|
6899
6899
|
u.data = C.featureCollection(v);
|
|
@@ -6901,7 +6901,7 @@ const Yo = {
|
|
|
6901
6901
|
}
|
|
6902
6902
|
if (u.data) {
|
|
6903
6903
|
const v = this.handleBboxClip(u.data, r);
|
|
6904
|
-
|
|
6904
|
+
b = b.concat(v);
|
|
6905
6905
|
}
|
|
6906
6906
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("height elapsed: ", a, ", total: ", e += a);
|
|
6907
6907
|
}
|
|
@@ -6910,20 +6910,20 @@ const Yo = {
|
|
|
6910
6910
|
const u = this.weatherLayers[m].speed;
|
|
6911
6911
|
if (u) {
|
|
6912
6912
|
if (!u.data) {
|
|
6913
|
-
const
|
|
6914
|
-
for (const
|
|
6915
|
-
const k = u.raw.Polygon[
|
|
6913
|
+
const g = [];
|
|
6914
|
+
for (const w in (f = u.raw) == null ? void 0 : f.Polygon) {
|
|
6915
|
+
const k = u.raw.Polygon[w];
|
|
6916
6916
|
for (const _ of k)
|
|
6917
|
-
|
|
6917
|
+
g.push(
|
|
6918
6918
|
C.polygon(_, {
|
|
6919
|
-
val: Number(
|
|
6919
|
+
val: Number(w)
|
|
6920
6920
|
})
|
|
6921
6921
|
);
|
|
6922
6922
|
}
|
|
6923
|
-
u.data = C.featureCollection(
|
|
6923
|
+
u.data = C.featureCollection(g);
|
|
6924
6924
|
}
|
|
6925
|
-
const v = i < this.zoom ? u.data.features.filter((
|
|
6926
|
-
|
|
6925
|
+
const v = i < this.zoom ? u.data.features.filter((g) => g.properties.val > 0.5) : u.data.features;
|
|
6926
|
+
b = b.concat(v), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("speed elapsed: ", a, ", total: ", e += a);
|
|
6927
6927
|
}
|
|
6928
6928
|
}
|
|
6929
6929
|
} else if (m === "wind") {
|
|
@@ -6931,96 +6931,105 @@ const Yo = {
|
|
|
6931
6931
|
for (const u in y)
|
|
6932
6932
|
if (u > s && u < c && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6933
6933
|
const v = y[u].lng;
|
|
6934
|
-
o > n ? v.forEach((
|
|
6935
|
-
if ((
|
|
6936
|
-
const k = C.point([
|
|
6937
|
-
val: y[u].val[
|
|
6938
|
-
spd: y[u].spd[
|
|
6934
|
+
o > n ? v.forEach((g, w) => {
|
|
6935
|
+
if ((g >= o && g <= 180 || g >= -180 && g <= n) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6936
|
+
const k = C.point([g, u], {
|
|
6937
|
+
val: y[u].val[w],
|
|
6938
|
+
spd: y[u].spd[w]
|
|
6939
6939
|
});
|
|
6940
|
-
|
|
6940
|
+
b.push(k);
|
|
6941
6941
|
}
|
|
6942
|
-
}) : v.forEach((
|
|
6943
|
-
if (
|
|
6944
|
-
const k = C.point([
|
|
6945
|
-
val: y[u].val[
|
|
6946
|
-
spd: y[u].spd[
|
|
6942
|
+
}) : v.forEach((g, w) => {
|
|
6943
|
+
if (g >= o && g <= n && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6944
|
+
const k = C.point([g, u], {
|
|
6945
|
+
val: y[u].val[w],
|
|
6946
|
+
spd: y[u].spd[w]
|
|
6947
6947
|
});
|
|
6948
|
-
|
|
6948
|
+
b.push(k);
|
|
6949
6949
|
}
|
|
6950
6950
|
});
|
|
6951
6951
|
}
|
|
6952
6952
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", a, ", total: ", e += a);
|
|
6953
6953
|
} else if (m === "sig-wave-height") {
|
|
6954
6954
|
if (this.weatherLayers[m].data)
|
|
6955
|
-
|
|
6955
|
+
b = this.weatherLayers[m].data;
|
|
6956
6956
|
else {
|
|
6957
6957
|
const y = this.weatherLayers[m].raw;
|
|
6958
6958
|
if (y) {
|
|
6959
6959
|
const u = [];
|
|
6960
6960
|
for (const v in y.Polygon) {
|
|
6961
|
-
const
|
|
6962
|
-
for (const
|
|
6961
|
+
const g = y.Polygon[v];
|
|
6962
|
+
for (const w of g)
|
|
6963
6963
|
u.push(
|
|
6964
|
-
C.polygon(
|
|
6964
|
+
C.polygon(w, {
|
|
6965
6965
|
val: Number(v)
|
|
6966
6966
|
})
|
|
6967
6967
|
);
|
|
6968
6968
|
}
|
|
6969
|
-
|
|
6969
|
+
for (const v in y.Point) {
|
|
6970
|
+
const g = y.Point[v];
|
|
6971
|
+
for (const w of g)
|
|
6972
|
+
u.push(
|
|
6973
|
+
...C.points(w, {
|
|
6974
|
+
val: Number(v)
|
|
6975
|
+
}).features
|
|
6976
|
+
);
|
|
6977
|
+
}
|
|
6978
|
+
b = b.concat(u);
|
|
6970
6979
|
}
|
|
6971
6980
|
}
|
|
6972
6981
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sigWave elapsed: ", a, ", total: ", e += a);
|
|
6973
6982
|
} else if (m === "prmsl") {
|
|
6974
6983
|
if (this.weatherLayers[m].data)
|
|
6975
|
-
|
|
6984
|
+
b = this.weatherLayers[m].data;
|
|
6976
6985
|
else {
|
|
6977
6986
|
const y = this.weatherLayers[m].raw;
|
|
6978
6987
|
if (y) {
|
|
6979
6988
|
const u = [];
|
|
6980
6989
|
for (const v in y.LineString) {
|
|
6981
|
-
const
|
|
6982
|
-
for (const
|
|
6990
|
+
const g = y.LineString[v];
|
|
6991
|
+
for (const w of g)
|
|
6983
6992
|
u.push(
|
|
6984
|
-
C.lineString(
|
|
6993
|
+
C.lineString(w, {
|
|
6985
6994
|
val: Number(v)
|
|
6986
6995
|
})
|
|
6987
6996
|
);
|
|
6988
6997
|
}
|
|
6989
6998
|
for (const v in y.Point)
|
|
6990
|
-
y.Point[v].lng.forEach((
|
|
6991
|
-
|
|
6992
|
-
C.point([
|
|
6993
|
-
val: y.Point[v].val[
|
|
6994
|
-
type: y.Point[v].type[
|
|
6999
|
+
y.Point[v].lng.forEach((g, w) => {
|
|
7000
|
+
g = Re(g), u.push(
|
|
7001
|
+
C.point([g, v], {
|
|
7002
|
+
val: y.Point[v].val[w],
|
|
7003
|
+
type: y.Point[v].type[w]
|
|
6995
7004
|
})
|
|
6996
7005
|
);
|
|
6997
7006
|
});
|
|
6998
|
-
|
|
7007
|
+
b = b.concat(u);
|
|
6999
7008
|
}
|
|
7000
7009
|
}
|
|
7001
7010
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
|
|
7002
7011
|
} else if (m === "arctic" || m === "iceberg") {
|
|
7003
7012
|
if (this.weatherLayers[m].data)
|
|
7004
|
-
|
|
7013
|
+
b = this.weatherLayers[m].data;
|
|
7005
7014
|
else {
|
|
7006
7015
|
const y = this.weatherLayers[m].raw;
|
|
7007
7016
|
if (y) {
|
|
7008
7017
|
const u = [];
|
|
7009
7018
|
for (const v in y.LineString) {
|
|
7010
|
-
const
|
|
7011
|
-
for (const
|
|
7019
|
+
const g = y.LineString[v];
|
|
7020
|
+
for (const w of g)
|
|
7012
7021
|
u.push(
|
|
7013
|
-
C.lineString(
|
|
7022
|
+
C.lineString(w, {
|
|
7014
7023
|
val: Number(v)
|
|
7015
7024
|
})
|
|
7016
7025
|
);
|
|
7017
7026
|
}
|
|
7018
|
-
|
|
7027
|
+
b = b.concat(u);
|
|
7019
7028
|
}
|
|
7020
7029
|
}
|
|
7021
7030
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
7022
7031
|
}
|
|
7023
|
-
console.log(m, " elapsed: ", a, ", total: ", e += a),
|
|
7032
|
+
console.log(m, " elapsed: ", a, ", total: ", e += a), b.length && (this.weatherLayers[m].data = C.featureCollection(b)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
|
|
7024
7033
|
}
|
|
7025
7034
|
},
|
|
7026
7035
|
handleDragEndWithZoom4Image() {
|
|
@@ -7101,8 +7110,8 @@ const Yo = {
|
|
|
7101
7110
|
});
|
|
7102
7111
|
},
|
|
7103
7112
|
handle3dToggle(t) {
|
|
7104
|
-
var e, a, r, i, o, n, s, c, h, d, p, f, m,
|
|
7105
|
-
t ? (this.map.setProjection("globe"), this.mapProjection = "globe", (a = this.map) != null && a.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((d = this.map) == null || d.moveLayer((h = this.viewport) == null ? void 0 : h.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (f = this.map) != null && f.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((m = this.map) != null && m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((y = this.map) == null || y.moveLayer((
|
|
7113
|
+
var e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g, w, k;
|
|
7114
|
+
t ? (this.map.setProjection("globe"), this.mapProjection = "globe", (a = this.map) != null && a.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((d = this.map) == null || d.moveLayer((h = this.viewport) == null ? void 0 : h.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (f = this.map) != null && f.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((m = this.map) != null && m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((y = this.map) == null || y.moveLayer((b = this.viewport) == null ? void 0 : b.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) && ((g = this.map) != null && g.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((k = this.map) == null || k.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
7106
7115
|
},
|
|
7107
7116
|
handleParticle(t) {
|
|
7108
7117
|
this.particleFactor = t, this.fetchWeatherLayers({ tropicals: !1 });
|
|
@@ -7114,8 +7123,8 @@ const Yo = {
|
|
|
7114
7123
|
};
|
|
7115
7124
|
function Ko(t, e, a, r, i, o) {
|
|
7116
7125
|
var ae, Z, q, be, Y, E, F, ve, Q, _e, ie, re, oe, ze, Pe, Te, Ee, Ie, We, He, Ze, Je, Xe, qe, Ye, Qe;
|
|
7117
|
-
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), f = z("IdmTropicals"), m = z("IdmCurrents"),
|
|
7118
|
-
return a.map ? (
|
|
7126
|
+
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), f = z("IdmTropicals"), m = z("IdmCurrents"), b = z("IdmCurrentParticle"), y = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), g = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), B = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), H = z("IdmLoadLine"), de = z("IdmTimezone"), pe = z("IdmVRA"), me = z("IdmSpecialArea"), ue = z("IdmTerminator"), ye = z("IdmLatLng"), fe = z("IdmMeasure"), ge = z("IdmPoint");
|
|
7127
|
+
return a.map ? (L(), x("div", Qo, [
|
|
7119
7128
|
P(n, I({
|
|
7120
7129
|
ref: "layer",
|
|
7121
7130
|
map: a.map,
|
|
@@ -7175,7 +7184,7 @@ function Ko(t, e, a, r, i, o) {
|
|
|
7175
7184
|
"toggle-version": i.toggleVersion,
|
|
7176
7185
|
"weather-layers": i.weatherLayers
|
|
7177
7186
|
}, t.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
|
|
7178
|
-
P(
|
|
7187
|
+
P(b, I({
|
|
7179
7188
|
viewport: i.viewport,
|
|
7180
7189
|
factor: (ve = i.weatherLayers) == null ? void 0 : ve["current-particle"],
|
|
7181
7190
|
"before-layer": a.beforeLayer,
|
|
@@ -7207,13 +7216,13 @@ function Ko(t, e, a, r, i, o) {
|
|
|
7207
7216
|
"before-layer": a.beforeLayer,
|
|
7208
7217
|
"toggle-version": i.toggleVersion
|
|
7209
7218
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7210
|
-
P(
|
|
7219
|
+
P(g, I({
|
|
7211
7220
|
viewport: i.viewport,
|
|
7212
7221
|
factor: (oe = i.weatherLayers) == null ? void 0 : oe.visibility,
|
|
7213
7222
|
"before-layer": a.beforeLayer,
|
|
7214
7223
|
"toggle-version": i.toggleVersion
|
|
7215
7224
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7216
|
-
P(
|
|
7225
|
+
P(w, I({
|
|
7217
7226
|
viewport: i.viewport,
|
|
7218
7227
|
factor: (ze = i.weatherLayers) == null ? void 0 : ze["water-temp"],
|
|
7219
7228
|
"before-layer": a.beforeLayer,
|