@idmwx/idmui-gl3 5.3.6 → 5.3.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 +289 -289
- package/dist/index.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,11 +4,11 @@ var Z = (z, M, b) => (r1(z, typeof M != "symbol" ? M + "" : M, b), b);
|
|
|
4
4
|
import { LayerHelper as _0, CompanyHelper as j0 } from "@idm-plugin/tag";
|
|
5
5
|
import Y from "moment";
|
|
6
6
|
import N0 from "axios";
|
|
7
|
-
import { resolveComponent as P, openBlock as W, createElementBlock as l, createElementVNode as c, normalizeStyle as e0, createVNode as E, withCtx as u0, normalizeClass as G, Fragment as F, renderList as J, toDisplayString as y, createCommentVNode as U, createBlock as n1, createTextVNode as c0, withDirectives as X0, createStaticVNode as
|
|
7
|
+
import { resolveComponent as P, openBlock as W, createElementBlock as l, createElementVNode as c, normalizeStyle as e0, createVNode as E, withCtx as u0, normalizeClass as G, Fragment as F, renderList as J, toDisplayString as y, createCommentVNode as U, createBlock as n1, createTextVNode as c0, withDirectives as X0, createStaticVNode as s1, vShow as w0, defineComponent as d1, withModifiers as Q0, mergeProps as H } from "vue";
|
|
8
8
|
import * as T from "@turf/turf";
|
|
9
9
|
import W1 from "@mapbox/sphericalmercator";
|
|
10
|
-
import
|
|
11
|
-
import { TropicalHelper as A1, LngLatHelper as o0, LaneHelper as
|
|
10
|
+
import v0 from "mapbox-gl";
|
|
11
|
+
import { TropicalHelper as A1, LngLatHelper as o0, LaneHelper as C0 } from "@idm-plugin/geo";
|
|
12
12
|
import { TidesAssist as H0, Meteo2Assist as S0 } from "@idm-plugin/meteo";
|
|
13
13
|
var l1 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
14
14
|
function f1(z) {
|
|
@@ -29,15 +29,15 @@ var e1 = { exports: {} }, t1 = { exports: {} };
|
|
|
29
29
|
(!M || typeof M.version != "string") && t0("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
|
|
30
30
|
var i = M.version.split("."), e = +i[0], r = +i[1];
|
|
31
31
|
(e < 2 || e === 2 && r < 6) && t0("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + M.version + ". See momentjs.com");
|
|
32
|
-
function
|
|
32
|
+
function d(t) {
|
|
33
33
|
return t > 96 ? t - 87 : t > 64 ? t - 29 : t - 48;
|
|
34
34
|
}
|
|
35
35
|
function n(t) {
|
|
36
|
-
var f = 0, u = t.split("."), B = u[0],
|
|
36
|
+
var f = 0, u = t.split("."), B = u[0], v = u[1] || "", D = 1, K, k = 0, j = 1;
|
|
37
37
|
for (t.charCodeAt(0) === 45 && (f = 1, j = -1), f; f < B.length; f++)
|
|
38
|
-
K =
|
|
39
|
-
for (f = 0; f <
|
|
40
|
-
D = D / 60, K =
|
|
38
|
+
K = d(B.charCodeAt(f)), k = 60 * k + K;
|
|
39
|
+
for (f = 0; f < v.length; f++)
|
|
40
|
+
D = D / 60, K = d(v.charCodeAt(f)), k += K * D;
|
|
41
41
|
return k * j;
|
|
42
42
|
}
|
|
43
43
|
function m(t) {
|
|
@@ -49,19 +49,19 @@ var e1 = { exports: {} }, t1 = { exports: {} };
|
|
|
49
49
|
t[u] = Math.round((t[u - 1] || 0) + t[u] * 6e4);
|
|
50
50
|
t[f - 1] = 1 / 0;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function s(t, f) {
|
|
53
53
|
var u = [], B;
|
|
54
54
|
for (B = 0; B < f.length; B++)
|
|
55
55
|
u[B] = t[f[B]];
|
|
56
56
|
return u;
|
|
57
57
|
}
|
|
58
58
|
function h(t) {
|
|
59
|
-
var f = t.split("|"), u = f[2].split(" "), B = f[3].split(""),
|
|
60
|
-
return m(u), m(B), m(
|
|
59
|
+
var f = t.split("|"), u = f[2].split(" "), B = f[3].split(""), v = f[4].split(" ");
|
|
60
|
+
return m(u), m(B), m(v), L(v, B.length), {
|
|
61
61
|
name: f[0],
|
|
62
|
-
abbrs:
|
|
63
|
-
offsets:
|
|
64
|
-
untils:
|
|
62
|
+
abbrs: s(f[1].split(" "), B),
|
|
63
|
+
offsets: s(u, B),
|
|
64
|
+
untils: v,
|
|
65
65
|
population: f[5] | 0
|
|
66
66
|
};
|
|
67
67
|
}
|
|
@@ -76,8 +76,8 @@ var e1 = { exports: {} }, t1 = { exports: {} };
|
|
|
76
76
|
return u - 1;
|
|
77
77
|
if (t >= f[u - 1])
|
|
78
78
|
return -1;
|
|
79
|
-
for (var B,
|
|
80
|
-
B = Math.floor((
|
|
79
|
+
for (var B, v = 0, D = u - 1; D - v > 1; )
|
|
80
|
+
B = Math.floor((v + D) / 2), f[B] <= t ? v = B : D = B;
|
|
81
81
|
return D;
|
|
82
82
|
}
|
|
83
83
|
R.prototype = {
|
|
@@ -96,11 +96,11 @@ var e1 = { exports: {} }, t1 = { exports: {} };
|
|
|
96
96
|
});
|
|
97
97
|
},
|
|
98
98
|
parse: function(t) {
|
|
99
|
-
var f = +t, u = this.offsets, B = this.untils,
|
|
100
|
-
for (j = 0; j <
|
|
99
|
+
var f = +t, u = this.offsets, B = this.untils, v = B.length - 1, D, K, k, j;
|
|
100
|
+
for (j = 0; j < v; j++)
|
|
101
101
|
if (D = u[j], K = u[j + 1], k = u[j && j - 1], D < K && I.moveAmbiguousForward ? D = K : D > k && I.moveInvalidForward && (D = k), f < B[j] - D * 6e4)
|
|
102
102
|
return u[j];
|
|
103
|
-
return u[
|
|
103
|
+
return u[v];
|
|
104
104
|
},
|
|
105
105
|
abbr: function(t) {
|
|
106
106
|
return this.abbrs[this._index(t)];
|
|
@@ -131,9 +131,9 @@ var e1 = { exports: {} }, t1 = { exports: {} };
|
|
|
131
131
|
return t;
|
|
132
132
|
}
|
|
133
133
|
function $() {
|
|
134
|
-
var t = (/* @__PURE__ */ new Date()).getFullYear() - 2, f = new X(new Date(t, 0, 1)), u = f.offset, B = [f],
|
|
134
|
+
var t = (/* @__PURE__ */ new Date()).getFullYear() - 2, f = new X(new Date(t, 0, 1)), u = f.offset, B = [f], v, D, K, k;
|
|
135
135
|
for (k = 1; k < 48; k++)
|
|
136
|
-
K = new Date(t, k, 1).getTimezoneOffset(), K !== u && (D = new X(new Date(t, k, 1)),
|
|
136
|
+
K = new Date(t, k, 1).getTimezoneOffset(), K !== u && (D = new X(new Date(t, k, 1)), v = V(f, D), B.push(v), B.push(new X(new Date(v.at + 6e4))), f = D, u = K);
|
|
137
137
|
for (k = 0; k < 4; k++)
|
|
138
138
|
B.push(new X(new Date(t + k, 0, 1))), B.push(new X(new Date(t + k, 6, 1)));
|
|
139
139
|
return B;
|
|
@@ -147,13 +147,13 @@ var e1 = { exports: {} }, t1 = { exports: {} };
|
|
|
147
147
|
B = f[u], a[B] = a[B] || {}, a[B][t] = !0;
|
|
148
148
|
}
|
|
149
149
|
function q0(t) {
|
|
150
|
-
var f = t.length, u = {}, B = [],
|
|
150
|
+
var f = t.length, u = {}, B = [], v = {}, D, K, k, j;
|
|
151
151
|
for (D = 0; D < f; D++)
|
|
152
|
-
if (k = t[D].offset, !
|
|
152
|
+
if (k = t[D].offset, !v.hasOwnProperty(k)) {
|
|
153
153
|
j = a[k] || {};
|
|
154
154
|
for (K in j)
|
|
155
155
|
j.hasOwnProperty(K) && (u[K] = !0);
|
|
156
|
-
|
|
156
|
+
v[k] = !0;
|
|
157
157
|
}
|
|
158
158
|
for (D in u)
|
|
159
159
|
u.hasOwnProperty(D) && B.push(A[D]);
|
|
@@ -170,9 +170,9 @@ var e1 = { exports: {} }, t1 = { exports: {} };
|
|
|
170
170
|
}
|
|
171
171
|
} catch {
|
|
172
172
|
}
|
|
173
|
-
var u = $(), B = u.length,
|
|
174
|
-
for (k = 0; k <
|
|
175
|
-
for (K = new _(O0(
|
|
173
|
+
var u = $(), B = u.length, v = q0(u), D = [], K, k, j;
|
|
174
|
+
for (k = 0; k < v.length; k++) {
|
|
175
|
+
for (K = new _(O0(v[k])), j = 0; j < B; j++)
|
|
176
176
|
K.scoreOffsetAt(u[j]);
|
|
177
177
|
D.push(K);
|
|
178
178
|
}
|
|
@@ -185,9 +185,9 @@ var e1 = { exports: {} }, t1 = { exports: {} };
|
|
|
185
185
|
return (t || "").toLowerCase().replace(/\//g, "_");
|
|
186
186
|
}
|
|
187
187
|
function l0(t) {
|
|
188
|
-
var f, u, B,
|
|
188
|
+
var f, u, B, v;
|
|
189
189
|
for (typeof t == "string" && (t = [t]), f = 0; f < t.length; f++)
|
|
190
|
-
B = t[f].split("|"), u = B[0],
|
|
190
|
+
B = t[f].split("|"), u = B[0], v = i0(u), O[v] = t[f], A[v] = u, p0(v, B[2].split(" "));
|
|
191
191
|
}
|
|
192
192
|
function O0(t, f) {
|
|
193
193
|
t = i0(t);
|
|
@@ -204,35 +204,35 @@ var e1 = { exports: {} }, t1 = { exports: {} };
|
|
|
204
204
|
return Object.keys(o);
|
|
205
205
|
}
|
|
206
206
|
function f0(t) {
|
|
207
|
-
var f, u, B,
|
|
207
|
+
var f, u, B, v;
|
|
208
208
|
for (typeof t == "string" && (t = [t]), f = 0; f < t.length; f++)
|
|
209
|
-
u = t[f].split("|"), B = i0(u[0]),
|
|
209
|
+
u = t[f].split("|"), B = i0(u[0]), v = i0(u[1]), p[B] = v, A[B] = u[0], p[v] = B, A[v] = u[1];
|
|
210
210
|
}
|
|
211
211
|
function r0(t) {
|
|
212
|
-
var f, u, B,
|
|
212
|
+
var f, u, B, v;
|
|
213
213
|
if (!(!t || !t.length))
|
|
214
214
|
for (f = 0; f < t.length; f++)
|
|
215
|
-
|
|
215
|
+
v = t[f].split("|"), u = v[0].toUpperCase(), B = v[1].split(" "), o[u] = new x(
|
|
216
216
|
u,
|
|
217
217
|
B
|
|
218
218
|
);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function s0(t) {
|
|
221
221
|
return t = t.toUpperCase(), o[t] || null;
|
|
222
222
|
}
|
|
223
223
|
function B0(t, f) {
|
|
224
|
-
if (t =
|
|
224
|
+
if (t = s0(t), !t)
|
|
225
225
|
return null;
|
|
226
226
|
var u = t.zones.sort();
|
|
227
227
|
return f ? u.map(function(B) {
|
|
228
|
-
var
|
|
228
|
+
var v = O0(B);
|
|
229
229
|
return {
|
|
230
230
|
name: B,
|
|
231
|
-
offset:
|
|
231
|
+
offset: v.utcOffset(/* @__PURE__ */ new Date())
|
|
232
232
|
};
|
|
233
233
|
}) : u;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function d0(t) {
|
|
236
236
|
l0(t.zones), f0(t.links), r0(t.countries), I.dataVersion = t.version;
|
|
237
237
|
}
|
|
238
238
|
function S(t) {
|
|
@@ -246,17 +246,17 @@ var e1 = { exports: {} }, t1 = { exports: {} };
|
|
|
246
246
|
typeof console < "u" && typeof console.error == "function" && console.error(t);
|
|
247
247
|
}
|
|
248
248
|
function I(t) {
|
|
249
|
-
var f = Array.prototype.slice.call(arguments, 0, -1), u = arguments[arguments.length - 1], B = M.utc.apply(null, f),
|
|
250
|
-
return !M.isMoment(t) && b0(B) && (
|
|
249
|
+
var f = Array.prototype.slice.call(arguments, 0, -1), u = arguments[arguments.length - 1], B = M.utc.apply(null, f), v;
|
|
250
|
+
return !M.isMoment(t) && b0(B) && (v = O0(u)) && B.add(v.parse(B), "minutes"), B.tz(u), B;
|
|
251
251
|
}
|
|
252
|
-
I.version = b, I.dataVersion = "", I._zones = O, I._links = p, I._names = A, I._countries = o, I.add = l0, I.link = f0, I.load =
|
|
252
|
+
I.version = b, I.dataVersion = "", I._zones = O, I._links = p, I._names = A, I._countries = o, I.add = l0, I.link = f0, I.load = d0, I.zone = O0, I.zoneExists = S, I.guess = h0, I.names = R0, I.Zone = R, I.unpack = h, I.unpackBase60 = n, I.needsOffset = b0, I.moveInvalidForward = !0, I.moveAmbiguousForward = !1, I.countries = m0, I.zonesForCountry = B0;
|
|
253
253
|
var M0 = M.fn;
|
|
254
254
|
M.tz = I, M.defaultZone = null, M.updateOffset = function(t, f) {
|
|
255
255
|
var u = M.defaultZone, B;
|
|
256
256
|
if (t._z === void 0 && (u && b0(t) && !t._isUTC && t.isValid() && (t._d = M.utc(t._a)._d, t.utc().add(u.parse(t), "minutes")), t._z = u), t._z)
|
|
257
257
|
if (B = t._z.utcOffset(t), Math.abs(B) < 16 && (B = B / 60), t.utcOffset !== void 0) {
|
|
258
|
-
var
|
|
259
|
-
t.utcOffset(-B, f), t._z =
|
|
258
|
+
var v = t._z;
|
|
259
|
+
t.utcOffset(-B, f), t._z = v;
|
|
260
260
|
} else
|
|
261
261
|
t.zone(B, f);
|
|
262
262
|
}, M0.tz = function(t, f) {
|
|
@@ -1361,7 +1361,7 @@ const Q = (z, M) => {
|
|
|
1361
1361
|
this.show3d = !this.show3d, this.$emit("3d", this.show3d);
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
|
-
}, X1 = { class: "idm-gl3-layer" }, w1 = { class: "bar-item layer-bars" },
|
|
1364
|
+
}, X1 = { class: "idm-gl3-layer" }, w1 = { class: "bar-item layer-bars" }, C1 = { class: "bar-item tool-bars" }, v1 = { class: "flex-between" }, T1 = {
|
|
1365
1365
|
key: 0,
|
|
1366
1366
|
class: "iconfont active"
|
|
1367
1367
|
}, E1 = {
|
|
@@ -1434,7 +1434,7 @@ function q2(z, M, b, O, p, o) {
|
|
|
1434
1434
|
class: "menu-bar-box",
|
|
1435
1435
|
style: e0({ top: b.top + 160 + "px", right: p.right + "px" })
|
|
1436
1436
|
}, [
|
|
1437
|
-
c("div",
|
|
1437
|
+
c("div", C1, [
|
|
1438
1438
|
E(A, {
|
|
1439
1439
|
placement: "left",
|
|
1440
1440
|
effect: "light",
|
|
@@ -1506,7 +1506,7 @@ function q2(z, M, b, O, p, o) {
|
|
|
1506
1506
|
class: "active-layers",
|
|
1507
1507
|
style: e0({ right: p.right + "px", bottom: "100px" })
|
|
1508
1508
|
}, [
|
|
1509
|
-
c("div",
|
|
1509
|
+
c("div", v1, [
|
|
1510
1510
|
M[22] || (M[22] = c("div", { style: { margin: "2px 5px" } }, "Weather Layers", -1)),
|
|
1511
1511
|
c("div", {
|
|
1512
1512
|
class: "switch flex-center",
|
|
@@ -1639,7 +1639,7 @@ function q2(z, M, b, O, p, o) {
|
|
|
1639
1639
|
return W(), l("div", {
|
|
1640
1640
|
key: e.key,
|
|
1641
1641
|
class: G(["layer flex-between", o.computeLayerClass(e, p.activeOtherLayers)]),
|
|
1642
|
-
onClick: (
|
|
1642
|
+
onClick: (d) => o.handleOtherLayerPick(e)
|
|
1643
1643
|
}, [
|
|
1644
1644
|
c("div", z2, [
|
|
1645
1645
|
c("div", p2, [
|
|
@@ -1666,11 +1666,11 @@ function q2(z, M, b, O, p, o) {
|
|
|
1666
1666
|
value: e.name
|
|
1667
1667
|
}, {
|
|
1668
1668
|
default: u0(() => {
|
|
1669
|
-
var
|
|
1669
|
+
var d, n, m, L, s, h;
|
|
1670
1670
|
return [
|
|
1671
1671
|
c0(y(e.name) + " ", 1),
|
|
1672
1672
|
r !== 0 ? (W(), l("span", e2, y(e.resolution) + "km " + y(e.length) + "days", 1)) : U("", !0),
|
|
1673
|
-
r === 0 ? (W(), l("div", t2, "Provides the best forecast")) : (m = (n = (
|
|
1673
|
+
r === 0 ? (W(), l("div", t2, "Provides the best forecast")) : (m = (n = (d = e == null ? void 0 : e.update) == null ? void 0 : d.default) == null ? void 0 : n.meta) != null && m.initialisationTime ? (W(), l("div", a2, "Update: " + y(o.computeDateZ((h = (s = (L = e == null ? void 0 : e.update) == null ? void 0 : L.default) == null ? void 0 : s.meta) == null ? void 0 : h.initialisationTime)), 1)) : U("", !0)
|
|
1674
1674
|
];
|
|
1675
1675
|
}),
|
|
1676
1676
|
_: 2
|
|
@@ -1833,7 +1833,7 @@ const r2 = {
|
|
|
1833
1833
|
function n2(z, M, b, O, p, o) {
|
|
1834
1834
|
return null;
|
|
1835
1835
|
}
|
|
1836
|
-
const
|
|
1836
|
+
const s2 = /* @__PURE__ */ Q(r2, [["render", n2]]);
|
|
1837
1837
|
class F0 {
|
|
1838
1838
|
constructor(M) {
|
|
1839
1839
|
Z(this, "map");
|
|
@@ -1879,8 +1879,8 @@ class F0 {
|
|
|
1879
1879
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
1880
1880
|
*/
|
|
1881
1881
|
getBoundPixel() {
|
|
1882
|
-
const M = this.map.getBounds(), b = this.map.getZoom() + 1, O = [M._ne.lng, M._ne.lat], p = [M._sw.lng, M._sw.lat], [o, A] = this.convertNLng(O[0]), [a, q] = this.convertNLng(p[0]), [i, e] = this.mercator.px([o, O[1]], b), [r,
|
|
1883
|
-
return [r,
|
|
1882
|
+
const M = this.map.getBounds(), b = this.map.getZoom() + 1, O = [M._ne.lng, M._ne.lat], p = [M._sw.lng, M._sw.lat], [o, A] = this.convertNLng(O[0]), [a, q] = this.convertNLng(p[0]), [i, e] = this.mercator.px([o, O[1]], b), [r, d] = this.mercator.px([a, p[1]], b), n = Math.round(this.mercator.size * Math.pow(2, b) * (A + q));
|
|
1883
|
+
return [r, d, i + n, e];
|
|
1884
1884
|
}
|
|
1885
1885
|
/**
|
|
1886
1886
|
* [视窗边界像素宽度]
|
|
@@ -2051,14 +2051,14 @@ class T0 {
|
|
|
2051
2051
|
if (b && O) {
|
|
2052
2052
|
M.resize(), b == null || b.viewport(0, 0, (q = b == null ? void 0 : b.canvas) == null ? void 0 : q.width, (i = b == null ? void 0 : b.canvas) == null ? void 0 : i.height), b.clearColor(0, 0, 0, 0), b.clear(b.COLOR_BUFFER_BIT | b.DEPTH_BUFFER_BIT);
|
|
2053
2053
|
try {
|
|
2054
|
-
const e = b.getUniformLocation(O, "u_resolution"), r = b.getUniformLocation(O, "u_image"),
|
|
2055
|
-
if (b.useProgram(O), b.uniform2f(e, b.canvas.width * M.ratio, b.canvas.height * M.ratio), b.activeTexture(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, p), b.uniform1i(r, 0), b.activeTexture(b.TEXTURE1), b.bindTexture(b.TEXTURE_2D, o), b.uniform1i(
|
|
2056
|
-
const
|
|
2057
|
-
b.uniform2f(
|
|
2054
|
+
const e = b.getUniformLocation(O, "u_resolution"), r = b.getUniformLocation(O, "u_image"), d = b.getUniformLocation(O, "u_color");
|
|
2055
|
+
if (b.useProgram(O), b.uniform2f(e, b.canvas.width * M.ratio, b.canvas.height * M.ratio), b.activeTexture(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, p), b.uniform1i(r, 0), b.activeTexture(b.TEXTURE1), b.bindTexture(b.TEXTURE_2D, o), b.uniform1i(d, 1), a != null && a.uvRange && (a != null && a.sRange)) {
|
|
2056
|
+
const s = b.getUniformLocation(O, "u_range_u_v"), h = b.getUniformLocation(O, "u_range_s");
|
|
2057
|
+
b.uniform2f(s, a.uvRange[0], a.uvRange[1]), b.uniform2f(h, a.sRange[0], a.sRange[1]);
|
|
2058
2058
|
}
|
|
2059
2059
|
const n = M.getBoundPixel(), m = M.map.getZoom() + 1, L = M.getWorldCopy(n, m);
|
|
2060
|
-
for (const
|
|
2061
|
-
const h = (
|
|
2060
|
+
for (const s of L) {
|
|
2061
|
+
const h = (s[0] - n[0]) * M.ratio, R = (s[1] - n[3]) * M.ratio, w = s[2] * M.ratio, [x, X, _, V] = [h, w + h, R, w + R], $ = new Float32Array([x, _, X, _, x, V, x, V, X, _, X, V]);
|
|
2062
2062
|
b.bindBuffer(b.ARRAY_BUFFER, A), b.bufferData(b.ARRAY_BUFFER, $, b.STATIC_DRAW), b.drawArrays(b.TRIANGLES, 0, 6);
|
|
2063
2063
|
}
|
|
2064
2064
|
} catch (e) {
|
|
@@ -2304,7 +2304,7 @@ Z(n0, "vertexSchema", `
|
|
|
2304
2304
|
fract(pos * 255.0),
|
|
2305
2305
|
floor(pos * 255.0) / 255.0);
|
|
2306
2306
|
}`);
|
|
2307
|
-
class
|
|
2307
|
+
class d2 {
|
|
2308
2308
|
constructor(M = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
2309
2309
|
Z(this, "token");
|
|
2310
2310
|
Z(this, "mapboxCustomer");
|
|
@@ -4642,7 +4642,7 @@ const N2 = /* @__PURE__ */ Q(m2, [["render", g2], ["__scopeId", "data-v-163d1f9a
|
|
|
4642
4642
|
function X2(z, M, b, O, p, o) {
|
|
4643
4643
|
return W(), l("div");
|
|
4644
4644
|
}
|
|
4645
|
-
const w2 = /* @__PURE__ */ Q(y2, [["render", X2]]),
|
|
4645
|
+
const w2 = /* @__PURE__ */ Q(y2, [["render", X2]]), C2 = {
|
|
4646
4646
|
name: "IdmSwell",
|
|
4647
4647
|
props: {
|
|
4648
4648
|
map: {
|
|
@@ -4797,10 +4797,10 @@ const w2 = /* @__PURE__ */ Q(y2, [["render", X2]]), v2 = {
|
|
|
4797
4797
|
}
|
|
4798
4798
|
}
|
|
4799
4799
|
};
|
|
4800
|
-
function
|
|
4800
|
+
function v2(z, M, b, O, p, o) {
|
|
4801
4801
|
return W(), l("div");
|
|
4802
4802
|
}
|
|
4803
|
-
const T2 = /* @__PURE__ */ Q(
|
|
4803
|
+
const T2 = /* @__PURE__ */ Q(C2, [["render", v2]]), E2 = {
|
|
4804
4804
|
name: "IdmPrmsl",
|
|
4805
4805
|
props: {
|
|
4806
4806
|
map: {
|
|
@@ -5093,18 +5093,18 @@ const k2 = {
|
|
|
5093
5093
|
var i;
|
|
5094
5094
|
let A = 0, a;
|
|
5095
5095
|
const q = z.filter((e) => {
|
|
5096
|
-
var r,
|
|
5097
|
-
return ((
|
|
5096
|
+
var r, d;
|
|
5097
|
+
return ((d = (r = e.properties) == null ? void 0 : r.category) == null ? void 0 : d.split("-")[0]) === o;
|
|
5098
5098
|
});
|
|
5099
5099
|
(i = q.filter((e) => {
|
|
5100
|
-
var r,
|
|
5101
|
-
return ((r = e.geometry) == null ? void 0 : r.type) === "LineString" && ((
|
|
5100
|
+
var r, d;
|
|
5101
|
+
return ((r = e.geometry) == null ? void 0 : r.type) === "LineString" && ((d = e.properties) == null ? void 0 : d.type) === "forecast";
|
|
5102
5102
|
})[0]) == null || i.properties.model, q.forEach((e, r) => {
|
|
5103
|
-
var
|
|
5104
|
-
((
|
|
5103
|
+
var d, n, m, L, s, h;
|
|
5104
|
+
((d = e.geometry) == null ? void 0 : d.type) === "Point" && ((n = e.properties) == null ? void 0 : n.type) === "history" && (A = r, a = a === void 0 ? r : a), ((m = e.geometry) == null ? void 0 : m.type) === "Point" && ((L = e.properties) == null ? void 0 : L.type) === "forecast" && a === void 0 && (a = r), ((s = e.geometry) == null ? void 0 : s.type) === "LineString" && ((h = e.properties) == null || h.type);
|
|
5105
5105
|
}), q.map((e, r) => {
|
|
5106
|
-
var
|
|
5107
|
-
if (((
|
|
5106
|
+
var d, n, m, L, s, h, R;
|
|
5107
|
+
if (((d = e.geometry) == null ? void 0 : d.type) === "LineString" && ((n = e.properties) == null || n.type), ((m = e.geometry) == null ? void 0 : m.type) === "Point" && ((L = e.properties) == null ? void 0 : L.type) === "forecast" && (e.properties.name = o, e.properties.format = Y(e.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((s = e.geometry) == null ? void 0 : s.type) === "Point" && ((h = e.properties) == null ? void 0 : h.type) === "history") {
|
|
5108
5108
|
e.properties.format = Y(e.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
5109
5109
|
const w = Y((R = e.properties) == null ? void 0 : R.date).utc().format("HHmm") === Y().utc().hour(Math.floor(M / 6) * 6).minute("00").format("HHmm");
|
|
5110
5110
|
e.properties.showHistoryLabel = w || r === A, e.properties.showNameLabel = r === A, e.properties.name = o;
|
|
@@ -5152,8 +5152,8 @@ const k2 = {
|
|
|
5152
5152
|
else {
|
|
5153
5153
|
if (this.tropicals) {
|
|
5154
5154
|
const r = (/* @__PURE__ */ new Date()).valueOf();
|
|
5155
|
-
let
|
|
5156
|
-
(z = this.map) != null && z.getSource(this.source) ? ((b = this.map) == null || b.getSource(this.source).setData((M = this.tropicals) != null && M.active ? this.tropicals.data : this.empty), n = (/* @__PURE__ */ new Date()).valueOf() - (r +
|
|
5155
|
+
let d = 0, n = 0;
|
|
5156
|
+
(z = this.map) != null && z.getSource(this.source) ? ((b = this.map) == null || b.getSource(this.source).setData((M = this.tropicals) != null && M.active ? this.tropicals.data : this.empty), n = (/* @__PURE__ */ new Date()).valueOf() - (r + d), console.log("[tropicals] update elapsed: ", n, ", total: ", d += n)) : (this.map.addSource(this.source, {
|
|
5157
5157
|
type: "geojson",
|
|
5158
5158
|
data: (O = this.tropicals) != null && O.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
5159
5159
|
}), this.map.addLayer({
|
|
@@ -5250,7 +5250,7 @@ const k2 = {
|
|
|
5250
5250
|
],
|
|
5251
5251
|
"text-halo-width": 4
|
|
5252
5252
|
}
|
|
5253
|
-
}), n = (/* @__PURE__ */ new Date()).valueOf() - (r +
|
|
5253
|
+
}), n = (/* @__PURE__ */ new Date()).valueOf() - (r + d), console.log("[tropical] add elapsed: ", n, ", total: ", d += n)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((a = this.map) == null || a.getSource(this.clusterSource).setData((A = this.tropicals) != null && A.active ? this.tropicals.data : this.empty), n = (/* @__PURE__ */ new Date()).valueOf() - (r + d), console.log("[tropical] update elapsed: ", n, ", total: ", d += n)) : (this.map.addSource(this.clusterSource, {
|
|
5254
5254
|
type: "geojson",
|
|
5255
5255
|
data: (q = this.tropicals) != null && q.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
|
|
5256
5256
|
// cluster: true,
|
|
@@ -5367,7 +5367,7 @@ const k2 = {
|
|
|
5367
5367
|
"text-halo-color": "#0033ff",
|
|
5368
5368
|
"text-halo-width": 4
|
|
5369
5369
|
}
|
|
5370
|
-
}), n = (/* @__PURE__ */ new Date()).valueOf() - (r +
|
|
5370
|
+
}), n = (/* @__PURE__ */ new Date()).valueOf() - (r + d), console.log("[tropical] add elapsed: ", n, ", total: ", d += n));
|
|
5371
5371
|
}
|
|
5372
5372
|
this.handleDrawCircle();
|
|
5373
5373
|
const e = A1.interpolate(this.tropicals, 1);
|
|
@@ -5379,14 +5379,14 @@ const k2 = {
|
|
|
5379
5379
|
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), (z = this.interpolateMarkers) == null || z.forEach((M) => M == null ? void 0 : M.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));
|
|
5380
5380
|
},
|
|
5381
5381
|
handleDateChange() {
|
|
5382
|
-
var z, M, b, O, p, o, A, a, q, i, e, r,
|
|
5382
|
+
var z, M, b, O, p, o, A, a, q, i, e, r, d, n, m, L, s, h, R, w, x, X, _, V, $, z0, p0, q0, L0, h0, i0, l0, O0, R0, m0, f0;
|
|
5383
5383
|
if ((z = this.interpolateMarkers) == null || z.forEach((r0) => r0 == null ? void 0 : r0.remove()), this.circleSourceData.features = [], (M = this.interpolateData) != null && M.length && this.tropicals.active) {
|
|
5384
|
-
const r0 = Y(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }),
|
|
5384
|
+
const r0 = Y(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), s0 = this.interpolateData.filter((S) => S.properties.date === r0.format() && !S.properties.disabled), B0 = this.handleComputePolygons(s0), d0 = T.featureCollection([...s0]);
|
|
5385
5385
|
B0.forEach((S) => {
|
|
5386
|
-
|
|
5387
|
-
}), (b = this.map) != null && b.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(
|
|
5386
|
+
d0.features.push(S);
|
|
5387
|
+
}), (b = this.map) != null && b.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(d0) : ((p = this.map) == null || p.addSource(this.interpolateSource, {
|
|
5388
5388
|
type: "geojson",
|
|
5389
|
-
data:
|
|
5389
|
+
data: d0
|
|
5390
5390
|
}), (o = this.map) == null || o.addLayer({
|
|
5391
5391
|
id: this.interpolateLineLayer,
|
|
5392
5392
|
type: "line",
|
|
@@ -5398,10 +5398,10 @@ const k2 = {
|
|
|
5398
5398
|
"line-width": 1
|
|
5399
5399
|
}
|
|
5400
5400
|
})), this.interpolateMarkers = [];
|
|
5401
|
-
for (const S of
|
|
5401
|
+
for (const S of s0)
|
|
5402
5402
|
if (!S.properties.disabled) {
|
|
5403
5403
|
let b0 = "#f44336";
|
|
5404
|
-
((a = (A = S.properties) == null ? void 0 : A.wind) == null ? void 0 : a.spd) < 17.2 || !((i = (q = S.properties) == null ? void 0 : q.wind) != null && i.spd) ? b0 = "#03f869" : ((r = (e = S.properties) == null ? void 0 : e.wind) == null ? void 0 : r.spd) >= 17.2 && ((n = (
|
|
5404
|
+
((a = (A = S.properties) == null ? void 0 : A.wind) == null ? void 0 : a.spd) < 17.2 || !((i = (q = S.properties) == null ? void 0 : q.wind) != null && i.spd) ? b0 = "#03f869" : ((r = (e = S.properties) == null ? void 0 : e.wind) == null ? void 0 : r.spd) >= 17.2 && ((n = (d = S.properties) == null ? void 0 : d.wind) == null ? void 0 : n.spd) < 24.5 ? b0 = "#f2f202" : ((L = (m = S.properties) == null ? void 0 : m.wind) == null ? void 0 : L.spd) >= 24.5 && ((h = (s = S.properties) == null ? void 0 : s.wind) == null ? void 0 : h.spd) < 32.7 ? b0 = "#ff9100" : ((w = (R = S.properties) == null ? void 0 : R.wind) == null ? void 0 : w.spd) >= 32.7 && ((X = (x = S.properties) == null ? void 0 : x.wind) == null ? void 0 : X.spd) < 41.5 ? b0 = "#f44336" : ((V = (_ = S.properties) == null ? void 0 : _.wind) == null ? void 0 : V.spd) >= 41.5 && ((z0 = ($ = S.properties) == null ? void 0 : $.wind) == null ? void 0 : z0.spd) < 51 ? b0 = "#f903d0" : ((q0 = (p0 = S.properties) == null ? void 0 : p0.wind) == null ? void 0 : q0.spd) >= 51 ? b0 = "#8702f9" : b0 = "#f44336";
|
|
5405
5405
|
const t0 = `<svg t="1719918955501"
|
|
5406
5406
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5407
5407
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -5418,7 +5418,7 @@ const k2 = {
|
|
|
5418
5418
|
fill="#ffffff" p-id="18386"></path>
|
|
5419
5419
|
</svg>`, I = document.createElement("div");
|
|
5420
5420
|
I.className = "hurricane-hourly-marker", I.innerHTML = `<div class="${S.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${t0}</div>`;
|
|
5421
|
-
const M0 = new
|
|
5421
|
+
const M0 = new v0.Marker(I).setLngLat(S.geometry.coordinates).addTo(this.map);
|
|
5422
5422
|
if (this.interpolateMarkers.push(M0), (L0 = S.properties) != null && L0.showCircle) {
|
|
5423
5423
|
const W0 = { radius: 100, coordinates: S.geometry.coordinates }, N = { radius: 200, coordinates: S.geometry.coordinates }, y0 = { radius: 500, coordinates: S.geometry.coordinates };
|
|
5424
5424
|
(h0 = this.circleSourceData) == null || h0.features.push(
|
|
@@ -5435,7 +5435,7 @@ const k2 = {
|
|
|
5435
5435
|
(m0 = this.map) != null && m0.getSource(this.interpolateSource) && ((f0 = this.map) == null || f0.getSource(this.interpolateSource).setData(this.empty));
|
|
5436
5436
|
},
|
|
5437
5437
|
handleClick(z) {
|
|
5438
|
-
var o, A, a, q, i, e, r,
|
|
5438
|
+
var o, A, a, q, i, e, r, d;
|
|
5439
5439
|
const M = z.features[0], b = (A = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : A.features.filter(
|
|
5440
5440
|
(n) => {
|
|
5441
5441
|
var m;
|
|
@@ -5443,8 +5443,8 @@ const k2 = {
|
|
|
5443
5443
|
}
|
|
5444
5444
|
);
|
|
5445
5445
|
b.sort((n, m) => {
|
|
5446
|
-
var L,
|
|
5447
|
-
return ((L = n.properties) == null ? void 0 : L.model) === "cma" ? -1 : ((
|
|
5446
|
+
var L, s, h, R;
|
|
5447
|
+
return ((L = n.properties) == null ? void 0 : L.model) === "cma" ? -1 : ((s = n.properties) == null ? void 0 : s.model) === "jma" ? ((h = m.properties) == null ? void 0 : h.model) === "cma" ? 1 : -1 : n.properties.model === "ecmwf" ? ["jma", "cma"].includes((R = m.properties) == null ? void 0 : R.model) ? 1 : -1 : 0;
|
|
5448
5448
|
});
|
|
5449
5449
|
const O = (q = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : q.features.filter(
|
|
5450
5450
|
(n) => {
|
|
@@ -5456,10 +5456,10 @@ const k2 = {
|
|
|
5456
5456
|
name: (i = M == null ? void 0 : M.properties) == null ? void 0 : i.name,
|
|
5457
5457
|
forecasts: b.map((n) => n.properties),
|
|
5458
5458
|
history: (e = O[0]) == null ? void 0 : e.properties,
|
|
5459
|
-
showCircle: (
|
|
5459
|
+
showCircle: (d = (r = b[0]) == null ? void 0 : r.properties) == null ? void 0 : d.showCircle
|
|
5460
5460
|
}, this.showTropicals = !0;
|
|
5461
5461
|
const p = document.getElementById("active-tropical");
|
|
5462
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.activeTropicalsMarker = new
|
|
5462
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.activeTropicalsMarker = new v0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
5463
5463
|
},
|
|
5464
5464
|
handleForecastToggle(z) {
|
|
5465
5465
|
var O, p, o, A, a, q;
|
|
@@ -5561,7 +5561,7 @@ const k2 = {
|
|
|
5561
5561
|
style: { "justify-content": "flex-start" }
|
|
5562
5562
|
}, $2 = { class: "forecast-models" }, MM = ["onClick"], bM = { class: "more" };
|
|
5563
5563
|
function zM(z, M, b, O, p, o) {
|
|
5564
|
-
var A, a, q, i, e, r,
|
|
5564
|
+
var A, a, q, i, e, r, d, n, m, L, s, h, R, w, x;
|
|
5565
5565
|
return X0((W(), l("div", Q2, [
|
|
5566
5566
|
c("div", H2, [
|
|
5567
5567
|
c("div", {
|
|
@@ -5572,14 +5572,14 @@ function zM(z, M, b, O, p, o) {
|
|
|
5572
5572
|
(a = (A = p.activeTropicals) == null ? void 0 : A.history) != null && a.level ? (W(), l("span", j2, y((i = (q = p.activeTropicals) == null ? void 0 : q.history) == null ? void 0 : i.level) + " , ", 1)) : U("", !0),
|
|
5573
5573
|
c0(y((e = p.activeTropicals) == null ? void 0 : e.name), 1)
|
|
5574
5574
|
]),
|
|
5575
|
-
c("div", F2, " Last update: " + y(o.computeTime(((
|
|
5575
|
+
c("div", F2, " Last update: " + y(o.computeTime(((d = (r = p.activeTropicals) == null ? void 0 : r.history) == null ? void 0 : d.updated) || ((L = (m = (n = p.activeTropicals) == null ? void 0 : n.forecasts) == null ? void 0 : m.filter((X) => !X.disabled)[0]) == null ? void 0 : L.date))), 1)
|
|
5576
5576
|
]),
|
|
5577
5577
|
c("div", G2, [
|
|
5578
5578
|
c("div", U2, [
|
|
5579
5579
|
c("div", K2, [
|
|
5580
5580
|
c("div", J2, [
|
|
5581
5581
|
M[2] || (M[2] = c("label", null, "Wind speed : ", -1)),
|
|
5582
|
-
c("span", null, y(((h = (
|
|
5582
|
+
c("span", null, y(((h = (s = p.activeTropicals) == null ? void 0 : s.history) == null ? void 0 : h.kts) || "-") + "[kts]", 1)
|
|
5583
5583
|
]),
|
|
5584
5584
|
c("div", Y2, [
|
|
5585
5585
|
M[3] || (M[3] = c("label", null, "Pressure : ", -1)),
|
|
@@ -5609,7 +5609,7 @@ function zM(z, M, b, O, p, o) {
|
|
|
5609
5609
|
])
|
|
5610
5610
|
])
|
|
5611
5611
|
]),
|
|
5612
|
-
M[5] || (M[5] =
|
|
5612
|
+
M[5] || (M[5] = s1('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-44a4e671></div><div class="row" style="padding:2px 10px;" data-v-44a4e671><div class="legend" data-v-44a4e671><div class="icon td" data-v-44a4e671></div><div class="label" data-v-44a4e671>TD</div></div><div class="legend" data-v-44a4e671><div class="icon ts" data-v-44a4e671></div><div class="label" data-v-44a4e671>TS</div></div><div class="legend" data-v-44a4e671><div class="icon sts" data-v-44a4e671></div><div class="label" data-v-44a4e671>STS</div></div><div class="legend" data-v-44a4e671><div class="icon ty" data-v-44a4e671></div><div class="label" data-v-44a4e671>TY</div></div><div class="legend" data-v-44a4e671><div class="icon sty" data-v-44a4e671></div><div class="label" data-v-44a4e671>STY</div></div><div class="legend" data-v-44a4e671><div class="icon supper-ty" data-v-44a4e671></div><div class="label" data-v-44a4e671>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-44a4e671><div class="legend" data-v-44a4e671><div class="icon history" data-v-44a4e671></div><div class="label" data-v-44a4e671>History</div></div><div class="legend" data-v-44a4e671><div class="icon r7" data-v-44a4e671></div><div class="label" data-v-44a4e671>35kts Radii</div></div><div class="legend" data-v-44a4e671><div class="icon r10" data-v-44a4e671></div><div class="label" data-v-44a4e671>50kts Radii</div></div></div>', 3))
|
|
5613
5613
|
]),
|
|
5614
5614
|
c("div", bM, [
|
|
5615
5615
|
c("div", {
|
|
@@ -5976,7 +5976,7 @@ function rM(z, M, b, O, p, o) {
|
|
|
5976
5976
|
])) : U("", !0);
|
|
5977
5977
|
}
|
|
5978
5978
|
const nM = /* @__PURE__ */ Q(qM, [["render", rM], ["__scopeId", "data-v-8974924d"]]);
|
|
5979
|
-
const
|
|
5979
|
+
const sM = {
|
|
5980
5980
|
name: "IdmTemp",
|
|
5981
5981
|
props: {
|
|
5982
5982
|
factor: {
|
|
@@ -6081,10 +6081,10 @@ const dM = {
|
|
|
6081
6081
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
6082
6082
|
}
|
|
6083
6083
|
}
|
|
6084
|
-
},
|
|
6084
|
+
}, dM = { key: 0 };
|
|
6085
6085
|
function WM(z, M, b, O, p, o) {
|
|
6086
6086
|
var A;
|
|
6087
|
-
return (A = b.factor) != null && A.active ? (W(), l("div",
|
|
6087
|
+
return (A = b.factor) != null && A.active ? (W(), l("div", dM, [
|
|
6088
6088
|
c("div", {
|
|
6089
6089
|
class: "legend-bars flex-center",
|
|
6090
6090
|
style: e0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
|
|
@@ -6100,7 +6100,7 @@ function WM(z, M, b, O, p, o) {
|
|
|
6100
6100
|
]), 4)
|
|
6101
6101
|
])) : U("", !0);
|
|
6102
6102
|
}
|
|
6103
|
-
const lM = /* @__PURE__ */ Q(
|
|
6103
|
+
const lM = /* @__PURE__ */ Q(sM, [["render", WM], ["__scopeId", "data-v-d709ba86"]]);
|
|
6104
6104
|
const fM = {
|
|
6105
6105
|
name: "IdmArctic",
|
|
6106
6106
|
props: {
|
|
@@ -6216,7 +6216,7 @@ function LM(z, M, b, O, p, o) {
|
|
|
6216
6216
|
}
|
|
6217
6217
|
const hM = /* @__PURE__ */ Q(fM, [["render", LM], ["__scopeId", "data-v-5bb73794"]]);
|
|
6218
6218
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
6219
|
-
var RM = /* @__PURE__ */
|
|
6219
|
+
var RM = /* @__PURE__ */ d1({
|
|
6220
6220
|
name: "LocationFilled",
|
|
6221
6221
|
__name: "location-filled",
|
|
6222
6222
|
setup(z) {
|
|
@@ -6426,7 +6426,7 @@ const gM = {
|
|
|
6426
6426
|
initTableData(z) {
|
|
6427
6427
|
var M, b, O, p, o, A, a, q, i;
|
|
6428
6428
|
this.clearTable(), this.positionGmt = (b = (M = z == null ? void 0 : z.weather) == null ? void 0 : M[0]) == null ? void 0 : b.timezone, this.positionOffset = (p = (O = z == null ? void 0 : z.weather) == null ? void 0 : O[0]) == null ? void 0 : p.offset, this.localDate = (A = (o = k0(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : A.format("MMM-DD/HHmm[LT]"), this.currentHourData = (a = S0.pickHourly(z, Y(this.ts))) == null ? void 0 : a[0], ((i = (q = this.currentHourData) == null ? void 0 : q.weather) == null ? void 0 : i.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
6429
|
-
var r,
|
|
6429
|
+
var r, d, n, m, L, s, h, R, w, x, X, _, V, $, z0, p0, q0, L0, h0, i0, l0, O0, R0, m0, f0, r0, s0, B0, d0, S, b0, t0, I;
|
|
6430
6430
|
if (!document.getElementById("meteoMainBox"))
|
|
6431
6431
|
return !1;
|
|
6432
6432
|
if (!this.currentHourData)
|
|
@@ -6435,7 +6435,7 @@ const gM = {
|
|
|
6435
6435
|
const W0 = k0(this.ts).tz(this.positionGmt).add(3 * M0, "h").format();
|
|
6436
6436
|
this.tableData.hours.push(W0);
|
|
6437
6437
|
const N = ((r = S0.pickHourly(z, W0)) == null ? void 0 : r[0]) || {};
|
|
6438
|
-
this.tableData.temp.push(this.roundPrecision((
|
|
6438
|
+
this.tableData.temp.push(this.roundPrecision((d = N == null ? void 0 : N.weather) == null ? void 0 : d.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((m = (n = N == null ? void 0 : N.weather) == null ? void 0 : n.precip) == null ? void 0 : m.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((s = (L = N == null ? void 0 : N.weather) == null ? void 0 : L.precip) == null ? void 0 : s.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((h = N == null ? void 0 : N.weather) == null ? void 0 : h.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((w = (R = N == null ? void 0 : N.weather) == null ? void 0 : R.wind) == null ? void 0 : w.kts, 1) ?? "-"), this.tableData.windDir.push((X = (x = N == null ? void 0 : N.weather) == null ? void 0 : x.wind) == null ? void 0 : X.bearing), this.tableData.windGust.push(this.roundPrecision((V = (_ = N == null ? void 0 : N.weather) == null ? void 0 : _.wind) == null ? void 0 : V.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((z0 = ($ = N == null ? void 0 : N.wave) == null ? void 0 : $.sig) == null ? void 0 : z0.height, 1) ?? "-"), this.tableData.sigwaveDir.push((q0 = (p0 = N == null ? void 0 : N.wave) == null ? void 0 : p0.sig) == null ? void 0 : q0.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((h0 = (L0 = N == null ? void 0 : N.wave) == null ? void 0 : L0.wd) == null ? void 0 : h0.height, 1) ?? "-"), this.tableData.windwaveDir.push((l0 = (i0 = N == null ? void 0 : N.wave) == null ? void 0 : i0.wd) == null ? void 0 : l0.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((R0 = (O0 = N == null ? void 0 : N.wave) == null ? void 0 : O0.wd) == null ? void 0 : R0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((f0 = (m0 = N == null ? void 0 : N.wave) == null ? void 0 : m0.swell) == null ? void 0 : f0.height, 1) ?? "-"), this.tableData.swellDir.push((s0 = (r0 = N == null ? void 0 : N.wave) == null ? void 0 : r0.swell) == null ? void 0 : s0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((d0 = (B0 = N == null ? void 0 : N.wave) == null ? void 0 : B0.swell) == null ? void 0 : d0.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((S = N == null ? void 0 : N.current) == null ? void 0 : S.speed, 1) ?? "-"), this.tableData.currentDir.push((b0 = N == null ? void 0 : N.current) == null ? void 0 : b0.bearing), this.tableData.seaLevel.push(this.roundPrecision(N == null ? void 0 : N.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(N == null ? void 0 : N.sst, 0) ?? "-"), this.tableData.weatherUrls.push((t0 = N == null ? void 0 : N.weather) == null ? void 0 : t0.url), this.tableData.weatherNames.push(((I = N == null ? void 0 : N.weather) == null ? void 0 : I.name) ?? "-");
|
|
6439
6439
|
}
|
|
6440
6440
|
});
|
|
6441
6441
|
},
|
|
@@ -6509,21 +6509,21 @@ const gM = {
|
|
|
6509
6509
|
this.$nextTick(() => {
|
|
6510
6510
|
var M;
|
|
6511
6511
|
const z = document.getElementById("point-meteo");
|
|
6512
|
-
this.point && (this.meteoMarker ? (M = this.meteoMarker) == null || M.setLngLat([this.point.lng, this.point.lat]) : this.meteoMarker = new
|
|
6512
|
+
this.point && (this.meteoMarker ? (M = this.meteoMarker) == null || M.setLngLat([this.point.lng, this.point.lat]) : this.meteoMarker = new v0.Marker(z).setLngLat([this.point.lng, this.point.lat]).addTo(this.map));
|
|
6513
6513
|
});
|
|
6514
6514
|
}
|
|
6515
6515
|
}
|
|
6516
6516
|
}, NM = {
|
|
6517
6517
|
id: "point-meteo",
|
|
6518
6518
|
class: "point-meteo"
|
|
6519
|
-
}, yM = { class: "meteo-box" }, XM = { class: "header-box flex-between" }, wM = { class: "flex-center" },
|
|
6519
|
+
}, yM = { class: "meteo-box" }, XM = { class: "header-box flex-between" }, wM = { class: "flex-center" }, CM = { class: "lnglat" }, vM = { class: "flex-center" }, TM = { class: "summary-row flex-between" }, EM = { class: "summary flex-center" }, xM = ["src"], IM = {
|
|
6520
6520
|
key: 1,
|
|
6521
6521
|
class: "icon flex-center",
|
|
6522
6522
|
style: { "margin-right": "5px" }
|
|
6523
6523
|
}, DM = { class: "temp" }, PM = { class: "des info" }, SM = { class: "flex-start" }, kM = { class: "flex-start" }, QM = { class: "flex-start" }, HM = { class: "date flex-col-center-end" }, _M = { class: "" }, jM = { class: "" }, FM = { class: "detail-box" }, GM = { class: "menu-header flex-start" }, UM = { class: "basic-table" }, KM = { class: "hour" }, JM = { class: "hour" }, YM = { class: "icon" }, VM = ["src"], ZM = { class: "text" }, $M = { class: "text" }, Mb = { class: "text" }, bb = { class: "text" }, zb = { class: "wave-current-table" }, pb = { class: "hour" }, Ob = { class: "hour" }, ob = { class: "text" }, cb = { class: "text" }, Ab = { class: "text" }, eb = { class: "text" }, tb = { class: "text" }, ab = {
|
|
6524
6524
|
class: "sea-table",
|
|
6525
6525
|
style: { height: "92px" }
|
|
6526
|
-
}, qb = { class: "hour" }, ib = { class: "hour" }, rb = { class: "text" }, nb = { class: "text" },
|
|
6526
|
+
}, qb = { class: "hour" }, ib = { class: "hour" }, rb = { class: "text" }, nb = { class: "text" }, sb = { key: 0 }, db = { class: "tide-table flex-col-start-center" }, Wb = { class: "tr-tide flex-space" }, lb = { class: "tr-tide flex-space" }, fb = { class: "tr-tide flex-space" }, ub = { style: { padding: "17px 10px 18px 10px" } }, Lb = { class: "flex-between" }, hb = {
|
|
6527
6527
|
class: "flex-space",
|
|
6528
6528
|
style: { flex: "1", "line-height": "30px" }
|
|
6529
6529
|
}, Rb = {
|
|
@@ -6541,10 +6541,10 @@ const gM = {
|
|
|
6541
6541
|
}, Xb = {
|
|
6542
6542
|
class: "flex-space",
|
|
6543
6543
|
style: { flex: "1", "padding-left": "30px" }
|
|
6544
|
-
}, wb = { class: "flex-between" },
|
|
6544
|
+
}, wb = { class: "flex-between" }, Cb = {
|
|
6545
6545
|
class: "flex-space",
|
|
6546
6546
|
style: { flex: "1", "line-height": "30px" }
|
|
6547
|
-
},
|
|
6547
|
+
}, vb = {
|
|
6548
6548
|
class: "flex-space",
|
|
6549
6549
|
style: { flex: "1", "padding-left": "30px" }
|
|
6550
6550
|
}, Tb = { class: "flex-between" }, Eb = {
|
|
@@ -6558,7 +6558,7 @@ const gM = {
|
|
|
6558
6558
|
class: "main-box flex-center"
|
|
6559
6559
|
};
|
|
6560
6560
|
function Db(z, M, b, O, p, o) {
|
|
6561
|
-
var i, e, r,
|
|
6561
|
+
var i, e, r, d, n, m, L, s, h, R, w, x, X, _, V, $, z0, p0, q0, L0, h0, i0, l0, O0, R0, m0, f0, r0, s0, B0, d0, S, b0, t0, I, M0, W0, N, y0, g0, t, f, u, B, v, D, K, k, j, E0, x0, I0, D0, P0, A0, G0, U0, K0, J0, Y0, V0, Z0, $0, M1, b1, z1, p1, O1;
|
|
6562
6562
|
const A = P("LocationFilled"), a = P("ElIcon"), q = P("ElTooltip");
|
|
6563
6563
|
return X0((W(), l("div", NM, [
|
|
6564
6564
|
c("div", yM, [
|
|
@@ -6570,9 +6570,9 @@ function Db(z, M, b, O, p, o) {
|
|
|
6570
6570
|
]),
|
|
6571
6571
|
_: 1
|
|
6572
6572
|
}),
|
|
6573
|
-
c("div",
|
|
6573
|
+
c("div", CM, y(o.computeLat((i = p.point) == null ? void 0 : i.lat)) + "," + y(o.computeLng((e = p.point) == null ? void 0 : e.lng)), 1)
|
|
6574
6574
|
]),
|
|
6575
|
-
c("div",
|
|
6575
|
+
c("div", vM, [
|
|
6576
6576
|
p.showTables ? (W(), l("div", {
|
|
6577
6577
|
key: 0,
|
|
6578
6578
|
class: "iconfont toggle",
|
|
@@ -6600,13 +6600,13 @@ function Db(z, M, b, O, p, o) {
|
|
|
6600
6600
|
E(q, {
|
|
6601
6601
|
placement: "top",
|
|
6602
6602
|
effect: "light",
|
|
6603
|
-
content: (
|
|
6603
|
+
content: (d = (r = p.currentHourData) == null ? void 0 : r.weather) == null ? void 0 : d.name,
|
|
6604
6604
|
"show-after": 1e3
|
|
6605
6605
|
}, {
|
|
6606
6606
|
default: u0(() => {
|
|
6607
|
-
var g,
|
|
6607
|
+
var g, C, o1, c1;
|
|
6608
6608
|
return [
|
|
6609
|
-
(
|
|
6609
|
+
(C = (g = p.currentHourData) == null ? void 0 : g.weather) != null && C.url ? (W(), l("img", {
|
|
6610
6610
|
key: 0,
|
|
6611
6611
|
class: "iconfont icon",
|
|
6612
6612
|
style: { "margin-right": "5px" },
|
|
@@ -6625,7 +6625,7 @@ function Db(z, M, b, O, p, o) {
|
|
|
6625
6625
|
c("div", PM, [
|
|
6626
6626
|
c("div", SM, [
|
|
6627
6627
|
M[9] || (M[9] = c("label", null, "Precip : ", -1)),
|
|
6628
|
-
c("span", null, y(o.roundPrecision((h = (
|
|
6628
|
+
c("span", null, y(o.roundPrecision((h = (s = (L = p.currentHourData) == null ? void 0 : L.weather) == null ? void 0 : s.precip) == null ? void 0 : h.sum, 0)) + " mm", 1)
|
|
6629
6629
|
]),
|
|
6630
6630
|
c("div", kM, [
|
|
6631
6631
|
M[10] || (M[10] = c("label", null, "Visibility : ", -1)),
|
|
@@ -6698,15 +6698,15 @@ function Db(z, M, b, O, p, o) {
|
|
|
6698
6698
|
colspan: "1",
|
|
6699
6699
|
class: "tr-title"
|
|
6700
6700
|
}, null, -1)),
|
|
6701
|
-
(W(!0), l(F, null, J(p.tableData.weatherUrls, (g,
|
|
6701
|
+
(W(!0), l(F, null, J(p.tableData.weatherUrls, (g, C) => (W(), l("th", {
|
|
6702
6702
|
rowspan: "1",
|
|
6703
6703
|
colspan: "1",
|
|
6704
|
-
key: `weatherUrls${
|
|
6704
|
+
key: `weatherUrls${C}${g}`
|
|
6705
6705
|
}, [
|
|
6706
6706
|
E(q, {
|
|
6707
6707
|
placement: "top",
|
|
6708
6708
|
effect: "light",
|
|
6709
|
-
content: p.tableData.weatherNames[
|
|
6709
|
+
content: p.tableData.weatherNames[C],
|
|
6710
6710
|
"show-after": 500
|
|
6711
6711
|
}, {
|
|
6712
6712
|
default: u0(() => [
|
|
@@ -6729,10 +6729,10 @@ function Db(z, M, b, O, p, o) {
|
|
|
6729
6729
|
c0("Temp"),
|
|
6730
6730
|
c("span", { class: "unit" }, "°C")
|
|
6731
6731
|
], -1)),
|
|
6732
|
-
(W(!0), l(F, null, J(p.tableData.temp, (g,
|
|
6732
|
+
(W(!0), l(F, null, J(p.tableData.temp, (g, C) => (W(), l("td", {
|
|
6733
6733
|
rowspan: "1",
|
|
6734
6734
|
colspan: "1",
|
|
6735
|
-
key: `weatherUrls${
|
|
6735
|
+
key: `weatherUrls${C}${g}`
|
|
6736
6736
|
}, y(g), 1))), 128))
|
|
6737
6737
|
]),
|
|
6738
6738
|
c("tr", $M, [
|
|
@@ -6744,10 +6744,10 @@ function Db(z, M, b, O, p, o) {
|
|
|
6744
6744
|
c0("Precip"),
|
|
6745
6745
|
c("span", { class: "unit" }, "mm")
|
|
6746
6746
|
], -1)),
|
|
6747
|
-
(W(!0), l(F, null, J(p.tableData.precip1h, (g,
|
|
6747
|
+
(W(!0), l(F, null, J(p.tableData.precip1h, (g, C) => (W(), l("td", {
|
|
6748
6748
|
rowspan: "1",
|
|
6749
6749
|
colspan: "1",
|
|
6750
|
-
key: `precip1h${
|
|
6750
|
+
key: `precip1h${C}${g}`
|
|
6751
6751
|
}, y(g), 1))), 128))
|
|
6752
6752
|
]),
|
|
6753
6753
|
c("tr", Mb, [
|
|
@@ -6759,10 +6759,10 @@ function Db(z, M, b, O, p, o) {
|
|
|
6759
6759
|
c0("Visibility"),
|
|
6760
6760
|
c("span", { class: "unit" }, "nm")
|
|
6761
6761
|
], -1)),
|
|
6762
|
-
(W(!0), l(F, null, J(p.tableData.visibility, (g,
|
|
6762
|
+
(W(!0), l(F, null, J(p.tableData.visibility, (g, C) => (W(), l("td", {
|
|
6763
6763
|
rowspan: "1",
|
|
6764
6764
|
colspan: "1",
|
|
6765
|
-
key: `visibility${
|
|
6765
|
+
key: `visibility${C}${g}`
|
|
6766
6766
|
}, y(g), 1))), 128))
|
|
6767
6767
|
]),
|
|
6768
6768
|
c("tr", bb, [
|
|
@@ -6774,15 +6774,15 @@ function Db(z, M, b, O, p, o) {
|
|
|
6774
6774
|
c0("Wind gust"),
|
|
6775
6775
|
c("span", { class: "unit" }, "kts")
|
|
6776
6776
|
], -1)),
|
|
6777
|
-
(W(!0), l(F, null, J(p.tableData.windGust, (g,
|
|
6777
|
+
(W(!0), l(F, null, J(p.tableData.windGust, (g, C) => (W(), l("td", {
|
|
6778
6778
|
rowspan: "1",
|
|
6779
6779
|
colspan: "1",
|
|
6780
|
-
key: `windGust${
|
|
6780
|
+
key: `windGust${C}${g}`
|
|
6781
6781
|
}, [
|
|
6782
|
-
isNaN(p.tableData.windDir[
|
|
6782
|
+
isNaN(p.tableData.windDir[C]) ? U("", !0) : (W(), l("span", {
|
|
6783
6783
|
key: 0,
|
|
6784
6784
|
class: "iconfont icon blue",
|
|
6785
|
-
style: e0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[
|
|
6785
|
+
style: e0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[C]}deg)` })
|
|
6786
6786
|
}, "", 4)),
|
|
6787
6787
|
c("span", null, y(g), 1)
|
|
6788
6788
|
]))), 128))
|
|
@@ -6800,10 +6800,10 @@ function Db(z, M, b, O, p, o) {
|
|
|
6800
6800
|
c0("Hours"),
|
|
6801
6801
|
c("span", { class: "unit" }, "(LT)")
|
|
6802
6802
|
], -1)),
|
|
6803
|
-
(W(!0), l(F, null, J(p.tableData.hours, (g,
|
|
6803
|
+
(W(!0), l(F, null, J(p.tableData.hours, (g, C) => (W(), l("th", {
|
|
6804
6804
|
rowspan: "1",
|
|
6805
6805
|
colspan: "1",
|
|
6806
|
-
key: `currenthoursL${
|
|
6806
|
+
key: `currenthoursL${C}${g}`
|
|
6807
6807
|
}, y(o.computeHourL(g)), 1))), 128))
|
|
6808
6808
|
]),
|
|
6809
6809
|
c("tr", Ob, [
|
|
@@ -6815,10 +6815,10 @@ function Db(z, M, b, O, p, o) {
|
|
|
6815
6815
|
c0("UTC"),
|
|
6816
6816
|
c("span", { class: "unit" })
|
|
6817
6817
|
], -1)),
|
|
6818
|
-
(W(!0), l(F, null, J(p.tableData.hours, (g,
|
|
6818
|
+
(W(!0), l(F, null, J(p.tableData.hours, (g, C) => (W(), l("th", {
|
|
6819
6819
|
rowspan: "1",
|
|
6820
6820
|
colspan: "1",
|
|
6821
|
-
key: `currenthoursZ${
|
|
6821
|
+
key: `currenthoursZ${C}${g}`
|
|
6822
6822
|
}, y(o.computeHourZ(g)), 1))), 128))
|
|
6823
6823
|
]),
|
|
6824
6824
|
c("tr", ob, [
|
|
@@ -6830,15 +6830,15 @@ function Db(z, M, b, O, p, o) {
|
|
|
6830
6830
|
c0("Wind"),
|
|
6831
6831
|
c("span", { class: "unit" }, "kts")
|
|
6832
6832
|
], -1)),
|
|
6833
|
-
(W(!0), l(F, null, J(p.tableData.windSpeed, (g,
|
|
6833
|
+
(W(!0), l(F, null, J(p.tableData.windSpeed, (g, C) => (W(), l("td", {
|
|
6834
6834
|
rowspan: "1",
|
|
6835
6835
|
colspan: "1",
|
|
6836
|
-
key: `windSpeed${
|
|
6836
|
+
key: `windSpeed${C}${g}`
|
|
6837
6837
|
}, [
|
|
6838
|
-
isNaN(p.tableData.windDir[
|
|
6838
|
+
isNaN(p.tableData.windDir[C]) ? U("", !0) : (W(), l("span", {
|
|
6839
6839
|
key: 0,
|
|
6840
6840
|
class: "iconfont icon wind",
|
|
6841
|
-
style: e0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[
|
|
6841
|
+
style: e0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[C]}deg)` })
|
|
6842
6842
|
}, "", 4)),
|
|
6843
6843
|
c("span", null, y(g), 1)
|
|
6844
6844
|
]))), 128))
|
|
@@ -6852,15 +6852,15 @@ function Db(z, M, b, O, p, o) {
|
|
|
6852
6852
|
c0("Sig Wave"),
|
|
6853
6853
|
c("span", { class: "unit" }, "m")
|
|
6854
6854
|
], -1)),
|
|
6855
|
-
(W(!0), l(F, null, J(p.tableData.sigwaveHeight, (g,
|
|
6855
|
+
(W(!0), l(F, null, J(p.tableData.sigwaveHeight, (g, C) => (W(), l("td", {
|
|
6856
6856
|
rowspan: "1",
|
|
6857
6857
|
colspan: "1",
|
|
6858
|
-
key: `sigwaveHeight${
|
|
6858
|
+
key: `sigwaveHeight${C}${g}`
|
|
6859
6859
|
}, [
|
|
6860
|
-
isNaN(p.tableData.sigwaveDir[
|
|
6860
|
+
isNaN(p.tableData.sigwaveDir[C]) ? U("", !0) : (W(), l("span", {
|
|
6861
6861
|
key: 0,
|
|
6862
6862
|
class: "iconfont icon sigwave",
|
|
6863
|
-
style: e0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[
|
|
6863
|
+
style: e0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[C]}deg)` })
|
|
6864
6864
|
}, "", 4)),
|
|
6865
6865
|
c("span", null, y(g), 1)
|
|
6866
6866
|
]))), 128))
|
|
@@ -6874,15 +6874,15 @@ function Db(z, M, b, O, p, o) {
|
|
|
6874
6874
|
c0("Wind Wave"),
|
|
6875
6875
|
c("span", { class: "unit" }, "m")
|
|
6876
6876
|
], -1)),
|
|
6877
|
-
(W(!0), l(F, null, J(p.tableData.windwaveHeight, (g,
|
|
6877
|
+
(W(!0), l(F, null, J(p.tableData.windwaveHeight, (g, C) => (W(), l("td", {
|
|
6878
6878
|
rowspan: "1",
|
|
6879
6879
|
colspan: "1",
|
|
6880
|
-
key: `windwaveHeight${
|
|
6880
|
+
key: `windwaveHeight${C}${g}`
|
|
6881
6881
|
}, [
|
|
6882
|
-
isNaN(p.tableData.sigwaveDir[
|
|
6882
|
+
isNaN(p.tableData.sigwaveDir[C]) ? U("", !0) : (W(), l("span", {
|
|
6883
6883
|
key: 0,
|
|
6884
6884
|
class: "iconfont icon windwave",
|
|
6885
|
-
style: e0({ display: "inline-block", transform: `rotate(${p.tableData.windwaveDir[
|
|
6885
|
+
style: e0({ display: "inline-block", transform: `rotate(${p.tableData.windwaveDir[C]}deg)` })
|
|
6886
6886
|
}, "", 4)),
|
|
6887
6887
|
c("span", null, y(g), 1)
|
|
6888
6888
|
]))), 128))
|
|
@@ -6896,15 +6896,15 @@ function Db(z, M, b, O, p, o) {
|
|
|
6896
6896
|
c0("Swell"),
|
|
6897
6897
|
c("span", { class: "unit" }, "m")
|
|
6898
6898
|
], -1)),
|
|
6899
|
-
(W(!0), l(F, null, J(p.tableData.swellHeight, (g,
|
|
6899
|
+
(W(!0), l(F, null, J(p.tableData.swellHeight, (g, C) => (W(), l("td", {
|
|
6900
6900
|
rowspan: "1",
|
|
6901
6901
|
colspan: "1",
|
|
6902
|
-
key: `swellHeight${
|
|
6902
|
+
key: `swellHeight${C}${g}`
|
|
6903
6903
|
}, [
|
|
6904
|
-
isNaN(p.tableData.swellDir[
|
|
6904
|
+
isNaN(p.tableData.swellDir[C]) ? U("", !0) : (W(), l("span", {
|
|
6905
6905
|
key: 0,
|
|
6906
6906
|
class: "iconfont icon swell",
|
|
6907
|
-
style: e0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[
|
|
6907
|
+
style: e0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[C]}deg)` })
|
|
6908
6908
|
}, "", 4)),
|
|
6909
6909
|
c("span", null, y(g), 1)
|
|
6910
6910
|
]))), 128))
|
|
@@ -6918,16 +6918,16 @@ function Db(z, M, b, O, p, o) {
|
|
|
6918
6918
|
c0("Current"),
|
|
6919
6919
|
c("span", { class: "unit" }, "kts")
|
|
6920
6920
|
], -1)),
|
|
6921
|
-
(W(!0), l(F, null, J(p.tableData.currentSpeed, (g,
|
|
6921
|
+
(W(!0), l(F, null, J(p.tableData.currentSpeed, (g, C) => (W(), l("td", {
|
|
6922
6922
|
rowspan: "1",
|
|
6923
6923
|
colspan: "1",
|
|
6924
|
-
key: `currentSpeed${
|
|
6924
|
+
key: `currentSpeed${C}${g}`
|
|
6925
6925
|
}, [
|
|
6926
|
-
isNaN(p.tableData.currentDir[
|
|
6926
|
+
isNaN(p.tableData.currentDir[C]) ? U("", !0) : (W(), l("span", {
|
|
6927
6927
|
key: 0,
|
|
6928
6928
|
class: "iconfont icon current",
|
|
6929
6929
|
id: "meteoGrayIcon",
|
|
6930
|
-
style: e0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[
|
|
6930
|
+
style: e0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[C]}deg)` })
|
|
6931
6931
|
}, "", 4)),
|
|
6932
6932
|
c("span", null, y(g), 1)
|
|
6933
6933
|
]))), 128))
|
|
@@ -6945,10 +6945,10 @@ function Db(z, M, b, O, p, o) {
|
|
|
6945
6945
|
c0("Hours"),
|
|
6946
6946
|
c("span", { class: "unit" }, "(LT)")
|
|
6947
6947
|
], -1)),
|
|
6948
|
-
(W(!0), l(F, null, J(p.tableData.hours, (g,
|
|
6948
|
+
(W(!0), l(F, null, J(p.tableData.hours, (g, C) => (W(), l("th", {
|
|
6949
6949
|
rowspan: "1",
|
|
6950
6950
|
colspan: "1",
|
|
6951
|
-
key: `seahoursL${
|
|
6951
|
+
key: `seahoursL${C}${g}`
|
|
6952
6952
|
}, y(o.computeHourL(g)), 1))), 128))
|
|
6953
6953
|
]),
|
|
6954
6954
|
c("tr", ib, [
|
|
@@ -6960,10 +6960,10 @@ function Db(z, M, b, O, p, o) {
|
|
|
6960
6960
|
c0("UTC"),
|
|
6961
6961
|
c("span", { class: "unit" })
|
|
6962
6962
|
], -1)),
|
|
6963
|
-
(W(!0), l(F, null, J(p.tableData.hours, (g,
|
|
6963
|
+
(W(!0), l(F, null, J(p.tableData.hours, (g, C) => (W(), l("th", {
|
|
6964
6964
|
rowspan: "1",
|
|
6965
6965
|
colspan: "1",
|
|
6966
|
-
key: `seahoursZ${
|
|
6966
|
+
key: `seahoursZ${C}${g}`
|
|
6967
6967
|
}, y(o.computeHourZ(g)), 1))), 128))
|
|
6968
6968
|
]),
|
|
6969
6969
|
c("tr", rb, [
|
|
@@ -6975,10 +6975,10 @@ function Db(z, M, b, O, p, o) {
|
|
|
6975
6975
|
c0("SeaLevel"),
|
|
6976
6976
|
c("span", { class: "unit" }, "m")
|
|
6977
6977
|
], -1)),
|
|
6978
|
-
(W(!0), l(F, null, J(p.tableData.seaLevel, (g,
|
|
6978
|
+
(W(!0), l(F, null, J(p.tableData.seaLevel, (g, C) => (W(), l("td", {
|
|
6979
6979
|
rowspan: "1",
|
|
6980
6980
|
colspan: "1",
|
|
6981
|
-
key: `SeaLevel${
|
|
6981
|
+
key: `SeaLevel${C}${g}`
|
|
6982
6982
|
}, y(g), 1))), 128))
|
|
6983
6983
|
]),
|
|
6984
6984
|
c("tr", nb, [
|
|
@@ -6990,38 +6990,38 @@ function Db(z, M, b, O, p, o) {
|
|
|
6990
6990
|
c0("SeaTemp"),
|
|
6991
6991
|
c("span", { class: "unit" }, "°C")
|
|
6992
6992
|
], -1)),
|
|
6993
|
-
(W(!0), l(F, null, J(p.tableData.seaTemp, (g,
|
|
6993
|
+
(W(!0), l(F, null, J(p.tableData.seaTemp, (g, C) => (W(), l("td", {
|
|
6994
6994
|
rowspan: "1",
|
|
6995
6995
|
colspan: "1",
|
|
6996
|
-
key: `SeaTemp${
|
|
6996
|
+
key: `SeaTemp${C}${g}`
|
|
6997
6997
|
}, y(g), 1))), 128))
|
|
6998
6998
|
])
|
|
6999
6999
|
], 512), [
|
|
7000
7000
|
[w0, p.activeIndex === 3]
|
|
7001
7001
|
]),
|
|
7002
|
-
p.activeIndex === 3 ? (W(), l("div",
|
|
7003
|
-
c("p", { style: { "font-size": "12px", padding: "12px 20px 0 20px", "line-height": "16px"
|
|
7002
|
+
p.activeIndex === 3 ? (W(), l("div", sb, M[30] || (M[30] = [
|
|
7003
|
+
c("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)
|
|
7004
7004
|
]))) : U("", !0),
|
|
7005
|
-
X0(c("table",
|
|
7005
|
+
X0(c("table", db, [
|
|
7006
7006
|
c("tr", Wb, [
|
|
7007
|
-
(W(!0), l(F, null, J(p.tideTableData, (g,
|
|
7007
|
+
(W(!0), l(F, null, J(p.tideTableData, (g, C) => (W(), l("th", {
|
|
7008
7008
|
rowspan: "1",
|
|
7009
7009
|
colspan: "1",
|
|
7010
|
-
key: `Tide-tr-${
|
|
7010
|
+
key: `Tide-tr-${C}${g}`
|
|
7011
7011
|
}, y(g.type) + " Tide", 1))), 128))
|
|
7012
7012
|
]),
|
|
7013
7013
|
c("tr", lb, [
|
|
7014
|
-
(W(!0), l(F, null, J(p.tideTableData, (g,
|
|
7014
|
+
(W(!0), l(F, null, J(p.tideTableData, (g, C) => (W(), l("td", {
|
|
7015
7015
|
rowspan: "1",
|
|
7016
7016
|
colspan: "1",
|
|
7017
|
-
key: `Tide-date-${
|
|
7017
|
+
key: `Tide-date-${C}${g}`
|
|
7018
7018
|
}, y(o.computeHourHmmLT(g == null ? void 0 : g.date)), 1))), 128))
|
|
7019
7019
|
]),
|
|
7020
7020
|
c("tr", fb, [
|
|
7021
|
-
(W(!0), l(F, null, J(p.tideTableData, (g,
|
|
7021
|
+
(W(!0), l(F, null, J(p.tideTableData, (g, C) => (W(), l("td", {
|
|
7022
7022
|
rowspan: "1",
|
|
7023
7023
|
colspan: "1",
|
|
7024
|
-
key: `Tide-height-${
|
|
7024
|
+
key: `Tide-height-${C}${g}`
|
|
7025
7025
|
}, y(o.roundPrecision(g == null ? void 0 : g.height, 2)) + " m", 1))), 128))
|
|
7026
7026
|
]),
|
|
7027
7027
|
M[31] || (M[31] = c("tr", { class: "tr-tide flex-center info" }, [
|
|
@@ -7041,13 +7041,13 @@ function Db(z, M, b, O, p, o) {
|
|
|
7041
7041
|
]),
|
|
7042
7042
|
c("div", Rb, [
|
|
7043
7043
|
M[33] || (M[33] = c("div", null, "Sig wave", -1)),
|
|
7044
|
-
c("div", null, y((
|
|
7044
|
+
c("div", null, y((d0 = (B0 = (s0 = p.currentHourData) == null ? void 0 : s0.wave) == null ? void 0 : B0.sig) == null ? void 0 : d0.direction) + "/" + y(o.roundPrecision((t0 = (b0 = (S = p.currentHourData) == null ? void 0 : S.wave) == null ? void 0 : b0.sig) == null ? void 0 : t0.height, 1)) + "m/" + y(o.roundPrecision((W0 = (M0 = (I = p.currentHourData) == null ? void 0 : I.wave) == null ? void 0 : M0.sig) == null ? void 0 : W0.period, 1)) + "s", 1)
|
|
7045
7045
|
])
|
|
7046
7046
|
]),
|
|
7047
7047
|
c("div", mb, [
|
|
7048
7048
|
c("div", Bb, [
|
|
7049
7049
|
M[34] || (M[34] = c("div", null, "Wind wave", -1)),
|
|
7050
|
-
c("div", null, y((g0 = (y0 = (N = p.currentHourData) == null ? void 0 : N.wave) == null ? void 0 : y0.wd) == null ? void 0 : g0.direction) + "/" + y(o.roundPrecision((u = (f = (t = p.currentHourData) == null ? void 0 : t.wave) == null ? void 0 : f.wd) == null ? void 0 : u.height, 1)) + "m/" + y(o.roundPrecision((D = (
|
|
7050
|
+
c("div", null, y((g0 = (y0 = (N = p.currentHourData) == null ? void 0 : N.wave) == null ? void 0 : y0.wd) == null ? void 0 : g0.direction) + "/" + y(o.roundPrecision((u = (f = (t = p.currentHourData) == null ? void 0 : t.wave) == null ? void 0 : f.wd) == null ? void 0 : u.height, 1)) + "m/" + y(o.roundPrecision((D = (v = (B = p.currentHourData) == null ? void 0 : B.wave) == null ? void 0 : v.wd) == null ? void 0 : D.period, 1)) + "s", 1)
|
|
7051
7051
|
]),
|
|
7052
7052
|
c("div", gb, [
|
|
7053
7053
|
M[35] || (M[35] = c("div", null, "Swell", -1)),
|
|
@@ -7065,11 +7065,11 @@ function Db(z, M, b, O, p, o) {
|
|
|
7065
7065
|
])
|
|
7066
7066
|
]),
|
|
7067
7067
|
c("div", wb, [
|
|
7068
|
-
c("div",
|
|
7068
|
+
c("div", Cb, [
|
|
7069
7069
|
M[38] || (M[38] = c("div", null, "Sea Temp", -1)),
|
|
7070
7070
|
c("div", null, y(o.roundPrecision((V0 = p.currentHourData) == null ? void 0 : V0.sst, 1)) + "°C", 1)
|
|
7071
7071
|
]),
|
|
7072
|
-
c("div",
|
|
7072
|
+
c("div", vb, [
|
|
7073
7073
|
M[39] || (M[39] = c("div", null, "Visibility", -1)),
|
|
7074
7074
|
c("div", null, y(o.roundPrecision(($0 = (Z0 = p.currentHourData) == null ? void 0 : Z0.weather) == null ? void 0 : $0.visibility, 1)) + "nm", 1)
|
|
7075
7075
|
])
|
|
@@ -7097,7 +7097,7 @@ function Db(z, M, b, O, p, o) {
|
|
|
7097
7097
|
[w0, p.showMeteo]
|
|
7098
7098
|
]);
|
|
7099
7099
|
}
|
|
7100
|
-
const Pb = /* @__PURE__ */ Q(gM, [["render", Db], ["__scopeId", "data-v-
|
|
7100
|
+
const Pb = /* @__PURE__ */ Q(gM, [["render", Db], ["__scopeId", "data-v-b8112e5f"]]), Sb = {
|
|
7101
7101
|
name: "IdmWarZone",
|
|
7102
7102
|
props: {
|
|
7103
7103
|
map: {
|
|
@@ -7448,7 +7448,7 @@ const Kb = {
|
|
|
7448
7448
|
if (b) {
|
|
7449
7449
|
this.showZone = !0, this.form = { ...b.properties };
|
|
7450
7450
|
const p = document.getElementById("idm-gl3-zone-info");
|
|
7451
|
-
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new
|
|
7451
|
+
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new v0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
|
|
7452
7452
|
}
|
|
7453
7453
|
},
|
|
7454
7454
|
handleRender() {
|
|
@@ -7608,7 +7608,7 @@ const $b = {
|
|
|
7608
7608
|
if (b) {
|
|
7609
7609
|
this.showPort = !0, this.form = { ...b.properties }, this.form.lng = b.geometry.coordinates[0], this.form.lat = b.geometry.coordinates[1];
|
|
7610
7610
|
const p = document.getElementById("port-info");
|
|
7611
|
-
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new
|
|
7611
|
+
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new v0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
7612
7612
|
}
|
|
7613
7613
|
},
|
|
7614
7614
|
handleRender() {
|
|
@@ -7928,7 +7928,7 @@ const qz = /* @__PURE__ */ Q(tz, [["render", az]]), iz = {
|
|
|
7928
7928
|
function rz(z, M, b, O, p, o) {
|
|
7929
7929
|
return W(), l("div");
|
|
7930
7930
|
}
|
|
7931
|
-
const nz = /* @__PURE__ */ Q(iz, [["render", rz]]),
|
|
7931
|
+
const nz = /* @__PURE__ */ Q(iz, [["render", rz]]), sz = {
|
|
7932
7932
|
name: "IdmVoluntaryReportingArea",
|
|
7933
7933
|
props: {
|
|
7934
7934
|
map: {
|
|
@@ -8016,10 +8016,10 @@ const nz = /* @__PURE__ */ Q(iz, [["render", rz]]), dz = {
|
|
|
8016
8016
|
}
|
|
8017
8017
|
}
|
|
8018
8018
|
};
|
|
8019
|
-
function
|
|
8019
|
+
function dz(z, M, b, O, p, o) {
|
|
8020
8020
|
return W(), l("div");
|
|
8021
8021
|
}
|
|
8022
|
-
const Wz = /* @__PURE__ */ Q(
|
|
8022
|
+
const Wz = /* @__PURE__ */ Q(sz, [["render", dz]]), lz = {
|
|
8023
8023
|
name: "IdmSpecialArea",
|
|
8024
8024
|
props: {
|
|
8025
8025
|
map: {
|
|
@@ -8401,21 +8401,21 @@ const q1 = /* @__PURE__ */ Q(mz, [["render", Bz], ["__scopeId", "data-v-ad66a24c
|
|
|
8401
8401
|
var b, O, p, o, A, a, q, i, e, r;
|
|
8402
8402
|
const M = (O = (b = z.target) == null ? void 0 : b._element) == null ? void 0 : O.id;
|
|
8403
8403
|
if ((M == null ? void 0 : M.split("-").length) === 2) {
|
|
8404
|
-
const
|
|
8405
|
-
this.pointMarkers[
|
|
8404
|
+
const d = this.geojson.filter((s) => s.id === M.split("-")[0])[0];
|
|
8405
|
+
this.pointMarkers[d.id].filter((s) => {
|
|
8406
8406
|
var h;
|
|
8407
|
-
return ((h =
|
|
8407
|
+
return ((h = s._element) == null ? void 0 : h.id) === M;
|
|
8408
8408
|
})[0].setLngLat([(o = (p = z.target) == null ? void 0 : p._lngLat) == null ? void 0 : o.lng, (a = (A = z.target) == null ? void 0 : A._lngLat) == null ? void 0 : a.lat]);
|
|
8409
8409
|
let m;
|
|
8410
|
-
|
|
8411
|
-
if (
|
|
8410
|
+
d.features.forEach((s, h) => {
|
|
8411
|
+
if (s.geometry.type === "Point" && s.properties.id == M.split("-")[1]) {
|
|
8412
8412
|
m = h;
|
|
8413
8413
|
return;
|
|
8414
8414
|
}
|
|
8415
8415
|
});
|
|
8416
|
-
const L =
|
|
8416
|
+
const L = d.features.filter((s) => s.geometry.type === "Point");
|
|
8417
8417
|
this.handleTmpPointUpdate(
|
|
8418
|
-
|
|
8418
|
+
d,
|
|
8419
8419
|
L[m - 1],
|
|
8420
8420
|
{ lng: (i = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : i.lng, lat: (r = (e = z.target) == null ? void 0 : e._lngLat) == null ? void 0 : r.lat, properties: L[m].properties },
|
|
8421
8421
|
m === L.length - 1 ? void 0 : L[m + 1]
|
|
@@ -8426,13 +8426,13 @@ const q1 = /* @__PURE__ */ Q(mz, [["render", Bz], ["__scopeId", "data-v-ad66a24c
|
|
|
8426
8426
|
var b, O, p, o, A, a, q, i, e, r;
|
|
8427
8427
|
const M = (O = (b = z.target) == null ? void 0 : b._element) == null ? void 0 : O.id;
|
|
8428
8428
|
if ((M == null ? void 0 : M.split("-").length) === 2) {
|
|
8429
|
-
const
|
|
8430
|
-
this.pointMarkers[
|
|
8431
|
-
var
|
|
8432
|
-
return ((
|
|
8429
|
+
const d = this.geojson.filter((L) => L.id === M.split("-")[0])[0];
|
|
8430
|
+
this.pointMarkers[d.id].filter((L) => {
|
|
8431
|
+
var s;
|
|
8432
|
+
return ((s = L._element) == null ? void 0 : s.id) === M;
|
|
8433
8433
|
})[0].setLngLat([(o = (p = z.target) == null ? void 0 : p._lngLat) == null ? void 0 : o.lng, (a = (A = z.target) == null ? void 0 : A._lngLat) == null ? void 0 : a.lat]);
|
|
8434
|
-
const m =
|
|
8435
|
-
m.geometry.coordinates = [(i = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : i.lng, (r = (e = z.target) == null ? void 0 : e._lngLat) == null ? void 0 : r.lat],
|
|
8434
|
+
const m = d.features.filter((L) => L.geometry.type === "Point" && L.properties.id == M.split("-")[1])[0];
|
|
8435
|
+
m.geometry.coordinates = [(i = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : i.lng, (r = (e = z.target) == null ? void 0 : e._lngLat) == null ? void 0 : r.lat], d.features = d.features.filter((L) => L.geometry.type === "Point"), this.handlePointUpdate(d);
|
|
8436
8436
|
}
|
|
8437
8437
|
},
|
|
8438
8438
|
handleContextmenu(z) {
|
|
@@ -8443,7 +8443,7 @@ const q1 = /* @__PURE__ */ Q(mz, [["render", Bz], ["__scopeId", "data-v-ad66a24c
|
|
|
8443
8443
|
const a = this.geojson.filter((q) => q.id === M.split("-")[0])[0].features.filter((q) => q.geometry.type === "Point");
|
|
8444
8444
|
if (a.length > 2 && a.filter((i) => i.properties.id === (M == null ? void 0 : M.split("-")[1]))[0]) {
|
|
8445
8445
|
const i = document.createElement("div");
|
|
8446
|
-
i.className = "point-contextmenu-marker", i.innerHTML = `<span id="del-${M}" class="del-point">Del</span>`, this.contextmenu = new
|
|
8446
|
+
i.className = "point-contextmenu-marker", i.innerHTML = `<span id="del-${M}" class="del-point">Del</span>`, this.contextmenu = new v0.Marker(i).setOffset([24, 0]).setLngLat([z.lngLat.lng, z.lngLat.lat]).addTo(this.map);
|
|
8447
8447
|
}
|
|
8448
8448
|
}
|
|
8449
8449
|
},
|
|
@@ -8479,11 +8479,11 @@ const q1 = /* @__PURE__ */ Q(mz, [["render", Bz], ["__scopeId", "data-v-ad66a24c
|
|
|
8479
8479
|
let b = 0;
|
|
8480
8480
|
const O = [];
|
|
8481
8481
|
for (let p = 1; p < M.length; p++) {
|
|
8482
|
-
const o = M[p - 1], A = M[p], a = o.properties, q = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, i = { lng: A.geometry.coordinates[0], lat: A.geometry.coordinates[1] }, e =
|
|
8482
|
+
const o = M[p - 1], A = M[p], a = o.properties, q = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, i = { lng: A.geometry.coordinates[0], lat: A.geometry.coordinates[1] }, e = C0.calculateDistance(q, i, a.mode === "RL", 2), r = C0.calculateBearing(q, i, a.mode === "RL", 2);
|
|
8483
8483
|
b = o0.roundPrecision(b + e, 2);
|
|
8484
|
-
let
|
|
8485
|
-
a.mode === "RL" ?
|
|
8486
|
-
const n = T.lineString(
|
|
8484
|
+
let d;
|
|
8485
|
+
a.mode === "RL" ? d = o0.convertToMonotonicLng([q, i]) : d = o0.convertToMonotonicLng(C0.interpolateCoordinates(q, i, 200));
|
|
8486
|
+
const n = T.lineString(d.map((m) => [m.lng, m.lat]));
|
|
8487
8487
|
n.properties.dist = e, n.properties.bearing = r, n.properties.total = b, O.push(n);
|
|
8488
8488
|
}
|
|
8489
8489
|
M.push(...O), z.total = b;
|
|
@@ -8495,19 +8495,19 @@ const q1 = /* @__PURE__ */ Q(mz, [["render", Bz], ["__scopeId", "data-v-ad66a24c
|
|
|
8495
8495
|
let o, A;
|
|
8496
8496
|
if (M) {
|
|
8497
8497
|
const q = M.properties, i = { lng: M.geometry.coordinates[0], lat: M.geometry.coordinates[1] }, e = { lng: b.lng, lat: b.lat };
|
|
8498
|
-
o =
|
|
8498
|
+
o = C0.calculateDistance(i, e, q.mode === "RL", 2), A = C0.calculateBearing(i, e, q.mode === "RL", 2);
|
|
8499
8499
|
let r;
|
|
8500
|
-
q.mode === "RL" ? r = o0.convertToMonotonicLng([i, e]) : r = o0.convertToMonotonicLng(
|
|
8501
|
-
const
|
|
8502
|
-
|
|
8500
|
+
q.mode === "RL" ? r = o0.convertToMonotonicLng([i, e]) : r = o0.convertToMonotonicLng(C0.interpolateCoordinates(i, e, 200));
|
|
8501
|
+
const d = T.lineString(r.map((n) => [n.lng, n.lat]));
|
|
8502
|
+
d.properties.dist = o, d.properties.bearing = A, p.features.push(d);
|
|
8503
8503
|
}
|
|
8504
8504
|
if (O) {
|
|
8505
8505
|
const q = b.properties, i = b, e = { lng: O.geometry.coordinates[0], lat: O.geometry.coordinates[1] };
|
|
8506
|
-
o =
|
|
8506
|
+
o = C0.calculateDistance(i, e, q.mode === "RL", 2), A = C0.calculateBearing(i, e, q.mode === "RL", 2);
|
|
8507
8507
|
let r;
|
|
8508
|
-
q.mode === "RL" ? r = o0.convertToMonotonicLng([i, e]) : r = o0.convertToMonotonicLng(
|
|
8509
|
-
const
|
|
8510
|
-
|
|
8508
|
+
q.mode === "RL" ? r = o0.convertToMonotonicLng([i, e]) : r = o0.convertToMonotonicLng(C0.interpolateCoordinates(i, e, 200));
|
|
8509
|
+
const d = T.lineString(r.map((n) => [n.lng, n.lat]));
|
|
8510
|
+
d.properties.dist = o, d.properties.bearing = A, p.features.push(d);
|
|
8511
8511
|
}
|
|
8512
8512
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(p) : this.map.addSource(this.tmpSource, {
|
|
8513
8513
|
type: "geojson",
|
|
@@ -8551,7 +8551,7 @@ const q1 = /* @__PURE__ */ Q(mz, [["render", Bz], ["__scopeId", "data-v-ad66a24c
|
|
|
8551
8551
|
this.tipMarker._element.innerHTML = a, this.tipMarker.setLngLat([b.lng, b.lat]);
|
|
8552
8552
|
else {
|
|
8553
8553
|
const q = document.createElement("div");
|
|
8554
|
-
q.className = "tip-marker", q.innerHTML = a, this.tipMarker = new
|
|
8554
|
+
q.className = "tip-marker", q.innerHTML = a, this.tipMarker = new v0.Marker(q).setOffset([140, 0]).setLngLat([b.lng, b.lat]).addTo(this.map);
|
|
8555
8555
|
}
|
|
8556
8556
|
},
|
|
8557
8557
|
handleMove(z) {
|
|
@@ -8609,21 +8609,21 @@ const q1 = /* @__PURE__ */ Q(mz, [["render", Bz], ["__scopeId", "data-v-ad66a24c
|
|
|
8609
8609
|
for (const A of o) {
|
|
8610
8610
|
const a = document.createElement("div");
|
|
8611
8611
|
a.id = `${z.id}-${A.properties.id}`, a.className = `${z.closed ? "point-marker closed" : "point-marker"}`, a.innerHTML = '<div class="marker-circle"></div>';
|
|
8612
|
-
const q = new
|
|
8612
|
+
const q = new v0.Marker({ element: a, draggable: !0, contextmenu: !0 }).setLngLat(A.geometry.coordinates).addTo(this.map);
|
|
8613
8613
|
q.on("drag", this.handleDrag), q.on("dragend", this.handleDragEnd), this.pointMarkers[z.id] ? this.pointMarkers[z.id].push(q) : this.pointMarkers[z.id] = [q];
|
|
8614
8614
|
}
|
|
8615
8615
|
if (z.closed) {
|
|
8616
8616
|
const A = o.at(-1), q = z.features.filter((e) => e.geometry.type === "LineString").at(-1), i = document.createElement("div");
|
|
8617
|
-
i.className = "point-summary-marker", i.innerHTML = `<div id="${z.id}" class="marker-close">×</div><div class="marker-label">Tol: ${q.properties.total}nm</div>`, this.closeMarkers[z.id] = new
|
|
8617
|
+
i.className = "point-summary-marker", i.innerHTML = `<div id="${z.id}" class="marker-close">×</div><div class="marker-label">Tol: ${q.properties.total}nm</div>`, this.closeMarkers[z.id] = new v0.Marker(i).setOffset([60, 0]).setLngLat(A.geometry.coordinates).addTo(this.map);
|
|
8618
8618
|
}
|
|
8619
8619
|
}
|
|
8620
8620
|
},
|
|
8621
8621
|
handleClear(z, M = !0) {
|
|
8622
|
-
var o, A, a, q, i, e, r,
|
|
8622
|
+
var o, A, a, q, i, e, r, d, n;
|
|
8623
8623
|
const b = `${z.id}-${this.source}`, O = `${z.id}-${this.layer}`, p = `${z.id}-${this.labelLayer}`;
|
|
8624
8624
|
(o = this.map) != null && o.getLayer(O) && this.map.removeLayer(O), (A = this.map) != null && A.getLayer(p) && this.map.removeLayer(p), (a = this.map) != null && a.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (q = this.map) != null && q.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (i = this.closeMarkers[z.id]) == null || i.remove(), this.closeMarkers[z.id] = void 0, (e = this.pointMarkers[z.id]) == null || e.forEach((m) => {
|
|
8625
8625
|
m == null || m.remove();
|
|
8626
|
-
}), this.pointMarkers[z.id] = [], (r = this.tipMarker) == null || r.remove(), this.tipMarker = void 0, M && ((
|
|
8626
|
+
}), this.pointMarkers[z.id] = [], (r = this.tipMarker) == null || r.remove(), this.tipMarker = void 0, M && ((d = this.map) != null && d.getSource(b)) && this.map.removeSource(b), M && ((n = this.map) != null && n.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
8627
8627
|
}
|
|
8628
8628
|
}
|
|
8629
8629
|
};
|
|
@@ -8683,15 +8683,15 @@ const Xz = {
|
|
|
8683
8683
|
}
|
|
8684
8684
|
},
|
|
8685
8685
|
methods: {}
|
|
8686
|
-
}, wz = { key: 0 },
|
|
8687
|
-
function
|
|
8686
|
+
}, wz = { key: 0 }, Cz = { class: "bar-item" };
|
|
8687
|
+
function vz(z, M, b, O, p, o) {
|
|
8688
8688
|
const A = P("ElTooltip");
|
|
8689
8689
|
return b.enabled && b.permission & p.helper.LEVEL.Supper ? (W(), l("div", wz, [
|
|
8690
8690
|
c("div", {
|
|
8691
8691
|
class: "menu-bar-box",
|
|
8692
8692
|
style: e0({ position: "absolute", right: p.right + "px", bottom: b.bottom })
|
|
8693
8693
|
}, [
|
|
8694
|
-
c("div",
|
|
8694
|
+
c("div", Cz, [
|
|
8695
8695
|
E(A, {
|
|
8696
8696
|
placement: "left",
|
|
8697
8697
|
effect: "light",
|
|
@@ -8728,7 +8728,7 @@ function Cz(z, M, b, O, p, o) {
|
|
|
8728
8728
|
], 4)
|
|
8729
8729
|
])) : U("", !0);
|
|
8730
8730
|
}
|
|
8731
|
-
const Tz = /* @__PURE__ */ Q(Xz, [["render",
|
|
8731
|
+
const Tz = /* @__PURE__ */ Q(Xz, [["render", vz], ["__scopeId", "data-v-7301123d"]]);
|
|
8732
8732
|
const Ez = {
|
|
8733
8733
|
name: "IdmENC",
|
|
8734
8734
|
props: {
|
|
@@ -8793,7 +8793,7 @@ const Dz = {
|
|
|
8793
8793
|
name: "IdmGLV2",
|
|
8794
8794
|
components: {
|
|
8795
8795
|
IdmGlLayer: i2,
|
|
8796
|
-
IdmWindBarb:
|
|
8796
|
+
IdmWindBarb: s2,
|
|
8797
8797
|
IdmWindParticle: u2,
|
|
8798
8798
|
IdmCurrents: R2,
|
|
8799
8799
|
IdmCurrentParticle: N2,
|
|
@@ -8874,7 +8874,7 @@ const Dz = {
|
|
|
8874
8874
|
showCurrentParticle: !1,
|
|
8875
8875
|
enc: "",
|
|
8876
8876
|
defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
|
|
8877
|
-
helper: new
|
|
8877
|
+
helper: new d2()
|
|
8878
8878
|
};
|
|
8879
8879
|
},
|
|
8880
8880
|
watch: {
|
|
@@ -8900,10 +8900,10 @@ const Dz = {
|
|
|
8900
8900
|
},
|
|
8901
8901
|
activeWeatherLayers: {
|
|
8902
8902
|
handler() {
|
|
8903
|
-
var z, M, b, O, p, o, A, a, q, i, e, r,
|
|
8903
|
+
var z, M, b, O, p, o, A, a, q, i, e, r, d, n, m, L, s, h;
|
|
8904
8904
|
if (!this.map)
|
|
8905
8905
|
return !1;
|
|
8906
|
-
this.activeWeatherLayers.length > 0 ? ((M = (z = this.map) == null ? void 0 : z.getLayer(this.enc)) == null || M.setLayoutProperty("visibility", "none"), (O = (b = this.map) == null ? void 0 : b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || O.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((q = this.map) == null || q.moveLayer((a = this.viewport) == null ? void 0 : a.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (e = this.map) != null && e.getLayer((i = this.viewport) == null ? void 0 : i.particleLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((n = this.map) == null || n.moveLayer((
|
|
8906
|
+
this.activeWeatherLayers.length > 0 ? ((M = (z = this.map) == null ? void 0 : z.getLayer(this.enc)) == null || M.setLayoutProperty("visibility", "none"), (O = (b = this.map) == null ? void 0 : b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || O.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((q = this.map) == null || q.moveLayer((a = this.viewport) == null ? void 0 : a.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (e = this.map) != null && e.getLayer((i = this.viewport) == null ? void 0 : i.particleLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((n = this.map) == null || n.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((L = (m = this.map) == null ? void 0 : m.getLayer(this.enc)) == null || L.setLayoutProperty("visibility", "visible"), (h = (s = this.map) == null ? void 0 : s.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || h.setLayoutProperty("visibility", "none")), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
|
|
8907
8907
|
},
|
|
8908
8908
|
immediate: !0
|
|
8909
8909
|
},
|
|
@@ -8959,18 +8959,18 @@ const Dz = {
|
|
|
8959
8959
|
const M = (/* @__PURE__ */ new Date()).valueOf();
|
|
8960
8960
|
let b = 0, O = 0;
|
|
8961
8961
|
if (this.map) {
|
|
8962
|
-
const
|
|
8962
|
+
const d = ((p = this.map) == null ? void 0 : p.getZoom()) + 1, n = (o = this.map) == null ? void 0 : o.getBounds(), m = `${n._sw.lng},${n._sw.lat},${n._ne.lng},${n._ne.lat}`;
|
|
8963
8963
|
if (this.particleFactor) {
|
|
8964
|
-
const L = _0.WEATHER_LAYERS.find((
|
|
8964
|
+
const L = _0.WEATHER_LAYERS.find((s) => {
|
|
8965
8965
|
var h;
|
|
8966
|
-
return ((h =
|
|
8966
|
+
return ((h = s.peer) == null ? void 0 : h.weight) === this.particleFactor.weight;
|
|
8967
8967
|
});
|
|
8968
8968
|
this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & L.weight ? this.weatherWeight : this.weatherWeight + L.weight : this.weatherWeight = this.weatherWeight & L.weight ? this.weatherWeight - L.weight : this.weatherWeight;
|
|
8969
8969
|
}
|
|
8970
8970
|
if (this.weatherWeight > 0) {
|
|
8971
|
-
let L = this.weatherWeight,
|
|
8972
|
-
if (z.tropicals || this.weatherWeight & 256 && (
|
|
8973
|
-
const h = await N0.get(`${this.gateway}/api/arc/weather/layers/links?l=${L}&v=${this.source}&z=${
|
|
8971
|
+
let L = this.weatherWeight, s;
|
|
8972
|
+
if (z.tropicals || this.weatherWeight & 256 && (s = this.weatherLayers.tropicals, s && (L -= 256, s.version = Math.random() + 1)), L > 0) {
|
|
8973
|
+
const h = await N0.get(`${this.gateway}/api/arc/weather/layers/links?l=${L}&v=${this.source}&z=${d}&bbox=${m}&t=${this.ts}`, {
|
|
8974
8974
|
headers: {
|
|
8975
8975
|
Authorization: this.token || this.defaultMeteoToken
|
|
8976
8976
|
}
|
|
@@ -9035,7 +9035,7 @@ const Dz = {
|
|
|
9035
9035
|
};
|
|
9036
9036
|
}
|
|
9037
9037
|
}
|
|
9038
|
-
|
|
9038
|
+
s && (s.etime = this.ts, s.cached = !0, this.weatherLayers.tropicals = s);
|
|
9039
9039
|
}
|
|
9040
9040
|
this.handleWeatherLayerToggle(), this.handleDragEndWithZoom4Json();
|
|
9041
9041
|
}
|
|
@@ -9056,19 +9056,19 @@ const Dz = {
|
|
|
9056
9056
|
});
|
|
9057
9057
|
if (((M = q == null ? void 0 : q.data) == null ? void 0 : M.code) === 0) {
|
|
9058
9058
|
const i = (b = q == null ? void 0 : q.data) == null ? void 0 : b.data, e = [];
|
|
9059
|
-
for (const
|
|
9059
|
+
for (const d in i)
|
|
9060
9060
|
e.push(
|
|
9061
|
-
N0.get(i[
|
|
9061
|
+
N0.get(i[d], {
|
|
9062
9062
|
headers: {
|
|
9063
9063
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9064
|
-
key:
|
|
9064
|
+
key: d
|
|
9065
9065
|
}
|
|
9066
9066
|
})
|
|
9067
9067
|
);
|
|
9068
9068
|
const r = await Promise.all(e);
|
|
9069
|
-
this.otherLayers = { enc: A, world12nm: a }, r.map((
|
|
9070
|
-
var L,
|
|
9071
|
-
const n = ((L =
|
|
9069
|
+
this.otherLayers = { enc: A, world12nm: a }, r.map((d) => {
|
|
9070
|
+
var L, s, h;
|
|
9071
|
+
const n = ((L = d == null ? void 0 : d.data) == null ? void 0 : L.data) || (d == null ? void 0 : d.data), m = (h = (s = d == null ? void 0 : d.config) == null ? void 0 : s.headers) == null ? void 0 : h.key;
|
|
9072
9072
|
this.otherLayers[m] = n;
|
|
9073
9073
|
});
|
|
9074
9074
|
}
|
|
@@ -9080,18 +9080,18 @@ const Dz = {
|
|
|
9080
9080
|
});
|
|
9081
9081
|
if (((O = q == null ? void 0 : q.data) == null ? void 0 : O.code) === 0) {
|
|
9082
9082
|
const i = (p = q == null ? void 0 : q.data) == null ? void 0 : p.data, e = [];
|
|
9083
|
-
for (const
|
|
9083
|
+
for (const d in i)
|
|
9084
9084
|
e.push(
|
|
9085
|
-
N0.get(i[
|
|
9085
|
+
N0.get(i[d], {
|
|
9086
9086
|
headers: {
|
|
9087
9087
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9088
|
-
key:
|
|
9088
|
+
key: d
|
|
9089
9089
|
}
|
|
9090
9090
|
})
|
|
9091
9091
|
);
|
|
9092
|
-
(await Promise.all(e)).map((
|
|
9093
|
-
var L,
|
|
9094
|
-
const n = ((L =
|
|
9092
|
+
(await Promise.all(e)).map((d) => {
|
|
9093
|
+
var L, s, h;
|
|
9094
|
+
const n = ((L = d == null ? void 0 : d.data) == null ? void 0 : L.data) || (d == null ? void 0 : d.data), m = (h = (s = d == null ? void 0 : d.config) == null ? void 0 : s.headers) == null ? void 0 : h.key;
|
|
9095
9095
|
this.otherLayers[m] = n;
|
|
9096
9096
|
});
|
|
9097
9097
|
}
|
|
@@ -9147,7 +9147,7 @@ const Dz = {
|
|
|
9147
9147
|
);
|
|
9148
9148
|
},
|
|
9149
9149
|
handleDragEndWithZoom4Json() {
|
|
9150
|
-
var i, e, r,
|
|
9150
|
+
var i, e, r, d;
|
|
9151
9151
|
const z = (/* @__PURE__ */ new Date()).valueOf();
|
|
9152
9152
|
let M = 0, b = 0;
|
|
9153
9153
|
const O = (i = this.map) == null ? void 0 : i.getBounds(), p = this.map.getZoom(), o = o0.convertToStdLng(O._sw.lng), A = o0.convertToStdLng(O._ne.lng), a = Math.floor(O._sw.lat), q = Math.ceil(O._ne.lat);
|
|
@@ -9157,59 +9157,59 @@ const Dz = {
|
|
|
9157
9157
|
let m = [];
|
|
9158
9158
|
if (["swell", "current"].includes(n)) {
|
|
9159
9159
|
const L = ((e = this.weatherLayers[n]) == null ? void 0 : e.direction) || {};
|
|
9160
|
-
for (const
|
|
9161
|
-
if (
|
|
9162
|
-
const h = L[
|
|
9160
|
+
for (const s in L)
|
|
9161
|
+
if (s > a && s < q && (!(p <= this.zoom) || s % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9162
|
+
const h = L[s].lng;
|
|
9163
9163
|
o > A ? h.forEach((R, w) => {
|
|
9164
9164
|
var x;
|
|
9165
9165
|
if ((R >= o && R <= 180 || R >= -180 && R <= A) && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9166
|
-
const X = T.point([R,
|
|
9167
|
-
val: L[
|
|
9168
|
-
spd: (x = L[
|
|
9166
|
+
const X = T.point([R, s], {
|
|
9167
|
+
val: L[s].val[w],
|
|
9168
|
+
spd: (x = L[s].spd) == null ? void 0 : x[w]
|
|
9169
9169
|
});
|
|
9170
9170
|
m.push(X);
|
|
9171
9171
|
}
|
|
9172
9172
|
}) : h.forEach((R, w) => {
|
|
9173
9173
|
var x;
|
|
9174
9174
|
if (R >= o && R <= A && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9175
|
-
const X = T.point([R,
|
|
9176
|
-
val: L[
|
|
9177
|
-
spd: (x = L[
|
|
9175
|
+
const X = T.point([R, s], {
|
|
9176
|
+
val: L[s].val[w],
|
|
9177
|
+
spd: (x = L[s].spd) == null ? void 0 : x[w]
|
|
9178
9178
|
});
|
|
9179
9179
|
m.push(X);
|
|
9180
9180
|
}
|
|
9181
9181
|
});
|
|
9182
9182
|
}
|
|
9183
9183
|
if (b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("direction elapsed: ", b, ", total: ", M += b), n === "swell") {
|
|
9184
|
-
const
|
|
9185
|
-
if (
|
|
9186
|
-
if (!
|
|
9184
|
+
const s = this.weatherLayers[n].height;
|
|
9185
|
+
if (s) {
|
|
9186
|
+
if (!s.data) {
|
|
9187
9187
|
const h = [];
|
|
9188
|
-
for (const R in (r =
|
|
9189
|
-
const w =
|
|
9188
|
+
for (const R in (r = s.raw) == null ? void 0 : r.LineString) {
|
|
9189
|
+
const w = s.raw.LineString[R];
|
|
9190
9190
|
for (const x of w)
|
|
9191
9191
|
h.push(
|
|
9192
9192
|
T.lineString(x, {
|
|
9193
9193
|
val: Number(R)
|
|
9194
9194
|
})
|
|
9195
9195
|
);
|
|
9196
|
-
|
|
9196
|
+
s.data = T.featureCollection(h);
|
|
9197
9197
|
}
|
|
9198
9198
|
}
|
|
9199
|
-
if (
|
|
9200
|
-
const h = this.handleBboxClip(
|
|
9199
|
+
if (s.data) {
|
|
9200
|
+
const h = this.handleBboxClip(s.data, O);
|
|
9201
9201
|
m = m.concat(h);
|
|
9202
9202
|
}
|
|
9203
9203
|
b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("height elapsed: ", b, ", total: ", M += b);
|
|
9204
9204
|
}
|
|
9205
9205
|
}
|
|
9206
9206
|
if (n === "current") {
|
|
9207
|
-
const
|
|
9208
|
-
if (
|
|
9209
|
-
if (!
|
|
9207
|
+
const s = this.weatherLayers[n].speed;
|
|
9208
|
+
if (s) {
|
|
9209
|
+
if (!s.data) {
|
|
9210
9210
|
const R = [];
|
|
9211
|
-
for (const w in (
|
|
9212
|
-
const x =
|
|
9211
|
+
for (const w in (d = s.raw) == null ? void 0 : d.Polygon) {
|
|
9212
|
+
const x = s.raw.Polygon[w];
|
|
9213
9213
|
for (const X of x)
|
|
9214
9214
|
R.push(
|
|
9215
9215
|
T.polygon(X, {
|
|
@@ -9217,30 +9217,30 @@ const Dz = {
|
|
|
9217
9217
|
})
|
|
9218
9218
|
);
|
|
9219
9219
|
}
|
|
9220
|
-
|
|
9220
|
+
s.data = T.featureCollection(R);
|
|
9221
9221
|
}
|
|
9222
|
-
const h = p < this.zoom ?
|
|
9222
|
+
const h = p < this.zoom ? s.data.features.filter((R) => R.properties.val > 0.5) : s.data.features;
|
|
9223
9223
|
m = m.concat(h), b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("speed elapsed: ", b, ", total: ", M += b);
|
|
9224
9224
|
}
|
|
9225
9225
|
}
|
|
9226
9226
|
} else if (n === "wind") {
|
|
9227
9227
|
const L = this.weatherLayers.wind.raw;
|
|
9228
|
-
for (const
|
|
9229
|
-
if (
|
|
9230
|
-
const h = L[
|
|
9228
|
+
for (const s in L)
|
|
9229
|
+
if (s > a && s < q && (!(p <= this.zoom) || s % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9230
|
+
const h = L[s].lng;
|
|
9231
9231
|
o > A ? h.forEach((R, w) => {
|
|
9232
9232
|
if ((R >= o && R <= 180 || R >= -180 && R <= A) && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9233
|
-
const x = T.point([R,
|
|
9234
|
-
val: L[
|
|
9235
|
-
spd: L[
|
|
9233
|
+
const x = T.point([R, s], {
|
|
9234
|
+
val: L[s].val[w],
|
|
9235
|
+
spd: L[s].spd[w]
|
|
9236
9236
|
});
|
|
9237
9237
|
m.push(x);
|
|
9238
9238
|
}
|
|
9239
9239
|
}) : h.forEach((R, w) => {
|
|
9240
9240
|
if (R >= o && R <= A && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9241
|
-
const x = T.point([R,
|
|
9242
|
-
val: L[
|
|
9243
|
-
spd: L[
|
|
9241
|
+
const x = T.point([R, s], {
|
|
9242
|
+
val: L[s].val[w],
|
|
9243
|
+
spd: L[s].spd[w]
|
|
9244
9244
|
});
|
|
9245
9245
|
m.push(x);
|
|
9246
9246
|
}
|
|
@@ -9253,11 +9253,11 @@ const Dz = {
|
|
|
9253
9253
|
else {
|
|
9254
9254
|
const L = this.weatherLayers[n].raw;
|
|
9255
9255
|
if (L) {
|
|
9256
|
-
const
|
|
9256
|
+
const s = [];
|
|
9257
9257
|
for (const h in L.Polygon) {
|
|
9258
9258
|
const R = L.Polygon[h];
|
|
9259
9259
|
for (const w of R)
|
|
9260
|
-
|
|
9260
|
+
s.push(
|
|
9261
9261
|
T.polygon(w, {
|
|
9262
9262
|
val: Number(h)
|
|
9263
9263
|
})
|
|
@@ -9266,13 +9266,13 @@ const Dz = {
|
|
|
9266
9266
|
for (const h in L.Point) {
|
|
9267
9267
|
const R = L.Point[h];
|
|
9268
9268
|
for (const w of R)
|
|
9269
|
-
|
|
9269
|
+
s.push(
|
|
9270
9270
|
...T.points(w, {
|
|
9271
9271
|
val: Number(h)
|
|
9272
9272
|
}).features
|
|
9273
9273
|
);
|
|
9274
9274
|
}
|
|
9275
|
-
m = m.concat(
|
|
9275
|
+
m = m.concat(s);
|
|
9276
9276
|
}
|
|
9277
9277
|
}
|
|
9278
9278
|
b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("sigWave elapsed: ", b, ", total: ", M += b);
|
|
@@ -9282,11 +9282,11 @@ const Dz = {
|
|
|
9282
9282
|
else {
|
|
9283
9283
|
const L = this.weatherLayers[n].raw;
|
|
9284
9284
|
if (L) {
|
|
9285
|
-
const
|
|
9285
|
+
const s = [];
|
|
9286
9286
|
for (const h in L.LineString) {
|
|
9287
9287
|
const R = L.LineString[h];
|
|
9288
9288
|
for (const w of R)
|
|
9289
|
-
|
|
9289
|
+
s.push(
|
|
9290
9290
|
T.lineString(w, {
|
|
9291
9291
|
val: Number(h)
|
|
9292
9292
|
})
|
|
@@ -9294,14 +9294,14 @@ const Dz = {
|
|
|
9294
9294
|
}
|
|
9295
9295
|
for (const h in L.Point)
|
|
9296
9296
|
L.Point[h].lng.forEach((R, w) => {
|
|
9297
|
-
R = o0.convertToStdLng(R),
|
|
9297
|
+
R = o0.convertToStdLng(R), s.push(
|
|
9298
9298
|
T.point([R, h], {
|
|
9299
9299
|
val: L.Point[h].val[w],
|
|
9300
9300
|
type: L.Point[h].type[w]
|
|
9301
9301
|
})
|
|
9302
9302
|
);
|
|
9303
9303
|
});
|
|
9304
|
-
m = m.concat(
|
|
9304
|
+
m = m.concat(s);
|
|
9305
9305
|
}
|
|
9306
9306
|
}
|
|
9307
9307
|
b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("prmsl elapsed: ", b, ", total: ", M += b);
|
|
@@ -9311,17 +9311,17 @@ const Dz = {
|
|
|
9311
9311
|
else {
|
|
9312
9312
|
const L = this.weatherLayers[n].raw;
|
|
9313
9313
|
if (L) {
|
|
9314
|
-
const
|
|
9314
|
+
const s = [];
|
|
9315
9315
|
for (const h in L.LineString) {
|
|
9316
9316
|
const R = L.LineString[h];
|
|
9317
9317
|
for (const w of R)
|
|
9318
|
-
|
|
9318
|
+
s.push(
|
|
9319
9319
|
T.lineString(w, {
|
|
9320
9320
|
val: Number(h)
|
|
9321
9321
|
})
|
|
9322
9322
|
);
|
|
9323
9323
|
}
|
|
9324
|
-
m = m.concat(
|
|
9324
|
+
m = m.concat(s);
|
|
9325
9325
|
}
|
|
9326
9326
|
}
|
|
9327
9327
|
b = (/* @__PURE__ */ new Date()).valueOf() - (z + M);
|
|
@@ -9359,8 +9359,8 @@ const Dz = {
|
|
|
9359
9359
|
this.handleBeforeLayerToggle();
|
|
9360
9360
|
},
|
|
9361
9361
|
handleBeforeLayerToggle() {
|
|
9362
|
-
var z, M, b, O, p, o, A, a, q, i, e, r,
|
|
9363
|
-
(z = this.map) != null && z.getLayer(this.beforeLayer) && ((M = this.activeWeatherLayers) != null && M.length || (b = this.otherLayers) != null && b["war-zones"] || (O = this.otherLayers) != null && O["gmdss-areas"] || (p = this.otherLayers) != null && p["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (A = this.otherLayers) != null && A["time-zones"] || (a = this.otherLayers) != null && a.pirates || (q = this.otherLayers) != null && q.ports || (i = this.otherLayers) != null && i.enc || (e = this.otherLayers) != null && e.world12nm || (r = this.otherLayers) != null && r["voluntary-reporting-area"] || (
|
|
9362
|
+
var z, M, b, O, p, o, A, a, q, i, e, r, d, n;
|
|
9363
|
+
(z = this.map) != null && z.getLayer(this.beforeLayer) && ((M = this.activeWeatherLayers) != null && M.length || (b = this.otherLayers) != null && b["war-zones"] || (O = this.otherLayers) != null && O["gmdss-areas"] || (p = this.otherLayers) != null && p["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (A = this.otherLayers) != null && A["time-zones"] || (a = this.otherLayers) != null && a.pirates || (q = this.otherLayers) != null && q.ports || (i = this.otherLayers) != null && i.enc || (e = this.otherLayers) != null && e.world12nm || (r = this.otherLayers) != null && r["voluntary-reporting-area"] || (d = this.otherLayers) != null && d["eca-zones"] || (n = this.otherLayers) != null && n["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
9364
9364
|
},
|
|
9365
9365
|
handleDateChange(z = { tropicals: !1 }) {
|
|
9366
9366
|
console.log(999, "handleDateChange"), this.fetchWeatherLayers(z), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -9394,8 +9394,8 @@ const Dz = {
|
|
|
9394
9394
|
}
|
|
9395
9395
|
},
|
|
9396
9396
|
handle3dToggle(z) {
|
|
9397
|
-
var M, b, O, p, o, A, a, q, i, e, r,
|
|
9398
|
-
z ? (this.map.setProjection("globe"), this.mapProjection = "globe", (b = this.map) != null && b.getLayer((M = this.viewport) == null ? void 0 : M.rampColorLayer) && ((O = this.map) != null && O.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (a = this.map) != null && a.getLayer((A = this.viewport) == null ? void 0 : A.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((e = this.map) == null || e.moveLayer((i = this.viewport) == null ? void 0 : i.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(), (
|
|
9397
|
+
var M, b, O, p, o, A, a, q, i, e, r, d, n, m, L, s, h, R, w, x;
|
|
9398
|
+
z ? (this.map.setProjection("globe"), this.mapProjection = "globe", (b = this.map) != null && b.getLayer((M = this.viewport) == null ? void 0 : M.rampColorLayer) && ((O = this.map) != null && O.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (a = this.map) != null && a.getLayer((A = this.viewport) == null ? void 0 : A.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((e = this.map) == null || e.moveLayer((i = this.viewport) == null ? void 0 : i.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(), (d = this.map) != null && d.getLayer((r = this.viewport) == null ? void 0 : r.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((L = this.map) == null || L.moveLayer((m = this.viewport) == null ? void 0 : m.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (h = this.map) != null && h.getLayer((s = this.viewport) == null ? void 0 : s.particleLayer) && ((R = this.map) != null && R.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((x = this.map) == null || x.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
9399
9399
|
},
|
|
9400
9400
|
handleParticle(z) {
|
|
9401
9401
|
this.particleFactor = z, this.weatherLayers[z.key] && (this.weatherLayers[z.key].particle = z.particle), this.activeWeatherLayers.map((O) => {
|
|
@@ -9419,8 +9419,8 @@ const Dz = {
|
|
|
9419
9419
|
className: "map-gl-home"
|
|
9420
9420
|
};
|
|
9421
9421
|
function Sz(z, M, b, O, p, o) {
|
|
9422
|
-
var r0,
|
|
9423
|
-
const A = P("IdmGlLayer"), a = P("IdmENC"), q = P("IdmWorld12nm"), i = P("IdmSigWave"), e = P("IdmSwell"), r = P("IdmPrmsl"),
|
|
9422
|
+
var r0, s0, B0, d0, S, b0, t0, I, M0, W0, N, y0, g0, t, f, u, B, v, D, K, k, j, E0, x0, I0, D0, P0;
|
|
9423
|
+
const A = P("IdmGlLayer"), a = P("IdmENC"), q = P("IdmWorld12nm"), i = P("IdmSigWave"), e = P("IdmSwell"), r = P("IdmPrmsl"), d = P("IdmIceberg"), n = P("IdmTropicals"), m = P("IdmCurrents"), L = P("IdmCurrentParticle"), s = P("IdmWindBarb"), h = P("IdmWindParticle"), R = P("IdmPrecip3h"), w = P("IdmVisibility"), x = P("IdmWaterTemp"), X = P("IdmTemp"), _ = P("IdmArctic"), V = P("IdmWarZone"), $ = P("IdmGmdssArea"), z0 = P("IdmEcaZone"), p0 = P("IdmAlertZone"), q0 = P("IdmPort"), L0 = P("IdmLoadLine"), h0 = P("IdmTimezone"), i0 = P("IdmVRA"), l0 = P("IdmSpecialArea"), O0 = P("IdmTerminator"), R0 = P("IdmLatLng"), m0 = P("IdmMeasure"), f0 = P("IdmPoint");
|
|
9424
9424
|
return b.map ? (W(), l("div", Pz, [
|
|
9425
9425
|
E(A, H({
|
|
9426
9426
|
ref: "layer",
|
|
@@ -9462,7 +9462,7 @@ function Sz(z, M, b, O, p, o) {
|
|
|
9462
9462
|
map: b.map,
|
|
9463
9463
|
token: b.token,
|
|
9464
9464
|
"weather-layers": p.weatherLayers,
|
|
9465
|
-
enabled: (
|
|
9465
|
+
enabled: (s0 = p.otherLayers) == null ? void 0 : s0.world12nm
|
|
9466
9466
|
}, z.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9467
9467
|
E(i, H({
|
|
9468
9468
|
map: b.map,
|
|
@@ -9472,7 +9472,7 @@ function Sz(z, M, b, O, p, o) {
|
|
|
9472
9472
|
}, z.$attrs), null, 16, ["map", "sig-wave", "before-layer", "activeWeatherLayers"]),
|
|
9473
9473
|
E(e, H({
|
|
9474
9474
|
map: b.map,
|
|
9475
|
-
swell: (
|
|
9475
|
+
swell: (d0 = p.weatherLayers) == null ? void 0 : d0.swell,
|
|
9476
9476
|
"before-layer": b.beforeLayer,
|
|
9477
9477
|
activeWeatherLayers: p.activeWeatherLayers
|
|
9478
9478
|
}, z.$attrs), null, 16, ["map", "swell", "before-layer", "activeWeatherLayers"]),
|
|
@@ -9482,7 +9482,7 @@ function Sz(z, M, b, O, p, o) {
|
|
|
9482
9482
|
"before-layer": b.beforeLayer,
|
|
9483
9483
|
"active-weather-layers": p.activeWeatherLayers
|
|
9484
9484
|
}, z.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
9485
|
-
E(
|
|
9485
|
+
E(d, H({
|
|
9486
9486
|
map: b.map,
|
|
9487
9487
|
iceberg: (b0 = p.weatherLayers) == null ? void 0 : b0.iceberg,
|
|
9488
9488
|
"before-layer": b.beforeLayer
|
|
@@ -9514,7 +9514,7 @@ function Sz(z, M, b, O, p, o) {
|
|
|
9514
9514
|
"before-layer": b.beforeLayer,
|
|
9515
9515
|
"toggle-version": b.toggleVersion
|
|
9516
9516
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9517
|
-
E(
|
|
9517
|
+
E(s, H({
|
|
9518
9518
|
ref: "windBarb",
|
|
9519
9519
|
map: b.map,
|
|
9520
9520
|
"map-projection": p.mapProjection,
|
|
@@ -9568,7 +9568,7 @@ function Sz(z, M, b, O, p, o) {
|
|
|
9568
9568
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9569
9569
|
E(V, H({
|
|
9570
9570
|
map: b.map,
|
|
9571
|
-
zone: (
|
|
9571
|
+
zone: (v = p.otherLayers) == null ? void 0 : v["war-zones"],
|
|
9572
9572
|
"before-layer": b.beforeLayer
|
|
9573
9573
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9574
9574
|
E($, H({
|
|
@@ -9646,7 +9646,7 @@ export {
|
|
|
9646
9646
|
q1 as LatLngGL,
|
|
9647
9647
|
kz as MapboxGL,
|
|
9648
9648
|
Yz as MapboxGLPlugin,
|
|
9649
|
-
|
|
9649
|
+
d2 as MapboxHelper,
|
|
9650
9650
|
n0 as ParticleSchema,
|
|
9651
9651
|
a1 as TropicalGL,
|
|
9652
9652
|
F0 as Viewport,
|