@idmwx/idmui-gl3 4.9.7 → 4.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@ var K0 = Object.defineProperty;
|
|
|
2
2
|
var J0 = (z, M, b) => M in z ? K0(z, M, { enumerable: !0, configurable: !0, writable: !0, value: b }) : z[M] = b;
|
|
3
3
|
var K = (z, M, b) => (J0(z, typeof M != "symbol" ? M + "" : M, b), b);
|
|
4
4
|
import { LayerHelper as I0, CompanyHelper as D0 } from "@idm-plugin/tag";
|
|
5
|
-
import { resolveComponent as x, openBlock as l, createElementBlock as f, createElementVNode as c, normalizeStyle as O0, createVNode as
|
|
6
|
-
import * as
|
|
5
|
+
import { resolveComponent as x, openBlock as l, createElementBlock as f, createElementVNode as c, normalizeStyle as O0, createVNode as C, withCtx as e0, normalizeClass as J, Fragment as j, renderList as G, toDisplayString as T, createCommentVNode as _, createTextVNode as $, withDirectives as X0, createStaticVNode as Y0, vShow as w0, defineComponent as V0, withModifiers as E0, mergeProps as Q } from "vue";
|
|
6
|
+
import * as v from "@turf/turf";
|
|
7
7
|
import Z0 from "@mapbox/sphericalmercator";
|
|
8
8
|
import M0 from "moment";
|
|
9
9
|
import y0 from "mapbox-gl";
|
|
@@ -235,7 +235,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
235
235
|
style: O0({ top: b.top + 10 + "px", right: p.right + "px" })
|
|
236
236
|
}, [
|
|
237
237
|
c("div", b1, [
|
|
238
|
-
|
|
238
|
+
C(A, {
|
|
239
239
|
placement: "left",
|
|
240
240
|
effect: "light",
|
|
241
241
|
content: "Menu",
|
|
@@ -258,7 +258,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
258
258
|
style: O0({ top: b.top + 160 + "px", right: p.right + "px" })
|
|
259
259
|
}, [
|
|
260
260
|
c("div", z1, [
|
|
261
|
-
|
|
261
|
+
C(A, {
|
|
262
262
|
placement: "left",
|
|
263
263
|
effect: "light",
|
|
264
264
|
content: "Measure",
|
|
@@ -274,7 +274,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
274
274
|
]),
|
|
275
275
|
_: 1
|
|
276
276
|
}),
|
|
277
|
-
|
|
277
|
+
C(A, {
|
|
278
278
|
placement: "left",
|
|
279
279
|
effect: "light",
|
|
280
280
|
content: "Point Meteo",
|
|
@@ -290,7 +290,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
290
290
|
]),
|
|
291
291
|
_: 1
|
|
292
292
|
}),
|
|
293
|
-
|
|
293
|
+
C(A, {
|
|
294
294
|
placement: "left",
|
|
295
295
|
effect: "light",
|
|
296
296
|
content: "Grid",
|
|
@@ -306,7 +306,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
306
306
|
]),
|
|
307
307
|
_: 1
|
|
308
308
|
}),
|
|
309
|
-
|
|
309
|
+
C(A, {
|
|
310
310
|
placement: "left",
|
|
311
311
|
effect: "light",
|
|
312
312
|
content: "3D",
|
|
@@ -387,7 +387,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
387
387
|
onClick: M[10] || (M[10] = (...a) => o.handleMenuToggle && o.handleMenuToggle(...a))
|
|
388
388
|
}, "")
|
|
389
389
|
]),
|
|
390
|
-
|
|
390
|
+
C(r, { style: { flex: "1" } }, {
|
|
391
391
|
default: e0(() => [
|
|
392
392
|
c("div", q1, [
|
|
393
393
|
c("div", i1, [
|
|
@@ -477,19 +477,19 @@ function T1(z, M, b, O, p, o) {
|
|
|
477
477
|
c("div", C1, [
|
|
478
478
|
M[29] || (M[29] = c("span", { class: "layers-title" }, "Forecast Model", -1)),
|
|
479
479
|
c("div", v1, [
|
|
480
|
-
|
|
480
|
+
C(q, {
|
|
481
481
|
modelValue: p.source,
|
|
482
482
|
"onUpdate:modelValue": M[16] || (M[16] = (a) => p.source = a),
|
|
483
483
|
class: "layer-radio flex-col-center-start"
|
|
484
484
|
}, {
|
|
485
485
|
default: e0(() => [
|
|
486
|
-
|
|
486
|
+
C(t, { value: "GFS" }, {
|
|
487
487
|
default: e0(() => M[27] || (M[27] = [
|
|
488
488
|
$("GFS")
|
|
489
489
|
])),
|
|
490
490
|
_: 1
|
|
491
491
|
}),
|
|
492
|
-
|
|
492
|
+
C(t, { value: "CMEMS" }, {
|
|
493
493
|
default: e0(() => M[28] || (M[28] = [
|
|
494
494
|
$("CMEMS")
|
|
495
495
|
])),
|
|
@@ -543,7 +543,7 @@ const x1 = {
|
|
|
543
543
|
return {
|
|
544
544
|
source: "wind-barb-source",
|
|
545
545
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
546
|
-
empty:
|
|
546
|
+
empty: v.featureCollection([]),
|
|
547
547
|
right: 10,
|
|
548
548
|
bottom: 125,
|
|
549
549
|
windBarbLoaded: !1
|
|
@@ -880,12 +880,12 @@ class C0 {
|
|
|
880
880
|
try {
|
|
881
881
|
const a = b.getUniformLocation(O, "u_resolution"), n = b.getUniformLocation(O, "u_image"), s = b.getUniformLocation(O, "u_color");
|
|
882
882
|
if (b.useProgram(O), b.uniform2f(a, b.canvas.width * M.ratio, b.canvas.height * M.ratio), b.activeTexture(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, p), b.uniform1i(n, 0), b.activeTexture(b.TEXTURE1), b.bindTexture(b.TEXTURE_2D, o), b.uniform1i(s, 1), t != null && t.uvRange && (t != null && t.sRange)) {
|
|
883
|
-
const W = b.getUniformLocation(O, "u_range_u_v"),
|
|
884
|
-
b.uniform2f(W, t.uvRange[0], t.uvRange[1]), b.uniform2f(
|
|
883
|
+
const W = b.getUniformLocation(O, "u_range_u_v"), m = b.getUniformLocation(O, "u_range_s");
|
|
884
|
+
b.uniform2f(W, t.uvRange[0], t.uvRange[1]), b.uniform2f(m, t.sRange[0], t.sRange[1]);
|
|
885
885
|
}
|
|
886
|
-
const d = M.getBoundPixel(),
|
|
887
|
-
for (const W of
|
|
888
|
-
const
|
|
886
|
+
const d = M.getBoundPixel(), B = M.map.getZoom() + 1, R = M.getWorldCopy(d, B);
|
|
887
|
+
for (const W of R) {
|
|
888
|
+
const m = (W[0] - d[0]) * M.ratio, h = (W[1] - d[3]) * M.ratio, X = W[2] * M.ratio, [E, y, H, U] = [m, X + m, h, X + h], Y = new Float32Array([E, H, y, H, E, U, E, U, y, H, y, U]);
|
|
889
889
|
b.bindBuffer(b.ARRAY_BUFFER, A), b.bufferData(b.ARRAY_BUFFER, Y, b.STATIC_DRAW), b.drawArrays(b.TRIANGLES, 0, 6);
|
|
890
890
|
}
|
|
891
891
|
} catch (a) {
|
|
@@ -3056,7 +3056,7 @@ const j1 = {
|
|
|
3056
3056
|
directionLayer: "current-direction-layer",
|
|
3057
3057
|
speedLayer: "current-speed-layer",
|
|
3058
3058
|
speedLabelLayer: "current-speed-label-layer",
|
|
3059
|
-
empty:
|
|
3059
|
+
empty: v.featureCollection([]),
|
|
3060
3060
|
right: 10,
|
|
3061
3061
|
bottom: 95
|
|
3062
3062
|
};
|
|
@@ -3373,7 +3373,7 @@ const V1 = /* @__PURE__ */ k(K1, [["render", Y1], ["__scopeId", "data-v-163d1f9a
|
|
|
3373
3373
|
source: "sig-wave-source",
|
|
3374
3374
|
heightLayer: "sig-wave-height-layer",
|
|
3375
3375
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
3376
|
-
empty:
|
|
3376
|
+
empty: v.featureCollection([])
|
|
3377
3377
|
};
|
|
3378
3378
|
},
|
|
3379
3379
|
watch: {
|
|
@@ -3496,7 +3496,7 @@ const M2 = /* @__PURE__ */ k(Z1, [["render", $1]]), b2 = {
|
|
|
3496
3496
|
directionLayer: "swell-direction-layer",
|
|
3497
3497
|
heightLayer: "swell-height-layer",
|
|
3498
3498
|
heightLabelLayer: "swell-height-label-layer",
|
|
3499
|
-
empty:
|
|
3499
|
+
empty: v.featureCollection([])
|
|
3500
3500
|
};
|
|
3501
3501
|
},
|
|
3502
3502
|
watch: {
|
|
@@ -3657,7 +3657,7 @@ const p2 = /* @__PURE__ */ k(b2, [["render", z2]]), O2 = {
|
|
|
3657
3657
|
layer: "prmsl-layer",
|
|
3658
3658
|
labelLayer: "prmsl-label-layer",
|
|
3659
3659
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
3660
|
-
empty:
|
|
3660
|
+
empty: v.featureCollection([])
|
|
3661
3661
|
};
|
|
3662
3662
|
},
|
|
3663
3663
|
watch: {
|
|
@@ -3789,7 +3789,7 @@ const c2 = /* @__PURE__ */ k(O2, [["render", o2]]), A2 = {
|
|
|
3789
3789
|
return {
|
|
3790
3790
|
source: "iceberg-source",
|
|
3791
3791
|
layer: "iceberg-layer",
|
|
3792
|
-
empty:
|
|
3792
|
+
empty: v.featureCollection([])
|
|
3793
3793
|
};
|
|
3794
3794
|
},
|
|
3795
3795
|
watch: {
|
|
@@ -3871,9 +3871,9 @@ const a2 = {
|
|
|
3871
3871
|
showTropicals: !1,
|
|
3872
3872
|
activeTropicals: void 0,
|
|
3873
3873
|
activeTropicalsMarker: void 0,
|
|
3874
|
-
empty:
|
|
3874
|
+
empty: v.featureCollection([]),
|
|
3875
3875
|
circleSource: "circle-source",
|
|
3876
|
-
circleSourceData:
|
|
3876
|
+
circleSourceData: v.featureCollection([]),
|
|
3877
3877
|
circleLayer: "tropical-circle-layer"
|
|
3878
3878
|
};
|
|
3879
3879
|
},
|
|
@@ -3933,14 +3933,14 @@ const a2 = {
|
|
|
3933
3933
|
var n, s;
|
|
3934
3934
|
return ((n = a.geometry) == null ? void 0 : n.type) === "LineString" && ((s = a.properties) == null ? void 0 : s.type) === "forecast";
|
|
3935
3935
|
})[0]) == null || r.properties.model, q.forEach((a, n) => {
|
|
3936
|
-
var s, d,
|
|
3937
|
-
((s = a.geometry) == null ? void 0 : s.type) === "Point" && ((d = a.properties) == null ? void 0 : d.type) === "history" && (A = n, t = t === void 0 ? n : t), ((
|
|
3936
|
+
var s, d, B, R, W, m;
|
|
3937
|
+
((s = a.geometry) == null ? void 0 : s.type) === "Point" && ((d = a.properties) == null ? void 0 : d.type) === "history" && (A = n, t = t === void 0 ? n : t), ((B = a.geometry) == null ? void 0 : B.type) === "Point" && ((R = a.properties) == null ? void 0 : R.type) === "forecast" && t === void 0 && (t = n), ((W = a.geometry) == null ? void 0 : W.type) === "LineString" && ((m = a.properties) == null || m.type);
|
|
3938
3938
|
}), q.map((a, n) => {
|
|
3939
|
-
var s, d,
|
|
3940
|
-
if (((s = a.geometry) == null ? void 0 : s.type) === "LineString" && ((d = a.properties) == null || d.type), ((
|
|
3939
|
+
var s, d, B, R, W, m, h;
|
|
3940
|
+
if (((s = a.geometry) == null ? void 0 : s.type) === "LineString" && ((d = a.properties) == null || d.type), ((B = a.geometry) == null ? void 0 : B.type) === "Point" && ((R = a.properties) == null ? void 0 : R.type) === "forecast" && (a.properties.name = o, a.properties.format = M0(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((W = a.geometry) == null ? void 0 : W.type) === "Point" && ((m = a.properties) == null ? void 0 : m.type) === "history") {
|
|
3941
3941
|
a.properties.format = M0(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
3942
|
-
const
|
|
3943
|
-
a.properties.showHistoryLabel =
|
|
3942
|
+
const X = M0((h = a.properties) == null ? void 0 : h.date).utc().format("HHmm") === M0().utc().hour(Math.floor(M / 6) * 6).minute("00").format("HHmm");
|
|
3943
|
+
a.properties.showHistoryLabel = X || n === A, a.properties.showNameLabel = n === A, a.properties.name = o;
|
|
3944
3944
|
}
|
|
3945
3945
|
return a;
|
|
3946
3946
|
});
|
|
@@ -4212,9 +4212,9 @@ const a2 = {
|
|
|
4212
4212
|
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));
|
|
4213
4213
|
},
|
|
4214
4214
|
handleDateChange() {
|
|
4215
|
-
var z, M, b, O, p, o, A, t, q, r, a, n, s, d,
|
|
4215
|
+
var z, M, b, O, p, o, A, t, q, r, a, n, s, d, B, R, W, m, h, X, E, y, H, U, Y, L, N, A0, n0, R0, i0, f0, p0, h0, m0, u0;
|
|
4216
4216
|
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) {
|
|
4217
|
-
const r0 = M0(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), d0 = this.interpolateData.filter((P) => P.properties.date === r0.format() && !P.properties.disabled), B0 = this.handleComputePolygons(d0), s0 =
|
|
4217
|
+
const r0 = M0(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), d0 = this.interpolateData.filter((P) => P.properties.date === r0.format() && !P.properties.disabled), B0 = this.handleComputePolygons(d0), s0 = v.featureCollection([...d0]);
|
|
4218
4218
|
B0.forEach((P) => {
|
|
4219
4219
|
s0.features.push(P);
|
|
4220
4220
|
}), (b = this.map) != null && b.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(s0) : ((p = this.map) == null || p.addSource(this.interpolateSource, {
|
|
@@ -4234,7 +4234,7 @@ const a2 = {
|
|
|
4234
4234
|
for (const P of d0)
|
|
4235
4235
|
if (!P.properties.disabled) {
|
|
4236
4236
|
let b0 = "#f44336";
|
|
4237
|
-
((t = (A = P.properties) == null ? void 0 : A.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = P.properties) == null ? void 0 : q.wind) != null && r.spd) ? b0 = "#03f869" : ((n = (a = P.properties) == null ? void 0 : a.wind) == null ? void 0 : n.spd) >= 17.2 && ((d = (s = P.properties) == null ? void 0 : s.wind) == null ? void 0 : d.spd) < 24.5 ? b0 = "#f2f202" : ((
|
|
4237
|
+
((t = (A = P.properties) == null ? void 0 : A.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = P.properties) == null ? void 0 : q.wind) != null && r.spd) ? b0 = "#03f869" : ((n = (a = P.properties) == null ? void 0 : a.wind) == null ? void 0 : n.spd) >= 17.2 && ((d = (s = P.properties) == null ? void 0 : s.wind) == null ? void 0 : d.spd) < 24.5 ? b0 = "#f2f202" : ((R = (B = P.properties) == null ? void 0 : B.wind) == null ? void 0 : R.spd) >= 24.5 && ((m = (W = P.properties) == null ? void 0 : W.wind) == null ? void 0 : m.spd) < 32.7 ? b0 = "#ff9100" : ((X = (h = P.properties) == null ? void 0 : h.wind) == null ? void 0 : X.spd) >= 32.7 && ((y = (E = P.properties) == null ? void 0 : E.wind) == null ? void 0 : y.spd) < 41.5 ? b0 = "#f44336" : ((U = (H = P.properties) == null ? void 0 : H.wind) == null ? void 0 : U.spd) >= 41.5 && ((L = (Y = P.properties) == null ? void 0 : Y.wind) == null ? void 0 : L.spd) < 51 ? b0 = "#f903d0" : ((A0 = (N = P.properties) == null ? void 0 : N.wind) == null ? void 0 : A0.spd) >= 51 ? b0 = "#8702f9" : b0 = "#f44336";
|
|
4238
4238
|
const t0 = `<svg t="1719918955501"
|
|
4239
4239
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
4240
4240
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -4255,11 +4255,11 @@ const a2 = {
|
|
|
4255
4255
|
if (this.interpolateMarkers.push(z0), (n0 = P.properties) != null && n0.showCircle) {
|
|
4256
4256
|
const W0 = { radius: 100, coordinates: P.geometry.coordinates }, l0 = { radius: 200, coordinates: P.geometry.coordinates }, L0 = { radius: 500, coordinates: P.geometry.coordinates };
|
|
4257
4257
|
(R0 = this.circleSourceData) == null || R0.features.push(
|
|
4258
|
-
|
|
4258
|
+
v.circle(W0.coordinates, W0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4259
4259
|
), (i0 = this.circleSourceData) == null || i0.features.push(
|
|
4260
|
-
|
|
4260
|
+
v.circle(l0.coordinates, l0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4261
4261
|
), (f0 = this.circleSourceData) == null || f0.features.push(
|
|
4262
|
-
|
|
4262
|
+
v.circle(L0.coordinates, L0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4263
4263
|
);
|
|
4264
4264
|
}
|
|
4265
4265
|
(h0 = (p0 = this.map) == null ? void 0 : p0.getSource(this.circleSource)) == null || h0.setData(this.circleSourceData);
|
|
@@ -4271,18 +4271,18 @@ const a2 = {
|
|
|
4271
4271
|
var o, A, t, q, r, a, n, s;
|
|
4272
4272
|
const M = z.features[0], b = (A = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : A.features.filter(
|
|
4273
4273
|
(d) => {
|
|
4274
|
-
var
|
|
4275
|
-
return d.geometry.type === "LineString" && d.properties.type === "forecast" && d.properties.name === ((
|
|
4274
|
+
var B;
|
|
4275
|
+
return d.geometry.type === "LineString" && d.properties.type === "forecast" && d.properties.name === ((B = M == null ? void 0 : M.properties) == null ? void 0 : B.name);
|
|
4276
4276
|
}
|
|
4277
4277
|
);
|
|
4278
|
-
b.sort((d,
|
|
4279
|
-
var
|
|
4280
|
-
return ((
|
|
4278
|
+
b.sort((d, B) => {
|
|
4279
|
+
var R, W, m, h;
|
|
4280
|
+
return ((R = d.properties) == null ? void 0 : R.model) === "cma" ? -1 : ((W = d.properties) == null ? void 0 : W.model) === "jma" ? ((m = B.properties) == null ? void 0 : m.model) === "cma" ? 1 : -1 : d.properties.model === "ecmwf" ? ["jma", "cma"].includes((h = B.properties) == null ? void 0 : h.model) ? 1 : -1 : 0;
|
|
4281
4281
|
});
|
|
4282
4282
|
const O = (q = (t = this.tropicals) == null ? void 0 : t.data) == null ? void 0 : q.features.filter(
|
|
4283
4283
|
(d) => {
|
|
4284
|
-
var
|
|
4285
|
-
return d.geometry.type === "LineString" && d.properties.type === "history" && d.properties.name === ((
|
|
4284
|
+
var B;
|
|
4285
|
+
return d.geometry.type === "LineString" && d.properties.type === "history" && d.properties.name === ((B = M == null ? void 0 : M.properties) == null ? void 0 : B.name);
|
|
4286
4286
|
}
|
|
4287
4287
|
);
|
|
4288
4288
|
this.activeTropicals = {
|
|
@@ -4302,7 +4302,7 @@ const a2 = {
|
|
|
4302
4302
|
r.properties.category === M && (r.properties.disabled = z.disabled);
|
|
4303
4303
|
}), this.interpolateData.forEach((r) => {
|
|
4304
4304
|
r.properties.category === M && (r.properties.disabled = z.disabled);
|
|
4305
|
-
}), (A = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || A.setData(
|
|
4305
|
+
}), (A = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || A.setData(v.featureCollection(b)), (q = (t = this.map) == null ? void 0 : t.getSource(this.clusterSource)) == null || q.setData(v.featureCollection(b)), this.handleDateChange();
|
|
4306
4306
|
},
|
|
4307
4307
|
handleStrikeProbability(z) {
|
|
4308
4308
|
this.$emit("tropicalProbability", z);
|
|
@@ -4359,22 +4359,22 @@ const a2 = {
|
|
|
4359
4359
|
let q;
|
|
4360
4360
|
switch (A) {
|
|
4361
4361
|
case "ne":
|
|
4362
|
-
q =
|
|
4362
|
+
q = v.lineArc(z, t * 1.852, 0, 90, { steps: t > 0 ? 64 : 1 });
|
|
4363
4363
|
break;
|
|
4364
4364
|
case "se":
|
|
4365
|
-
q =
|
|
4365
|
+
q = v.lineArc(z, t * 1.852, 90, 180, { steps: t > 0 ? 64 : 1 });
|
|
4366
4366
|
break;
|
|
4367
4367
|
case "sw":
|
|
4368
|
-
q =
|
|
4368
|
+
q = v.lineArc(z, t * 1.852, 180, 270, { steps: t > 0 ? 64 : 1 });
|
|
4369
4369
|
break;
|
|
4370
4370
|
case "nw":
|
|
4371
|
-
q =
|
|
4371
|
+
q = v.lineArc(z, t * 1.852, 270, 360, { steps: t > 0 ? 64 : 1 });
|
|
4372
4372
|
break;
|
|
4373
4373
|
}
|
|
4374
4374
|
O.push(...(o = q == null ? void 0 : q.geometry) == null ? void 0 : o.coordinates);
|
|
4375
4375
|
}
|
|
4376
|
-
const p =
|
|
4377
|
-
return
|
|
4376
|
+
const p = v.lineString(O);
|
|
4377
|
+
return v.lineToPolygon(p, { properties: b });
|
|
4378
4378
|
}
|
|
4379
4379
|
}
|
|
4380
4380
|
}, q2 = {
|
|
@@ -4394,49 +4394,49 @@ const a2 = {
|
|
|
4394
4394
|
style: { "justify-content": "flex-start" }
|
|
4395
4395
|
}, h2 = { class: "forecast-models" }, m2 = ["onClick"], B2 = { class: "more" };
|
|
4396
4396
|
function g2(z, M, b, O, p, o) {
|
|
4397
|
-
var A, t, q, r, a, n, s, d,
|
|
4397
|
+
var A, t, q, r, a, n, s, d, B, R, W, m, h, X, E;
|
|
4398
4398
|
return X0((l(), f("div", q2, [
|
|
4399
4399
|
c("div", i2, [
|
|
4400
4400
|
c("div", {
|
|
4401
4401
|
class: "iconfont close-btn",
|
|
4402
|
-
onClick: M[0] || (M[0] = (
|
|
4402
|
+
onClick: M[0] || (M[0] = (y) => p.showTropicals = !1)
|
|
4403
4403
|
}, ""),
|
|
4404
4404
|
c("div", r2, [
|
|
4405
4405
|
(t = (A = p.activeTropicals) == null ? void 0 : A.history) != null && t.level ? (l(), f("span", n2, T((r = (q = p.activeTropicals) == null ? void 0 : q.history) == null ? void 0 : r.level) + " , ", 1)) : _("", !0),
|
|
4406
4406
|
$(T((a = p.activeTropicals) == null ? void 0 : a.name), 1)
|
|
4407
4407
|
]),
|
|
4408
|
-
c("div", d2, " Last update: " + T(o.computeTime(((s = (n = p.activeTropicals) == null ? void 0 : n.history) == null ? void 0 : s.updated) || ((
|
|
4408
|
+
c("div", d2, " Last update: " + T(o.computeTime(((s = (n = p.activeTropicals) == null ? void 0 : n.history) == null ? void 0 : s.updated) || ((R = (B = (d = p.activeTropicals) == null ? void 0 : d.forecasts) == null ? void 0 : B.filter((y) => !y.disabled)[0]) == null ? void 0 : R.date))), 1)
|
|
4409
4409
|
]),
|
|
4410
4410
|
c("div", s2, [
|
|
4411
4411
|
c("div", W2, [
|
|
4412
4412
|
c("div", l2, [
|
|
4413
4413
|
c("div", f2, [
|
|
4414
4414
|
M[2] || (M[2] = c("label", null, "Wind speed : ", -1)),
|
|
4415
|
-
c("span", null, T(((
|
|
4415
|
+
c("span", null, T(((m = (W = p.activeTropicals) == null ? void 0 : W.history) == null ? void 0 : m.kts) || "-") + "[kts]", 1)
|
|
4416
4416
|
]),
|
|
4417
4417
|
c("div", u2, [
|
|
4418
4418
|
M[3] || (M[3] = c("label", null, "Pressure : ", -1)),
|
|
4419
|
-
c("span", null, T(((
|
|
4419
|
+
c("span", null, T(((X = (h = p.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : X.pressure) || "-") + "[hPa]", 1)
|
|
4420
4420
|
])
|
|
4421
4421
|
]),
|
|
4422
4422
|
c("div", L2, [
|
|
4423
4423
|
c("div", R2, [
|
|
4424
4424
|
M[4] || (M[4] = c("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
4425
4425
|
c("div", h2, [
|
|
4426
|
-
(l(!0), f(j, null, G((E = p.activeTropicals) == null ? void 0 : E.forecasts, (
|
|
4427
|
-
var U, Y,
|
|
4426
|
+
(l(!0), f(j, null, G((E = p.activeTropicals) == null ? void 0 : E.forecasts, (y, H) => {
|
|
4427
|
+
var U, Y, L, N;
|
|
4428
4428
|
return l(), f("div", {
|
|
4429
4429
|
key: H,
|
|
4430
4430
|
class: J([
|
|
4431
4431
|
"model",
|
|
4432
|
-
|
|
4433
|
-
H > 0 && H < ((Y = (U = p.activeTropicals) == null ? void 0 : U.forecasts) == null ? void 0 : Y.length) - 1 && ((
|
|
4432
|
+
y.disabled ? "" : "active",
|
|
4433
|
+
H > 0 && H < ((Y = (U = p.activeTropicals) == null ? void 0 : U.forecasts) == null ? void 0 : Y.length) - 1 && ((N = (L = p.activeTropicals) == null ? void 0 : L.forecasts) == null ? void 0 : N.length) > 2 ? "center-child" : ""
|
|
4434
4434
|
]),
|
|
4435
|
-
onClick: (A0) => o.handleForecastToggle(
|
|
4435
|
+
onClick: (A0) => o.handleForecastToggle(y)
|
|
4436
4436
|
}, [
|
|
4437
4437
|
c("span", {
|
|
4438
|
-
class: J(
|
|
4439
|
-
}, T(
|
|
4438
|
+
class: J(y.model)
|
|
4439
|
+
}, T(y.model), 3)
|
|
4440
4440
|
], 10, m2);
|
|
4441
4441
|
}), 128))
|
|
4442
4442
|
])
|
|
@@ -4447,7 +4447,7 @@ function g2(z, M, b, O, p, o) {
|
|
|
4447
4447
|
c("div", B2, [
|
|
4448
4448
|
c("div", {
|
|
4449
4449
|
class: "button",
|
|
4450
|
-
onClick: M[1] || (M[1] = (
|
|
4450
|
+
onClick: M[1] || (M[1] = (y) => o.handleStrikeProbability(p.activeTropicals))
|
|
4451
4451
|
}, "Strike Probability >>")
|
|
4452
4452
|
])
|
|
4453
4453
|
])
|
|
@@ -5086,42 +5086,42 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5086
5086
|
return e > 96 ? e - 87 : e > 64 ? e - 29 : e - 48;
|
|
5087
5087
|
}
|
|
5088
5088
|
function d(e) {
|
|
5089
|
-
var i = 0, u = e.split("."),
|
|
5090
|
-
for (e.charCodeAt(0) === 45 && (i = 1, F = -1), i; i <
|
|
5091
|
-
V = s(
|
|
5092
|
-
for (i = 0; i <
|
|
5093
|
-
D = D / 60, V = s(
|
|
5089
|
+
var i = 0, u = e.split("."), g = u[0], w = u[1] || "", D = 1, V, S = 0, F = 1;
|
|
5090
|
+
for (e.charCodeAt(0) === 45 && (i = 1, F = -1), i; i < g.length; i++)
|
|
5091
|
+
V = s(g.charCodeAt(i)), S = 60 * S + V;
|
|
5092
|
+
for (i = 0; i < w.length; i++)
|
|
5093
|
+
D = D / 60, V = s(w.charCodeAt(i)), S += V * D;
|
|
5094
5094
|
return S * F;
|
|
5095
5095
|
}
|
|
5096
|
-
function
|
|
5096
|
+
function B(e) {
|
|
5097
5097
|
for (var i = 0; i < e.length; i++)
|
|
5098
5098
|
e[i] = d(e[i]);
|
|
5099
5099
|
}
|
|
5100
|
-
function
|
|
5100
|
+
function R(e, i) {
|
|
5101
5101
|
for (var u = 0; u < i; u++)
|
|
5102
5102
|
e[u] = Math.round((e[u - 1] || 0) + e[u] * 6e4);
|
|
5103
5103
|
e[i - 1] = 1 / 0;
|
|
5104
5104
|
}
|
|
5105
5105
|
function W(e, i) {
|
|
5106
|
-
var u = [],
|
|
5107
|
-
for (
|
|
5108
|
-
u[
|
|
5106
|
+
var u = [], g;
|
|
5107
|
+
for (g = 0; g < i.length; g++)
|
|
5108
|
+
u[g] = e[i[g]];
|
|
5109
5109
|
return u;
|
|
5110
5110
|
}
|
|
5111
|
-
function
|
|
5112
|
-
var i = e.split("|"), u = i[2].split(" "),
|
|
5113
|
-
return
|
|
5111
|
+
function m(e) {
|
|
5112
|
+
var i = e.split("|"), u = i[2].split(" "), g = i[3].split(""), w = i[4].split(" ");
|
|
5113
|
+
return B(u), B(g), B(w), R(w, g.length), {
|
|
5114
5114
|
name: i[0],
|
|
5115
|
-
abbrs: W(i[1].split(" "),
|
|
5116
|
-
offsets: W(u,
|
|
5117
|
-
untils:
|
|
5115
|
+
abbrs: W(i[1].split(" "), g),
|
|
5116
|
+
offsets: W(u, g),
|
|
5117
|
+
untils: w,
|
|
5118
5118
|
population: i[5] | 0
|
|
5119
5119
|
};
|
|
5120
5120
|
}
|
|
5121
|
-
function
|
|
5122
|
-
e && this._set(
|
|
5121
|
+
function h(e) {
|
|
5122
|
+
e && this._set(m(e));
|
|
5123
5123
|
}
|
|
5124
|
-
function
|
|
5124
|
+
function X(e, i) {
|
|
5125
5125
|
var u = i.length;
|
|
5126
5126
|
if (e < i[0])
|
|
5127
5127
|
return 0;
|
|
@@ -5129,18 +5129,18 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5129
5129
|
return u - 1;
|
|
5130
5130
|
if (e >= i[u - 1])
|
|
5131
5131
|
return -1;
|
|
5132
|
-
for (var
|
|
5133
|
-
|
|
5132
|
+
for (var g, w = 0, D = u - 1; D - w > 1; )
|
|
5133
|
+
g = Math.floor((w + D) / 2), i[g] <= e ? w = g : D = g;
|
|
5134
5134
|
return D;
|
|
5135
5135
|
}
|
|
5136
|
-
|
|
5136
|
+
h.prototype = {
|
|
5137
5137
|
_set: function(e) {
|
|
5138
5138
|
this.name = e.name, this.abbrs = e.abbrs, this.untils = e.untils, this.offsets = e.offsets, this.population = e.population;
|
|
5139
5139
|
},
|
|
5140
5140
|
_index: function(e) {
|
|
5141
|
-
var i = +e, u = this.untils,
|
|
5142
|
-
if (
|
|
5143
|
-
return
|
|
5141
|
+
var i = +e, u = this.untils, g;
|
|
5142
|
+
if (g = X(i, u), g >= 0)
|
|
5143
|
+
return g;
|
|
5144
5144
|
},
|
|
5145
5145
|
countries: function() {
|
|
5146
5146
|
var e = this.name;
|
|
@@ -5149,11 +5149,11 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5149
5149
|
});
|
|
5150
5150
|
},
|
|
5151
5151
|
parse: function(e) {
|
|
5152
|
-
var i = +e, u = this.offsets,
|
|
5153
|
-
for (F = 0; F <
|
|
5154
|
-
if (D = u[F], V = u[F + 1], S = u[F && F - 1], D < V && I.moveAmbiguousForward ? D = V : D > S && I.moveInvalidForward && (D = S), i <
|
|
5152
|
+
var i = +e, u = this.offsets, g = this.untils, w = g.length - 1, D, V, S, F;
|
|
5153
|
+
for (F = 0; F < w; F++)
|
|
5154
|
+
if (D = u[F], V = u[F + 1], S = u[F && F - 1], D < V && I.moveAmbiguousForward ? D = V : D > S && I.moveInvalidForward && (D = S), i < g[F] - D * 6e4)
|
|
5155
5155
|
return u[F];
|
|
5156
|
-
return u[
|
|
5156
|
+
return u[w];
|
|
5157
5157
|
},
|
|
5158
5158
|
abbr: function(e) {
|
|
5159
5159
|
return this.abbrs[this._index(e)];
|
|
@@ -5168,7 +5168,7 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5168
5168
|
function E(e, i) {
|
|
5169
5169
|
this.name = e, this.zones = i;
|
|
5170
5170
|
}
|
|
5171
|
-
function
|
|
5171
|
+
function y(e) {
|
|
5172
5172
|
var i = e.toTimeString(), u = i.match(/\([a-z ]+\)/i);
|
|
5173
5173
|
u && u[0] ? (u = u[0].match(/[A-Z]/g), u = u ? u.join("") : void 0) : (u = i.match(/[A-Z]{3,5}/g), u = u ? u[0] : void 0), u === "GMT" && (u = void 0), this.at = +e, this.abbr = u, this.offset = e.getTimezoneOffset();
|
|
5174
5174
|
}
|
|
@@ -5179,38 +5179,38 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5179
5179
|
this.offsetScore += Math.abs(this.zone.utcOffset(e.at) - e.offset), this.zone.abbr(e.at).replace(/[^A-Z]/g, "") !== e.abbr && this.abbrScore++;
|
|
5180
5180
|
};
|
|
5181
5181
|
function U(e, i) {
|
|
5182
|
-
for (var u,
|
|
5183
|
-
u = new
|
|
5182
|
+
for (var u, g; g = ((i.at - e.at) / 12e4 | 0) * 6e4; )
|
|
5183
|
+
u = new y(new Date(e.at + g)), u.offset === e.offset ? e = u : i = u;
|
|
5184
5184
|
return e;
|
|
5185
5185
|
}
|
|
5186
5186
|
function Y() {
|
|
5187
|
-
var e = (/* @__PURE__ */ new Date()).getFullYear() - 2, i = new
|
|
5187
|
+
var e = (/* @__PURE__ */ new Date()).getFullYear() - 2, i = new y(new Date(e, 0, 1)), u = i.offset, g = [i], w, D, V, S;
|
|
5188
5188
|
for (S = 1; S < 48; S++)
|
|
5189
|
-
V = new Date(e, S, 1).getTimezoneOffset(), V !== u && (D = new
|
|
5189
|
+
V = new Date(e, S, 1).getTimezoneOffset(), V !== u && (D = new y(new Date(e, S, 1)), w = U(i, D), g.push(w), g.push(new y(new Date(w.at + 6e4))), i = D, u = V);
|
|
5190
5190
|
for (S = 0; S < 4; S++)
|
|
5191
|
-
|
|
5192
|
-
return
|
|
5191
|
+
g.push(new y(new Date(e + S, 0, 1))), g.push(new y(new Date(e + S, 6, 1)));
|
|
5192
|
+
return g;
|
|
5193
5193
|
}
|
|
5194
|
-
function
|
|
5194
|
+
function L(e, i) {
|
|
5195
5195
|
return e.offsetScore !== i.offsetScore ? e.offsetScore - i.offsetScore : e.abbrScore !== i.abbrScore ? e.abbrScore - i.abbrScore : e.zone.population !== i.zone.population ? i.zone.population - e.zone.population : i.zone.name.localeCompare(e.zone.name);
|
|
5196
5196
|
}
|
|
5197
|
-
function
|
|
5198
|
-
var u,
|
|
5199
|
-
for (
|
|
5200
|
-
|
|
5197
|
+
function N(e, i) {
|
|
5198
|
+
var u, g;
|
|
5199
|
+
for (B(i), u = 0; u < i.length; u++)
|
|
5200
|
+
g = i[u], t[g] = t[g] || {}, t[g][e] = !0;
|
|
5201
5201
|
}
|
|
5202
5202
|
function A0(e) {
|
|
5203
|
-
var i = e.length, u = {},
|
|
5203
|
+
var i = e.length, u = {}, g = [], w = {}, D, V, S, F;
|
|
5204
5204
|
for (D = 0; D < i; D++)
|
|
5205
|
-
if (S = e[D].offset, !
|
|
5205
|
+
if (S = e[D].offset, !w.hasOwnProperty(S)) {
|
|
5206
5206
|
F = t[S] || {};
|
|
5207
5207
|
for (V in F)
|
|
5208
5208
|
F.hasOwnProperty(V) && (u[V] = !0);
|
|
5209
|
-
|
|
5209
|
+
w[S] = !0;
|
|
5210
5210
|
}
|
|
5211
5211
|
for (D in u)
|
|
5212
|
-
u.hasOwnProperty(D) &&
|
|
5213
|
-
return
|
|
5212
|
+
u.hasOwnProperty(D) && g.push(A[D]);
|
|
5213
|
+
return g;
|
|
5214
5214
|
}
|
|
5215
5215
|
function n0() {
|
|
5216
5216
|
try {
|
|
@@ -5223,13 +5223,13 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5223
5223
|
}
|
|
5224
5224
|
} catch {
|
|
5225
5225
|
}
|
|
5226
|
-
var u = Y(),
|
|
5227
|
-
for (S = 0; S <
|
|
5228
|
-
for (V = new H(p0(
|
|
5226
|
+
var u = Y(), g = u.length, w = A0(u), D = [], V, S, F;
|
|
5227
|
+
for (S = 0; S < w.length; S++) {
|
|
5228
|
+
for (V = new H(p0(w[S])), F = 0; F < g; F++)
|
|
5229
5229
|
V.scoreOffsetAt(u[F]);
|
|
5230
5230
|
D.push(V);
|
|
5231
5231
|
}
|
|
5232
|
-
return D.sort(
|
|
5232
|
+
return D.sort(L), D.length > 0 ? D[0].zone.name : void 0;
|
|
5233
5233
|
}
|
|
5234
5234
|
function R0(e) {
|
|
5235
5235
|
return (!q || e) && (q = n0()), q;
|
|
@@ -5238,14 +5238,14 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5238
5238
|
return (e || "").toLowerCase().replace(/\//g, "_");
|
|
5239
5239
|
}
|
|
5240
5240
|
function f0(e) {
|
|
5241
|
-
var i, u,
|
|
5241
|
+
var i, u, g, w;
|
|
5242
5242
|
for (typeof e == "string" && (e = [e]), i = 0; i < e.length; i++)
|
|
5243
|
-
|
|
5243
|
+
g = e[i].split("|"), u = g[0], w = i0(u), O[w] = e[i], A[w] = u, N(w, g[2].split(" "));
|
|
5244
5244
|
}
|
|
5245
5245
|
function p0(e, i) {
|
|
5246
5246
|
e = i0(e);
|
|
5247
|
-
var u = O[e],
|
|
5248
|
-
return u instanceof
|
|
5247
|
+
var u = O[e], g;
|
|
5248
|
+
return u instanceof h ? u : typeof u == "string" ? (u = new h(u), O[e] = u, u) : p[e] && i !== p0 && (g = p0(p[e], p0)) ? (u = O[e] = new h(), u._set(g), u.name = A[e], u) : null;
|
|
5249
5249
|
}
|
|
5250
5250
|
function h0() {
|
|
5251
5251
|
var e, i = [];
|
|
@@ -5257,17 +5257,17 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5257
5257
|
return Object.keys(o);
|
|
5258
5258
|
}
|
|
5259
5259
|
function u0(e) {
|
|
5260
|
-
var i, u,
|
|
5260
|
+
var i, u, g, w;
|
|
5261
5261
|
for (typeof e == "string" && (e = [e]), i = 0; i < e.length; i++)
|
|
5262
|
-
u = e[i].split("|"),
|
|
5262
|
+
u = e[i].split("|"), g = i0(u[0]), w = i0(u[1]), p[g] = w, A[g] = u[0], p[w] = g, A[w] = u[1];
|
|
5263
5263
|
}
|
|
5264
5264
|
function r0(e) {
|
|
5265
|
-
var i, u,
|
|
5265
|
+
var i, u, g, w;
|
|
5266
5266
|
if (!(!e || !e.length))
|
|
5267
5267
|
for (i = 0; i < e.length; i++)
|
|
5268
|
-
|
|
5268
|
+
w = e[i].split("|"), u = w[0].toUpperCase(), g = w[1].split(" "), o[u] = new E(
|
|
5269
5269
|
u,
|
|
5270
|
-
|
|
5270
|
+
g
|
|
5271
5271
|
);
|
|
5272
5272
|
}
|
|
5273
5273
|
function d0(e) {
|
|
@@ -5277,11 +5277,11 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5277
5277
|
if (e = d0(e), !e)
|
|
5278
5278
|
return null;
|
|
5279
5279
|
var u = e.zones.sort();
|
|
5280
|
-
return i ? u.map(function(
|
|
5281
|
-
var
|
|
5280
|
+
return i ? u.map(function(g) {
|
|
5281
|
+
var w = p0(g);
|
|
5282
5282
|
return {
|
|
5283
|
-
name:
|
|
5284
|
-
offset:
|
|
5283
|
+
name: g,
|
|
5284
|
+
offset: w.utcOffset(/* @__PURE__ */ new Date())
|
|
5285
5285
|
};
|
|
5286
5286
|
}) : u;
|
|
5287
5287
|
}
|
|
@@ -5299,19 +5299,19 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
5299
5299
|
typeof console < "u" && typeof console.error == "function" && console.error(e);
|
|
5300
5300
|
}
|
|
5301
5301
|
function I(e) {
|
|
5302
|
-
var i = Array.prototype.slice.call(arguments, 0, -1), u = arguments[arguments.length - 1],
|
|
5303
|
-
return !M.isMoment(e) && b0(
|
|
5302
|
+
var i = Array.prototype.slice.call(arguments, 0, -1), u = arguments[arguments.length - 1], g = M.utc.apply(null, i), w;
|
|
5303
|
+
return !M.isMoment(e) && b0(g) && (w = p0(u)) && g.add(w.parse(g), "minutes"), g.tz(u), g;
|
|
5304
5304
|
}
|
|
5305
|
-
I.version = b, I.dataVersion = "", I._zones = O, I._links = p, I._names = A, I._countries = o, I.add = f0, I.link = u0, I.load = s0, I.zone = p0, I.zoneExists = P, I.guess = R0, I.names = h0, I.Zone =
|
|
5305
|
+
I.version = b, I.dataVersion = "", I._zones = O, I._links = p, I._names = A, I._countries = o, I.add = f0, I.link = u0, I.load = s0, I.zone = p0, I.zoneExists = P, I.guess = R0, I.names = h0, I.Zone = h, I.unpack = m, I.unpackBase60 = d, I.needsOffset = b0, I.moveInvalidForward = !0, I.moveAmbiguousForward = !1, I.countries = m0, I.zonesForCountry = B0;
|
|
5306
5306
|
var z0 = M.fn;
|
|
5307
5307
|
M.tz = I, M.defaultZone = null, M.updateOffset = function(e, i) {
|
|
5308
|
-
var u = M.defaultZone,
|
|
5308
|
+
var u = M.defaultZone, g;
|
|
5309
5309
|
if (e._z === void 0 && (u && b0(e) && !e._isUTC && e.isValid() && (e._d = M.utc(e._a)._d, e.utc().add(u.parse(e), "minutes")), e._z = u), e._z)
|
|
5310
|
-
if (
|
|
5311
|
-
var
|
|
5312
|
-
e.utcOffset(-
|
|
5310
|
+
if (g = e._z.utcOffset(e), Math.abs(g) < 16 && (g = g / 60), e.utcOffset !== void 0) {
|
|
5311
|
+
var w = e._z;
|
|
5312
|
+
e.utcOffset(-g, i), e._z = w;
|
|
5313
5313
|
} else
|
|
5314
|
-
e.zone(
|
|
5314
|
+
e.zone(g, i);
|
|
5315
5315
|
}, z0.tz = function(e, i) {
|
|
5316
5316
|
if (e) {
|
|
5317
5317
|
if (typeof e != "string")
|
|
@@ -6281,7 +6281,7 @@ const cM = {
|
|
|
6281
6281
|
if (this.showMeteo = !0, this.showMeteo && this.ts) {
|
|
6282
6282
|
this.handleRender();
|
|
6283
6283
|
const M = M0();
|
|
6284
|
-
((z = M0(this.ts)) == null ? void 0 : z.diff(M, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts,
|
|
6284
|
+
((z = M0(this.ts)) == null ? void 0 : z.diff(M, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData);
|
|
6285
6285
|
}
|
|
6286
6286
|
}
|
|
6287
6287
|
},
|
|
@@ -6294,7 +6294,7 @@ const cM = {
|
|
|
6294
6294
|
const A = v0(this.ts).tz(this.positionGmt).add(3 * o, "h").format();
|
|
6295
6295
|
return (t = x0.pickHourly(this.meteoData, A)) == null ? void 0 : t[0];
|
|
6296
6296
|
});
|
|
6297
|
-
this.meteoData && p ? this.initTableData(this.meteoData) : (this.loading || (b >= 0 ? await this.fetchMeteoData(this.point, this.ts,
|
|
6297
|
+
this.meteoData && p ? this.initTableData(this.meteoData) : (this.loading || (b >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts)), this.initTableData(this.meteoData));
|
|
6298
6298
|
}
|
|
6299
6299
|
}
|
|
6300
6300
|
}
|
|
@@ -6326,8 +6326,6 @@ const cM = {
|
|
|
6326
6326
|
};
|
|
6327
6327
|
}
|
|
6328
6328
|
},
|
|
6329
|
-
mounted() {
|
|
6330
|
-
},
|
|
6331
6329
|
methods: {
|
|
6332
6330
|
async fetchMeteoData(z, M, b) {
|
|
6333
6331
|
this.point = z, this.loading = !0, this.meteoData = [];
|
|
@@ -6335,7 +6333,7 @@ const cM = {
|
|
|
6335
6333
|
lat: z.lat,
|
|
6336
6334
|
lng: z.lng,
|
|
6337
6335
|
datetime: O,
|
|
6338
|
-
forecastDays: b ??
|
|
6336
|
+
forecastDays: b ?? 7
|
|
6339
6337
|
}, o = await N0.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, p, {
|
|
6340
6338
|
headers: {
|
|
6341
6339
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -6361,14 +6359,14 @@ const cM = {
|
|
|
6361
6359
|
initTableData(z) {
|
|
6362
6360
|
var M, b, O, p, o, A, t;
|
|
6363
6361
|
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 = v0(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : A.format("MMM-DD/HHmm[LT]"), this.currentHourData = (t = x0.pickHourly(z, M0(this.ts))) == null ? void 0 : t[0], this.$nextTick(() => {
|
|
6364
|
-
var r, a, n, s, d,
|
|
6362
|
+
var r, a, n, s, d, B, R, W, m, h, X, E, y, H, U, Y, L, N, A0, n0, R0, i0, f0, p0, h0, m0, u0, r0, d0, B0, s0, P, b0, t0, I, z0, W0, l0, L0;
|
|
6365
6363
|
const q = document.getElementById("meteoMainBox");
|
|
6366
6364
|
if (!q)
|
|
6367
6365
|
return !1;
|
|
6368
6366
|
if (q.className = "main-box", q.style.backgroundImage = null, q.style.backgroundPosition = "top left", ((a = (r = this.currentHourData) == null ? void 0 : r.weather) == null ? void 0 : a.code) === 0 && ((s = (n = this.currentHourData) == null ? void 0 : n.weather) == null ? void 0 : s.isDay) === 0)
|
|
6369
6367
|
q.className = "main-box night-bg";
|
|
6370
6368
|
else {
|
|
6371
|
-
const o0 = (
|
|
6369
|
+
const o0 = (B = (d = this.currentHourData) == null ? void 0 : d.weather) == null ? void 0 : B.bg;
|
|
6372
6370
|
o0 ? (q.className = "main-box font-color-white", q.style.backgroundImage = `url(${o0})`, (o0 === "https://osshz.idmwx.com/asset/weather/bg2.png" || o0 === "https://osshz.idmwx.com/asset/weather/bg5.png") && (q.style.backgroundPosition = "right bottom")) : q.className = "main-box day-bg";
|
|
6373
6371
|
}
|
|
6374
6372
|
if (!this.currentHourData)
|
|
@@ -6376,8 +6374,8 @@ const cM = {
|
|
|
6376
6374
|
for (let o0 = 0; o0 < 8; o0++) {
|
|
6377
6375
|
const e = v0(this.ts).tz(this.positionGmt).add(3 * o0, "h").format();
|
|
6378
6376
|
this.tableData.hours.push(e);
|
|
6379
|
-
const i = ((
|
|
6380
|
-
this.tableData.temp.push(this.roundPrecision((W = i == null ? void 0 : i.weather) == null ? void 0 : W.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((
|
|
6377
|
+
const i = ((R = x0.pickHourly(z, e)) == null ? void 0 : R[0]) || {};
|
|
6378
|
+
this.tableData.temp.push(this.roundPrecision((W = i == null ? void 0 : i.weather) == null ? void 0 : W.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((h = (m = i == null ? void 0 : i.weather) == null ? void 0 : m.precip) == null ? void 0 : h.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((E = (X = i == null ? void 0 : i.weather) == null ? void 0 : X.precip) == null ? void 0 : E.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((y = i == null ? void 0 : i.weather) == null ? void 0 : y.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((U = (H = i == null ? void 0 : i.weather) == null ? void 0 : H.wind) == null ? void 0 : U.kts, 1) ?? "-"), this.tableData.windDir.push((L = (Y = i == null ? void 0 : i.weather) == null ? void 0 : Y.wind) == null ? void 0 : L.bearing), this.tableData.windGust.push(this.roundPrecision((A0 = (N = i == null ? void 0 : i.weather) == null ? void 0 : N.wind) == null ? void 0 : A0.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((R0 = (n0 = i == null ? void 0 : i.wave) == null ? void 0 : n0.sig) == null ? void 0 : R0.height, 1) ?? "-"), this.tableData.sigwaveDir.push((f0 = (i0 = i == null ? void 0 : i.wave) == null ? void 0 : i0.sig) == null ? void 0 : f0.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((h0 = (p0 = i == null ? void 0 : i.wave) == null ? void 0 : p0.wd) == null ? void 0 : h0.height, 1) ?? "-"), this.tableData.windwaveDir.push((u0 = (m0 = i == null ? void 0 : i.wave) == null ? void 0 : m0.wd) == null ? void 0 : u0.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((d0 = (r0 = i == null ? void 0 : i.wave) == null ? void 0 : r0.wd) == null ? void 0 : d0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((s0 = (B0 = i == null ? void 0 : i.wave) == null ? void 0 : B0.swell) == null ? void 0 : s0.height, 1) ?? "-"), this.tableData.swellDir.push((b0 = (P = i == null ? void 0 : i.wave) == null ? void 0 : P.swell) == null ? void 0 : b0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((I = (t0 = i == null ? void 0 : i.wave) == null ? void 0 : t0.swell) == null ? void 0 : I.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((z0 = i == null ? void 0 : i.current) == null ? void 0 : z0.speed, 1) ?? "-"), this.tableData.currentDir.push((W0 = i == null ? void 0 : i.current) == null ? void 0 : W0.bearing), this.tableData.seaLevel.push(this.roundPrecision(i == null ? void 0 : i.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(i == null ? void 0 : i.sst, 0) ?? "-"), this.tableData.weatherUrls.push((l0 = i == null ? void 0 : i.weather) == null ? void 0 : l0.url), this.tableData.weatherNames.push(((L0 = i == null ? void 0 : i.weather) == null ? void 0 : L0.name) ?? "-");
|
|
6381
6379
|
}
|
|
6382
6380
|
});
|
|
6383
6381
|
},
|
|
@@ -6416,26 +6414,23 @@ const cM = {
|
|
|
6416
6414
|
this.show ? ((z = this.map) == null || z.on("click", this.handleClick), this.map.getCanvas().style.cursor = "pointer") : ((M = this.map) == null || M.off("click", this.handleClick), this.showMeteo = !1);
|
|
6417
6415
|
},
|
|
6418
6416
|
handleClick(z) {
|
|
6419
|
-
z.originalEvent.stopPropagation()
|
|
6420
|
-
const M = z.originalEvent.target.className;
|
|
6421
|
-
if (M.indexOf("close") > -1)
|
|
6422
|
-
this.showMeteo = !1;
|
|
6423
|
-
else if (M === "more")
|
|
6424
|
-
this.$emit("meteoMore", this.point);
|
|
6425
|
-
else if (M === "mapboxgl-canvas")
|
|
6417
|
+
if (z.originalEvent.stopPropagation(), z.originalEvent.target.className === "mapboxgl-canvas")
|
|
6426
6418
|
this.point = z.lngLat;
|
|
6427
6419
|
else
|
|
6428
6420
|
return !1;
|
|
6429
6421
|
},
|
|
6422
|
+
handleMeteoMore() {
|
|
6423
|
+
this.$emit("meteoMore", this.point);
|
|
6424
|
+
},
|
|
6425
|
+
handleCloseMeteo() {
|
|
6426
|
+
this.showMeteo = !1;
|
|
6427
|
+
},
|
|
6430
6428
|
handleRender() {
|
|
6431
6429
|
this.$nextTick(() => {
|
|
6432
6430
|
var M;
|
|
6433
6431
|
const z = document.getElementById("point-meteo");
|
|
6434
6432
|
this.point && (this.meteoMarker ? (M = this.meteoMarker) == null || M.setLngLat([this.point.lng, this.point.lat]) : this.meteoMarker = new y0.Marker(z).setLngLat([this.point.lng, this.point.lat]).addTo(this.map));
|
|
6435
6433
|
});
|
|
6436
|
-
},
|
|
6437
|
-
handleCloseMeteo() {
|
|
6438
|
-
this.showMeteo = !1;
|
|
6439
6434
|
}
|
|
6440
6435
|
}
|
|
6441
6436
|
}, AM = {
|
|
@@ -6454,502 +6449,503 @@ const cM = {
|
|
|
6454
6449
|
class: "main-box flex-center"
|
|
6455
6450
|
};
|
|
6456
6451
|
function bb(z, M, b, O, p, o) {
|
|
6457
|
-
var r, a, n, s, d,
|
|
6452
|
+
var r, a, n, s, d, B, R, W, m, h, X, E, y, H, U, Y;
|
|
6458
6453
|
const A = x("LocationFilled"), t = x("ElIcon"), q = x("ElTooltip");
|
|
6459
|
-
return l(), f("div",
|
|
6460
|
-
|
|
6461
|
-
c("div",
|
|
6462
|
-
c("div",
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6454
|
+
return X0((l(), f("div", AM, [
|
|
6455
|
+
c("div", eM, [
|
|
6456
|
+
c("div", tM, [
|
|
6457
|
+
c("div", aM, [
|
|
6458
|
+
C(t, { size: "22" }, {
|
|
6459
|
+
default: e0(() => [
|
|
6460
|
+
C(A)
|
|
6461
|
+
]),
|
|
6462
|
+
_: 1
|
|
6463
|
+
}),
|
|
6464
|
+
c("div", qM, T(o.computeLat((r = p.point) == null ? void 0 : r.lat)) + "," + T(o.computeLng((a = p.point) == null ? void 0 : a.lng)), 1)
|
|
6465
|
+
]),
|
|
6466
|
+
c("div", {
|
|
6467
|
+
class: "iconfont close",
|
|
6468
|
+
onClick: M[0] || (M[0] = (...L) => o.handleCloseMeteo && o.handleCloseMeteo(...L))
|
|
6469
|
+
}, "")
|
|
6470
|
+
]),
|
|
6471
|
+
p.loading ? (l(), f("div", Mb, M[30] || (M[30] = [
|
|
6472
|
+
c("img", { src: oM }, null, -1)
|
|
6473
|
+
]))) : (l(), f("div", iM, [
|
|
6474
|
+
c("div", rM, [
|
|
6475
|
+
c("div", nM, [
|
|
6476
|
+
C(q, {
|
|
6477
|
+
placement: "top",
|
|
6478
|
+
effect: "light",
|
|
6479
|
+
content: (s = (n = p.currentHourData) == null ? void 0 : n.weather) == null ? void 0 : s.name,
|
|
6480
|
+
"show-after": 1e3
|
|
6481
|
+
}, {
|
|
6482
|
+
default: e0(() => {
|
|
6483
|
+
var L, N, A0, n0;
|
|
6484
|
+
return [
|
|
6485
|
+
(N = (L = p.currentHourData) == null ? void 0 : L.weather) != null && N.url ? (l(), f("img", {
|
|
6486
|
+
key: 0,
|
|
6487
|
+
class: "iconfont icon",
|
|
6488
|
+
style: { "margin-right": "5px" },
|
|
6489
|
+
src: (n0 = (A0 = p.currentHourData) == null ? void 0 : A0.weather) == null ? void 0 : n0.url
|
|
6490
|
+
}, null, 8, dM)) : (l(), f("span", sM))
|
|
6491
|
+
];
|
|
6492
|
+
}),
|
|
6468
6493
|
_: 1
|
|
6469
|
-
}),
|
|
6470
|
-
c("div",
|
|
6494
|
+
}, 8, ["content"]),
|
|
6495
|
+
c("div", WM, [
|
|
6496
|
+
c("div", null, [
|
|
6497
|
+
$(T(o.roundPrecision((B = (d = p.currentHourData) == null ? void 0 : d.weather) == null ? void 0 : B.temp, 0)), 1),
|
|
6498
|
+
M[5] || (M[5] = c("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
6499
|
+
])
|
|
6500
|
+
]),
|
|
6501
|
+
c("div", lM, [
|
|
6502
|
+
c("div", fM, [
|
|
6503
|
+
M[6] || (M[6] = c("label", null, "Precip : ", -1)),
|
|
6504
|
+
c("span", null, T(o.roundPrecision((m = (W = (R = p.currentHourData) == null ? void 0 : R.weather) == null ? void 0 : W.precip) == null ? void 0 : m.sum, 0)) + " mm", 1)
|
|
6505
|
+
]),
|
|
6506
|
+
c("div", uM, [
|
|
6507
|
+
M[7] || (M[7] = c("label", null, "Visibility : ", -1)),
|
|
6508
|
+
c("span", null, T(o.roundPrecision((X = (h = p.currentHourData) == null ? void 0 : h.weather) == null ? void 0 : X.visibility, 0)) + " nm", 1)
|
|
6509
|
+
]),
|
|
6510
|
+
c("div", LM, [
|
|
6511
|
+
M[8] || (M[8] = c("label", null, "Wind : ", -1)),
|
|
6512
|
+
c("span", null, T(o.roundPrecision((H = (y = (E = p.currentHourData) == null ? void 0 : E.weather) == null ? void 0 : y.wind) == null ? void 0 : H.kts, 1)) + " kts", 1)
|
|
6513
|
+
])
|
|
6514
|
+
])
|
|
6471
6515
|
]),
|
|
6472
|
-
c("div",
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6516
|
+
c("div", RM, [
|
|
6517
|
+
c("div", hM, T(p.localDate), 1),
|
|
6518
|
+
c("div", mM, "( UTC " + T(p.positionOffset) + " )", 1)
|
|
6519
|
+
])
|
|
6476
6520
|
]),
|
|
6477
|
-
|
|
6478
|
-
c("
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6521
|
+
X0(c("div", BM, [
|
|
6522
|
+
c("div", gM, [
|
|
6523
|
+
c("div", {
|
|
6524
|
+
class: J(["menu-item", p.activeIndex === 1 ? "active" : ""]),
|
|
6525
|
+
onClick: M[1] || (M[1] = E0((L) => o.handleSelectTab(1), ["prevent"]))
|
|
6526
|
+
}, "Basis", 2),
|
|
6527
|
+
c("div", {
|
|
6528
|
+
class: J(["menu-item", p.activeIndex === 2 ? "active" : ""]),
|
|
6529
|
+
onClick: M[2] || (M[2] = E0((L) => o.handleSelectTab(2), ["prevent"]))
|
|
6530
|
+
}, "Wave & Current", 2),
|
|
6531
|
+
c("div", {
|
|
6532
|
+
class: J(["menu-item", p.activeIndex === 3 ? "active" : ""]),
|
|
6533
|
+
onClick: M[3] || (M[3] = E0((L) => o.handleSelectTab(3), ["prevent"]))
|
|
6534
|
+
}, "Sea Surface", 2)
|
|
6535
|
+
]),
|
|
6536
|
+
X0(c("table", NM, [
|
|
6537
|
+
c("tr", yM, [
|
|
6538
|
+
M[9] || (M[9] = c("th", {
|
|
6539
|
+
rowspan: "1",
|
|
6540
|
+
colspan: "1",
|
|
6541
|
+
class: "tr-title"
|
|
6542
|
+
}, [
|
|
6543
|
+
$("Hours"),
|
|
6544
|
+
c("span", { class: "unit" }, "(LT)")
|
|
6545
|
+
], -1)),
|
|
6546
|
+
(l(!0), f(j, null, G(p.tableData.hours, (L) => (l(), f("th", {
|
|
6547
|
+
rowspan: "1",
|
|
6548
|
+
colspan: "1",
|
|
6549
|
+
key: `HourL${L}`
|
|
6550
|
+
}, T(o.computeHourL(L)), 1))), 128))
|
|
6551
|
+
]),
|
|
6552
|
+
c("tr", XM, [
|
|
6553
|
+
M[10] || (M[10] = c("th", {
|
|
6554
|
+
rowspan: "1",
|
|
6555
|
+
colspan: "1",
|
|
6556
|
+
class: "tr-title"
|
|
6557
|
+
}, [
|
|
6558
|
+
$("UTC"),
|
|
6559
|
+
c("span", { class: "unit" })
|
|
6560
|
+
], -1)),
|
|
6561
|
+
(l(!0), f(j, null, G(p.tableData.hours, (L) => (l(), f("th", {
|
|
6562
|
+
rowspan: "1",
|
|
6563
|
+
colspan: "1",
|
|
6564
|
+
key: `HourZ${L}`
|
|
6565
|
+
}, T(o.computeHourZ(L)), 1))), 128))
|
|
6566
|
+
]),
|
|
6567
|
+
c("tr", wM, [
|
|
6568
|
+
M[11] || (M[11] = c("th", {
|
|
6569
|
+
rowspan: "1",
|
|
6570
|
+
colspan: "1",
|
|
6571
|
+
class: "tr-title"
|
|
6572
|
+
}, null, -1)),
|
|
6573
|
+
(l(!0), f(j, null, G(p.tableData.weatherUrls, (L, N) => (l(), f("th", {
|
|
6574
|
+
rowspan: "1",
|
|
6575
|
+
colspan: "1",
|
|
6576
|
+
key: `weatherUrls${N}${L}`
|
|
6577
|
+
}, [
|
|
6578
|
+
C(q, {
|
|
6579
|
+
placement: "top",
|
|
6580
|
+
effect: "light",
|
|
6581
|
+
content: p.tableData.weatherNames[N],
|
|
6582
|
+
"show-after": 500
|
|
6583
|
+
}, {
|
|
6584
|
+
default: e0(() => [
|
|
6585
|
+
L ? (l(), f("img", {
|
|
6492
6586
|
key: 0,
|
|
6493
|
-
class: "iconfont icon",
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
})
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
c("
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
]),
|
|
6516
|
-
c("div", LM, [
|
|
6517
|
-
M[7] || (M[7] = c("label", null, "Wind : ", -1)),
|
|
6518
|
-
c("span", null, T(o.roundPrecision((H = (N = (E = p.currentHourData) == null ? void 0 : E.weather) == null ? void 0 : N.wind) == null ? void 0 : H.kts, 1)) + " kts", 1)
|
|
6519
|
-
])
|
|
6520
|
-
])
|
|
6587
|
+
class: "iconfont weather-icon",
|
|
6588
|
+
src: L
|
|
6589
|
+
}, null, 8, CM)) : _("", !0)
|
|
6590
|
+
]),
|
|
6591
|
+
_: 2
|
|
6592
|
+
}, 1032, ["content"])
|
|
6593
|
+
]))), 128))
|
|
6594
|
+
]),
|
|
6595
|
+
c("tr", vM, [
|
|
6596
|
+
M[12] || (M[12] = c("td", {
|
|
6597
|
+
rowspan: "1",
|
|
6598
|
+
colspan: "1",
|
|
6599
|
+
class: "tr-title"
|
|
6600
|
+
}, [
|
|
6601
|
+
$("Temp"),
|
|
6602
|
+
c("span", { class: "unit" }, "°C")
|
|
6603
|
+
], -1)),
|
|
6604
|
+
(l(!0), f(j, null, G(p.tableData.temp, (L, N) => (l(), f("td", {
|
|
6605
|
+
rowspan: "1",
|
|
6606
|
+
colspan: "1",
|
|
6607
|
+
key: `weatherUrls${N}${L}`
|
|
6608
|
+
}, T(L), 1))), 128))
|
|
6521
6609
|
]),
|
|
6522
|
-
c("
|
|
6523
|
-
c("
|
|
6524
|
-
|
|
6610
|
+
c("tr", TM, [
|
|
6611
|
+
M[13] || (M[13] = c("td", {
|
|
6612
|
+
rowspan: "1",
|
|
6613
|
+
colspan: "1",
|
|
6614
|
+
class: "tr-title"
|
|
6615
|
+
}, [
|
|
6616
|
+
$("Precip"),
|
|
6617
|
+
c("span", { class: "unit" }, "mm")
|
|
6618
|
+
], -1)),
|
|
6619
|
+
(l(!0), f(j, null, G(p.tableData.precip1h, (L, N) => (l(), f("td", {
|
|
6620
|
+
rowspan: "1",
|
|
6621
|
+
colspan: "1",
|
|
6622
|
+
key: `precip1h${N}${L}`
|
|
6623
|
+
}, T(L), 1))), 128))
|
|
6624
|
+
]),
|
|
6625
|
+
c("tr", EM, [
|
|
6626
|
+
M[14] || (M[14] = c("td", {
|
|
6627
|
+
rowspan: "1",
|
|
6628
|
+
colspan: "1",
|
|
6629
|
+
class: "tr-title"
|
|
6630
|
+
}, [
|
|
6631
|
+
$("Visibility"),
|
|
6632
|
+
c("span", { class: "unit" }, "nm")
|
|
6633
|
+
], -1)),
|
|
6634
|
+
(l(!0), f(j, null, G(p.tableData.visibility, (L, N) => (l(), f("td", {
|
|
6635
|
+
rowspan: "1",
|
|
6636
|
+
colspan: "1",
|
|
6637
|
+
key: `visibility${N}${L}`
|
|
6638
|
+
}, T(L), 1))), 128))
|
|
6639
|
+
]),
|
|
6640
|
+
c("tr", xM, [
|
|
6641
|
+
M[15] || (M[15] = c("td", {
|
|
6642
|
+
rowspan: "1",
|
|
6643
|
+
colspan: "1",
|
|
6644
|
+
class: "tr-title"
|
|
6645
|
+
}, [
|
|
6646
|
+
$("Wind"),
|
|
6647
|
+
c("span", { class: "unit" }, "kts")
|
|
6648
|
+
], -1)),
|
|
6649
|
+
(l(!0), f(j, null, G(p.tableData.windSpeed, (L, N) => (l(), f("td", {
|
|
6650
|
+
rowspan: "1",
|
|
6651
|
+
colspan: "1",
|
|
6652
|
+
key: `windSpeed${N}${L}`
|
|
6653
|
+
}, [
|
|
6654
|
+
isNaN(p.tableData.windDir[N]) ? _("", !0) : (l(), f("span", {
|
|
6655
|
+
key: 0,
|
|
6656
|
+
class: "iconfont icon blue",
|
|
6657
|
+
style: O0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[N]}deg)` })
|
|
6658
|
+
}, "", 4)),
|
|
6659
|
+
c("span", null, T(L), 1)
|
|
6660
|
+
]))), 128))
|
|
6525
6661
|
])
|
|
6662
|
+
], 512), [
|
|
6663
|
+
[w0, p.activeIndex === 1]
|
|
6526
6664
|
]),
|
|
6527
|
-
X0(c("
|
|
6528
|
-
c("
|
|
6529
|
-
c("
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6665
|
+
X0(c("table", IM, [
|
|
6666
|
+
c("tr", DM, [
|
|
6667
|
+
M[16] || (M[16] = c("th", {
|
|
6668
|
+
rowspan: "1",
|
|
6669
|
+
colspan: "1",
|
|
6670
|
+
class: "tr-title"
|
|
6671
|
+
}, [
|
|
6672
|
+
$("Hours"),
|
|
6673
|
+
c("span", { class: "unit" }, "(LT)")
|
|
6674
|
+
], -1)),
|
|
6675
|
+
(l(!0), f(j, null, G(p.tableData.hours, (L, N) => (l(), f("th", {
|
|
6676
|
+
rowspan: "1",
|
|
6677
|
+
colspan: "1",
|
|
6678
|
+
key: `currenthoursL${N}${L}`
|
|
6679
|
+
}, T(o.computeHourL(L)), 1))), 128))
|
|
6541
6680
|
]),
|
|
6542
|
-
|
|
6543
|
-
c("
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
}, T(o.computeHourL(g)), 1))), 128))
|
|
6557
|
-
]),
|
|
6558
|
-
c("tr", XM, [
|
|
6559
|
-
M[9] || (M[9] = c("th", {
|
|
6560
|
-
rowspan: "1",
|
|
6561
|
-
colspan: "1",
|
|
6562
|
-
class: "tr-title"
|
|
6563
|
-
}, [
|
|
6564
|
-
$("UTC"),
|
|
6565
|
-
c("span", { class: "unit" })
|
|
6566
|
-
], -1)),
|
|
6567
|
-
(l(!0), f(j, null, G(p.tableData.hours, (g) => (l(), f("th", {
|
|
6568
|
-
rowspan: "1",
|
|
6569
|
-
colspan: "1",
|
|
6570
|
-
key: Math.random()
|
|
6571
|
-
}, T(o.computeHourZ(g)), 1))), 128))
|
|
6572
|
-
]),
|
|
6573
|
-
c("tr", wM, [
|
|
6574
|
-
M[10] || (M[10] = c("th", {
|
|
6575
|
-
rowspan: "1",
|
|
6576
|
-
colspan: "1",
|
|
6577
|
-
class: "tr-title"
|
|
6578
|
-
}, null, -1)),
|
|
6579
|
-
(l(!0), f(j, null, G(p.tableData.weatherUrls, (g, v) => (l(), f("th", {
|
|
6580
|
-
rowspan: "1",
|
|
6581
|
-
colspan: "1",
|
|
6582
|
-
key: Math.random()
|
|
6583
|
-
}, [
|
|
6584
|
-
w(q, {
|
|
6585
|
-
placement: "top",
|
|
6586
|
-
effect: "light",
|
|
6587
|
-
content: p.tableData.weatherNames[v],
|
|
6588
|
-
"show-after": 500
|
|
6589
|
-
}, {
|
|
6590
|
-
default: e0(() => [
|
|
6591
|
-
g ? (l(), f("img", {
|
|
6592
|
-
key: 0,
|
|
6593
|
-
class: "iconfont weather-icon",
|
|
6594
|
-
src: g
|
|
6595
|
-
}, null, 8, CM)) : _("", !0)
|
|
6596
|
-
]),
|
|
6597
|
-
_: 2
|
|
6598
|
-
}, 1032, ["content"])
|
|
6599
|
-
]))), 128))
|
|
6600
|
-
]),
|
|
6601
|
-
c("tr", vM, [
|
|
6602
|
-
M[11] || (M[11] = c("td", {
|
|
6603
|
-
rowspan: "1",
|
|
6604
|
-
colspan: "1",
|
|
6605
|
-
class: "tr-title"
|
|
6606
|
-
}, [
|
|
6607
|
-
$("Temp"),
|
|
6608
|
-
c("span", { class: "unit" }, "°C")
|
|
6609
|
-
], -1)),
|
|
6610
|
-
(l(!0), f(j, null, G(p.tableData.temp, (g) => (l(), f("td", {
|
|
6611
|
-
rowspan: "1",
|
|
6612
|
-
colspan: "1",
|
|
6613
|
-
key: Math.random()
|
|
6614
|
-
}, T(g), 1))), 128))
|
|
6615
|
-
]),
|
|
6616
|
-
c("tr", TM, [
|
|
6617
|
-
M[12] || (M[12] = c("td", {
|
|
6618
|
-
rowspan: "1",
|
|
6619
|
-
colspan: "1",
|
|
6620
|
-
class: "tr-title"
|
|
6621
|
-
}, [
|
|
6622
|
-
$("Precip"),
|
|
6623
|
-
c("span", { class: "unit" }, "mm")
|
|
6624
|
-
], -1)),
|
|
6625
|
-
(l(!0), f(j, null, G(p.tableData.precip1h, (g) => (l(), f("td", {
|
|
6626
|
-
rowspan: "1",
|
|
6627
|
-
colspan: "1",
|
|
6628
|
-
key: Math.random()
|
|
6629
|
-
}, T(g), 1))), 128))
|
|
6630
|
-
]),
|
|
6631
|
-
c("tr", EM, [
|
|
6632
|
-
M[13] || (M[13] = c("td", {
|
|
6633
|
-
rowspan: "1",
|
|
6634
|
-
colspan: "1",
|
|
6635
|
-
class: "tr-title"
|
|
6636
|
-
}, [
|
|
6637
|
-
$("Visibility"),
|
|
6638
|
-
c("span", { class: "unit" }, "nm")
|
|
6639
|
-
], -1)),
|
|
6640
|
-
(l(!0), f(j, null, G(p.tableData.visibility, (g) => (l(), f("td", {
|
|
6641
|
-
rowspan: "1",
|
|
6642
|
-
colspan: "1",
|
|
6643
|
-
key: Math.random()
|
|
6644
|
-
}, T(g), 1))), 128))
|
|
6645
|
-
]),
|
|
6646
|
-
c("tr", xM, [
|
|
6647
|
-
M[14] || (M[14] = c("td", {
|
|
6648
|
-
rowspan: "1",
|
|
6649
|
-
colspan: "1",
|
|
6650
|
-
class: "tr-title"
|
|
6651
|
-
}, [
|
|
6652
|
-
$("Wind"),
|
|
6653
|
-
c("span", { class: "unit" }, "kts")
|
|
6654
|
-
], -1)),
|
|
6655
|
-
(l(!0), f(j, null, G(p.tableData.windSpeed, (g, v) => (l(), f("td", {
|
|
6656
|
-
rowspan: "1",
|
|
6657
|
-
colspan: "1",
|
|
6658
|
-
key: Math.random()
|
|
6659
|
-
}, [
|
|
6660
|
-
isNaN(p.tableData.windDir[v]) ? _("", !0) : (l(), f("span", {
|
|
6661
|
-
key: 0,
|
|
6662
|
-
class: "iconfont icon blue",
|
|
6663
|
-
style: O0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[v]}deg)` })
|
|
6664
|
-
}, "", 4)),
|
|
6665
|
-
c("span", null, T(g), 1)
|
|
6666
|
-
]))), 128))
|
|
6667
|
-
])
|
|
6668
|
-
], 512), [
|
|
6669
|
-
[w0, p.activeIndex === 1]
|
|
6681
|
+
c("tr", PM, [
|
|
6682
|
+
M[17] || (M[17] = c("th", {
|
|
6683
|
+
rowspan: "1",
|
|
6684
|
+
colspan: "1",
|
|
6685
|
+
class: "tr-title"
|
|
6686
|
+
}, [
|
|
6687
|
+
$("UTC"),
|
|
6688
|
+
c("span", { class: "unit" })
|
|
6689
|
+
], -1)),
|
|
6690
|
+
(l(!0), f(j, null, G(p.tableData.hours, (L, N) => (l(), f("th", {
|
|
6691
|
+
rowspan: "1",
|
|
6692
|
+
colspan: "1",
|
|
6693
|
+
key: `currenthoursZ${N}${L}`
|
|
6694
|
+
}, T(o.computeHourZ(L)), 1))), 128))
|
|
6670
6695
|
]),
|
|
6671
|
-
|
|
6672
|
-
c("
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
(
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
rowspan: "1",
|
|
6698
|
-
colspan: "1",
|
|
6699
|
-
key: Math.random()
|
|
6700
|
-
}, T(o.computeHourZ(g)), 1))), 128))
|
|
6701
|
-
]),
|
|
6702
|
-
c("tr", SM, [
|
|
6703
|
-
M[17] || (M[17] = c("th", {
|
|
6704
|
-
rowspan: "1",
|
|
6705
|
-
colspan: "1"
|
|
6706
|
-
}, null, -1)),
|
|
6707
|
-
(l(!0), f(j, null, G(p.tableData.weatherUrls, (g, v) => (l(), f("th", {
|
|
6708
|
-
rowspan: "1",
|
|
6709
|
-
colspan: "1",
|
|
6710
|
-
key: Math.random()
|
|
6711
|
-
}, [
|
|
6712
|
-
w(q, {
|
|
6713
|
-
placement: "top",
|
|
6714
|
-
effect: "light",
|
|
6715
|
-
content: p.tableData.weatherNames[v],
|
|
6716
|
-
"show-after": 500
|
|
6717
|
-
}, {
|
|
6718
|
-
default: e0(() => [
|
|
6719
|
-
g ? (l(), f("img", {
|
|
6720
|
-
key: 0,
|
|
6721
|
-
class: "iconfont weather-icon",
|
|
6722
|
-
src: g
|
|
6723
|
-
}, null, 8, kM)) : _("", !0)
|
|
6724
|
-
]),
|
|
6725
|
-
_: 2
|
|
6726
|
-
}, 1032, ["content"])
|
|
6727
|
-
]))), 128))
|
|
6728
|
-
]),
|
|
6729
|
-
c("tr", QM, [
|
|
6730
|
-
M[18] || (M[18] = c("td", {
|
|
6731
|
-
rowspan: "1",
|
|
6732
|
-
colspan: "1",
|
|
6733
|
-
class: "tr-title"
|
|
6734
|
-
}, [
|
|
6735
|
-
$("Sig Wave"),
|
|
6736
|
-
c("span", { class: "unit" }, "m")
|
|
6737
|
-
], -1)),
|
|
6738
|
-
(l(!0), f(j, null, G(p.tableData.sigwaveHeight, (g, v) => (l(), f("td", {
|
|
6739
|
-
rowspan: "1",
|
|
6740
|
-
colspan: "1",
|
|
6741
|
-
key: Math.random()
|
|
6742
|
-
}, [
|
|
6743
|
-
isNaN(p.tableData.sigwaveDir[v]) ? _("", !0) : (l(), f("span", {
|
|
6744
|
-
key: 0,
|
|
6745
|
-
class: "iconfont icon blue",
|
|
6746
|
-
style: O0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[v]}deg)` })
|
|
6747
|
-
}, "", 4)),
|
|
6748
|
-
c("span", null, T(g), 1)
|
|
6749
|
-
]))), 128))
|
|
6750
|
-
]),
|
|
6751
|
-
c("tr", HM, [
|
|
6752
|
-
M[19] || (M[19] = c("td", {
|
|
6753
|
-
rowspan: "1",
|
|
6754
|
-
colspan: "1",
|
|
6755
|
-
class: "tr-title"
|
|
6756
|
-
}, [
|
|
6757
|
-
$("Wind Wave"),
|
|
6758
|
-
c("span", { class: "unit" }, "m")
|
|
6759
|
-
], -1)),
|
|
6760
|
-
(l(!0), f(j, null, G(p.tableData.windwaveHeight, (g, v) => (l(), f("td", {
|
|
6761
|
-
rowspan: "1",
|
|
6762
|
-
colspan: "1",
|
|
6763
|
-
key: Math.random()
|
|
6764
|
-
}, [
|
|
6765
|
-
isNaN(p.tableData.sigwaveDir[v]) ? _("", !0) : (l(), f("span", {
|
|
6766
|
-
key: 0,
|
|
6767
|
-
class: "iconfont icon orange",
|
|
6768
|
-
style: O0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[v]}deg)` })
|
|
6769
|
-
}, "", 4)),
|
|
6770
|
-
c("span", null, T(g), 1)
|
|
6771
|
-
]))), 128))
|
|
6772
|
-
]),
|
|
6773
|
-
c("tr", _M, [
|
|
6774
|
-
M[20] || (M[20] = c("td", {
|
|
6775
|
-
rowspan: "1",
|
|
6776
|
-
colspan: "1",
|
|
6777
|
-
class: "tr-title"
|
|
6778
|
-
}, [
|
|
6779
|
-
$("Swell"),
|
|
6780
|
-
c("span", { class: "unit" }, "m")
|
|
6781
|
-
], -1)),
|
|
6782
|
-
(l(!0), f(j, null, G(p.tableData.swellHeight, (g, v) => (l(), f("td", {
|
|
6783
|
-
rowspan: "1",
|
|
6784
|
-
colspan: "1",
|
|
6785
|
-
key: Math.random()
|
|
6786
|
-
}, [
|
|
6787
|
-
isNaN(p.tableData.swellDir[v]) ? _("", !0) : (l(), f("span", {
|
|
6788
|
-
key: 0,
|
|
6789
|
-
class: "iconfont icon orange",
|
|
6790
|
-
style: O0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[v]}deg)` })
|
|
6791
|
-
}, "", 4)),
|
|
6792
|
-
c("span", null, T(g), 1)
|
|
6793
|
-
]))), 128))
|
|
6794
|
-
]),
|
|
6795
|
-
c("tr", jM, [
|
|
6796
|
-
M[21] || (M[21] = c("td", {
|
|
6797
|
-
rowspan: "1",
|
|
6798
|
-
colspan: "1",
|
|
6799
|
-
class: "tr-title"
|
|
6800
|
-
}, [
|
|
6801
|
-
$("Current"),
|
|
6802
|
-
c("span", { class: "unit" }, "kts")
|
|
6803
|
-
], -1)),
|
|
6804
|
-
(l(!0), f(j, null, G(p.tableData.currentSpeed, (g, v) => (l(), f("td", {
|
|
6805
|
-
rowspan: "1",
|
|
6806
|
-
colspan: "1",
|
|
6807
|
-
key: Math.random()
|
|
6808
|
-
}, [
|
|
6809
|
-
isNaN(p.tableData.currentDir[v]) ? _("", !0) : (l(), f("span", {
|
|
6810
|
-
key: 0,
|
|
6811
|
-
class: "iconfont icon gray",
|
|
6812
|
-
id: "meteoGrayIcon",
|
|
6813
|
-
style: O0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[v]}deg)` })
|
|
6814
|
-
}, "", 4)),
|
|
6815
|
-
c("span", null, T(g), 1)
|
|
6816
|
-
]))), 128))
|
|
6817
|
-
])
|
|
6818
|
-
], 512), [
|
|
6819
|
-
[w0, p.activeIndex === 2]
|
|
6696
|
+
c("tr", SM, [
|
|
6697
|
+
M[18] || (M[18] = c("th", {
|
|
6698
|
+
rowspan: "1",
|
|
6699
|
+
colspan: "1"
|
|
6700
|
+
}, null, -1)),
|
|
6701
|
+
(l(!0), f(j, null, G(p.tableData.weatherUrls, (L, N) => (l(), f("th", {
|
|
6702
|
+
rowspan: "1",
|
|
6703
|
+
colspan: "1",
|
|
6704
|
+
key: `currentweatherUrls${N}${L}`
|
|
6705
|
+
}, [
|
|
6706
|
+
C(q, {
|
|
6707
|
+
placement: "top",
|
|
6708
|
+
effect: "light",
|
|
6709
|
+
content: p.tableData.weatherNames[N],
|
|
6710
|
+
"show-after": 500
|
|
6711
|
+
}, {
|
|
6712
|
+
default: e0(() => [
|
|
6713
|
+
L ? (l(), f("img", {
|
|
6714
|
+
key: 0,
|
|
6715
|
+
class: "iconfont weather-icon",
|
|
6716
|
+
src: L
|
|
6717
|
+
}, null, 8, kM)) : _("", !0)
|
|
6718
|
+
]),
|
|
6719
|
+
_: 2
|
|
6720
|
+
}, 1032, ["content"])
|
|
6721
|
+
]))), 128))
|
|
6820
6722
|
]),
|
|
6821
|
-
|
|
6822
|
-
c("
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
]),
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
]),
|
|
6910
|
-
c("tr", ZM, [
|
|
6911
|
-
M[27] || (M[27] = c("td", {
|
|
6912
|
-
rowspan: "1",
|
|
6913
|
-
colspan: "1",
|
|
6914
|
-
class: "tr-title"
|
|
6915
|
-
}, [
|
|
6916
|
-
c("span", { class: "unit" })
|
|
6917
|
-
], -1)),
|
|
6918
|
-
(l(!0), f(j, null, G(p.tableData.seaTemp, (g) => (l(), f("td", {
|
|
6919
|
-
rowspan: "1",
|
|
6920
|
-
colspan: "1",
|
|
6921
|
-
key: Math.random()
|
|
6922
|
-
}))), 128))
|
|
6923
|
-
]),
|
|
6924
|
-
c("tr", $M, [
|
|
6925
|
-
M[28] || (M[28] = c("td", {
|
|
6926
|
-
rowspan: "1",
|
|
6927
|
-
colspan: "1",
|
|
6928
|
-
class: "tr-title"
|
|
6929
|
-
}, [
|
|
6930
|
-
c("span", { class: "unit" })
|
|
6931
|
-
], -1)),
|
|
6932
|
-
(l(!0), f(j, null, G(p.tableData.seaTemp, (g) => (l(), f("td", {
|
|
6933
|
-
rowspan: "1",
|
|
6934
|
-
colspan: "1",
|
|
6935
|
-
key: Math.random()
|
|
6936
|
-
}))), 128))
|
|
6937
|
-
])
|
|
6938
|
-
], 512), [
|
|
6939
|
-
[w0, p.activeIndex === 3]
|
|
6723
|
+
c("tr", QM, [
|
|
6724
|
+
M[19] || (M[19] = c("td", {
|
|
6725
|
+
rowspan: "1",
|
|
6726
|
+
colspan: "1",
|
|
6727
|
+
class: "tr-title"
|
|
6728
|
+
}, [
|
|
6729
|
+
$("Sig Wave"),
|
|
6730
|
+
c("span", { class: "unit" }, "m")
|
|
6731
|
+
], -1)),
|
|
6732
|
+
(l(!0), f(j, null, G(p.tableData.sigwaveHeight, (L, N) => (l(), f("td", {
|
|
6733
|
+
rowspan: "1",
|
|
6734
|
+
colspan: "1",
|
|
6735
|
+
key: `sigwaveHeight${N}${L}`
|
|
6736
|
+
}, [
|
|
6737
|
+
isNaN(p.tableData.sigwaveDir[N]) ? _("", !0) : (l(), f("span", {
|
|
6738
|
+
key: 0,
|
|
6739
|
+
class: "iconfont icon blue",
|
|
6740
|
+
style: O0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[N]}deg)` })
|
|
6741
|
+
}, "", 4)),
|
|
6742
|
+
c("span", null, T(L), 1)
|
|
6743
|
+
]))), 128))
|
|
6744
|
+
]),
|
|
6745
|
+
c("tr", HM, [
|
|
6746
|
+
M[20] || (M[20] = c("td", {
|
|
6747
|
+
rowspan: "1",
|
|
6748
|
+
colspan: "1",
|
|
6749
|
+
class: "tr-title"
|
|
6750
|
+
}, [
|
|
6751
|
+
$("Wind Wave"),
|
|
6752
|
+
c("span", { class: "unit" }, "m")
|
|
6753
|
+
], -1)),
|
|
6754
|
+
(l(!0), f(j, null, G(p.tableData.windwaveHeight, (L, N) => (l(), f("td", {
|
|
6755
|
+
rowspan: "1",
|
|
6756
|
+
colspan: "1",
|
|
6757
|
+
key: `windwaveHeight${N}${L}`
|
|
6758
|
+
}, [
|
|
6759
|
+
isNaN(p.tableData.sigwaveDir[N]) ? _("", !0) : (l(), f("span", {
|
|
6760
|
+
key: 0,
|
|
6761
|
+
class: "iconfont icon orange",
|
|
6762
|
+
style: O0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[N]}deg)` })
|
|
6763
|
+
}, "", 4)),
|
|
6764
|
+
c("span", null, T(L), 1)
|
|
6765
|
+
]))), 128))
|
|
6766
|
+
]),
|
|
6767
|
+
c("tr", _M, [
|
|
6768
|
+
M[21] || (M[21] = c("td", {
|
|
6769
|
+
rowspan: "1",
|
|
6770
|
+
colspan: "1",
|
|
6771
|
+
class: "tr-title"
|
|
6772
|
+
}, [
|
|
6773
|
+
$("Swell"),
|
|
6774
|
+
c("span", { class: "unit" }, "m")
|
|
6775
|
+
], -1)),
|
|
6776
|
+
(l(!0), f(j, null, G(p.tableData.swellHeight, (L, N) => (l(), f("td", {
|
|
6777
|
+
rowspan: "1",
|
|
6778
|
+
colspan: "1",
|
|
6779
|
+
key: `swellHeight${N}${L}`
|
|
6780
|
+
}, [
|
|
6781
|
+
isNaN(p.tableData.swellDir[N]) ? _("", !0) : (l(), f("span", {
|
|
6782
|
+
key: 0,
|
|
6783
|
+
class: "iconfont icon orange",
|
|
6784
|
+
style: O0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[N]}deg)` })
|
|
6785
|
+
}, "", 4)),
|
|
6786
|
+
c("span", null, T(L), 1)
|
|
6787
|
+
]))), 128))
|
|
6788
|
+
]),
|
|
6789
|
+
c("tr", jM, [
|
|
6790
|
+
M[22] || (M[22] = c("td", {
|
|
6791
|
+
rowspan: "1",
|
|
6792
|
+
colspan: "1",
|
|
6793
|
+
class: "tr-title"
|
|
6794
|
+
}, [
|
|
6795
|
+
$("Current"),
|
|
6796
|
+
c("span", { class: "unit" }, "kts")
|
|
6797
|
+
], -1)),
|
|
6798
|
+
(l(!0), f(j, null, G(p.tableData.currentSpeed, (L, N) => (l(), f("td", {
|
|
6799
|
+
rowspan: "1",
|
|
6800
|
+
colspan: "1",
|
|
6801
|
+
key: `currentSpeed${N}${L}`
|
|
6802
|
+
}, [
|
|
6803
|
+
isNaN(p.tableData.currentDir[N]) ? _("", !0) : (l(), f("span", {
|
|
6804
|
+
key: 0,
|
|
6805
|
+
class: "iconfont icon gray",
|
|
6806
|
+
id: "meteoGrayIcon",
|
|
6807
|
+
style: O0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[N]}deg)` })
|
|
6808
|
+
}, "", 4)),
|
|
6809
|
+
c("span", null, T(L), 1)
|
|
6810
|
+
]))), 128))
|
|
6940
6811
|
])
|
|
6941
6812
|
], 512), [
|
|
6942
|
-
[w0,
|
|
6813
|
+
[w0, p.activeIndex === 2]
|
|
6943
6814
|
]),
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6815
|
+
X0(c("table", FM, [
|
|
6816
|
+
c("tr", GM, [
|
|
6817
|
+
M[23] || (M[23] = c("th", {
|
|
6818
|
+
rowspan: "1",
|
|
6819
|
+
colspan: "1",
|
|
6820
|
+
class: "tr-title"
|
|
6821
|
+
}, [
|
|
6822
|
+
$("Hours"),
|
|
6823
|
+
c("span", { class: "unit" }, "(LT)")
|
|
6824
|
+
], -1)),
|
|
6825
|
+
(l(!0), f(j, null, G(p.tableData.hours, (L, N) => (l(), f("th", {
|
|
6826
|
+
rowspan: "1",
|
|
6827
|
+
colspan: "1",
|
|
6828
|
+
key: `seahoursL${N}${L}`
|
|
6829
|
+
}, T(o.computeHourL(L)), 1))), 128))
|
|
6830
|
+
]),
|
|
6831
|
+
c("tr", UM, [
|
|
6832
|
+
M[24] || (M[24] = c("th", {
|
|
6833
|
+
rowspan: "1",
|
|
6834
|
+
colspan: "1",
|
|
6835
|
+
class: "tr-title"
|
|
6836
|
+
}, [
|
|
6837
|
+
$("UTC"),
|
|
6838
|
+
c("span", { class: "unit" })
|
|
6839
|
+
], -1)),
|
|
6840
|
+
(l(!0), f(j, null, G(p.tableData.hours, (L, N) => (l(), f("th", {
|
|
6841
|
+
rowspan: "1",
|
|
6842
|
+
colspan: "1",
|
|
6843
|
+
key: `seahoursZ${N}${L}`
|
|
6844
|
+
}, T(o.computeHourZ(L)), 1))), 128))
|
|
6845
|
+
]),
|
|
6846
|
+
c("tr", KM, [
|
|
6847
|
+
M[25] || (M[25] = c("th", {
|
|
6848
|
+
rowspan: "1",
|
|
6849
|
+
colspan: "1",
|
|
6850
|
+
class: "tr-title"
|
|
6851
|
+
}, null, -1)),
|
|
6852
|
+
(l(!0), f(j, null, G(p.tableData.weatherUrls, (L, N) => (l(), f("th", {
|
|
6853
|
+
rowspan: "1",
|
|
6854
|
+
colspan: "1",
|
|
6855
|
+
key: `seaweatherUrls${N}${L}`
|
|
6856
|
+
}, [
|
|
6857
|
+
C(q, {
|
|
6858
|
+
placement: "top",
|
|
6859
|
+
effect: "light",
|
|
6860
|
+
content: p.tableData.weatherNames[N],
|
|
6861
|
+
"show-after": 500
|
|
6862
|
+
}, {
|
|
6863
|
+
default: e0(() => [
|
|
6864
|
+
L ? (l(), f("img", {
|
|
6865
|
+
key: 0,
|
|
6866
|
+
class: "iconfont weather-icon",
|
|
6867
|
+
src: L
|
|
6868
|
+
}, null, 8, JM)) : _("", !0)
|
|
6869
|
+
]),
|
|
6870
|
+
_: 2
|
|
6871
|
+
}, 1032, ["content"])
|
|
6872
|
+
]))), 128))
|
|
6873
|
+
]),
|
|
6874
|
+
c("tr", YM, [
|
|
6875
|
+
M[26] || (M[26] = c("td", {
|
|
6876
|
+
rowspan: "1",
|
|
6877
|
+
colspan: "1",
|
|
6878
|
+
class: "tr-title"
|
|
6879
|
+
}, [
|
|
6880
|
+
$("SeaLevel"),
|
|
6881
|
+
c("span", { class: "unit" }, "m")
|
|
6882
|
+
], -1)),
|
|
6883
|
+
(l(!0), f(j, null, G(p.tableData.seaLevel, (L, N) => (l(), f("td", {
|
|
6884
|
+
rowspan: "1",
|
|
6885
|
+
colspan: "1",
|
|
6886
|
+
key: `SeaLevel${N}${L}`
|
|
6887
|
+
}, T(L), 1))), 128))
|
|
6888
|
+
]),
|
|
6889
|
+
c("tr", VM, [
|
|
6890
|
+
M[27] || (M[27] = c("td", {
|
|
6891
|
+
rowspan: "1",
|
|
6892
|
+
colspan: "1",
|
|
6893
|
+
class: "tr-title"
|
|
6894
|
+
}, [
|
|
6895
|
+
$("SeaTemp"),
|
|
6896
|
+
c("span", { class: "unit" }, "°C")
|
|
6897
|
+
], -1)),
|
|
6898
|
+
(l(!0), f(j, null, G(p.tableData.seaTemp, (L, N) => (l(), f("td", {
|
|
6899
|
+
rowspan: "1",
|
|
6900
|
+
colspan: "1",
|
|
6901
|
+
key: `SeaTemp${N}${L}`
|
|
6902
|
+
}, T(L), 1))), 128))
|
|
6903
|
+
]),
|
|
6904
|
+
c("tr", ZM, [
|
|
6905
|
+
M[28] || (M[28] = c("td", {
|
|
6906
|
+
rowspan: "1",
|
|
6907
|
+
colspan: "1",
|
|
6908
|
+
class: "tr-title"
|
|
6909
|
+
}, [
|
|
6910
|
+
c("span", { class: "unit" })
|
|
6911
|
+
], -1)),
|
|
6912
|
+
(l(!0), f(j, null, G(p.tableData.seaTemp, (L, N) => (l(), f("td", {
|
|
6913
|
+
rowspan: "1",
|
|
6914
|
+
colspan: "1",
|
|
6915
|
+
key: `seaTemp-${N}${L}`
|
|
6916
|
+
}))), 128))
|
|
6917
|
+
]),
|
|
6918
|
+
c("tr", $M, [
|
|
6919
|
+
M[29] || (M[29] = c("td", {
|
|
6920
|
+
rowspan: "1",
|
|
6921
|
+
colspan: "1",
|
|
6922
|
+
class: "tr-title"
|
|
6923
|
+
}, [
|
|
6924
|
+
c("span", { class: "unit" })
|
|
6925
|
+
], -1)),
|
|
6926
|
+
(l(!0), f(j, null, G(p.tableData.seaTemp, (L, N) => (l(), f("td", {
|
|
6927
|
+
rowspan: "1",
|
|
6928
|
+
colspan: "1",
|
|
6929
|
+
key: `seaTemp--${N}${L}`
|
|
6930
|
+
}))), 128))
|
|
6931
|
+
])
|
|
6932
|
+
], 512), [
|
|
6933
|
+
[w0, p.activeIndex === 3]
|
|
6934
|
+
])
|
|
6935
|
+
], 512), [
|
|
6936
|
+
[w0, ((Y = (U = p.tableData) == null ? void 0 : U.hours) == null ? void 0 : Y.length) > 0]
|
|
6937
|
+
]),
|
|
6938
|
+
c("div", {
|
|
6939
|
+
class: "more",
|
|
6940
|
+
onClick: M[4] || (M[4] = (...L) => o.handleMeteoMore && o.handleMeteoMore(...L))
|
|
6941
|
+
}, "More >>")
|
|
6942
|
+
]))
|
|
6949
6943
|
])
|
|
6944
|
+
], 512)), [
|
|
6945
|
+
[w0, p.showMeteo]
|
|
6950
6946
|
]);
|
|
6951
6947
|
}
|
|
6952
|
-
const zb = /* @__PURE__ */ k(cM, [["render", bb], ["__scopeId", "data-v-
|
|
6948
|
+
const zb = /* @__PURE__ */ k(cM, [["render", bb], ["__scopeId", "data-v-a0922901"]]), pb = {
|
|
6953
6949
|
name: "IdmWarZone",
|
|
6954
6950
|
props: {
|
|
6955
6951
|
map: {
|
|
@@ -7417,7 +7413,7 @@ const Wb = {
|
|
|
7417
7413
|
type: String
|
|
7418
7414
|
}
|
|
7419
7415
|
},
|
|
7420
|
-
emits: ["
|
|
7416
|
+
emits: ["handleIdmPoint"],
|
|
7421
7417
|
data() {
|
|
7422
7418
|
return {
|
|
7423
7419
|
source: "port-source",
|
|
@@ -7460,9 +7456,6 @@ const Wb = {
|
|
|
7460
7456
|
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new y0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
7461
7457
|
}
|
|
7462
7458
|
},
|
|
7463
|
-
handleEmit() {
|
|
7464
|
-
this.$emit("port", this.form);
|
|
7465
|
-
},
|
|
7466
7459
|
handleRender() {
|
|
7467
7460
|
var z;
|
|
7468
7461
|
this.map ? this.port && (this.map.getSource(this.source) ? (z = this.map) == null || z.getSource(this.source).setData(this.port) : (this.map.addSource(this.source, {
|
|
@@ -7514,26 +7507,24 @@ function Bb(z, M, b, O, p, o) {
|
|
|
7514
7507
|
}, ""),
|
|
7515
7508
|
c("div", fb, [
|
|
7516
7509
|
c("div", ub, [
|
|
7517
|
-
M[
|
|
7518
|
-
c("span",
|
|
7519
|
-
onClick: M[1] || (M[1] = (...A) => o.handleEmit && o.handleEmit(...A))
|
|
7520
|
-
}, T(p.form.name), 1)
|
|
7510
|
+
M[2] || (M[2] = c("label", null, "Name : ", -1)),
|
|
7511
|
+
c("span", null, T(p.form.name), 1)
|
|
7521
7512
|
]),
|
|
7522
7513
|
c("div", Lb, [
|
|
7523
|
-
M[
|
|
7514
|
+
M[3] || (M[3] = c("label", null, "Position : ", -1)),
|
|
7524
7515
|
c("span", null, T(o.computeLat(p.form.lat)) + ", " + T(o.computeLng(p.form.lng)), 1)
|
|
7525
7516
|
]),
|
|
7526
7517
|
c("div", Rb, [
|
|
7527
|
-
M[
|
|
7518
|
+
M[4] || (M[4] = c("label", null, "LoCode : ", -1)),
|
|
7528
7519
|
c("span", null, T(p.form.loCode || "-"), 1)
|
|
7529
7520
|
]),
|
|
7530
7521
|
c("div", hb, [
|
|
7531
|
-
M[
|
|
7522
|
+
M[5] || (M[5] = c("label", null, "Region : ", -1)),
|
|
7532
7523
|
c("span", null, T(p.form.zoneName || "-"), 1)
|
|
7533
7524
|
]),
|
|
7534
7525
|
c("div", mb, [
|
|
7535
7526
|
c("span", {
|
|
7536
|
-
onClick: M[
|
|
7527
|
+
onClick: M[1] || (M[1] = (A) => o.handleClickMeteo(p.form))
|
|
7537
7528
|
}, "Meteo Forecast")
|
|
7538
7529
|
])
|
|
7539
7530
|
])
|
|
@@ -7541,7 +7532,7 @@ function Bb(z, M, b, O, p, o) {
|
|
|
7541
7532
|
[w0, p.showPort]
|
|
7542
7533
|
]);
|
|
7543
7534
|
}
|
|
7544
|
-
const gb = /* @__PURE__ */ k(Wb, [["render", Bb], ["__scopeId", "data-v-
|
|
7535
|
+
const gb = /* @__PURE__ */ k(Wb, [["render", Bb], ["__scopeId", "data-v-56879f0c"]]), Nb = {
|
|
7545
7536
|
name: "IdmLoadLine",
|
|
7546
7537
|
props: {
|
|
7547
7538
|
map: {
|
|
@@ -8126,7 +8117,7 @@ const Hb = {
|
|
|
8126
8117
|
handleZoomEnd() {
|
|
8127
8118
|
var M;
|
|
8128
8119
|
const z = this.handleComputeLatLngs();
|
|
8129
|
-
(M = this.map) == null || M.getSource(this.source).setData(
|
|
8120
|
+
(M = this.map) == null || M.getSource(this.source).setData(v.featureCollection(z));
|
|
8130
8121
|
},
|
|
8131
8122
|
handleRender() {
|
|
8132
8123
|
if (this.map) {
|
|
@@ -8250,22 +8241,22 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
|
|
|
8250
8241
|
if ((M == null ? void 0 : M.split("-").length) === 2) {
|
|
8251
8242
|
const s = this.geojson.filter((W) => W.id === M.split("-")[0])[0];
|
|
8252
8243
|
this.pointMarkers[s.id].filter((W) => {
|
|
8253
|
-
var
|
|
8254
|
-
return ((
|
|
8244
|
+
var m;
|
|
8245
|
+
return ((m = W._element) == null ? void 0 : m.id) === M;
|
|
8255
8246
|
})[0].setLngLat([(o = (p = z.target) == null ? void 0 : p._lngLat) == null ? void 0 : o.lng, (t = (A = z.target) == null ? void 0 : A._lngLat) == null ? void 0 : t.lat]);
|
|
8256
|
-
let
|
|
8257
|
-
s.features.forEach((W,
|
|
8247
|
+
let B;
|
|
8248
|
+
s.features.forEach((W, m) => {
|
|
8258
8249
|
if (W.geometry.type === "Point" && W.properties.id == M.split("-")[1]) {
|
|
8259
|
-
|
|
8250
|
+
B = m;
|
|
8260
8251
|
return;
|
|
8261
8252
|
}
|
|
8262
8253
|
});
|
|
8263
|
-
const
|
|
8254
|
+
const R = s.features.filter((W) => W.geometry.type === "Point");
|
|
8264
8255
|
this.handleTmpPointUpdate(
|
|
8265
8256
|
s,
|
|
8266
|
-
|
|
8267
|
-
{ lng: (r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, lat: (n = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : n.lat, properties:
|
|
8268
|
-
|
|
8257
|
+
R[B - 1],
|
|
8258
|
+
{ lng: (r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, lat: (n = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : n.lat, properties: R[B].properties },
|
|
8259
|
+
B === R.length - 1 ? void 0 : R[B + 1]
|
|
8269
8260
|
);
|
|
8270
8261
|
}
|
|
8271
8262
|
},
|
|
@@ -8273,13 +8264,13 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
|
|
|
8273
8264
|
var b, O, p, o, A, t, q, r, a, n;
|
|
8274
8265
|
const M = (O = (b = z.target) == null ? void 0 : b._element) == null ? void 0 : O.id;
|
|
8275
8266
|
if ((M == null ? void 0 : M.split("-").length) === 2) {
|
|
8276
|
-
const s = this.geojson.filter((
|
|
8277
|
-
this.pointMarkers[s.id].filter((
|
|
8267
|
+
const s = this.geojson.filter((R) => R.id === M.split("-")[0])[0];
|
|
8268
|
+
this.pointMarkers[s.id].filter((R) => {
|
|
8278
8269
|
var W;
|
|
8279
|
-
return ((W =
|
|
8270
|
+
return ((W = R._element) == null ? void 0 : W.id) === M;
|
|
8280
8271
|
})[0].setLngLat([(o = (p = z.target) == null ? void 0 : p._lngLat) == null ? void 0 : o.lng, (t = (A = z.target) == null ? void 0 : A._lngLat) == null ? void 0 : t.lat]);
|
|
8281
|
-
const
|
|
8282
|
-
|
|
8272
|
+
const B = s.features.filter((R) => R.geometry.type === "Point" && R.properties.id == M.split("-")[1])[0];
|
|
8273
|
+
B.geometry.coordinates = [(r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, (n = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : n.lat], s.features = s.features.filter((R) => R.geometry.type === "Point"), this.handlePointUpdate(s);
|
|
8283
8274
|
}
|
|
8284
8275
|
},
|
|
8285
8276
|
handleContextmenu(z) {
|
|
@@ -8306,8 +8297,8 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
|
|
|
8306
8297
|
q.features = q.features.filter((r) => r.geometry.type === "Point" && r.properties.id !== t[1]), this.handlePointUpdate(q);
|
|
8307
8298
|
} else if (M !== "marker-label") {
|
|
8308
8299
|
let t = this.geojson.at(-1);
|
|
8309
|
-
t || (t =
|
|
8310
|
-
const q =
|
|
8300
|
+
t || (t = v.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(t)), t.features = t.features.filter((r) => r.geometry.type === "Point");
|
|
8301
|
+
const q = v.feature(
|
|
8311
8302
|
{
|
|
8312
8303
|
type: "Point",
|
|
8313
8304
|
coordinates: [z.lngLat.lng, z.lngLat.lat]
|
|
@@ -8330,7 +8321,7 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
|
|
|
8330
8321
|
b = Z.roundPrecision(b + a, 2);
|
|
8331
8322
|
let s;
|
|
8332
8323
|
t.mode === "RL" ? s = Z.convertToMonotonicLng([q, r]) : s = Z.convertToMonotonicLng(g0.interpolateCoordinates(q, r, 200));
|
|
8333
|
-
const d =
|
|
8324
|
+
const d = v.lineString(s.map((B) => [B.lng, B.lat]));
|
|
8334
8325
|
d.properties.dist = a, d.properties.bearing = n, d.properties.total = b, O.push(d);
|
|
8335
8326
|
}
|
|
8336
8327
|
M.push(...O), z.total = b;
|
|
@@ -8338,14 +8329,14 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
|
|
|
8338
8329
|
return this.handleRender(z), z;
|
|
8339
8330
|
},
|
|
8340
8331
|
handleTmpPointUpdate(z, M, b, O) {
|
|
8341
|
-
const p =
|
|
8332
|
+
const p = v.featureCollection([]);
|
|
8342
8333
|
let o, A;
|
|
8343
8334
|
if (M) {
|
|
8344
8335
|
const q = M.properties, r = { lng: M.geometry.coordinates[0], lat: M.geometry.coordinates[1] }, a = { lng: b.lng, lat: b.lat };
|
|
8345
8336
|
o = g0.calculateDistance(r, a, q.mode === "RL", 2), A = g0.calculateBearing(r, a, q.mode === "RL", 2);
|
|
8346
8337
|
let n;
|
|
8347
8338
|
q.mode === "RL" ? n = Z.convertToMonotonicLng([r, a]) : n = Z.convertToMonotonicLng(g0.interpolateCoordinates(r, a, 200));
|
|
8348
|
-
const s =
|
|
8339
|
+
const s = v.lineString(n.map((d) => [d.lng, d.lat]));
|
|
8349
8340
|
s.properties.dist = o, s.properties.bearing = A, p.features.push(s);
|
|
8350
8341
|
}
|
|
8351
8342
|
if (O) {
|
|
@@ -8353,7 +8344,7 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
|
|
|
8353
8344
|
o = g0.calculateDistance(r, a, q.mode === "RL", 2), A = g0.calculateBearing(r, a, q.mode === "RL", 2);
|
|
8354
8345
|
let n;
|
|
8355
8346
|
q.mode === "RL" ? n = Z.convertToMonotonicLng([r, a]) : n = Z.convertToMonotonicLng(g0.interpolateCoordinates(r, a, 200));
|
|
8356
|
-
const s =
|
|
8347
|
+
const s = v.lineString(n.map((d) => [d.lng, d.lat]));
|
|
8357
8348
|
s.properties.dist = o, s.properties.bearing = A, p.features.push(s);
|
|
8358
8349
|
}
|
|
8359
8350
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(p) : this.map.addSource(this.tmpSource, {
|
|
@@ -8404,14 +8395,14 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
|
|
|
8404
8395
|
handleMove(z) {
|
|
8405
8396
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
8406
8397
|
let M = this.geojson.at(-1);
|
|
8407
|
-
M || (M =
|
|
8398
|
+
M || (M = v.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(M));
|
|
8408
8399
|
const b = M.features.filter((O) => O.geometry.type === "Point");
|
|
8409
8400
|
b != null && b.length && this.handleTmpPointUpdate(M, b.at(-1), { lng: z.lngLat.lng, lat: z.lngLat.lat });
|
|
8410
8401
|
},
|
|
8411
8402
|
handleDblClick(z) {
|
|
8412
8403
|
z.preventDefault();
|
|
8413
8404
|
let M = this.geojson.at(-1);
|
|
8414
|
-
M.closed = !0, this.handleRender(M), M =
|
|
8405
|
+
M.closed = !0, this.handleRender(M), M = v.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(M);
|
|
8415
8406
|
},
|
|
8416
8407
|
handleRender(z) {
|
|
8417
8408
|
var M;
|
|
@@ -8468,8 +8459,8 @@ const U0 = /* @__PURE__ */ k(Hb, [["render", _b], ["__scopeId", "data-v-ad66a24c
|
|
|
8468
8459
|
handleClear(z, M = !0) {
|
|
8469
8460
|
var o, A, t, q, r, a, n, s, d;
|
|
8470
8461
|
const b = `${z.id}-${this.source}`, O = `${z.id}-${this.layer}`, p = `${z.id}-${this.labelLayer}`;
|
|
8471
|
-
(o = this.map) != null && o.getLayer(O) && this.map.removeLayer(O), (A = this.map) != null && A.getLayer(p) && this.map.removeLayer(p), (t = this.map) != null && t.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (q = this.map) != null && q.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (r = this.closeMarkers[z.id]) == null || r.remove(), this.closeMarkers[z.id] = void 0, (a = this.pointMarkers[z.id]) == null || a.forEach((
|
|
8472
|
-
|
|
8462
|
+
(o = this.map) != null && o.getLayer(O) && this.map.removeLayer(O), (A = this.map) != null && A.getLayer(p) && this.map.removeLayer(p), (t = this.map) != null && t.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (q = this.map) != null && q.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (r = this.closeMarkers[z.id]) == null || r.remove(), this.closeMarkers[z.id] = void 0, (a = this.pointMarkers[z.id]) == null || a.forEach((B) => {
|
|
8463
|
+
B == null || B.remove();
|
|
8473
8464
|
}), this.pointMarkers[z.id] = [], (n = this.tipMarker) == null || n.remove(), this.tipMarker = void 0, M && ((s = this.map) != null && s.getSource(b)) && this.map.removeSource(b), M && ((d = this.map) != null && d.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
8474
8465
|
}
|
|
8475
8466
|
}
|
|
@@ -8539,7 +8530,7 @@ function Yb(z, M, b, O, p, o) {
|
|
|
8539
8530
|
style: O0({ position: "absolute", right: p.right + "px", bottom: b.bottom })
|
|
8540
8531
|
}, [
|
|
8541
8532
|
c("div", Jb, [
|
|
8542
|
-
|
|
8533
|
+
C(A, {
|
|
8543
8534
|
placement: "left",
|
|
8544
8535
|
effect: "light",
|
|
8545
8536
|
content: "Hifleet",
|
|
@@ -8555,7 +8546,7 @@ function Yb(z, M, b, O, p, o) {
|
|
|
8555
8546
|
]),
|
|
8556
8547
|
_: 1
|
|
8557
8548
|
}),
|
|
8558
|
-
|
|
8549
|
+
C(A, {
|
|
8559
8550
|
placement: "left",
|
|
8560
8551
|
effect: "light",
|
|
8561
8552
|
content: "I4insight",
|
|
@@ -8802,53 +8793,53 @@ const bz = {
|
|
|
8802
8793
|
const M = (/* @__PURE__ */ new Date()).valueOf();
|
|
8803
8794
|
let b = 0, O = 0;
|
|
8804
8795
|
if (this.map) {
|
|
8805
|
-
const s = ((p = this.map) == null ? void 0 : p.getZoom()) + 1, d = (o = this.map) == null ? void 0 : o.getBounds(),
|
|
8796
|
+
const s = ((p = this.map) == null ? void 0 : p.getZoom()) + 1, d = (o = this.map) == null ? void 0 : o.getBounds(), B = `${d._sw.lng},${d._sw.lat},${d._ne.lng},${d._ne.lat}`;
|
|
8806
8797
|
if (this.particleFactor) {
|
|
8807
|
-
const
|
|
8808
|
-
var
|
|
8809
|
-
return ((
|
|
8798
|
+
const R = I0.WEATHER_LAYERS.find((W) => {
|
|
8799
|
+
var m;
|
|
8800
|
+
return ((m = W.peer) == null ? void 0 : m.weight) === this.particleFactor.weight;
|
|
8810
8801
|
});
|
|
8811
|
-
this.particleFactor.particle ? this.weatherWeight = this.weatherWeight &
|
|
8802
|
+
this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & R.weight ? this.weatherWeight : this.weatherWeight + R.weight : this.weatherWeight = this.weatherWeight & R.weight ? this.weatherWeight - R.weight : this.weatherWeight;
|
|
8812
8803
|
}
|
|
8813
8804
|
if (this.weatherWeight > 0) {
|
|
8814
|
-
let
|
|
8815
|
-
if (z.tropicals || this.weatherWeight & 256 && (W = this.weatherLayers.tropicals, W && (
|
|
8816
|
-
const
|
|
8805
|
+
let R = this.weatherWeight, W;
|
|
8806
|
+
if (z.tropicals || this.weatherWeight & 256 && (W = this.weatherLayers.tropicals, W && (R -= 256, W.version = Math.random() + 1)), R > 0) {
|
|
8807
|
+
const m = await N0.get(`${this.gateway}/api/arc/weather/layers/links?l=${R}&v=${this.source}&z=${s}&bbox=${B}&t=${this.ts}`, {
|
|
8817
8808
|
headers: {
|
|
8818
8809
|
Authorization: this.token || this.defaultMeteoToken
|
|
8819
8810
|
}
|
|
8820
8811
|
});
|
|
8821
|
-
if (O = (/* @__PURE__ */ new Date()).valueOf() - (M + b), console.log("weather links elapsed: ", O, ", total: ", b += O), ((A =
|
|
8822
|
-
const
|
|
8823
|
-
for (const
|
|
8824
|
-
|
|
8825
|
-
N0.get(
|
|
8812
|
+
if (O = (/* @__PURE__ */ new Date()).valueOf() - (M + b), console.log("weather links elapsed: ", O, ", total: ", b += O), ((A = m == null ? void 0 : m.data) == null ? void 0 : A.code) === 0) {
|
|
8813
|
+
const h = (t = m == null ? void 0 : m.data) == null ? void 0 : t.data, X = [];
|
|
8814
|
+
for (const y in h)
|
|
8815
|
+
y === "ice-edge" && (h[y] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), y !== "tropicals" && X.push(
|
|
8816
|
+
N0.get(h[y], {
|
|
8826
8817
|
headers: {
|
|
8827
8818
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8828
|
-
key:
|
|
8819
|
+
key: y
|
|
8829
8820
|
},
|
|
8830
|
-
responseType: /\.(jpg|png)$/.test(
|
|
8821
|
+
responseType: /\.(jpg|png)$/.test(h[y]) ? "blob" : "json"
|
|
8831
8822
|
}).catch((H) => {
|
|
8832
|
-
console.log(`[${
|
|
8823
|
+
console.log(`[${y}] fetch layer error: ${H}`);
|
|
8833
8824
|
})
|
|
8834
8825
|
);
|
|
8835
|
-
const E = await Promise.all(
|
|
8836
|
-
this.weatherLayers = {}, E.map((
|
|
8837
|
-
var Y,
|
|
8838
|
-
const H = ((Y =
|
|
8826
|
+
const E = await Promise.all(X);
|
|
8827
|
+
this.weatherLayers = {}, E.map((y) => {
|
|
8828
|
+
var Y, L, N, A0;
|
|
8829
|
+
const H = ((Y = y == null ? void 0 : y.data) == null ? void 0 : Y.data) || (y == null ? void 0 : y.data), U = (N = (L = y == null ? void 0 : y.config) == null ? void 0 : L.headers) == null ? void 0 : N.key;
|
|
8839
8830
|
U && H && (this.weatherLayers[U] = {
|
|
8840
8831
|
raw: H,
|
|
8841
|
-
type: ((A0 =
|
|
8832
|
+
type: ((A0 = y == null ? void 0 : y.config) == null ? void 0 : A0.responseType) === "blob" ? "image" : "json",
|
|
8842
8833
|
etime: this.ts
|
|
8843
8834
|
});
|
|
8844
|
-
}),
|
|
8835
|
+
}), h.tropicals && N0.get(h.tropicals, {
|
|
8845
8836
|
headers: {
|
|
8846
8837
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8847
8838
|
key: "tropicals"
|
|
8848
8839
|
}
|
|
8849
|
-
}).then((
|
|
8850
|
-
var Y,
|
|
8851
|
-
const H = _0.convert2Geojson(((Y =
|
|
8840
|
+
}).then((y) => {
|
|
8841
|
+
var Y, L, N;
|
|
8842
|
+
const H = _0.convert2Geojson(((Y = y == null ? void 0 : y.data) == null ? void 0 : Y.data) || (y == null ? void 0 : y.data)), U = (N = (L = y == null ? void 0 : y.config) == null ? void 0 : L.headers) == null ? void 0 : N.key;
|
|
8852
8843
|
this.weatherLayers[U] = {
|
|
8853
8844
|
data: H,
|
|
8854
8845
|
active: !0,
|
|
@@ -8860,20 +8851,20 @@ const bz = {
|
|
|
8860
8851
|
});
|
|
8861
8852
|
}
|
|
8862
8853
|
if (O = (/* @__PURE__ */ new Date()).valueOf() - (M + b), console.log("weather layers elapsed: ", O, ", total: ", b += O), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
8863
|
-
const
|
|
8854
|
+
const h = (q = this.weatherLayers["swell-direction"]) == null ? void 0 : q.raw, X = (r = this.weatherLayers["swell-height"]) == null ? void 0 : r.raw;
|
|
8864
8855
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8865
8856
|
type: "json",
|
|
8866
|
-
direction:
|
|
8867
|
-
height: { raw:
|
|
8857
|
+
direction: h,
|
|
8858
|
+
height: { raw: X },
|
|
8868
8859
|
etime: this.ts
|
|
8869
8860
|
};
|
|
8870
8861
|
}
|
|
8871
8862
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8872
|
-
const
|
|
8863
|
+
const h = (a = this.weatherLayers["current-direction"]) == null ? void 0 : a.raw, X = (n = this.weatherLayers["current-speed"]) == null ? void 0 : n.raw;
|
|
8873
8864
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8874
8865
|
type: "json",
|
|
8875
|
-
direction:
|
|
8876
|
-
speed: { raw:
|
|
8866
|
+
direction: h,
|
|
8867
|
+
speed: { raw: X },
|
|
8877
8868
|
etime: this.ts
|
|
8878
8869
|
};
|
|
8879
8870
|
}
|
|
@@ -8910,9 +8901,9 @@ const bz = {
|
|
|
8910
8901
|
);
|
|
8911
8902
|
const n = await Promise.all(a);
|
|
8912
8903
|
this.otherLayers = { enc: A, world12nm: t }, n.map((s) => {
|
|
8913
|
-
var
|
|
8914
|
-
const d = ((
|
|
8915
|
-
this.otherLayers[
|
|
8904
|
+
var R, W, m;
|
|
8905
|
+
const d = ((R = s == null ? void 0 : s.data) == null ? void 0 : R.data) || (s == null ? void 0 : s.data), B = (m = (W = s == null ? void 0 : s.config) == null ? void 0 : W.headers) == null ? void 0 : m.key;
|
|
8906
|
+
this.otherLayers[B] = d;
|
|
8916
8907
|
});
|
|
8917
8908
|
}
|
|
8918
8909
|
} else if (z.dayNight && o & 1024) {
|
|
@@ -8933,9 +8924,9 @@ const bz = {
|
|
|
8933
8924
|
})
|
|
8934
8925
|
);
|
|
8935
8926
|
(await Promise.all(a)).map((s) => {
|
|
8936
|
-
var
|
|
8937
|
-
const d = ((
|
|
8938
|
-
this.otherLayers[
|
|
8927
|
+
var R, W, m;
|
|
8928
|
+
const d = ((R = s == null ? void 0 : s.data) == null ? void 0 : R.data) || (s == null ? void 0 : s.data), B = (m = (W = s == null ? void 0 : s.config) == null ? void 0 : W.headers) == null ? void 0 : m.key;
|
|
8929
|
+
this.otherLayers[B] = d;
|
|
8939
8930
|
});
|
|
8940
8931
|
}
|
|
8941
8932
|
}
|
|
@@ -8997,29 +8988,29 @@ const bz = {
|
|
|
8997
8988
|
for (const d in this.weatherLayers)
|
|
8998
8989
|
if (this.weatherLayers[d].active && this.weatherLayers[d].type === "json") {
|
|
8999
8990
|
this.weatherLayers[d].active = !1, this.weatherLayers[d].version = Math.random() + 1;
|
|
9000
|
-
let
|
|
8991
|
+
let B = [];
|
|
9001
8992
|
if (["swell", "current"].includes(d)) {
|
|
9002
|
-
const
|
|
9003
|
-
for (const W in
|
|
8993
|
+
const R = ((a = this.weatherLayers[d]) == null ? void 0 : a.direction) || {};
|
|
8994
|
+
for (const W in R)
|
|
9004
8995
|
if (W > t && W < q && (!(p <= this.zoom) || W % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9005
|
-
const
|
|
9006
|
-
o > A ?
|
|
8996
|
+
const m = R[W].lng;
|
|
8997
|
+
o > A ? m.forEach((h, X) => {
|
|
9007
8998
|
var E;
|
|
9008
|
-
if ((
|
|
9009
|
-
const
|
|
9010
|
-
val:
|
|
9011
|
-
spd: (E =
|
|
8999
|
+
if ((h >= o && h <= 180 || h >= -180 && h <= A) && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9000
|
+
const y = v.point([h, W], {
|
|
9001
|
+
val: R[W].val[X],
|
|
9002
|
+
spd: (E = R[W].spd) == null ? void 0 : E[X]
|
|
9012
9003
|
});
|
|
9013
|
-
|
|
9004
|
+
B.push(y);
|
|
9014
9005
|
}
|
|
9015
|
-
}) :
|
|
9006
|
+
}) : m.forEach((h, X) => {
|
|
9016
9007
|
var E;
|
|
9017
|
-
if (
|
|
9018
|
-
const
|
|
9019
|
-
val:
|
|
9020
|
-
spd: (E =
|
|
9008
|
+
if (h >= o && h <= A && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9009
|
+
const y = v.point([h, W], {
|
|
9010
|
+
val: R[W].val[X],
|
|
9011
|
+
spd: (E = R[W].spd) == null ? void 0 : E[X]
|
|
9021
9012
|
});
|
|
9022
|
-
|
|
9013
|
+
B.push(y);
|
|
9023
9014
|
}
|
|
9024
9015
|
});
|
|
9025
9016
|
}
|
|
@@ -9027,21 +9018,21 @@ const bz = {
|
|
|
9027
9018
|
const W = this.weatherLayers[d].height;
|
|
9028
9019
|
if (W) {
|
|
9029
9020
|
if (!W.data) {
|
|
9030
|
-
const
|
|
9031
|
-
for (const
|
|
9032
|
-
const
|
|
9033
|
-
for (const E of
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
val: Number(
|
|
9021
|
+
const m = [];
|
|
9022
|
+
for (const h in (n = W.raw) == null ? void 0 : n.LineString) {
|
|
9023
|
+
const X = W.raw.LineString[h];
|
|
9024
|
+
for (const E of X)
|
|
9025
|
+
m.push(
|
|
9026
|
+
v.lineString(E, {
|
|
9027
|
+
val: Number(h)
|
|
9037
9028
|
})
|
|
9038
9029
|
);
|
|
9039
|
-
W.data =
|
|
9030
|
+
W.data = v.featureCollection(m);
|
|
9040
9031
|
}
|
|
9041
9032
|
}
|
|
9042
9033
|
if (W.data) {
|
|
9043
|
-
const
|
|
9044
|
-
|
|
9034
|
+
const m = this.handleBboxClip(W.data, O);
|
|
9035
|
+
B = B.concat(m);
|
|
9045
9036
|
}
|
|
9046
9037
|
b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("height elapsed: ", b, ", total: ", M += b);
|
|
9047
9038
|
}
|
|
@@ -9050,126 +9041,126 @@ const bz = {
|
|
|
9050
9041
|
const W = this.weatherLayers[d].speed;
|
|
9051
9042
|
if (W) {
|
|
9052
9043
|
if (!W.data) {
|
|
9053
|
-
const
|
|
9054
|
-
for (const
|
|
9055
|
-
const E = W.raw.Polygon[
|
|
9056
|
-
for (const
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
val: Number(
|
|
9044
|
+
const h = [];
|
|
9045
|
+
for (const X in (s = W.raw) == null ? void 0 : s.Polygon) {
|
|
9046
|
+
const E = W.raw.Polygon[X];
|
|
9047
|
+
for (const y of E)
|
|
9048
|
+
h.push(
|
|
9049
|
+
v.polygon(y, {
|
|
9050
|
+
val: Number(X)
|
|
9060
9051
|
})
|
|
9061
9052
|
);
|
|
9062
9053
|
}
|
|
9063
|
-
W.data =
|
|
9054
|
+
W.data = v.featureCollection(h);
|
|
9064
9055
|
}
|
|
9065
|
-
const
|
|
9066
|
-
|
|
9056
|
+
const m = p < this.zoom ? W.data.features.filter((h) => h.properties.val > 0.5) : W.data.features;
|
|
9057
|
+
B = B.concat(m), b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("speed elapsed: ", b, ", total: ", M += b);
|
|
9067
9058
|
}
|
|
9068
9059
|
}
|
|
9069
9060
|
} else if (d === "wind") {
|
|
9070
|
-
const
|
|
9071
|
-
for (const W in
|
|
9061
|
+
const R = this.weatherLayers.wind.raw;
|
|
9062
|
+
for (const W in R)
|
|
9072
9063
|
if (W > t && W < q && (!(p <= this.zoom) || W % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9073
|
-
const
|
|
9074
|
-
o > A ?
|
|
9075
|
-
if ((
|
|
9076
|
-
const E =
|
|
9077
|
-
val:
|
|
9078
|
-
spd:
|
|
9064
|
+
const m = R[W].lng;
|
|
9065
|
+
o > A ? m.forEach((h, X) => {
|
|
9066
|
+
if ((h >= o && h <= 180 || h >= -180 && h <= A) && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9067
|
+
const E = v.point([h, W], {
|
|
9068
|
+
val: R[W].val[X],
|
|
9069
|
+
spd: R[W].spd[X]
|
|
9079
9070
|
});
|
|
9080
|
-
|
|
9071
|
+
B.push(E);
|
|
9081
9072
|
}
|
|
9082
|
-
}) :
|
|
9083
|
-
if (
|
|
9084
|
-
const E =
|
|
9085
|
-
val:
|
|
9086
|
-
spd:
|
|
9073
|
+
}) : m.forEach((h, X) => {
|
|
9074
|
+
if (h >= o && h <= A && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9075
|
+
const E = v.point([h, W], {
|
|
9076
|
+
val: R[W].val[X],
|
|
9077
|
+
spd: R[W].spd[X]
|
|
9087
9078
|
});
|
|
9088
|
-
|
|
9079
|
+
B.push(E);
|
|
9089
9080
|
}
|
|
9090
9081
|
});
|
|
9091
9082
|
}
|
|
9092
9083
|
b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("wind barb elapsed: ", b, ", total: ", M += b);
|
|
9093
9084
|
} else if (d === "sig-wave-height") {
|
|
9094
9085
|
if (this.weatherLayers[d].data)
|
|
9095
|
-
|
|
9086
|
+
B = this.weatherLayers[d].data;
|
|
9096
9087
|
else {
|
|
9097
|
-
const
|
|
9098
|
-
if (
|
|
9088
|
+
const R = this.weatherLayers[d].raw;
|
|
9089
|
+
if (R) {
|
|
9099
9090
|
const W = [];
|
|
9100
|
-
for (const
|
|
9101
|
-
const
|
|
9102
|
-
for (const
|
|
9091
|
+
for (const m in R.Polygon) {
|
|
9092
|
+
const h = R.Polygon[m];
|
|
9093
|
+
for (const X of h)
|
|
9103
9094
|
W.push(
|
|
9104
|
-
|
|
9105
|
-
val: Number(
|
|
9095
|
+
v.polygon(X, {
|
|
9096
|
+
val: Number(m)
|
|
9106
9097
|
})
|
|
9107
9098
|
);
|
|
9108
9099
|
}
|
|
9109
|
-
for (const
|
|
9110
|
-
const
|
|
9111
|
-
for (const
|
|
9100
|
+
for (const m in R.Point) {
|
|
9101
|
+
const h = R.Point[m];
|
|
9102
|
+
for (const X of h)
|
|
9112
9103
|
W.push(
|
|
9113
|
-
...
|
|
9114
|
-
val: Number(
|
|
9104
|
+
...v.points(X, {
|
|
9105
|
+
val: Number(m)
|
|
9115
9106
|
}).features
|
|
9116
9107
|
);
|
|
9117
9108
|
}
|
|
9118
|
-
|
|
9109
|
+
B = B.concat(W);
|
|
9119
9110
|
}
|
|
9120
9111
|
}
|
|
9121
9112
|
b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("sigWave elapsed: ", b, ", total: ", M += b);
|
|
9122
9113
|
} else if (d === "prmsl") {
|
|
9123
9114
|
if (this.weatherLayers[d].data)
|
|
9124
|
-
|
|
9115
|
+
B = this.weatherLayers[d].data;
|
|
9125
9116
|
else {
|
|
9126
|
-
const
|
|
9127
|
-
if (
|
|
9117
|
+
const R = this.weatherLayers[d].raw;
|
|
9118
|
+
if (R) {
|
|
9128
9119
|
const W = [];
|
|
9129
|
-
for (const
|
|
9130
|
-
const
|
|
9131
|
-
for (const
|
|
9120
|
+
for (const m in R.LineString) {
|
|
9121
|
+
const h = R.LineString[m];
|
|
9122
|
+
for (const X of h)
|
|
9132
9123
|
W.push(
|
|
9133
|
-
|
|
9134
|
-
val: Number(
|
|
9124
|
+
v.lineString(X, {
|
|
9125
|
+
val: Number(m)
|
|
9135
9126
|
})
|
|
9136
9127
|
);
|
|
9137
9128
|
}
|
|
9138
|
-
for (const
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
val:
|
|
9143
|
-
type:
|
|
9129
|
+
for (const m in R.Point)
|
|
9130
|
+
R.Point[m].lng.forEach((h, X) => {
|
|
9131
|
+
h = Z.convertToStdLng(h), W.push(
|
|
9132
|
+
v.point([h, m], {
|
|
9133
|
+
val: R.Point[m].val[X],
|
|
9134
|
+
type: R.Point[m].type[X]
|
|
9144
9135
|
})
|
|
9145
9136
|
);
|
|
9146
9137
|
});
|
|
9147
|
-
|
|
9138
|
+
B = B.concat(W);
|
|
9148
9139
|
}
|
|
9149
9140
|
}
|
|
9150
9141
|
b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("prmsl elapsed: ", b, ", total: ", M += b);
|
|
9151
9142
|
} else if (d === "arctic" || d === "iceberg") {
|
|
9152
9143
|
if (this.weatherLayers[d].data)
|
|
9153
|
-
|
|
9144
|
+
B = this.weatherLayers[d].data;
|
|
9154
9145
|
else {
|
|
9155
|
-
const
|
|
9156
|
-
if (
|
|
9146
|
+
const R = this.weatherLayers[d].raw;
|
|
9147
|
+
if (R) {
|
|
9157
9148
|
const W = [];
|
|
9158
|
-
for (const
|
|
9159
|
-
const
|
|
9160
|
-
for (const
|
|
9149
|
+
for (const m in R.LineString) {
|
|
9150
|
+
const h = R.LineString[m];
|
|
9151
|
+
for (const X of h)
|
|
9161
9152
|
W.push(
|
|
9162
|
-
|
|
9163
|
-
val: Number(
|
|
9153
|
+
v.lineString(X, {
|
|
9154
|
+
val: Number(m)
|
|
9164
9155
|
})
|
|
9165
9156
|
);
|
|
9166
9157
|
}
|
|
9167
|
-
|
|
9158
|
+
B = B.concat(W);
|
|
9168
9159
|
}
|
|
9169
9160
|
}
|
|
9170
9161
|
b = (/* @__PURE__ */ new Date()).valueOf() - (z + M);
|
|
9171
9162
|
}
|
|
9172
|
-
console.log(d, " elapsed: ", b, ", total: ", M += b),
|
|
9163
|
+
console.log(d, " elapsed: ", b, ", total: ", M += b), B.length && (this.weatherLayers[d].data = v.featureCollection(B)), this.weatherLayers[d].active = !0, this.weatherLayers[d].version = Math.random() + 1;
|
|
9173
9164
|
}
|
|
9174
9165
|
},
|
|
9175
9166
|
handleDragEndWithZoom4Image() {
|
|
@@ -9181,10 +9172,10 @@ const bz = {
|
|
|
9181
9172
|
return z.features.forEach((o) => {
|
|
9182
9173
|
if (o.geometry.type !== "Point")
|
|
9183
9174
|
if (O > p) {
|
|
9184
|
-
let A = [O, M._sw.lat, 180, M._ne.lat], t =
|
|
9185
|
-
t.geometry.coordinates.length && b.push(t), A = [-180, M._sw.lat, p, M._ne.lat], t =
|
|
9175
|
+
let A = [O, M._sw.lat, 180, M._ne.lat], t = v.bboxClip(o, A);
|
|
9176
|
+
t.geometry.coordinates.length && b.push(t), A = [-180, M._sw.lat, p, M._ne.lat], t = v.bboxClip(o, A), t.geometry.coordinates.length && b.push(t);
|
|
9186
9177
|
} else {
|
|
9187
|
-
const A = [O, M._sw.lat, p, M._ne.lat], t =
|
|
9178
|
+
const A = [O, M._sw.lat, p, M._ne.lat], t = v.bboxClip(o, A);
|
|
9188
9179
|
t.geometry.coordinates.length && b.push(t);
|
|
9189
9180
|
}
|
|
9190
9181
|
else
|
|
@@ -9237,8 +9228,8 @@ const bz = {
|
|
|
9237
9228
|
}
|
|
9238
9229
|
},
|
|
9239
9230
|
handle3dToggle(z) {
|
|
9240
|
-
var M, b, O, p, o, A, t, q, r, a, n, s, d,
|
|
9241
|
-
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)), (t = this.map) != null && t.getLayer((A = this.viewport) == null ? void 0 : A.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((a = this.map) == null || a.moveLayer((r = this.viewport) == null ? void 0 : r.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(), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.rampColorLayer) && ((d = this.map) != null && d.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((
|
|
9231
|
+
var M, b, O, p, o, A, t, q, r, a, n, s, d, B, R, W, m, h, X, E;
|
|
9232
|
+
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)), (t = this.map) != null && t.getLayer((A = this.viewport) == null ? void 0 : A.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((a = this.map) == null || a.moveLayer((r = this.viewport) == null ? void 0 : r.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(), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.rampColorLayer) && ((d = this.map) != null && d.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((R = this.map) == null || R.moveLayer((B = this.viewport) == null ? void 0 : B.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (m = this.map) != null && m.getLayer((W = this.viewport) == null ? void 0 : W.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((E = this.map) == null || E.moveLayer((X = this.viewport) == null ? void 0 : X.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
9242
9233
|
},
|
|
9243
9234
|
handleParticle(z) {
|
|
9244
9235
|
this.particleFactor = z, this.weatherLayers[z.key] && (this.weatherLayers[z.key].particle = z.particle), this.activeWeatherLayers.map((O) => {
|
|
@@ -9265,10 +9256,10 @@ const bz = {
|
|
|
9265
9256
|
className: "map-gl-home"
|
|
9266
9257
|
};
|
|
9267
9258
|
function pz(z, M, b, O, p, o) {
|
|
9268
|
-
var r0, d0, B0, s0, P, b0, t0, I, z0, W0, l0, L0, o0, e, i, u,
|
|
9269
|
-
const A = x("IdmGlLayer"), t = x("IdmENC"), q = x("IdmWorld12nm"), r = x("IdmSigWave"), a = x("IdmSwell"), n = x("IdmPrmsl"), s = x("IdmIceberg"), d = x("IdmTropicals"),
|
|
9259
|
+
var r0, d0, B0, s0, P, b0, t0, I, z0, W0, l0, L0, o0, e, i, u, g, w, D, V, S, F, T0, S0, k0, Q0, H0;
|
|
9260
|
+
const A = x("IdmGlLayer"), t = x("IdmENC"), q = x("IdmWorld12nm"), r = x("IdmSigWave"), a = x("IdmSwell"), n = x("IdmPrmsl"), s = x("IdmIceberg"), d = x("IdmTropicals"), B = x("IdmCurrents"), R = x("IdmCurrentParticle"), W = x("IdmWindBarb"), m = x("IdmWindParticle"), h = x("IdmPrecip3h"), X = x("IdmVisibility"), E = x("IdmWaterTemp"), y = x("IdmTemp"), H = x("IdmArctic"), U = x("IdmWarZone"), Y = x("IdmGmdssArea"), L = x("IdmEcaZone"), N = x("IdmAlertZone"), A0 = x("IdmPort"), n0 = x("IdmLoadLine"), R0 = x("IdmTimezone"), i0 = x("IdmVRA"), f0 = x("IdmSpecialArea"), p0 = x("IdmTerminator"), h0 = x("IdmLatLng"), m0 = x("IdmMeasure"), u0 = x("IdmPoint");
|
|
9270
9261
|
return b.map ? (l(), f("div", zz, [
|
|
9271
|
-
|
|
9262
|
+
C(A, Q({
|
|
9272
9263
|
ref: "layer",
|
|
9273
9264
|
map: b.map,
|
|
9274
9265
|
"toggle-version": b.toggleVersion,
|
|
@@ -9290,7 +9281,7 @@ function pz(z, M, b, O, p, o) {
|
|
|
9290
9281
|
on3d: o.handle3dToggle,
|
|
9291
9282
|
onHandleToggleVersion: o.handleToggleVersion
|
|
9292
9283
|
}), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
9293
|
-
|
|
9284
|
+
C(t, Q({
|
|
9294
9285
|
map: b.map,
|
|
9295
9286
|
token: b.token,
|
|
9296
9287
|
enabled: (r0 = p.otherLayers) == null ? void 0 : r0.enc,
|
|
@@ -9298,42 +9289,42 @@ function pz(z, M, b, O, p, o) {
|
|
|
9298
9289
|
}, z.$attrs, {
|
|
9299
9290
|
onEnc: M[7] || (M[7] = (a0) => p.enc = a0)
|
|
9300
9291
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
9301
|
-
|
|
9292
|
+
C(q, Q({
|
|
9302
9293
|
map: b.map,
|
|
9303
9294
|
token: b.token,
|
|
9304
9295
|
"weather-layers": p.weatherLayers,
|
|
9305
9296
|
enabled: (d0 = p.otherLayers) == null ? void 0 : d0.world12nm
|
|
9306
9297
|
}, z.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9307
|
-
|
|
9298
|
+
C(r, Q({
|
|
9308
9299
|
map: b.map,
|
|
9309
9300
|
"sig-wave": (B0 = p.weatherLayers) == null ? void 0 : B0["sig-wave-height"],
|
|
9310
9301
|
"before-layer": b.beforeLayer,
|
|
9311
9302
|
activeWeatherLayers: p.activeWeatherLayers
|
|
9312
9303
|
}, z.$attrs), null, 16, ["map", "sig-wave", "before-layer", "activeWeatherLayers"]),
|
|
9313
|
-
|
|
9304
|
+
C(a, Q({
|
|
9314
9305
|
map: b.map,
|
|
9315
9306
|
swell: (s0 = p.weatherLayers) == null ? void 0 : s0.swell,
|
|
9316
9307
|
"before-layer": b.beforeLayer,
|
|
9317
9308
|
activeWeatherLayers: p.activeWeatherLayers
|
|
9318
9309
|
}, z.$attrs), null, 16, ["map", "swell", "before-layer", "activeWeatherLayers"]),
|
|
9319
|
-
|
|
9310
|
+
C(n, Q({
|
|
9320
9311
|
map: b.map,
|
|
9321
9312
|
prmsl: (P = p.weatherLayers) == null ? void 0 : P.prmsl,
|
|
9322
9313
|
"before-layer": b.beforeLayer,
|
|
9323
9314
|
"active-weather-layers": p.activeWeatherLayers
|
|
9324
9315
|
}, z.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
9325
|
-
|
|
9316
|
+
C(s, Q({
|
|
9326
9317
|
map: b.map,
|
|
9327
9318
|
iceberg: (b0 = p.weatherLayers) == null ? void 0 : b0.iceberg,
|
|
9328
9319
|
"before-layer": b.beforeLayer
|
|
9329
9320
|
}, z.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
9330
|
-
|
|
9321
|
+
C(d, Q({
|
|
9331
9322
|
map: b.map,
|
|
9332
9323
|
date: b.ts,
|
|
9333
9324
|
tropicals: (t0 = p.weatherLayers) == null ? void 0 : t0.tropicals,
|
|
9334
9325
|
"before-layer": b.beforeLayer
|
|
9335
9326
|
}, z.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
9336
|
-
|
|
9327
|
+
C(B, Q({
|
|
9337
9328
|
map: b.map,
|
|
9338
9329
|
"map-projection": p.mapProjection,
|
|
9339
9330
|
current: (I = p.weatherLayers) == null ? void 0 : I.current,
|
|
@@ -9347,13 +9338,13 @@ function pz(z, M, b, O, p, o) {
|
|
|
9347
9338
|
onParticle: o.handleParticle,
|
|
9348
9339
|
onHandleToggleVersion: o.handleToggleVersion
|
|
9349
9340
|
}), null, 16, ["map", "map-projection", "current", "before-layer", "showCurrentIsoband", "showCurrentParticle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
9350
|
-
|
|
9341
|
+
C(R, Q({
|
|
9351
9342
|
viewport: p.viewport,
|
|
9352
9343
|
factor: (z0 = p.weatherLayers) == null ? void 0 : z0["current-particle"],
|
|
9353
9344
|
"before-layer": b.beforeLayer,
|
|
9354
9345
|
"toggle-version": b.toggleVersion
|
|
9355
9346
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9356
|
-
|
|
9347
|
+
C(W, Q({
|
|
9357
9348
|
ref: "windBarb",
|
|
9358
9349
|
map: b.map,
|
|
9359
9350
|
"map-projection": p.mapProjection,
|
|
@@ -9368,101 +9359,101 @@ function pz(z, M, b, O, p, o) {
|
|
|
9368
9359
|
"weather-layers": p.weatherLayers,
|
|
9369
9360
|
onParticle: o.handleParticle
|
|
9370
9361
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "showWindFeather", "showWindParticle", "toggle-version", "weather-layers", "onParticle"]),
|
|
9371
|
-
|
|
9362
|
+
C(m, Q({
|
|
9372
9363
|
viewport: p.viewport,
|
|
9373
9364
|
factor: (L0 = p.weatherLayers) == null ? void 0 : L0["wind-particle"],
|
|
9374
9365
|
"before-layer": b.beforeLayer,
|
|
9375
9366
|
"toggle-version": b.toggleVersion
|
|
9376
9367
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9377
|
-
|
|
9368
|
+
C(h, Q({
|
|
9378
9369
|
viewport: p.viewport,
|
|
9379
9370
|
factor: (o0 = p.weatherLayers) == null ? void 0 : o0.precip3h,
|
|
9380
9371
|
"before-layer": b.beforeLayer,
|
|
9381
9372
|
"toggle-version": b.toggleVersion
|
|
9382
9373
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9383
|
-
|
|
9374
|
+
C(X, Q({
|
|
9384
9375
|
viewport: p.viewport,
|
|
9385
9376
|
factor: (e = p.weatherLayers) == null ? void 0 : e.visibility,
|
|
9386
9377
|
"before-layer": b.beforeLayer,
|
|
9387
9378
|
"toggle-version": b.toggleVersion
|
|
9388
9379
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9389
|
-
|
|
9380
|
+
C(E, Q({
|
|
9390
9381
|
viewport: p.viewport,
|
|
9391
9382
|
factor: (i = p.weatherLayers) == null ? void 0 : i["water-temp"],
|
|
9392
9383
|
"before-layer": b.beforeLayer,
|
|
9393
9384
|
"toggle-version": b.toggleVersion
|
|
9394
9385
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9395
|
-
|
|
9386
|
+
C(y, Q({
|
|
9396
9387
|
viewport: p.viewport,
|
|
9397
9388
|
factor: (u = p.weatherLayers) == null ? void 0 : u.temp,
|
|
9398
9389
|
"before-layer": b.beforeLayer,
|
|
9399
9390
|
"toggle-version": b.toggleVersion
|
|
9400
9391
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9401
|
-
|
|
9392
|
+
C(H, Q({
|
|
9402
9393
|
viewport: p.viewport,
|
|
9403
|
-
factor: (
|
|
9394
|
+
factor: (g = p.weatherLayers) == null ? void 0 : g.arctic,
|
|
9404
9395
|
"before-layer": b.beforeLayer,
|
|
9405
9396
|
"toggle-version": b.toggleVersion
|
|
9406
9397
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9407
|
-
|
|
9398
|
+
C(U, Q({
|
|
9408
9399
|
map: b.map,
|
|
9409
|
-
zone: (
|
|
9400
|
+
zone: (w = p.otherLayers) == null ? void 0 : w["war-zones"],
|
|
9410
9401
|
"before-layer": b.beforeLayer
|
|
9411
9402
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9412
|
-
|
|
9403
|
+
C(Y, Q({
|
|
9413
9404
|
map: b.map,
|
|
9414
9405
|
area: (D = p.otherLayers) == null ? void 0 : D["gmdss-areas"],
|
|
9415
9406
|
"before-layer": b.beforeLayer
|
|
9416
9407
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
9417
|
-
|
|
9408
|
+
C(L, Q({
|
|
9418
9409
|
map: b.map,
|
|
9419
9410
|
zone: (V = p.otherLayers) == null ? void 0 : V["eca-zones"],
|
|
9420
9411
|
"before-layer": b.beforeLayer
|
|
9421
9412
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9422
|
-
|
|
9413
|
+
C(N, Q({
|
|
9423
9414
|
map: b.map,
|
|
9424
9415
|
zone: (S = p.otherLayers) == null ? void 0 : S["alert-zones"],
|
|
9425
9416
|
"before-layer": b.beforeLayer
|
|
9426
9417
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9427
|
-
|
|
9418
|
+
C(A0, Q({
|
|
9428
9419
|
map: b.map,
|
|
9429
9420
|
port: (F = p.otherLayers) == null ? void 0 : F.ports,
|
|
9430
9421
|
"before-layer": b.beforeLayer
|
|
9431
9422
|
}, z.$attrs, { onHandleIdmPoint: o.handleIdmPoint }), null, 16, ["map", "port", "before-layer", "onHandleIdmPoint"]),
|
|
9432
|
-
|
|
9423
|
+
C(n0, Q({
|
|
9433
9424
|
map: b.map,
|
|
9434
9425
|
line: (T0 = p.otherLayers) == null ? void 0 : T0["load-lines"],
|
|
9435
9426
|
"before-layer": b.beforeLayer
|
|
9436
9427
|
}, z.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
9437
|
-
|
|
9428
|
+
C(R0, Q({
|
|
9438
9429
|
map: b.map,
|
|
9439
9430
|
zone: (S0 = p.otherLayers) == null ? void 0 : S0["time-zones"],
|
|
9440
9431
|
"before-layer": b.beforeLayer
|
|
9441
9432
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9442
|
-
|
|
9433
|
+
C(i0, Q({
|
|
9443
9434
|
map: b.map,
|
|
9444
9435
|
area: (k0 = p.otherLayers) == null ? void 0 : k0["voluntary-reporting-area"],
|
|
9445
9436
|
"before-layer": b.beforeLayer
|
|
9446
9437
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
9447
|
-
|
|
9438
|
+
C(f0, Q({
|
|
9448
9439
|
map: b.map,
|
|
9449
9440
|
area: (Q0 = p.otherLayers) == null ? void 0 : Q0["special-area"],
|
|
9450
9441
|
"before-layer": b.beforeLayer
|
|
9451
9442
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
9452
|
-
|
|
9443
|
+
C(p0, Q({
|
|
9453
9444
|
map: b.map,
|
|
9454
9445
|
area: (H0 = p.otherLayers) == null ? void 0 : H0["day-night"]
|
|
9455
9446
|
}, z.$attrs), null, 16, ["map", "area"]),
|
|
9456
|
-
|
|
9447
|
+
C(h0, Q({
|
|
9457
9448
|
map: b.map,
|
|
9458
9449
|
show: p.showCoord,
|
|
9459
9450
|
"toggle-version": b.toggleVersion
|
|
9460
9451
|
}, z.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
9461
|
-
|
|
9452
|
+
C(m0, Q({
|
|
9462
9453
|
map: b.map,
|
|
9463
9454
|
show: p.showMeasure
|
|
9464
9455
|
}, z.$attrs), null, 16, ["map", "show"]),
|
|
9465
|
-
|
|
9456
|
+
C(u0, Q({
|
|
9466
9457
|
ref: "idmPoint",
|
|
9467
9458
|
map: b.map,
|
|
9468
9459
|
show: p.showPoint,
|