@idmwx/idmui-gl3 6.1.4 → 6.1.5
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 +412 -405
- package/dist/index.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@ import { LayerHelper as Ve, CompanyHelper as Ze } from "@idm-plugin/tag";
|
|
|
5
5
|
import ee from "moment";
|
|
6
6
|
import Qe from "axios";
|
|
7
7
|
import Ye from "moment-timezone";
|
|
8
|
-
import { resolveComponent as R, openBlock as
|
|
9
|
-
import * as
|
|
8
|
+
import { resolveComponent as R, openBlock as m, createElementBlock as u, createElementVNode as o, normalizeStyle as le, createVNode as H, withCtx as Ie, normalizeClass as Z, Fragment as V, renderList as $, toDisplayString as I, createCommentVNode as J, createBlock as gt, createTextVNode as ne, withDirectives as Fe, createStaticVNode as yt, vShow as Oe, defineComponent as ft, withModifiers as qe, mergeProps as X } from "vue";
|
|
9
|
+
import * as S from "@turf/turf";
|
|
10
10
|
import At from "@mapbox/sphericalmercator";
|
|
11
11
|
import je from "mapbox-gl";
|
|
12
12
|
import { TropicalHelper as ct, LngLatHelper as se, LaneHelper as Re } from "@idm-plugin/geo";
|
|
@@ -302,7 +302,7 @@ const U = (a, e) => {
|
|
|
302
302
|
};
|
|
303
303
|
function aa(a, e, t, r, i, s) {
|
|
304
304
|
const n = R("ElTooltip"), l = R("ElRadio"), c = R("ElRadioGroup"), p = R("ElScrollbar");
|
|
305
|
-
return
|
|
305
|
+
return m(), u("div", vt, [
|
|
306
306
|
o("div", {
|
|
307
307
|
class: "menu-bar-box",
|
|
308
308
|
style: le({ top: t.top + 10 + "px", right: i.right + "px" })
|
|
@@ -316,7 +316,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
316
316
|
}, {
|
|
317
317
|
default: Ie(() => [
|
|
318
318
|
o("div", {
|
|
319
|
-
class:
|
|
319
|
+
class: Z(t.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
320
320
|
onClick: e[0] || (e[0] = (...h) => s.handleMenuToggle && s.handleMenuToggle(...h))
|
|
321
321
|
}, e[17] || (e[17] = [
|
|
322
322
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -339,7 +339,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
339
339
|
}, {
|
|
340
340
|
default: Ie(() => [
|
|
341
341
|
o("div", {
|
|
342
|
-
class:
|
|
342
|
+
class: Z(i.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
343
343
|
onClick: e[1] || (e[1] = (...h) => s.handleMeasureToggle && s.handleMeasureToggle(...h))
|
|
344
344
|
}, e[18] || (e[18] = [
|
|
345
345
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -355,7 +355,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
355
355
|
}, {
|
|
356
356
|
default: Ie(() => [
|
|
357
357
|
o("div", {
|
|
358
|
-
class:
|
|
358
|
+
class: Z(i.showPoint ? "menu-icon active" : "menu-icon"),
|
|
359
359
|
onClick: e[2] || (e[2] = (...h) => s.handlePointToggle && s.handlePointToggle(...h))
|
|
360
360
|
}, e[19] || (e[19] = [
|
|
361
361
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -371,7 +371,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
371
371
|
}, {
|
|
372
372
|
default: Ie(() => [
|
|
373
373
|
o("div", {
|
|
374
|
-
class:
|
|
374
|
+
class: Z(i.showCoord ? "menu-icon active" : "menu-icon"),
|
|
375
375
|
onClick: e[3] || (e[3] = (...h) => s.handleCoordToggle && s.handleCoordToggle(...h))
|
|
376
376
|
}, e[20] || (e[20] = [
|
|
377
377
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -387,7 +387,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
387
387
|
}, {
|
|
388
388
|
default: Ie(() => [
|
|
389
389
|
o("div", {
|
|
390
|
-
class:
|
|
390
|
+
class: Z(i.show3d ? "menu-icon active" : "menu-icon"),
|
|
391
391
|
onClick: e[4] || (e[4] = (...h) => s.handle3DToggle && s.handle3DToggle(...h))
|
|
392
392
|
}, e[21] || (e[21] = [
|
|
393
393
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -397,7 +397,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
397
397
|
})
|
|
398
398
|
])
|
|
399
399
|
], 4),
|
|
400
|
-
s.hasCollectedLayers ? (
|
|
400
|
+
s.hasCollectedLayers ? (m(), u("div", {
|
|
401
401
|
key: 0,
|
|
402
402
|
class: "active-layers",
|
|
403
403
|
style: le({ right: i.right + "px", bottom: "100px" })
|
|
@@ -409,12 +409,12 @@ function aa(a, e, t, r, i, s) {
|
|
|
409
409
|
style: { "font-size": "28px", "margin-right": "0" },
|
|
410
410
|
onClick: e[5] || (e[5] = (...h) => s.toggleAutoActive && s.toggleAutoActive(...h))
|
|
411
411
|
}, [
|
|
412
|
-
i.autoActive ? (
|
|
412
|
+
i.autoActive ? (m(), u("i", xt, "")) : (m(), u("i", _t, ""))
|
|
413
413
|
])
|
|
414
414
|
]),
|
|
415
|
-
(
|
|
415
|
+
(m(!0), u(V, null, $(i.layers.weather.filter((h) => h.collected), (h) => (m(), u("div", {
|
|
416
416
|
key: h.key,
|
|
417
|
-
class:
|
|
417
|
+
class: Z(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
418
418
|
}, [
|
|
419
419
|
o("div", {
|
|
420
420
|
class: "checkbox",
|
|
@@ -424,23 +424,23 @@ function aa(a, e, t, r, i, s) {
|
|
|
424
424
|
class: "name",
|
|
425
425
|
onClick: (d) => s.handleWeatherLayerPick(h)
|
|
426
426
|
}, I(h.name), 9, It),
|
|
427
|
-
h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (
|
|
427
|
+
h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), u("div", Et, [
|
|
428
428
|
o("i", {
|
|
429
|
-
class:
|
|
429
|
+
class: Z(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
430
430
|
onClick: e[6] || (e[6] = (d) => s.handleToggleWindParticle())
|
|
431
431
|
}, "", 2),
|
|
432
432
|
o("i", {
|
|
433
|
-
class:
|
|
433
|
+
class: Z(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
434
434
|
onClick: e[7] || (e[7] = (d) => s.handleToggleWindFeather())
|
|
435
435
|
}, "", 2)
|
|
436
436
|
])) : J("", !0),
|
|
437
|
-
h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (
|
|
437
|
+
h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), u("div", kt, [
|
|
438
438
|
o("i", {
|
|
439
|
-
class:
|
|
439
|
+
class: Z(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
440
440
|
onClick: e[8] || (e[8] = (d) => s.handleToggleCurrentParticle())
|
|
441
441
|
}, "", 2),
|
|
442
442
|
o("i", {
|
|
443
|
-
class:
|
|
443
|
+
class: Z(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
444
444
|
onClick: e[9] || (e[9] = (d) => s.handleToggleCurrentIsoband())
|
|
445
445
|
}, "", 2)
|
|
446
446
|
])) : J("", !0)
|
|
@@ -451,7 +451,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
451
451
|
style: le({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
|
|
452
452
|
}, [
|
|
453
453
|
o("div", {
|
|
454
|
-
class:
|
|
454
|
+
class: Z(["list-box", t.layerToggle ? "right-bar" : ""])
|
|
455
455
|
}, [
|
|
456
456
|
o("div", Dt, [
|
|
457
457
|
e[23] || (e[23] = o("div", null, "Layers", -1)),
|
|
@@ -470,16 +470,16 @@ function aa(a, e, t, r, i, s) {
|
|
|
470
470
|
style: { "margin-right": "0" },
|
|
471
471
|
onClick: e[11] || (e[11] = (...h) => s.toggleAutoActive && s.toggleAutoActive(...h))
|
|
472
472
|
}, [
|
|
473
|
-
i.autoActive ? (
|
|
473
|
+
i.autoActive ? (m(), u("i", Mt, "")) : (m(), u("i", St, ""))
|
|
474
474
|
])
|
|
475
475
|
]),
|
|
476
476
|
o("div", Tt, [
|
|
477
|
-
(
|
|
477
|
+
(m(!0), u(V, null, $(i.layers.weather, (h) => (m(), u(V, {
|
|
478
478
|
key: h.key
|
|
479
479
|
}, [
|
|
480
|
-
h.hide ? J("", !0) : (
|
|
480
|
+
h.hide ? J("", !0) : (m(), u("div", {
|
|
481
481
|
key: 0,
|
|
482
|
-
class:
|
|
482
|
+
class: Z(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
483
483
|
}, [
|
|
484
484
|
o("div", Qt, [
|
|
485
485
|
o("div", {
|
|
@@ -490,23 +490,23 @@ function aa(a, e, t, r, i, s) {
|
|
|
490
490
|
class: "name",
|
|
491
491
|
onClick: (d) => s.handleWeatherLayerPick(h)
|
|
492
492
|
}, I(h.name), 9, Nt),
|
|
493
|
-
h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (
|
|
493
|
+
h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), u("div", Ft, [
|
|
494
494
|
o("i", {
|
|
495
|
-
class:
|
|
495
|
+
class: Z(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
496
496
|
onClick: e[12] || (e[12] = (d) => s.handleToggleWindParticle())
|
|
497
497
|
}, "", 2),
|
|
498
498
|
o("i", {
|
|
499
|
-
class:
|
|
499
|
+
class: Z(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
500
500
|
onClick: e[13] || (e[13] = (d) => s.handleToggleWindFeather())
|
|
501
501
|
}, "", 2)
|
|
502
502
|
])) : J("", !0),
|
|
503
|
-
h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (
|
|
503
|
+
h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), u("div", Ot, [
|
|
504
504
|
o("i", {
|
|
505
|
-
class:
|
|
505
|
+
class: Z(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
506
506
|
onClick: e[14] || (e[14] = (d) => s.handleToggleCurrentParticle())
|
|
507
507
|
}, "", 2),
|
|
508
508
|
o("i", {
|
|
509
|
-
class:
|
|
509
|
+
class: Z(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
510
510
|
onClick: e[15] || (e[15] = (d) => s.handleToggleCurrentIsoband())
|
|
511
511
|
}, "", 2)
|
|
512
512
|
])) : J("", !0)
|
|
@@ -514,7 +514,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
514
514
|
o("div", {
|
|
515
515
|
onClick: (d) => s.handleWeatherLayerCollect(h)
|
|
516
516
|
}, [
|
|
517
|
-
h.collected ? (
|
|
517
|
+
h.collected ? (m(), u("i", jt, "")) : (m(), u("i", Wt, ""))
|
|
518
518
|
], 8, Rt)
|
|
519
519
|
], 2))
|
|
520
520
|
], 64))), 128)),
|
|
@@ -530,16 +530,16 @@ function aa(a, e, t, r, i, s) {
|
|
|
530
530
|
o("div", Gt, [
|
|
531
531
|
e[26] || (e[26] = o("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
532
532
|
o("div", Ut, [
|
|
533
|
-
(
|
|
533
|
+
(m(!0), u(V, null, $(i.layers.other, (h) => {
|
|
534
534
|
var d;
|
|
535
|
-
return
|
|
535
|
+
return m(), u("div", {
|
|
536
536
|
key: h.key,
|
|
537
|
-
class:
|
|
537
|
+
class: Z(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
|
|
538
538
|
onClick: (A) => s.handleOtherLayerPick(h)
|
|
539
539
|
}, [
|
|
540
540
|
o("div", Kt, [
|
|
541
541
|
o("div", Xt, [
|
|
542
|
-
(d = s.computeLayerClass(h, i.activeOtherLayers)) != null && d.includes("active") ? (
|
|
542
|
+
(d = s.computeLayerClass(h, i.activeOtherLayers)) != null && d.includes("active") ? (m(), u("i", Jt, "")) : (m(), u("i", qt, ""))
|
|
543
543
|
]),
|
|
544
544
|
o("span", null, I(h.name), 1)
|
|
545
545
|
])
|
|
@@ -557,7 +557,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
557
557
|
style: { width: "180px", "align-items": "flex-start" }
|
|
558
558
|
}, {
|
|
559
559
|
default: Ie(() => [
|
|
560
|
-
(
|
|
560
|
+
(m(!0), u(V, null, $(i.sourceList, (h, d) => (m(), gt(l, {
|
|
561
561
|
key: `source${h.name}`,
|
|
562
562
|
value: h.name
|
|
563
563
|
}, {
|
|
@@ -565,8 +565,8 @@ function aa(a, e, t, r, i, s) {
|
|
|
565
565
|
var A, v, E, w, k, _;
|
|
566
566
|
return [
|
|
567
567
|
ne(I(h.name) + " ", 1),
|
|
568
|
-
d !== 0 ? (
|
|
569
|
-
d === 0 ? (
|
|
568
|
+
d !== 0 ? (m(), u("span", $t, I(h.resolution) + "km " + I(h.length) + "days", 1)) : J("", !0),
|
|
569
|
+
d === 0 ? (m(), u("div", ea, "Provides the best forecast")) : (E = (v = (A = h == null ? void 0 : h.update) == null ? void 0 : A.default) == null ? void 0 : v.meta) != null && E.initialisationTime ? (m(), u("div", ta, "Update: " + I(s.computeDateZ((_ = (k = (w = h == null ? void 0 : h.update) == null ? void 0 : w.default) == null ? void 0 : k.meta) == null ? void 0 : _.initialisationTime)), 1)) : J("", !0)
|
|
570
570
|
];
|
|
571
571
|
}),
|
|
572
572
|
_: 2
|
|
@@ -622,7 +622,7 @@ const ra = {
|
|
|
622
622
|
return {
|
|
623
623
|
source: "wind-barb-source",
|
|
624
624
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
625
|
-
empty:
|
|
625
|
+
empty: S.featureCollection([]),
|
|
626
626
|
right: 10,
|
|
627
627
|
bottom: 125,
|
|
628
628
|
windBarbLoaded: !1
|
|
@@ -959,7 +959,7 @@ class We {
|
|
|
959
959
|
h.resolution && t.uniform2f(h.resolution, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), h.image && t.uniform1i(h.image, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, s), h.color && t.uniform1i(h.color, 1), l != null && l.uvRange && (l != null && l.sRange) && (h.uvRange && t.uniform2f(h.uvRange, l.uvRange[0], l.uvRange[1]), h.sRange && t.uniform2f(h.sRange, l.sRange[0], l.sRange[1])), h.scale && t.uniform1f(h.scale, (l == null ? void 0 : l.scale) || 1);
|
|
960
960
|
const d = e.getBoundPixel(), A = e.map.getZoom() + 1, v = e.getWorldCopy(d, A);
|
|
961
961
|
for (const E of v) {
|
|
962
|
-
const w = (E[0] - d[0]) * e.ratio, k = (E[1] - d[3]) * e.ratio, _ = E[2] * e.ratio, [f, b,
|
|
962
|
+
const w = (E[0] - d[0]) * e.ratio, k = (E[1] - d[3]) * e.ratio, _ = E[2] * e.ratio, [f, b, g, C] = [w, _ + w, k, _ + k], y = new Float32Array([f, g, b, g, f, C, f, C, b, g, b, C]);
|
|
963
963
|
t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, y, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
964
964
|
}
|
|
965
965
|
} catch (h) {
|
|
@@ -3260,7 +3260,7 @@ const la = {
|
|
|
3260
3260
|
}, ha = { key: 0 };
|
|
3261
3261
|
function ca(a, e, t, r, i, s) {
|
|
3262
3262
|
var n;
|
|
3263
|
-
return (n = t.factor) != null && n.active ? (
|
|
3263
|
+
return (n = t.factor) != null && n.active ? (m(), u("div", ha, [
|
|
3264
3264
|
o("div", {
|
|
3265
3265
|
class: "legend-bars flex-center",
|
|
3266
3266
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -3318,7 +3318,7 @@ const pa = {
|
|
|
3318
3318
|
directionLayer: "current-direction-layer",
|
|
3319
3319
|
speedLayer: "current-speed-layer",
|
|
3320
3320
|
speedLabelLayer: "current-speed-label-layer",
|
|
3321
|
-
empty:
|
|
3321
|
+
empty: S.featureCollection([]),
|
|
3322
3322
|
right: 10,
|
|
3323
3323
|
bottom: 95
|
|
3324
3324
|
};
|
|
@@ -3593,7 +3593,7 @@ const ga = {
|
|
|
3593
3593
|
}, ya = { key: 0 };
|
|
3594
3594
|
function fa(a, e, t, r, i, s) {
|
|
3595
3595
|
var n;
|
|
3596
|
-
return (n = t.factor) != null && n.active ? (
|
|
3596
|
+
return (n = t.factor) != null && n.active ? (m(), u("div", ya, [
|
|
3597
3597
|
o("div", {
|
|
3598
3598
|
class: "legend-bars flex-center",
|
|
3599
3599
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -3629,7 +3629,7 @@ const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-02a8206f
|
|
|
3629
3629
|
source: "sig-wave-source",
|
|
3630
3630
|
heightLayer: "sig-wave-height-layer",
|
|
3631
3631
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
3632
|
-
empty:
|
|
3632
|
+
empty: S.featureCollection([])
|
|
3633
3633
|
};
|
|
3634
3634
|
},
|
|
3635
3635
|
watch: {
|
|
@@ -3737,7 +3737,7 @@ const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-02a8206f
|
|
|
3737
3737
|
}
|
|
3738
3738
|
};
|
|
3739
3739
|
function va(a, e, t, r, i, s) {
|
|
3740
|
-
return
|
|
3740
|
+
return m(), u("div");
|
|
3741
3741
|
}
|
|
3742
3742
|
const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
|
|
3743
3743
|
name: "IdmSwell",
|
|
@@ -3761,7 +3761,7 @@ const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
|
|
|
3761
3761
|
directionLayer: "swell-direction-layer",
|
|
3762
3762
|
heightLayer: "swell-height-layer",
|
|
3763
3763
|
heightLabelLayer: "swell-height-label-layer",
|
|
3764
|
-
empty:
|
|
3764
|
+
empty: S.featureCollection([])
|
|
3765
3765
|
};
|
|
3766
3766
|
},
|
|
3767
3767
|
watch: {
|
|
@@ -3895,7 +3895,7 @@ const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
|
|
|
3895
3895
|
}
|
|
3896
3896
|
};
|
|
3897
3897
|
function Ca(a, e, t, r, i, s) {
|
|
3898
|
-
return
|
|
3898
|
+
return m(), u("div");
|
|
3899
3899
|
}
|
|
3900
3900
|
const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
|
|
3901
3901
|
name: "IdmPrmsl",
|
|
@@ -3922,7 +3922,7 @@ const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
|
|
|
3922
3922
|
layer: "prmsl-layer",
|
|
3923
3923
|
labelLayer: "prmsl-label-layer",
|
|
3924
3924
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
3925
|
-
empty:
|
|
3925
|
+
empty: S.featureCollection([])
|
|
3926
3926
|
};
|
|
3927
3927
|
},
|
|
3928
3928
|
watch: {
|
|
@@ -4033,7 +4033,7 @@ const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
|
|
|
4033
4033
|
}
|
|
4034
4034
|
};
|
|
4035
4035
|
function Ba(a, e, t, r, i, s) {
|
|
4036
|
-
return
|
|
4036
|
+
return m(), u("div");
|
|
4037
4037
|
}
|
|
4038
4038
|
const Ia = /* @__PURE__ */ U(_a, [["render", Ba]]);
|
|
4039
4039
|
const Ea = {
|
|
@@ -4140,7 +4140,7 @@ const Ea = {
|
|
|
4140
4140
|
}, ka = { key: 0 };
|
|
4141
4141
|
function Da(a, e, t, r, i, s) {
|
|
4142
4142
|
var n;
|
|
4143
|
-
return (n = t.factor) != null && n.active ? (
|
|
4143
|
+
return (n = t.factor) != null && n.active ? (m(), u("div", ka, [
|
|
4144
4144
|
o("div", {
|
|
4145
4145
|
class: "legend-bars flex-center",
|
|
4146
4146
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -4256,7 +4256,7 @@ const Pa = {
|
|
|
4256
4256
|
}, Ma = { key: 0 };
|
|
4257
4257
|
function Sa(a, e, t, r, i, s) {
|
|
4258
4258
|
var n;
|
|
4259
|
-
return (n = t.factor) != null && n.active ? (
|
|
4259
|
+
return (n = t.factor) != null && n.active ? (m(), u("div", Ma, [
|
|
4260
4260
|
o("div", {
|
|
4261
4261
|
class: "legend-bars flex-center",
|
|
4262
4262
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -4374,7 +4374,7 @@ const Qa = {
|
|
|
4374
4374
|
}, Ha = { key: 0 };
|
|
4375
4375
|
function Na(a, e, t, r, i, s) {
|
|
4376
4376
|
var n;
|
|
4377
|
-
return (n = t.factor) != null && n.active ? (
|
|
4377
|
+
return (n = t.factor) != null && n.active ? (m(), u("div", Ha, [
|
|
4378
4378
|
o("div", {
|
|
4379
4379
|
class: "legend-bars flex-center",
|
|
4380
4380
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -4735,7 +4735,7 @@ class ht {
|
|
|
4735
4735
|
}), i;
|
|
4736
4736
|
}
|
|
4737
4737
|
static pickHourly(e, t) {
|
|
4738
|
-
var r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b,
|
|
4738
|
+
var r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b, g, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe, we, _e, B, ze, ve, Pe, Ee, He, ke;
|
|
4739
4739
|
const re = typeof t == "string" ? ee(t) : t, ce = e == null ? void 0 : e.weather, Q = e == null ? void 0 : e.marine, Be = ee((i = (r = ce == null ? void 0 : ce[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = Be.clone().add((l = (n = (s = ce == null ? void 0 : ce[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), q = Be.clone().add((h = (p = (c = ce == null ? void 0 : ce[0]) == null ? void 0 : c.hourly) == null ? void 0 : p.time) == null ? void 0 : h.at(-1), "h"), Me = [];
|
|
4740
4740
|
if (re.isBetween(K, q, "millisecond", "[]")) {
|
|
4741
4741
|
const P = re.utc().diff(K, "h", !1);
|
|
@@ -4760,12 +4760,12 @@ class ht {
|
|
|
4760
4760
|
sum6Hours: Math.round(Te * 100) / 100
|
|
4761
4761
|
},
|
|
4762
4762
|
pmsl: (b = O == null ? void 0 : O.pressure_msl) == null ? void 0 : b.at(P),
|
|
4763
|
-
psurf: (
|
|
4763
|
+
psurf: (g = O == null ? void 0 : O.surface_pressure) == null ? void 0 : g.at(P),
|
|
4764
4764
|
code: (C = O == null ? void 0 : O.weather_code) == null ? void 0 : C.at(P),
|
|
4765
4765
|
visibility: this.m2nm((y = O == null ? void 0 : O.visibility) == null ? void 0 : y.at(P)),
|
|
4766
4766
|
wind: {
|
|
4767
4767
|
speed: (L = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : L.at(P),
|
|
4768
|
-
kts: (
|
|
4768
|
+
kts: (T = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : T.at(P),
|
|
4769
4769
|
degree: (D = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : D.at(P),
|
|
4770
4770
|
bearing: ((F = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : F.at(P)) !== null ? (((N = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : N.at(P)) + 180) % 360 : null,
|
|
4771
4771
|
gusts: (j = O == null ? void 0 : O.wind_gusts_10m) == null ? void 0 : j.at(P)
|
|
@@ -4844,7 +4844,7 @@ class ht {
|
|
|
4844
4844
|
};
|
|
4845
4845
|
}
|
|
4846
4846
|
static pickDaily(e, t) {
|
|
4847
|
-
var r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b,
|
|
4847
|
+
var r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b, g, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe, we, _e, B;
|
|
4848
4848
|
const ze = typeof t == "string" ? ee(t) : t, ve = e == null ? void 0 : e.weather, Pe = e == null ? void 0 : e.marine, Ee = ee((s = (i = (r = ve == null ? void 0 : ve[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), He = ee((c = (l = (n = ve == null ? void 0 : ve[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), ke = [];
|
|
4849
4849
|
if (ze.isBetween(Ee, He, "millisecond", "[]")) {
|
|
4850
4850
|
let re, ce;
|
|
@@ -4869,7 +4869,7 @@ class ht {
|
|
|
4869
4869
|
snowfallSum: (_ = K.snowfall_sum) == null ? void 0 : _.at(Q),
|
|
4870
4870
|
showersSum: (f = K.showers_sum) == null ? void 0 : f.at(Q),
|
|
4871
4871
|
hours: (b = K.precipitation_hours) == null ? void 0 : b.at(Q),
|
|
4872
|
-
probability: (
|
|
4872
|
+
probability: (g = K.precipitation_probability_max) == null ? void 0 : g.at(Q)
|
|
4873
4873
|
},
|
|
4874
4874
|
rh: {
|
|
4875
4875
|
max: (C = K.relative_humidity_2m_max) == null ? void 0 : C.at(Q),
|
|
@@ -4877,7 +4877,7 @@ class ht {
|
|
|
4877
4877
|
mean: (L = K.relative_humidity_2m_mean) == null ? void 0 : L.at(Q)
|
|
4878
4878
|
},
|
|
4879
4879
|
wind: {
|
|
4880
|
-
speed: (
|
|
4880
|
+
speed: (T = K.wind_speed_10m_max) == null ? void 0 : T.at(Q),
|
|
4881
4881
|
kts: (D = K.wind_speed_10m_max) == null ? void 0 : D.at(Q),
|
|
4882
4882
|
degree: (F = K.wind_direction_10m_dominant) == null ? void 0 : F.at(Q),
|
|
4883
4883
|
gusts: (N = K.wind_gusts_10m_max) == null ? void 0 : N.at(Q),
|
|
@@ -5353,9 +5353,9 @@ const Oa = {
|
|
|
5353
5353
|
showTropicals: !1,
|
|
5354
5354
|
activeTropicals: void 0,
|
|
5355
5355
|
activeTropicalsMarker: void 0,
|
|
5356
|
-
empty:
|
|
5356
|
+
empty: S.featureCollection([]),
|
|
5357
5357
|
circleSource: "circle-source",
|
|
5358
|
-
circleSourceData:
|
|
5358
|
+
circleSourceData: S.featureCollection([]),
|
|
5359
5359
|
circleLayer: "tropical-circle-layer"
|
|
5360
5360
|
};
|
|
5361
5361
|
},
|
|
@@ -5683,9 +5683,9 @@ const Oa = {
|
|
|
5683
5683
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
|
|
5684
5684
|
},
|
|
5685
5685
|
handleDateChange() {
|
|
5686
|
-
var a, e, t, r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b,
|
|
5686
|
+
var a, e, t, r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b, g, C, y, L, T, D, F, N, j, G, W, me;
|
|
5687
5687
|
if ((a = this.interpolateMarkers) == null || a.forEach((he) => he == null ? void 0 : he.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
5688
|
-
const he = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ue = this.interpolateData.filter((Y) => Y.properties.date === he.format() && !Y.properties.disabled), fe = this.handleComputePolygons(ue), ge =
|
|
5688
|
+
const he = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ue = this.interpolateData.filter((Y) => Y.properties.date === he.format() && !Y.properties.disabled), fe = this.handleComputePolygons(ue), ge = S.featureCollection([...ue]);
|
|
5689
5689
|
fe.forEach((Y) => {
|
|
5690
5690
|
ge.features.push(Y);
|
|
5691
5691
|
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(ge) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
@@ -5705,7 +5705,7 @@ const Oa = {
|
|
|
5705
5705
|
for (const Y of ue)
|
|
5706
5706
|
if (!Y.properties.disabled) {
|
|
5707
5707
|
let ae = "#f44336";
|
|
5708
|
-
((l = (n = Y.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((p = (c = Y.properties) == null ? void 0 : c.wind) != null && p.kts) ? ae = "#03f869" : ((d = (h = Y.properties) == null ? void 0 : h.wind) == null ? void 0 : d.kts) >= 32 && ((v = (A = Y.properties) == null ? void 0 : A.wind) == null ? void 0 : v.kts) < 47 ? ae = "#f2f202" : ((w = (E = Y.properties) == null ? void 0 : E.wind) == null ? void 0 : w.kts) >= 47 && ((_ = (k = Y.properties) == null ? void 0 : k.wind) == null ? void 0 : _.kts) < 63 ? ae = "#ff9100" : ((b = (f = Y.properties) == null ? void 0 : f.wind) == null ? void 0 : b.kts) >= 63 && ((C = (
|
|
5708
|
+
((l = (n = Y.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((p = (c = Y.properties) == null ? void 0 : c.wind) != null && p.kts) ? ae = "#03f869" : ((d = (h = Y.properties) == null ? void 0 : h.wind) == null ? void 0 : d.kts) >= 32 && ((v = (A = Y.properties) == null ? void 0 : A.wind) == null ? void 0 : v.kts) < 47 ? ae = "#f2f202" : ((w = (E = Y.properties) == null ? void 0 : E.wind) == null ? void 0 : w.kts) >= 47 && ((_ = (k = Y.properties) == null ? void 0 : k.wind) == null ? void 0 : _.kts) < 63 ? ae = "#ff9100" : ((b = (f = Y.properties) == null ? void 0 : f.wind) == null ? void 0 : b.kts) >= 63 && ((C = (g = Y.properties) == null ? void 0 : g.wind) == null ? void 0 : C.kts) < 79 ? ae = "#f44336" : ((L = (y = Y.properties) == null ? void 0 : y.wind) == null ? void 0 : L.kts) >= 79 && ((D = (T = Y.properties) == null ? void 0 : T.wind) == null ? void 0 : D.kts) < 94 ? ae = "#f903d0" : ((N = (F = Y.properties) == null ? void 0 : F.wind) == null ? void 0 : N.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
|
|
5709
5709
|
const Ae = `<svg t="1719918955501"
|
|
5710
5710
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5711
5711
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -5758,7 +5758,7 @@ const Oa = {
|
|
|
5758
5758
|
p.properties.category === e && (p.properties.disabled = a.disabled);
|
|
5759
5759
|
}), this.interpolateData.forEach((p) => {
|
|
5760
5760
|
p.properties.category === e && (p.properties.disabled = a.disabled);
|
|
5761
|
-
}), (n = (s = this.map) == null ? void 0 : s.getSource(this.source)) == null || n.setData(
|
|
5761
|
+
}), (n = (s = this.map) == null ? void 0 : s.getSource(this.source)) == null || n.setData(S.featureCollection(t)), (c = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || c.setData(S.featureCollection(t)), this.handleDateChange();
|
|
5762
5762
|
},
|
|
5763
5763
|
handleStrikeProbability(a) {
|
|
5764
5764
|
this.$emit("tropicalProbability", a);
|
|
@@ -5815,22 +5815,22 @@ const Oa = {
|
|
|
5815
5815
|
let c;
|
|
5816
5816
|
switch (n) {
|
|
5817
5817
|
case "ne":
|
|
5818
|
-
c =
|
|
5818
|
+
c = S.lineArc(a, l, 0, 90, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
5819
5819
|
break;
|
|
5820
5820
|
case "se":
|
|
5821
|
-
c =
|
|
5821
|
+
c = S.lineArc(a, l, 90, 180, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
5822
5822
|
break;
|
|
5823
5823
|
case "sw":
|
|
5824
|
-
c =
|
|
5824
|
+
c = S.lineArc(a, l, 180, 270, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
5825
5825
|
break;
|
|
5826
5826
|
case "nw":
|
|
5827
|
-
c =
|
|
5827
|
+
c = S.lineArc(a, l, 270, 360, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
5828
5828
|
break;
|
|
5829
5829
|
}
|
|
5830
5830
|
r.push(...(s = c == null ? void 0 : c.geometry) == null ? void 0 : s.coordinates);
|
|
5831
5831
|
}
|
|
5832
|
-
const i =
|
|
5833
|
-
return
|
|
5832
|
+
const i = S.lineString(r);
|
|
5833
|
+
return S.lineToPolygon(i, { properties: t });
|
|
5834
5834
|
}
|
|
5835
5835
|
}
|
|
5836
5836
|
}, Ra = {
|
|
@@ -5856,15 +5856,15 @@ const Oa = {
|
|
|
5856
5856
|
style: { "justify-content": "flex-start" }
|
|
5857
5857
|
}, ai = { class: "forecast-models" }, ii = ["onClick"], ri = { class: "more" };
|
|
5858
5858
|
function si(a, e, t, r, i, s) {
|
|
5859
|
-
var n, l, c, p, h, d, A, v, E, w, k, _, f, b,
|
|
5860
|
-
return Fe((
|
|
5859
|
+
var n, l, c, p, h, d, A, v, E, w, k, _, f, b, g, C, y, L, T;
|
|
5860
|
+
return Fe((m(), u("div", Ra, [
|
|
5861
5861
|
o("div", ja, [
|
|
5862
5862
|
o("div", {
|
|
5863
5863
|
class: "iconfont close-btn",
|
|
5864
5864
|
onClick: e[0] || (e[0] = (D) => i.showTropicals = !1)
|
|
5865
5865
|
}, ""),
|
|
5866
5866
|
o("div", Wa, [
|
|
5867
|
-
(l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (
|
|
5867
|
+
(l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (m(), u("span", Ga, I((p = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : p.level) + " , ", 1)) : J("", !0),
|
|
5868
5868
|
ne(I((h = i.activeTropicals) == null ? void 0 : h.name), 1)
|
|
5869
5869
|
]),
|
|
5870
5870
|
o("div", Ua, " Last update: " + I(s.computeTime(((A = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : A.updated) || ((w = (E = (v = i.activeTropicals) == null ? void 0 : v.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : w.date))), 1)
|
|
@@ -5879,7 +5879,7 @@ function si(a, e, t, r, i, s) {
|
|
|
5879
5879
|
]),
|
|
5880
5880
|
o("div", qa, [
|
|
5881
5881
|
e[3] || (e[3] = o("label", null, "Pressure : ", -1)),
|
|
5882
|
-
o("span", null, I(((C = (
|
|
5882
|
+
o("span", null, I(((C = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : C.pressure) || "-") + " [hPa]", 1)
|
|
5883
5883
|
])
|
|
5884
5884
|
]),
|
|
5885
5885
|
o("div", Va, [
|
|
@@ -5896,11 +5896,11 @@ function si(a, e, t, r, i, s) {
|
|
|
5896
5896
|
o("div", ti, [
|
|
5897
5897
|
e[6] || (e[6] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
5898
5898
|
o("div", ai, [
|
|
5899
|
-
(
|
|
5899
|
+
(m(!0), u(V, null, $((T = i.activeTropicals) == null ? void 0 : T.forecasts, (D, F) => {
|
|
5900
5900
|
var N, j, G, W;
|
|
5901
|
-
return
|
|
5901
|
+
return m(), u("div", {
|
|
5902
5902
|
key: F,
|
|
5903
|
-
class:
|
|
5903
|
+
class: Z([
|
|
5904
5904
|
"model",
|
|
5905
5905
|
D.disabled ? "" : "active",
|
|
5906
5906
|
F > 0 && F < ((j = (N = i.activeTropicals) == null ? void 0 : N.forecasts) == null ? void 0 : j.length) - 1 && ((W = (G = i.activeTropicals) == null ? void 0 : G.forecasts) == null ? void 0 : W.length) > 2 ? "center-child" : ""
|
|
@@ -5908,7 +5908,7 @@ function si(a, e, t, r, i, s) {
|
|
|
5908
5908
|
onClick: (me) => s.handleForecastToggle(D)
|
|
5909
5909
|
}, [
|
|
5910
5910
|
o("span", {
|
|
5911
|
-
class:
|
|
5911
|
+
class: Z(D.model)
|
|
5912
5912
|
}, I(D.model), 3)
|
|
5913
5913
|
], 10, ii);
|
|
5914
5914
|
}), 128))
|
|
@@ -6033,7 +6033,7 @@ const oi = {
|
|
|
6033
6033
|
}, ni = { key: 0 };
|
|
6034
6034
|
function li(a, e, t, r, i, s) {
|
|
6035
6035
|
var n;
|
|
6036
|
-
return (n = t.factor) != null && n.active ? (
|
|
6036
|
+
return (n = t.factor) != null && n.active ? (m(), u("div", ni, [
|
|
6037
6037
|
o("div", {
|
|
6038
6038
|
class: "legend-bars flex-center",
|
|
6039
6039
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -6147,7 +6147,7 @@ const ci = {
|
|
|
6147
6147
|
}, di = { key: 0 };
|
|
6148
6148
|
function pi(a, e, t, r, i, s) {
|
|
6149
6149
|
var n;
|
|
6150
|
-
return (n = t.factor) != null && n.active ? (
|
|
6150
|
+
return (n = t.factor) != null && n.active ? (m(), u("div", di, [
|
|
6151
6151
|
o("div", {
|
|
6152
6152
|
class: "legend-bars flex-center",
|
|
6153
6153
|
style: le([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
@@ -6267,7 +6267,7 @@ const ui = {
|
|
|
6267
6267
|
}, gi = { key: 0 };
|
|
6268
6268
|
function yi(a, e, t, r, i, s) {
|
|
6269
6269
|
var n;
|
|
6270
|
-
return (n = t.factor) != null && n.active ? (
|
|
6270
|
+
return (n = t.factor) != null && n.active ? (m(), u("div", gi, [
|
|
6271
6271
|
o("div", {
|
|
6272
6272
|
class: "legend-bars flex-center",
|
|
6273
6273
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -6390,7 +6390,7 @@ const Ai = {
|
|
|
6390
6390
|
}, wi = { key: 0 };
|
|
6391
6391
|
function vi(a, e, t, r, i, s) {
|
|
6392
6392
|
var n;
|
|
6393
|
-
return (n = t.factor) != null && n.active ? (
|
|
6393
|
+
return (n = t.factor) != null && n.active ? (m(), u("div", wi, [
|
|
6394
6394
|
o("div", {
|
|
6395
6395
|
class: "legend-bars flex-center",
|
|
6396
6396
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -6412,7 +6412,7 @@ var Li = /* @__PURE__ */ ft({
|
|
|
6412
6412
|
name: "LocationFilled",
|
|
6413
6413
|
__name: "location-filled",
|
|
6414
6414
|
setup(a) {
|
|
6415
|
-
return (e, t) => (
|
|
6415
|
+
return (e, t) => (m(), u("svg", {
|
|
6416
6416
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6417
6417
|
viewBox: "0 0 1024 1024"
|
|
6418
6418
|
}, [
|
|
@@ -6618,7 +6618,7 @@ const _i = {
|
|
|
6618
6618
|
initTableData(a) {
|
|
6619
6619
|
var e, t, r, i, s, n, l, c, p;
|
|
6620
6620
|
this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Ye(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a, ee(this.ts))) == null ? void 0 : l[0], ((p = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : p.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
6621
|
-
var d, A, v, E, w, k, _, f, b,
|
|
6621
|
+
var d, A, v, E, w, k, _, f, b, g, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe;
|
|
6622
6622
|
if (!document.getElementById("meteoMainBox"))
|
|
6623
6623
|
return !1;
|
|
6624
6624
|
if (!this.currentHourData)
|
|
@@ -6627,7 +6627,7 @@ const _i = {
|
|
|
6627
6627
|
const _e = Ye(this.ts).tz(this.positionGmt).add(3 * we, "h").format();
|
|
6628
6628
|
this.tableData.hours.push(_e);
|
|
6629
6629
|
const B = ((d = Ke.pickHourly(a, _e)) == null ? void 0 : d[0]) || {};
|
|
6630
|
-
this.tableData.temp.push(this.roundPrecision((A = B == null ? void 0 : B.weather) == null ? void 0 : A.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (v = B == null ? void 0 : B.weather) == null ? void 0 : v.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((k = (w = B == null ? void 0 : B.weather) == null ? void 0 : w.precip) == null ? void 0 : k.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = B == null ? void 0 : B.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((b = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.wind) == null ? void 0 : b.kts, 1) ?? "-"), this.tableData.windDir.push((C = (
|
|
6630
|
+
this.tableData.temp.push(this.roundPrecision((A = B == null ? void 0 : B.weather) == null ? void 0 : A.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (v = B == null ? void 0 : B.weather) == null ? void 0 : v.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((k = (w = B == null ? void 0 : B.weather) == null ? void 0 : w.precip) == null ? void 0 : k.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = B == null ? void 0 : B.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((b = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.wind) == null ? void 0 : b.kts, 1) ?? "-"), this.tableData.windDir.push((C = (g = B == null ? void 0 : B.weather) == null ? void 0 : g.wind) == null ? void 0 : C.bearing), this.tableData.windGust.push(this.roundPrecision((L = (y = B == null ? void 0 : B.weather) == null ? void 0 : y.wind) == null ? void 0 : L.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (T = B == null ? void 0 : B.wave) == null ? void 0 : T.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((N = (F = B == null ? void 0 : B.wave) == null ? void 0 : F.sig) == null ? void 0 : N.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((G = (j = B == null ? void 0 : B.wave) == null ? void 0 : j.wd) == null ? void 0 : G.height, 1) ?? "-"), this.tableData.windwaveDir.push((me = (W = B == null ? void 0 : B.wave) == null ? void 0 : W.wd) == null ? void 0 : me.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ue = (he = B == null ? void 0 : B.wave) == null ? void 0 : he.wd) == null ? void 0 : ue.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (fe = B == null ? void 0 : B.wave) == null ? void 0 : fe.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((ae = (Y = B == null ? void 0 : B.wave) == null ? void 0 : Y.swell) == null ? void 0 : ae.bearing), this.tableData.swellPeriod.push(this.roundPrecision((pe = (Ae = B == null ? void 0 : B.wave) == null ? void 0 : Ae.swell) == null ? void 0 : pe.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((ye = B == null ? void 0 : B.current) == null ? void 0 : ye.speed, 1) ?? "-"), this.tableData.currentDir.push((Le = B == null ? void 0 : B.current) == null ? void 0 : Le.bearing), this.tableData.seaLevel.push(this.roundPrecision(B == null ? void 0 : B.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(B == null ? void 0 : B.sst, 0) ?? "-"), this.tableData.weatherUrls.push((Ce = B == null ? void 0 : B.weather) == null ? void 0 : Ce.url), this.tableData.weatherNames.push(((xe = B == null ? void 0 : B.weather) == null ? void 0 : xe.name) ?? "-");
|
|
6631
6631
|
}
|
|
6632
6632
|
});
|
|
6633
6633
|
},
|
|
@@ -6712,47 +6712,47 @@ const _i = {
|
|
|
6712
6712
|
key: 1,
|
|
6713
6713
|
class: "icon flex-center",
|
|
6714
6714
|
style: { "margin-right": "5px" }
|
|
6715
|
-
}, Qi = { class: "temp" }, Hi = { class: "des info" }, Ni = { class: "flex-start" }, Fi = { class: "flex-start" }, Oi = { class: "flex-start" }, Ri = { class: "date flex-col-center-end" }, ji = { class: "" }, Wi = { class: "" }, Gi = { class: "detail-box" }, Ui = { class: "menu-header flex-start" }, Yi = { class: "basic-table" }, Ki = { class: "hour" }, Xi = { class: "hour" }, Ji = { class: "icon" }, qi = ["src"], Vi = { class: "text" }, Zi = { class: "text" }, $i = { class: "text" }, er = { class: "
|
|
6715
|
+
}, Qi = { class: "temp" }, Hi = { class: "des info" }, Ni = { class: "flex-start" }, Fi = { class: "flex-start" }, Oi = { class: "flex-start" }, Ri = { class: "date flex-col-center-end" }, ji = { class: "" }, Wi = { class: "" }, Gi = { class: "detail-box" }, Ui = { class: "menu-header flex-start" }, Yi = { class: "basic-table" }, Ki = { class: "hour" }, Xi = { class: "hour" }, Ji = { class: "icon" }, qi = ["src"], Vi = { class: "text" }, Zi = { class: "text" }, $i = { class: "text" }, er = { class: "text" }, tr = { class: "wave-current-table" }, ar = { class: "hour" }, ir = { class: "hour" }, rr = { class: "text" }, sr = { class: "text" }, or = { class: "text" }, nr = { class: "text" }, lr = { class: "text" }, hr = {
|
|
6716
6716
|
class: "sea-table",
|
|
6717
6717
|
style: { height: "92px" }
|
|
6718
|
-
},
|
|
6718
|
+
}, cr = { class: "hour" }, dr = { class: "hour" }, pr = { class: "text" }, mr = { class: "text" }, ur = { key: 0 }, gr = { class: "tide-table flex-col-start-center" }, yr = { class: "tr-tide flex-space" }, fr = { class: "tr-tide flex-space" }, Ar = { class: "tr-tide flex-space" }, wr = { style: { padding: "17px 10px 18px 10px" } }, vr = { class: "flex-between" }, br = {
|
|
6719
6719
|
class: "flex-space",
|
|
6720
6720
|
style: { flex: "1", "line-height": "30px" }
|
|
6721
|
-
},
|
|
6721
|
+
}, Lr = {
|
|
6722
6722
|
class: "flex-space",
|
|
6723
6723
|
style: { flex: "1", "padding-left": "30px" }
|
|
6724
|
-
},
|
|
6724
|
+
}, Cr = { class: "flex-between" }, xr = {
|
|
6725
6725
|
class: "flex-space",
|
|
6726
6726
|
style: { flex: "1", "line-height": "30px" }
|
|
6727
|
-
},
|
|
6727
|
+
}, _r = {
|
|
6728
6728
|
class: "flex-space",
|
|
6729
6729
|
style: { flex: "1", "padding-left": "30px" }
|
|
6730
|
-
},
|
|
6730
|
+
}, Br = { class: "flex-between" }, Ir = {
|
|
6731
6731
|
class: "flex-space",
|
|
6732
6732
|
style: { flex: "1", "line-height": "30px" }
|
|
6733
|
-
},
|
|
6733
|
+
}, Er = {
|
|
6734
6734
|
class: "flex-space",
|
|
6735
6735
|
style: { flex: "1", "padding-left": "30px" }
|
|
6736
|
-
},
|
|
6736
|
+
}, kr = { class: "flex-between" }, Dr = {
|
|
6737
6737
|
class: "flex-space",
|
|
6738
6738
|
style: { flex: "1", "line-height": "30px" }
|
|
6739
|
-
},
|
|
6739
|
+
}, zr = {
|
|
6740
6740
|
class: "flex-space",
|
|
6741
6741
|
style: { flex: "1", "padding-left": "30px" }
|
|
6742
|
-
},
|
|
6742
|
+
}, Pr = { class: "flex-between" }, Mr = {
|
|
6743
6743
|
class: "flex-space",
|
|
6744
6744
|
style: { flex: "1", "line-height": "30px" }
|
|
6745
|
-
},
|
|
6745
|
+
}, Sr = {
|
|
6746
6746
|
class: "flex-space",
|
|
6747
6747
|
style: { flex: "1", "padding-left": "30px" }
|
|
6748
|
-
},
|
|
6748
|
+
}, Tr = {
|
|
6749
6749
|
key: 1,
|
|
6750
6750
|
class: "main-box flex-center"
|
|
6751
6751
|
};
|
|
6752
|
-
function
|
|
6753
|
-
var p, h, d, A, v, E, w, k, _, f, b,
|
|
6752
|
+
function Qr(a, e, t, r, i, s) {
|
|
6753
|
+
var p, h, d, A, v, E, w, k, _, f, b, g, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe, we, _e, B, ze, ve, Pe, Ee, He, ke, re, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue, ie, Ne, tt, at, it, rt, st, ot;
|
|
6754
6754
|
const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
|
|
6755
|
-
return Fe((
|
|
6755
|
+
return Fe((m(), u("div", Bi, [
|
|
6756
6756
|
o("div", Ii, [
|
|
6757
6757
|
o("div", Ei, [
|
|
6758
6758
|
o("div", ki, [
|
|
@@ -6765,11 +6765,11 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6765
6765
|
o("div", Di, I(s.computeLat((p = i.point) == null ? void 0 : p.lat)) + "," + I(s.computeLng((h = i.point) == null ? void 0 : h.lng)), 1)
|
|
6766
6766
|
]),
|
|
6767
6767
|
o("div", zi, [
|
|
6768
|
-
i.showTables ? (
|
|
6768
|
+
i.showTables ? (m(), u("div", {
|
|
6769
6769
|
key: 0,
|
|
6770
6770
|
class: "iconfont toggle",
|
|
6771
6771
|
onClick: e[0] || (e[0] = (x) => i.showTables = !i.showTables)
|
|
6772
|
-
}, "")) : (
|
|
6772
|
+
}, "")) : (m(), u("div", {
|
|
6773
6773
|
key: 1,
|
|
6774
6774
|
class: "iconfont toggle",
|
|
6775
6775
|
onClick: e[1] || (e[1] = (x) => i.showTables = !i.showTables)
|
|
@@ -6780,11 +6780,11 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6780
6780
|
}, "")
|
|
6781
6781
|
])
|
|
6782
6782
|
]),
|
|
6783
|
-
i.loading ? (
|
|
6783
|
+
i.loading ? (m(), u("div", Tr, e[42] || (e[42] = [
|
|
6784
6784
|
o("img", { src: xi }, null, -1)
|
|
6785
|
-
]))) : (
|
|
6785
|
+
]))) : (m(), u("div", {
|
|
6786
6786
|
key: 0,
|
|
6787
|
-
class:
|
|
6787
|
+
class: Z(["main-box", i.isDay ? "day-bg" : "night-bg"]),
|
|
6788
6788
|
id: "meteoMainBox"
|
|
6789
6789
|
}, [
|
|
6790
6790
|
o("div", Pi, [
|
|
@@ -6796,14 +6796,14 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6796
6796
|
"show-after": 1e3
|
|
6797
6797
|
}, {
|
|
6798
6798
|
default: Ie(() => {
|
|
6799
|
-
var x,
|
|
6799
|
+
var x, M, nt, lt;
|
|
6800
6800
|
return [
|
|
6801
|
-
(
|
|
6801
|
+
(M = (x = i.currentHourData) == null ? void 0 : x.weather) != null && M.url ? (m(), u("img", {
|
|
6802
6802
|
key: 0,
|
|
6803
6803
|
class: "iconfont icon",
|
|
6804
6804
|
style: { "margin-right": "5px" },
|
|
6805
6805
|
src: (lt = (nt = i.currentHourData) == null ? void 0 : nt.weather) == null ? void 0 : lt.url
|
|
6806
|
-
}, null, 8, Si)) : (
|
|
6806
|
+
}, null, 8, Si)) : (m(), u("span", Ti))
|
|
6807
6807
|
];
|
|
6808
6808
|
}),
|
|
6809
6809
|
_: 1
|
|
@@ -6825,7 +6825,7 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6825
6825
|
]),
|
|
6826
6826
|
o("div", Oi, [
|
|
6827
6827
|
e[11] || (e[11] = o("label", null, "Wind : ", -1)),
|
|
6828
|
-
o("span", null, I(s.roundPrecision((y = (C = (
|
|
6828
|
+
o("span", null, I(s.roundPrecision((y = (C = (g = i.currentHourData) == null ? void 0 : g.weather) == null ? void 0 : C.wind) == null ? void 0 : y.kts, 1)) + " kts", 1)
|
|
6829
6829
|
])
|
|
6830
6830
|
])
|
|
6831
6831
|
]),
|
|
@@ -6837,19 +6837,19 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6837
6837
|
Fe(o("div", Gi, [
|
|
6838
6838
|
o("div", Ui, [
|
|
6839
6839
|
o("div", {
|
|
6840
|
-
class:
|
|
6840
|
+
class: Z(["menu-item", i.activeIndex === 1 ? "active" : ""]),
|
|
6841
6841
|
onClick: e[3] || (e[3] = qe((x) => s.handleSelectTab(1), ["prevent"]))
|
|
6842
6842
|
}, "Basis", 2),
|
|
6843
6843
|
o("div", {
|
|
6844
|
-
class:
|
|
6844
|
+
class: Z(["menu-item", i.activeIndex === 2 ? "active" : ""]),
|
|
6845
6845
|
onClick: e[4] || (e[4] = qe((x) => s.handleSelectTab(2), ["prevent"]))
|
|
6846
6846
|
}, "Wave & Current", 2),
|
|
6847
6847
|
o("div", {
|
|
6848
|
-
class:
|
|
6848
|
+
class: Z(["menu-item", i.activeIndex === 3 ? "active" : ""]),
|
|
6849
6849
|
onClick: e[5] || (e[5] = qe((x) => s.handleSelectTab(3), ["prevent"]))
|
|
6850
6850
|
}, "Sea Surface", 2),
|
|
6851
6851
|
o("div", {
|
|
6852
|
-
class:
|
|
6852
|
+
class: Z(["menu-item", i.activeIndex === 4 ? "active" : ""]),
|
|
6853
6853
|
onClick: e[6] || (e[6] = qe((x) => s.handleSelectTab(4), ["prevent"]))
|
|
6854
6854
|
}, "Tides", 2)
|
|
6855
6855
|
]),
|
|
@@ -6863,7 +6863,7 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6863
6863
|
ne("Hours"),
|
|
6864
6864
|
o("span", { class: "unit" }, "(LT)")
|
|
6865
6865
|
], -1)),
|
|
6866
|
-
(
|
|
6866
|
+
(m(!0), u(V, null, $(i.tableData.hours, (x) => (m(), u("th", {
|
|
6867
6867
|
rowspan: "1",
|
|
6868
6868
|
colspan: "1",
|
|
6869
6869
|
key: `HourL${x}`
|
|
@@ -6878,7 +6878,7 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6878
6878
|
ne("UTC"),
|
|
6879
6879
|
o("span", { class: "unit" })
|
|
6880
6880
|
], -1)),
|
|
6881
|
-
(
|
|
6881
|
+
(m(!0), u(V, null, $(i.tableData.hours, (x) => (m(), u("th", {
|
|
6882
6882
|
rowspan: "1",
|
|
6883
6883
|
colspan: "1",
|
|
6884
6884
|
key: `HourZ${x}`
|
|
@@ -6890,19 +6890,19 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6890
6890
|
colspan: "1",
|
|
6891
6891
|
class: "tr-title"
|
|
6892
6892
|
}, null, -1)),
|
|
6893
|
-
(
|
|
6893
|
+
(m(!0), u(V, null, $(i.tableData.weatherUrls, (x, M) => (m(), u("th", {
|
|
6894
6894
|
rowspan: "1",
|
|
6895
6895
|
colspan: "1",
|
|
6896
|
-
key: `weatherUrls${
|
|
6896
|
+
key: `weatherUrls${M}${x}`
|
|
6897
6897
|
}, [
|
|
6898
6898
|
H(c, {
|
|
6899
6899
|
placement: "top",
|
|
6900
6900
|
effect: "light",
|
|
6901
|
-
content: i.tableData.weatherNames[
|
|
6901
|
+
content: i.tableData.weatherNames[M],
|
|
6902
6902
|
"show-after": 500
|
|
6903
6903
|
}, {
|
|
6904
6904
|
default: Ie(() => [
|
|
6905
|
-
x ? (
|
|
6905
|
+
x ? (m(), u("img", {
|
|
6906
6906
|
key: 0,
|
|
6907
6907
|
class: "iconfont weather-icon",
|
|
6908
6908
|
src: x
|
|
@@ -6921,10 +6921,10 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6921
6921
|
ne("Temp"),
|
|
6922
6922
|
o("span", { class: "unit" }, "°C")
|
|
6923
6923
|
], -1)),
|
|
6924
|
-
(
|
|
6924
|
+
(m(!0), u(V, null, $(i.tableData.temp, (x, M) => (m(), u("td", {
|
|
6925
6925
|
rowspan: "1",
|
|
6926
6926
|
colspan: "1",
|
|
6927
|
-
key: `weatherUrls${
|
|
6927
|
+
key: `weatherUrls${M}${x}`
|
|
6928
6928
|
}, I(x), 1))), 128))
|
|
6929
6929
|
]),
|
|
6930
6930
|
o("tr", Zi, [
|
|
@@ -6936,10 +6936,10 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6936
6936
|
ne("Precip"),
|
|
6937
6937
|
o("span", { class: "unit" }, "mm")
|
|
6938
6938
|
], -1)),
|
|
6939
|
-
(
|
|
6939
|
+
(m(!0), u(V, null, $(i.tableData.precip1h, (x, M) => (m(), u("td", {
|
|
6940
6940
|
rowspan: "1",
|
|
6941
6941
|
colspan: "1",
|
|
6942
|
-
key: `precip1h${
|
|
6942
|
+
key: `precip1h${M}${x}`
|
|
6943
6943
|
}, I(x), 1))), 128))
|
|
6944
6944
|
]),
|
|
6945
6945
|
o("tr", $i, [
|
|
@@ -6951,27 +6951,34 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6951
6951
|
ne("Visibility"),
|
|
6952
6952
|
o("span", { class: "unit" }, "nm")
|
|
6953
6953
|
], -1)),
|
|
6954
|
-
(
|
|
6954
|
+
(m(!0), u(V, null, $(i.tableData.visibility, (x, M) => (m(), u("td", {
|
|
6955
6955
|
rowspan: "1",
|
|
6956
6956
|
colspan: "1",
|
|
6957
|
-
key: `visibility${
|
|
6957
|
+
key: `visibility${M}${x}`
|
|
6958
6958
|
}, I(x), 1))), 128))
|
|
6959
6959
|
]),
|
|
6960
|
-
|
|
6961
|
-
o("td", {
|
|
6960
|
+
o("tr", er, [
|
|
6961
|
+
e[18] || (e[18] = o("td", {
|
|
6962
6962
|
rowspan: "1",
|
|
6963
6963
|
colspan: "1",
|
|
6964
6964
|
class: "tr-title"
|
|
6965
6965
|
}, [
|
|
6966
6966
|
ne("Wind gust"),
|
|
6967
6967
|
o("span", { class: "unit" }, "kts")
|
|
6968
|
-
])
|
|
6969
|
-
|
|
6968
|
+
], -1)),
|
|
6969
|
+
(m(!0), u(V, null, $(i.tableData.windGust, (x, M) => (m(), u("td", {
|
|
6970
|
+
rowspan: "1",
|
|
6971
|
+
colspan: "1",
|
|
6972
|
+
key: `windGust${M}${x}`
|
|
6973
|
+
}, [
|
|
6974
|
+
o("span", null, I(x), 1)
|
|
6975
|
+
]))), 128))
|
|
6976
|
+
])
|
|
6970
6977
|
], 512), [
|
|
6971
6978
|
[Oe, i.activeIndex === 1]
|
|
6972
6979
|
]),
|
|
6973
|
-
Fe(o("table",
|
|
6974
|
-
o("tr",
|
|
6980
|
+
Fe(o("table", tr, [
|
|
6981
|
+
o("tr", ar, [
|
|
6975
6982
|
e[19] || (e[19] = o("th", {
|
|
6976
6983
|
rowspan: "1",
|
|
6977
6984
|
colspan: "1",
|
|
@@ -6980,13 +6987,13 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6980
6987
|
ne("Hours"),
|
|
6981
6988
|
o("span", { class: "unit" }, "(LT)")
|
|
6982
6989
|
], -1)),
|
|
6983
|
-
(
|
|
6990
|
+
(m(!0), u(V, null, $(i.tableData.hours, (x, M) => (m(), u("th", {
|
|
6984
6991
|
rowspan: "1",
|
|
6985
6992
|
colspan: "1",
|
|
6986
|
-
key: `currenthoursL${
|
|
6993
|
+
key: `currenthoursL${M}${x}`
|
|
6987
6994
|
}, I(s.computeHourL(x)), 1))), 128))
|
|
6988
6995
|
]),
|
|
6989
|
-
o("tr",
|
|
6996
|
+
o("tr", ir, [
|
|
6990
6997
|
e[20] || (e[20] = o("th", {
|
|
6991
6998
|
rowspan: "1",
|
|
6992
6999
|
colspan: "1",
|
|
@@ -6995,13 +7002,13 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6995
7002
|
ne("UTC"),
|
|
6996
7003
|
o("span", { class: "unit" })
|
|
6997
7004
|
], -1)),
|
|
6998
|
-
(
|
|
7005
|
+
(m(!0), u(V, null, $(i.tableData.hours, (x, M) => (m(), u("th", {
|
|
6999
7006
|
rowspan: "1",
|
|
7000
7007
|
colspan: "1",
|
|
7001
|
-
key: `currenthoursZ${
|
|
7008
|
+
key: `currenthoursZ${M}${x}`
|
|
7002
7009
|
}, I(s.computeHourZ(x)), 1))), 128))
|
|
7003
7010
|
]),
|
|
7004
|
-
o("tr",
|
|
7011
|
+
o("tr", rr, [
|
|
7005
7012
|
e[21] || (e[21] = o("td", {
|
|
7006
7013
|
rowspan: "1",
|
|
7007
7014
|
colspan: "1",
|
|
@@ -7010,20 +7017,20 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7010
7017
|
ne("Wind"),
|
|
7011
7018
|
o("span", { class: "unit" }, "kts")
|
|
7012
7019
|
], -1)),
|
|
7013
|
-
(
|
|
7020
|
+
(m(!0), u(V, null, $(i.tableData.windSpeed, (x, M) => (m(), u("td", {
|
|
7014
7021
|
rowspan: "1",
|
|
7015
7022
|
colspan: "1",
|
|
7016
|
-
key: `windSpeed${
|
|
7023
|
+
key: `windSpeed${M}${x}`
|
|
7017
7024
|
}, [
|
|
7018
|
-
isNaN(i.tableData.windDir[
|
|
7025
|
+
isNaN(i.tableData.windDir[M]) ? J("", !0) : (m(), u("span", {
|
|
7019
7026
|
key: 0,
|
|
7020
7027
|
class: "iconfont icon wind",
|
|
7021
|
-
style: le({ display: "inline-block", transform: `rotate(${i.tableData.windDir[
|
|
7028
|
+
style: le({ display: "inline-block", transform: `rotate(${i.tableData.windDir[M]}deg)` })
|
|
7022
7029
|
}, "", 4)),
|
|
7023
7030
|
o("span", null, I(x), 1)
|
|
7024
7031
|
]))), 128))
|
|
7025
7032
|
]),
|
|
7026
|
-
o("tr",
|
|
7033
|
+
o("tr", sr, [
|
|
7027
7034
|
e[22] || (e[22] = o("td", {
|
|
7028
7035
|
rowspan: "1",
|
|
7029
7036
|
colspan: "1",
|
|
@@ -7032,20 +7039,20 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7032
7039
|
ne("Sig Wave"),
|
|
7033
7040
|
o("span", { class: "unit" }, "m")
|
|
7034
7041
|
], -1)),
|
|
7035
|
-
(
|
|
7042
|
+
(m(!0), u(V, null, $(i.tableData.sigwaveHeight, (x, M) => (m(), u("td", {
|
|
7036
7043
|
rowspan: "1",
|
|
7037
7044
|
colspan: "1",
|
|
7038
|
-
key: `sigwaveHeight${
|
|
7045
|
+
key: `sigwaveHeight${M}${x}`
|
|
7039
7046
|
}, [
|
|
7040
|
-
isNaN(i.tableData.sigwaveDir[
|
|
7047
|
+
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), u("span", {
|
|
7041
7048
|
key: 0,
|
|
7042
7049
|
class: "iconfont icon sigwave",
|
|
7043
|
-
style: le({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[
|
|
7050
|
+
style: le({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[M]}deg)` })
|
|
7044
7051
|
}, "", 4)),
|
|
7045
7052
|
o("span", null, I(x), 1)
|
|
7046
7053
|
]))), 128))
|
|
7047
7054
|
]),
|
|
7048
|
-
o("tr",
|
|
7055
|
+
o("tr", or, [
|
|
7049
7056
|
e[23] || (e[23] = o("td", {
|
|
7050
7057
|
rowspan: "1",
|
|
7051
7058
|
colspan: "1",
|
|
@@ -7054,20 +7061,20 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7054
7061
|
ne("Wind Wave"),
|
|
7055
7062
|
o("span", { class: "unit" }, "m")
|
|
7056
7063
|
], -1)),
|
|
7057
|
-
(
|
|
7064
|
+
(m(!0), u(V, null, $(i.tableData.windwaveHeight, (x, M) => (m(), u("td", {
|
|
7058
7065
|
rowspan: "1",
|
|
7059
7066
|
colspan: "1",
|
|
7060
|
-
key: `windwaveHeight${
|
|
7067
|
+
key: `windwaveHeight${M}${x}`
|
|
7061
7068
|
}, [
|
|
7062
|
-
isNaN(i.tableData.sigwaveDir[
|
|
7069
|
+
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), u("span", {
|
|
7063
7070
|
key: 0,
|
|
7064
7071
|
class: "iconfont icon windwave",
|
|
7065
|
-
style: le({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[
|
|
7072
|
+
style: le({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[M]}deg)` })
|
|
7066
7073
|
}, "", 4)),
|
|
7067
7074
|
o("span", null, I(x), 1)
|
|
7068
7075
|
]))), 128))
|
|
7069
7076
|
]),
|
|
7070
|
-
o("tr",
|
|
7077
|
+
o("tr", nr, [
|
|
7071
7078
|
e[24] || (e[24] = o("td", {
|
|
7072
7079
|
rowspan: "1",
|
|
7073
7080
|
colspan: "1",
|
|
@@ -7076,20 +7083,20 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7076
7083
|
ne("Swell"),
|
|
7077
7084
|
o("span", { class: "unit" }, "m")
|
|
7078
7085
|
], -1)),
|
|
7079
|
-
(
|
|
7086
|
+
(m(!0), u(V, null, $(i.tableData.swellHeight, (x, M) => (m(), u("td", {
|
|
7080
7087
|
rowspan: "1",
|
|
7081
7088
|
colspan: "1",
|
|
7082
|
-
key: `swellHeight${
|
|
7089
|
+
key: `swellHeight${M}${x}`
|
|
7083
7090
|
}, [
|
|
7084
|
-
isNaN(i.tableData.swellDir[
|
|
7091
|
+
isNaN(i.tableData.swellDir[M]) ? J("", !0) : (m(), u("span", {
|
|
7085
7092
|
key: 0,
|
|
7086
7093
|
class: "iconfont icon swell",
|
|
7087
|
-
style: le({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[
|
|
7094
|
+
style: le({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[M]}deg)` })
|
|
7088
7095
|
}, "", 4)),
|
|
7089
7096
|
o("span", null, I(x), 1)
|
|
7090
7097
|
]))), 128))
|
|
7091
7098
|
]),
|
|
7092
|
-
o("tr",
|
|
7099
|
+
o("tr", lr, [
|
|
7093
7100
|
e[25] || (e[25] = o("td", {
|
|
7094
7101
|
rowspan: "1",
|
|
7095
7102
|
colspan: "1",
|
|
@@ -7098,16 +7105,16 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7098
7105
|
ne("Current"),
|
|
7099
7106
|
o("span", { class: "unit" }, "kts")
|
|
7100
7107
|
], -1)),
|
|
7101
|
-
(
|
|
7108
|
+
(m(!0), u(V, null, $(i.tableData.currentSpeed, (x, M) => (m(), u("td", {
|
|
7102
7109
|
rowspan: "1",
|
|
7103
7110
|
colspan: "1",
|
|
7104
|
-
key: `currentSpeed${
|
|
7111
|
+
key: `currentSpeed${M}${x}`
|
|
7105
7112
|
}, [
|
|
7106
|
-
isNaN(i.tableData.currentDir[
|
|
7113
|
+
isNaN(i.tableData.currentDir[M]) ? J("", !0) : (m(), u("span", {
|
|
7107
7114
|
key: 0,
|
|
7108
7115
|
class: "iconfont icon current",
|
|
7109
7116
|
id: "meteoGrayIcon",
|
|
7110
|
-
style: le({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[
|
|
7117
|
+
style: le({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[M]}deg)` })
|
|
7111
7118
|
}, "", 4)),
|
|
7112
7119
|
o("span", null, I(x), 1)
|
|
7113
7120
|
]))), 128))
|
|
@@ -7115,8 +7122,8 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7115
7122
|
], 512), [
|
|
7116
7123
|
[Oe, i.activeIndex === 2]
|
|
7117
7124
|
]),
|
|
7118
|
-
Fe(o("table",
|
|
7119
|
-
o("tr",
|
|
7125
|
+
Fe(o("table", hr, [
|
|
7126
|
+
o("tr", cr, [
|
|
7120
7127
|
e[26] || (e[26] = o("th", {
|
|
7121
7128
|
rowspan: "1",
|
|
7122
7129
|
colspan: "1",
|
|
@@ -7125,13 +7132,13 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7125
7132
|
ne("Hours"),
|
|
7126
7133
|
o("span", { class: "unit" }, "(LT)")
|
|
7127
7134
|
], -1)),
|
|
7128
|
-
(
|
|
7135
|
+
(m(!0), u(V, null, $(i.tableData.hours, (x, M) => (m(), u("th", {
|
|
7129
7136
|
rowspan: "1",
|
|
7130
7137
|
colspan: "1",
|
|
7131
|
-
key: `seahoursL${
|
|
7138
|
+
key: `seahoursL${M}${x}`
|
|
7132
7139
|
}, I(s.computeHourL(x)), 1))), 128))
|
|
7133
7140
|
]),
|
|
7134
|
-
o("tr",
|
|
7141
|
+
o("tr", dr, [
|
|
7135
7142
|
e[27] || (e[27] = o("th", {
|
|
7136
7143
|
rowspan: "1",
|
|
7137
7144
|
colspan: "1",
|
|
@@ -7140,13 +7147,13 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7140
7147
|
ne("UTC"),
|
|
7141
7148
|
o("span", { class: "unit" })
|
|
7142
7149
|
], -1)),
|
|
7143
|
-
(
|
|
7150
|
+
(m(!0), u(V, null, $(i.tableData.hours, (x, M) => (m(), u("th", {
|
|
7144
7151
|
rowspan: "1",
|
|
7145
7152
|
colspan: "1",
|
|
7146
|
-
key: `seahoursZ${
|
|
7153
|
+
key: `seahoursZ${M}${x}`
|
|
7147
7154
|
}, I(s.computeHourZ(x)), 1))), 128))
|
|
7148
7155
|
]),
|
|
7149
|
-
o("tr",
|
|
7156
|
+
o("tr", pr, [
|
|
7150
7157
|
e[28] || (e[28] = o("td", {
|
|
7151
7158
|
rowspan: "1",
|
|
7152
7159
|
colspan: "1",
|
|
@@ -7155,13 +7162,13 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7155
7162
|
ne("SeaLevel"),
|
|
7156
7163
|
o("span", { class: "unit" }, "m")
|
|
7157
7164
|
], -1)),
|
|
7158
|
-
(
|
|
7165
|
+
(m(!0), u(V, null, $(i.tableData.seaLevel, (x, M) => (m(), u("td", {
|
|
7159
7166
|
rowspan: "1",
|
|
7160
7167
|
colspan: "1",
|
|
7161
|
-
key: `SeaLevel${
|
|
7168
|
+
key: `SeaLevel${M}${x}`
|
|
7162
7169
|
}, I(x), 1))), 128))
|
|
7163
7170
|
]),
|
|
7164
|
-
o("tr",
|
|
7171
|
+
o("tr", mr, [
|
|
7165
7172
|
e[29] || (e[29] = o("td", {
|
|
7166
7173
|
rowspan: "1",
|
|
7167
7174
|
colspan: "1",
|
|
@@ -7170,38 +7177,38 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7170
7177
|
ne("SeaTemp"),
|
|
7171
7178
|
o("span", { class: "unit" }, "°C")
|
|
7172
7179
|
], -1)),
|
|
7173
|
-
(
|
|
7180
|
+
(m(!0), u(V, null, $(i.tableData.seaTemp, (x, M) => (m(), u("td", {
|
|
7174
7181
|
rowspan: "1",
|
|
7175
7182
|
colspan: "1",
|
|
7176
|
-
key: `SeaTemp${
|
|
7183
|
+
key: `SeaTemp${M}${x}`
|
|
7177
7184
|
}, I(x), 1))), 128))
|
|
7178
7185
|
])
|
|
7179
7186
|
], 512), [
|
|
7180
7187
|
[Oe, i.activeIndex === 3]
|
|
7181
7188
|
]),
|
|
7182
|
-
i.activeIndex === 3 ? (
|
|
7189
|
+
i.activeIndex === 3 ? (m(), u("div", ur, e[30] || (e[30] = [
|
|
7183
7190
|
o("p", { style: { "font-size": "12px", padding: "12px 20px 0 20px", "line-height": "16px" } }, "*Sea level height accounts for tides, barometer effects, and global variations. Based on mean sea level, accuracy is limited in coastal areas. For coastal navigation, use data from Tides Tab.", -1)
|
|
7184
7191
|
]))) : J("", !0),
|
|
7185
|
-
Fe(o("table",
|
|
7186
|
-
o("tr",
|
|
7187
|
-
(
|
|
7192
|
+
Fe(o("table", gr, [
|
|
7193
|
+
o("tr", yr, [
|
|
7194
|
+
(m(!0), u(V, null, $(i.tideTableData, (x, M) => (m(), u("th", {
|
|
7188
7195
|
rowspan: "1",
|
|
7189
7196
|
colspan: "1",
|
|
7190
|
-
key: `Tide-tr-${
|
|
7197
|
+
key: `Tide-tr-${M}${x}`
|
|
7191
7198
|
}, I(x.type) + " Tide", 1))), 128))
|
|
7192
7199
|
]),
|
|
7193
|
-
o("tr",
|
|
7194
|
-
(
|
|
7200
|
+
o("tr", fr, [
|
|
7201
|
+
(m(!0), u(V, null, $(i.tideTableData, (x, M) => (m(), u("td", {
|
|
7195
7202
|
rowspan: "1",
|
|
7196
7203
|
colspan: "1",
|
|
7197
|
-
key: `Tide-date-${
|
|
7204
|
+
key: `Tide-date-${M}${x}`
|
|
7198
7205
|
}, I(s.computeHourHmmLT(x == null ? void 0 : x.date)), 1))), 128))
|
|
7199
7206
|
]),
|
|
7200
|
-
o("tr",
|
|
7201
|
-
(
|
|
7207
|
+
o("tr", Ar, [
|
|
7208
|
+
(m(!0), u(V, null, $(i.tideTableData, (x, M) => (m(), u("td", {
|
|
7202
7209
|
rowspan: "1",
|
|
7203
7210
|
colspan: "1",
|
|
7204
|
-
key: `Tide-height-${
|
|
7211
|
+
key: `Tide-height-${M}${x}`
|
|
7205
7212
|
}, I(s.roundPrecision(x == null ? void 0 : x.height, 2)) + " m", 1))), 128))
|
|
7206
7213
|
]),
|
|
7207
7214
|
e[31] || (e[31] = o("tr", { class: "tr-tide flex-center info" }, [
|
|
@@ -7211,55 +7218,55 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7211
7218
|
[Oe, i.activeIndex === 4]
|
|
7212
7219
|
])
|
|
7213
7220
|
], 512), [
|
|
7214
|
-
[Oe, ((
|
|
7221
|
+
[Oe, ((T = (L = i.tableData) == null ? void 0 : L.hours) == null ? void 0 : T.length) > 0 && i.showTables]
|
|
7215
7222
|
]),
|
|
7216
|
-
Fe(o("div",
|
|
7217
|
-
o("div",
|
|
7218
|
-
o("div",
|
|
7223
|
+
Fe(o("div", wr, [
|
|
7224
|
+
o("div", vr, [
|
|
7225
|
+
o("div", br, [
|
|
7219
7226
|
e[32] || (e[32] = o("div", null, "Wind", -1)),
|
|
7220
7227
|
o("div", null, I((N = (F = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : F.wind) == null ? void 0 : N.direction) + "/" + I(s.roundPrecision((W = (G = (j = i.currentHourData) == null ? void 0 : j.weather) == null ? void 0 : G.wind) == null ? void 0 : W.kts, 1)) + "kts/BF" + I((ue = (he = (me = i.currentHourData) == null ? void 0 : me.weather) == null ? void 0 : he.wind) == null ? void 0 : ue.scale) + "/" + I(s.roundPrecision((Y = (ge = (fe = i.currentHourData) == null ? void 0 : fe.weather) == null ? void 0 : ge.wind) == null ? void 0 : Y.gusts, 1)) + " kts", 1)
|
|
7221
7228
|
]),
|
|
7222
|
-
o("div",
|
|
7229
|
+
o("div", Lr, [
|
|
7223
7230
|
e[33] || (e[33] = o("div", null, "Sig wave", -1)),
|
|
7224
7231
|
o("div", null, I((pe = (Ae = (ae = i.currentHourData) == null ? void 0 : ae.wave) == null ? void 0 : Ae.sig) == null ? void 0 : pe.direction) + "/" + I(s.roundPrecision((Ce = (Le = (ye = i.currentHourData) == null ? void 0 : ye.wave) == null ? void 0 : Le.sig) == null ? void 0 : Ce.height, 1)) + "m/" + I(s.roundPrecision((_e = (we = (xe = i.currentHourData) == null ? void 0 : xe.wave) == null ? void 0 : we.sig) == null ? void 0 : _e.period, 1)) + "s", 1)
|
|
7225
7232
|
])
|
|
7226
7233
|
]),
|
|
7227
|
-
o("div",
|
|
7228
|
-
o("div",
|
|
7234
|
+
o("div", Cr, [
|
|
7235
|
+
o("div", xr, [
|
|
7229
7236
|
e[34] || (e[34] = o("div", null, "Wind wave", -1)),
|
|
7230
7237
|
o("div", null, I((ve = (ze = (B = i.currentHourData) == null ? void 0 : B.wave) == null ? void 0 : ze.wd) == null ? void 0 : ve.direction) + "/" + I(s.roundPrecision((He = (Ee = (Pe = i.currentHourData) == null ? void 0 : Pe.wave) == null ? void 0 : Ee.wd) == null ? void 0 : He.height, 1)) + "m/" + I(s.roundPrecision((ce = (re = (ke = i.currentHourData) == null ? void 0 : ke.wave) == null ? void 0 : re.wd) == null ? void 0 : ce.period, 1)) + "s", 1)
|
|
7231
7238
|
]),
|
|
7232
|
-
o("div",
|
|
7239
|
+
o("div", _r, [
|
|
7233
7240
|
e[35] || (e[35] = o("div", null, "Swell", -1)),
|
|
7234
7241
|
o("div", null, I((K = (Be = (Q = i.currentHourData) == null ? void 0 : Q.wave) == null ? void 0 : Be.swell) == null ? void 0 : K.direction) + "/" + I(s.roundPrecision((P = (Me = (q = i.currentHourData) == null ? void 0 : q.wave) == null ? void 0 : Me.swell) == null ? void 0 : P.height, 1)) + "m/" + I(s.roundPrecision((Se = (De = (de = i.currentHourData) == null ? void 0 : de.wave) == null ? void 0 : De.swell) == null ? void 0 : Se.period, 1)) + "s", 1)
|
|
7235
7242
|
])
|
|
7236
7243
|
]),
|
|
7237
|
-
o("div",
|
|
7238
|
-
o("div",
|
|
7244
|
+
o("div", Br, [
|
|
7245
|
+
o("div", Ir, [
|
|
7239
7246
|
e[36] || (e[36] = o("div", null, "Current", -1)),
|
|
7240
7247
|
o("div", null, I((z = (Te = i.currentHourData) == null ? void 0 : Te.current) == null ? void 0 : z.direction) + "/" + I(s.roundPrecision((Ge = (O = i.currentHourData) == null ? void 0 : O.current) == null ? void 0 : Ge.kts, 2)) + "kts", 1)
|
|
7241
7248
|
]),
|
|
7242
|
-
o("div",
|
|
7249
|
+
o("div", Er, [
|
|
7243
7250
|
e[37] || (e[37] = o("div", null, "Sea level", -1)),
|
|
7244
7251
|
o("div", null, I(s.roundPrecision((Ue = i.currentHourData) == null ? void 0 : Ue.height, 1)) + "m", 1)
|
|
7245
7252
|
])
|
|
7246
7253
|
]),
|
|
7247
|
-
o("div",
|
|
7248
|
-
o("div",
|
|
7254
|
+
o("div", kr, [
|
|
7255
|
+
o("div", Dr, [
|
|
7249
7256
|
e[38] || (e[38] = o("div", null, "Sea Temp", -1)),
|
|
7250
7257
|
o("div", null, I(s.roundPrecision((ie = i.currentHourData) == null ? void 0 : ie.sst, 1)) + "°C", 1)
|
|
7251
7258
|
]),
|
|
7252
|
-
o("div",
|
|
7259
|
+
o("div", zr, [
|
|
7253
7260
|
e[39] || (e[39] = o("div", null, "Visibility", -1)),
|
|
7254
7261
|
o("div", null, I(s.roundPrecision((tt = (Ne = i.currentHourData) == null ? void 0 : Ne.weather) == null ? void 0 : tt.visibility, 1)) + "nm", 1)
|
|
7255
7262
|
])
|
|
7256
7263
|
]),
|
|
7257
|
-
o("div",
|
|
7258
|
-
o("div",
|
|
7264
|
+
o("div", Pr, [
|
|
7265
|
+
o("div", Mr, [
|
|
7259
7266
|
e[40] || (e[40] = o("div", null, "Temp", -1)),
|
|
7260
7267
|
o("div", null, I(s.roundPrecision((it = (at = i.currentHourData) == null ? void 0 : at.weather) == null ? void 0 : it.temp, 1)) + "°C", 1)
|
|
7261
7268
|
]),
|
|
7262
|
-
o("div",
|
|
7269
|
+
o("div", Sr, [
|
|
7263
7270
|
e[41] || (e[41] = o("div", null, "Precip", -1)),
|
|
7264
7271
|
o("div", null, I(s.roundPrecision((ot = (st = (rt = i.currentHourData) == null ? void 0 : rt.weather) == null ? void 0 : st.precip) == null ? void 0 : ot.sum3Hours, 1)) + "mm", 1)
|
|
7265
7272
|
])
|
|
@@ -7268,7 +7275,7 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7268
7275
|
[Oe, !i.showTables]
|
|
7269
7276
|
]),
|
|
7270
7277
|
o("div", {
|
|
7271
|
-
class:
|
|
7278
|
+
class: Z(["more", i.isDay ? "day" : "night"]),
|
|
7272
7279
|
onClick: e[7] || (e[7] = (...x) => s.handleMeteoMore && s.handleMeteoMore(...x))
|
|
7273
7280
|
}, "More >>", 2)
|
|
7274
7281
|
], 2))
|
|
@@ -7277,7 +7284,7 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7277
7284
|
[Oe, i.showMeteo]
|
|
7278
7285
|
]);
|
|
7279
7286
|
}
|
|
7280
|
-
const
|
|
7287
|
+
const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-fa02c365"]]), Nr = {
|
|
7281
7288
|
name: "IdmWarZone",
|
|
7282
7289
|
props: {
|
|
7283
7290
|
map: {
|
|
@@ -7370,10 +7377,10 @@ const Qr = /* @__PURE__ */ U(_i, [["render", Tr], ["__scopeId", "data-v-d103556a
|
|
|
7370
7377
|
}
|
|
7371
7378
|
}
|
|
7372
7379
|
};
|
|
7373
|
-
function
|
|
7374
|
-
return
|
|
7380
|
+
function Fr(a, e, t, r, i, s) {
|
|
7381
|
+
return m(), u("div");
|
|
7375
7382
|
}
|
|
7376
|
-
const
|
|
7383
|
+
const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
|
|
7377
7384
|
name: "IdmGmdssArea",
|
|
7378
7385
|
props: {
|
|
7379
7386
|
map: {
|
|
@@ -7496,10 +7503,10 @@ const Fr = /* @__PURE__ */ U(Hr, [["render", Nr]]), Or = {
|
|
|
7496
7503
|
}
|
|
7497
7504
|
}
|
|
7498
7505
|
};
|
|
7499
|
-
function
|
|
7500
|
-
return
|
|
7506
|
+
function jr(a, e, t, r, i, s) {
|
|
7507
|
+
return m(), u("div");
|
|
7501
7508
|
}
|
|
7502
|
-
const
|
|
7509
|
+
const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
|
|
7503
7510
|
name: "IdmEcaZone",
|
|
7504
7511
|
props: {
|
|
7505
7512
|
map: {
|
|
@@ -7593,11 +7600,11 @@ const jr = /* @__PURE__ */ U(Or, [["render", Rr]]), Wr = {
|
|
|
7593
7600
|
}
|
|
7594
7601
|
}
|
|
7595
7602
|
};
|
|
7596
|
-
function
|
|
7597
|
-
return
|
|
7603
|
+
function Ur(a, e, t, r, i, s) {
|
|
7604
|
+
return m(), u("div");
|
|
7598
7605
|
}
|
|
7599
|
-
const
|
|
7600
|
-
const
|
|
7606
|
+
const Yr = /* @__PURE__ */ U(Gr, [["render", Ur]]);
|
|
7607
|
+
const Kr = {
|
|
7601
7608
|
name: "IdmAlertZone",
|
|
7602
7609
|
props: {
|
|
7603
7610
|
map: {
|
|
@@ -7730,10 +7737,10 @@ const Yr = {
|
|
|
7730
7737
|
this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
7731
7738
|
}
|
|
7732
7739
|
}
|
|
7733
|
-
},
|
|
7734
|
-
function
|
|
7740
|
+
}, Xr = { id: "idm-gl3-zone-info" }, Jr = ["innerHTML"];
|
|
7741
|
+
function qr(a, e, t, r, i, s) {
|
|
7735
7742
|
var n;
|
|
7736
|
-
return Fe((
|
|
7743
|
+
return Fe((m(), u("div", Xr, [
|
|
7737
7744
|
o("div", {
|
|
7738
7745
|
class: "iconfont close",
|
|
7739
7746
|
onClick: e[0] || (e[0] = (l) => i.showZone = !1)
|
|
@@ -7741,13 +7748,13 @@ function Jr(a, e, t, r, i, s) {
|
|
|
7741
7748
|
o("div", {
|
|
7742
7749
|
class: "rich-context",
|
|
7743
7750
|
innerHTML: (n = i.form) == null ? void 0 : n.name
|
|
7744
|
-
}, null, 8,
|
|
7751
|
+
}, null, 8, Jr)
|
|
7745
7752
|
], 512)), [
|
|
7746
7753
|
[Oe, i.showZone]
|
|
7747
7754
|
]);
|
|
7748
7755
|
}
|
|
7749
|
-
const
|
|
7750
|
-
const
|
|
7756
|
+
const Vr = /* @__PURE__ */ U(Kr, [["render", qr]]);
|
|
7757
|
+
const Zr = {
|
|
7751
7758
|
name: "IdmPort",
|
|
7752
7759
|
props: {
|
|
7753
7760
|
map: {
|
|
@@ -7842,37 +7849,37 @@ const Vr = {
|
|
|
7842
7849
|
a.forecastModel = this.forecastModel, this.$emit("meteoMore", a);
|
|
7843
7850
|
}
|
|
7844
7851
|
}
|
|
7845
|
-
},
|
|
7852
|
+
}, $r = {
|
|
7846
7853
|
ref: "idmPortInfo",
|
|
7847
7854
|
id: "port-info"
|
|
7848
|
-
},
|
|
7855
|
+
}, es = { class: "port-box" }, ts = { class: "flex-start" }, as = { class: "flex-start" }, is = { class: "flex-start" }, rs = {
|
|
7849
7856
|
class: "flex-start",
|
|
7850
7857
|
style: { "align-items": "flex-start" }
|
|
7851
|
-
},
|
|
7852
|
-
function
|
|
7853
|
-
return Fe((
|
|
7858
|
+
}, ss = { class: "meteo-forecast flex-end" };
|
|
7859
|
+
function os(a, e, t, r, i, s) {
|
|
7860
|
+
return Fe((m(), u("div", $r, [
|
|
7854
7861
|
o("div", {
|
|
7855
7862
|
class: "close iconfont",
|
|
7856
7863
|
onClick: e[0] || (e[0] = (n) => i.showPort = !1)
|
|
7857
7864
|
}, ""),
|
|
7858
|
-
o("div",
|
|
7859
|
-
o("div",
|
|
7865
|
+
o("div", es, [
|
|
7866
|
+
o("div", ts, [
|
|
7860
7867
|
e[2] || (e[2] = o("label", null, "Name : ", -1)),
|
|
7861
7868
|
o("span", null, I(i.form.name), 1)
|
|
7862
7869
|
]),
|
|
7863
|
-
o("div",
|
|
7870
|
+
o("div", as, [
|
|
7864
7871
|
e[3] || (e[3] = o("label", null, "Position : ", -1)),
|
|
7865
7872
|
o("span", null, I(s.computeLat(i.form.lat)) + ", " + I(s.computeLng(i.form.lng)), 1)
|
|
7866
7873
|
]),
|
|
7867
|
-
o("div",
|
|
7874
|
+
o("div", is, [
|
|
7868
7875
|
e[4] || (e[4] = o("label", null, "LoCode : ", -1)),
|
|
7869
7876
|
o("span", null, I(i.form.loCode || "-"), 1)
|
|
7870
7877
|
]),
|
|
7871
|
-
o("div",
|
|
7878
|
+
o("div", rs, [
|
|
7872
7879
|
e[5] || (e[5] = o("label", null, "Region : ", -1)),
|
|
7873
7880
|
o("span", null, I(i.form.zoneName || "-"), 1)
|
|
7874
7881
|
]),
|
|
7875
|
-
o("div",
|
|
7882
|
+
o("div", ss, [
|
|
7876
7883
|
o("span", {
|
|
7877
7884
|
onClick: e[1] || (e[1] = (n) => s.handleClickMeteo(i.form))
|
|
7878
7885
|
}, "Meteo Forecast")
|
|
@@ -7882,7 +7889,7 @@ function ss(a, e, t, r, i, s) {
|
|
|
7882
7889
|
[Oe, i.showPort]
|
|
7883
7890
|
]);
|
|
7884
7891
|
}
|
|
7885
|
-
const
|
|
7892
|
+
const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-2fc5fc5e"]]), ls = {
|
|
7886
7893
|
name: "IdmLoadLine",
|
|
7887
7894
|
props: {
|
|
7888
7895
|
map: {
|
|
@@ -7955,10 +7962,10 @@ const os = /* @__PURE__ */ U(Vr, [["render", ss], ["__scopeId", "data-v-2fc5fc5e
|
|
|
7955
7962
|
}
|
|
7956
7963
|
}
|
|
7957
7964
|
};
|
|
7958
|
-
function
|
|
7959
|
-
return
|
|
7965
|
+
function hs(a, e, t, r, i, s) {
|
|
7966
|
+
return m(), u("div");
|
|
7960
7967
|
}
|
|
7961
|
-
const
|
|
7968
|
+
const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
|
|
7962
7969
|
name: "IdmTimezone",
|
|
7963
7970
|
props: {
|
|
7964
7971
|
map: {
|
|
@@ -8126,10 +8133,10 @@ const hs = /* @__PURE__ */ U(ns, [["render", ls]]), cs = {
|
|
|
8126
8133
|
}
|
|
8127
8134
|
}
|
|
8128
8135
|
};
|
|
8129
|
-
function
|
|
8130
|
-
return
|
|
8136
|
+
function ps(a, e, t, r, i, s) {
|
|
8137
|
+
return m(), u("div");
|
|
8131
8138
|
}
|
|
8132
|
-
const
|
|
8139
|
+
const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
|
|
8133
8140
|
name: "IdmVoluntaryReportingArea",
|
|
8134
8141
|
props: {
|
|
8135
8142
|
map: {
|
|
@@ -8220,10 +8227,10 @@ const ps = /* @__PURE__ */ U(cs, [["render", ds]]), ms = {
|
|
|
8220
8227
|
}
|
|
8221
8228
|
}
|
|
8222
8229
|
};
|
|
8223
|
-
function
|
|
8224
|
-
return
|
|
8230
|
+
function gs(a, e, t, r, i, s) {
|
|
8231
|
+
return m(), u("div");
|
|
8225
8232
|
}
|
|
8226
|
-
const
|
|
8233
|
+
const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
|
|
8227
8234
|
name: "IdmSpecialArea",
|
|
8228
8235
|
props: {
|
|
8229
8236
|
map: {
|
|
@@ -8316,10 +8323,10 @@ const gs = /* @__PURE__ */ U(ms, [["render", us]]), ys = {
|
|
|
8316
8323
|
}
|
|
8317
8324
|
}
|
|
8318
8325
|
};
|
|
8319
|
-
function
|
|
8320
|
-
return
|
|
8326
|
+
function As(a, e, t, r, i, s) {
|
|
8327
|
+
return m(), u("div");
|
|
8321
8328
|
}
|
|
8322
|
-
const
|
|
8329
|
+
const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
|
|
8323
8330
|
name: "IdmTerminator",
|
|
8324
8331
|
props: {
|
|
8325
8332
|
map: {
|
|
@@ -8371,11 +8378,11 @@ const As = /* @__PURE__ */ U(ys, [["render", fs]]), ws = {
|
|
|
8371
8378
|
}
|
|
8372
8379
|
}
|
|
8373
8380
|
};
|
|
8374
|
-
function
|
|
8375
|
-
return
|
|
8381
|
+
function bs(a, e, t, r, i, s) {
|
|
8382
|
+
return m(), u("div");
|
|
8376
8383
|
}
|
|
8377
|
-
const
|
|
8378
|
-
const
|
|
8384
|
+
const Ls = /* @__PURE__ */ U(vs, [["render", bs]]);
|
|
8385
|
+
const Cs = {
|
|
8379
8386
|
name: "IdmLatLng",
|
|
8380
8387
|
props: {
|
|
8381
8388
|
map: {
|
|
@@ -8482,7 +8489,7 @@ const Ls = {
|
|
|
8482
8489
|
handleZoomEnd() {
|
|
8483
8490
|
var e;
|
|
8484
8491
|
const a = this.handleComputeLatLngs();
|
|
8485
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
8492
|
+
(e = this.map) == null || e.getSource(this.source).setData(S.featureCollection(a));
|
|
8486
8493
|
},
|
|
8487
8494
|
handleRender() {
|
|
8488
8495
|
if (this.map) {
|
|
@@ -8531,8 +8538,8 @@ const Ls = {
|
|
|
8531
8538
|
}
|
|
8532
8539
|
}
|
|
8533
8540
|
};
|
|
8534
|
-
function
|
|
8535
|
-
return i.lngLat ? (
|
|
8541
|
+
function xs(a, e, t, r, i, s) {
|
|
8542
|
+
return i.lngLat ? (m(), u("div", {
|
|
8536
8543
|
key: 0,
|
|
8537
8544
|
class: "lat-lng-tip",
|
|
8538
8545
|
style: le({ right: i.right + "px", bottom: t.bottom })
|
|
@@ -8542,7 +8549,7 @@ function Cs(a, e, t, r, i, s) {
|
|
|
8542
8549
|
o("span", null, I(i.lngLat.lng.pretty), 1)
|
|
8543
8550
|
], 4)) : J("", !0);
|
|
8544
8551
|
}
|
|
8545
|
-
const pt = /* @__PURE__ */ U(
|
|
8552
|
+
const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-ad66a24c"]]), _s = {
|
|
8546
8553
|
name: "IdmMeasure",
|
|
8547
8554
|
props: {
|
|
8548
8555
|
map: {
|
|
@@ -8577,7 +8584,7 @@ const pt = /* @__PURE__ */ U(Ls, [["render", Cs], ["__scopeId", "data-v-ad66a24c
|
|
|
8577
8584
|
else {
|
|
8578
8585
|
(a = this.map) == null || a.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (t = this.map) == null || t.off("dblclick", this.handleDblClick), this.map && (this.map.getCanvas().style.cursor = "grab");
|
|
8579
8586
|
let r = this.geojson.find((i) => !i.closed);
|
|
8580
|
-
r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r =
|
|
8587
|
+
r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(r);
|
|
8581
8588
|
}
|
|
8582
8589
|
},
|
|
8583
8590
|
immediate: !0
|
|
@@ -8669,8 +8676,8 @@ const pt = /* @__PURE__ */ U(Ls, [["render", Cs], ["__scopeId", "data-v-ad66a24c
|
|
|
8669
8676
|
p.features = p.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== c[1]), this.handlePointUpdate(p);
|
|
8670
8677
|
} else if (e !== "marker-label" && this.show) {
|
|
8671
8678
|
let c = this.geojson.at(-1);
|
|
8672
|
-
c || (c =
|
|
8673
|
-
const p =
|
|
8679
|
+
c || (c = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((h) => h.geometry.type === "Point");
|
|
8680
|
+
const p = S.feature(
|
|
8674
8681
|
{
|
|
8675
8682
|
type: "Point",
|
|
8676
8683
|
coordinates: [a.lngLat.lng, a.lngLat.lat]
|
|
@@ -8693,7 +8700,7 @@ const pt = /* @__PURE__ */ U(Ls, [["render", Cs], ["__scopeId", "data-v-ad66a24c
|
|
|
8693
8700
|
t = se.roundPrecision(t + h, 2);
|
|
8694
8701
|
let A;
|
|
8695
8702
|
l.mode === "RL" ? A = se.convertToMonotonicLng([c, p]) : A = se.convertToMonotonicLng(Re.interpolateCoordinates(c, p, 200));
|
|
8696
|
-
const v =
|
|
8703
|
+
const v = S.lineString(A.map((E) => [E.lng, E.lat]));
|
|
8697
8704
|
v.properties.dist = h, v.properties.bearing = d, v.properties.total = t, r.push(v);
|
|
8698
8705
|
}
|
|
8699
8706
|
e.push(...r), a.total = t;
|
|
@@ -8701,14 +8708,14 @@ const pt = /* @__PURE__ */ U(Ls, [["render", Cs], ["__scopeId", "data-v-ad66a24c
|
|
|
8701
8708
|
return this.handleRender(a), a;
|
|
8702
8709
|
},
|
|
8703
8710
|
handleTmpPointUpdate(a, e, t, r) {
|
|
8704
|
-
const i =
|
|
8711
|
+
const i = S.featureCollection([]);
|
|
8705
8712
|
let s, n;
|
|
8706
8713
|
if (e) {
|
|
8707
8714
|
const c = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
|
|
8708
8715
|
s = Re.calculateDistance(p, h, c.mode === "RL", 1), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
|
|
8709
8716
|
let d;
|
|
8710
8717
|
c.mode === "RL" ? d = se.convertToMonotonicLng([p, h]) : d = se.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
|
|
8711
|
-
const A =
|
|
8718
|
+
const A = S.lineString(d.map((v) => [v.lng, v.lat]));
|
|
8712
8719
|
A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
|
|
8713
8720
|
}
|
|
8714
8721
|
if (r) {
|
|
@@ -8716,7 +8723,7 @@ const pt = /* @__PURE__ */ U(Ls, [["render", Cs], ["__scopeId", "data-v-ad66a24c
|
|
|
8716
8723
|
s = Re.calculateDistance(p, h, c.mode === "RL", 1), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
|
|
8717
8724
|
let d;
|
|
8718
8725
|
c.mode === "RL" ? d = se.convertToMonotonicLng([p, h]) : d = se.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
|
|
8719
|
-
const A =
|
|
8726
|
+
const A = S.lineString(d.map((v) => [v.lng, v.lat]));
|
|
8720
8727
|
A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
|
|
8721
8728
|
}
|
|
8722
8729
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
@@ -8767,14 +8774,14 @@ const pt = /* @__PURE__ */ U(Ls, [["render", Cs], ["__scopeId", "data-v-ad66a24c
|
|
|
8767
8774
|
handleMove(a) {
|
|
8768
8775
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
8769
8776
|
let e = this.geojson.at(-1);
|
|
8770
|
-
e || (e =
|
|
8777
|
+
e || (e = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
8771
8778
|
const t = e.features.filter((r) => r.geometry.type === "Point");
|
|
8772
8779
|
t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
|
|
8773
8780
|
},
|
|
8774
8781
|
handleDblClick(a) {
|
|
8775
8782
|
a.preventDefault();
|
|
8776
8783
|
let e = this.geojson.at(-1);
|
|
8777
|
-
e.closed = !0, this.handleRender(e), e =
|
|
8784
|
+
e.closed = !0, this.handleRender(e), e = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
|
|
8778
8785
|
},
|
|
8779
8786
|
handleRender(a) {
|
|
8780
8787
|
var e;
|
|
@@ -8837,11 +8844,11 @@ const pt = /* @__PURE__ */ U(Ls, [["render", Cs], ["__scopeId", "data-v-ad66a24c
|
|
|
8837
8844
|
}
|
|
8838
8845
|
}
|
|
8839
8846
|
};
|
|
8840
|
-
function
|
|
8841
|
-
return
|
|
8847
|
+
function Bs(a, e, t, r, i, s) {
|
|
8848
|
+
return m(), u("div");
|
|
8842
8849
|
}
|
|
8843
|
-
const
|
|
8844
|
-
const
|
|
8850
|
+
const Is = /* @__PURE__ */ U(_s, [["render", Bs]]);
|
|
8851
|
+
const Es = {
|
|
8845
8852
|
name: "IdmENC",
|
|
8846
8853
|
props: {
|
|
8847
8854
|
map: {
|
|
@@ -8896,15 +8903,15 @@ const Is = {
|
|
|
8896
8903
|
this.vendor = this.permission & Ze.LEVEL.Supper ? "hi" : "i4";
|
|
8897
8904
|
},
|
|
8898
8905
|
methods: {}
|
|
8899
|
-
},
|
|
8900
|
-
function
|
|
8906
|
+
}, ks = { key: 0 }, Ds = { class: "bar-item" };
|
|
8907
|
+
function zs(a, e, t, r, i, s) {
|
|
8901
8908
|
const n = R("ElTooltip");
|
|
8902
|
-
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (
|
|
8909
|
+
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (m(), u("div", ks, [
|
|
8903
8910
|
o("div", {
|
|
8904
8911
|
class: "menu-bar-box",
|
|
8905
8912
|
style: le({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
8906
8913
|
}, [
|
|
8907
|
-
o("div",
|
|
8914
|
+
o("div", Ds, [
|
|
8908
8915
|
H(n, {
|
|
8909
8916
|
placement: "left",
|
|
8910
8917
|
effect: "light",
|
|
@@ -8913,7 +8920,7 @@ function Ds(a, e, t, r, i, s) {
|
|
|
8913
8920
|
}, {
|
|
8914
8921
|
default: Ie(() => [
|
|
8915
8922
|
o("div", {
|
|
8916
|
-
class:
|
|
8923
|
+
class: Z(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
8917
8924
|
onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
|
|
8918
8925
|
}, e[2] || (e[2] = [
|
|
8919
8926
|
o("span", { class: "iconfont" }, "HI", -1)
|
|
@@ -8929,7 +8936,7 @@ function Ds(a, e, t, r, i, s) {
|
|
|
8929
8936
|
}, {
|
|
8930
8937
|
default: Ie(() => [
|
|
8931
8938
|
o("div", {
|
|
8932
|
-
class:
|
|
8939
|
+
class: Z(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
8933
8940
|
onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
|
|
8934
8941
|
}, e[3] || (e[3] = [
|
|
8935
8942
|
o("span", { class: "iconfont" }, "I4", -1)
|
|
@@ -8941,7 +8948,7 @@ function Ds(a, e, t, r, i, s) {
|
|
|
8941
8948
|
], 4)
|
|
8942
8949
|
])) : J("", !0);
|
|
8943
8950
|
}
|
|
8944
|
-
const
|
|
8951
|
+
const Ps = /* @__PURE__ */ U(Es, [["render", zs], ["__scopeId", "data-v-8ff97b39"]]), Ms = {
|
|
8945
8952
|
name: "IdmWorld12nm",
|
|
8946
8953
|
props: {
|
|
8947
8954
|
map: {
|
|
@@ -9000,11 +9007,11 @@ const zs = /* @__PURE__ */ U(Is, [["render", Ds], ["__scopeId", "data-v-8ff97b39
|
|
|
9000
9007
|
}
|
|
9001
9008
|
}
|
|
9002
9009
|
};
|
|
9003
|
-
function
|
|
9010
|
+
function Ss(a, e, t, r, i, s) {
|
|
9004
9011
|
return null;
|
|
9005
9012
|
}
|
|
9006
|
-
const
|
|
9007
|
-
const
|
|
9013
|
+
const Ts = /* @__PURE__ */ U(Ms, [["render", Ss]]);
|
|
9014
|
+
const Qs = {
|
|
9008
9015
|
name: "IdmWorldMarine",
|
|
9009
9016
|
props: {
|
|
9010
9017
|
map: {
|
|
@@ -9044,10 +9051,10 @@ const Ts = {
|
|
|
9044
9051
|
}
|
|
9045
9052
|
}
|
|
9046
9053
|
};
|
|
9047
|
-
function
|
|
9054
|
+
function Hs(a, e, t, r, i, s) {
|
|
9048
9055
|
return null;
|
|
9049
9056
|
}
|
|
9050
|
-
const
|
|
9057
|
+
const Ns = /* @__PURE__ */ U(Qs, [["render", Hs]]), Fs = {
|
|
9051
9058
|
name: "IdmChinaRoute",
|
|
9052
9059
|
props: {
|
|
9053
9060
|
map: {
|
|
@@ -9085,11 +9092,11 @@ const Hs = /* @__PURE__ */ U(Ts, [["render", Qs]]), Ns = {
|
|
|
9085
9092
|
}
|
|
9086
9093
|
}
|
|
9087
9094
|
};
|
|
9088
|
-
function
|
|
9095
|
+
function Os(a, e, t, r, i, s) {
|
|
9089
9096
|
return null;
|
|
9090
9097
|
}
|
|
9091
|
-
const
|
|
9092
|
-
const
|
|
9098
|
+
const Rs = /* @__PURE__ */ U(Fs, [["render", Os]]);
|
|
9099
|
+
const js = {
|
|
9093
9100
|
name: "IdmGLV2",
|
|
9094
9101
|
components: {
|
|
9095
9102
|
IdmGlLayer: ia,
|
|
@@ -9108,23 +9115,23 @@ const Rs = {
|
|
|
9108
9115
|
IdmVisibility: mi,
|
|
9109
9116
|
IdmWaterTemp: fi,
|
|
9110
9117
|
IdmTemp: bi,
|
|
9111
|
-
IdmWarZone:
|
|
9112
|
-
IdmGmdssArea:
|
|
9113
|
-
IdmEcaZone:
|
|
9114
|
-
IdmAlertZone:
|
|
9115
|
-
IdmPort:
|
|
9116
|
-
IdmLoadLine:
|
|
9117
|
-
IdmTimezone:
|
|
9118
|
-
IdmVRA:
|
|
9119
|
-
IdmSpecialArea:
|
|
9120
|
-
IdmTerminator:
|
|
9118
|
+
IdmWarZone: Or,
|
|
9119
|
+
IdmGmdssArea: Wr,
|
|
9120
|
+
IdmEcaZone: Yr,
|
|
9121
|
+
IdmAlertZone: Vr,
|
|
9122
|
+
IdmPort: ns,
|
|
9123
|
+
IdmLoadLine: cs,
|
|
9124
|
+
IdmTimezone: ms,
|
|
9125
|
+
IdmVRA: ys,
|
|
9126
|
+
IdmSpecialArea: ws,
|
|
9127
|
+
IdmTerminator: Ls,
|
|
9121
9128
|
IdmLatLng: pt,
|
|
9122
|
-
IdmMeasure:
|
|
9123
|
-
IdmPoint:
|
|
9124
|
-
IdmENC:
|
|
9125
|
-
IdmWorld12nm:
|
|
9126
|
-
IdmWorldMarine:
|
|
9127
|
-
IdmChinaRoute:
|
|
9129
|
+
IdmMeasure: Is,
|
|
9130
|
+
IdmPoint: Hr,
|
|
9131
|
+
IdmENC: Ps,
|
|
9132
|
+
IdmWorld12nm: Ts,
|
|
9133
|
+
IdmWorldMarine: Ns,
|
|
9134
|
+
IdmChinaRoute: Rs
|
|
9128
9135
|
},
|
|
9129
9136
|
props: {
|
|
9130
9137
|
map: {
|
|
@@ -9204,11 +9211,11 @@ const Rs = {
|
|
|
9204
9211
|
},
|
|
9205
9212
|
activeWeatherLayers: {
|
|
9206
9213
|
handler() {
|
|
9207
|
-
var t, r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b,
|
|
9214
|
+
var t, r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b, g, C, y, L, T;
|
|
9208
9215
|
if (!this.map)
|
|
9209
9216
|
return !1;
|
|
9210
9217
|
const a = this.activeWeatherLayers.some((D) => D.key === "wind" && D.particle === !0 || D.key === "current" && D.particle === !0 || D.key === "ice-edge" || D.key === "ice-thickness" || D.key === "ice-cover" || D.key === "temp" || D.key === "water-temp"), e = this.activeWeatherLayers.some((D) => D.key === "visibility" || D.key === "precip3h");
|
|
9211
|
-
this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (p = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || p.setLayoutProperty("visibility", "visible"), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((v = this.viewport) == null ? void 0 : v.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((k = this.map) == null || k.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (w = this.viewport) == null ? void 0 : w.rampColorLayer))) : ((f = (_ = this.map) == null ? void 0 : _.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || f.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (
|
|
9218
|
+
this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (p = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || p.setLayoutProperty("visibility", "visible"), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((v = this.viewport) == null ? void 0 : v.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((k = this.map) == null || k.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (w = this.viewport) == null ? void 0 : w.rampColorLayer))) : ((f = (_ = this.map) == null ? void 0 : _.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || f.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (g = (b = this.map) == null ? void 0 : b.getLayer(this.enc)) == null || g.setLayoutProperty("visibility", "visible") : ((y = (C = this.map) == null ? void 0 : C.getLayer("i4")) == null || y.setLayoutProperty("visibility", "none"), (T = (L = this.map) == null ? void 0 : L.getLayer("hi")) == null || T.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
|
|
9212
9219
|
},
|
|
9213
9220
|
immediate: !0
|
|
9214
9221
|
},
|
|
@@ -9281,38 +9288,38 @@ const Rs = {
|
|
|
9281
9288
|
}
|
|
9282
9289
|
});
|
|
9283
9290
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l = b == null ? void 0 : b.data) == null ? void 0 : l.code) === 0) {
|
|
9284
|
-
const
|
|
9285
|
-
for (const L in
|
|
9291
|
+
const g = (c = b == null ? void 0 : b.data) == null ? void 0 : c.data, C = [];
|
|
9292
|
+
for (const L in g)
|
|
9286
9293
|
L !== "tropicals" && C.push(
|
|
9287
|
-
Qe.get(
|
|
9294
|
+
Qe.get(g[L], {
|
|
9288
9295
|
headers: {
|
|
9289
9296
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9290
9297
|
key: L
|
|
9291
9298
|
},
|
|
9292
|
-
responseType: /\.(jpg|png)$/.test(
|
|
9293
|
-
}).catch((
|
|
9294
|
-
console.log(`[${L}] fetch layer error: ${
|
|
9299
|
+
responseType: /\.(jpg|png)$/.test(g[L]) ? "blob" : "json"
|
|
9300
|
+
}).catch((T) => {
|
|
9301
|
+
console.log(`[${L}] fetch layer error: ${T}`);
|
|
9295
9302
|
})
|
|
9296
9303
|
);
|
|
9297
9304
|
const y = await Promise.all(C);
|
|
9298
9305
|
this.weatherLayers = {}, y.map((L) => {
|
|
9299
9306
|
var F, N, j, G;
|
|
9300
|
-
const
|
|
9301
|
-
D &&
|
|
9302
|
-
raw:
|
|
9307
|
+
const T = ((F = L == null ? void 0 : L.data) == null ? void 0 : F.data) || (L == null ? void 0 : L.data), D = (j = (N = L == null ? void 0 : L.config) == null ? void 0 : N.headers) == null ? void 0 : j.key;
|
|
9308
|
+
D && T && (this.weatherLayers[D] = {
|
|
9309
|
+
raw: T,
|
|
9303
9310
|
type: ((G = L == null ? void 0 : L.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
|
|
9304
9311
|
etime: b.data.etime
|
|
9305
9312
|
});
|
|
9306
|
-
}),
|
|
9313
|
+
}), g.tropicals && Qe.get(g.tropicals, {
|
|
9307
9314
|
headers: {
|
|
9308
9315
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9309
9316
|
key: "tropicals"
|
|
9310
9317
|
}
|
|
9311
9318
|
}).then((L) => {
|
|
9312
9319
|
var F, N, j;
|
|
9313
|
-
const
|
|
9320
|
+
const T = ct.convert2Geojson(((F = L == null ? void 0 : L.data) == null ? void 0 : F.data) || (L == null ? void 0 : L.data)), D = (j = (N = L == null ? void 0 : L.config) == null ? void 0 : N.headers) == null ? void 0 : j.key;
|
|
9314
9321
|
this.weatherLayers[D] = {
|
|
9315
|
-
data:
|
|
9322
|
+
data: T,
|
|
9316
9323
|
active: !0,
|
|
9317
9324
|
cached: !1,
|
|
9318
9325
|
type: "json",
|
|
@@ -9322,19 +9329,19 @@ const Rs = {
|
|
|
9322
9329
|
});
|
|
9323
9330
|
}
|
|
9324
9331
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather layers elapsed: ", r, ", total: ", t += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
9325
|
-
const
|
|
9332
|
+
const g = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, C = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
|
|
9326
9333
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
9327
9334
|
type: "json",
|
|
9328
|
-
direction:
|
|
9335
|
+
direction: g,
|
|
9329
9336
|
height: { raw: C },
|
|
9330
9337
|
etime: b.data.etime
|
|
9331
9338
|
};
|
|
9332
9339
|
}
|
|
9333
9340
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
9334
|
-
const
|
|
9341
|
+
const g = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, C = (A = this.weatherLayers["current-speed"]) == null ? void 0 : A.raw;
|
|
9335
9342
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
9336
9343
|
type: "json",
|
|
9337
|
-
direction:
|
|
9344
|
+
direction: g,
|
|
9338
9345
|
speed: { raw: C },
|
|
9339
9346
|
etime: b.data.etime
|
|
9340
9347
|
};
|
|
@@ -9372,8 +9379,8 @@ const Rs = {
|
|
|
9372
9379
|
);
|
|
9373
9380
|
const E = await Promise.all(v);
|
|
9374
9381
|
this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: p }, E.map((w) => {
|
|
9375
|
-
var f, b,
|
|
9376
|
-
const k = ((f = w == null ? void 0 : w.data) == null ? void 0 : f.data) || (w == null ? void 0 : w.data), _ = (
|
|
9382
|
+
var f, b, g;
|
|
9383
|
+
const k = ((f = w == null ? void 0 : w.data) == null ? void 0 : f.data) || (w == null ? void 0 : w.data), _ = (g = (b = w == null ? void 0 : w.config) == null ? void 0 : b.headers) == null ? void 0 : g.key;
|
|
9377
9384
|
this.otherLayers[_] = k;
|
|
9378
9385
|
});
|
|
9379
9386
|
}
|
|
@@ -9395,8 +9402,8 @@ const Rs = {
|
|
|
9395
9402
|
})
|
|
9396
9403
|
);
|
|
9397
9404
|
(await Promise.all(v)).map((w) => {
|
|
9398
|
-
var f, b,
|
|
9399
|
-
const k = ((f = w == null ? void 0 : w.data) == null ? void 0 : f.data) || (w == null ? void 0 : w.data), _ = (
|
|
9405
|
+
var f, b, g;
|
|
9406
|
+
const k = ((f = w == null ? void 0 : w.data) == null ? void 0 : f.data) || (w == null ? void 0 : w.data), _ = (g = (b = w == null ? void 0 : w.config) == null ? void 0 : b.headers) == null ? void 0 : g.key;
|
|
9400
9407
|
this.otherLayers[_] = k;
|
|
9401
9408
|
});
|
|
9402
9409
|
}
|
|
@@ -9463,40 +9470,40 @@ const Rs = {
|
|
|
9463
9470
|
if (w === "swell") {
|
|
9464
9471
|
k = !0;
|
|
9465
9472
|
const f = ((h = this.weatherLayers[w]) == null ? void 0 : h.direction) || {};
|
|
9466
|
-
for (const
|
|
9467
|
-
if (
|
|
9468
|
-
const C = f[
|
|
9473
|
+
for (const g in f)
|
|
9474
|
+
if (g > l && g < c && (!(i <= this.zoom) || g % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9475
|
+
const C = f[g].lng;
|
|
9469
9476
|
s > n ? C.forEach((y, L) => {
|
|
9470
|
-
var
|
|
9477
|
+
var T, D, F, N, j, G;
|
|
9471
9478
|
if (i < 2) {
|
|
9472
9479
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9473
|
-
const W =
|
|
9474
|
-
val: ((
|
|
9475
|
-
spd: (F = f[
|
|
9480
|
+
const W = S.point([y, g], {
|
|
9481
|
+
val: ((T = f[g].val) == null ? void 0 : T[L]) || ((D = f[g].dir) == null ? void 0 : D[L]),
|
|
9482
|
+
spd: (F = f[g].spd) == null ? void 0 : F[L]
|
|
9476
9483
|
});
|
|
9477
9484
|
_.push(W);
|
|
9478
9485
|
}
|
|
9479
9486
|
} else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9480
|
-
const W =
|
|
9481
|
-
val: ((N = f[
|
|
9482
|
-
spd: (G = f[
|
|
9487
|
+
const W = S.point([y, g], {
|
|
9488
|
+
val: ((N = f[g].val) == null ? void 0 : N[L]) || ((j = f[g].dir) == null ? void 0 : j[L]),
|
|
9489
|
+
spd: (G = f[g].spd) == null ? void 0 : G[L]
|
|
9483
9490
|
});
|
|
9484
9491
|
_.push(W);
|
|
9485
9492
|
}
|
|
9486
9493
|
}) : C.forEach((y, L) => {
|
|
9487
|
-
var
|
|
9494
|
+
var T, D, F, N, j, G;
|
|
9488
9495
|
if (s < 2) {
|
|
9489
9496
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9490
|
-
const W =
|
|
9491
|
-
val: ((
|
|
9492
|
-
spd: (F = f[
|
|
9497
|
+
const W = S.point([y, g], {
|
|
9498
|
+
val: ((T = f[g].val) == null ? void 0 : T[L]) || ((D = f[g].dir) == null ? void 0 : D[L]),
|
|
9499
|
+
spd: (F = f[g].spd) == null ? void 0 : F[L]
|
|
9493
9500
|
});
|
|
9494
9501
|
_.push(W);
|
|
9495
9502
|
}
|
|
9496
9503
|
} else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9497
|
-
const W =
|
|
9498
|
-
val: ((N = f[
|
|
9499
|
-
spd: (G = f[
|
|
9504
|
+
const W = S.point([y, g], {
|
|
9505
|
+
val: ((N = f[g].val) == null ? void 0 : N[L]) || ((j = f[g].dir) == null ? void 0 : j[L]),
|
|
9506
|
+
spd: (G = f[g].spd) == null ? void 0 : G[L]
|
|
9500
9507
|
});
|
|
9501
9508
|
_.push(W);
|
|
9502
9509
|
}
|
|
@@ -9506,61 +9513,61 @@ const Rs = {
|
|
|
9506
9513
|
const b = this.weatherLayers[w].height;
|
|
9507
9514
|
if (b) {
|
|
9508
9515
|
if (!b.data) {
|
|
9509
|
-
const
|
|
9516
|
+
const g = [];
|
|
9510
9517
|
for (const C in (d = b.raw) == null ? void 0 : d.LineString) {
|
|
9511
9518
|
const y = b.raw.LineString[C];
|
|
9512
9519
|
for (const L of y)
|
|
9513
|
-
|
|
9514
|
-
|
|
9520
|
+
g.push(
|
|
9521
|
+
S.lineString(L, {
|
|
9515
9522
|
val: Number(C)
|
|
9516
9523
|
})
|
|
9517
9524
|
);
|
|
9518
|
-
b.data =
|
|
9525
|
+
b.data = S.featureCollection(g);
|
|
9519
9526
|
}
|
|
9520
9527
|
}
|
|
9521
9528
|
if (b.data) {
|
|
9522
|
-
const
|
|
9523
|
-
_ = _.concat(
|
|
9529
|
+
const g = this.handleBboxClip(b.data, r);
|
|
9530
|
+
_ = _.concat(g);
|
|
9524
9531
|
}
|
|
9525
9532
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
|
|
9526
9533
|
}
|
|
9527
9534
|
} else if (w === "current" && this.showCurrentIsoband) {
|
|
9528
9535
|
k = !0;
|
|
9529
9536
|
const f = ((A = this.weatherLayers[w]) == null ? void 0 : A.direction) || {};
|
|
9530
|
-
for (const
|
|
9531
|
-
if (
|
|
9532
|
-
const C = f[
|
|
9537
|
+
for (const g in f)
|
|
9538
|
+
if (g > l && g < c && (!(i <= this.zoom) || g % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9539
|
+
const C = f[g].lng;
|
|
9533
9540
|
s > n ? C.forEach((y, L) => {
|
|
9534
|
-
var
|
|
9541
|
+
var T, D, F, N, j, G;
|
|
9535
9542
|
if (i < 2) {
|
|
9536
9543
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9537
|
-
const W =
|
|
9538
|
-
val: ((
|
|
9539
|
-
spd: (F = f[
|
|
9544
|
+
const W = S.point([y, g], {
|
|
9545
|
+
val: ((T = f[g].val) == null ? void 0 : T[L]) || ((D = f[g].dir) == null ? void 0 : D[L]),
|
|
9546
|
+
spd: (F = f[g].spd) == null ? void 0 : F[L]
|
|
9540
9547
|
});
|
|
9541
9548
|
_.push(W);
|
|
9542
9549
|
}
|
|
9543
9550
|
} else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9544
|
-
const W =
|
|
9545
|
-
val: ((N = f[
|
|
9546
|
-
spd: (G = f[
|
|
9551
|
+
const W = S.point([y, g], {
|
|
9552
|
+
val: ((N = f[g].val) == null ? void 0 : N[L]) || ((j = f[g].dir) == null ? void 0 : j[L]),
|
|
9553
|
+
spd: (G = f[g].spd) == null ? void 0 : G[L]
|
|
9547
9554
|
});
|
|
9548
9555
|
_.push(W);
|
|
9549
9556
|
}
|
|
9550
9557
|
}) : C.forEach((y, L) => {
|
|
9551
|
-
var
|
|
9558
|
+
var T, D, F, N, j, G;
|
|
9552
9559
|
if (s < 2) {
|
|
9553
9560
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9554
|
-
const W =
|
|
9555
|
-
val: ((
|
|
9556
|
-
spd: (F = f[
|
|
9561
|
+
const W = S.point([y, g], {
|
|
9562
|
+
val: ((T = f[g].val) == null ? void 0 : T[L]) || ((D = f[g].dir) == null ? void 0 : D[L]),
|
|
9563
|
+
spd: (F = f[g].spd) == null ? void 0 : F[L]
|
|
9557
9564
|
});
|
|
9558
9565
|
_.push(W);
|
|
9559
9566
|
}
|
|
9560
9567
|
} else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9561
|
-
const W =
|
|
9562
|
-
val: ((N = f[
|
|
9563
|
-
spd: (G = f[
|
|
9568
|
+
const W = S.point([y, g], {
|
|
9569
|
+
val: ((N = f[g].val) == null ? void 0 : N[L]) || ((j = f[g].dir) == null ? void 0 : j[L]),
|
|
9570
|
+
spd: (G = f[g].spd) == null ? void 0 : G[L]
|
|
9564
9571
|
});
|
|
9565
9572
|
_.push(W);
|
|
9566
9573
|
}
|
|
@@ -9573,53 +9580,53 @@ const Rs = {
|
|
|
9573
9580
|
const C = [];
|
|
9574
9581
|
for (const y in (v = b.raw) == null ? void 0 : v.Polygon) {
|
|
9575
9582
|
const L = b.raw.Polygon[y];
|
|
9576
|
-
for (const
|
|
9583
|
+
for (const T of L)
|
|
9577
9584
|
C.push(
|
|
9578
|
-
|
|
9585
|
+
S.polygon(T, {
|
|
9579
9586
|
val: Number(y)
|
|
9580
9587
|
})
|
|
9581
9588
|
);
|
|
9582
9589
|
}
|
|
9583
|
-
b.data =
|
|
9590
|
+
b.data = S.featureCollection(C);
|
|
9584
9591
|
}
|
|
9585
|
-
const
|
|
9586
|
-
_ = _.concat(
|
|
9592
|
+
const g = i < this.zoom ? b.data.features.filter((C) => C.properties.val > 0.5) : b.data.features;
|
|
9593
|
+
_ = _.concat(g), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
|
|
9587
9594
|
}
|
|
9588
9595
|
} else if (w === "wind" && this.showWindFeather) {
|
|
9589
9596
|
k = !0;
|
|
9590
9597
|
const f = this.weatherLayers.wind.raw;
|
|
9591
9598
|
for (const b in f)
|
|
9592
9599
|
if (b > l && b < c && (!(i <= this.zoom) || b % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9593
|
-
const
|
|
9594
|
-
s > n ?
|
|
9595
|
-
var L,
|
|
9600
|
+
const g = f[b].lng;
|
|
9601
|
+
s > n ? g.forEach((C, y) => {
|
|
9602
|
+
var L, T, D, F;
|
|
9596
9603
|
if (i < 2) {
|
|
9597
9604
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9598
|
-
const N =
|
|
9599
|
-
dir: ((L = f[b].val) == null ? void 0 : L[y]) || ((
|
|
9605
|
+
const N = S.point([C, b], {
|
|
9606
|
+
dir: ((L = f[b].val) == null ? void 0 : L[y]) || ((T = f[b].dir) == null ? void 0 : T[y]),
|
|
9600
9607
|
spd: f[b].spd[y]
|
|
9601
9608
|
});
|
|
9602
9609
|
_.push(N);
|
|
9603
9610
|
}
|
|
9604
9611
|
} else if ((C >= s && C <= 180 || C >= -180 && C <= n) && (!(i <= this.zoom) || C % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9605
|
-
const N =
|
|
9612
|
+
const N = S.point([C, b], {
|
|
9606
9613
|
dir: ((D = f[b].val) == null ? void 0 : D[y]) || ((F = f[b].dir) == null ? void 0 : F[y]),
|
|
9607
9614
|
spd: f[b].spd[y]
|
|
9608
9615
|
});
|
|
9609
9616
|
_.push(N);
|
|
9610
9617
|
}
|
|
9611
|
-
}) :
|
|
9612
|
-
var L,
|
|
9618
|
+
}) : g.forEach((C, y) => {
|
|
9619
|
+
var L, T, D, F;
|
|
9613
9620
|
if (i < 2) {
|
|
9614
9621
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
9615
|
-
const N =
|
|
9616
|
-
dir: ((L = f[b].val) == null ? void 0 : L[y]) || ((
|
|
9622
|
+
const N = S.point([C, b], {
|
|
9623
|
+
dir: ((L = f[b].val) == null ? void 0 : L[y]) || ((T = f[b].dir) == null ? void 0 : T[y]),
|
|
9617
9624
|
spd: f[b].spd[y]
|
|
9618
9625
|
});
|
|
9619
9626
|
_.push(N);
|
|
9620
9627
|
}
|
|
9621
9628
|
} else if (C >= s && C <= n && (!(i <= this.zoom) || C % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9622
|
-
const N =
|
|
9629
|
+
const N = S.point([C, b], {
|
|
9623
9630
|
dir: ((D = f[b].val) == null ? void 0 : D[y]) || ((F = f[b].dir) == null ? void 0 : F[y]),
|
|
9624
9631
|
spd: f[b].spd[y]
|
|
9625
9632
|
});
|
|
@@ -9636,20 +9643,20 @@ const Rs = {
|
|
|
9636
9643
|
const f = this.weatherLayers[w].raw;
|
|
9637
9644
|
if (f) {
|
|
9638
9645
|
const b = [];
|
|
9639
|
-
for (const
|
|
9640
|
-
const C = f.Polygon[
|
|
9646
|
+
for (const g in f.Polygon) {
|
|
9647
|
+
const C = f.Polygon[g];
|
|
9641
9648
|
for (const y of C)
|
|
9642
9649
|
b.push(
|
|
9643
|
-
|
|
9644
|
-
val: Number(
|
|
9650
|
+
S.polygon(y, {
|
|
9651
|
+
val: Number(g)
|
|
9645
9652
|
})
|
|
9646
9653
|
);
|
|
9647
9654
|
}
|
|
9648
|
-
for (const
|
|
9649
|
-
const C = f.Point[
|
|
9655
|
+
for (const g in f.Point) {
|
|
9656
|
+
const C = f.Point[g];
|
|
9650
9657
|
for (let y = 0; y < ((E = C.lng) == null ? void 0 : E.length); y++)
|
|
9651
9658
|
b.push(
|
|
9652
|
-
|
|
9659
|
+
S.point([C.lng[y], g], {
|
|
9653
9660
|
val: Number(C.val[y])
|
|
9654
9661
|
})
|
|
9655
9662
|
);
|
|
@@ -9666,21 +9673,21 @@ const Rs = {
|
|
|
9666
9673
|
const f = this.weatherLayers[w].raw;
|
|
9667
9674
|
if (f) {
|
|
9668
9675
|
const b = [];
|
|
9669
|
-
for (const
|
|
9670
|
-
const C = f.LineString[
|
|
9676
|
+
for (const g in f.LineString) {
|
|
9677
|
+
const C = f.LineString[g];
|
|
9671
9678
|
for (const y of C)
|
|
9672
9679
|
b.push(
|
|
9673
|
-
|
|
9674
|
-
val: Number(
|
|
9680
|
+
S.lineString(y, {
|
|
9681
|
+
val: Number(g)
|
|
9675
9682
|
})
|
|
9676
9683
|
);
|
|
9677
9684
|
}
|
|
9678
|
-
for (const
|
|
9679
|
-
f.Point[
|
|
9685
|
+
for (const g in f.Point)
|
|
9686
|
+
f.Point[g].lng.forEach((C, y) => {
|
|
9680
9687
|
C = se.convertToStdLng(C), b.push(
|
|
9681
|
-
|
|
9682
|
-
val: f.Point[
|
|
9683
|
-
type: f.Point[
|
|
9688
|
+
S.point([C, g], {
|
|
9689
|
+
val: f.Point[g].val[y],
|
|
9690
|
+
type: f.Point[g].type[y]
|
|
9684
9691
|
})
|
|
9685
9692
|
);
|
|
9686
9693
|
});
|
|
@@ -9689,7 +9696,7 @@ const Rs = {
|
|
|
9689
9696
|
}
|
|
9690
9697
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
9691
9698
|
}
|
|
9692
|
-
_.length && (this.weatherLayers[w].data =
|
|
9699
|
+
_.length && (this.weatherLayers[w].data = S.featureCollection(_)), k && (this.weatherLayers[w].version = Math.random() + 1);
|
|
9693
9700
|
}
|
|
9694
9701
|
}
|
|
9695
9702
|
},
|
|
@@ -9704,10 +9711,10 @@ const Rs = {
|
|
|
9704
9711
|
return a.features.forEach((s) => {
|
|
9705
9712
|
if (s.geometry.type !== "Point")
|
|
9706
9713
|
if (r > i) {
|
|
9707
|
-
let n = [r, e._sw.lat, 180, e._ne.lat], l =
|
|
9708
|
-
l.geometry.coordinates.length && t.push(l), n = [-180, e._sw.lat, i, e._ne.lat], l =
|
|
9714
|
+
let n = [r, e._sw.lat, 180, e._ne.lat], l = S.bboxClip(s, n);
|
|
9715
|
+
l.geometry.coordinates.length && t.push(l), n = [-180, e._sw.lat, i, e._ne.lat], l = S.bboxClip(s, n), l.geometry.coordinates.length && t.push(l);
|
|
9709
9716
|
} else {
|
|
9710
|
-
const n = [r, e._sw.lat, i, e._ne.lat], l =
|
|
9717
|
+
const n = [r, e._sw.lat, i, e._ne.lat], l = S.bboxClip(s, n);
|
|
9711
9718
|
l.geometry.coordinates.length && t.push(l);
|
|
9712
9719
|
}
|
|
9713
9720
|
else
|
|
@@ -9760,8 +9767,8 @@ const Rs = {
|
|
|
9760
9767
|
}
|
|
9761
9768
|
},
|
|
9762
9769
|
handle3dToggle(a) {
|
|
9763
|
-
var e, t, r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b,
|
|
9764
|
-
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("move", this.handleDraWeather4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("move", this.handleDraWeather4Image), this.handleDraWeather4Image(), (A = this.map) != null && A.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((v = this.map) != null && v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((w = this.map) == null || w.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((k = this.viewport) == null ? void 0 : k.particleLayer) && ((f = this.map) != null && f.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((
|
|
9770
|
+
var e, t, r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b, g;
|
|
9771
|
+
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("move", this.handleDraWeather4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("move", this.handleDraWeather4Image), this.handleDraWeather4Image(), (A = this.map) != null && A.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((v = this.map) != null && v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((w = this.map) == null || w.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((k = this.viewport) == null ? void 0 : k.particleLayer) && ((f = this.map) != null && f.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((g = this.map) == null || g.moveLayer((b = this.viewport) == null ? void 0 : b.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
9765
9772
|
},
|
|
9766
9773
|
handleParticle(a) {
|
|
9767
9774
|
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
|
|
@@ -9779,15 +9786,15 @@ const Rs = {
|
|
|
9779
9786
|
this.$emit("toggleVersion", Math.random());
|
|
9780
9787
|
}
|
|
9781
9788
|
}
|
|
9782
|
-
},
|
|
9789
|
+
}, Ws = {
|
|
9783
9790
|
key: 0,
|
|
9784
9791
|
ref: "mapGlHome",
|
|
9785
9792
|
className: "map-gl-home"
|
|
9786
9793
|
};
|
|
9787
|
-
function
|
|
9794
|
+
function Gs(a, e, t, r, i, s) {
|
|
9788
9795
|
var pe, ye, Le, Ce, xe, we, _e, B, ze, ve, Pe, Ee, He, ke, re, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue;
|
|
9789
|
-
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), p = R("IdmWorldMarine"), h = R("IdmChinaRoute"), d = R("IdmSigWave"), A = R("IdmSwell"), v = R("IdmPrmsl"), E = R("IdmIceEdge"), w = R("IdmIceCover"), k = R("IdmIceThickness"), _ = R("IdmTropicals"), f = R("IdmCurrents"), b = R("IdmCurrentParticle"),
|
|
9790
|
-
return t.map ? (
|
|
9796
|
+
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), p = R("IdmWorldMarine"), h = R("IdmChinaRoute"), d = R("IdmSigWave"), A = R("IdmSwell"), v = R("IdmPrmsl"), E = R("IdmIceEdge"), w = R("IdmIceCover"), k = R("IdmIceThickness"), _ = R("IdmTropicals"), f = R("IdmCurrents"), b = R("IdmCurrentParticle"), g = R("IdmWindBarb"), C = R("IdmWindParticle"), y = R("IdmPrecip3h"), L = R("IdmVisibility"), T = R("IdmWaterTemp"), D = R("IdmTemp"), F = R("IdmWarZone"), N = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), me = R("IdmLoadLine"), he = R("IdmTimezone"), ue = R("IdmVRA"), fe = R("IdmSpecialArea"), ge = R("IdmTerminator"), Y = R("IdmLatLng"), ae = R("IdmMeasure"), Ae = R("IdmPoint");
|
|
9797
|
+
return t.map ? (m(), u("div", Ws, [
|
|
9791
9798
|
H(n, X({
|
|
9792
9799
|
ref: "layer",
|
|
9793
9800
|
map: t.map,
|
|
@@ -9908,7 +9915,7 @@ function Ws(a, e, t, r, i, s) {
|
|
|
9908
9915
|
"before-layer": t.beforeLayer,
|
|
9909
9916
|
"toggle-version": t.toggleVersion
|
|
9910
9917
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9911
|
-
H(
|
|
9918
|
+
H(g, X({
|
|
9912
9919
|
ref: "windBarb",
|
|
9913
9920
|
map: t.map,
|
|
9914
9921
|
"map-projection": i.mapProjection,
|
|
@@ -9942,7 +9949,7 @@ function Ws(a, e, t, r, i, s) {
|
|
|
9942
9949
|
"before-layer": t.beforeLayer,
|
|
9943
9950
|
"toggle-version": t.toggleVersion
|
|
9944
9951
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9945
|
-
H(
|
|
9952
|
+
H(T, X({
|
|
9946
9953
|
viewport: i.viewport,
|
|
9947
9954
|
factor: (K = i.weatherLayers) == null ? void 0 : K["water-temp"],
|
|
9948
9955
|
"before-layer": t.beforeLayer,
|
|
@@ -10025,15 +10032,15 @@ function Ws(a, e, t, r, i, s) {
|
|
|
10025
10032
|
}, a.$attrs), null, 16, ["map", "show", "meteo", "ts", "token", "gateway", "forecast-model"])
|
|
10026
10033
|
], 512)) : J("", !0);
|
|
10027
10034
|
}
|
|
10028
|
-
const
|
|
10035
|
+
const Us = /* @__PURE__ */ U(js, [["render", Gs]]), ao = {
|
|
10029
10036
|
install(a) {
|
|
10030
|
-
a.component("MapboxGL",
|
|
10037
|
+
a.component("MapboxGL", Us), a.component("TropicalGL", dt), a.component("LatLngGL", pt);
|
|
10031
10038
|
}
|
|
10032
10039
|
};
|
|
10033
10040
|
export {
|
|
10034
10041
|
pt as LatLngGL,
|
|
10035
|
-
|
|
10036
|
-
|
|
10042
|
+
Us as MapboxGL,
|
|
10043
|
+
ao as MapboxGLPlugin,
|
|
10037
10044
|
na as MapboxHelper,
|
|
10038
10045
|
be as ParticleSchema,
|
|
10039
10046
|
dt as TropicalGL,
|