@idmwx/idmui-gl3 6.1.4 → 6.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -26
- package/dist/index.js +442 -423
- package/dist/index.umd.cjs +4 -4
- package/dist/mapbox/src/components/weather/tropical.vue.d.ts +5 -0
- 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 }])
|
|
@@ -3276,7 +3276,7 @@ function ca(a, e, t, r, i, s) {
|
|
|
3276
3276
|
]), 4)
|
|
3277
3277
|
])) : J("", !0);
|
|
3278
3278
|
}
|
|
3279
|
-
const da = /* @__PURE__ */ U(la, [["render", ca], ["__scopeId", "data-v-
|
|
3279
|
+
const da = /* @__PURE__ */ U(la, [["render", ca], ["__scopeId", "data-v-24e5434b"]]);
|
|
3280
3280
|
const pa = {
|
|
3281
3281
|
name: "IdmCurrent",
|
|
3282
3282
|
props: {
|
|
@@ -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 }])
|
|
@@ -3608,7 +3608,7 @@ function fa(a, e, t, r, i, s) {
|
|
|
3608
3608
|
]), 4)
|
|
3609
3609
|
])) : J("", !0);
|
|
3610
3610
|
}
|
|
3611
|
-
const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-
|
|
3611
|
+
const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-c2962e63"]]), wa = {
|
|
3612
3612
|
name: "IdmSigWave",
|
|
3613
3613
|
props: {
|
|
3614
3614
|
map: {
|
|
@@ -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 }])
|
|
@@ -4160,7 +4160,7 @@ function Da(a, e, t, r, i, s) {
|
|
|
4160
4160
|
]), 4)
|
|
4161
4161
|
])) : J("", !0);
|
|
4162
4162
|
}
|
|
4163
|
-
const za = /* @__PURE__ */ U(Ea, [["render", Da], ["__scopeId", "data-v-
|
|
4163
|
+
const za = /* @__PURE__ */ U(Ea, [["render", Da], ["__scopeId", "data-v-14ae1a6c"]]);
|
|
4164
4164
|
const Pa = {
|
|
4165
4165
|
name: "IdmCover",
|
|
4166
4166
|
props: {
|
|
@@ -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 }])
|
|
@@ -4270,7 +4270,7 @@ function Sa(a, e, t, r, i, s) {
|
|
|
4270
4270
|
]), 4)
|
|
4271
4271
|
])) : J("", !0);
|
|
4272
4272
|
}
|
|
4273
|
-
const Ta = /* @__PURE__ */ U(Pa, [["render", Sa], ["__scopeId", "data-v-
|
|
4273
|
+
const Ta = /* @__PURE__ */ U(Pa, [["render", Sa], ["__scopeId", "data-v-f21edb81"]]);
|
|
4274
4274
|
const Qa = {
|
|
4275
4275
|
name: "IdmThickness",
|
|
4276
4276
|
props: {
|
|
@@ -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 }])
|
|
@@ -4389,7 +4389,7 @@ function Na(a, e, t, r, i, s) {
|
|
|
4389
4389
|
]), 4)
|
|
4390
4390
|
])) : J("", !0);
|
|
4391
4391
|
}
|
|
4392
|
-
const Fa = /* @__PURE__ */ U(Qa, [["render", Na], ["__scopeId", "data-v-
|
|
4392
|
+
const Fa = /* @__PURE__ */ U(Qa, [["render", Na], ["__scopeId", "data-v-a4c3d2ed"]]), Xe = [
|
|
4393
4393
|
{
|
|
4394
4394
|
rank: 0,
|
|
4395
4395
|
name: "Best Match",
|
|
@@ -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),
|
|
@@ -5330,9 +5330,12 @@ const Oa = {
|
|
|
5330
5330
|
timeZone: {
|
|
5331
5331
|
type: Number,
|
|
5332
5332
|
default: 0
|
|
5333
|
+
},
|
|
5334
|
+
permission: {
|
|
5335
|
+
type: Number
|
|
5333
5336
|
}
|
|
5334
5337
|
},
|
|
5335
|
-
emits: ["tropical", "tropicalProbability"],
|
|
5338
|
+
emits: ["tropical", "tropicalProbability", "tropicalNotification"],
|
|
5336
5339
|
data() {
|
|
5337
5340
|
return {
|
|
5338
5341
|
helper: Ze,
|
|
@@ -5353,9 +5356,9 @@ const Oa = {
|
|
|
5353
5356
|
showTropicals: !1,
|
|
5354
5357
|
activeTropicals: void 0,
|
|
5355
5358
|
activeTropicalsMarker: void 0,
|
|
5356
|
-
empty:
|
|
5359
|
+
empty: S.featureCollection([]),
|
|
5357
5360
|
circleSource: "circle-source",
|
|
5358
|
-
circleSourceData:
|
|
5361
|
+
circleSourceData: S.featureCollection([]),
|
|
5359
5362
|
circleLayer: "tropical-circle-layer"
|
|
5360
5363
|
};
|
|
5361
5364
|
},
|
|
@@ -5683,9 +5686,9 @@ const Oa = {
|
|
|
5683
5686
|
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
5687
|
},
|
|
5685
5688
|
handleDateChange() {
|
|
5686
|
-
var a, e, t, r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b,
|
|
5689
|
+
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
5690
|
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 =
|
|
5691
|
+
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
5692
|
fe.forEach((Y) => {
|
|
5690
5693
|
ge.features.push(Y);
|
|
5691
5694
|
}), (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 +5708,7 @@ const Oa = {
|
|
|
5705
5708
|
for (const Y of ue)
|
|
5706
5709
|
if (!Y.properties.disabled) {
|
|
5707
5710
|
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 = (
|
|
5711
|
+
((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
5712
|
const Ae = `<svg t="1719918955501"
|
|
5710
5713
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5711
5714
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -5758,11 +5761,14 @@ const Oa = {
|
|
|
5758
5761
|
p.properties.category === e && (p.properties.disabled = a.disabled);
|
|
5759
5762
|
}), this.interpolateData.forEach((p) => {
|
|
5760
5763
|
p.properties.category === e && (p.properties.disabled = a.disabled);
|
|
5761
|
-
}), (n = (s = this.map) == null ? void 0 : s.getSource(this.source)) == null || n.setData(
|
|
5764
|
+
}), (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
5765
|
},
|
|
5763
5766
|
handleStrikeProbability(a) {
|
|
5764
5767
|
this.$emit("tropicalProbability", a);
|
|
5765
5768
|
},
|
|
5769
|
+
handleNotification(a) {
|
|
5770
|
+
this.$emit("tropicalNotification", a);
|
|
5771
|
+
},
|
|
5766
5772
|
handleToggleCircles(a) {
|
|
5767
5773
|
var e, t;
|
|
5768
5774
|
a.showCircle = !a.showCircle, (t = (e = this.tropicals.data) == null ? void 0 : e.features) == null || t.forEach((r) => {
|
|
@@ -5815,22 +5821,22 @@ const Oa = {
|
|
|
5815
5821
|
let c;
|
|
5816
5822
|
switch (n) {
|
|
5817
5823
|
case "ne":
|
|
5818
|
-
c =
|
|
5824
|
+
c = S.lineArc(a, l, 0, 90, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
5819
5825
|
break;
|
|
5820
5826
|
case "se":
|
|
5821
|
-
c =
|
|
5827
|
+
c = S.lineArc(a, l, 90, 180, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
5822
5828
|
break;
|
|
5823
5829
|
case "sw":
|
|
5824
|
-
c =
|
|
5830
|
+
c = S.lineArc(a, l, 180, 270, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
5825
5831
|
break;
|
|
5826
5832
|
case "nw":
|
|
5827
|
-
c =
|
|
5833
|
+
c = S.lineArc(a, l, 270, 360, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
5828
5834
|
break;
|
|
5829
5835
|
}
|
|
5830
5836
|
r.push(...(s = c == null ? void 0 : c.geometry) == null ? void 0 : s.coordinates);
|
|
5831
5837
|
}
|
|
5832
|
-
const i =
|
|
5833
|
-
return
|
|
5838
|
+
const i = S.lineString(r);
|
|
5839
|
+
return S.lineToPolygon(i, { properties: t });
|
|
5834
5840
|
}
|
|
5835
5841
|
}
|
|
5836
5842
|
}, Ra = {
|
|
@@ -5856,15 +5862,15 @@ const Oa = {
|
|
|
5856
5862
|
style: { "justify-content": "flex-start" }
|
|
5857
5863
|
}, ai = { class: "forecast-models" }, ii = ["onClick"], ri = { class: "more" };
|
|
5858
5864
|
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((
|
|
5865
|
+
var n, l, c, p, h, d, A, v, E, w, k, _, f, b, g, C, y, L, T;
|
|
5866
|
+
return Fe((m(), u("div", Ra, [
|
|
5861
5867
|
o("div", ja, [
|
|
5862
5868
|
o("div", {
|
|
5863
5869
|
class: "iconfont close-btn",
|
|
5864
5870
|
onClick: e[0] || (e[0] = (D) => i.showTropicals = !1)
|
|
5865
5871
|
}, ""),
|
|
5866
5872
|
o("div", Wa, [
|
|
5867
|
-
(l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (
|
|
5873
|
+
(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
5874
|
ne(I((h = i.activeTropicals) == null ? void 0 : h.name), 1)
|
|
5869
5875
|
]),
|
|
5870
5876
|
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)
|
|
@@ -5873,34 +5879,34 @@ function si(a, e, t, r, i, s) {
|
|
|
5873
5879
|
o("div", Ka, [
|
|
5874
5880
|
o("div", Xa, [
|
|
5875
5881
|
o("div", Ja, [
|
|
5876
|
-
e[
|
|
5882
|
+
e[3] || (e[3] = o("label", null, "Wind speed : ", -1)),
|
|
5877
5883
|
o("span", null, I(((_ = (k = i.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : _.kts) || "-") + " [kts]", 1),
|
|
5878
5884
|
o("span", null, ", BF " + I(s.computeBF(((b = (f = i.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : b.kts) || 0)), 1)
|
|
5879
5885
|
]),
|
|
5880
5886
|
o("div", qa, [
|
|
5881
|
-
e[
|
|
5882
|
-
o("span", null, I(((C = (
|
|
5887
|
+
e[4] || (e[4] = o("label", null, "Pressure : ", -1)),
|
|
5888
|
+
o("span", null, I(((C = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : C.pressure) || "-") + " [hPa]", 1)
|
|
5883
5889
|
])
|
|
5884
5890
|
]),
|
|
5885
5891
|
o("div", Va, [
|
|
5886
5892
|
o("div", Za, [
|
|
5887
|
-
e[
|
|
5893
|
+
e[5] || (e[5] = o("label", null, "Move Speed: ", -1)),
|
|
5888
5894
|
o("span", null, I((y = s.computeMovement(i.activeTropicals)) == null ? void 0 : y.kts) + " [kts]", 1)
|
|
5889
5895
|
]),
|
|
5890
5896
|
o("div", $a, [
|
|
5891
|
-
e[
|
|
5897
|
+
e[6] || (e[6] = o("label", null, "Move Dir: ", -1)),
|
|
5892
5898
|
o("span", null, I((L = s.computeMovement(i.activeTropicals)) == null ? void 0 : L.deg) + " [°]", 1)
|
|
5893
5899
|
])
|
|
5894
5900
|
]),
|
|
5895
5901
|
o("div", ei, [
|
|
5896
5902
|
o("div", ti, [
|
|
5897
|
-
e[
|
|
5903
|
+
e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
5898
5904
|
o("div", ai, [
|
|
5899
|
-
(
|
|
5905
|
+
(m(!0), u(V, null, $((T = i.activeTropicals) == null ? void 0 : T.forecasts, (D, F) => {
|
|
5900
5906
|
var N, j, G, W;
|
|
5901
|
-
return
|
|
5907
|
+
return m(), u("div", {
|
|
5902
5908
|
key: F,
|
|
5903
|
-
class:
|
|
5909
|
+
class: Z([
|
|
5904
5910
|
"model",
|
|
5905
5911
|
D.disabled ? "" : "active",
|
|
5906
5912
|
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,19 +5914,25 @@ function si(a, e, t, r, i, s) {
|
|
|
5908
5914
|
onClick: (me) => s.handleForecastToggle(D)
|
|
5909
5915
|
}, [
|
|
5910
5916
|
o("span", {
|
|
5911
|
-
class:
|
|
5917
|
+
class: Z(D.model)
|
|
5912
5918
|
}, I(D.model), 3)
|
|
5913
5919
|
], 10, ii);
|
|
5914
5920
|
}), 128))
|
|
5915
5921
|
])
|
|
5916
5922
|
])
|
|
5917
5923
|
]),
|
|
5918
|
-
e[
|
|
5924
|
+
e[8] || (e[8] = yt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-79e256a6></div><div class="row" style="padding:2px 10px;" data-v-79e256a6><div class="legend" data-v-79e256a6><div class="icon td" data-v-79e256a6></div><div class="label" data-v-79e256a6>TD</div></div><div class="legend" data-v-79e256a6><div class="icon ts" data-v-79e256a6></div><div class="label" data-v-79e256a6>TS</div></div><div class="legend" data-v-79e256a6><div class="icon sts" data-v-79e256a6></div><div class="label" data-v-79e256a6>STS</div></div><div class="legend" data-v-79e256a6><div class="icon ty" data-v-79e256a6></div><div class="label" data-v-79e256a6>TY</div></div><div class="legend" data-v-79e256a6><div class="icon sty" data-v-79e256a6></div><div class="label" data-v-79e256a6>STY</div></div><div class="legend" data-v-79e256a6><div class="icon supper-ty" data-v-79e256a6></div><div class="label" data-v-79e256a6>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-79e256a6><div class="legend" data-v-79e256a6><div class="icon history" data-v-79e256a6></div><div class="label" data-v-79e256a6>History</div></div><div class="legend" data-v-79e256a6><div class="icon r7" data-v-79e256a6></div><div class="label" data-v-79e256a6>35kts Radii</div></div><div class="legend" data-v-79e256a6><div class="icon r10" data-v-79e256a6></div><div class="label" data-v-79e256a6>50kts Radii</div></div></div>', 3))
|
|
5919
5925
|
]),
|
|
5920
5926
|
o("div", ri, [
|
|
5927
|
+
t.permission & i.helper.LEVEL.Supper ? (m(), u("div", {
|
|
5928
|
+
key: 0,
|
|
5929
|
+
class: "button",
|
|
5930
|
+
style: { "margin-right": "10px" },
|
|
5931
|
+
onClick: e[1] || (e[1] = (D) => s.handleNotification(i.activeTropicals))
|
|
5932
|
+
}, "Notify")) : J("", !0),
|
|
5921
5933
|
o("div", {
|
|
5922
5934
|
class: "button",
|
|
5923
|
-
onClick: e[
|
|
5935
|
+
onClick: e[2] || (e[2] = (D) => s.handleStrikeProbability(i.activeTropicals))
|
|
5924
5936
|
}, "Strike Probability >>")
|
|
5925
5937
|
])
|
|
5926
5938
|
])
|
|
@@ -5928,7 +5940,7 @@ function si(a, e, t, r, i, s) {
|
|
|
5928
5940
|
[Oe, i.showTropicals && !a.$attrs.hideTropicalsLegend]
|
|
5929
5941
|
]);
|
|
5930
5942
|
}
|
|
5931
|
-
const dt = /* @__PURE__ */ U(Oa, [["render", si], ["__scopeId", "data-v-
|
|
5943
|
+
const dt = /* @__PURE__ */ U(Oa, [["render", si], ["__scopeId", "data-v-79e256a6"]]);
|
|
5932
5944
|
const oi = {
|
|
5933
5945
|
name: "IdmPrecip3h",
|
|
5934
5946
|
props: {
|
|
@@ -6033,7 +6045,7 @@ const oi = {
|
|
|
6033
6045
|
}, ni = { key: 0 };
|
|
6034
6046
|
function li(a, e, t, r, i, s) {
|
|
6035
6047
|
var n;
|
|
6036
|
-
return (n = t.factor) != null && n.active ? (
|
|
6048
|
+
return (n = t.factor) != null && n.active ? (m(), u("div", ni, [
|
|
6037
6049
|
o("div", {
|
|
6038
6050
|
class: "legend-bars flex-center",
|
|
6039
6051
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -6049,7 +6061,7 @@ function li(a, e, t, r, i, s) {
|
|
|
6049
6061
|
]), 4)
|
|
6050
6062
|
])) : J("", !0);
|
|
6051
6063
|
}
|
|
6052
|
-
const hi = /* @__PURE__ */ U(oi, [["render", li], ["__scopeId", "data-v-
|
|
6064
|
+
const hi = /* @__PURE__ */ U(oi, [["render", li], ["__scopeId", "data-v-9708a7a3"]]);
|
|
6053
6065
|
const ci = {
|
|
6054
6066
|
name: "IdmVisibility",
|
|
6055
6067
|
props: {
|
|
@@ -6147,7 +6159,7 @@ const ci = {
|
|
|
6147
6159
|
}, di = { key: 0 };
|
|
6148
6160
|
function pi(a, e, t, r, i, s) {
|
|
6149
6161
|
var n;
|
|
6150
|
-
return (n = t.factor) != null && n.active ? (
|
|
6162
|
+
return (n = t.factor) != null && n.active ? (m(), u("div", di, [
|
|
6151
6163
|
o("div", {
|
|
6152
6164
|
class: "legend-bars flex-center",
|
|
6153
6165
|
style: le([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
@@ -6161,7 +6173,7 @@ function pi(a, e, t, r, i, s) {
|
|
|
6161
6173
|
]), 4)
|
|
6162
6174
|
])) : J("", !0);
|
|
6163
6175
|
}
|
|
6164
|
-
const mi = /* @__PURE__ */ U(ci, [["render", pi], ["__scopeId", "data-v-
|
|
6176
|
+
const mi = /* @__PURE__ */ U(ci, [["render", pi], ["__scopeId", "data-v-f7b2fb08"]]);
|
|
6165
6177
|
const ui = {
|
|
6166
6178
|
name: "IdmWaterTemp",
|
|
6167
6179
|
props: {
|
|
@@ -6267,7 +6279,7 @@ const ui = {
|
|
|
6267
6279
|
}, gi = { key: 0 };
|
|
6268
6280
|
function yi(a, e, t, r, i, s) {
|
|
6269
6281
|
var n;
|
|
6270
|
-
return (n = t.factor) != null && n.active ? (
|
|
6282
|
+
return (n = t.factor) != null && n.active ? (m(), u("div", gi, [
|
|
6271
6283
|
o("div", {
|
|
6272
6284
|
class: "legend-bars flex-center",
|
|
6273
6285
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -6281,7 +6293,7 @@ function yi(a, e, t, r, i, s) {
|
|
|
6281
6293
|
]), 4)
|
|
6282
6294
|
])) : J("", !0);
|
|
6283
6295
|
}
|
|
6284
|
-
const fi = /* @__PURE__ */ U(ui, [["render", yi], ["__scopeId", "data-v-
|
|
6296
|
+
const fi = /* @__PURE__ */ U(ui, [["render", yi], ["__scopeId", "data-v-7521f582"]]);
|
|
6285
6297
|
const Ai = {
|
|
6286
6298
|
name: "IdmTemp",
|
|
6287
6299
|
props: {
|
|
@@ -6390,7 +6402,7 @@ const Ai = {
|
|
|
6390
6402
|
}, wi = { key: 0 };
|
|
6391
6403
|
function vi(a, e, t, r, i, s) {
|
|
6392
6404
|
var n;
|
|
6393
|
-
return (n = t.factor) != null && n.active ? (
|
|
6405
|
+
return (n = t.factor) != null && n.active ? (m(), u("div", wi, [
|
|
6394
6406
|
o("div", {
|
|
6395
6407
|
class: "legend-bars flex-center",
|
|
6396
6408
|
style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -6406,13 +6418,13 @@ function vi(a, e, t, r, i, s) {
|
|
|
6406
6418
|
]), 4)
|
|
6407
6419
|
])) : J("", !0);
|
|
6408
6420
|
}
|
|
6409
|
-
const bi = /* @__PURE__ */ U(Ai, [["render", vi], ["__scopeId", "data-v-
|
|
6421
|
+
const bi = /* @__PURE__ */ U(Ai, [["render", vi], ["__scopeId", "data-v-25daaa82"]]);
|
|
6410
6422
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
6411
6423
|
var Li = /* @__PURE__ */ ft({
|
|
6412
6424
|
name: "LocationFilled",
|
|
6413
6425
|
__name: "location-filled",
|
|
6414
6426
|
setup(a) {
|
|
6415
|
-
return (e, t) => (
|
|
6427
|
+
return (e, t) => (m(), u("svg", {
|
|
6416
6428
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6417
6429
|
viewBox: "0 0 1024 1024"
|
|
6418
6430
|
}, [
|
|
@@ -6618,7 +6630,7 @@ const _i = {
|
|
|
6618
6630
|
initTableData(a) {
|
|
6619
6631
|
var e, t, r, i, s, n, l, c, p;
|
|
6620
6632
|
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,
|
|
6633
|
+
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
6634
|
if (!document.getElementById("meteoMainBox"))
|
|
6623
6635
|
return !1;
|
|
6624
6636
|
if (!this.currentHourData)
|
|
@@ -6627,7 +6639,7 @@ const _i = {
|
|
|
6627
6639
|
const _e = Ye(this.ts).tz(this.positionGmt).add(3 * we, "h").format();
|
|
6628
6640
|
this.tableData.hours.push(_e);
|
|
6629
6641
|
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 = (
|
|
6642
|
+
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
6643
|
}
|
|
6632
6644
|
});
|
|
6633
6645
|
},
|
|
@@ -6712,47 +6724,47 @@ const _i = {
|
|
|
6712
6724
|
key: 1,
|
|
6713
6725
|
class: "icon flex-center",
|
|
6714
6726
|
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: "
|
|
6727
|
+
}, 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
6728
|
class: "sea-table",
|
|
6717
6729
|
style: { height: "92px" }
|
|
6718
|
-
},
|
|
6730
|
+
}, 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
6731
|
class: "flex-space",
|
|
6720
6732
|
style: { flex: "1", "line-height": "30px" }
|
|
6721
|
-
},
|
|
6733
|
+
}, Lr = {
|
|
6722
6734
|
class: "flex-space",
|
|
6723
6735
|
style: { flex: "1", "padding-left": "30px" }
|
|
6724
|
-
},
|
|
6736
|
+
}, Cr = { class: "flex-between" }, xr = {
|
|
6725
6737
|
class: "flex-space",
|
|
6726
6738
|
style: { flex: "1", "line-height": "30px" }
|
|
6727
|
-
},
|
|
6739
|
+
}, _r = {
|
|
6728
6740
|
class: "flex-space",
|
|
6729
6741
|
style: { flex: "1", "padding-left": "30px" }
|
|
6730
|
-
},
|
|
6742
|
+
}, Br = { class: "flex-between" }, Ir = {
|
|
6731
6743
|
class: "flex-space",
|
|
6732
6744
|
style: { flex: "1", "line-height": "30px" }
|
|
6733
|
-
},
|
|
6745
|
+
}, Er = {
|
|
6734
6746
|
class: "flex-space",
|
|
6735
6747
|
style: { flex: "1", "padding-left": "30px" }
|
|
6736
|
-
},
|
|
6748
|
+
}, kr = { class: "flex-between" }, Dr = {
|
|
6737
6749
|
class: "flex-space",
|
|
6738
6750
|
style: { flex: "1", "line-height": "30px" }
|
|
6739
|
-
},
|
|
6751
|
+
}, zr = {
|
|
6740
6752
|
class: "flex-space",
|
|
6741
6753
|
style: { flex: "1", "padding-left": "30px" }
|
|
6742
|
-
},
|
|
6754
|
+
}, Pr = { class: "flex-between" }, Mr = {
|
|
6743
6755
|
class: "flex-space",
|
|
6744
6756
|
style: { flex: "1", "line-height": "30px" }
|
|
6745
|
-
},
|
|
6757
|
+
}, Sr = {
|
|
6746
6758
|
class: "flex-space",
|
|
6747
6759
|
style: { flex: "1", "padding-left": "30px" }
|
|
6748
|
-
},
|
|
6760
|
+
}, Tr = {
|
|
6749
6761
|
key: 1,
|
|
6750
6762
|
class: "main-box flex-center"
|
|
6751
6763
|
};
|
|
6752
|
-
function
|
|
6753
|
-
var p, h, d, A, v, E, w, k, _, f, b,
|
|
6764
|
+
function Qr(a, e, t, r, i, s) {
|
|
6765
|
+
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
6766
|
const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
|
|
6755
|
-
return Fe((
|
|
6767
|
+
return Fe((m(), u("div", Bi, [
|
|
6756
6768
|
o("div", Ii, [
|
|
6757
6769
|
o("div", Ei, [
|
|
6758
6770
|
o("div", ki, [
|
|
@@ -6765,11 +6777,11 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6765
6777
|
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
6778
|
]),
|
|
6767
6779
|
o("div", zi, [
|
|
6768
|
-
i.showTables ? (
|
|
6780
|
+
i.showTables ? (m(), u("div", {
|
|
6769
6781
|
key: 0,
|
|
6770
6782
|
class: "iconfont toggle",
|
|
6771
6783
|
onClick: e[0] || (e[0] = (x) => i.showTables = !i.showTables)
|
|
6772
|
-
}, "")) : (
|
|
6784
|
+
}, "")) : (m(), u("div", {
|
|
6773
6785
|
key: 1,
|
|
6774
6786
|
class: "iconfont toggle",
|
|
6775
6787
|
onClick: e[1] || (e[1] = (x) => i.showTables = !i.showTables)
|
|
@@ -6780,11 +6792,11 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6780
6792
|
}, "")
|
|
6781
6793
|
])
|
|
6782
6794
|
]),
|
|
6783
|
-
i.loading ? (
|
|
6795
|
+
i.loading ? (m(), u("div", Tr, e[42] || (e[42] = [
|
|
6784
6796
|
o("img", { src: xi }, null, -1)
|
|
6785
|
-
]))) : (
|
|
6797
|
+
]))) : (m(), u("div", {
|
|
6786
6798
|
key: 0,
|
|
6787
|
-
class:
|
|
6799
|
+
class: Z(["main-box", i.isDay ? "day-bg" : "night-bg"]),
|
|
6788
6800
|
id: "meteoMainBox"
|
|
6789
6801
|
}, [
|
|
6790
6802
|
o("div", Pi, [
|
|
@@ -6796,14 +6808,14 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6796
6808
|
"show-after": 1e3
|
|
6797
6809
|
}, {
|
|
6798
6810
|
default: Ie(() => {
|
|
6799
|
-
var x,
|
|
6811
|
+
var x, M, nt, lt;
|
|
6800
6812
|
return [
|
|
6801
|
-
(
|
|
6813
|
+
(M = (x = i.currentHourData) == null ? void 0 : x.weather) != null && M.url ? (m(), u("img", {
|
|
6802
6814
|
key: 0,
|
|
6803
6815
|
class: "iconfont icon",
|
|
6804
6816
|
style: { "margin-right": "5px" },
|
|
6805
6817
|
src: (lt = (nt = i.currentHourData) == null ? void 0 : nt.weather) == null ? void 0 : lt.url
|
|
6806
|
-
}, null, 8, Si)) : (
|
|
6818
|
+
}, null, 8, Si)) : (m(), u("span", Ti))
|
|
6807
6819
|
];
|
|
6808
6820
|
}),
|
|
6809
6821
|
_: 1
|
|
@@ -6825,7 +6837,7 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6825
6837
|
]),
|
|
6826
6838
|
o("div", Oi, [
|
|
6827
6839
|
e[11] || (e[11] = o("label", null, "Wind : ", -1)),
|
|
6828
|
-
o("span", null, I(s.roundPrecision((y = (C = (
|
|
6840
|
+
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
6841
|
])
|
|
6830
6842
|
])
|
|
6831
6843
|
]),
|
|
@@ -6837,19 +6849,19 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6837
6849
|
Fe(o("div", Gi, [
|
|
6838
6850
|
o("div", Ui, [
|
|
6839
6851
|
o("div", {
|
|
6840
|
-
class:
|
|
6852
|
+
class: Z(["menu-item", i.activeIndex === 1 ? "active" : ""]),
|
|
6841
6853
|
onClick: e[3] || (e[3] = qe((x) => s.handleSelectTab(1), ["prevent"]))
|
|
6842
6854
|
}, "Basis", 2),
|
|
6843
6855
|
o("div", {
|
|
6844
|
-
class:
|
|
6856
|
+
class: Z(["menu-item", i.activeIndex === 2 ? "active" : ""]),
|
|
6845
6857
|
onClick: e[4] || (e[4] = qe((x) => s.handleSelectTab(2), ["prevent"]))
|
|
6846
6858
|
}, "Wave & Current", 2),
|
|
6847
6859
|
o("div", {
|
|
6848
|
-
class:
|
|
6860
|
+
class: Z(["menu-item", i.activeIndex === 3 ? "active" : ""]),
|
|
6849
6861
|
onClick: e[5] || (e[5] = qe((x) => s.handleSelectTab(3), ["prevent"]))
|
|
6850
6862
|
}, "Sea Surface", 2),
|
|
6851
6863
|
o("div", {
|
|
6852
|
-
class:
|
|
6864
|
+
class: Z(["menu-item", i.activeIndex === 4 ? "active" : ""]),
|
|
6853
6865
|
onClick: e[6] || (e[6] = qe((x) => s.handleSelectTab(4), ["prevent"]))
|
|
6854
6866
|
}, "Tides", 2)
|
|
6855
6867
|
]),
|
|
@@ -6863,7 +6875,7 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6863
6875
|
ne("Hours"),
|
|
6864
6876
|
o("span", { class: "unit" }, "(LT)")
|
|
6865
6877
|
], -1)),
|
|
6866
|
-
(
|
|
6878
|
+
(m(!0), u(V, null, $(i.tableData.hours, (x) => (m(), u("th", {
|
|
6867
6879
|
rowspan: "1",
|
|
6868
6880
|
colspan: "1",
|
|
6869
6881
|
key: `HourL${x}`
|
|
@@ -6878,7 +6890,7 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6878
6890
|
ne("UTC"),
|
|
6879
6891
|
o("span", { class: "unit" })
|
|
6880
6892
|
], -1)),
|
|
6881
|
-
(
|
|
6893
|
+
(m(!0), u(V, null, $(i.tableData.hours, (x) => (m(), u("th", {
|
|
6882
6894
|
rowspan: "1",
|
|
6883
6895
|
colspan: "1",
|
|
6884
6896
|
key: `HourZ${x}`
|
|
@@ -6890,19 +6902,19 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6890
6902
|
colspan: "1",
|
|
6891
6903
|
class: "tr-title"
|
|
6892
6904
|
}, null, -1)),
|
|
6893
|
-
(
|
|
6905
|
+
(m(!0), u(V, null, $(i.tableData.weatherUrls, (x, M) => (m(), u("th", {
|
|
6894
6906
|
rowspan: "1",
|
|
6895
6907
|
colspan: "1",
|
|
6896
|
-
key: `weatherUrls${
|
|
6908
|
+
key: `weatherUrls${M}${x}`
|
|
6897
6909
|
}, [
|
|
6898
6910
|
H(c, {
|
|
6899
6911
|
placement: "top",
|
|
6900
6912
|
effect: "light",
|
|
6901
|
-
content: i.tableData.weatherNames[
|
|
6913
|
+
content: i.tableData.weatherNames[M],
|
|
6902
6914
|
"show-after": 500
|
|
6903
6915
|
}, {
|
|
6904
6916
|
default: Ie(() => [
|
|
6905
|
-
x ? (
|
|
6917
|
+
x ? (m(), u("img", {
|
|
6906
6918
|
key: 0,
|
|
6907
6919
|
class: "iconfont weather-icon",
|
|
6908
6920
|
src: x
|
|
@@ -6921,10 +6933,10 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6921
6933
|
ne("Temp"),
|
|
6922
6934
|
o("span", { class: "unit" }, "°C")
|
|
6923
6935
|
], -1)),
|
|
6924
|
-
(
|
|
6936
|
+
(m(!0), u(V, null, $(i.tableData.temp, (x, M) => (m(), u("td", {
|
|
6925
6937
|
rowspan: "1",
|
|
6926
6938
|
colspan: "1",
|
|
6927
|
-
key: `weatherUrls${
|
|
6939
|
+
key: `weatherUrls${M}${x}`
|
|
6928
6940
|
}, I(x), 1))), 128))
|
|
6929
6941
|
]),
|
|
6930
6942
|
o("tr", Zi, [
|
|
@@ -6936,10 +6948,10 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6936
6948
|
ne("Precip"),
|
|
6937
6949
|
o("span", { class: "unit" }, "mm")
|
|
6938
6950
|
], -1)),
|
|
6939
|
-
(
|
|
6951
|
+
(m(!0), u(V, null, $(i.tableData.precip1h, (x, M) => (m(), u("td", {
|
|
6940
6952
|
rowspan: "1",
|
|
6941
6953
|
colspan: "1",
|
|
6942
|
-
key: `precip1h${
|
|
6954
|
+
key: `precip1h${M}${x}`
|
|
6943
6955
|
}, I(x), 1))), 128))
|
|
6944
6956
|
]),
|
|
6945
6957
|
o("tr", $i, [
|
|
@@ -6951,27 +6963,34 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6951
6963
|
ne("Visibility"),
|
|
6952
6964
|
o("span", { class: "unit" }, "nm")
|
|
6953
6965
|
], -1)),
|
|
6954
|
-
(
|
|
6966
|
+
(m(!0), u(V, null, $(i.tableData.visibility, (x, M) => (m(), u("td", {
|
|
6955
6967
|
rowspan: "1",
|
|
6956
6968
|
colspan: "1",
|
|
6957
|
-
key: `visibility${
|
|
6969
|
+
key: `visibility${M}${x}`
|
|
6958
6970
|
}, I(x), 1))), 128))
|
|
6959
6971
|
]),
|
|
6960
|
-
|
|
6961
|
-
o("td", {
|
|
6972
|
+
o("tr", er, [
|
|
6973
|
+
e[18] || (e[18] = o("td", {
|
|
6962
6974
|
rowspan: "1",
|
|
6963
6975
|
colspan: "1",
|
|
6964
6976
|
class: "tr-title"
|
|
6965
6977
|
}, [
|
|
6966
6978
|
ne("Wind gust"),
|
|
6967
6979
|
o("span", { class: "unit" }, "kts")
|
|
6968
|
-
])
|
|
6969
|
-
|
|
6980
|
+
], -1)),
|
|
6981
|
+
(m(!0), u(V, null, $(i.tableData.windGust, (x, M) => (m(), u("td", {
|
|
6982
|
+
rowspan: "1",
|
|
6983
|
+
colspan: "1",
|
|
6984
|
+
key: `windGust${M}${x}`
|
|
6985
|
+
}, [
|
|
6986
|
+
o("span", null, I(x), 1)
|
|
6987
|
+
]))), 128))
|
|
6988
|
+
])
|
|
6970
6989
|
], 512), [
|
|
6971
6990
|
[Oe, i.activeIndex === 1]
|
|
6972
6991
|
]),
|
|
6973
|
-
Fe(o("table",
|
|
6974
|
-
o("tr",
|
|
6992
|
+
Fe(o("table", tr, [
|
|
6993
|
+
o("tr", ar, [
|
|
6975
6994
|
e[19] || (e[19] = o("th", {
|
|
6976
6995
|
rowspan: "1",
|
|
6977
6996
|
colspan: "1",
|
|
@@ -6980,13 +6999,13 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6980
6999
|
ne("Hours"),
|
|
6981
7000
|
o("span", { class: "unit" }, "(LT)")
|
|
6982
7001
|
], -1)),
|
|
6983
|
-
(
|
|
7002
|
+
(m(!0), u(V, null, $(i.tableData.hours, (x, M) => (m(), u("th", {
|
|
6984
7003
|
rowspan: "1",
|
|
6985
7004
|
colspan: "1",
|
|
6986
|
-
key: `currenthoursL${
|
|
7005
|
+
key: `currenthoursL${M}${x}`
|
|
6987
7006
|
}, I(s.computeHourL(x)), 1))), 128))
|
|
6988
7007
|
]),
|
|
6989
|
-
o("tr",
|
|
7008
|
+
o("tr", ir, [
|
|
6990
7009
|
e[20] || (e[20] = o("th", {
|
|
6991
7010
|
rowspan: "1",
|
|
6992
7011
|
colspan: "1",
|
|
@@ -6995,13 +7014,13 @@ function Tr(a, e, t, r, i, s) {
|
|
|
6995
7014
|
ne("UTC"),
|
|
6996
7015
|
o("span", { class: "unit" })
|
|
6997
7016
|
], -1)),
|
|
6998
|
-
(
|
|
7017
|
+
(m(!0), u(V, null, $(i.tableData.hours, (x, M) => (m(), u("th", {
|
|
6999
7018
|
rowspan: "1",
|
|
7000
7019
|
colspan: "1",
|
|
7001
|
-
key: `currenthoursZ${
|
|
7020
|
+
key: `currenthoursZ${M}${x}`
|
|
7002
7021
|
}, I(s.computeHourZ(x)), 1))), 128))
|
|
7003
7022
|
]),
|
|
7004
|
-
o("tr",
|
|
7023
|
+
o("tr", rr, [
|
|
7005
7024
|
e[21] || (e[21] = o("td", {
|
|
7006
7025
|
rowspan: "1",
|
|
7007
7026
|
colspan: "1",
|
|
@@ -7010,20 +7029,20 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7010
7029
|
ne("Wind"),
|
|
7011
7030
|
o("span", { class: "unit" }, "kts")
|
|
7012
7031
|
], -1)),
|
|
7013
|
-
(
|
|
7032
|
+
(m(!0), u(V, null, $(i.tableData.windSpeed, (x, M) => (m(), u("td", {
|
|
7014
7033
|
rowspan: "1",
|
|
7015
7034
|
colspan: "1",
|
|
7016
|
-
key: `windSpeed${
|
|
7035
|
+
key: `windSpeed${M}${x}`
|
|
7017
7036
|
}, [
|
|
7018
|
-
isNaN(i.tableData.windDir[
|
|
7037
|
+
isNaN(i.tableData.windDir[M]) ? J("", !0) : (m(), u("span", {
|
|
7019
7038
|
key: 0,
|
|
7020
7039
|
class: "iconfont icon wind",
|
|
7021
|
-
style: le({ display: "inline-block", transform: `rotate(${i.tableData.windDir[
|
|
7040
|
+
style: le({ display: "inline-block", transform: `rotate(${i.tableData.windDir[M]}deg)` })
|
|
7022
7041
|
}, "", 4)),
|
|
7023
7042
|
o("span", null, I(x), 1)
|
|
7024
7043
|
]))), 128))
|
|
7025
7044
|
]),
|
|
7026
|
-
o("tr",
|
|
7045
|
+
o("tr", sr, [
|
|
7027
7046
|
e[22] || (e[22] = o("td", {
|
|
7028
7047
|
rowspan: "1",
|
|
7029
7048
|
colspan: "1",
|
|
@@ -7032,20 +7051,20 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7032
7051
|
ne("Sig Wave"),
|
|
7033
7052
|
o("span", { class: "unit" }, "m")
|
|
7034
7053
|
], -1)),
|
|
7035
|
-
(
|
|
7054
|
+
(m(!0), u(V, null, $(i.tableData.sigwaveHeight, (x, M) => (m(), u("td", {
|
|
7036
7055
|
rowspan: "1",
|
|
7037
7056
|
colspan: "1",
|
|
7038
|
-
key: `sigwaveHeight${
|
|
7057
|
+
key: `sigwaveHeight${M}${x}`
|
|
7039
7058
|
}, [
|
|
7040
|
-
isNaN(i.tableData.sigwaveDir[
|
|
7059
|
+
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), u("span", {
|
|
7041
7060
|
key: 0,
|
|
7042
7061
|
class: "iconfont icon sigwave",
|
|
7043
|
-
style: le({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[
|
|
7062
|
+
style: le({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[M]}deg)` })
|
|
7044
7063
|
}, "", 4)),
|
|
7045
7064
|
o("span", null, I(x), 1)
|
|
7046
7065
|
]))), 128))
|
|
7047
7066
|
]),
|
|
7048
|
-
o("tr",
|
|
7067
|
+
o("tr", or, [
|
|
7049
7068
|
e[23] || (e[23] = o("td", {
|
|
7050
7069
|
rowspan: "1",
|
|
7051
7070
|
colspan: "1",
|
|
@@ -7054,20 +7073,20 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7054
7073
|
ne("Wind Wave"),
|
|
7055
7074
|
o("span", { class: "unit" }, "m")
|
|
7056
7075
|
], -1)),
|
|
7057
|
-
(
|
|
7076
|
+
(m(!0), u(V, null, $(i.tableData.windwaveHeight, (x, M) => (m(), u("td", {
|
|
7058
7077
|
rowspan: "1",
|
|
7059
7078
|
colspan: "1",
|
|
7060
|
-
key: `windwaveHeight${
|
|
7079
|
+
key: `windwaveHeight${M}${x}`
|
|
7061
7080
|
}, [
|
|
7062
|
-
isNaN(i.tableData.sigwaveDir[
|
|
7081
|
+
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), u("span", {
|
|
7063
7082
|
key: 0,
|
|
7064
7083
|
class: "iconfont icon windwave",
|
|
7065
|
-
style: le({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[
|
|
7084
|
+
style: le({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[M]}deg)` })
|
|
7066
7085
|
}, "", 4)),
|
|
7067
7086
|
o("span", null, I(x), 1)
|
|
7068
7087
|
]))), 128))
|
|
7069
7088
|
]),
|
|
7070
|
-
o("tr",
|
|
7089
|
+
o("tr", nr, [
|
|
7071
7090
|
e[24] || (e[24] = o("td", {
|
|
7072
7091
|
rowspan: "1",
|
|
7073
7092
|
colspan: "1",
|
|
@@ -7076,20 +7095,20 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7076
7095
|
ne("Swell"),
|
|
7077
7096
|
o("span", { class: "unit" }, "m")
|
|
7078
7097
|
], -1)),
|
|
7079
|
-
(
|
|
7098
|
+
(m(!0), u(V, null, $(i.tableData.swellHeight, (x, M) => (m(), u("td", {
|
|
7080
7099
|
rowspan: "1",
|
|
7081
7100
|
colspan: "1",
|
|
7082
|
-
key: `swellHeight${
|
|
7101
|
+
key: `swellHeight${M}${x}`
|
|
7083
7102
|
}, [
|
|
7084
|
-
isNaN(i.tableData.swellDir[
|
|
7103
|
+
isNaN(i.tableData.swellDir[M]) ? J("", !0) : (m(), u("span", {
|
|
7085
7104
|
key: 0,
|
|
7086
7105
|
class: "iconfont icon swell",
|
|
7087
|
-
style: le({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[
|
|
7106
|
+
style: le({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[M]}deg)` })
|
|
7088
7107
|
}, "", 4)),
|
|
7089
7108
|
o("span", null, I(x), 1)
|
|
7090
7109
|
]))), 128))
|
|
7091
7110
|
]),
|
|
7092
|
-
o("tr",
|
|
7111
|
+
o("tr", lr, [
|
|
7093
7112
|
e[25] || (e[25] = o("td", {
|
|
7094
7113
|
rowspan: "1",
|
|
7095
7114
|
colspan: "1",
|
|
@@ -7098,16 +7117,16 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7098
7117
|
ne("Current"),
|
|
7099
7118
|
o("span", { class: "unit" }, "kts")
|
|
7100
7119
|
], -1)),
|
|
7101
|
-
(
|
|
7120
|
+
(m(!0), u(V, null, $(i.tableData.currentSpeed, (x, M) => (m(), u("td", {
|
|
7102
7121
|
rowspan: "1",
|
|
7103
7122
|
colspan: "1",
|
|
7104
|
-
key: `currentSpeed${
|
|
7123
|
+
key: `currentSpeed${M}${x}`
|
|
7105
7124
|
}, [
|
|
7106
|
-
isNaN(i.tableData.currentDir[
|
|
7125
|
+
isNaN(i.tableData.currentDir[M]) ? J("", !0) : (m(), u("span", {
|
|
7107
7126
|
key: 0,
|
|
7108
7127
|
class: "iconfont icon current",
|
|
7109
7128
|
id: "meteoGrayIcon",
|
|
7110
|
-
style: le({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[
|
|
7129
|
+
style: le({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[M]}deg)` })
|
|
7111
7130
|
}, "", 4)),
|
|
7112
7131
|
o("span", null, I(x), 1)
|
|
7113
7132
|
]))), 128))
|
|
@@ -7115,8 +7134,8 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7115
7134
|
], 512), [
|
|
7116
7135
|
[Oe, i.activeIndex === 2]
|
|
7117
7136
|
]),
|
|
7118
|
-
Fe(o("table",
|
|
7119
|
-
o("tr",
|
|
7137
|
+
Fe(o("table", hr, [
|
|
7138
|
+
o("tr", cr, [
|
|
7120
7139
|
e[26] || (e[26] = o("th", {
|
|
7121
7140
|
rowspan: "1",
|
|
7122
7141
|
colspan: "1",
|
|
@@ -7125,13 +7144,13 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7125
7144
|
ne("Hours"),
|
|
7126
7145
|
o("span", { class: "unit" }, "(LT)")
|
|
7127
7146
|
], -1)),
|
|
7128
|
-
(
|
|
7147
|
+
(m(!0), u(V, null, $(i.tableData.hours, (x, M) => (m(), u("th", {
|
|
7129
7148
|
rowspan: "1",
|
|
7130
7149
|
colspan: "1",
|
|
7131
|
-
key: `seahoursL${
|
|
7150
|
+
key: `seahoursL${M}${x}`
|
|
7132
7151
|
}, I(s.computeHourL(x)), 1))), 128))
|
|
7133
7152
|
]),
|
|
7134
|
-
o("tr",
|
|
7153
|
+
o("tr", dr, [
|
|
7135
7154
|
e[27] || (e[27] = o("th", {
|
|
7136
7155
|
rowspan: "1",
|
|
7137
7156
|
colspan: "1",
|
|
@@ -7140,13 +7159,13 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7140
7159
|
ne("UTC"),
|
|
7141
7160
|
o("span", { class: "unit" })
|
|
7142
7161
|
], -1)),
|
|
7143
|
-
(
|
|
7162
|
+
(m(!0), u(V, null, $(i.tableData.hours, (x, M) => (m(), u("th", {
|
|
7144
7163
|
rowspan: "1",
|
|
7145
7164
|
colspan: "1",
|
|
7146
|
-
key: `seahoursZ${
|
|
7165
|
+
key: `seahoursZ${M}${x}`
|
|
7147
7166
|
}, I(s.computeHourZ(x)), 1))), 128))
|
|
7148
7167
|
]),
|
|
7149
|
-
o("tr",
|
|
7168
|
+
o("tr", pr, [
|
|
7150
7169
|
e[28] || (e[28] = o("td", {
|
|
7151
7170
|
rowspan: "1",
|
|
7152
7171
|
colspan: "1",
|
|
@@ -7155,13 +7174,13 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7155
7174
|
ne("SeaLevel"),
|
|
7156
7175
|
o("span", { class: "unit" }, "m")
|
|
7157
7176
|
], -1)),
|
|
7158
|
-
(
|
|
7177
|
+
(m(!0), u(V, null, $(i.tableData.seaLevel, (x, M) => (m(), u("td", {
|
|
7159
7178
|
rowspan: "1",
|
|
7160
7179
|
colspan: "1",
|
|
7161
|
-
key: `SeaLevel${
|
|
7180
|
+
key: `SeaLevel${M}${x}`
|
|
7162
7181
|
}, I(x), 1))), 128))
|
|
7163
7182
|
]),
|
|
7164
|
-
o("tr",
|
|
7183
|
+
o("tr", mr, [
|
|
7165
7184
|
e[29] || (e[29] = o("td", {
|
|
7166
7185
|
rowspan: "1",
|
|
7167
7186
|
colspan: "1",
|
|
@@ -7170,38 +7189,38 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7170
7189
|
ne("SeaTemp"),
|
|
7171
7190
|
o("span", { class: "unit" }, "°C")
|
|
7172
7191
|
], -1)),
|
|
7173
|
-
(
|
|
7192
|
+
(m(!0), u(V, null, $(i.tableData.seaTemp, (x, M) => (m(), u("td", {
|
|
7174
7193
|
rowspan: "1",
|
|
7175
7194
|
colspan: "1",
|
|
7176
|
-
key: `SeaTemp${
|
|
7195
|
+
key: `SeaTemp${M}${x}`
|
|
7177
7196
|
}, I(x), 1))), 128))
|
|
7178
7197
|
])
|
|
7179
7198
|
], 512), [
|
|
7180
7199
|
[Oe, i.activeIndex === 3]
|
|
7181
7200
|
]),
|
|
7182
|
-
i.activeIndex === 3 ? (
|
|
7201
|
+
i.activeIndex === 3 ? (m(), u("div", ur, e[30] || (e[30] = [
|
|
7183
7202
|
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
7203
|
]))) : J("", !0),
|
|
7185
|
-
Fe(o("table",
|
|
7186
|
-
o("tr",
|
|
7187
|
-
(
|
|
7204
|
+
Fe(o("table", gr, [
|
|
7205
|
+
o("tr", yr, [
|
|
7206
|
+
(m(!0), u(V, null, $(i.tideTableData, (x, M) => (m(), u("th", {
|
|
7188
7207
|
rowspan: "1",
|
|
7189
7208
|
colspan: "1",
|
|
7190
|
-
key: `Tide-tr-${
|
|
7209
|
+
key: `Tide-tr-${M}${x}`
|
|
7191
7210
|
}, I(x.type) + " Tide", 1))), 128))
|
|
7192
7211
|
]),
|
|
7193
|
-
o("tr",
|
|
7194
|
-
(
|
|
7212
|
+
o("tr", fr, [
|
|
7213
|
+
(m(!0), u(V, null, $(i.tideTableData, (x, M) => (m(), u("td", {
|
|
7195
7214
|
rowspan: "1",
|
|
7196
7215
|
colspan: "1",
|
|
7197
|
-
key: `Tide-date-${
|
|
7216
|
+
key: `Tide-date-${M}${x}`
|
|
7198
7217
|
}, I(s.computeHourHmmLT(x == null ? void 0 : x.date)), 1))), 128))
|
|
7199
7218
|
]),
|
|
7200
|
-
o("tr",
|
|
7201
|
-
(
|
|
7219
|
+
o("tr", Ar, [
|
|
7220
|
+
(m(!0), u(V, null, $(i.tideTableData, (x, M) => (m(), u("td", {
|
|
7202
7221
|
rowspan: "1",
|
|
7203
7222
|
colspan: "1",
|
|
7204
|
-
key: `Tide-height-${
|
|
7223
|
+
key: `Tide-height-${M}${x}`
|
|
7205
7224
|
}, I(s.roundPrecision(x == null ? void 0 : x.height, 2)) + " m", 1))), 128))
|
|
7206
7225
|
]),
|
|
7207
7226
|
e[31] || (e[31] = o("tr", { class: "tr-tide flex-center info" }, [
|
|
@@ -7211,55 +7230,55 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7211
7230
|
[Oe, i.activeIndex === 4]
|
|
7212
7231
|
])
|
|
7213
7232
|
], 512), [
|
|
7214
|
-
[Oe, ((
|
|
7233
|
+
[Oe, ((T = (L = i.tableData) == null ? void 0 : L.hours) == null ? void 0 : T.length) > 0 && i.showTables]
|
|
7215
7234
|
]),
|
|
7216
|
-
Fe(o("div",
|
|
7217
|
-
o("div",
|
|
7218
|
-
o("div",
|
|
7235
|
+
Fe(o("div", wr, [
|
|
7236
|
+
o("div", vr, [
|
|
7237
|
+
o("div", br, [
|
|
7219
7238
|
e[32] || (e[32] = o("div", null, "Wind", -1)),
|
|
7220
7239
|
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
7240
|
]),
|
|
7222
|
-
o("div",
|
|
7241
|
+
o("div", Lr, [
|
|
7223
7242
|
e[33] || (e[33] = o("div", null, "Sig wave", -1)),
|
|
7224
7243
|
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
7244
|
])
|
|
7226
7245
|
]),
|
|
7227
|
-
o("div",
|
|
7228
|
-
o("div",
|
|
7246
|
+
o("div", Cr, [
|
|
7247
|
+
o("div", xr, [
|
|
7229
7248
|
e[34] || (e[34] = o("div", null, "Wind wave", -1)),
|
|
7230
7249
|
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
7250
|
]),
|
|
7232
|
-
o("div",
|
|
7251
|
+
o("div", _r, [
|
|
7233
7252
|
e[35] || (e[35] = o("div", null, "Swell", -1)),
|
|
7234
7253
|
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
7254
|
])
|
|
7236
7255
|
]),
|
|
7237
|
-
o("div",
|
|
7238
|
-
o("div",
|
|
7256
|
+
o("div", Br, [
|
|
7257
|
+
o("div", Ir, [
|
|
7239
7258
|
e[36] || (e[36] = o("div", null, "Current", -1)),
|
|
7240
7259
|
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
7260
|
]),
|
|
7242
|
-
o("div",
|
|
7261
|
+
o("div", Er, [
|
|
7243
7262
|
e[37] || (e[37] = o("div", null, "Sea level", -1)),
|
|
7244
7263
|
o("div", null, I(s.roundPrecision((Ue = i.currentHourData) == null ? void 0 : Ue.height, 1)) + "m", 1)
|
|
7245
7264
|
])
|
|
7246
7265
|
]),
|
|
7247
|
-
o("div",
|
|
7248
|
-
o("div",
|
|
7266
|
+
o("div", kr, [
|
|
7267
|
+
o("div", Dr, [
|
|
7249
7268
|
e[38] || (e[38] = o("div", null, "Sea Temp", -1)),
|
|
7250
7269
|
o("div", null, I(s.roundPrecision((ie = i.currentHourData) == null ? void 0 : ie.sst, 1)) + "°C", 1)
|
|
7251
7270
|
]),
|
|
7252
|
-
o("div",
|
|
7271
|
+
o("div", zr, [
|
|
7253
7272
|
e[39] || (e[39] = o("div", null, "Visibility", -1)),
|
|
7254
7273
|
o("div", null, I(s.roundPrecision((tt = (Ne = i.currentHourData) == null ? void 0 : Ne.weather) == null ? void 0 : tt.visibility, 1)) + "nm", 1)
|
|
7255
7274
|
])
|
|
7256
7275
|
]),
|
|
7257
|
-
o("div",
|
|
7258
|
-
o("div",
|
|
7276
|
+
o("div", Pr, [
|
|
7277
|
+
o("div", Mr, [
|
|
7259
7278
|
e[40] || (e[40] = o("div", null, "Temp", -1)),
|
|
7260
7279
|
o("div", null, I(s.roundPrecision((it = (at = i.currentHourData) == null ? void 0 : at.weather) == null ? void 0 : it.temp, 1)) + "°C", 1)
|
|
7261
7280
|
]),
|
|
7262
|
-
o("div",
|
|
7281
|
+
o("div", Sr, [
|
|
7263
7282
|
e[41] || (e[41] = o("div", null, "Precip", -1)),
|
|
7264
7283
|
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
7284
|
])
|
|
@@ -7268,7 +7287,7 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7268
7287
|
[Oe, !i.showTables]
|
|
7269
7288
|
]),
|
|
7270
7289
|
o("div", {
|
|
7271
|
-
class:
|
|
7290
|
+
class: Z(["more", i.isDay ? "day" : "night"]),
|
|
7272
7291
|
onClick: e[7] || (e[7] = (...x) => s.handleMeteoMore && s.handleMeteoMore(...x))
|
|
7273
7292
|
}, "More >>", 2)
|
|
7274
7293
|
], 2))
|
|
@@ -7277,7 +7296,7 @@ function Tr(a, e, t, r, i, s) {
|
|
|
7277
7296
|
[Oe, i.showMeteo]
|
|
7278
7297
|
]);
|
|
7279
7298
|
}
|
|
7280
|
-
const
|
|
7299
|
+
const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-4c995c6d"]]), Nr = {
|
|
7281
7300
|
name: "IdmWarZone",
|
|
7282
7301
|
props: {
|
|
7283
7302
|
map: {
|
|
@@ -7370,10 +7389,10 @@ const Qr = /* @__PURE__ */ U(_i, [["render", Tr], ["__scopeId", "data-v-d103556a
|
|
|
7370
7389
|
}
|
|
7371
7390
|
}
|
|
7372
7391
|
};
|
|
7373
|
-
function
|
|
7374
|
-
return
|
|
7392
|
+
function Fr(a, e, t, r, i, s) {
|
|
7393
|
+
return m(), u("div");
|
|
7375
7394
|
}
|
|
7376
|
-
const
|
|
7395
|
+
const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
|
|
7377
7396
|
name: "IdmGmdssArea",
|
|
7378
7397
|
props: {
|
|
7379
7398
|
map: {
|
|
@@ -7496,10 +7515,10 @@ const Fr = /* @__PURE__ */ U(Hr, [["render", Nr]]), Or = {
|
|
|
7496
7515
|
}
|
|
7497
7516
|
}
|
|
7498
7517
|
};
|
|
7499
|
-
function
|
|
7500
|
-
return
|
|
7518
|
+
function jr(a, e, t, r, i, s) {
|
|
7519
|
+
return m(), u("div");
|
|
7501
7520
|
}
|
|
7502
|
-
const
|
|
7521
|
+
const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
|
|
7503
7522
|
name: "IdmEcaZone",
|
|
7504
7523
|
props: {
|
|
7505
7524
|
map: {
|
|
@@ -7593,11 +7612,11 @@ const jr = /* @__PURE__ */ U(Or, [["render", Rr]]), Wr = {
|
|
|
7593
7612
|
}
|
|
7594
7613
|
}
|
|
7595
7614
|
};
|
|
7596
|
-
function
|
|
7597
|
-
return
|
|
7615
|
+
function Ur(a, e, t, r, i, s) {
|
|
7616
|
+
return m(), u("div");
|
|
7598
7617
|
}
|
|
7599
|
-
const
|
|
7600
|
-
const
|
|
7618
|
+
const Yr = /* @__PURE__ */ U(Gr, [["render", Ur]]);
|
|
7619
|
+
const Kr = {
|
|
7601
7620
|
name: "IdmAlertZone",
|
|
7602
7621
|
props: {
|
|
7603
7622
|
map: {
|
|
@@ -7730,10 +7749,10 @@ const Yr = {
|
|
|
7730
7749
|
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
7750
|
}
|
|
7732
7751
|
}
|
|
7733
|
-
},
|
|
7734
|
-
function
|
|
7752
|
+
}, Xr = { id: "idm-gl3-zone-info" }, Jr = ["innerHTML"];
|
|
7753
|
+
function qr(a, e, t, r, i, s) {
|
|
7735
7754
|
var n;
|
|
7736
|
-
return Fe((
|
|
7755
|
+
return Fe((m(), u("div", Xr, [
|
|
7737
7756
|
o("div", {
|
|
7738
7757
|
class: "iconfont close",
|
|
7739
7758
|
onClick: e[0] || (e[0] = (l) => i.showZone = !1)
|
|
@@ -7741,13 +7760,13 @@ function Jr(a, e, t, r, i, s) {
|
|
|
7741
7760
|
o("div", {
|
|
7742
7761
|
class: "rich-context",
|
|
7743
7762
|
innerHTML: (n = i.form) == null ? void 0 : n.name
|
|
7744
|
-
}, null, 8,
|
|
7763
|
+
}, null, 8, Jr)
|
|
7745
7764
|
], 512)), [
|
|
7746
7765
|
[Oe, i.showZone]
|
|
7747
7766
|
]);
|
|
7748
7767
|
}
|
|
7749
|
-
const
|
|
7750
|
-
const
|
|
7768
|
+
const Vr = /* @__PURE__ */ U(Kr, [["render", qr]]);
|
|
7769
|
+
const Zr = {
|
|
7751
7770
|
name: "IdmPort",
|
|
7752
7771
|
props: {
|
|
7753
7772
|
map: {
|
|
@@ -7842,37 +7861,37 @@ const Vr = {
|
|
|
7842
7861
|
a.forecastModel = this.forecastModel, this.$emit("meteoMore", a);
|
|
7843
7862
|
}
|
|
7844
7863
|
}
|
|
7845
|
-
},
|
|
7864
|
+
}, $r = {
|
|
7846
7865
|
ref: "idmPortInfo",
|
|
7847
7866
|
id: "port-info"
|
|
7848
|
-
},
|
|
7867
|
+
}, es = { class: "port-box" }, ts = { class: "flex-start" }, as = { class: "flex-start" }, is = { class: "flex-start" }, rs = {
|
|
7849
7868
|
class: "flex-start",
|
|
7850
7869
|
style: { "align-items": "flex-start" }
|
|
7851
|
-
},
|
|
7852
|
-
function
|
|
7853
|
-
return Fe((
|
|
7870
|
+
}, ss = { class: "meteo-forecast flex-end" };
|
|
7871
|
+
function os(a, e, t, r, i, s) {
|
|
7872
|
+
return Fe((m(), u("div", $r, [
|
|
7854
7873
|
o("div", {
|
|
7855
7874
|
class: "close iconfont",
|
|
7856
7875
|
onClick: e[0] || (e[0] = (n) => i.showPort = !1)
|
|
7857
7876
|
}, ""),
|
|
7858
|
-
o("div",
|
|
7859
|
-
o("div",
|
|
7877
|
+
o("div", es, [
|
|
7878
|
+
o("div", ts, [
|
|
7860
7879
|
e[2] || (e[2] = o("label", null, "Name : ", -1)),
|
|
7861
7880
|
o("span", null, I(i.form.name), 1)
|
|
7862
7881
|
]),
|
|
7863
|
-
o("div",
|
|
7882
|
+
o("div", as, [
|
|
7864
7883
|
e[3] || (e[3] = o("label", null, "Position : ", -1)),
|
|
7865
7884
|
o("span", null, I(s.computeLat(i.form.lat)) + ", " + I(s.computeLng(i.form.lng)), 1)
|
|
7866
7885
|
]),
|
|
7867
|
-
o("div",
|
|
7886
|
+
o("div", is, [
|
|
7868
7887
|
e[4] || (e[4] = o("label", null, "LoCode : ", -1)),
|
|
7869
7888
|
o("span", null, I(i.form.loCode || "-"), 1)
|
|
7870
7889
|
]),
|
|
7871
|
-
o("div",
|
|
7890
|
+
o("div", rs, [
|
|
7872
7891
|
e[5] || (e[5] = o("label", null, "Region : ", -1)),
|
|
7873
7892
|
o("span", null, I(i.form.zoneName || "-"), 1)
|
|
7874
7893
|
]),
|
|
7875
|
-
o("div",
|
|
7894
|
+
o("div", ss, [
|
|
7876
7895
|
o("span", {
|
|
7877
7896
|
onClick: e[1] || (e[1] = (n) => s.handleClickMeteo(i.form))
|
|
7878
7897
|
}, "Meteo Forecast")
|
|
@@ -7882,7 +7901,7 @@ function ss(a, e, t, r, i, s) {
|
|
|
7882
7901
|
[Oe, i.showPort]
|
|
7883
7902
|
]);
|
|
7884
7903
|
}
|
|
7885
|
-
const
|
|
7904
|
+
const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-39da1804"]]), ls = {
|
|
7886
7905
|
name: "IdmLoadLine",
|
|
7887
7906
|
props: {
|
|
7888
7907
|
map: {
|
|
@@ -7955,10 +7974,10 @@ const os = /* @__PURE__ */ U(Vr, [["render", ss], ["__scopeId", "data-v-2fc5fc5e
|
|
|
7955
7974
|
}
|
|
7956
7975
|
}
|
|
7957
7976
|
};
|
|
7958
|
-
function
|
|
7959
|
-
return
|
|
7977
|
+
function hs(a, e, t, r, i, s) {
|
|
7978
|
+
return m(), u("div");
|
|
7960
7979
|
}
|
|
7961
|
-
const
|
|
7980
|
+
const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
|
|
7962
7981
|
name: "IdmTimezone",
|
|
7963
7982
|
props: {
|
|
7964
7983
|
map: {
|
|
@@ -8126,10 +8145,10 @@ const hs = /* @__PURE__ */ U(ns, [["render", ls]]), cs = {
|
|
|
8126
8145
|
}
|
|
8127
8146
|
}
|
|
8128
8147
|
};
|
|
8129
|
-
function
|
|
8130
|
-
return
|
|
8148
|
+
function ps(a, e, t, r, i, s) {
|
|
8149
|
+
return m(), u("div");
|
|
8131
8150
|
}
|
|
8132
|
-
const
|
|
8151
|
+
const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
|
|
8133
8152
|
name: "IdmVoluntaryReportingArea",
|
|
8134
8153
|
props: {
|
|
8135
8154
|
map: {
|
|
@@ -8220,10 +8239,10 @@ const ps = /* @__PURE__ */ U(cs, [["render", ds]]), ms = {
|
|
|
8220
8239
|
}
|
|
8221
8240
|
}
|
|
8222
8241
|
};
|
|
8223
|
-
function
|
|
8224
|
-
return
|
|
8242
|
+
function gs(a, e, t, r, i, s) {
|
|
8243
|
+
return m(), u("div");
|
|
8225
8244
|
}
|
|
8226
|
-
const
|
|
8245
|
+
const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
|
|
8227
8246
|
name: "IdmSpecialArea",
|
|
8228
8247
|
props: {
|
|
8229
8248
|
map: {
|
|
@@ -8316,10 +8335,10 @@ const gs = /* @__PURE__ */ U(ms, [["render", us]]), ys = {
|
|
|
8316
8335
|
}
|
|
8317
8336
|
}
|
|
8318
8337
|
};
|
|
8319
|
-
function
|
|
8320
|
-
return
|
|
8338
|
+
function As(a, e, t, r, i, s) {
|
|
8339
|
+
return m(), u("div");
|
|
8321
8340
|
}
|
|
8322
|
-
const
|
|
8341
|
+
const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
|
|
8323
8342
|
name: "IdmTerminator",
|
|
8324
8343
|
props: {
|
|
8325
8344
|
map: {
|
|
@@ -8371,11 +8390,11 @@ const As = /* @__PURE__ */ U(ys, [["render", fs]]), ws = {
|
|
|
8371
8390
|
}
|
|
8372
8391
|
}
|
|
8373
8392
|
};
|
|
8374
|
-
function
|
|
8375
|
-
return
|
|
8393
|
+
function bs(a, e, t, r, i, s) {
|
|
8394
|
+
return m(), u("div");
|
|
8376
8395
|
}
|
|
8377
|
-
const
|
|
8378
|
-
const
|
|
8396
|
+
const Ls = /* @__PURE__ */ U(vs, [["render", bs]]);
|
|
8397
|
+
const Cs = {
|
|
8379
8398
|
name: "IdmLatLng",
|
|
8380
8399
|
props: {
|
|
8381
8400
|
map: {
|
|
@@ -8482,7 +8501,7 @@ const Ls = {
|
|
|
8482
8501
|
handleZoomEnd() {
|
|
8483
8502
|
var e;
|
|
8484
8503
|
const a = this.handleComputeLatLngs();
|
|
8485
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
8504
|
+
(e = this.map) == null || e.getSource(this.source).setData(S.featureCollection(a));
|
|
8486
8505
|
},
|
|
8487
8506
|
handleRender() {
|
|
8488
8507
|
if (this.map) {
|
|
@@ -8531,8 +8550,8 @@ const Ls = {
|
|
|
8531
8550
|
}
|
|
8532
8551
|
}
|
|
8533
8552
|
};
|
|
8534
|
-
function
|
|
8535
|
-
return i.lngLat ? (
|
|
8553
|
+
function xs(a, e, t, r, i, s) {
|
|
8554
|
+
return i.lngLat ? (m(), u("div", {
|
|
8536
8555
|
key: 0,
|
|
8537
8556
|
class: "lat-lng-tip",
|
|
8538
8557
|
style: le({ right: i.right + "px", bottom: t.bottom })
|
|
@@ -8542,7 +8561,7 @@ function Cs(a, e, t, r, i, s) {
|
|
|
8542
8561
|
o("span", null, I(i.lngLat.lng.pretty), 1)
|
|
8543
8562
|
], 4)) : J("", !0);
|
|
8544
8563
|
}
|
|
8545
|
-
const pt = /* @__PURE__ */ U(
|
|
8564
|
+
const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7"]]), _s = {
|
|
8546
8565
|
name: "IdmMeasure",
|
|
8547
8566
|
props: {
|
|
8548
8567
|
map: {
|
|
@@ -8577,7 +8596,7 @@ const pt = /* @__PURE__ */ U(Ls, [["render", Cs], ["__scopeId", "data-v-ad66a24c
|
|
|
8577
8596
|
else {
|
|
8578
8597
|
(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
8598
|
let r = this.geojson.find((i) => !i.closed);
|
|
8580
|
-
r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r =
|
|
8599
|
+
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
8600
|
}
|
|
8582
8601
|
},
|
|
8583
8602
|
immediate: !0
|
|
@@ -8669,8 +8688,8 @@ const pt = /* @__PURE__ */ U(Ls, [["render", Cs], ["__scopeId", "data-v-ad66a24c
|
|
|
8669
8688
|
p.features = p.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== c[1]), this.handlePointUpdate(p);
|
|
8670
8689
|
} else if (e !== "marker-label" && this.show) {
|
|
8671
8690
|
let c = this.geojson.at(-1);
|
|
8672
|
-
c || (c =
|
|
8673
|
-
const p =
|
|
8691
|
+
c || (c = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((h) => h.geometry.type === "Point");
|
|
8692
|
+
const p = S.feature(
|
|
8674
8693
|
{
|
|
8675
8694
|
type: "Point",
|
|
8676
8695
|
coordinates: [a.lngLat.lng, a.lngLat.lat]
|
|
@@ -8693,7 +8712,7 @@ const pt = /* @__PURE__ */ U(Ls, [["render", Cs], ["__scopeId", "data-v-ad66a24c
|
|
|
8693
8712
|
t = se.roundPrecision(t + h, 2);
|
|
8694
8713
|
let A;
|
|
8695
8714
|
l.mode === "RL" ? A = se.convertToMonotonicLng([c, p]) : A = se.convertToMonotonicLng(Re.interpolateCoordinates(c, p, 200));
|
|
8696
|
-
const v =
|
|
8715
|
+
const v = S.lineString(A.map((E) => [E.lng, E.lat]));
|
|
8697
8716
|
v.properties.dist = h, v.properties.bearing = d, v.properties.total = t, r.push(v);
|
|
8698
8717
|
}
|
|
8699
8718
|
e.push(...r), a.total = t;
|
|
@@ -8701,14 +8720,14 @@ const pt = /* @__PURE__ */ U(Ls, [["render", Cs], ["__scopeId", "data-v-ad66a24c
|
|
|
8701
8720
|
return this.handleRender(a), a;
|
|
8702
8721
|
},
|
|
8703
8722
|
handleTmpPointUpdate(a, e, t, r) {
|
|
8704
|
-
const i =
|
|
8723
|
+
const i = S.featureCollection([]);
|
|
8705
8724
|
let s, n;
|
|
8706
8725
|
if (e) {
|
|
8707
8726
|
const c = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
|
|
8708
8727
|
s = Re.calculateDistance(p, h, c.mode === "RL", 1), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
|
|
8709
8728
|
let d;
|
|
8710
8729
|
c.mode === "RL" ? d = se.convertToMonotonicLng([p, h]) : d = se.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
|
|
8711
|
-
const A =
|
|
8730
|
+
const A = S.lineString(d.map((v) => [v.lng, v.lat]));
|
|
8712
8731
|
A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
|
|
8713
8732
|
}
|
|
8714
8733
|
if (r) {
|
|
@@ -8716,7 +8735,7 @@ const pt = /* @__PURE__ */ U(Ls, [["render", Cs], ["__scopeId", "data-v-ad66a24c
|
|
|
8716
8735
|
s = Re.calculateDistance(p, h, c.mode === "RL", 1), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
|
|
8717
8736
|
let d;
|
|
8718
8737
|
c.mode === "RL" ? d = se.convertToMonotonicLng([p, h]) : d = se.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
|
|
8719
|
-
const A =
|
|
8738
|
+
const A = S.lineString(d.map((v) => [v.lng, v.lat]));
|
|
8720
8739
|
A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
|
|
8721
8740
|
}
|
|
8722
8741
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
@@ -8767,14 +8786,14 @@ const pt = /* @__PURE__ */ U(Ls, [["render", Cs], ["__scopeId", "data-v-ad66a24c
|
|
|
8767
8786
|
handleMove(a) {
|
|
8768
8787
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
8769
8788
|
let e = this.geojson.at(-1);
|
|
8770
|
-
e || (e =
|
|
8789
|
+
e || (e = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
8771
8790
|
const t = e.features.filter((r) => r.geometry.type === "Point");
|
|
8772
8791
|
t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
|
|
8773
8792
|
},
|
|
8774
8793
|
handleDblClick(a) {
|
|
8775
8794
|
a.preventDefault();
|
|
8776
8795
|
let e = this.geojson.at(-1);
|
|
8777
|
-
e.closed = !0, this.handleRender(e), e =
|
|
8796
|
+
e.closed = !0, this.handleRender(e), e = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
|
|
8778
8797
|
},
|
|
8779
8798
|
handleRender(a) {
|
|
8780
8799
|
var e;
|
|
@@ -8837,11 +8856,11 @@ const pt = /* @__PURE__ */ U(Ls, [["render", Cs], ["__scopeId", "data-v-ad66a24c
|
|
|
8837
8856
|
}
|
|
8838
8857
|
}
|
|
8839
8858
|
};
|
|
8840
|
-
function
|
|
8841
|
-
return
|
|
8859
|
+
function Bs(a, e, t, r, i, s) {
|
|
8860
|
+
return m(), u("div");
|
|
8842
8861
|
}
|
|
8843
|
-
const
|
|
8844
|
-
const
|
|
8862
|
+
const Is = /* @__PURE__ */ U(_s, [["render", Bs]]);
|
|
8863
|
+
const Es = {
|
|
8845
8864
|
name: "IdmENC",
|
|
8846
8865
|
props: {
|
|
8847
8866
|
map: {
|
|
@@ -8896,15 +8915,15 @@ const Is = {
|
|
|
8896
8915
|
this.vendor = this.permission & Ze.LEVEL.Supper ? "hi" : "i4";
|
|
8897
8916
|
},
|
|
8898
8917
|
methods: {}
|
|
8899
|
-
},
|
|
8900
|
-
function
|
|
8918
|
+
}, ks = { key: 0 }, Ds = { class: "bar-item" };
|
|
8919
|
+
function zs(a, e, t, r, i, s) {
|
|
8901
8920
|
const n = R("ElTooltip");
|
|
8902
|
-
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (
|
|
8921
|
+
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (m(), u("div", ks, [
|
|
8903
8922
|
o("div", {
|
|
8904
8923
|
class: "menu-bar-box",
|
|
8905
8924
|
style: le({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
8906
8925
|
}, [
|
|
8907
|
-
o("div",
|
|
8926
|
+
o("div", Ds, [
|
|
8908
8927
|
H(n, {
|
|
8909
8928
|
placement: "left",
|
|
8910
8929
|
effect: "light",
|
|
@@ -8913,7 +8932,7 @@ function Ds(a, e, t, r, i, s) {
|
|
|
8913
8932
|
}, {
|
|
8914
8933
|
default: Ie(() => [
|
|
8915
8934
|
o("div", {
|
|
8916
|
-
class:
|
|
8935
|
+
class: Z(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
8917
8936
|
onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
|
|
8918
8937
|
}, e[2] || (e[2] = [
|
|
8919
8938
|
o("span", { class: "iconfont" }, "HI", -1)
|
|
@@ -8929,7 +8948,7 @@ function Ds(a, e, t, r, i, s) {
|
|
|
8929
8948
|
}, {
|
|
8930
8949
|
default: Ie(() => [
|
|
8931
8950
|
o("div", {
|
|
8932
|
-
class:
|
|
8951
|
+
class: Z(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
8933
8952
|
onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
|
|
8934
8953
|
}, e[3] || (e[3] = [
|
|
8935
8954
|
o("span", { class: "iconfont" }, "I4", -1)
|
|
@@ -8941,7 +8960,7 @@ function Ds(a, e, t, r, i, s) {
|
|
|
8941
8960
|
], 4)
|
|
8942
8961
|
])) : J("", !0);
|
|
8943
8962
|
}
|
|
8944
|
-
const
|
|
8963
|
+
const Ps = /* @__PURE__ */ U(Es, [["render", zs], ["__scopeId", "data-v-8eecd76d"]]), Ms = {
|
|
8945
8964
|
name: "IdmWorld12nm",
|
|
8946
8965
|
props: {
|
|
8947
8966
|
map: {
|
|
@@ -9000,11 +9019,11 @@ const zs = /* @__PURE__ */ U(Is, [["render", Ds], ["__scopeId", "data-v-8ff97b39
|
|
|
9000
9019
|
}
|
|
9001
9020
|
}
|
|
9002
9021
|
};
|
|
9003
|
-
function
|
|
9022
|
+
function Ss(a, e, t, r, i, s) {
|
|
9004
9023
|
return null;
|
|
9005
9024
|
}
|
|
9006
|
-
const
|
|
9007
|
-
const
|
|
9025
|
+
const Ts = /* @__PURE__ */ U(Ms, [["render", Ss]]);
|
|
9026
|
+
const Qs = {
|
|
9008
9027
|
name: "IdmWorldMarine",
|
|
9009
9028
|
props: {
|
|
9010
9029
|
map: {
|
|
@@ -9044,10 +9063,10 @@ const Ts = {
|
|
|
9044
9063
|
}
|
|
9045
9064
|
}
|
|
9046
9065
|
};
|
|
9047
|
-
function
|
|
9066
|
+
function Hs(a, e, t, r, i, s) {
|
|
9048
9067
|
return null;
|
|
9049
9068
|
}
|
|
9050
|
-
const
|
|
9069
|
+
const Ns = /* @__PURE__ */ U(Qs, [["render", Hs]]), Fs = {
|
|
9051
9070
|
name: "IdmChinaRoute",
|
|
9052
9071
|
props: {
|
|
9053
9072
|
map: {
|
|
@@ -9085,11 +9104,11 @@ const Hs = /* @__PURE__ */ U(Ts, [["render", Qs]]), Ns = {
|
|
|
9085
9104
|
}
|
|
9086
9105
|
}
|
|
9087
9106
|
};
|
|
9088
|
-
function
|
|
9107
|
+
function Os(a, e, t, r, i, s) {
|
|
9089
9108
|
return null;
|
|
9090
9109
|
}
|
|
9091
|
-
const
|
|
9092
|
-
const
|
|
9110
|
+
const Rs = /* @__PURE__ */ U(Fs, [["render", Os]]);
|
|
9111
|
+
const js = {
|
|
9093
9112
|
name: "IdmGLV2",
|
|
9094
9113
|
components: {
|
|
9095
9114
|
IdmGlLayer: ia,
|
|
@@ -9108,23 +9127,23 @@ const Rs = {
|
|
|
9108
9127
|
IdmVisibility: mi,
|
|
9109
9128
|
IdmWaterTemp: fi,
|
|
9110
9129
|
IdmTemp: bi,
|
|
9111
|
-
IdmWarZone:
|
|
9112
|
-
IdmGmdssArea:
|
|
9113
|
-
IdmEcaZone:
|
|
9114
|
-
IdmAlertZone:
|
|
9115
|
-
IdmPort:
|
|
9116
|
-
IdmLoadLine:
|
|
9117
|
-
IdmTimezone:
|
|
9118
|
-
IdmVRA:
|
|
9119
|
-
IdmSpecialArea:
|
|
9120
|
-
IdmTerminator:
|
|
9130
|
+
IdmWarZone: Or,
|
|
9131
|
+
IdmGmdssArea: Wr,
|
|
9132
|
+
IdmEcaZone: Yr,
|
|
9133
|
+
IdmAlertZone: Vr,
|
|
9134
|
+
IdmPort: ns,
|
|
9135
|
+
IdmLoadLine: cs,
|
|
9136
|
+
IdmTimezone: ms,
|
|
9137
|
+
IdmVRA: ys,
|
|
9138
|
+
IdmSpecialArea: ws,
|
|
9139
|
+
IdmTerminator: Ls,
|
|
9121
9140
|
IdmLatLng: pt,
|
|
9122
|
-
IdmMeasure:
|
|
9123
|
-
IdmPoint:
|
|
9124
|
-
IdmENC:
|
|
9125
|
-
IdmWorld12nm:
|
|
9126
|
-
IdmWorldMarine:
|
|
9127
|
-
IdmChinaRoute:
|
|
9141
|
+
IdmMeasure: Is,
|
|
9142
|
+
IdmPoint: Hr,
|
|
9143
|
+
IdmENC: Ps,
|
|
9144
|
+
IdmWorld12nm: Ts,
|
|
9145
|
+
IdmWorldMarine: Ns,
|
|
9146
|
+
IdmChinaRoute: Rs
|
|
9128
9147
|
},
|
|
9129
9148
|
props: {
|
|
9130
9149
|
map: {
|
|
@@ -9204,11 +9223,11 @@ const Rs = {
|
|
|
9204
9223
|
},
|
|
9205
9224
|
activeWeatherLayers: {
|
|
9206
9225
|
handler() {
|
|
9207
|
-
var t, r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b,
|
|
9226
|
+
var t, r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b, g, C, y, L, T;
|
|
9208
9227
|
if (!this.map)
|
|
9209
9228
|
return !1;
|
|
9210
9229
|
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 ? (
|
|
9230
|
+
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
9231
|
},
|
|
9213
9232
|
immediate: !0
|
|
9214
9233
|
},
|
|
@@ -9281,38 +9300,38 @@ const Rs = {
|
|
|
9281
9300
|
}
|
|
9282
9301
|
});
|
|
9283
9302
|
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
|
|
9303
|
+
const g = (c = b == null ? void 0 : b.data) == null ? void 0 : c.data, C = [];
|
|
9304
|
+
for (const L in g)
|
|
9286
9305
|
L !== "tropicals" && C.push(
|
|
9287
|
-
Qe.get(
|
|
9306
|
+
Qe.get(g[L], {
|
|
9288
9307
|
headers: {
|
|
9289
9308
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9290
9309
|
key: L
|
|
9291
9310
|
},
|
|
9292
|
-
responseType: /\.(jpg|png)$/.test(
|
|
9293
|
-
}).catch((
|
|
9294
|
-
console.log(`[${L}] fetch layer error: ${
|
|
9311
|
+
responseType: /\.(jpg|png)$/.test(g[L]) ? "blob" : "json"
|
|
9312
|
+
}).catch((T) => {
|
|
9313
|
+
console.log(`[${L}] fetch layer error: ${T}`);
|
|
9295
9314
|
})
|
|
9296
9315
|
);
|
|
9297
9316
|
const y = await Promise.all(C);
|
|
9298
9317
|
this.weatherLayers = {}, y.map((L) => {
|
|
9299
9318
|
var F, N, j, G;
|
|
9300
|
-
const
|
|
9301
|
-
D &&
|
|
9302
|
-
raw:
|
|
9319
|
+
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;
|
|
9320
|
+
D && T && (this.weatherLayers[D] = {
|
|
9321
|
+
raw: T,
|
|
9303
9322
|
type: ((G = L == null ? void 0 : L.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
|
|
9304
9323
|
etime: b.data.etime
|
|
9305
9324
|
});
|
|
9306
|
-
}),
|
|
9325
|
+
}), g.tropicals && Qe.get(g.tropicals, {
|
|
9307
9326
|
headers: {
|
|
9308
9327
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9309
9328
|
key: "tropicals"
|
|
9310
9329
|
}
|
|
9311
9330
|
}).then((L) => {
|
|
9312
9331
|
var F, N, j;
|
|
9313
|
-
const
|
|
9332
|
+
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
9333
|
this.weatherLayers[D] = {
|
|
9315
|
-
data:
|
|
9334
|
+
data: T,
|
|
9316
9335
|
active: !0,
|
|
9317
9336
|
cached: !1,
|
|
9318
9337
|
type: "json",
|
|
@@ -9322,19 +9341,19 @@ const Rs = {
|
|
|
9322
9341
|
});
|
|
9323
9342
|
}
|
|
9324
9343
|
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
|
|
9344
|
+
const g = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, C = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
|
|
9326
9345
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
9327
9346
|
type: "json",
|
|
9328
|
-
direction:
|
|
9347
|
+
direction: g,
|
|
9329
9348
|
height: { raw: C },
|
|
9330
9349
|
etime: b.data.etime
|
|
9331
9350
|
};
|
|
9332
9351
|
}
|
|
9333
9352
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
9334
|
-
const
|
|
9353
|
+
const g = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, C = (A = this.weatherLayers["current-speed"]) == null ? void 0 : A.raw;
|
|
9335
9354
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
9336
9355
|
type: "json",
|
|
9337
|
-
direction:
|
|
9356
|
+
direction: g,
|
|
9338
9357
|
speed: { raw: C },
|
|
9339
9358
|
etime: b.data.etime
|
|
9340
9359
|
};
|
|
@@ -9372,8 +9391,8 @@ const Rs = {
|
|
|
9372
9391
|
);
|
|
9373
9392
|
const E = await Promise.all(v);
|
|
9374
9393
|
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), _ = (
|
|
9394
|
+
var f, b, g;
|
|
9395
|
+
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
9396
|
this.otherLayers[_] = k;
|
|
9378
9397
|
});
|
|
9379
9398
|
}
|
|
@@ -9395,8 +9414,8 @@ const Rs = {
|
|
|
9395
9414
|
})
|
|
9396
9415
|
);
|
|
9397
9416
|
(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), _ = (
|
|
9417
|
+
var f, b, g;
|
|
9418
|
+
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
9419
|
this.otherLayers[_] = k;
|
|
9401
9420
|
});
|
|
9402
9421
|
}
|
|
@@ -9463,40 +9482,40 @@ const Rs = {
|
|
|
9463
9482
|
if (w === "swell") {
|
|
9464
9483
|
k = !0;
|
|
9465
9484
|
const f = ((h = this.weatherLayers[w]) == null ? void 0 : h.direction) || {};
|
|
9466
|
-
for (const
|
|
9467
|
-
if (
|
|
9468
|
-
const C = f[
|
|
9485
|
+
for (const g in f)
|
|
9486
|
+
if (g > l && g < c && (!(i <= this.zoom) || g % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9487
|
+
const C = f[g].lng;
|
|
9469
9488
|
s > n ? C.forEach((y, L) => {
|
|
9470
|
-
var
|
|
9489
|
+
var T, D, F, N, j, G;
|
|
9471
9490
|
if (i < 2) {
|
|
9472
9491
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9473
|
-
const W =
|
|
9474
|
-
val: ((
|
|
9475
|
-
spd: (F = f[
|
|
9492
|
+
const W = S.point([y, g], {
|
|
9493
|
+
val: ((T = f[g].val) == null ? void 0 : T[L]) || ((D = f[g].dir) == null ? void 0 : D[L]),
|
|
9494
|
+
spd: (F = f[g].spd) == null ? void 0 : F[L]
|
|
9476
9495
|
});
|
|
9477
9496
|
_.push(W);
|
|
9478
9497
|
}
|
|
9479
9498
|
} 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[
|
|
9499
|
+
const W = S.point([y, g], {
|
|
9500
|
+
val: ((N = f[g].val) == null ? void 0 : N[L]) || ((j = f[g].dir) == null ? void 0 : j[L]),
|
|
9501
|
+
spd: (G = f[g].spd) == null ? void 0 : G[L]
|
|
9483
9502
|
});
|
|
9484
9503
|
_.push(W);
|
|
9485
9504
|
}
|
|
9486
9505
|
}) : C.forEach((y, L) => {
|
|
9487
|
-
var
|
|
9506
|
+
var T, D, F, N, j, G;
|
|
9488
9507
|
if (s < 2) {
|
|
9489
9508
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9490
|
-
const W =
|
|
9491
|
-
val: ((
|
|
9492
|
-
spd: (F = f[
|
|
9509
|
+
const W = S.point([y, g], {
|
|
9510
|
+
val: ((T = f[g].val) == null ? void 0 : T[L]) || ((D = f[g].dir) == null ? void 0 : D[L]),
|
|
9511
|
+
spd: (F = f[g].spd) == null ? void 0 : F[L]
|
|
9493
9512
|
});
|
|
9494
9513
|
_.push(W);
|
|
9495
9514
|
}
|
|
9496
9515
|
} 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[
|
|
9516
|
+
const W = S.point([y, g], {
|
|
9517
|
+
val: ((N = f[g].val) == null ? void 0 : N[L]) || ((j = f[g].dir) == null ? void 0 : j[L]),
|
|
9518
|
+
spd: (G = f[g].spd) == null ? void 0 : G[L]
|
|
9500
9519
|
});
|
|
9501
9520
|
_.push(W);
|
|
9502
9521
|
}
|
|
@@ -9506,61 +9525,61 @@ const Rs = {
|
|
|
9506
9525
|
const b = this.weatherLayers[w].height;
|
|
9507
9526
|
if (b) {
|
|
9508
9527
|
if (!b.data) {
|
|
9509
|
-
const
|
|
9528
|
+
const g = [];
|
|
9510
9529
|
for (const C in (d = b.raw) == null ? void 0 : d.LineString) {
|
|
9511
9530
|
const y = b.raw.LineString[C];
|
|
9512
9531
|
for (const L of y)
|
|
9513
|
-
|
|
9514
|
-
|
|
9532
|
+
g.push(
|
|
9533
|
+
S.lineString(L, {
|
|
9515
9534
|
val: Number(C)
|
|
9516
9535
|
})
|
|
9517
9536
|
);
|
|
9518
|
-
b.data =
|
|
9537
|
+
b.data = S.featureCollection(g);
|
|
9519
9538
|
}
|
|
9520
9539
|
}
|
|
9521
9540
|
if (b.data) {
|
|
9522
|
-
const
|
|
9523
|
-
_ = _.concat(
|
|
9541
|
+
const g = this.handleBboxClip(b.data, r);
|
|
9542
|
+
_ = _.concat(g);
|
|
9524
9543
|
}
|
|
9525
9544
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
|
|
9526
9545
|
}
|
|
9527
9546
|
} else if (w === "current" && this.showCurrentIsoband) {
|
|
9528
9547
|
k = !0;
|
|
9529
9548
|
const f = ((A = this.weatherLayers[w]) == null ? void 0 : A.direction) || {};
|
|
9530
|
-
for (const
|
|
9531
|
-
if (
|
|
9532
|
-
const C = f[
|
|
9549
|
+
for (const g in f)
|
|
9550
|
+
if (g > l && g < c && (!(i <= this.zoom) || g % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9551
|
+
const C = f[g].lng;
|
|
9533
9552
|
s > n ? C.forEach((y, L) => {
|
|
9534
|
-
var
|
|
9553
|
+
var T, D, F, N, j, G;
|
|
9535
9554
|
if (i < 2) {
|
|
9536
9555
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9537
|
-
const W =
|
|
9538
|
-
val: ((
|
|
9539
|
-
spd: (F = f[
|
|
9556
|
+
const W = S.point([y, g], {
|
|
9557
|
+
val: ((T = f[g].val) == null ? void 0 : T[L]) || ((D = f[g].dir) == null ? void 0 : D[L]),
|
|
9558
|
+
spd: (F = f[g].spd) == null ? void 0 : F[L]
|
|
9540
9559
|
});
|
|
9541
9560
|
_.push(W);
|
|
9542
9561
|
}
|
|
9543
9562
|
} 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[
|
|
9563
|
+
const W = S.point([y, g], {
|
|
9564
|
+
val: ((N = f[g].val) == null ? void 0 : N[L]) || ((j = f[g].dir) == null ? void 0 : j[L]),
|
|
9565
|
+
spd: (G = f[g].spd) == null ? void 0 : G[L]
|
|
9547
9566
|
});
|
|
9548
9567
|
_.push(W);
|
|
9549
9568
|
}
|
|
9550
9569
|
}) : C.forEach((y, L) => {
|
|
9551
|
-
var
|
|
9570
|
+
var T, D, F, N, j, G;
|
|
9552
9571
|
if (s < 2) {
|
|
9553
9572
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9554
|
-
const W =
|
|
9555
|
-
val: ((
|
|
9556
|
-
spd: (F = f[
|
|
9573
|
+
const W = S.point([y, g], {
|
|
9574
|
+
val: ((T = f[g].val) == null ? void 0 : T[L]) || ((D = f[g].dir) == null ? void 0 : D[L]),
|
|
9575
|
+
spd: (F = f[g].spd) == null ? void 0 : F[L]
|
|
9557
9576
|
});
|
|
9558
9577
|
_.push(W);
|
|
9559
9578
|
}
|
|
9560
9579
|
} 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[
|
|
9580
|
+
const W = S.point([y, g], {
|
|
9581
|
+
val: ((N = f[g].val) == null ? void 0 : N[L]) || ((j = f[g].dir) == null ? void 0 : j[L]),
|
|
9582
|
+
spd: (G = f[g].spd) == null ? void 0 : G[L]
|
|
9564
9583
|
});
|
|
9565
9584
|
_.push(W);
|
|
9566
9585
|
}
|
|
@@ -9573,53 +9592,53 @@ const Rs = {
|
|
|
9573
9592
|
const C = [];
|
|
9574
9593
|
for (const y in (v = b.raw) == null ? void 0 : v.Polygon) {
|
|
9575
9594
|
const L = b.raw.Polygon[y];
|
|
9576
|
-
for (const
|
|
9595
|
+
for (const T of L)
|
|
9577
9596
|
C.push(
|
|
9578
|
-
|
|
9597
|
+
S.polygon(T, {
|
|
9579
9598
|
val: Number(y)
|
|
9580
9599
|
})
|
|
9581
9600
|
);
|
|
9582
9601
|
}
|
|
9583
|
-
b.data =
|
|
9602
|
+
b.data = S.featureCollection(C);
|
|
9584
9603
|
}
|
|
9585
|
-
const
|
|
9586
|
-
_ = _.concat(
|
|
9604
|
+
const g = i < this.zoom ? b.data.features.filter((C) => C.properties.val > 0.5) : b.data.features;
|
|
9605
|
+
_ = _.concat(g), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
|
|
9587
9606
|
}
|
|
9588
9607
|
} else if (w === "wind" && this.showWindFeather) {
|
|
9589
9608
|
k = !0;
|
|
9590
9609
|
const f = this.weatherLayers.wind.raw;
|
|
9591
9610
|
for (const b in f)
|
|
9592
9611
|
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,
|
|
9612
|
+
const g = f[b].lng;
|
|
9613
|
+
s > n ? g.forEach((C, y) => {
|
|
9614
|
+
var L, T, D, F;
|
|
9596
9615
|
if (i < 2) {
|
|
9597
9616
|
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]) || ((
|
|
9617
|
+
const N = S.point([C, b], {
|
|
9618
|
+
dir: ((L = f[b].val) == null ? void 0 : L[y]) || ((T = f[b].dir) == null ? void 0 : T[y]),
|
|
9600
9619
|
spd: f[b].spd[y]
|
|
9601
9620
|
});
|
|
9602
9621
|
_.push(N);
|
|
9603
9622
|
}
|
|
9604
9623
|
} 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 =
|
|
9624
|
+
const N = S.point([C, b], {
|
|
9606
9625
|
dir: ((D = f[b].val) == null ? void 0 : D[y]) || ((F = f[b].dir) == null ? void 0 : F[y]),
|
|
9607
9626
|
spd: f[b].spd[y]
|
|
9608
9627
|
});
|
|
9609
9628
|
_.push(N);
|
|
9610
9629
|
}
|
|
9611
|
-
}) :
|
|
9612
|
-
var L,
|
|
9630
|
+
}) : g.forEach((C, y) => {
|
|
9631
|
+
var L, T, D, F;
|
|
9613
9632
|
if (i < 2) {
|
|
9614
9633
|
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]) || ((
|
|
9634
|
+
const N = S.point([C, b], {
|
|
9635
|
+
dir: ((L = f[b].val) == null ? void 0 : L[y]) || ((T = f[b].dir) == null ? void 0 : T[y]),
|
|
9617
9636
|
spd: f[b].spd[y]
|
|
9618
9637
|
});
|
|
9619
9638
|
_.push(N);
|
|
9620
9639
|
}
|
|
9621
9640
|
} else if (C >= s && C <= n && (!(i <= this.zoom) || C % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9622
|
-
const N =
|
|
9641
|
+
const N = S.point([C, b], {
|
|
9623
9642
|
dir: ((D = f[b].val) == null ? void 0 : D[y]) || ((F = f[b].dir) == null ? void 0 : F[y]),
|
|
9624
9643
|
spd: f[b].spd[y]
|
|
9625
9644
|
});
|
|
@@ -9636,20 +9655,20 @@ const Rs = {
|
|
|
9636
9655
|
const f = this.weatherLayers[w].raw;
|
|
9637
9656
|
if (f) {
|
|
9638
9657
|
const b = [];
|
|
9639
|
-
for (const
|
|
9640
|
-
const C = f.Polygon[
|
|
9658
|
+
for (const g in f.Polygon) {
|
|
9659
|
+
const C = f.Polygon[g];
|
|
9641
9660
|
for (const y of C)
|
|
9642
9661
|
b.push(
|
|
9643
|
-
|
|
9644
|
-
val: Number(
|
|
9662
|
+
S.polygon(y, {
|
|
9663
|
+
val: Number(g)
|
|
9645
9664
|
})
|
|
9646
9665
|
);
|
|
9647
9666
|
}
|
|
9648
|
-
for (const
|
|
9649
|
-
const C = f.Point[
|
|
9667
|
+
for (const g in f.Point) {
|
|
9668
|
+
const C = f.Point[g];
|
|
9650
9669
|
for (let y = 0; y < ((E = C.lng) == null ? void 0 : E.length); y++)
|
|
9651
9670
|
b.push(
|
|
9652
|
-
|
|
9671
|
+
S.point([C.lng[y], g], {
|
|
9653
9672
|
val: Number(C.val[y])
|
|
9654
9673
|
})
|
|
9655
9674
|
);
|
|
@@ -9666,21 +9685,21 @@ const Rs = {
|
|
|
9666
9685
|
const f = this.weatherLayers[w].raw;
|
|
9667
9686
|
if (f) {
|
|
9668
9687
|
const b = [];
|
|
9669
|
-
for (const
|
|
9670
|
-
const C = f.LineString[
|
|
9688
|
+
for (const g in f.LineString) {
|
|
9689
|
+
const C = f.LineString[g];
|
|
9671
9690
|
for (const y of C)
|
|
9672
9691
|
b.push(
|
|
9673
|
-
|
|
9674
|
-
val: Number(
|
|
9692
|
+
S.lineString(y, {
|
|
9693
|
+
val: Number(g)
|
|
9675
9694
|
})
|
|
9676
9695
|
);
|
|
9677
9696
|
}
|
|
9678
|
-
for (const
|
|
9679
|
-
f.Point[
|
|
9697
|
+
for (const g in f.Point)
|
|
9698
|
+
f.Point[g].lng.forEach((C, y) => {
|
|
9680
9699
|
C = se.convertToStdLng(C), b.push(
|
|
9681
|
-
|
|
9682
|
-
val: f.Point[
|
|
9683
|
-
type: f.Point[
|
|
9700
|
+
S.point([C, g], {
|
|
9701
|
+
val: f.Point[g].val[y],
|
|
9702
|
+
type: f.Point[g].type[y]
|
|
9684
9703
|
})
|
|
9685
9704
|
);
|
|
9686
9705
|
});
|
|
@@ -9689,7 +9708,7 @@ const Rs = {
|
|
|
9689
9708
|
}
|
|
9690
9709
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
9691
9710
|
}
|
|
9692
|
-
_.length && (this.weatherLayers[w].data =
|
|
9711
|
+
_.length && (this.weatherLayers[w].data = S.featureCollection(_)), k && (this.weatherLayers[w].version = Math.random() + 1);
|
|
9693
9712
|
}
|
|
9694
9713
|
}
|
|
9695
9714
|
},
|
|
@@ -9704,10 +9723,10 @@ const Rs = {
|
|
|
9704
9723
|
return a.features.forEach((s) => {
|
|
9705
9724
|
if (s.geometry.type !== "Point")
|
|
9706
9725
|
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 =
|
|
9726
|
+
let n = [r, e._sw.lat, 180, e._ne.lat], l = S.bboxClip(s, n);
|
|
9727
|
+
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
9728
|
} else {
|
|
9710
|
-
const n = [r, e._sw.lat, i, e._ne.lat], l =
|
|
9729
|
+
const n = [r, e._sw.lat, i, e._ne.lat], l = S.bboxClip(s, n);
|
|
9711
9730
|
l.geometry.coordinates.length && t.push(l);
|
|
9712
9731
|
}
|
|
9713
9732
|
else
|
|
@@ -9760,8 +9779,8 @@ const Rs = {
|
|
|
9760
9779
|
}
|
|
9761
9780
|
},
|
|
9762
9781
|
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)) && ((
|
|
9782
|
+
var e, t, r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b, g;
|
|
9783
|
+
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
9784
|
},
|
|
9766
9785
|
handleParticle(a) {
|
|
9767
9786
|
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
|
|
@@ -9779,15 +9798,15 @@ const Rs = {
|
|
|
9779
9798
|
this.$emit("toggleVersion", Math.random());
|
|
9780
9799
|
}
|
|
9781
9800
|
}
|
|
9782
|
-
},
|
|
9801
|
+
}, Ws = {
|
|
9783
9802
|
key: 0,
|
|
9784
9803
|
ref: "mapGlHome",
|
|
9785
9804
|
className: "map-gl-home"
|
|
9786
9805
|
};
|
|
9787
|
-
function
|
|
9806
|
+
function Gs(a, e, t, r, i, s) {
|
|
9788
9807
|
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 ? (
|
|
9808
|
+
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");
|
|
9809
|
+
return t.map ? (m(), u("div", Ws, [
|
|
9791
9810
|
H(n, X({
|
|
9792
9811
|
ref: "layer",
|
|
9793
9812
|
map: t.map,
|
|
@@ -9908,7 +9927,7 @@ function Ws(a, e, t, r, i, s) {
|
|
|
9908
9927
|
"before-layer": t.beforeLayer,
|
|
9909
9928
|
"toggle-version": t.toggleVersion
|
|
9910
9929
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9911
|
-
H(
|
|
9930
|
+
H(g, X({
|
|
9912
9931
|
ref: "windBarb",
|
|
9913
9932
|
map: t.map,
|
|
9914
9933
|
"map-projection": i.mapProjection,
|
|
@@ -9942,7 +9961,7 @@ function Ws(a, e, t, r, i, s) {
|
|
|
9942
9961
|
"before-layer": t.beforeLayer,
|
|
9943
9962
|
"toggle-version": t.toggleVersion
|
|
9944
9963
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9945
|
-
H(
|
|
9964
|
+
H(T, X({
|
|
9946
9965
|
viewport: i.viewport,
|
|
9947
9966
|
factor: (K = i.weatherLayers) == null ? void 0 : K["water-temp"],
|
|
9948
9967
|
"before-layer": t.beforeLayer,
|
|
@@ -10025,15 +10044,15 @@ function Ws(a, e, t, r, i, s) {
|
|
|
10025
10044
|
}, a.$attrs), null, 16, ["map", "show", "meteo", "ts", "token", "gateway", "forecast-model"])
|
|
10026
10045
|
], 512)) : J("", !0);
|
|
10027
10046
|
}
|
|
10028
|
-
const
|
|
10047
|
+
const Us = /* @__PURE__ */ U(js, [["render", Gs]]), ao = {
|
|
10029
10048
|
install(a) {
|
|
10030
|
-
a.component("MapboxGL",
|
|
10049
|
+
a.component("MapboxGL", Us), a.component("TropicalGL", dt), a.component("LatLngGL", pt);
|
|
10031
10050
|
}
|
|
10032
10051
|
};
|
|
10033
10052
|
export {
|
|
10034
10053
|
pt as LatLngGL,
|
|
10035
|
-
|
|
10036
|
-
|
|
10054
|
+
Us as MapboxGL,
|
|
10055
|
+
ao as MapboxGLPlugin,
|
|
10037
10056
|
na as MapboxHelper,
|
|
10038
10057
|
be as ParticleSchema,
|
|
10039
10058
|
dt as TropicalGL,
|