@idmwx/idmui-gl3 3.4.5 → 3.4.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 +254 -246
- package/dist/index.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var rt = Object.defineProperty;
|
|
2
2
|
var st = (i, e, t) => e in i ? rt(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
3
|
var M = (i, e, t) => (st(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { LayerHelper as Fe, CompanyHelper as Ve, LngLatHelper as
|
|
5
|
-
import { resolveComponent as T, openBlock as w, createElementBlock as x, createElementVNode as l, normalizeStyle as
|
|
4
|
+
import { LayerHelper as Fe, CompanyHelper as Ve, LngLatHelper as Q, convertToMonotonicLng2 as ot, calculateDistance as We, calculateBearing as Ne, convertToMonotonicLng as pe, interpolateCoordinates as je, convertToStandardLng as Ae } from "@idmwx/idmwx-base";
|
|
5
|
+
import { resolveComponent as T, openBlock as w, createElementBlock as x, createElementVNode as l, normalizeStyle as j, normalizeClass as z, Fragment as $e, renderList as De, toDisplayString as S, createVNode as E, withCtx as nt, createTextVNode as Qe, createCommentVNode as O, pushScopeId as U, popScopeId as G, withDirectives as ze, vShow as Me, createStaticVNode as lt, mergeProps as R } from "vue";
|
|
6
6
|
import * as C from "@turf/turf";
|
|
7
7
|
import ht from "@mapbox/sphericalmercator";
|
|
8
|
-
import
|
|
8
|
+
import K from "moment";
|
|
9
9
|
import ae from "mapbox-gl";
|
|
10
10
|
import { TropicalHelper as et } from "@idm-plugin/geo";
|
|
11
11
|
import ie from "axios";
|
|
@@ -140,14 +140,14 @@ const k = (i, e) => {
|
|
|
140
140
|
this.source = i, this.handleConfirm();
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
}, X = (i) => (U("data-v-
|
|
143
|
+
}, X = (i) => (U("data-v-4df358dd"), i = i(), G(), i), dt = { class: "idm-gl-layer" }, pt = { class: "bar-item layer-bars" }, mt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), ut = [
|
|
144
144
|
mt
|
|
145
145
|
], ft = { class: "bar-item tool-bars" }, yt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), gt = [
|
|
146
146
|
yt
|
|
147
147
|
], bt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), vt = [
|
|
148
148
|
bt
|
|
149
|
-
],
|
|
150
|
-
|
|
149
|
+
], Lt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), _t = [
|
|
150
|
+
Lt
|
|
151
151
|
], wt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), xt = [
|
|
152
152
|
wt
|
|
153
153
|
], Ct = ["onClick"], St = /* @__PURE__ */ X(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Pt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("i", { class: "iconfont" }, "", -1)), Tt = [
|
|
@@ -161,7 +161,7 @@ function Ft(i, e, t, r, a, s) {
|
|
|
161
161
|
return w(), x("div", dt, [
|
|
162
162
|
l("div", {
|
|
163
163
|
class: "menu-bar-box",
|
|
164
|
-
style:
|
|
164
|
+
style: j({ top: t.top + 10 + "px", right: a.right + "px" })
|
|
165
165
|
}, [
|
|
166
166
|
l("div", pt, [
|
|
167
167
|
l("div", {
|
|
@@ -172,7 +172,7 @@ function Ft(i, e, t, r, a, s) {
|
|
|
172
172
|
], 4),
|
|
173
173
|
l("div", {
|
|
174
174
|
class: "menu-bar-box",
|
|
175
|
-
style:
|
|
175
|
+
style: j({ top: t.top + 160 + "px", right: a.right + "px" })
|
|
176
176
|
}, [
|
|
177
177
|
l("div", ft, [
|
|
178
178
|
l("div", {
|
|
@@ -186,7 +186,7 @@ function Ft(i, e, t, r, a, s) {
|
|
|
186
186
|
l("div", {
|
|
187
187
|
class: z(a.showCoord ? "menu-icon active" : "menu-icon"),
|
|
188
188
|
onClick: e[3] || (e[3] = (...o) => s.handleCoordToggle && s.handleCoordToggle(...o))
|
|
189
|
-
},
|
|
189
|
+
}, _t, 2),
|
|
190
190
|
l("div", {
|
|
191
191
|
class: z(a.show3d ? "menu-icon active" : "menu-icon"),
|
|
192
192
|
onClick: e[4] || (e[4] = (...o) => s.handle3DToggle && s.handle3DToggle(...o))
|
|
@@ -195,7 +195,7 @@ function Ft(i, e, t, r, a, s) {
|
|
|
195
195
|
], 4),
|
|
196
196
|
l("div", {
|
|
197
197
|
class: "active-layers",
|
|
198
|
-
style:
|
|
198
|
+
style: j({ right: a.right + "px", bottom: "100px" })
|
|
199
199
|
}, [
|
|
200
200
|
(w(!0), x($e, null, De(a.weatherLayers, (o) => (w(), x("div", {
|
|
201
201
|
key: o.key,
|
|
@@ -208,11 +208,11 @@ function Ft(i, e, t, r, a, s) {
|
|
|
208
208
|
], 4),
|
|
209
209
|
l("div", {
|
|
210
210
|
class: "available-layers flex-center",
|
|
211
|
-
style:
|
|
211
|
+
style: j({ top: t.top + "px", right: a.showLayers ? "0px" : "-240px" })
|
|
212
212
|
}, [
|
|
213
213
|
l("div", {
|
|
214
214
|
class: "side-bar",
|
|
215
|
-
style:
|
|
215
|
+
style: j({ right: a.showLayers ? "0px" : "-240px" }),
|
|
216
216
|
onClick: e[5] || (e[5] = (...o) => s.handleMenuToggle && s.handleMenuToggle(...o))
|
|
217
217
|
}, Tt, 4),
|
|
218
218
|
l("div", {
|
|
@@ -231,7 +231,7 @@ function Ft(i, e, t, r, a, s) {
|
|
|
231
231
|
(w(!0), x($e, null, De(a.layers.weather, (o) => (w(), x($e, {
|
|
232
232
|
key: o.key
|
|
233
233
|
}, [
|
|
234
|
-
o.hide ?
|
|
234
|
+
o.hide ? O("", !0) : (w(), x("div", {
|
|
235
235
|
key: 0,
|
|
236
236
|
class: z(s.computeLayerClass(o, a.weatherLayers)),
|
|
237
237
|
onClick: (h) => s.handleWeatherLayerPick(o)
|
|
@@ -275,7 +275,7 @@ function Ft(i, e, t, r, a, s) {
|
|
|
275
275
|
], 4)
|
|
276
276
|
]);
|
|
277
277
|
}
|
|
278
|
-
const Vt = /* @__PURE__ */ k(ct, [["render", Ft], ["__scopeId", "data-v-
|
|
278
|
+
const Vt = /* @__PURE__ */ k(ct, [["render", Ft], ["__scopeId", "data-v-4df358dd"]]);
|
|
279
279
|
const Ut = {
|
|
280
280
|
name: "IdmWindBarb",
|
|
281
281
|
props: {
|
|
@@ -413,7 +413,7 @@ const Ut = {
|
|
|
413
413
|
},
|
|
414
414
|
paint: {
|
|
415
415
|
"icon-opacity": 1,
|
|
416
|
-
"
|
|
416
|
+
"text-color": "#222"
|
|
417
417
|
}
|
|
418
418
|
},
|
|
419
419
|
this.beforeLayer
|
|
@@ -458,7 +458,7 @@ function Yt(i, e, t, r, a, s) {
|
|
|
458
458
|
return (n = t.wind) != null && n.active ? (w(), x("div", Gt, [
|
|
459
459
|
l("div", {
|
|
460
460
|
class: "flex-center tool-bars",
|
|
461
|
-
style:
|
|
461
|
+
style: j([{ position: "absolute" }, { right: a.right + "px", bottom: a.bottom + "px" }])
|
|
462
462
|
}, [
|
|
463
463
|
l("div", {
|
|
464
464
|
class: "flex-start",
|
|
@@ -479,11 +479,11 @@ function Yt(i, e, t, r, a, s) {
|
|
|
479
479
|
l("span", {
|
|
480
480
|
class: z(a.showFeather ? "active" : "")
|
|
481
481
|
}, "Wind Feather", 2)
|
|
482
|
-
])) :
|
|
482
|
+
])) : O("", !0)
|
|
483
483
|
], 4)
|
|
484
|
-
])) :
|
|
484
|
+
])) : O("", !0);
|
|
485
485
|
}
|
|
486
|
-
const qt = /* @__PURE__ */ k(Ut, [["render", Yt], ["__scopeId", "data-v-
|
|
486
|
+
const qt = /* @__PURE__ */ k(Ut, [["render", Yt], ["__scopeId", "data-v-fc7a24ef"]]);
|
|
487
487
|
class Ue {
|
|
488
488
|
constructor(e) {
|
|
489
489
|
M(this, "map");
|
|
@@ -708,7 +708,7 @@ class le {
|
|
|
708
708
|
}
|
|
709
709
|
const u = e.getBoundPixel(), g = e.map.getZoom() + 1, y = e.getWorldCopy(u, g);
|
|
710
710
|
for (const p of y) {
|
|
711
|
-
const v = (p[0] - u[0]) * e.ratio, b = (p[1] - u[3]) * e.ratio,
|
|
711
|
+
const v = (p[0] - u[0]) * e.ratio, b = (p[1] - u[3]) * e.ratio, _ = p[2] * e.ratio, [P, L, I, $] = [v, _ + v, b, _ + b], D = new Float32Array([P, I, L, I, P, $, P, $, L, I, L, $]);
|
|
712
712
|
t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, D, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
713
713
|
}
|
|
714
714
|
} catch (f) {
|
|
@@ -1131,9 +1131,9 @@ function hi(i, e, t, r, a, s) {
|
|
|
1131
1131
|
return (n = t.factor) != null && n.active ? (w(), x("div", Qt, [
|
|
1132
1132
|
l("div", {
|
|
1133
1133
|
class: "legend-bars flex-center",
|
|
1134
|
-
style:
|
|
1134
|
+
style: j([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
1135
1135
|
}, li, 4)
|
|
1136
|
-
])) :
|
|
1136
|
+
])) : O("", !0);
|
|
1137
1137
|
}
|
|
1138
1138
|
const ci = /* @__PURE__ */ k(Kt, [["render", hi], ["__scopeId", "data-v-bc5ff165"]]);
|
|
1139
1139
|
const di = {
|
|
@@ -1319,7 +1319,7 @@ function gi(i, e, t, r, a, s) {
|
|
|
1319
1319
|
return (n = t.current) != null && n.active ? (w(), x("div", pi, [
|
|
1320
1320
|
l("div", {
|
|
1321
1321
|
class: "flex-center tool-bars",
|
|
1322
|
-
style:
|
|
1322
|
+
style: j([{ position: "absolute" }, { right: a.right + "px", bottom: a.bottom + "px" }])
|
|
1323
1323
|
}, [
|
|
1324
1324
|
l("div", {
|
|
1325
1325
|
class: "flex-start",
|
|
@@ -1340,9 +1340,9 @@ function gi(i, e, t, r, a, s) {
|
|
|
1340
1340
|
l("span", {
|
|
1341
1341
|
class: z(a.showJson ? "active" : "")
|
|
1342
1342
|
}, "Current", 2)
|
|
1343
|
-
])) :
|
|
1343
|
+
])) : O("", !0)
|
|
1344
1344
|
], 4)
|
|
1345
|
-
])) :
|
|
1345
|
+
])) : O("", !0);
|
|
1346
1346
|
}
|
|
1347
1347
|
const bi = /* @__PURE__ */ k(di, [["render", gi], ["__scopeId", "data-v-ce5e09b8"]]);
|
|
1348
1348
|
const vi = {
|
|
@@ -1506,8 +1506,8 @@ const vi = {
|
|
|
1506
1506
|
});
|
|
1507
1507
|
}
|
|
1508
1508
|
}
|
|
1509
|
-
}, he = (i) => (U("data-v-5f45c14c"), i = i(), G(), i),
|
|
1510
|
-
|
|
1509
|
+
}, he = (i) => (U("data-v-5f45c14c"), i = i(), G(), i), Li = { key: 0 }, _i = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "kts", -1)), wi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0", -1)), xi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0.4", -1)), Ci = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0.8", -1)), Si = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "1.6", -1)), Pi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "2", -1)), Ti = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ei = [
|
|
1510
|
+
_i,
|
|
1511
1511
|
wi,
|
|
1512
1512
|
xi,
|
|
1513
1513
|
Ci,
|
|
@@ -1517,12 +1517,12 @@ const vi = {
|
|
|
1517
1517
|
];
|
|
1518
1518
|
function ki(i, e, t, r, a, s) {
|
|
1519
1519
|
var n;
|
|
1520
|
-
return (n = t.factor) != null && n.active ? (w(), x("div",
|
|
1520
|
+
return (n = t.factor) != null && n.active ? (w(), x("div", Li, [
|
|
1521
1521
|
l("div", {
|
|
1522
1522
|
class: "legend-bars flex-center",
|
|
1523
|
-
style:
|
|
1523
|
+
style: j([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
1524
1524
|
}, Ei, 4)
|
|
1525
|
-
])) :
|
|
1525
|
+
])) : O("", !0);
|
|
1526
1526
|
}
|
|
1527
1527
|
const Ri = /* @__PURE__ */ k(vi, [["render", ki], ["__scopeId", "data-v-5f45c14c"]]), Ii = {
|
|
1528
1528
|
name: "IdmSigWave",
|
|
@@ -1998,7 +1998,7 @@ const Vi = {
|
|
|
1998
1998
|
computeTime() {
|
|
1999
1999
|
return function(i) {
|
|
2000
2000
|
if (i) {
|
|
2001
|
-
const e =
|
|
2001
|
+
const e = K(i).utc();
|
|
2002
2002
|
return `${e.format("MMM-DD,HHmm[Z]")} (${e == null ? void 0 : e.fromNow()})`;
|
|
2003
2003
|
}
|
|
2004
2004
|
return "-";
|
|
@@ -2021,7 +2021,7 @@ const Vi = {
|
|
|
2021
2021
|
"tropicals.version": {
|
|
2022
2022
|
handler() {
|
|
2023
2023
|
var r, a;
|
|
2024
|
-
const i = ((a = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : a.features) || [], e =
|
|
2024
|
+
const i = ((a = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : a.features) || [], e = K().utc().hour(), t = [];
|
|
2025
2025
|
i.forEach((s) => {
|
|
2026
2026
|
var n, o, h;
|
|
2027
2027
|
(n = s.properties) != null && n.name && !t.includes((o = s.properties) == null ? void 0 : o.name) && t.push((h = s.properties) == null ? void 0 : h.name);
|
|
@@ -2036,12 +2036,12 @@ const Vi = {
|
|
|
2036
2036
|
var u, g;
|
|
2037
2037
|
return ((u = m.geometry) == null ? void 0 : u.type) === "LineString" && ((g = m.properties) == null ? void 0 : g.type) === "forecast";
|
|
2038
2038
|
})[0]) == null ? void 0 : d.properties.model, f.forEach((m, u) => {
|
|
2039
|
-
var g, y, p, v, b,
|
|
2040
|
-
((g = m.geometry) == null ? void 0 : g.type) === "Point" && ((y = m.properties) == null ? void 0 : y.type) === "history" && (n = u, o = o === void 0 ? u : o), ((p = m.geometry) == null ? void 0 : p.type) === "Point" && ((v = m.properties) == null ? void 0 : v.type) === "forecast" && o === void 0 && (o = u), ((b = m.geometry) == null ? void 0 : b.type) === "LineString" && ((
|
|
2039
|
+
var g, y, p, v, b, _;
|
|
2040
|
+
((g = m.geometry) == null ? void 0 : g.type) === "Point" && ((y = m.properties) == null ? void 0 : y.type) === "history" && (n = u, o = o === void 0 ? u : o), ((p = m.geometry) == null ? void 0 : p.type) === "Point" && ((v = m.properties) == null ? void 0 : v.type) === "forecast" && o === void 0 && (o = u), ((b = m.geometry) == null ? void 0 : b.type) === "LineString" && ((_ = m.properties) == null ? void 0 : _.type) === "forecast" && (c = `${s}-${h}`);
|
|
2041
2041
|
}), f.map((m, u) => {
|
|
2042
|
-
var g, y, p, v, b,
|
|
2043
|
-
if (((g = m.geometry) == null ? void 0 : g.type) === "LineString" && ((y = m.properties) == null ? void 0 : y.type) === "forecast" && (m.properties.disabled = ((p = m.properties) == null ? void 0 : p.model) !== h), ((v = m.geometry) == null ? void 0 : v.type) === "Point" && ((b = m.properties) == null ? void 0 : b.type) === "forecast" && (m.properties.disabled = ((
|
|
2044
|
-
const D = (($ = (I = m.properties) == null ? void 0 : I.format) == null ? void 0 : $.slice(7, 12)) ===
|
|
2042
|
+
var g, y, p, v, b, _, P, L, I, $;
|
|
2043
|
+
if (((g = m.geometry) == null ? void 0 : g.type) === "LineString" && ((y = m.properties) == null ? void 0 : y.type) === "forecast" && (m.properties.disabled = ((p = m.properties) == null ? void 0 : p.model) !== h), ((v = m.geometry) == null ? void 0 : v.type) === "Point" && ((b = m.properties) == null ? void 0 : b.type) === "forecast" && (m.properties.disabled = ((_ = m.properties) == null ? void 0 : _.category) !== c, m.properties.name = s), ((P = m.geometry) == null ? void 0 : P.type) === "Point" && ((L = m.properties) == null ? void 0 : L.type) === "history") {
|
|
2044
|
+
const D = (($ = (I = m.properties) == null ? void 0 : I.format) == null ? void 0 : $.slice(7, 12)) === K().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
|
|
2045
2045
|
m.properties.showHistoryLabel = D || u === n, m.properties.showNameLabel = u === n, m.properties.name = s;
|
|
2046
2046
|
}
|
|
2047
2047
|
return m;
|
|
@@ -2313,12 +2313,12 @@ const Vi = {
|
|
|
2313
2313
|
}), u.forEach((g) => {
|
|
2314
2314
|
var v;
|
|
2315
2315
|
const p = (v = m.filter((b) => {
|
|
2316
|
-
var
|
|
2317
|
-
return ((
|
|
2316
|
+
var _;
|
|
2317
|
+
return ((_ = b.properties) == null ? void 0 : _.name) === g;
|
|
2318
2318
|
})[0]) == null ? void 0 : v.properties.model;
|
|
2319
|
-
m.map((b,
|
|
2320
|
-
var P,
|
|
2321
|
-
return ((P = b.properties) == null ? void 0 : P.name) === g && (b.properties.disabled = ((
|
|
2319
|
+
m.map((b, _) => {
|
|
2320
|
+
var P, L;
|
|
2321
|
+
return ((P = b.properties) == null ? void 0 : P.name) === g && (b.properties.disabled = ((L = b.properties) == null ? void 0 : L.model) !== p), b;
|
|
2322
2322
|
});
|
|
2323
2323
|
}), this.interpolateData = JSON.parse(JSON.stringify(m));
|
|
2324
2324
|
}
|
|
@@ -2330,9 +2330,9 @@ const Vi = {
|
|
|
2330
2330
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (i = this.interpolateMarkers) == null || i.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource));
|
|
2331
2331
|
},
|
|
2332
2332
|
handleDateChange() {
|
|
2333
|
-
var i, e, t, r, a, s, n, o, h, c, f, d, m, u, g, y, p, v, b,
|
|
2333
|
+
var i, e, t, r, a, s, n, o, h, c, f, d, m, u, g, y, p, v, b, _, P, L, I, $, D, W, N, H;
|
|
2334
2334
|
if ((i = this.interpolateMarkers) == null || i.forEach((Z) => Z == null ? void 0 : Z.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
2335
|
-
const Z =
|
|
2335
|
+
const Z = K(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ee = this.interpolateData.filter((A) => A.properties.date === Z.format() && !A.properties.disabled), ce = this.handleComputePolygons(ee), te = C.featureCollection([...ee]);
|
|
2336
2336
|
ce.forEach((A) => {
|
|
2337
2337
|
te.features.push(A);
|
|
2338
2338
|
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(te) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
@@ -2352,7 +2352,7 @@ const Vi = {
|
|
|
2352
2352
|
for (const A of ee)
|
|
2353
2353
|
if (!A.properties.disabled) {
|
|
2354
2354
|
let V = "#f44336";
|
|
2355
|
-
((o = (n = A.properties) == null ? void 0 : n.wind) == null ? void 0 : o.spd) < 17.2 ? V = "#03f869" : ((c = (h = A.properties) == null ? void 0 : h.wind) == null ? void 0 : c.spd) >= 17.2 && ((d = (f = A.properties) == null ? void 0 : f.wind) == null ? void 0 : d.spd) < 24.5 ? V = "#f2f202" : ((u = (m = A.properties) == null ? void 0 : m.wind) == null ? void 0 : u.spd) >= 24.5 && ((y = (g = A.properties) == null ? void 0 : g.wind) == null ? void 0 : y.spd) < 32.7 ? V = "#ff9100" : ((v = (p = A.properties) == null ? void 0 : p.wind) == null ? void 0 : v.spd) >= 32.7 && ((
|
|
2355
|
+
((o = (n = A.properties) == null ? void 0 : n.wind) == null ? void 0 : o.spd) < 17.2 ? V = "#03f869" : ((c = (h = A.properties) == null ? void 0 : h.wind) == null ? void 0 : c.spd) >= 17.2 && ((d = (f = A.properties) == null ? void 0 : f.wind) == null ? void 0 : d.spd) < 24.5 ? V = "#f2f202" : ((u = (m = A.properties) == null ? void 0 : m.wind) == null ? void 0 : u.spd) >= 24.5 && ((y = (g = A.properties) == null ? void 0 : g.wind) == null ? void 0 : y.spd) < 32.7 ? V = "#ff9100" : ((v = (p = A.properties) == null ? void 0 : p.wind) == null ? void 0 : v.spd) >= 32.7 && ((_ = (b = A.properties) == null ? void 0 : b.wind) == null ? void 0 : _.spd) < 41.5 ? V = "#f44336" : ((L = (P = A.properties) == null ? void 0 : P.wind) == null ? void 0 : L.spd) >= 41.5 && (($ = (I = A.properties) == null ? void 0 : I.wind) == null ? void 0 : $.spd) < 51 ? V = "#c604a4" : ((W = (D = A.properties) == null ? void 0 : D.wind) == null ? void 0 : W.spd) >= 51 ? V = "#6b05bb" : V = "#f44336";
|
|
2356
2356
|
const de = `<svg t="1719918955501"
|
|
2357
2357
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
2358
2358
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -2367,13 +2367,13 @@ const Vi = {
|
|
|
2367
2367
|
<path
|
|
2368
2368
|
d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
|
|
2369
2369
|
fill="#ffffff" p-id="18386"></path>
|
|
2370
|
-
</svg>`,
|
|
2371
|
-
|
|
2372
|
-
const ne = new ae.Marker(
|
|
2370
|
+
</svg>`, Y = document.createElement("div");
|
|
2371
|
+
Y.className = "hurricane-hourly-marker", Y.innerHTML = `<div class="${A.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${de}</div>`;
|
|
2372
|
+
const ne = new ae.Marker(Y).setLngLat(A.geometry.coordinates).addTo(this.map);
|
|
2373
2373
|
this.interpolateMarkers.push(ne);
|
|
2374
2374
|
}
|
|
2375
2375
|
} else
|
|
2376
|
-
(
|
|
2376
|
+
(N = this.map) != null && N.getSource(this.interpolateSource) && ((H = this.map) == null || H.getSource(this.interpolateSource).setData(this.empty));
|
|
2377
2377
|
},
|
|
2378
2378
|
handleClick(i) {
|
|
2379
2379
|
var s, n, o, h, c, f;
|
|
@@ -2477,18 +2477,18 @@ const Vi = {
|
|
|
2477
2477
|
style: { "justify-content": "flex-start" }
|
|
2478
2478
|
}, ra = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), sa = { class: "forecast-models" }, oa = ["onClick"], na = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-bb8414b4></div><div class="row" style="padding:2px 10px;" data-v-bb8414b4><div class="legend" data-v-bb8414b4><div class="icon td" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>TD</div></div><div class="legend" data-v-bb8414b4><div class="icon ts" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>TS</div></div><div class="legend" data-v-bb8414b4><div class="icon sts" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>STS</div></div><div class="legend" data-v-bb8414b4><div class="icon ty" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>TY</div></div><div class="legend" data-v-bb8414b4><div class="icon sty" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>STY</div></div><div class="legend" data-v-bb8414b4><div class="icon supper-ty" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-bb8414b4><div class="legend" data-v-bb8414b4><div class="icon history" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>History</div></div><div class="legend" data-v-bb8414b4><div class="icon r7" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>35kts Radii</div></div><div class="legend" data-v-bb8414b4><div class="icon r10" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>50kts Radii</div></div></div>', 3), la = { class: "more" };
|
|
2479
2479
|
function ha(i, e, t, r, a, s) {
|
|
2480
|
-
var n, o, h, c, f, d, m, u, g, y, p, v, b,
|
|
2480
|
+
var n, o, h, c, f, d, m, u, g, y, p, v, b, _, P;
|
|
2481
2481
|
return ze((w(), x("div", Ui, [
|
|
2482
2482
|
l("div", Gi, [
|
|
2483
2483
|
l("div", {
|
|
2484
2484
|
class: "iconfont close-btn",
|
|
2485
|
-
onClick: e[0] || (e[0] = (
|
|
2485
|
+
onClick: e[0] || (e[0] = (L) => a.showTropicals = !1)
|
|
2486
2486
|
}, ""),
|
|
2487
2487
|
l("div", Hi, [
|
|
2488
|
-
(o = (n = a.activeTropicals) == null ? void 0 : n.history) != null && o.level ? (w(), x("span", Xi, S((c = (h = a.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : c.level) + " , ", 1)) :
|
|
2488
|
+
(o = (n = a.activeTropicals) == null ? void 0 : n.history) != null && o.level ? (w(), x("span", Xi, S((c = (h = a.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : c.level) + " , ", 1)) : O("", !0),
|
|
2489
2489
|
Qe(S((f = a.activeTropicals) == null ? void 0 : f.name), 1)
|
|
2490
2490
|
]),
|
|
2491
|
-
l("div", Zi, " Last update: " + S(s.computeTime(((m = (d = a.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : m.updated) || ((y = (g = (u = a.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : g.filter((
|
|
2491
|
+
l("div", Zi, " Last update: " + S(s.computeTime(((m = (d = a.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : m.updated) || ((y = (g = (u = a.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : g.filter((L) => !L.disabled)[0]) == null ? void 0 : y.date))), 1)
|
|
2492
2492
|
]),
|
|
2493
2493
|
l("div", Ji, [
|
|
2494
2494
|
l("div", Yi, [
|
|
@@ -2499,27 +2499,27 @@ function ha(i, e, t, r, a, s) {
|
|
|
2499
2499
|
]),
|
|
2500
2500
|
l("div", ea, [
|
|
2501
2501
|
ta,
|
|
2502
|
-
l("span", null, S(((
|
|
2502
|
+
l("span", null, S(((_ = (b = a.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : _.pressure) || "-") + "[hPa]", 1)
|
|
2503
2503
|
])
|
|
2504
2504
|
]),
|
|
2505
2505
|
l("div", ia, [
|
|
2506
2506
|
l("div", aa, [
|
|
2507
2507
|
ra,
|
|
2508
2508
|
l("div", sa, [
|
|
2509
|
-
(w(!0), x($e, null, De((P = a.activeTropicals) == null ? void 0 : P.forecasts, (
|
|
2510
|
-
var $, D,
|
|
2509
|
+
(w(!0), x($e, null, De((P = a.activeTropicals) == null ? void 0 : P.forecasts, (L, I) => {
|
|
2510
|
+
var $, D, W, N;
|
|
2511
2511
|
return w(), x("div", {
|
|
2512
2512
|
key: I,
|
|
2513
2513
|
class: z([
|
|
2514
2514
|
"model",
|
|
2515
|
-
|
|
2516
|
-
I > 0 && I < ((D = ($ = a.activeTropicals) == null ? void 0 : $.forecasts) == null ? void 0 : D.length) - 1 && ((
|
|
2515
|
+
L.disabled ? "" : "active",
|
|
2516
|
+
I > 0 && I < ((D = ($ = a.activeTropicals) == null ? void 0 : $.forecasts) == null ? void 0 : D.length) - 1 && ((N = (W = a.activeTropicals) == null ? void 0 : W.forecasts) == null ? void 0 : N.length) > 2 ? "center-child" : ""
|
|
2517
2517
|
]),
|
|
2518
|
-
onClick: (H) => s.handleForecastToggle(
|
|
2518
|
+
onClick: (H) => s.handleForecastToggle(L)
|
|
2519
2519
|
}, [
|
|
2520
2520
|
l("span", {
|
|
2521
|
-
class: z(
|
|
2522
|
-
}, S(
|
|
2521
|
+
class: z(L.model)
|
|
2522
|
+
}, S(L.model), 3)
|
|
2523
2523
|
], 10, oa);
|
|
2524
2524
|
}), 128))
|
|
2525
2525
|
])
|
|
@@ -2530,7 +2530,7 @@ function ha(i, e, t, r, a, s) {
|
|
|
2530
2530
|
l("div", la, [
|
|
2531
2531
|
l("div", {
|
|
2532
2532
|
class: "button",
|
|
2533
|
-
onClick: e[1] || (e[1] = (
|
|
2533
|
+
onClick: e[1] || (e[1] = (L) => s.handleStrikeProbability(a.activeTropicals))
|
|
2534
2534
|
}, "Strike Probability >>")
|
|
2535
2535
|
])
|
|
2536
2536
|
])
|
|
@@ -2640,7 +2640,7 @@ const ca = {
|
|
|
2640
2640
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
2641
2641
|
}
|
|
2642
2642
|
}
|
|
2643
|
-
}, se = (i) => (U("data-v-42b977ed"), i = i(), G(), i), da = { key: 0 }, pa = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "mm", -1)), ma = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "1.5", -1)), ua = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "2", -1)), fa = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "3", -1)), ya = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "7", -1)), ga = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "10", -1)), ba = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "20", -1)), va = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "30", -1)),
|
|
2643
|
+
}, se = (i) => (U("data-v-42b977ed"), i = i(), G(), i), da = { key: 0 }, pa = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "mm", -1)), ma = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "1.5", -1)), ua = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "2", -1)), fa = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "3", -1)), ya = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "7", -1)), ga = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "10", -1)), ba = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "20", -1)), va = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "30", -1)), La = [
|
|
2644
2644
|
pa,
|
|
2645
2645
|
ma,
|
|
2646
2646
|
ua,
|
|
@@ -2650,16 +2650,16 @@ const ca = {
|
|
|
2650
2650
|
ba,
|
|
2651
2651
|
va
|
|
2652
2652
|
];
|
|
2653
|
-
function
|
|
2653
|
+
function _a(i, e, t, r, a, s) {
|
|
2654
2654
|
var n;
|
|
2655
2655
|
return (n = t.factor) != null && n.active ? (w(), x("div", da, [
|
|
2656
2656
|
l("div", {
|
|
2657
2657
|
class: "legend-bars flex-center",
|
|
2658
|
-
style:
|
|
2659
|
-
},
|
|
2660
|
-
])) :
|
|
2658
|
+
style: j([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
2659
|
+
}, La, 4)
|
|
2660
|
+
])) : O("", !0);
|
|
2661
2661
|
}
|
|
2662
|
-
const wa = /* @__PURE__ */ k(ca, [["render",
|
|
2662
|
+
const wa = /* @__PURE__ */ k(ca, [["render", _a], ["__scopeId", "data-v-42b977ed"]]);
|
|
2663
2663
|
const xa = {
|
|
2664
2664
|
name: "IdmVisibility",
|
|
2665
2665
|
props: {
|
|
@@ -2767,9 +2767,9 @@ function Aa(i, e, t, r, a, s) {
|
|
|
2767
2767
|
return (n = t.factor) != null && n.active ? (w(), x("div", Ca, [
|
|
2768
2768
|
l("div", {
|
|
2769
2769
|
class: "legend-bars flex-center",
|
|
2770
|
-
style:
|
|
2770
|
+
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
2771
2771
|
}, Ia, 4)
|
|
2772
|
-
])) :
|
|
2772
|
+
])) : O("", !0);
|
|
2773
2773
|
}
|
|
2774
2774
|
const $a = /* @__PURE__ */ k(xa, [["render", Aa], ["__scopeId", "data-v-2a5fbadd"]]);
|
|
2775
2775
|
const Da = {
|
|
@@ -2887,9 +2887,9 @@ function Va(i, e, t, r, a, s) {
|
|
|
2887
2887
|
return (n = t.factor) != null && n.active ? (w(), x("div", za, [
|
|
2888
2888
|
l("div", {
|
|
2889
2889
|
class: "legend-bars flex-center",
|
|
2890
|
-
style:
|
|
2890
|
+
style: j([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
2891
2891
|
}, Fa, 4)
|
|
2892
|
-
])) :
|
|
2892
|
+
])) : O("", !0);
|
|
2893
2893
|
}
|
|
2894
2894
|
const Ua = /* @__PURE__ */ k(Da, [["render", Va], ["__scopeId", "data-v-5b28deaf"]]);
|
|
2895
2895
|
const Ga = {
|
|
@@ -3012,9 +3012,9 @@ function ir(i, e, t, r, a, s) {
|
|
|
3012
3012
|
return (n = t.factor) != null && n.active ? (w(), x("div", Ha, [
|
|
3013
3013
|
l("div", {
|
|
3014
3014
|
class: "legend-bars flex-center",
|
|
3015
|
-
style:
|
|
3015
|
+
style: j([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
3016
3016
|
}, tr, 4)
|
|
3017
|
-
])) :
|
|
3017
|
+
])) : O("", !0);
|
|
3018
3018
|
}
|
|
3019
3019
|
const ar = /* @__PURE__ */ k(Ga, [["render", ir], ["__scopeId", "data-v-72cd9cf1"]]);
|
|
3020
3020
|
const rr = {
|
|
@@ -3126,9 +3126,9 @@ function mr(i, e, t, r, a, s) {
|
|
|
3126
3126
|
return (n = t.factor) != null && n.active ? (w(), x("div", sr, [
|
|
3127
3127
|
l("div", {
|
|
3128
3128
|
class: "legend-bars flex-center",
|
|
3129
|
-
style:
|
|
3129
|
+
style: j([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
3130
3130
|
}, pr, 4)
|
|
3131
|
-
])) :
|
|
3131
|
+
])) : O("", !0);
|
|
3132
3132
|
}
|
|
3133
3133
|
const ur = /* @__PURE__ */ k(rr, [["render", mr], ["__scopeId", "data-v-2092df03"]]);
|
|
3134
3134
|
const fr = {
|
|
@@ -3173,22 +3173,22 @@ const fr = {
|
|
|
3173
3173
|
computed: {
|
|
3174
3174
|
computeTime() {
|
|
3175
3175
|
return function(i) {
|
|
3176
|
-
return i ? `${
|
|
3176
|
+
return i ? `${K(i).utc().format("MMM-DD,HHmm[Z]")}` : "-";
|
|
3177
3177
|
};
|
|
3178
3178
|
},
|
|
3179
3179
|
computeLat() {
|
|
3180
3180
|
return function(i, e = 4) {
|
|
3181
|
-
return
|
|
3181
|
+
return Q.lat2pretty(i, e).pretty;
|
|
3182
3182
|
};
|
|
3183
3183
|
},
|
|
3184
3184
|
computeLng() {
|
|
3185
3185
|
return function(i, e = 4) {
|
|
3186
|
-
return
|
|
3186
|
+
return Q.lng2pretty(i, e).pretty;
|
|
3187
3187
|
};
|
|
3188
3188
|
},
|
|
3189
3189
|
roundPrecision() {
|
|
3190
3190
|
return function(i, e = 4) {
|
|
3191
|
-
return isNaN(i) ? "-" :
|
|
3191
|
+
return isNaN(i) ? "-" : Q.roundPrecision(i, e);
|
|
3192
3192
|
};
|
|
3193
3193
|
}
|
|
3194
3194
|
},
|
|
@@ -3210,12 +3210,18 @@ const fr = {
|
|
|
3210
3210
|
}
|
|
3211
3211
|
}
|
|
3212
3212
|
}
|
|
3213
|
-
},
|
|
3213
|
+
}, J = (i) => (U("data-v-a7923724"), i = i(), G(), i), yr = {
|
|
3214
3214
|
id: "point-meteo",
|
|
3215
3215
|
class: "point-meteo"
|
|
3216
|
-
}, gr = { class: "meteo-box" }, br = { class: "header-box" }, vr = { class: "main" },
|
|
3217
|
-
|
|
3218
|
-
|
|
3216
|
+
}, gr = { class: "meteo-box" }, br = { class: "header-box" }, vr = { class: "main" }, Lr = { class: "sub" }, _r = { class: "main-box" }, wr = { class: "flex-space" }, xr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Cr = { class: "flex-space" }, Sr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), Pr = { class: "flex-space" }, Tr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Er = { class: "flex-space" }, kr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), Rr = { class: "flex-space" }, Ir = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Current", -1)), Ar = { class: "flex-space" }, $r = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Dr = { class: "flex-space" }, zr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Mr = { class: "flex-space" }, Br = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Or = { class: "flex-space" }, Wr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), Nr = {
|
|
3217
|
+
key: 0,
|
|
3218
|
+
class: "flex-space",
|
|
3219
|
+
style: { "justify-content": "flex-end" }
|
|
3220
|
+
}, jr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "more" }, "More >>", -1)), Fr = [
|
|
3221
|
+
jr
|
|
3222
|
+
];
|
|
3223
|
+
function Vr(i, e, t, r, a, s) {
|
|
3224
|
+
var n, o, h, c, f, d, m, u, g, y, p, v, b, _, P, L, I, $, D, W, N, H, Z, ee, ce, te, A, V, de, Y, ne, ye, ge, be, ve, Le, _e, we, xe, Ce, Se, Pe, Te, Ee, ke, Re, Ie;
|
|
3219
3225
|
return ze((w(), x("div", yr, [
|
|
3220
3226
|
l("div", gr, [
|
|
3221
3227
|
l("div", br, [
|
|
@@ -3224,24 +3230,24 @@ function Nr(i, e, t, r, a, s) {
|
|
|
3224
3230
|
onClick: e[0] || (e[0] = (Oe) => a.showMeteo = !1)
|
|
3225
3231
|
}, ""),
|
|
3226
3232
|
l("div", vr, S(s.computeLat((n = t.meteo) == null ? void 0 : n.lat)) + "," + S(s.computeLng((o = t.meteo) == null ? void 0 : o.lng)), 1),
|
|
3227
|
-
l("div",
|
|
3233
|
+
l("div", Lr, S(s.computeTime((h = t.meteo) == null ? void 0 : h.utc)), 1)
|
|
3228
3234
|
]),
|
|
3229
|
-
l("div",
|
|
3235
|
+
l("div", _r, [
|
|
3230
3236
|
l("div", wr, [
|
|
3231
3237
|
xr,
|
|
3232
3238
|
l("span", null, S(((f = (c = t.meteo) == null ? void 0 : c.wind) == null ? void 0 : f.direction) || "-") + "/" + S(s.roundPrecision((m = (d = t.meteo) == null ? void 0 : d.wind) == null ? void 0 : m.kts, 1)) + "[kts]/" + S((g = (u = t.meteo) == null ? void 0 : u.wind) == null ? void 0 : g.scale) + "[BF]/" + S(s.roundPrecision((p = (y = t.meteo) == null ? void 0 : y.gusts) == null ? void 0 : p.kts, 1)) + "[kts]", 1)
|
|
3233
3239
|
]),
|
|
3234
3240
|
l("div", Cr, [
|
|
3235
3241
|
Sr,
|
|
3236
|
-
l("span", null, S(((
|
|
3242
|
+
l("span", null, S(((_ = (b = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : _.direction) || "-") + "/" + S(s.roundPrecision((I = (L = (P = t.meteo) == null ? void 0 : P.wave) == null ? void 0 : L.wd) == null ? void 0 : I.height, 1)) + "[m]/" + S(s.roundPrecision((W = (D = ($ = t.meteo) == null ? void 0 : $.wave) == null ? void 0 : D.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
|
|
3237
3243
|
]),
|
|
3238
3244
|
l("div", Pr, [
|
|
3239
3245
|
Tr,
|
|
3240
|
-
l("span", null, S(((Z = (H = (
|
|
3246
|
+
l("span", null, S(((Z = (H = (N = t.meteo) == null ? void 0 : N.wave) == null ? void 0 : H.swell) == null ? void 0 : Z.direction) || "-") + "/" + S(s.roundPrecision((te = (ce = (ee = t.meteo) == null ? void 0 : ee.wave) == null ? void 0 : ce.swell) == null ? void 0 : te.height, 1)) + "[m]/" + S(s.roundPrecision((de = (V = (A = t.meteo) == null ? void 0 : A.wave) == null ? void 0 : V.swell) == null ? void 0 : de.period, 1)) + "[s]", 1)
|
|
3241
3247
|
]),
|
|
3242
3248
|
l("div", Er, [
|
|
3243
3249
|
kr,
|
|
3244
|
-
l("span", null, S(((ye = (ne = (
|
|
3250
|
+
l("span", null, S(((ye = (ne = (Y = t.meteo) == null ? void 0 : Y.wave) == null ? void 0 : ne.sig) == null ? void 0 : ye.direction) || "-") + "/" + S(s.roundPrecision((ve = (be = (ge = t.meteo) == null ? void 0 : ge.wave) == null ? void 0 : be.sig) == null ? void 0 : ve.height, 1)) + "[m]/" + S(s.roundPrecision((we = (_e = (Le = t.meteo) == null ? void 0 : Le.wave) == null ? void 0 : _e.sig) == null ? void 0 : we.period, 1)) + "[s]", 1)
|
|
3245
3251
|
]),
|
|
3246
3252
|
l("div", Rr, [
|
|
3247
3253
|
Ir,
|
|
@@ -3263,13 +3269,14 @@ function Nr(i, e, t, r, a, s) {
|
|
|
3263
3269
|
Wr,
|
|
3264
3270
|
l("span", null, S(s.roundPrecision((Ie = t.meteo) == null ? void 0 : Ie.waterTemp, 2)) + "[°C]", 1)
|
|
3265
3271
|
])
|
|
3266
|
-
])
|
|
3272
|
+
]),
|
|
3273
|
+
i.$attrs.permission & a.helper.LEVEL.Prime ? (w(), x("div", Nr, Fr)) : O("", !0)
|
|
3267
3274
|
])
|
|
3268
3275
|
], 512)), [
|
|
3269
3276
|
[Me, a.showMeteo]
|
|
3270
3277
|
]);
|
|
3271
3278
|
}
|
|
3272
|
-
const
|
|
3279
|
+
const Ur = /* @__PURE__ */ k(fr, [["render", Vr], ["__scopeId", "data-v-a7923724"]]), Gr = {
|
|
3273
3280
|
name: "IdmWarZone",
|
|
3274
3281
|
props: {
|
|
3275
3282
|
map: {
|
|
@@ -3359,10 +3366,10 @@ const jr = /* @__PURE__ */ k(fr, [["render", Nr], ["__scopeId", "data-v-8b51d938
|
|
|
3359
3366
|
}
|
|
3360
3367
|
}
|
|
3361
3368
|
};
|
|
3362
|
-
function
|
|
3369
|
+
function Hr(i, e, t, r, a, s) {
|
|
3363
3370
|
return w(), x("div");
|
|
3364
3371
|
}
|
|
3365
|
-
const
|
|
3372
|
+
const Xr = /* @__PURE__ */ k(Gr, [["render", Hr]]), Zr = {
|
|
3366
3373
|
name: "IdmGmdssArea",
|
|
3367
3374
|
props: {
|
|
3368
3375
|
map: {
|
|
@@ -3482,10 +3489,10 @@ const Ur = /* @__PURE__ */ k(Fr, [["render", Vr]]), Gr = {
|
|
|
3482
3489
|
}
|
|
3483
3490
|
}
|
|
3484
3491
|
};
|
|
3485
|
-
function
|
|
3492
|
+
function Jr(i, e, t, r, a, s) {
|
|
3486
3493
|
return w(), x("div");
|
|
3487
3494
|
}
|
|
3488
|
-
const
|
|
3495
|
+
const Yr = /* @__PURE__ */ k(Zr, [["render", Jr]]), qr = {
|
|
3489
3496
|
name: "IdmEcaZone",
|
|
3490
3497
|
props: {
|
|
3491
3498
|
map: {
|
|
@@ -3573,11 +3580,11 @@ const Xr = /* @__PURE__ */ k(Gr, [["render", Hr]]), Zr = {
|
|
|
3573
3580
|
}
|
|
3574
3581
|
}
|
|
3575
3582
|
};
|
|
3576
|
-
function
|
|
3583
|
+
function Kr(i, e, t, r, a, s) {
|
|
3577
3584
|
return w(), x("div");
|
|
3578
3585
|
}
|
|
3579
|
-
const
|
|
3580
|
-
const
|
|
3586
|
+
const Qr = /* @__PURE__ */ k(qr, [["render", Kr]]);
|
|
3587
|
+
const es = {
|
|
3581
3588
|
name: "IdmAlertZone",
|
|
3582
3589
|
props: {
|
|
3583
3590
|
map: {
|
|
@@ -3703,10 +3710,10 @@ const qr = {
|
|
|
3703
3710
|
this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
3704
3711
|
}
|
|
3705
3712
|
}
|
|
3706
|
-
},
|
|
3707
|
-
function
|
|
3713
|
+
}, ts = { id: "zone-info" }, is = ["innerHTML"];
|
|
3714
|
+
function as(i, e, t, r, a, s) {
|
|
3708
3715
|
var n;
|
|
3709
|
-
return ze((w(), x("div",
|
|
3716
|
+
return ze((w(), x("div", ts, [
|
|
3710
3717
|
l("div", {
|
|
3711
3718
|
class: "iconfont close",
|
|
3712
3719
|
onClick: e[0] || (e[0] = (o) => a.showZone = !1)
|
|
@@ -3714,13 +3721,13 @@ function es(i, e, t, r, a, s) {
|
|
|
3714
3721
|
l("div", {
|
|
3715
3722
|
class: "rich-context",
|
|
3716
3723
|
innerHTML: (n = a.form) == null ? void 0 : n.name
|
|
3717
|
-
}, null, 8,
|
|
3724
|
+
}, null, 8, is)
|
|
3718
3725
|
], 512)), [
|
|
3719
3726
|
[Me, a.showZone]
|
|
3720
3727
|
]);
|
|
3721
3728
|
}
|
|
3722
|
-
const
|
|
3723
|
-
const
|
|
3729
|
+
const rs = /* @__PURE__ */ k(es, [["render", as], ["__scopeId", "data-v-d1cb4e6e"]]);
|
|
3730
|
+
const ss = {
|
|
3724
3731
|
name: "IdmPort",
|
|
3725
3732
|
props: {
|
|
3726
3733
|
map: {
|
|
@@ -3746,12 +3753,12 @@ const is = {
|
|
|
3746
3753
|
computed: {
|
|
3747
3754
|
computeLat() {
|
|
3748
3755
|
return function(i) {
|
|
3749
|
-
return
|
|
3756
|
+
return Q.lat2pretty(i, 4).pretty;
|
|
3750
3757
|
};
|
|
3751
3758
|
},
|
|
3752
3759
|
computeLng() {
|
|
3753
3760
|
return function(i) {
|
|
3754
|
-
return
|
|
3761
|
+
return Q.lng2pretty(i, 4).pretty;
|
|
3755
3762
|
};
|
|
3756
3763
|
}
|
|
3757
3764
|
},
|
|
@@ -3812,33 +3819,33 @@ const is = {
|
|
|
3812
3819
|
this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
3813
3820
|
}
|
|
3814
3821
|
}
|
|
3815
|
-
}, Be = (i) => (U("data-v-6fdfee96"), i = i(), G(), i),
|
|
3822
|
+
}, Be = (i) => (U("data-v-6fdfee96"), i = i(), G(), i), os = { id: "port-info" }, ns = { class: "port-box" }, ls = { class: "flex-start" }, hs = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), cs = { class: "flex-start" }, ds = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), ps = { class: "flex-start" }, ms = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), us = {
|
|
3816
3823
|
class: "flex-start",
|
|
3817
3824
|
style: { "align-items": "flex-start" }
|
|
3818
|
-
},
|
|
3819
|
-
function
|
|
3820
|
-
return ze((w(), x("div",
|
|
3825
|
+
}, fs = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
|
|
3826
|
+
function ys(i, e, t, r, a, s) {
|
|
3827
|
+
return ze((w(), x("div", os, [
|
|
3821
3828
|
l("div", {
|
|
3822
3829
|
class: "close iconfont",
|
|
3823
3830
|
onClick: e[0] || (e[0] = (n) => a.showPort = !1)
|
|
3824
3831
|
}, ""),
|
|
3825
|
-
l("div",
|
|
3826
|
-
l("div",
|
|
3827
|
-
|
|
3832
|
+
l("div", ns, [
|
|
3833
|
+
l("div", ls, [
|
|
3834
|
+
hs,
|
|
3828
3835
|
l("span", {
|
|
3829
3836
|
onClick: e[1] || (e[1] = (...n) => s.handleEmit && s.handleEmit(...n))
|
|
3830
3837
|
}, S(a.form.name), 1)
|
|
3831
3838
|
]),
|
|
3832
|
-
l("div",
|
|
3833
|
-
|
|
3839
|
+
l("div", cs, [
|
|
3840
|
+
ds,
|
|
3834
3841
|
l("span", null, S(s.computeLat(a.form.lat)) + ", " + S(s.computeLng(a.form.lng)), 1)
|
|
3835
3842
|
]),
|
|
3836
|
-
l("div",
|
|
3837
|
-
|
|
3843
|
+
l("div", ps, [
|
|
3844
|
+
ms,
|
|
3838
3845
|
l("span", null, S(a.form.loCode || "-"), 1)
|
|
3839
3846
|
]),
|
|
3840
|
-
l("div",
|
|
3841
|
-
|
|
3847
|
+
l("div", us, [
|
|
3848
|
+
fs,
|
|
3842
3849
|
l("span", null, S(a.form.city || "-") + ", " + S(a.form.country || "-"), 1)
|
|
3843
3850
|
])
|
|
3844
3851
|
])
|
|
@@ -3846,7 +3853,7 @@ function ms(i, e, t, r, a, s) {
|
|
|
3846
3853
|
[Me, a.showPort]
|
|
3847
3854
|
]);
|
|
3848
3855
|
}
|
|
3849
|
-
const
|
|
3856
|
+
const gs = /* @__PURE__ */ k(ss, [["render", ys], ["__scopeId", "data-v-6fdfee96"]]), bs = {
|
|
3850
3857
|
name: "IdmLoadLine",
|
|
3851
3858
|
props: {
|
|
3852
3859
|
map: {
|
|
@@ -3916,10 +3923,10 @@ const us = /* @__PURE__ */ k(is, [["render", ms], ["__scopeId", "data-v-6fdfee96
|
|
|
3916
3923
|
}
|
|
3917
3924
|
}
|
|
3918
3925
|
};
|
|
3919
|
-
function
|
|
3926
|
+
function vs(i, e, t, r, a, s) {
|
|
3920
3927
|
return w(), x("div");
|
|
3921
3928
|
}
|
|
3922
|
-
const
|
|
3929
|
+
const Ls = /* @__PURE__ */ k(bs, [["render", vs]]), _s = {
|
|
3923
3930
|
name: "IdmTimezone",
|
|
3924
3931
|
props: {
|
|
3925
3932
|
map: {
|
|
@@ -4084,10 +4091,10 @@ const gs = /* @__PURE__ */ k(fs, [["render", ys]]), bs = {
|
|
|
4084
4091
|
}
|
|
4085
4092
|
}
|
|
4086
4093
|
};
|
|
4087
|
-
function
|
|
4094
|
+
function ws(i, e, t, r, a, s) {
|
|
4088
4095
|
return w(), x("div");
|
|
4089
4096
|
}
|
|
4090
|
-
const
|
|
4097
|
+
const xs = /* @__PURE__ */ k(_s, [["render", ws]]), Cs = {
|
|
4091
4098
|
name: "IdmVoluntaryReportingArea",
|
|
4092
4099
|
props: {
|
|
4093
4100
|
map: {
|
|
@@ -4175,10 +4182,10 @@ const _s = /* @__PURE__ */ k(bs, [["render", vs]]), Ls = {
|
|
|
4175
4182
|
}
|
|
4176
4183
|
}
|
|
4177
4184
|
};
|
|
4178
|
-
function
|
|
4185
|
+
function Ss(i, e, t, r, a, s) {
|
|
4179
4186
|
return w(), x("div");
|
|
4180
4187
|
}
|
|
4181
|
-
const
|
|
4188
|
+
const Ps = /* @__PURE__ */ k(Cs, [["render", Ss]]), Ts = {
|
|
4182
4189
|
name: "IdmSpecialArea",
|
|
4183
4190
|
props: {
|
|
4184
4191
|
map: {
|
|
@@ -4268,10 +4275,10 @@ const xs = /* @__PURE__ */ k(Ls, [["render", ws]]), Cs = {
|
|
|
4268
4275
|
}
|
|
4269
4276
|
}
|
|
4270
4277
|
};
|
|
4271
|
-
function
|
|
4278
|
+
function Es(i, e, t, r, a, s) {
|
|
4272
4279
|
return w(), x("div");
|
|
4273
4280
|
}
|
|
4274
|
-
const
|
|
4281
|
+
const ks = /* @__PURE__ */ k(Ts, [["render", Es]]), Rs = {
|
|
4275
4282
|
name: "IdmTerminator",
|
|
4276
4283
|
props: {
|
|
4277
4284
|
map: {
|
|
@@ -4320,11 +4327,11 @@ const Ps = /* @__PURE__ */ k(Cs, [["render", Ss]]), Ts = {
|
|
|
4320
4327
|
}
|
|
4321
4328
|
}
|
|
4322
4329
|
};
|
|
4323
|
-
function
|
|
4330
|
+
function Is(i, e, t, r, a, s) {
|
|
4324
4331
|
return w(), x("div");
|
|
4325
4332
|
}
|
|
4326
|
-
const
|
|
4327
|
-
const
|
|
4333
|
+
const As = /* @__PURE__ */ k(Rs, [["render", Is]]);
|
|
4334
|
+
const $s = {
|
|
4328
4335
|
name: "IdmLatLng",
|
|
4329
4336
|
props: {
|
|
4330
4337
|
map: {
|
|
@@ -4382,7 +4389,7 @@ const Rs = {
|
|
|
4382
4389
|
this.show ? ((i = this.map) == null || i.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
4383
4390
|
},
|
|
4384
4391
|
handleMouseMove(i) {
|
|
4385
|
-
const e = i.lngLat, t =
|
|
4392
|
+
const e = i.lngLat, t = Q.lng2pretty(e.lng, 2), r = Q.lat2pretty(e.lat, 2);
|
|
4386
4393
|
this.lngLat = { lng: t, lat: r };
|
|
4387
4394
|
},
|
|
4388
4395
|
handleComputeLatLngs() {
|
|
@@ -4479,19 +4486,19 @@ const Rs = {
|
|
|
4479
4486
|
(i = this.map) != null && i.getLayer(this.layer) && ((e = this.map) == null || e.removeLayer(this.layer)), (t = this.map) != null && t.getLayer(this.labelLayer) && ((r = this.map) == null || r.removeLayer(this.labelLayer)), (a = this.map) != null && a.getSource(this.source) && ((s = this.map) == null || s.removeSource(this.source));
|
|
4480
4487
|
}
|
|
4481
4488
|
}
|
|
4482
|
-
},
|
|
4483
|
-
function
|
|
4489
|
+
}, Ds = (i) => (U("data-v-9f51b3f9"), i = i(), G(), i), zs = /* @__PURE__ */ Ds(() => /* @__PURE__ */ l("span", null, ", ", -1));
|
|
4490
|
+
function Ms(i, e, t, r, a, s) {
|
|
4484
4491
|
return a.lngLat ? (w(), x("div", {
|
|
4485
4492
|
key: 0,
|
|
4486
4493
|
class: "lat-lng-tip",
|
|
4487
|
-
style:
|
|
4494
|
+
style: j({ right: a.right + "px", bottom: t.bottom })
|
|
4488
4495
|
}, [
|
|
4489
4496
|
l("span", null, S(a.lngLat.lat.pretty), 1),
|
|
4490
|
-
|
|
4497
|
+
zs,
|
|
4491
4498
|
l("span", null, S(a.lngLat.lng.pretty), 1)
|
|
4492
|
-
], 4)) :
|
|
4499
|
+
], 4)) : O("", !0);
|
|
4493
4500
|
}
|
|
4494
|
-
const it = /* @__PURE__ */ k(
|
|
4501
|
+
const it = /* @__PURE__ */ k($s, [["render", Ms], ["__scopeId", "data-v-9f51b3f9"]]), Bs = {
|
|
4495
4502
|
name: "IdmMeasure",
|
|
4496
4503
|
props: {
|
|
4497
4504
|
map: {
|
|
@@ -4632,7 +4639,7 @@ const it = /* @__PURE__ */ k(Rs, [["render", $s], ["__scopeId", "data-v-9f51b3f9
|
|
|
4632
4639
|
const r = [];
|
|
4633
4640
|
for (let a = 1; a < e.length; a++) {
|
|
4634
4641
|
const s = e[a - 1], n = e[a], o = s.properties, h = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, c = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, f = We(h, c, o.mode === "RL", 2), d = Ne(h, c, o.mode === "RL", 2);
|
|
4635
|
-
t =
|
|
4642
|
+
t = Q.roundPrecision(t + f, 2);
|
|
4636
4643
|
let m;
|
|
4637
4644
|
o.mode === "RL" ? m = pe([h, c]) : m = pe(je(h, c, 200));
|
|
4638
4645
|
const u = C.lineString(m.map((g) => [g.lng, g.lat]));
|
|
@@ -4699,7 +4706,7 @@ const it = /* @__PURE__ */ k(Rs, [["render", $s], ["__scopeId", "data-v-9f51b3f9
|
|
|
4699
4706
|
}
|
|
4700
4707
|
});
|
|
4701
4708
|
let o;
|
|
4702
|
-
if (r ? o = '<div class="marker-label">Drag and drop</div>' : o = `<div class="marker-label">Tol distance: <b>${
|
|
4709
|
+
if (r ? o = '<div class="marker-label">Drag and drop</div>' : o = `<div class="marker-label">Tol distance: <b>${Q.roundPrecision((i.total ?? 0) + s, 2)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
|
|
4703
4710
|
this.tipMarker._element.innerHTML = o, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
4704
4711
|
else {
|
|
4705
4712
|
const h = document.createElement("div");
|
|
@@ -4779,11 +4786,11 @@ const it = /* @__PURE__ */ k(Rs, [["render", $s], ["__scopeId", "data-v-9f51b3f9
|
|
|
4779
4786
|
}
|
|
4780
4787
|
}
|
|
4781
4788
|
};
|
|
4782
|
-
function
|
|
4789
|
+
function Os(i, e, t, r, a, s) {
|
|
4783
4790
|
return w(), x("div");
|
|
4784
4791
|
}
|
|
4785
|
-
const
|
|
4786
|
-
const
|
|
4792
|
+
const Ws = /* @__PURE__ */ k(Bs, [["render", Os]]);
|
|
4793
|
+
const Ns = {
|
|
4787
4794
|
name: "IdmENC",
|
|
4788
4795
|
props: {
|
|
4789
4796
|
map: {
|
|
@@ -4835,32 +4842,32 @@ const Bs = {
|
|
|
4835
4842
|
}
|
|
4836
4843
|
},
|
|
4837
4844
|
methods: {}
|
|
4838
|
-
}, at = (i) => (U("data-v-2d85e33b"), i = i(), G(), i),
|
|
4839
|
-
|
|
4840
|
-
],
|
|
4841
|
-
|
|
4845
|
+
}, at = (i) => (U("data-v-2d85e33b"), i = i(), G(), i), js = { key: 0 }, Fs = { class: "bar-item" }, Vs = /* @__PURE__ */ at(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), Us = [
|
|
4846
|
+
Vs
|
|
4847
|
+
], Gs = /* @__PURE__ */ at(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), Hs = [
|
|
4848
|
+
Gs
|
|
4842
4849
|
];
|
|
4843
|
-
function
|
|
4844
|
-
return t.enabled && t.permission & a.helper.LEVEL.Supper ? (w(), x("div",
|
|
4850
|
+
function Xs(i, e, t, r, a, s) {
|
|
4851
|
+
return t.enabled && t.permission & a.helper.LEVEL.Supper ? (w(), x("div", js, [
|
|
4845
4852
|
l("div", {
|
|
4846
4853
|
class: "menu-bar-box",
|
|
4847
|
-
style:
|
|
4854
|
+
style: j({ position: "absolute", right: a.right + "px", bottom: t.bottom })
|
|
4848
4855
|
}, [
|
|
4849
|
-
l("div",
|
|
4856
|
+
l("div", Fs, [
|
|
4850
4857
|
l("div", {
|
|
4851
4858
|
class: z(a.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
4852
4859
|
onClick: e[0] || (e[0] = (n) => a.vendor = "hi")
|
|
4853
|
-
},
|
|
4860
|
+
}, Us, 2),
|
|
4854
4861
|
l("div", {
|
|
4855
4862
|
class: z(a.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
4856
4863
|
onClick: e[1] || (e[1] = (n) => a.vendor = "i4")
|
|
4857
|
-
},
|
|
4864
|
+
}, Hs, 2)
|
|
4858
4865
|
])
|
|
4859
4866
|
], 4)
|
|
4860
|
-
])) :
|
|
4867
|
+
])) : O("", !0);
|
|
4861
4868
|
}
|
|
4862
|
-
const
|
|
4863
|
-
const
|
|
4869
|
+
const Zs = /* @__PURE__ */ k(Ns, [["render", Xs], ["__scopeId", "data-v-2d85e33b"]]);
|
|
4870
|
+
const Js = {
|
|
4864
4871
|
name: "IdmGLV2",
|
|
4865
4872
|
components: {
|
|
4866
4873
|
IdmGlLayer: Vt,
|
|
@@ -4879,20 +4886,20 @@ const Hs = {
|
|
|
4879
4886
|
IdmWaterTemp: Ua,
|
|
4880
4887
|
IdmTemp: ar,
|
|
4881
4888
|
IdmArctic: ur,
|
|
4882
|
-
IdmWarZone:
|
|
4883
|
-
IdmGmdssArea:
|
|
4884
|
-
IdmEcaZone:
|
|
4885
|
-
IdmAlertZone:
|
|
4886
|
-
IdmPort:
|
|
4887
|
-
IdmLoadLine:
|
|
4888
|
-
IdmTimezone:
|
|
4889
|
-
IdmVRA:
|
|
4890
|
-
IdmSpecialArea:
|
|
4891
|
-
IdmTerminator:
|
|
4889
|
+
IdmWarZone: Xr,
|
|
4890
|
+
IdmGmdssArea: Yr,
|
|
4891
|
+
IdmEcaZone: Qr,
|
|
4892
|
+
IdmAlertZone: rs,
|
|
4893
|
+
IdmPort: gs,
|
|
4894
|
+
IdmLoadLine: Ls,
|
|
4895
|
+
IdmTimezone: xs,
|
|
4896
|
+
IdmVRA: Ps,
|
|
4897
|
+
IdmSpecialArea: ks,
|
|
4898
|
+
IdmTerminator: As,
|
|
4892
4899
|
IdmLatLng: it,
|
|
4893
|
-
IdmMeasure:
|
|
4894
|
-
IdmPoint:
|
|
4895
|
-
IdmENC:
|
|
4900
|
+
IdmMeasure: Ws,
|
|
4901
|
+
IdmPoint: Ur,
|
|
4902
|
+
IdmENC: Zs
|
|
4896
4903
|
},
|
|
4897
4904
|
props: {
|
|
4898
4905
|
map: {
|
|
@@ -4938,7 +4945,7 @@ const Hs = {
|
|
|
4938
4945
|
watch: {
|
|
4939
4946
|
ts: {
|
|
4940
4947
|
handler(i, e) {
|
|
4941
|
-
i && e &&
|
|
4948
|
+
i && e && K(i).utc().format("yyyy-MM-DD HH") !== K(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
4942
4949
|
this.handleDateChange({ tropicals: !1 });
|
|
4943
4950
|
});
|
|
4944
4951
|
},
|
|
@@ -4946,14 +4953,15 @@ const Hs = {
|
|
|
4946
4953
|
},
|
|
4947
4954
|
map: {
|
|
4948
4955
|
handler() {
|
|
4949
|
-
|
|
4956
|
+
var i, e, t, r, a, s, n, o, h, c, f, d, m, u, g, y, p;
|
|
4957
|
+
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Ue(this.map), this.handleRampColorInitial(), console.log(888, this.activeWeatherLayers), this.activeWeatherLayers.some((v) => ["wind", "current"].includes(v.key)) && ((i = this.particleFactor) != null && i.particle) || this.activeWeatherLayers.some((v) => ["temp", "water-temp"].includes(v.key)) ? ((t = (e = this.map) == null ? void 0 : e.getLayer("grayland")) == null || t.setLayoutProperty("visibility", "visible"), (a = (r = this.map) == null ? void 0 : r.getLayer("darkmap")) == null || a.setLayoutProperty("visibility", "visible"), (s = this.map) != null && s.getLayer("grayland") && ((o = this.map) == null || o.moveLayer((n = this.viewport) == null ? void 0 : n.rampColorLayer, "grayland")), (h = this.map) != null && h.getLayer("grayland") && ((f = this.map) == null || f.moveLayer((c = this.viewport) == null ? void 0 : c.particleLayer, "grayland"))) : ((m = this.map) == null || m.moveLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer, null), (g = (u = this.map) == null ? void 0 : u.getLayer("grayland")) == null || g.setLayoutProperty("visibility", "none"), (p = (y = this.map) == null ? void 0 : y.getLayer("darkmap")) == null || p.setLayoutProperty("visibility", "none")));
|
|
4950
4958
|
},
|
|
4951
4959
|
immediate: !0
|
|
4952
4960
|
},
|
|
4953
4961
|
activeWeatherLayers: {
|
|
4954
4962
|
handler() {
|
|
4955
4963
|
var i, e, t, r, a, s, n, o, h, c, f, d, m, u, g, y, p;
|
|
4956
|
-
if (!this.map)
|
|
4964
|
+
if (console.log(999, this.activeWeatherLayers), !this.map)
|
|
4957
4965
|
return !1;
|
|
4958
4966
|
this.activeWeatherLayers.some((v) => ["wind", "current"].includes(v.key)) && ((i = this.particleFactor) != null && i.particle) || this.activeWeatherLayers.some((v) => ["temp", "water-temp"].includes(v.key)) ? ((t = (e = this.map) == null ? void 0 : e.getLayer("grayland")) == null || t.setLayoutProperty("visibility", "visible"), (a = (r = this.map) == null ? void 0 : r.getLayer("darkmap")) == null || a.setLayoutProperty("visibility", "visible"), (s = this.map) != null && s.getLayer("grayland") && ((o = this.map) == null || o.moveLayer((n = this.viewport) == null ? void 0 : n.rampColorLayer, "grayland")), (h = this.map) != null && h.getLayer("grayland") && ((f = this.map) == null || f.moveLayer((c = this.viewport) == null ? void 0 : c.particleLayer, "grayland"))) : ((m = this.map) == null || m.moveLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer, null), (g = (u = this.map) == null ? void 0 : u.getLayer("grayland")) == null || g.setLayoutProperty("visibility", "none"), (p = (y = this.map) == null ? void 0 : y.getLayer("darkmap")) == null || p.setLayoutProperty("visibility", "none"));
|
|
4959
4967
|
},
|
|
@@ -4997,26 +5005,26 @@ const Hs = {
|
|
|
4997
5005
|
}
|
|
4998
5006
|
});
|
|
4999
5007
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((n = v == null ? void 0 : v.data) == null ? void 0 : n.code) === 0) {
|
|
5000
|
-
const b = (o = v == null ? void 0 : v.data) == null ? void 0 : o.data,
|
|
5001
|
-
for (const
|
|
5002
|
-
|
|
5003
|
-
ie.get(b[
|
|
5008
|
+
const b = (o = v == null ? void 0 : v.data) == null ? void 0 : o.data, _ = [];
|
|
5009
|
+
for (const L in b)
|
|
5010
|
+
L === "ice-edge" && (b[L] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), L !== "tropicals" && _.push(
|
|
5011
|
+
ie.get(b[L], {
|
|
5004
5012
|
headers: {
|
|
5005
5013
|
Authorization: this.token || this.defaultMeteoToken,
|
|
5006
|
-
key:
|
|
5014
|
+
key: L
|
|
5007
5015
|
},
|
|
5008
|
-
responseType: /\.(jpg|png)$/.test(b[
|
|
5016
|
+
responseType: /\.(jpg|png)$/.test(b[L]) ? "blob" : "json"
|
|
5009
5017
|
}).catch((I) => {
|
|
5010
|
-
console.log(`[${
|
|
5018
|
+
console.log(`[${L}] fetch layer error: ${I}`);
|
|
5011
5019
|
})
|
|
5012
5020
|
);
|
|
5013
|
-
const P = await Promise.all(
|
|
5014
|
-
this.weatherLayers = {}, P.map((
|
|
5015
|
-
var D,
|
|
5016
|
-
const I = ((D =
|
|
5021
|
+
const P = await Promise.all(_);
|
|
5022
|
+
this.weatherLayers = {}, P.map((L) => {
|
|
5023
|
+
var D, W, N, H;
|
|
5024
|
+
const I = ((D = L == null ? void 0 : L.data) == null ? void 0 : D.data) || (L == null ? void 0 : L.data), $ = (N = (W = L == null ? void 0 : L.config) == null ? void 0 : W.headers) == null ? void 0 : N.key;
|
|
5017
5025
|
$ && I && (this.weatherLayers[$] = {
|
|
5018
5026
|
raw: I,
|
|
5019
|
-
type: ((H =
|
|
5027
|
+
type: ((H = L == null ? void 0 : L.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
|
|
5020
5028
|
etime: this.ts
|
|
5021
5029
|
});
|
|
5022
5030
|
}), b.tropicals && ie.get(b.tropicals, {
|
|
@@ -5024,9 +5032,9 @@ const Hs = {
|
|
|
5024
5032
|
Authorization: this.token || this.defaultMeteoToken,
|
|
5025
5033
|
key: "tropicals"
|
|
5026
5034
|
}
|
|
5027
|
-
}).then((
|
|
5028
|
-
var D,
|
|
5029
|
-
const I = et.convert2Geojson(((D =
|
|
5035
|
+
}).then((L) => {
|
|
5036
|
+
var D, W, N;
|
|
5037
|
+
const I = et.convert2Geojson(((D = L == null ? void 0 : L.data) == null ? void 0 : D.data) || (L == null ? void 0 : L.data)), $ = (N = (W = L == null ? void 0 : L.config) == null ? void 0 : W.headers) == null ? void 0 : N.key;
|
|
5030
5038
|
this.weatherLayers[$] = {
|
|
5031
5039
|
data: I,
|
|
5032
5040
|
active: !0,
|
|
@@ -5038,20 +5046,20 @@ const Hs = {
|
|
|
5038
5046
|
});
|
|
5039
5047
|
}
|
|
5040
5048
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather layers elapsed: ", r, ", total: ", t += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
5041
|
-
const b = (h = this.weatherLayers["swell-direction"]) == null ? void 0 : h.raw,
|
|
5049
|
+
const b = (h = this.weatherLayers["swell-direction"]) == null ? void 0 : h.raw, _ = (c = this.weatherLayers["swell-height"]) == null ? void 0 : c.raw;
|
|
5042
5050
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
5043
5051
|
type: "json",
|
|
5044
5052
|
direction: b,
|
|
5045
|
-
height: { raw:
|
|
5053
|
+
height: { raw: _ },
|
|
5046
5054
|
etime: this.ts
|
|
5047
5055
|
};
|
|
5048
5056
|
}
|
|
5049
5057
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
5050
|
-
const b = (f = this.weatherLayers["current-direction"]) == null ? void 0 : f.raw,
|
|
5058
|
+
const b = (f = this.weatherLayers["current-direction"]) == null ? void 0 : f.raw, _ = (d = this.weatherLayers["current-speed"]) == null ? void 0 : d.raw;
|
|
5051
5059
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
5052
5060
|
type: "json",
|
|
5053
5061
|
direction: b,
|
|
5054
|
-
speed: { raw:
|
|
5062
|
+
speed: { raw: _ },
|
|
5055
5063
|
etime: this.ts
|
|
5056
5064
|
};
|
|
5057
5065
|
}
|
|
@@ -5181,23 +5189,23 @@ const Hs = {
|
|
|
5181
5189
|
for (const p in y)
|
|
5182
5190
|
if (p > o && p < h && (!(a <= this.zoom) || p % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5183
5191
|
const v = y[p].lng;
|
|
5184
|
-
s > n ? v.forEach((b,
|
|
5192
|
+
s > n ? v.forEach((b, _) => {
|
|
5185
5193
|
var P;
|
|
5186
5194
|
if ((b >= s && b <= 180 || b >= -180 && b <= n) && (!(a <= this.zoom) || b % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5187
|
-
const
|
|
5188
|
-
val: y[p].val[
|
|
5189
|
-
spd: (P = y[p].spd) == null ? void 0 : P[
|
|
5195
|
+
const L = C.point([b, p], {
|
|
5196
|
+
val: y[p].val[_],
|
|
5197
|
+
spd: (P = y[p].spd) == null ? void 0 : P[_]
|
|
5190
5198
|
});
|
|
5191
|
-
g.push(
|
|
5199
|
+
g.push(L);
|
|
5192
5200
|
}
|
|
5193
|
-
}) : v.forEach((b,
|
|
5201
|
+
}) : v.forEach((b, _) => {
|
|
5194
5202
|
var P;
|
|
5195
5203
|
if (b >= s && b <= n && (!(a <= this.zoom) || b % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5196
|
-
const
|
|
5197
|
-
val: y[p].val[
|
|
5198
|
-
spd: (P = y[p].spd) == null ? void 0 : P[
|
|
5204
|
+
const L = C.point([b, p], {
|
|
5205
|
+
val: y[p].val[_],
|
|
5206
|
+
spd: (P = y[p].spd) == null ? void 0 : P[_]
|
|
5199
5207
|
});
|
|
5200
|
-
g.push(
|
|
5208
|
+
g.push(L);
|
|
5201
5209
|
}
|
|
5202
5210
|
});
|
|
5203
5211
|
}
|
|
@@ -5207,8 +5215,8 @@ const Hs = {
|
|
|
5207
5215
|
if (!p.data) {
|
|
5208
5216
|
const v = [];
|
|
5209
5217
|
for (const b in (d = p.raw) == null ? void 0 : d.LineString) {
|
|
5210
|
-
const
|
|
5211
|
-
for (const P of
|
|
5218
|
+
const _ = p.raw.LineString[b];
|
|
5219
|
+
for (const P of _)
|
|
5212
5220
|
v.push(
|
|
5213
5221
|
C.lineString(P, {
|
|
5214
5222
|
val: Number(b)
|
|
@@ -5229,12 +5237,12 @@ const Hs = {
|
|
|
5229
5237
|
if (p) {
|
|
5230
5238
|
if (!p.data) {
|
|
5231
5239
|
const b = [];
|
|
5232
|
-
for (const
|
|
5233
|
-
const P = p.raw.Polygon[
|
|
5234
|
-
for (const
|
|
5240
|
+
for (const _ in (m = p.raw) == null ? void 0 : m.Polygon) {
|
|
5241
|
+
const P = p.raw.Polygon[_];
|
|
5242
|
+
for (const L of P)
|
|
5235
5243
|
b.push(
|
|
5236
|
-
C.polygon(
|
|
5237
|
-
val: Number(
|
|
5244
|
+
C.polygon(L, {
|
|
5245
|
+
val: Number(_)
|
|
5238
5246
|
})
|
|
5239
5247
|
);
|
|
5240
5248
|
}
|
|
@@ -5249,19 +5257,19 @@ const Hs = {
|
|
|
5249
5257
|
for (const p in y)
|
|
5250
5258
|
if (p > o && p < h && (!(a <= this.zoom) || p % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5251
5259
|
const v = y[p].lng;
|
|
5252
|
-
s > n ? v.forEach((b,
|
|
5260
|
+
s > n ? v.forEach((b, _) => {
|
|
5253
5261
|
if ((b >= s && b <= 180 || b >= -180 && b <= n) && (!(a <= this.zoom) || b % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5254
5262
|
const P = C.point([b, p], {
|
|
5255
|
-
val: y[p].val[
|
|
5256
|
-
spd: y[p].spd[
|
|
5263
|
+
val: y[p].val[_],
|
|
5264
|
+
spd: y[p].spd[_]
|
|
5257
5265
|
});
|
|
5258
5266
|
g.push(P);
|
|
5259
5267
|
}
|
|
5260
|
-
}) : v.forEach((b,
|
|
5268
|
+
}) : v.forEach((b, _) => {
|
|
5261
5269
|
if (b >= s && b <= n && (!(a <= this.zoom) || b % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5262
5270
|
const P = C.point([b, p], {
|
|
5263
|
-
val: y[p].val[
|
|
5264
|
-
spd: y[p].spd[
|
|
5271
|
+
val: y[p].val[_],
|
|
5272
|
+
spd: y[p].spd[_]
|
|
5265
5273
|
});
|
|
5266
5274
|
g.push(P);
|
|
5267
5275
|
}
|
|
@@ -5277,9 +5285,9 @@ const Hs = {
|
|
|
5277
5285
|
const p = [];
|
|
5278
5286
|
for (const v in y.Polygon) {
|
|
5279
5287
|
const b = y.Polygon[v];
|
|
5280
|
-
for (const
|
|
5288
|
+
for (const _ of b)
|
|
5281
5289
|
p.push(
|
|
5282
|
-
C.polygon(
|
|
5290
|
+
C.polygon(_, {
|
|
5283
5291
|
val: Number(v)
|
|
5284
5292
|
})
|
|
5285
5293
|
);
|
|
@@ -5297,19 +5305,19 @@ const Hs = {
|
|
|
5297
5305
|
const p = [];
|
|
5298
5306
|
for (const v in y.LineString) {
|
|
5299
5307
|
const b = y.LineString[v];
|
|
5300
|
-
for (const
|
|
5308
|
+
for (const _ of b)
|
|
5301
5309
|
p.push(
|
|
5302
|
-
C.lineString(
|
|
5310
|
+
C.lineString(_, {
|
|
5303
5311
|
val: Number(v)
|
|
5304
5312
|
})
|
|
5305
5313
|
);
|
|
5306
5314
|
}
|
|
5307
5315
|
for (const v in y.Point)
|
|
5308
|
-
y.Point[v].lng.forEach((b,
|
|
5316
|
+
y.Point[v].lng.forEach((b, _) => {
|
|
5309
5317
|
b = Ae(b), p.push(
|
|
5310
5318
|
C.point([b, v], {
|
|
5311
|
-
val: y.Point[v].val[
|
|
5312
|
-
type: y.Point[v].type[
|
|
5319
|
+
val: y.Point[v].val[_],
|
|
5320
|
+
type: y.Point[v].type[_]
|
|
5313
5321
|
})
|
|
5314
5322
|
);
|
|
5315
5323
|
});
|
|
@@ -5326,9 +5334,9 @@ const Hs = {
|
|
|
5326
5334
|
const p = [];
|
|
5327
5335
|
for (const v in y.LineString) {
|
|
5328
5336
|
const b = y.LineString[v];
|
|
5329
|
-
for (const
|
|
5337
|
+
for (const _ of b)
|
|
5330
5338
|
p.push(
|
|
5331
|
-
C.lineString(
|
|
5339
|
+
C.lineString(_, {
|
|
5332
5340
|
val: Number(v)
|
|
5333
5341
|
})
|
|
5334
5342
|
);
|
|
@@ -5401,7 +5409,7 @@ const Hs = {
|
|
|
5401
5409
|
}
|
|
5402
5410
|
},
|
|
5403
5411
|
async handlePointChange(i) {
|
|
5404
|
-
const e = this.ts ?
|
|
5412
|
+
const e = this.ts ? K(this.ts) : K(), t = {
|
|
5405
5413
|
lat: i.lat,
|
|
5406
5414
|
lng: i.lng,
|
|
5407
5415
|
ts: e.utc().format(),
|
|
@@ -5425,14 +5433,14 @@ const Hs = {
|
|
|
5425
5433
|
this.particleFactor = i, this.fetchWeatherLayers({ tropicals: !1 });
|
|
5426
5434
|
}
|
|
5427
5435
|
}
|
|
5428
|
-
},
|
|
5436
|
+
}, Ys = {
|
|
5429
5437
|
key: 0,
|
|
5430
5438
|
class: "map-gl-home"
|
|
5431
5439
|
};
|
|
5432
|
-
function
|
|
5433
|
-
var
|
|
5434
|
-
const n = T("IdmGlLayer"), o = T("IdmENC"), h = T("IdmSigWave"), c = T("IdmSwell"), f = T("IdmPrmsl"), d = T("IdmIceberg"), m = T("IdmTropicals"), u = T("IdmCurrents"), g = T("IdmCurrentParticle"), y = T("IdmWindBarb"), p = T("IdmWindParticle"), v = T("IdmPrecip3h"), b = T("IdmVisibility"),
|
|
5435
|
-
return t.map ? (w(), x("div",
|
|
5440
|
+
function qs(i, e, t, r, a, s) {
|
|
5441
|
+
var Y, ne, ye, ge, be, ve, Le, _e, we, xe, Ce, Se, Pe, Te, Ee, ke, Re, Ie, Oe, He, Xe, Ze, Je, Ye, qe, Ke;
|
|
5442
|
+
const n = T("IdmGlLayer"), o = T("IdmENC"), h = T("IdmSigWave"), c = T("IdmSwell"), f = T("IdmPrmsl"), d = T("IdmIceberg"), m = T("IdmTropicals"), u = T("IdmCurrents"), g = T("IdmCurrentParticle"), y = T("IdmWindBarb"), p = T("IdmWindParticle"), v = T("IdmPrecip3h"), b = T("IdmVisibility"), _ = T("IdmWaterTemp"), P = T("IdmTemp"), L = T("IdmArctic"), I = T("IdmWarZone"), $ = T("IdmGmdssArea"), D = T("IdmEcaZone"), W = T("IdmAlertZone"), N = T("IdmPort"), H = T("IdmLoadLine"), Z = T("IdmTimezone"), ee = T("IdmVRA"), ce = T("IdmSpecialArea"), te = T("IdmTerminator"), A = T("IdmLatLng"), V = T("IdmMeasure"), de = T("IdmPoint");
|
|
5443
|
+
return t.map ? (w(), x("div", Ys, [
|
|
5436
5444
|
E(n, R({
|
|
5437
5445
|
ref: "layer",
|
|
5438
5446
|
map: t.map,
|
|
@@ -5440,19 +5448,19 @@ function Zs(i, e, t, r, a, s) {
|
|
|
5440
5448
|
}, i.$attrs, {
|
|
5441
5449
|
onWeather: s.handleWeatherLayerChange,
|
|
5442
5450
|
onOther: s.handleOtherLayerChange,
|
|
5443
|
-
onCoordinate: e[0] || (e[0] = (
|
|
5444
|
-
onMeasure: e[1] || (e[1] = (
|
|
5445
|
-
onPoint: e[2] || (e[2] = (
|
|
5451
|
+
onCoordinate: e[0] || (e[0] = (q) => a.showCoord = q),
|
|
5452
|
+
onMeasure: e[1] || (e[1] = (q) => a.showMeasure = q),
|
|
5453
|
+
onPoint: e[2] || (e[2] = (q) => a.showPoint = q),
|
|
5446
5454
|
on3d: s.handle3dToggle,
|
|
5447
|
-
onToggleVersion: e[3] || (e[3] = (
|
|
5455
|
+
onToggleVersion: e[3] || (e[3] = (q) => a.toggleVersion = q)
|
|
5448
5456
|
}), null, 16, ["map", "toggle-version", "onWeather", "onOther", "on3d"]),
|
|
5449
5457
|
E(o, R({
|
|
5450
5458
|
map: t.map,
|
|
5451
5459
|
token: t.token,
|
|
5452
|
-
enabled: (
|
|
5460
|
+
enabled: (Y = a.otherLayers) == null ? void 0 : Y.enc,
|
|
5453
5461
|
"toggle-version": a.toggleVersion
|
|
5454
5462
|
}, i.$attrs, {
|
|
5455
|
-
onEnc: e[4] || (e[4] = (
|
|
5463
|
+
onEnc: e[4] || (e[4] = (q) => a.enc = q)
|
|
5456
5464
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
5457
5465
|
E(h, R({
|
|
5458
5466
|
map: t.map,
|
|
@@ -5482,7 +5490,7 @@ function Zs(i, e, t, r, a, s) {
|
|
|
5482
5490
|
}, i.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
5483
5491
|
E(u, R({
|
|
5484
5492
|
map: t.map,
|
|
5485
|
-
current: (
|
|
5493
|
+
current: (Le = a.weatherLayers) == null ? void 0 : Le.current,
|
|
5486
5494
|
"before-layer": t.beforeLayer,
|
|
5487
5495
|
"show-particle": a.showCurrentParticle,
|
|
5488
5496
|
"margin-bottom": a.activeWindLayer ? a.showRampColor ? "84px" : "56px" : a.showRampColor ? "56px" : "30px",
|
|
@@ -5491,7 +5499,7 @@ function Zs(i, e, t, r, a, s) {
|
|
|
5491
5499
|
}, i.$attrs, { onParticle: s.handleParticle }), null, 16, ["map", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
|
|
5492
5500
|
E(g, R({
|
|
5493
5501
|
viewport: a.viewport,
|
|
5494
|
-
factor: (
|
|
5502
|
+
factor: (_e = a.weatherLayers) == null ? void 0 : _e["current-particle"],
|
|
5495
5503
|
"before-layer": t.beforeLayer,
|
|
5496
5504
|
"toggle-version": a.toggleVersion
|
|
5497
5505
|
}, i.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
@@ -5526,7 +5534,7 @@ function Zs(i, e, t, r, a, s) {
|
|
|
5526
5534
|
"before-layer": t.beforeLayer,
|
|
5527
5535
|
"toggle-version": a.toggleVersion
|
|
5528
5536
|
}, i.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
5529
|
-
E(
|
|
5537
|
+
E(_, R({
|
|
5530
5538
|
viewport: a.viewport,
|
|
5531
5539
|
factor: (Te = a.weatherLayers) == null ? void 0 : Te["water-temp"],
|
|
5532
5540
|
"before-layer": t.beforeLayer,
|
|
@@ -5538,7 +5546,7 @@ function Zs(i, e, t, r, a, s) {
|
|
|
5538
5546
|
"before-layer": t.beforeLayer,
|
|
5539
5547
|
"toggle-version": a.toggleVersion
|
|
5540
5548
|
}, i.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
5541
|
-
E(
|
|
5549
|
+
E(L, R({
|
|
5542
5550
|
viewport: a.viewport,
|
|
5543
5551
|
factor: (ke = a.weatherLayers) == null ? void 0 : ke.arctic,
|
|
5544
5552
|
"before-layer": t.beforeLayer,
|
|
@@ -5559,12 +5567,12 @@ function Zs(i, e, t, r, a, s) {
|
|
|
5559
5567
|
zone: (Oe = a.otherLayers) == null ? void 0 : Oe["eca-zones"],
|
|
5560
5568
|
"before-layer": t.beforeLayer
|
|
5561
5569
|
}, i.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
5562
|
-
E(
|
|
5570
|
+
E(W, R({
|
|
5563
5571
|
map: t.map,
|
|
5564
5572
|
zone: (He = a.otherLayers) == null ? void 0 : He["alert-zones"],
|
|
5565
5573
|
"before-layer": t.beforeLayer
|
|
5566
5574
|
}, i.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
5567
|
-
E(
|
|
5575
|
+
E(N, R({
|
|
5568
5576
|
map: t.map,
|
|
5569
5577
|
port: (Xe = a.otherLayers) == null ? void 0 : Xe.ports,
|
|
5570
5578
|
"before-layer": t.beforeLayer
|
|
@@ -5607,16 +5615,16 @@ function Zs(i, e, t, r, a, s) {
|
|
|
5607
5615
|
show: a.showPoint,
|
|
5608
5616
|
meteo: a.meteo
|
|
5609
5617
|
}, i.$attrs, { onPoint: s.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
|
|
5610
|
-
])) :
|
|
5618
|
+
])) : O("", !0);
|
|
5611
5619
|
}
|
|
5612
|
-
const
|
|
5620
|
+
const Ks = /* @__PURE__ */ k(Js, [["render", qs]]), no = {
|
|
5613
5621
|
install(i) {
|
|
5614
|
-
i.component("MapboxGL",
|
|
5622
|
+
i.component("MapboxGL", Ks), i.component("TropicalGL", tt), i.component("LatLngGL", it);
|
|
5615
5623
|
}
|
|
5616
5624
|
};
|
|
5617
5625
|
export {
|
|
5618
5626
|
it as LatLngGL,
|
|
5619
|
-
|
|
5620
|
-
|
|
5627
|
+
Ks as MapboxGL,
|
|
5628
|
+
no as MapboxGLPlugin,
|
|
5621
5629
|
tt as TropicalGL
|
|
5622
5630
|
};
|