@idmwx/idmui-gl3 6.4.0 → 6.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +576 -576
- package/dist/index.umd.cjs +17 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@ var mt = Object.defineProperty;
|
|
|
2
2
|
var ut = (a, e, t) => e in a ? mt(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
3
|
var se = (a, e, t) => (ut(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import { LayerHelper as Ze, CompanyHelper as qe } from "@idm-plugin/tag";
|
|
5
|
-
import
|
|
5
|
+
import ie from "moment";
|
|
6
6
|
import He from "axios";
|
|
7
7
|
import Ye from "moment-timezone";
|
|
8
|
-
import { resolveComponent as R, openBlock as
|
|
8
|
+
import { resolveComponent as R, openBlock as u, createElementBlock as g, createElementVNode as o, normalizeStyle as ge, createVNode as F, withCtx as Pe, normalizeClass as te, Fragment as ee, renderList as ae, toDisplayString as k, createCommentVNode as V, createBlock as gt, createTextVNode as ue, withDirectives as Fe, createStaticVNode as yt, vShow as Oe, defineComponent as ft, withModifiers as Ve, mergeProps as X } from "vue";
|
|
9
9
|
import * as Q from "@turf/turf";
|
|
10
10
|
import At from "@mapbox/sphericalmercator";
|
|
11
11
|
import Re from "mapbox-gl";
|
|
@@ -120,7 +120,7 @@ const Y = (a, e) => {
|
|
|
120
120
|
return function(a) {
|
|
121
121
|
var e;
|
|
122
122
|
if (a) {
|
|
123
|
-
const t =
|
|
123
|
+
const t = ie(a);
|
|
124
124
|
return `${(e = t == null ? void 0 : t.utc()) == null ? void 0 : e.format("MMM-DD/HHmm")}Z`;
|
|
125
125
|
}
|
|
126
126
|
return "-";
|
|
@@ -302,7 +302,7 @@ const Y = (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"), d = R("ElScrollbar");
|
|
305
|
-
return
|
|
305
|
+
return u(), g("div", vt, [
|
|
306
306
|
o("div", {
|
|
307
307
|
class: "menu-bar-box",
|
|
308
308
|
style: ge({ 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: Pe(() => [
|
|
318
318
|
o("div", {
|
|
319
|
-
class:
|
|
319
|
+
class: te(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: Pe(() => [
|
|
341
341
|
o("div", {
|
|
342
|
-
class:
|
|
342
|
+
class: te(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: Pe(() => [
|
|
357
357
|
o("div", {
|
|
358
|
-
class:
|
|
358
|
+
class: te(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: Pe(() => [
|
|
373
373
|
o("div", {
|
|
374
|
-
class:
|
|
374
|
+
class: te(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: Pe(() => [
|
|
389
389
|
o("div", {
|
|
390
|
-
class:
|
|
390
|
+
class: te(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 ? (u(), g("div", {
|
|
401
401
|
key: 0,
|
|
402
402
|
class: "active-layers",
|
|
403
403
|
style: ge({ 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 ? (u(), g("i", xt, "")) : (u(), g("i", _t, ""))
|
|
413
413
|
])
|
|
414
414
|
]),
|
|
415
|
-
(
|
|
415
|
+
(u(!0), g(ee, null, ae(i.layers.weather.filter((h) => h.collected), (h) => (u(), g("div", {
|
|
416
416
|
key: h.key,
|
|
417
|
-
class:
|
|
417
|
+
class: te(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
418
418
|
}, [
|
|
419
419
|
o("div", {
|
|
420
420
|
class: "checkbox",
|
|
@@ -424,34 +424,34 @@ function aa(a, e, t, r, i, s) {
|
|
|
424
424
|
class: "name",
|
|
425
425
|
onClick: (p) => s.handleWeatherLayerPick(h)
|
|
426
426
|
}, k(h.name), 9, It),
|
|
427
|
-
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (
|
|
427
|
+
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Et, [
|
|
428
428
|
o("i", {
|
|
429
|
-
class:
|
|
429
|
+
class: te(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
430
430
|
onClick: e[6] || (e[6] = (p) => s.handleToggleWindParticle())
|
|
431
431
|
}, "", 2),
|
|
432
432
|
o("i", {
|
|
433
|
-
class:
|
|
433
|
+
class: te(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
434
434
|
onClick: e[7] || (e[7] = (p) => s.handleToggleWindFeather())
|
|
435
435
|
}, "", 2)
|
|
436
|
-
])) :
|
|
437
|
-
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (
|
|
436
|
+
])) : V("", !0),
|
|
437
|
+
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", kt, [
|
|
438
438
|
o("i", {
|
|
439
|
-
class:
|
|
439
|
+
class: te(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
440
440
|
onClick: e[8] || (e[8] = (p) => s.handleToggleCurrentParticle())
|
|
441
441
|
}, "", 2),
|
|
442
442
|
o("i", {
|
|
443
|
-
class:
|
|
443
|
+
class: te(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
444
444
|
onClick: e[9] || (e[9] = (p) => s.handleToggleCurrentIsoband())
|
|
445
445
|
}, "", 2)
|
|
446
|
-
])) :
|
|
446
|
+
])) : V("", !0)
|
|
447
447
|
], 2))), 128))
|
|
448
|
-
], 4)) :
|
|
448
|
+
], 4)) : V("", !0),
|
|
449
449
|
o("div", {
|
|
450
450
|
class: "available-layers flex-center",
|
|
451
451
|
style: ge({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
|
|
452
452
|
}, [
|
|
453
453
|
o("div", {
|
|
454
|
-
class:
|
|
454
|
+
class: te(["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 ? (u(), g("i", Mt, "")) : (u(), g("i", St, ""))
|
|
474
474
|
])
|
|
475
475
|
]),
|
|
476
476
|
o("div", Tt, [
|
|
477
|
-
(
|
|
477
|
+
(u(!0), g(ee, null, ae(i.layers.weather, (h) => (u(), g(ee, {
|
|
478
478
|
key: h.key
|
|
479
479
|
}, [
|
|
480
|
-
h.hide ?
|
|
480
|
+
h.hide ? V("", !0) : (u(), g("div", {
|
|
481
481
|
key: 0,
|
|
482
|
-
class:
|
|
482
|
+
class: te(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
483
483
|
}, [
|
|
484
484
|
o("div", Qt, [
|
|
485
485
|
o("div", {
|
|
@@ -490,31 +490,31 @@ function aa(a, e, t, r, i, s) {
|
|
|
490
490
|
class: "name",
|
|
491
491
|
onClick: (p) => s.handleWeatherLayerPick(h)
|
|
492
492
|
}, k(h.name), 9, Nt),
|
|
493
|
-
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (
|
|
493
|
+
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Ft, [
|
|
494
494
|
o("i", {
|
|
495
|
-
class:
|
|
495
|
+
class: te(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
496
496
|
onClick: e[12] || (e[12] = (p) => s.handleToggleWindParticle())
|
|
497
497
|
}, "", 2),
|
|
498
498
|
o("i", {
|
|
499
|
-
class:
|
|
499
|
+
class: te(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
500
500
|
onClick: e[13] || (e[13] = (p) => s.handleToggleWindFeather())
|
|
501
501
|
}, "", 2)
|
|
502
|
-
])) :
|
|
503
|
-
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (
|
|
502
|
+
])) : V("", !0),
|
|
503
|
+
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Ot, [
|
|
504
504
|
o("i", {
|
|
505
|
-
class:
|
|
505
|
+
class: te(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
506
506
|
onClick: e[14] || (e[14] = (p) => s.handleToggleCurrentParticle())
|
|
507
507
|
}, "", 2),
|
|
508
508
|
o("i", {
|
|
509
|
-
class:
|
|
509
|
+
class: te(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
510
510
|
onClick: e[15] || (e[15] = (p) => s.handleToggleCurrentIsoband())
|
|
511
511
|
}, "", 2)
|
|
512
|
-
])) :
|
|
512
|
+
])) : V("", !0)
|
|
513
513
|
]),
|
|
514
514
|
o("div", {
|
|
515
515
|
onClick: (p) => s.handleWeatherLayerCollect(h)
|
|
516
516
|
}, [
|
|
517
|
-
h.collected ? (
|
|
517
|
+
h.collected ? (u(), g("i", jt, "")) : (u(), g("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
|
+
(u(!0), g(ee, null, ae(i.layers.other, (h) => {
|
|
534
534
|
var p;
|
|
535
|
-
return
|
|
535
|
+
return u(), g("div", {
|
|
536
536
|
key: h.key,
|
|
537
|
-
class:
|
|
538
|
-
onClick: (
|
|
537
|
+
class: te(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
|
|
538
|
+
onClick: (L) => s.handleOtherLayerPick(h)
|
|
539
539
|
}, [
|
|
540
540
|
o("div", Kt, [
|
|
541
541
|
o("div", Xt, [
|
|
542
|
-
(p = s.computeLayerClass(h, i.activeOtherLayers)) != null && p.includes("active") ? (
|
|
542
|
+
(p = s.computeLayerClass(h, i.activeOtherLayers)) != null && p.includes("active") ? (u(), g("i", Jt, "")) : (u(), g("i", qt, ""))
|
|
543
543
|
]),
|
|
544
544
|
o("span", null, k(h.name), 1)
|
|
545
545
|
])
|
|
@@ -557,16 +557,16 @@ function aa(a, e, t, r, i, s) {
|
|
|
557
557
|
style: { width: "180px", "align-items": "flex-start" }
|
|
558
558
|
}, {
|
|
559
559
|
default: Pe(() => [
|
|
560
|
-
(
|
|
560
|
+
(u(!0), g(ee, null, ae(i.sourceList, (h, p) => (u(), gt(l, {
|
|
561
561
|
key: `source${h.name}`,
|
|
562
562
|
value: h.name
|
|
563
563
|
}, {
|
|
564
564
|
default: Pe(() => {
|
|
565
|
-
var
|
|
565
|
+
var L, x, E, A, I, _;
|
|
566
566
|
return [
|
|
567
567
|
ue(k(h.name) + " ", 1),
|
|
568
|
-
p !== 0 ? (
|
|
569
|
-
p === 0 ? (
|
|
568
|
+
p !== 0 ? (u(), g("span", $t, k(h.resolution) + "km " + k(h.length) + "days", 1)) : V("", !0),
|
|
569
|
+
p === 0 ? (u(), g("div", ea, "Provides the best forecast")) : (E = (x = (L = h == null ? void 0 : h.update) == null ? void 0 : L.default) == null ? void 0 : x.meta) != null && E.initialisationTime ? (u(), g("div", ta, "Update: " + k(s.computeDateZ((_ = (I = (A = h == null ? void 0 : h.update) == null ? void 0 : A.default) == null ? void 0 : I.meta) == null ? void 0 : _.initialisationTime)), 1)) : V("", !0)
|
|
570
570
|
];
|
|
571
571
|
}),
|
|
572
572
|
_: 2
|
|
@@ -775,8 +775,8 @@ class et {
|
|
|
775
775
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
776
776
|
*/
|
|
777
777
|
getBoundPixel() {
|
|
778
|
-
const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [d, h] = this.mercator.px([s, r[1]], t), [p,
|
|
779
|
-
return [p,
|
|
778
|
+
const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [d, h] = this.mercator.px([s, r[1]], t), [p, L] = this.mercator.px([l, i[1]], t), x = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
|
|
779
|
+
return [p, L, d + x, h];
|
|
780
780
|
}
|
|
781
781
|
/**
|
|
782
782
|
* [视窗边界像素宽度]
|
|
@@ -957,10 +957,10 @@ class We {
|
|
|
957
957
|
sRange: t.getUniformLocation(r, "u_range_s")
|
|
958
958
|
};
|
|
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
|
-
const p = e.getBoundPixel(),
|
|
960
|
+
const p = e.getBoundPixel(), L = e.map.getZoom() + 1, x = e.getWorldCopy(p, L);
|
|
961
961
|
for (const E of x) {
|
|
962
|
-
const
|
|
963
|
-
t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER,
|
|
962
|
+
const A = (E[0] - p[0]) * e.ratio, I = (E[1] - p[3]) * e.ratio, _ = E[2] * e.ratio, [y, v, m, b] = [A, _ + A, I, _ + I], f = new Float32Array([y, m, v, m, y, b, y, b, v, m, v, b]);
|
|
963
|
+
t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, f, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
964
964
|
}
|
|
965
965
|
} catch (h) {
|
|
966
966
|
console.log(`render failed...${h}`);
|
|
@@ -1057,9 +1057,9 @@ se(he, "fragmentSchema", `
|
|
|
1057
1057
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
1058
1058
|
gl_FragColor = color;
|
|
1059
1059
|
}`);
|
|
1060
|
-
class
|
|
1060
|
+
class Ie {
|
|
1061
1061
|
}
|
|
1062
|
-
se(
|
|
1062
|
+
se(Ie, "vertexSchema", `
|
|
1063
1063
|
precision mediump float;
|
|
1064
1064
|
|
|
1065
1065
|
attribute float a_index; // 索引
|
|
@@ -1083,7 +1083,7 @@ se(Ee, "vertexSchema", `
|
|
|
1083
1083
|
gl_PointSize = 1.0;
|
|
1084
1084
|
// gl_PointSize = u_point;
|
|
1085
1085
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
1086
|
-
}`), se(
|
|
1086
|
+
}`), se(Ie, "fragmentSchema", `
|
|
1087
1087
|
precision mediump float;
|
|
1088
1088
|
|
|
1089
1089
|
uniform sampler2D u_factor;
|
|
@@ -1105,7 +1105,7 @@ se(Ee, "vertexSchema", `
|
|
|
1105
1105
|
|
|
1106
1106
|
float f = 1.0 - uv.b;
|
|
1107
1107
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
1108
|
-
}`), se(
|
|
1108
|
+
}`), se(Ie, "quadVertSchema", `
|
|
1109
1109
|
precision mediump float;
|
|
1110
1110
|
|
|
1111
1111
|
attribute vec2 a_pos;
|
|
@@ -1115,7 +1115,7 @@ se(Ee, "vertexSchema", `
|
|
|
1115
1115
|
void main() {
|
|
1116
1116
|
v_tex_pos = a_pos;
|
|
1117
1117
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
1118
|
-
}`), se(
|
|
1118
|
+
}`), se(Ie, "screenFragmentSchema", `
|
|
1119
1119
|
precision mediump float;
|
|
1120
1120
|
|
|
1121
1121
|
uniform sampler2D u_screen;
|
|
@@ -1127,7 +1127,7 @@ se(Ee, "vertexSchema", `
|
|
|
1127
1127
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
1128
1128
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
1129
1129
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
1130
|
-
}`), se(
|
|
1130
|
+
}`), se(Ie, "updateFragmentSchema", `
|
|
1131
1131
|
precision mediump float;
|
|
1132
1132
|
|
|
1133
1133
|
uniform sampler2D u_particles;
|
|
@@ -3224,11 +3224,11 @@ const la = {
|
|
|
3224
3224
|
];
|
|
3225
3225
|
this.wrapper = this.webgl.bindParticle(
|
|
3226
3226
|
this.particleContext,
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3227
|
+
Ie.vertexSchema,
|
|
3228
|
+
Ie.fragmentSchema,
|
|
3229
|
+
Ie.quadVertSchema,
|
|
3230
|
+
Ie.screenFragmentSchema,
|
|
3231
|
+
Ie.updateFragmentSchema
|
|
3232
3232
|
), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
|
|
3233
3233
|
}
|
|
3234
3234
|
},
|
|
@@ -3261,7 +3261,7 @@ const la = {
|
|
|
3261
3261
|
}, ha = { key: 0 };
|
|
3262
3262
|
function ca(a, e, t, r, i, s) {
|
|
3263
3263
|
var n;
|
|
3264
|
-
return (n = t.factor) != null && n.active ? (
|
|
3264
|
+
return (n = t.factor) != null && n.active ? (u(), g("div", ha, [
|
|
3265
3265
|
o("div", {
|
|
3266
3266
|
class: "legend-bars flex-center",
|
|
3267
3267
|
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -3275,7 +3275,7 @@ function ca(a, e, t, r, i, s) {
|
|
|
3275
3275
|
o("span", null, "40", -1),
|
|
3276
3276
|
o("span", null, "60", -1)
|
|
3277
3277
|
]), 4)
|
|
3278
|
-
])) :
|
|
3278
|
+
])) : V("", !0);
|
|
3279
3279
|
}
|
|
3280
3280
|
const da = /* @__PURE__ */ Y(la, [["render", ca], ["__scopeId", "data-v-e5910f11"]]);
|
|
3281
3281
|
const pa = {
|
|
@@ -3553,11 +3553,11 @@ const ga = {
|
|
|
3553
3553
|
];
|
|
3554
3554
|
this.wrapper = this.webgl.bindParticle(
|
|
3555
3555
|
this.particleContext,
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3556
|
+
Ie.vertexSchema,
|
|
3557
|
+
Ie.fragmentSchema,
|
|
3558
|
+
Ie.quadVertSchema,
|
|
3559
|
+
Ie.screenFragmentSchema,
|
|
3560
|
+
Ie.updateFragmentSchema
|
|
3561
3561
|
), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = {
|
|
3562
3562
|
...this.wrapper,
|
|
3563
3563
|
...this.webgl.setupParticle(this.particleContext, 9e3),
|
|
@@ -3594,7 +3594,7 @@ const ga = {
|
|
|
3594
3594
|
}, ya = { key: 0 };
|
|
3595
3595
|
function fa(a, e, t, r, i, s) {
|
|
3596
3596
|
var n;
|
|
3597
|
-
return (n = t.factor) != null && n.active ? (
|
|
3597
|
+
return (n = t.factor) != null && n.active ? (u(), g("div", ya, [
|
|
3598
3598
|
o("div", {
|
|
3599
3599
|
class: "legend-bars flex-center",
|
|
3600
3600
|
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -3607,7 +3607,7 @@ function fa(a, e, t, r, i, s) {
|
|
|
3607
3607
|
o("span", null, "2", -1),
|
|
3608
3608
|
o("span", null, "3.2", -1)
|
|
3609
3609
|
]), 4)
|
|
3610
|
-
])) :
|
|
3610
|
+
])) : V("", !0);
|
|
3611
3611
|
}
|
|
3612
3612
|
const Aa = /* @__PURE__ */ Y(ga, [["render", fa], ["__scopeId", "data-v-c2962e63"]]), wa = {
|
|
3613
3613
|
name: "IdmSigWave",
|
|
@@ -3738,7 +3738,7 @@ const Aa = /* @__PURE__ */ Y(ga, [["render", fa], ["__scopeId", "data-v-c2962e63
|
|
|
3738
3738
|
}
|
|
3739
3739
|
};
|
|
3740
3740
|
function va(a, e, t, r, i, s) {
|
|
3741
|
-
return
|
|
3741
|
+
return u(), g("div");
|
|
3742
3742
|
}
|
|
3743
3743
|
const ba = /* @__PURE__ */ Y(wa, [["render", va]]), La = {
|
|
3744
3744
|
name: "IdmSwell",
|
|
@@ -3896,7 +3896,7 @@ const ba = /* @__PURE__ */ Y(wa, [["render", va]]), La = {
|
|
|
3896
3896
|
}
|
|
3897
3897
|
};
|
|
3898
3898
|
function Ca(a, e, t, r, i, s) {
|
|
3899
|
-
return
|
|
3899
|
+
return u(), g("div");
|
|
3900
3900
|
}
|
|
3901
3901
|
const xa = /* @__PURE__ */ Y(La, [["render", Ca]]), _a = {
|
|
3902
3902
|
name: "IdmPrmsl",
|
|
@@ -4034,7 +4034,7 @@ const xa = /* @__PURE__ */ Y(La, [["render", Ca]]), _a = {
|
|
|
4034
4034
|
}
|
|
4035
4035
|
};
|
|
4036
4036
|
function Ba(a, e, t, r, i, s) {
|
|
4037
|
-
return
|
|
4037
|
+
return u(), g("div");
|
|
4038
4038
|
}
|
|
4039
4039
|
const Ia = /* @__PURE__ */ Y(_a, [["render", Ba]]);
|
|
4040
4040
|
const Ea = {
|
|
@@ -4141,7 +4141,7 @@ const Ea = {
|
|
|
4141
4141
|
}, ka = { key: 0 };
|
|
4142
4142
|
function Da(a, e, t, r, i, s) {
|
|
4143
4143
|
var n;
|
|
4144
|
-
return (n = t.factor) != null && n.active ? (
|
|
4144
|
+
return (n = t.factor) != null && n.active ? (u(), g("div", ka, [
|
|
4145
4145
|
o("div", {
|
|
4146
4146
|
class: "legend-bars flex-center",
|
|
4147
4147
|
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -4159,7 +4159,7 @@ function Da(a, e, t, r, i, s) {
|
|
|
4159
4159
|
o("span", null, "90", -1),
|
|
4160
4160
|
o("span", null, null, -1)
|
|
4161
4161
|
]), 4)
|
|
4162
|
-
])) :
|
|
4162
|
+
])) : V("", !0);
|
|
4163
4163
|
}
|
|
4164
4164
|
const za = /* @__PURE__ */ Y(Ea, [["render", Da], ["__scopeId", "data-v-14ae1a6c"]]);
|
|
4165
4165
|
const Pa = {
|
|
@@ -4257,7 +4257,7 @@ const Pa = {
|
|
|
4257
4257
|
}, Ma = { key: 0 };
|
|
4258
4258
|
function Sa(a, e, t, r, i, s) {
|
|
4259
4259
|
var n;
|
|
4260
|
-
return (n = t.factor) != null && n.active ? (
|
|
4260
|
+
return (n = t.factor) != null && n.active ? (u(), g("div", Ma, [
|
|
4261
4261
|
o("div", {
|
|
4262
4262
|
class: "legend-bars flex-center",
|
|
4263
4263
|
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -4269,7 +4269,7 @@ function Sa(a, e, t, r, i, s) {
|
|
|
4269
4269
|
o("span", null, "80", -1),
|
|
4270
4270
|
o("span", null, "100", -1)
|
|
4271
4271
|
]), 4)
|
|
4272
|
-
])) :
|
|
4272
|
+
])) : V("", !0);
|
|
4273
4273
|
}
|
|
4274
4274
|
const Ta = /* @__PURE__ */ Y(Pa, [["render", Sa], ["__scopeId", "data-v-f21edb81"]]);
|
|
4275
4275
|
const Qa = {
|
|
@@ -4375,7 +4375,7 @@ const Qa = {
|
|
|
4375
4375
|
}, Ha = { key: 0 };
|
|
4376
4376
|
function Na(a, e, t, r, i, s) {
|
|
4377
4377
|
var n;
|
|
4378
|
-
return (n = t.factor) != null && n.active ? (
|
|
4378
|
+
return (n = t.factor) != null && n.active ? (u(), g("div", Ha, [
|
|
4379
4379
|
o("div", {
|
|
4380
4380
|
class: "legend-bars flex-center",
|
|
4381
4381
|
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -4388,7 +4388,7 @@ function Na(a, e, t, r, i, s) {
|
|
|
4388
4388
|
o("span", null, "2", -1),
|
|
4389
4389
|
o("span", null, "3", -1)
|
|
4390
4390
|
]), 4)
|
|
4391
|
-
])) :
|
|
4391
|
+
])) : V("", !0);
|
|
4392
4392
|
}
|
|
4393
4393
|
const Fa = /* @__PURE__ */ Y(Qa, [["render", Na], ["__scopeId", "data-v-a4c3d2ed"]]), Xe = [
|
|
4394
4394
|
{
|
|
@@ -4708,18 +4708,18 @@ class ht {
|
|
|
4708
4708
|
const i = e.toLowerCase().split(","), s = [], n = [];
|
|
4709
4709
|
for (const l of i) {
|
|
4710
4710
|
let c = Xe.find((h) => {
|
|
4711
|
-
var p,
|
|
4712
|
-
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((
|
|
4711
|
+
var p, L, x;
|
|
4712
|
+
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((L = h.alias) == null ? void 0 : L.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.toLowerCase()) === l;
|
|
4713
4713
|
}), d = Je.find((h) => {
|
|
4714
|
-
var p,
|
|
4715
|
-
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((
|
|
4714
|
+
var p, L, x;
|
|
4715
|
+
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((L = h.alias) == null ? void 0 : L.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.toLowerCase()) === l;
|
|
4716
4716
|
});
|
|
4717
4717
|
c = c || Xe.find((h) => {
|
|
4718
|
-
var p,
|
|
4719
|
-
return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((
|
|
4718
|
+
var p, L;
|
|
4719
|
+
return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((L = d == null ? void 0 : d.alias) == null ? void 0 : L.toLowerCase());
|
|
4720
4720
|
}), d = d || Je.find((h) => {
|
|
4721
|
-
var p,
|
|
4722
|
-
return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((
|
|
4721
|
+
var p, L;
|
|
4722
|
+
return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((L = c == null ? void 0 : c.alias) == null ? void 0 : L.toLowerCase());
|
|
4723
4723
|
}), c = c || Xe[0], d = d || Je[0], s.push((t = c.models) != null && t.includes(l) ? l : c.model), n.push((r = d.models) != null && r.includes(l) ? l : d.model);
|
|
4724
4724
|
}
|
|
4725
4725
|
return {
|
|
@@ -4737,86 +4737,86 @@ class ht {
|
|
|
4737
4737
|
}), i;
|
|
4738
4738
|
}
|
|
4739
4739
|
static pickHourly(e, t) {
|
|
4740
|
-
var r, i, s, n, l, c, d, h, p,
|
|
4741
|
-
const
|
|
4742
|
-
if (
|
|
4743
|
-
const
|
|
4740
|
+
var r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, P, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, Z, ye, ne, fe, Ce, be, xe, B, Ee, Le, ke, Be, ze, _e;
|
|
4741
|
+
const J = typeof t == "string" ? ie(t) : t, q = e == null ? void 0 : e.weather, S = e == null ? void 0 : e.marine, De = ie((i = (r = q == null ? void 0 : q[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = De.clone().add((l = (n = (s = q == null ? void 0 : q[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), $ = De.clone().add((h = (d = (c = q == null ? void 0 : q[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Se = [];
|
|
4742
|
+
if (J.isBetween(K, $, "millisecond", "[]")) {
|
|
4743
|
+
const M = J.utc().diff(K, "h", !1);
|
|
4744
4744
|
let Ae, Me;
|
|
4745
|
-
if (
|
|
4745
|
+
if (q) {
|
|
4746
4746
|
let Te = 0, Qe = 0;
|
|
4747
|
-
for (const
|
|
4748
|
-
const O =
|
|
4749
|
-
for (let Ne =
|
|
4747
|
+
for (const z of q) {
|
|
4748
|
+
const O = z == null ? void 0 : z.hourly;
|
|
4749
|
+
for (let Ne = M - (M - 1) % 3; Ne <= M; Ne++)
|
|
4750
4750
|
Te += (p = O == null ? void 0 : O.precipitation) == null ? void 0 : p.at(Ne);
|
|
4751
|
-
for (let Ne =
|
|
4752
|
-
Qe += (
|
|
4751
|
+
for (let Ne = M - (M - 1) % 6; Ne <= M; Ne++)
|
|
4752
|
+
Qe += (L = O == null ? void 0 : O.precipitation) == null ? void 0 : L.at(Ne);
|
|
4753
4753
|
Ae = {
|
|
4754
|
-
temp: (x = O == null ? void 0 : O.temperature_2m) == null ? void 0 : x.at(
|
|
4755
|
-
apparentTemp: (E = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : E.at(
|
|
4756
|
-
rh: (
|
|
4757
|
-
dp: (I = O == null ? void 0 : O.dew_point_2m) == null ? void 0 : I.at(
|
|
4754
|
+
temp: (x = O == null ? void 0 : O.temperature_2m) == null ? void 0 : x.at(M),
|
|
4755
|
+
apparentTemp: (E = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : E.at(M),
|
|
4756
|
+
rh: (A = O == null ? void 0 : O.relative_humidity_2m) == null ? void 0 : A.at(M),
|
|
4757
|
+
dp: (I = O == null ? void 0 : O.dew_point_2m) == null ? void 0 : I.at(M),
|
|
4758
4758
|
precip: {
|
|
4759
|
-
probability: (_ = O == null ? void 0 : O.precipitation_probability) == null ? void 0 : _.at(
|
|
4760
|
-
sum: (
|
|
4759
|
+
probability: (_ = O == null ? void 0 : O.precipitation_probability) == null ? void 0 : _.at(M),
|
|
4760
|
+
sum: (y = O == null ? void 0 : O.precipitation) == null ? void 0 : y.at(M),
|
|
4761
4761
|
sum3Hours: Math.round(Te * 100) / 100,
|
|
4762
4762
|
sum6Hours: Math.round(Qe * 100) / 100
|
|
4763
4763
|
},
|
|
4764
|
-
pmsl: (
|
|
4765
|
-
psurf: (m = O == null ? void 0 : O.surface_pressure) == null ? void 0 : m.at(
|
|
4766
|
-
code: (
|
|
4767
|
-
visibility: this.m2nm((
|
|
4764
|
+
pmsl: (v = O == null ? void 0 : O.pressure_msl) == null ? void 0 : v.at(M),
|
|
4765
|
+
psurf: (m = O == null ? void 0 : O.surface_pressure) == null ? void 0 : m.at(M),
|
|
4766
|
+
code: (b = O == null ? void 0 : O.weather_code) == null ? void 0 : b.at(M),
|
|
4767
|
+
visibility: this.m2nm((f = O == null ? void 0 : O.visibility) == null ? void 0 : f.at(M)),
|
|
4768
4768
|
wind: {
|
|
4769
|
-
speed: (
|
|
4770
|
-
kts: (
|
|
4771
|
-
degree: (D = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : D.at(
|
|
4772
|
-
bearing: ((N = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : N.at(
|
|
4773
|
-
gusts: (j = O == null ? void 0 : O.wind_gusts_10m) == null ? void 0 : j.at(
|
|
4769
|
+
speed: (w = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : w.at(M),
|
|
4770
|
+
kts: (P = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : P.at(M),
|
|
4771
|
+
degree: (D = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : D.at(M),
|
|
4772
|
+
bearing: ((N = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : N.at(M)) !== null ? (((H = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : H.at(M)) + 180) % 360 : null,
|
|
4773
|
+
gusts: (j = O == null ? void 0 : O.wind_gusts_10m) == null ? void 0 : j.at(M)
|
|
4774
4774
|
},
|
|
4775
|
-
isDay: (G = O == null ? void 0 : O.is_day) == null ? void 0 : G.at(
|
|
4775
|
+
isDay: (G = O == null ? void 0 : O.is_day) == null ? void 0 : G.at(M)
|
|
4776
4776
|
};
|
|
4777
4777
|
const { name: Ge, url: Ue, bg: oe } = this.parseWeatherCode(Ae.code, Ae.isDay);
|
|
4778
4778
|
Ae.name = Ge, Ae.url = Ue, Ae.bg = oe, Ae.wind.scale = this.beaufort(this.kts2ms(Ae.wind.kts)), Ae.wind.direction = this.degree2Direction(Ae.wind.degree), Se.push({
|
|
4779
|
-
utc: K.add(
|
|
4780
|
-
model:
|
|
4779
|
+
utc: K.add(M, "h").format(),
|
|
4780
|
+
model: z.model,
|
|
4781
4781
|
weather: { ...Ae }
|
|
4782
4782
|
});
|
|
4783
4783
|
}
|
|
4784
4784
|
}
|
|
4785
|
-
if (
|
|
4785
|
+
if (S) {
|
|
4786
4786
|
let Te = 0;
|
|
4787
|
-
for (const Qe of
|
|
4788
|
-
const
|
|
4787
|
+
for (const Qe of S) {
|
|
4788
|
+
const z = Qe == null ? void 0 : Qe.hourly;
|
|
4789
4789
|
Me = {
|
|
4790
4790
|
wave: {
|
|
4791
4791
|
sig: {
|
|
4792
|
-
height: (W =
|
|
4793
|
-
degree: (ce =
|
|
4794
|
-
bearing: ((re =
|
|
4795
|
-
period: (we =
|
|
4792
|
+
height: (W = z == null ? void 0 : z.wave_height) == null ? void 0 : W.at(M),
|
|
4793
|
+
degree: (ce = z == null ? void 0 : z.wave_direction) == null ? void 0 : ce.at(M),
|
|
4794
|
+
bearing: ((re = z == null ? void 0 : z.wave_direction) == null ? void 0 : re.at(M)) !== null ? (((de = z == null ? void 0 : z.wave_direction) == null ? void 0 : de.at(M)) + 180) % 360 : null,
|
|
4795
|
+
period: (we = z == null ? void 0 : z.wave_period) == null ? void 0 : we.at(M)
|
|
4796
4796
|
},
|
|
4797
4797
|
swell: {
|
|
4798
|
-
height: (pe =
|
|
4799
|
-
degree: (ve =
|
|
4800
|
-
bearing: ((me =
|
|
4801
|
-
period: (
|
|
4802
|
-
peakPeriod: (ye =
|
|
4798
|
+
height: (pe = z == null ? void 0 : z.swell_wave_height) == null ? void 0 : pe.at(M),
|
|
4799
|
+
degree: (ve = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : ve.at(M),
|
|
4800
|
+
bearing: ((me = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : me.at(M)) !== null ? (((U = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : U.at(M)) + 180) % 360 : null,
|
|
4801
|
+
period: (Z = z == null ? void 0 : z.swell_wave_period) == null ? void 0 : Z.at(M),
|
|
4802
|
+
peakPeriod: (ye = z == null ? void 0 : z.swell_wave_peak_period) == null ? void 0 : ye.at(M)
|
|
4803
4803
|
},
|
|
4804
4804
|
wd: {
|
|
4805
|
-
height: (ne =
|
|
4806
|
-
degree: (fe =
|
|
4807
|
-
bearing: ((
|
|
4808
|
-
period: (
|
|
4809
|
-
peakPeriod: (B =
|
|
4805
|
+
height: (ne = z == null ? void 0 : z.wind_wave_height) == null ? void 0 : ne.at(M),
|
|
4806
|
+
degree: (fe = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : fe.at(M),
|
|
4807
|
+
bearing: ((Ce = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : Ce.at(M)) !== null ? (((be = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : be.at(M)) + 180) % 360 : null,
|
|
4808
|
+
period: (xe = z == null ? void 0 : z.wind_wave_period) == null ? void 0 : xe.at(M),
|
|
4809
|
+
peakPeriod: (B = z == null ? void 0 : z.wind_wave_peak_period) == null ? void 0 : B.at(M)
|
|
4810
4810
|
}
|
|
4811
4811
|
},
|
|
4812
4812
|
current: {
|
|
4813
|
-
speed: (
|
|
4814
|
-
kts: (Le =
|
|
4815
|
-
degree: (
|
|
4816
|
-
bearing: ((Be =
|
|
4813
|
+
speed: (Ee = z == null ? void 0 : z.ocean_current_velocity) == null ? void 0 : Ee.at(M),
|
|
4814
|
+
kts: (Le = z == null ? void 0 : z.ocean_current_velocity) == null ? void 0 : Le.at(M),
|
|
4815
|
+
degree: (ke = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : ke.at(M),
|
|
4816
|
+
bearing: ((Be = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : Be.at(M)) ?? null
|
|
4817
4817
|
},
|
|
4818
|
-
sst: (ze =
|
|
4819
|
-
height: (
|
|
4818
|
+
sst: (ze = z == null ? void 0 : z.sea_surface_temperature) == null ? void 0 : ze.at(M),
|
|
4819
|
+
height: (_e = z == null ? void 0 : z.sea_level_height_msl) == null ? void 0 : _e.at(M)
|
|
4820
4820
|
}, Me.wave = this.parseWave(Me.wave, Ae == null ? void 0 : Ae.wind), Me.current.direction = this.degree2Direction(Me.current.degree), Object.assign(Se[Te], Me), Te++;
|
|
4821
4821
|
}
|
|
4822
4822
|
}
|
|
@@ -4846,86 +4846,86 @@ class ht {
|
|
|
4846
4846
|
};
|
|
4847
4847
|
}
|
|
4848
4848
|
static pickDaily(e, t) {
|
|
4849
|
-
var r, i, s, n, l, c, d, h, p,
|
|
4850
|
-
const
|
|
4851
|
-
if (
|
|
4852
|
-
let
|
|
4853
|
-
const
|
|
4849
|
+
var r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, P, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, Z, ye, ne, fe, Ce, be, xe, B;
|
|
4850
|
+
const Ee = typeof t == "string" ? ie(t) : t, Le = e == null ? void 0 : e.weather, ke = e == null ? void 0 : e.marine, Be = ie((s = (i = (r = Le == null ? void 0 : Le[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), ze = ie((c = (l = (n = Le == null ? void 0 : Le[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), _e = [];
|
|
4851
|
+
if (Ee.isBetween(Be, ze, "millisecond", "[]")) {
|
|
4852
|
+
let J, q;
|
|
4853
|
+
const S = Ee.diff(Be, "d", !1);
|
|
4854
4854
|
if (Le)
|
|
4855
|
-
for (const
|
|
4856
|
-
const K =
|
|
4857
|
-
|
|
4858
|
-
code: (d = K.weather_code) == null ? void 0 : d.at(
|
|
4855
|
+
for (const De of Le) {
|
|
4856
|
+
const K = De.daily;
|
|
4857
|
+
J = {
|
|
4858
|
+
code: (d = K.weather_code) == null ? void 0 : d.at(S),
|
|
4859
4859
|
temp: {
|
|
4860
|
-
max: (h = K.temperature_2m_max) == null ? void 0 : h.at(
|
|
4861
|
-
min: (p = K.temperature_2m_min) == null ? void 0 : p.at(
|
|
4862
|
-
mean: (
|
|
4860
|
+
max: (h = K.temperature_2m_max) == null ? void 0 : h.at(S),
|
|
4861
|
+
min: (p = K.temperature_2m_min) == null ? void 0 : p.at(S),
|
|
4862
|
+
mean: (L = K.temperature_2m_mean) == null ? void 0 : L.at(S)
|
|
4863
4863
|
},
|
|
4864
4864
|
apparentTemp: {
|
|
4865
|
-
max: (x = K.apparent_temperature_max) == null ? void 0 : x.at(
|
|
4866
|
-
min: (E = K.apparent_temperature_min) == null ? void 0 : E.at(
|
|
4865
|
+
max: (x = K.apparent_temperature_max) == null ? void 0 : x.at(S),
|
|
4866
|
+
min: (E = K.apparent_temperature_min) == null ? void 0 : E.at(S)
|
|
4867
4867
|
},
|
|
4868
4868
|
precip: {
|
|
4869
|
-
sum: (
|
|
4870
|
-
rainSum: (I = K.rain_sum) == null ? void 0 : I.at(
|
|
4871
|
-
snowfallSum: (_ = K.snowfall_sum) == null ? void 0 : _.at(
|
|
4872
|
-
showersSum: (
|
|
4873
|
-
hours: (
|
|
4874
|
-
probability: (m = K.precipitation_probability_max) == null ? void 0 : m.at(
|
|
4869
|
+
sum: (A = K.precipitation_sum) == null ? void 0 : A.at(S),
|
|
4870
|
+
rainSum: (I = K.rain_sum) == null ? void 0 : I.at(S),
|
|
4871
|
+
snowfallSum: (_ = K.snowfall_sum) == null ? void 0 : _.at(S),
|
|
4872
|
+
showersSum: (y = K.showers_sum) == null ? void 0 : y.at(S),
|
|
4873
|
+
hours: (v = K.precipitation_hours) == null ? void 0 : v.at(S),
|
|
4874
|
+
probability: (m = K.precipitation_probability_max) == null ? void 0 : m.at(S)
|
|
4875
4875
|
},
|
|
4876
4876
|
rh: {
|
|
4877
|
-
max: (
|
|
4878
|
-
min: (
|
|
4879
|
-
mean: (
|
|
4877
|
+
max: (b = K.relative_humidity_2m_max) == null ? void 0 : b.at(S),
|
|
4878
|
+
min: (f = K.relative_humidity_2m_min) == null ? void 0 : f.at(S),
|
|
4879
|
+
mean: (w = K.relative_humidity_2m_mean) == null ? void 0 : w.at(S)
|
|
4880
4880
|
},
|
|
4881
4881
|
wind: {
|
|
4882
|
-
speed: (
|
|
4883
|
-
kts: (D = K.wind_speed_10m_max) == null ? void 0 : D.at(
|
|
4884
|
-
degree: (N = K.wind_direction_10m_dominant) == null ? void 0 : N.at(
|
|
4885
|
-
gusts: (H = K.wind_gusts_10m_max) == null ? void 0 : H.at(
|
|
4886
|
-
bearing: ((j = K.wind_direction_10m_dominant) == null ? void 0 : j.at(
|
|
4882
|
+
speed: (P = K.wind_speed_10m_max) == null ? void 0 : P.at(S),
|
|
4883
|
+
kts: (D = K.wind_speed_10m_max) == null ? void 0 : D.at(S),
|
|
4884
|
+
degree: (N = K.wind_direction_10m_dominant) == null ? void 0 : N.at(S),
|
|
4885
|
+
gusts: (H = K.wind_gusts_10m_max) == null ? void 0 : H.at(S),
|
|
4886
|
+
bearing: ((j = K.wind_direction_10m_dominant) == null ? void 0 : j.at(S)) !== null ? (((G = K.wind_direction_10m_dominant) == null ? void 0 : G.at(S)) + 180) % 360 : null
|
|
4887
4887
|
}
|
|
4888
4888
|
};
|
|
4889
|
-
const { name:
|
|
4890
|
-
|
|
4891
|
-
utc: Be.add(
|
|
4892
|
-
model:
|
|
4893
|
-
weather: { ...
|
|
4889
|
+
const { name: $, url: Se, bg: M } = this.parseWeatherCode(J.code, !0);
|
|
4890
|
+
J.name = $, J.url = Se, J.bg = M, J.wind.scale = this.beaufort(this.kts2ms(J.wind.kts)), J.wind.direction = this.degree2Direction(J.wind.degree), _e.push({
|
|
4891
|
+
utc: Be.add(S, "d").utc().format(),
|
|
4892
|
+
model: De.model,
|
|
4893
|
+
weather: { ...J }
|
|
4894
4894
|
});
|
|
4895
4895
|
}
|
|
4896
|
-
if (
|
|
4897
|
-
let
|
|
4898
|
-
for (const K of
|
|
4899
|
-
const
|
|
4900
|
-
|
|
4896
|
+
if (ke) {
|
|
4897
|
+
let De = 0;
|
|
4898
|
+
for (const K of ke) {
|
|
4899
|
+
const $ = K.daily;
|
|
4900
|
+
q = {
|
|
4901
4901
|
wave: {
|
|
4902
4902
|
sig: {
|
|
4903
|
-
height: (W =
|
|
4904
|
-
degree: (ce =
|
|
4905
|
-
period: (re =
|
|
4906
|
-
bearing: ((de =
|
|
4903
|
+
height: (W = $.wave_height_max) == null ? void 0 : W.at(S),
|
|
4904
|
+
degree: (ce = $.wave_direction_dominant) == null ? void 0 : ce.at(S),
|
|
4905
|
+
period: (re = $.wave_period_max) == null ? void 0 : re.at(S),
|
|
4906
|
+
bearing: ((de = $.wave_direction_dominant) == null ? void 0 : de.at(S)) !== null ? (((we = $.wave_direction_dominant) == null ? void 0 : we.at(S)) + 180) % 360 : null
|
|
4907
4907
|
},
|
|
4908
4908
|
swell: {
|
|
4909
|
-
height: (pe =
|
|
4910
|
-
degree: (ve =
|
|
4911
|
-
period: (me =
|
|
4912
|
-
peakPeriod: (U =
|
|
4909
|
+
height: (pe = $.swell_wave_height_max) == null ? void 0 : pe.at(S),
|
|
4910
|
+
degree: (ve = $.swell_wave_direction_dominant) == null ? void 0 : ve.at(S),
|
|
4911
|
+
period: (me = $.swell_wave_period_max) == null ? void 0 : me.at(S),
|
|
4912
|
+
peakPeriod: (U = $.swell_wave_peak_period_max) == null ? void 0 : U.at(S),
|
|
4913
4913
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
4914
|
-
bearing: ((
|
|
4914
|
+
bearing: ((Z = $.swell_wave_direction_dominant) == null ? void 0 : Z.at(S)) !== null ? ((ye = $.swell_wave_direction_dominant) == null ? void 0 : ye.at(S)) % 360 : null
|
|
4915
4915
|
},
|
|
4916
4916
|
wd: {
|
|
4917
|
-
height: (ne =
|
|
4918
|
-
degree: (fe =
|
|
4919
|
-
period: (
|
|
4920
|
-
peakPeriod: (be =
|
|
4921
|
-
bearing: ((
|
|
4917
|
+
height: (ne = $.wind_wave_height_max) == null ? void 0 : ne.at(S),
|
|
4918
|
+
degree: (fe = $.wind_wave_direction_dominant) == null ? void 0 : fe.at(S),
|
|
4919
|
+
period: (Ce = $.wind_wave_period_max) == null ? void 0 : Ce.at(S),
|
|
4920
|
+
peakPeriod: (be = $.wind_wave_peak_period_max) == null ? void 0 : be.at(S),
|
|
4921
|
+
bearing: ((xe = $.wind_wave_direction_dominant) == null ? void 0 : xe.at(S)) !== null ? (((B = $.wind_wave_direction_dominant) == null ? void 0 : B.at(S)) + 180) % 360 : null
|
|
4922
4922
|
}
|
|
4923
4923
|
}
|
|
4924
|
-
},
|
|
4924
|
+
}, q.wave = this.parseWave(q.wave, J == null ? void 0 : J.wind), Object.assign(_e[De], q), De++;
|
|
4925
4925
|
}
|
|
4926
4926
|
}
|
|
4927
4927
|
}
|
|
4928
|
-
return
|
|
4928
|
+
return _e;
|
|
4929
4929
|
}
|
|
4930
4930
|
static parseWave(e, t) {
|
|
4931
4931
|
if (e.sig.direction = this.degree2Direction(e.sig.degree), e.swell.direction = this.degree2Direction(e.swell.degree), e.wd.direction = this.degree2Direction(e.wd.degree), e.sig.scale = this.douglas(e.sig.height), e.swell.scale = this.douglas(e.swell.height), e.wd.scale = this.douglas(e.wd.height), e.sig.height === 0) {
|
|
@@ -5382,7 +5382,7 @@ const Oa = {
|
|
|
5382
5382
|
computeTime() {
|
|
5383
5383
|
return function(a) {
|
|
5384
5384
|
if (a) {
|
|
5385
|
-
const e =
|
|
5385
|
+
const e = ie(a).utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
5386
5386
|
return `${e.format("MMM-DD/HHmm")} [ UTC${t} ] ( ${e == null ? void 0 : e.fromNow()} )`;
|
|
5387
5387
|
}
|
|
5388
5388
|
return "-";
|
|
@@ -5433,7 +5433,7 @@ const Oa = {
|
|
|
5433
5433
|
var e, t;
|
|
5434
5434
|
(((t = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : t.features) || []).forEach((r) => {
|
|
5435
5435
|
var i, s;
|
|
5436
|
-
((i = r.geometry) == null ? void 0 : i.type) === "Point" && ((s = r.properties) != null && s.important) && (r.properties.format =
|
|
5436
|
+
((i = r.geometry) == null ? void 0 : i.type) === "Point" && ((s = r.properties) != null && s.important) && (r.properties.format = ie(r.properties.date).utcOffset(this.timeZone).format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
5437
5437
|
}), this.handleInit();
|
|
5438
5438
|
},
|
|
5439
5439
|
handleInit() {
|
|
@@ -5467,7 +5467,7 @@ const Oa = {
|
|
|
5467
5467
|
));
|
|
5468
5468
|
},
|
|
5469
5469
|
handleRender() {
|
|
5470
|
-
var a, e, t, r, i, s, n, l, c, d, h, p,
|
|
5470
|
+
var a, e, t, r, i, s, n, l, c, d, h, p, L;
|
|
5471
5471
|
if (!this.map)
|
|
5472
5472
|
setTimeout(() => {
|
|
5473
5473
|
this.handleRender();
|
|
@@ -5475,8 +5475,8 @@ const Oa = {
|
|
|
5475
5475
|
else {
|
|
5476
5476
|
if (this.tropicals) {
|
|
5477
5477
|
const E = (/* @__PURE__ */ new Date()).valueOf();
|
|
5478
|
-
let
|
|
5479
|
-
if ((a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), I = (/* @__PURE__ */ new Date()).valueOf() - (E +
|
|
5478
|
+
let A = 0, I = 0;
|
|
5479
|
+
if ((a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), I = (/* @__PURE__ */ new Date()).valueOf() - (E + A), console.log("[tropicals] update elapsed: ", I, ", total: ", A += I)) : (this.map.addSource(this.source, {
|
|
5480
5480
|
type: "geojson",
|
|
5481
5481
|
data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
|
|
5482
5482
|
}), this.map.addLayer({
|
|
@@ -5573,8 +5573,8 @@ const Oa = {
|
|
|
5573
5573
|
],
|
|
5574
5574
|
"text-halo-width": 4
|
|
5575
5575
|
}
|
|
5576
|
-
}), I = (/* @__PURE__ */ new Date()).valueOf() - (E +
|
|
5577
|
-
(l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), I = (/* @__PURE__ */ new Date()).valueOf() - (E +
|
|
5576
|
+
}), I = (/* @__PURE__ */ new Date()).valueOf() - (E + A), console.log("[tropical] add elapsed: ", I, ", total: ", A += I)), (s = this.map) != null && s.getSource(this.clusterSource))
|
|
5577
|
+
(l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), I = (/* @__PURE__ */ new Date()).valueOf() - (E + A), console.log("[tropical] update elapsed: ", I, ", total: ", A += I);
|
|
5578
5578
|
else {
|
|
5579
5579
|
if (this.map.addSource(this.clusterSource, {
|
|
5580
5580
|
type: "geojson",
|
|
@@ -5617,27 +5617,27 @@ const Oa = {
|
|
|
5617
5617
|
]
|
|
5618
5618
|
}
|
|
5619
5619
|
}), this.fromTropicalReport) {
|
|
5620
|
-
const _ = (h = this.tropicals.data.features) == null ? void 0 : h.filter((
|
|
5621
|
-
let
|
|
5622
|
-
_.forEach((
|
|
5623
|
-
var N, H, j, G, W, ce, re, de, we, pe, ve, me, U,
|
|
5624
|
-
let
|
|
5625
|
-
const
|
|
5626
|
-
if (
|
|
5627
|
-
let
|
|
5628
|
-
J = ((
|
|
5629
|
-
const
|
|
5630
|
-
|
|
5620
|
+
const _ = (h = this.tropicals.data.features) == null ? void 0 : h.filter((b) => b.geometry.type === "Point" && b.properties.type === "forecast");
|
|
5621
|
+
let y = 0, v = 0, m = (L = (p = this.findClosestToNumber(_, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : L.hour;
|
|
5622
|
+
_.forEach((b, f) => {
|
|
5623
|
+
var D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, Z, ye, ne, fe, Ce, be, xe, B, Ee, Le, ke, Be, ze;
|
|
5624
|
+
let w;
|
|
5625
|
+
const P = this.findClosestToNumber(_, "hour", m + y * 24);
|
|
5626
|
+
if (P && ((D = P == null ? void 0 : P.properties) == null ? void 0 : D.hour) === ((N = b.properties) == null ? void 0 : N.hour) && (w = P), w) {
|
|
5627
|
+
let _e = 0, J = "tropical-marker-box", q = "tropical-marker-line";
|
|
5628
|
+
J = ((G = (j = (H = w.properties) == null ? void 0 : H.wind) == null ? void 0 : j.en) == null ? void 0 : G.toUpperCase()) === "SUPER TY" ? J + " supper" : J + " normal", q = ((re = (ce = (W = w.properties) == null ? void 0 : W.wind) == null ? void 0 : ce.en) == null ? void 0 : re.toUpperCase()) === "SUPER TY" ? q + " supper" : q + " normal", ((we = (de = w.properties) == null ? void 0 : de.movement) == null ? void 0 : we.deg) >= 0 && ((ve = (pe = w.properties) == null ? void 0 : pe.movement) == null ? void 0 : ve.deg) <= 60 || ((U = (me = w.properties) == null ? void 0 : me.movement) == null ? void 0 : U.deg) >= 120 && ((ye = (Z = w.properties) == null ? void 0 : Z.movement) == null ? void 0 : ye.deg) <= 240 || ((fe = (ne = w.properties) == null ? void 0 : ne.movement) == null ? void 0 : fe.deg) >= 300 && ((be = (Ce = w.properties) == null ? void 0 : Ce.movement) == null ? void 0 : be.deg) <= 360 ? (_e = y % 2 === 0 ? [100, 0] : [-100, 0], J = y % 2 === 0 ? J + " right" : J + " left", q = y % 2 === 0 ? q + " vertical right" : q + " vertical left") : (_e = v % 2 === 0 ? [60, 40] : [60, -40], J = v % 2 === 0 ? J + " right" : J + " left", q = v % 2 === 0 ? q + " align bottom" : q + " align top", v = v + 1);
|
|
5629
|
+
const S = document.createElement("div");
|
|
5630
|
+
S.className = J, S.innerHTML = `
|
|
5631
5631
|
<div style="">
|
|
5632
|
-
<span>${((
|
|
5633
|
-
<span> [${((
|
|
5632
|
+
<span>${((xe = b.properties) == null ? void 0 : xe.format) || "-"}</span>
|
|
5633
|
+
<span> [${((Le = (Ee = (B = b.properties) == null ? void 0 : B.wind) == null ? void 0 : Ee.en) == null ? void 0 : Le.toUpperCase()) || "-"}]</span>
|
|
5634
5634
|
</div>
|
|
5635
5635
|
<div>
|
|
5636
|
-
<span>BF${((
|
|
5637
|
-
<span>${((
|
|
5636
|
+
<span>BF${((Be = (ke = b.properties) == null ? void 0 : ke.wind) == null ? void 0 : Be.bf) || "-"}</span> /
|
|
5637
|
+
<span>${((ze = b.properties) == null ? void 0 : ze.pressure) || "-"} kPa</span>
|
|
5638
5638
|
</div>
|
|
5639
|
-
<div class="${
|
|
5640
|
-
`, this.labelMarkers.push(new Re.Marker(
|
|
5639
|
+
<div class="${q}"></div>
|
|
5640
|
+
`, this.labelMarkers.push(new Re.Marker(S).setLngLat(b.geometry.coordinates).setOffset(_e).addTo(this.map)), y = y + 1;
|
|
5641
5641
|
}
|
|
5642
5642
|
});
|
|
5643
5643
|
} else
|
|
@@ -5719,7 +5719,7 @@ const Oa = {
|
|
|
5719
5719
|
"text-halo-color": "#0033ff",
|
|
5720
5720
|
"text-halo-width": 4
|
|
5721
5721
|
}
|
|
5722
|
-
}), I = (/* @__PURE__ */ new Date()).valueOf() - (E +
|
|
5722
|
+
}), I = (/* @__PURE__ */ new Date()).valueOf() - (E + A), console.log("[tropical] add elapsed: ", I, ", total: ", A += I);
|
|
5723
5723
|
}
|
|
5724
5724
|
}
|
|
5725
5725
|
this.handleDrawCircle();
|
|
@@ -5743,9 +5743,9 @@ const Oa = {
|
|
|
5743
5743
|
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), this.labelMarkers.forEach((e) => e == null ? void 0 : e.remove()), this.labelMarkers = []);
|
|
5744
5744
|
},
|
|
5745
5745
|
handleDateChange() {
|
|
5746
|
-
var a, e, t, r, i, s, n, l, c, d, h, p,
|
|
5746
|
+
var a, e, t, r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, P, D, N, H, j, G, W, ce;
|
|
5747
5747
|
if ((a = this.interpolateMarkers) == null || a.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
5748
|
-
const re =
|
|
5748
|
+
const re = ie(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = ie.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), we = re.isBefore(de) && de.diff(re, "h") < 2 ? de.format() : re.format(), pe = this.interpolateData.filter((U) => U.properties.date === we && !U.properties.disabled), ve = this.handleComputePolygons(pe), me = Q.featureCollection([...pe]);
|
|
5749
5749
|
ve.forEach((U) => {
|
|
5750
5750
|
me.features.push(U);
|
|
5751
5751
|
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(me) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
@@ -5764,15 +5764,15 @@ const Oa = {
|
|
|
5764
5764
|
})), this.interpolateMarkers = [];
|
|
5765
5765
|
for (const U of pe)
|
|
5766
5766
|
if (!U.properties.disabled) {
|
|
5767
|
-
let
|
|
5768
|
-
((l = (n = U.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = U.properties) == null ? void 0 : c.wind) != null && d.kts) ?
|
|
5767
|
+
let Z = "#f44336";
|
|
5768
|
+
((l = (n = U.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = U.properties) == null ? void 0 : c.wind) != null && d.kts) ? Z = "#03f869" : ((p = (h = U.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((x = (L = U.properties) == null ? void 0 : L.wind) == null ? void 0 : x.kts) < 47 ? Z = "#f2f202" : ((A = (E = U.properties) == null ? void 0 : E.wind) == null ? void 0 : A.kts) >= 47 && ((_ = (I = U.properties) == null ? void 0 : I.wind) == null ? void 0 : _.kts) < 63 ? Z = "#ff9100" : ((v = (y = U.properties) == null ? void 0 : y.wind) == null ? void 0 : v.kts) >= 63 && ((b = (m = U.properties) == null ? void 0 : m.wind) == null ? void 0 : b.kts) < 79 ? Z = "#f44336" : ((w = (f = U.properties) == null ? void 0 : f.wind) == null ? void 0 : w.kts) >= 79 && ((D = (P = U.properties) == null ? void 0 : P.wind) == null ? void 0 : D.kts) < 94 ? Z = "#f903d0" : ((H = (N = U.properties) == null ? void 0 : N.wind) == null ? void 0 : H.kts) >= 94 ? Z = "#8702f9" : Z = "#f44336";
|
|
5769
5769
|
const ye = `<svg t="1719918955501"
|
|
5770
5770
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5771
5771
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
5772
5772
|
<path
|
|
5773
5773
|
d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
|
|
5774
|
-
fill="${
|
|
5775
|
-
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${
|
|
5774
|
+
fill="${Z}" p-id="18383"></path>
|
|
5775
|
+
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${Z}"
|
|
5776
5776
|
p-id="18384"></path>
|
|
5777
5777
|
<path
|
|
5778
5778
|
d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
|
|
@@ -5789,7 +5789,7 @@ const Oa = {
|
|
|
5789
5789
|
(W = this.map) != null && W.getSource(this.interpolateSource) && ((ce = this.map) == null || ce.getSource(this.interpolateSource).setData(this.empty));
|
|
5790
5790
|
},
|
|
5791
5791
|
handleClick(a) {
|
|
5792
|
-
var s, n, l, c, d, h, p,
|
|
5792
|
+
var s, n, l, c, d, h, p, L;
|
|
5793
5793
|
const e = a.features[0], t = (n = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : n.features.filter(
|
|
5794
5794
|
(x) => {
|
|
5795
5795
|
var E;
|
|
@@ -5805,7 +5805,7 @@ const Oa = {
|
|
|
5805
5805
|
name: (d = e == null ? void 0 : e.properties) == null ? void 0 : d.name,
|
|
5806
5806
|
forecasts: t.map((x) => x.properties),
|
|
5807
5807
|
history: (h = r[0]) == null ? void 0 : h.properties,
|
|
5808
|
-
showCircle: (
|
|
5808
|
+
showCircle: (L = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : L.showCircle
|
|
5809
5809
|
}, this.showTropicals = !0;
|
|
5810
5810
|
const i = document.getElementById("idm-tropical-gl3");
|
|
5811
5811
|
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new Re.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
@@ -5919,18 +5919,18 @@ const Oa = {
|
|
|
5919
5919
|
style: { "justify-content": "flex-start" }
|
|
5920
5920
|
}, ai = { class: "forecast-models" }, ii = ["onClick"], ri = { class: "more" };
|
|
5921
5921
|
function si(a, e, t, r, i, s) {
|
|
5922
|
-
var n, l, c, d, h, p,
|
|
5923
|
-
return Fe((
|
|
5922
|
+
var n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, P;
|
|
5923
|
+
return Fe((u(), g("div", Ra, [
|
|
5924
5924
|
o("div", ja, [
|
|
5925
5925
|
o("div", {
|
|
5926
5926
|
class: "iconfont close-btn",
|
|
5927
5927
|
onClick: e[0] || (e[0] = (D) => i.showTropicals = !1)
|
|
5928
5928
|
}, ""),
|
|
5929
5929
|
o("div", Wa, [
|
|
5930
|
-
(l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (
|
|
5930
|
+
(l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (u(), g("span", Ga, k((d = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : d.level) + " , ", 1)) : V("", !0),
|
|
5931
5931
|
ue(k((h = i.activeTropicals) == null ? void 0 : h.name), 1)
|
|
5932
5932
|
]),
|
|
5933
|
-
o("div", Ua, " Last update: " + k(s.computeTime(((
|
|
5933
|
+
o("div", Ua, " Last update: " + k(s.computeTime(((L = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : L.updated) || ((A = (E = (x = i.activeTropicals) == null ? void 0 : x.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : A.date))), 1)
|
|
5934
5934
|
]),
|
|
5935
5935
|
o("div", Ya, [
|
|
5936
5936
|
o("div", Ka, [
|
|
@@ -5938,32 +5938,32 @@ function si(a, e, t, r, i, s) {
|
|
|
5938
5938
|
o("div", Ja, [
|
|
5939
5939
|
e[3] || (e[3] = o("label", null, "Wind speed : ", -1)),
|
|
5940
5940
|
o("span", null, k(((_ = (I = i.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : _.kts) || "-") + " [kts]", 1),
|
|
5941
|
-
o("span", null, ", BF " + k(s.computeBF(((
|
|
5941
|
+
o("span", null, ", BF " + k(s.computeBF(((v = (y = i.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : v.kts) || 0)), 1)
|
|
5942
5942
|
]),
|
|
5943
5943
|
o("div", qa, [
|
|
5944
5944
|
e[4] || (e[4] = o("label", null, "Pressure : ", -1)),
|
|
5945
|
-
o("span", null, k(((
|
|
5945
|
+
o("span", null, k(((b = (m = i.activeTropicals) == null ? void 0 : m.history) == null ? void 0 : b.pressure) || "-") + " [hPa]", 1)
|
|
5946
5946
|
])
|
|
5947
5947
|
]),
|
|
5948
5948
|
o("div", Va, [
|
|
5949
5949
|
o("div", Za, [
|
|
5950
5950
|
e[5] || (e[5] = o("label", null, "Move Speed: ", -1)),
|
|
5951
|
-
o("span", null, k((
|
|
5951
|
+
o("span", null, k((f = s.computeMovement(i.activeTropicals)) == null ? void 0 : f.kts) + " [kts]", 1)
|
|
5952
5952
|
]),
|
|
5953
5953
|
o("div", $a, [
|
|
5954
5954
|
e[6] || (e[6] = o("label", null, "Move Dir: ", -1)),
|
|
5955
|
-
o("span", null, k((
|
|
5955
|
+
o("span", null, k((w = s.computeMovement(i.activeTropicals)) == null ? void 0 : w.deg) + " [°]", 1)
|
|
5956
5956
|
])
|
|
5957
5957
|
]),
|
|
5958
5958
|
o("div", ei, [
|
|
5959
5959
|
o("div", ti, [
|
|
5960
5960
|
e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
5961
5961
|
o("div", ai, [
|
|
5962
|
-
(
|
|
5962
|
+
(u(!0), g(ee, null, ae((P = i.activeTropicals) == null ? void 0 : P.forecasts, (D, N) => {
|
|
5963
5963
|
var H, j, G, W;
|
|
5964
|
-
return
|
|
5964
|
+
return u(), g("div", {
|
|
5965
5965
|
key: N,
|
|
5966
|
-
class:
|
|
5966
|
+
class: te([
|
|
5967
5967
|
"model",
|
|
5968
5968
|
D.disabled ? "" : "active",
|
|
5969
5969
|
N > 0 && N < ((j = (H = i.activeTropicals) == null ? void 0 : H.forecasts) == null ? void 0 : j.length) - 1 && ((W = (G = i.activeTropicals) == null ? void 0 : G.forecasts) == null ? void 0 : W.length) > 2 ? "center-child" : ""
|
|
@@ -5971,7 +5971,7 @@ function si(a, e, t, r, i, s) {
|
|
|
5971
5971
|
onClick: (ce) => s.handleForecastToggle(D)
|
|
5972
5972
|
}, [
|
|
5973
5973
|
o("span", {
|
|
5974
|
-
class:
|
|
5974
|
+
class: te(D.model)
|
|
5975
5975
|
}, k(D.model), 3)
|
|
5976
5976
|
], 10, ii);
|
|
5977
5977
|
}), 128))
|
|
@@ -5981,12 +5981,12 @@ function si(a, e, t, r, i, s) {
|
|
|
5981
5981
|
e[8] || (e[8] = yt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);"></div><div class="row" style="padding:2px 10px;"><div class="legend"><div class="icon td"></div><div class="label">TD</div></div><div class="legend"><div class="icon ts"></div><div class="label">TS</div></div><div class="legend"><div class="icon sts"></div><div class="label">STS</div></div><div class="legend"><div class="icon ty"></div><div class="label">TY</div></div><div class="legend"><div class="icon sty"></div><div class="label">STY</div></div><div class="legend"><div class="icon supper-ty"></div><div class="label">Super TY</div></div></div><div class="row" style="padding:2px 10px;"><div class="legend"><div class="icon history"></div><div class="label">History</div></div><div class="legend"><div class="icon r7"></div><div class="label">35kts Radii</div></div><div class="legend"><div class="icon r10"></div><div class="label">50kts Radii</div></div></div>', 3))
|
|
5982
5982
|
]),
|
|
5983
5983
|
o("div", ri, [
|
|
5984
|
-
t.permission & i.helper.LEVEL.Supper ? (
|
|
5984
|
+
t.permission & i.helper.LEVEL.Supper ? (u(), g("div", {
|
|
5985
5985
|
key: 0,
|
|
5986
5986
|
class: "button",
|
|
5987
5987
|
style: { "margin-right": "10px" },
|
|
5988
5988
|
onClick: e[1] || (e[1] = (D) => s.handleNotification(i.activeTropicals))
|
|
5989
|
-
}, "Notify")) :
|
|
5989
|
+
}, "Notify")) : V("", !0),
|
|
5990
5990
|
o("div", {
|
|
5991
5991
|
class: "button",
|
|
5992
5992
|
onClick: e[2] || (e[2] = (D) => s.handleStrikeProbability(i.activeTropicals))
|
|
@@ -6102,7 +6102,7 @@ const oi = {
|
|
|
6102
6102
|
}, ni = { key: 0 };
|
|
6103
6103
|
function li(a, e, t, r, i, s) {
|
|
6104
6104
|
var n;
|
|
6105
|
-
return (n = t.factor) != null && n.active ? (
|
|
6105
|
+
return (n = t.factor) != null && n.active ? (u(), g("div", ni, [
|
|
6106
6106
|
o("div", {
|
|
6107
6107
|
class: "legend-bars flex-center",
|
|
6108
6108
|
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -6116,7 +6116,7 @@ function li(a, e, t, r, i, s) {
|
|
|
6116
6116
|
o("span", null, "20", -1),
|
|
6117
6117
|
o("span", null, "30", -1)
|
|
6118
6118
|
]), 4)
|
|
6119
|
-
])) :
|
|
6119
|
+
])) : V("", !0);
|
|
6120
6120
|
}
|
|
6121
6121
|
const hi = /* @__PURE__ */ Y(oi, [["render", li], ["__scopeId", "data-v-9708a7a3"]]);
|
|
6122
6122
|
const ci = {
|
|
@@ -6216,7 +6216,7 @@ const ci = {
|
|
|
6216
6216
|
}, di = { key: 0 };
|
|
6217
6217
|
function pi(a, e, t, r, i, s) {
|
|
6218
6218
|
var n;
|
|
6219
|
-
return (n = t.factor) != null && n.active ? (
|
|
6219
|
+
return (n = t.factor) != null && n.active ? (u(), g("div", di, [
|
|
6220
6220
|
o("div", {
|
|
6221
6221
|
class: "legend-bars flex-center",
|
|
6222
6222
|
style: ge([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
@@ -6228,7 +6228,7 @@ function pi(a, e, t, r, i, s) {
|
|
|
6228
6228
|
o("span", null, "3", -1),
|
|
6229
6229
|
o("span", null, "9", -1)
|
|
6230
6230
|
]), 4)
|
|
6231
|
-
])) :
|
|
6231
|
+
])) : V("", !0);
|
|
6232
6232
|
}
|
|
6233
6233
|
const mi = /* @__PURE__ */ Y(ci, [["render", pi], ["__scopeId", "data-v-f7b2fb08"]]);
|
|
6234
6234
|
const ui = {
|
|
@@ -6336,7 +6336,7 @@ const ui = {
|
|
|
6336
6336
|
}, gi = { key: 0 };
|
|
6337
6337
|
function yi(a, e, t, r, i, s) {
|
|
6338
6338
|
var n;
|
|
6339
|
-
return (n = t.factor) != null && n.active ? (
|
|
6339
|
+
return (n = t.factor) != null && n.active ? (u(), g("div", gi, [
|
|
6340
6340
|
o("div", {
|
|
6341
6341
|
class: "legend-bars flex-center",
|
|
6342
6342
|
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -6348,7 +6348,7 @@ function yi(a, e, t, r, i, s) {
|
|
|
6348
6348
|
o("span", null, "30", -1),
|
|
6349
6349
|
o("span", null, "40", -1)
|
|
6350
6350
|
]), 4)
|
|
6351
|
-
])) :
|
|
6351
|
+
])) : V("", !0);
|
|
6352
6352
|
}
|
|
6353
6353
|
const fi = /* @__PURE__ */ Y(ui, [["render", yi], ["__scopeId", "data-v-7521f582"]]);
|
|
6354
6354
|
const Ai = {
|
|
@@ -6459,7 +6459,7 @@ const Ai = {
|
|
|
6459
6459
|
}, wi = { key: 0 };
|
|
6460
6460
|
function vi(a, e, t, r, i, s) {
|
|
6461
6461
|
var n;
|
|
6462
|
-
return (n = t.factor) != null && n.active ? (
|
|
6462
|
+
return (n = t.factor) != null && n.active ? (u(), g("div", wi, [
|
|
6463
6463
|
o("div", {
|
|
6464
6464
|
class: "legend-bars flex-center",
|
|
6465
6465
|
style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -6473,7 +6473,7 @@ function vi(a, e, t, r, i, s) {
|
|
|
6473
6473
|
o("span", null, "30", -1),
|
|
6474
6474
|
o("span", null, "40", -1)
|
|
6475
6475
|
]), 4)
|
|
6476
|
-
])) :
|
|
6476
|
+
])) : V("", !0);
|
|
6477
6477
|
}
|
|
6478
6478
|
const bi = /* @__PURE__ */ Y(Ai, [["render", vi], ["__scopeId", "data-v-25daaa82"]]);
|
|
6479
6479
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
@@ -6481,7 +6481,7 @@ var Li = /* @__PURE__ */ ft({
|
|
|
6481
6481
|
name: "LocationFilled",
|
|
6482
6482
|
__name: "location-filled",
|
|
6483
6483
|
setup(a) {
|
|
6484
|
-
return (e, t) => (
|
|
6484
|
+
return (e, t) => (u(), g("svg", {
|
|
6485
6485
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6486
6486
|
viewBox: "0 0 1024 1024"
|
|
6487
6487
|
}, [
|
|
@@ -6585,8 +6585,8 @@ const _i = {
|
|
|
6585
6585
|
var a;
|
|
6586
6586
|
if (this.showMeteo && this.ts) {
|
|
6587
6587
|
this.handleRender();
|
|
6588
|
-
const e =
|
|
6589
|
-
((a =
|
|
6588
|
+
const e = ie();
|
|
6589
|
+
((a = ie(this.ts)) == null ? void 0 : a.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData);
|
|
6590
6590
|
}
|
|
6591
6591
|
}
|
|
6592
6592
|
},
|
|
@@ -6595,8 +6595,8 @@ const _i = {
|
|
|
6595
6595
|
var a;
|
|
6596
6596
|
if (this.showMeteo = !0, this.tideData = {}, this.meteoData = {}, this.showMeteo && this.ts) {
|
|
6597
6597
|
this.handleRender();
|
|
6598
|
-
const e =
|
|
6599
|
-
if (((a =
|
|
6598
|
+
const e = ie();
|
|
6599
|
+
if (((a = ie(this.ts)) == null ? void 0 : a.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData), this.activeIndex === 4) {
|
|
6600
6600
|
const r = $e.pickDailyExtremes(this.tideData, this.ts);
|
|
6601
6601
|
(r == null ? void 0 : r.length) > 0 ? this.tideTableData = r : await this.fetchTidesData(this.point, this.ts, 7);
|
|
6602
6602
|
}
|
|
@@ -6607,7 +6607,7 @@ const _i = {
|
|
|
6607
6607
|
async handler() {
|
|
6608
6608
|
var a;
|
|
6609
6609
|
if (this.showMeteo && this.ts) {
|
|
6610
|
-
const e =
|
|
6610
|
+
const e = ie(), t = (a = ie(this.ts)) == null ? void 0 : a.diff(e, "d", !0), i = [0, 1, 2, 3, 4, 5, 6, 7].every((s) => {
|
|
6611
6611
|
var l;
|
|
6612
6612
|
const n = Ye(this.ts).tz(this.positionGmt).add(3 * s, "h").format();
|
|
6613
6613
|
return (l = Ke.pickHourly(this.meteoData, n)) == null ? void 0 : l[0];
|
|
@@ -6628,7 +6628,7 @@ const _i = {
|
|
|
6628
6628
|
},
|
|
6629
6629
|
computeHourZ() {
|
|
6630
6630
|
return function(a) {
|
|
6631
|
-
return a ? `${
|
|
6631
|
+
return a ? `${ie(a).utc().format("HH")}Z` : "-";
|
|
6632
6632
|
};
|
|
6633
6633
|
},
|
|
6634
6634
|
computeHourHmmLT() {
|
|
@@ -6655,7 +6655,7 @@ const _i = {
|
|
|
6655
6655
|
methods: {
|
|
6656
6656
|
async fetchMeteoData(a, e, t) {
|
|
6657
6657
|
this.loading = !0, this.meteoData = [];
|
|
6658
|
-
let r = e ?
|
|
6658
|
+
let r = e ? ie(e).utc().format() : ie().utc().format();
|
|
6659
6659
|
const { weatherModels: i, marineModels: s } = Ke.autoPickMeteoModel(this.forecastModel);
|
|
6660
6660
|
let n = {
|
|
6661
6661
|
lat: a.lat,
|
|
@@ -6673,7 +6673,7 @@ const _i = {
|
|
|
6673
6673
|
},
|
|
6674
6674
|
async fetchHistoryData(a, e) {
|
|
6675
6675
|
this.loading = !0, this.meteoData = [];
|
|
6676
|
-
const t = e ?
|
|
6676
|
+
const t = e ? ie(e).utc().format() : ie().utc().format(), { weatherModels: r, marineModels: i } = Ke.autoPickMeteoModel(this.forecastModel), s = {
|
|
6677
6677
|
lat: a.lat,
|
|
6678
6678
|
lng: a.lng,
|
|
6679
6679
|
datetime: t,
|
|
@@ -6690,17 +6690,17 @@ const _i = {
|
|
|
6690
6690
|
},
|
|
6691
6691
|
initTableData(a) {
|
|
6692
6692
|
var e, t, r, i, s, n, l, c, d;
|
|
6693
|
-
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,
|
|
6694
|
-
var p,
|
|
6693
|
+
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, ie(this.ts))) == null ? void 0 : l[0], ((d = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : d.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
6694
|
+
var p, L, x, E, A, I, _, y, v, m, b, f, w, P, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, Z, ye, ne, fe, Ce;
|
|
6695
6695
|
if (!document.getElementById("meteoMainBox"))
|
|
6696
6696
|
return !1;
|
|
6697
6697
|
if (!this.currentHourData)
|
|
6698
6698
|
return this.loading = !1, this.tableData.hours = [void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0], this.handleRender(), !1;
|
|
6699
6699
|
for (let be = 0; be < 8; be++) {
|
|
6700
|
-
const
|
|
6701
|
-
this.tableData.hours.push(
|
|
6702
|
-
const B = ((p = Ke.pickHourly(a,
|
|
6703
|
-
this.tableData.temp.push(this.roundPrecision((
|
|
6700
|
+
const xe = Ye(this.ts).tz(this.positionGmt).add(3 * be, "h").format();
|
|
6701
|
+
this.tableData.hours.push(xe);
|
|
6702
|
+
const B = ((p = Ke.pickHourly(a, xe)) == null ? void 0 : p[0]) || {};
|
|
6703
|
+
this.tableData.temp.push(this.roundPrecision((L = B == null ? void 0 : B.weather) == null ? void 0 : L.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (x = B == null ? void 0 : B.weather) == null ? void 0 : x.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((I = (A = B == null ? void 0 : B.weather) == null ? void 0 : A.precip) == null ? void 0 : I.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((v = (y = B == null ? void 0 : B.weather) == null ? void 0 : y.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((b = (m = B == null ? void 0 : B.weather) == null ? void 0 : m.wind) == null ? void 0 : b.bearing), this.tableData.windGust.push(this.roundPrecision((w = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.wind) == null ? void 0 : w.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (P = B == null ? void 0 : B.wave) == null ? void 0 : P.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (N = B == null ? void 0 : B.wave) == null ? void 0 : N.sig) == null ? void 0 : H.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((ce = (W = B == null ? void 0 : B.wave) == null ? void 0 : W.wd) == null ? void 0 : ce.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((de = (re = B == null ? void 0 : B.wave) == null ? void 0 : re.wd) == null ? void 0 : de.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((pe = (we = B == null ? void 0 : B.wave) == null ? void 0 : we.swell) == null ? void 0 : pe.height, 1) ?? "-"), this.tableData.swellDir.push((me = (ve = B == null ? void 0 : B.wave) == null ? void 0 : ve.swell) == null ? void 0 : me.bearing), this.tableData.swellPeriod.push(this.roundPrecision((Z = (U = B == null ? void 0 : B.wave) == null ? void 0 : U.swell) == null ? void 0 : Z.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((ne = B == null ? void 0 : B.current) == null ? void 0 : ne.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((fe = B == null ? void 0 : B.weather) == null ? void 0 : fe.url), this.tableData.weatherNames.push(((Ce = B == null ? void 0 : B.weather) == null ? void 0 : Ce.name) ?? "-");
|
|
6704
6704
|
}
|
|
6705
6705
|
});
|
|
6706
6706
|
},
|
|
@@ -6736,7 +6736,7 @@ const _i = {
|
|
|
6736
6736
|
},
|
|
6737
6737
|
async fetchTidesData(a, e, t) {
|
|
6738
6738
|
this.tideLoading = !0, this.tideData = {};
|
|
6739
|
-
let r = e ?
|
|
6739
|
+
let r = e ? ie(e).utc().format() : ie().utc().format(), i = {
|
|
6740
6740
|
lat: a.lat,
|
|
6741
6741
|
lng: a.lng,
|
|
6742
6742
|
date: r,
|
|
@@ -6826,9 +6826,9 @@ const _i = {
|
|
|
6826
6826
|
class: "main-box flex-center"
|
|
6827
6827
|
};
|
|
6828
6828
|
function Qr(a, e, t, r, i, s) {
|
|
6829
|
-
var d, h, p,
|
|
6829
|
+
var d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, P, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, Z, ye, ne, fe, Ce, be, xe, B, Ee, Le, ke, Be, ze, _e, J, q, S, De, K, $, Se, M, Ae, Me, Te, Qe, z, O, Ge, Ue, oe, Ne, tt, at, it, rt, st, ot;
|
|
6830
6830
|
const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
|
|
6831
|
-
return Fe((
|
|
6831
|
+
return Fe((u(), g("div", Bi, [
|
|
6832
6832
|
o("div", Ii, [
|
|
6833
6833
|
o("div", Ei, [
|
|
6834
6834
|
o("div", ki, [
|
|
@@ -6841,11 +6841,11 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6841
6841
|
o("div", Di, k(s.computeLat((d = i.point) == null ? void 0 : d.lat)) + "," + k(s.computeLng((h = i.point) == null ? void 0 : h.lng)), 1)
|
|
6842
6842
|
]),
|
|
6843
6843
|
o("div", zi, [
|
|
6844
|
-
i.showTables ? (
|
|
6844
|
+
i.showTables ? (u(), g("div", {
|
|
6845
6845
|
key: 0,
|
|
6846
6846
|
class: "iconfont toggle",
|
|
6847
6847
|
onClick: e[0] || (e[0] = (C) => i.showTables = !i.showTables)
|
|
6848
|
-
}, "")) : (
|
|
6848
|
+
}, "")) : (u(), g("div", {
|
|
6849
6849
|
key: 1,
|
|
6850
6850
|
class: "iconfont toggle",
|
|
6851
6851
|
onClick: e[1] || (e[1] = (C) => i.showTables = !i.showTables)
|
|
@@ -6856,14 +6856,14 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6856
6856
|
}, "")
|
|
6857
6857
|
])
|
|
6858
6858
|
]),
|
|
6859
|
-
i.loading ? (
|
|
6859
|
+
i.loading ? (u(), g("div", Tr, e[43] || (e[43] = [
|
|
6860
6860
|
o("img", {
|
|
6861
6861
|
src: xi,
|
|
6862
6862
|
alt: ""
|
|
6863
6863
|
}, null, -1)
|
|
6864
|
-
]))) : (
|
|
6864
|
+
]))) : (u(), g("div", {
|
|
6865
6865
|
key: 0,
|
|
6866
|
-
class:
|
|
6866
|
+
class: te(["main-box", i.isDay ? "day-bg" : "night-bg"]),
|
|
6867
6867
|
id: "meteoMainBox"
|
|
6868
6868
|
}, [
|
|
6869
6869
|
o("div", Pi, [
|
|
@@ -6871,18 +6871,18 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6871
6871
|
F(c, {
|
|
6872
6872
|
placement: "top",
|
|
6873
6873
|
effect: "light",
|
|
6874
|
-
content: (
|
|
6874
|
+
content: (L = (p = i.currentHourData) == null ? void 0 : p.weather) == null ? void 0 : L.name,
|
|
6875
6875
|
"show-after": 1e3
|
|
6876
6876
|
}, {
|
|
6877
6877
|
default: Pe(() => {
|
|
6878
6878
|
var C, T, nt, lt;
|
|
6879
6879
|
return [
|
|
6880
|
-
(T = (C = i.currentHourData) == null ? void 0 : C.weather) != null && T.url ? (
|
|
6880
|
+
(T = (C = i.currentHourData) == null ? void 0 : C.weather) != null && T.url ? (u(), g("img", {
|
|
6881
6881
|
key: 0,
|
|
6882
6882
|
class: "iconfont icon",
|
|
6883
6883
|
style: { "margin-right": "5px" },
|
|
6884
6884
|
src: (lt = (nt = i.currentHourData) == null ? void 0 : nt.weather) == null ? void 0 : lt.url
|
|
6885
|
-
}, null, 8, Si)) : (
|
|
6885
|
+
}, null, 8, Si)) : (u(), g("span", Ti))
|
|
6886
6886
|
];
|
|
6887
6887
|
}),
|
|
6888
6888
|
_: 1
|
|
@@ -6896,15 +6896,15 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6896
6896
|
o("div", Hi, [
|
|
6897
6897
|
o("div", Ni, [
|
|
6898
6898
|
e[10] || (e[10] = o("label", null, "Precip : ", -1)),
|
|
6899
|
-
o("span", null, k(s.roundPrecision((_ = (I = (
|
|
6899
|
+
o("span", null, k(s.roundPrecision((_ = (I = (A = i.currentHourData) == null ? void 0 : A.weather) == null ? void 0 : I.precip) == null ? void 0 : _.sum, 0)) + " mm", 1)
|
|
6900
6900
|
]),
|
|
6901
6901
|
o("div", Fi, [
|
|
6902
6902
|
e[11] || (e[11] = o("label", null, "Visibility : ", -1)),
|
|
6903
|
-
o("span", null, k(s.roundPrecision((
|
|
6903
|
+
o("span", null, k(s.roundPrecision((v = (y = i.currentHourData) == null ? void 0 : y.weather) == null ? void 0 : v.visibility, 0)) + " nm", 1)
|
|
6904
6904
|
]),
|
|
6905
6905
|
o("div", Oi, [
|
|
6906
6906
|
e[12] || (e[12] = o("label", null, "Wind : ", -1)),
|
|
6907
|
-
o("span", null, k(s.roundPrecision((
|
|
6907
|
+
o("span", null, k(s.roundPrecision((f = (b = (m = i.currentHourData) == null ? void 0 : m.weather) == null ? void 0 : b.wind) == null ? void 0 : f.kts, 1)) + " kts", 1)
|
|
6908
6908
|
])
|
|
6909
6909
|
])
|
|
6910
6910
|
]),
|
|
@@ -6916,19 +6916,19 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6916
6916
|
Fe(o("div", Gi, [
|
|
6917
6917
|
o("div", Ui, [
|
|
6918
6918
|
o("div", {
|
|
6919
|
-
class:
|
|
6919
|
+
class: te(["menu-item", i.activeIndex === 1 ? "active" : ""]),
|
|
6920
6920
|
onClick: e[3] || (e[3] = Ve((C) => s.handleSelectTab(1), ["prevent"]))
|
|
6921
6921
|
}, "Basis", 2),
|
|
6922
6922
|
o("div", {
|
|
6923
|
-
class:
|
|
6923
|
+
class: te(["menu-item", i.activeIndex === 2 ? "active" : ""]),
|
|
6924
6924
|
onClick: e[4] || (e[4] = Ve((C) => s.handleSelectTab(2), ["prevent"]))
|
|
6925
6925
|
}, "Wave & Current", 2),
|
|
6926
6926
|
o("div", {
|
|
6927
|
-
class:
|
|
6927
|
+
class: te(["menu-item", i.activeIndex === 3 ? "active" : ""]),
|
|
6928
6928
|
onClick: e[5] || (e[5] = Ve((C) => s.handleSelectTab(3), ["prevent"]))
|
|
6929
6929
|
}, "Sea Surface", 2),
|
|
6930
6930
|
o("div", {
|
|
6931
|
-
class:
|
|
6931
|
+
class: te(["menu-item", i.activeIndex === 4 ? "active" : ""]),
|
|
6932
6932
|
onClick: e[6] || (e[6] = Ve((C) => s.handleSelectTab(4), ["prevent"]))
|
|
6933
6933
|
}, "Tides", 2)
|
|
6934
6934
|
]),
|
|
@@ -6942,7 +6942,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6942
6942
|
ue("Hours"),
|
|
6943
6943
|
o("span", { class: "unit" }, "(LT)")
|
|
6944
6944
|
], -1)),
|
|
6945
|
-
(
|
|
6945
|
+
(u(!0), g(ee, null, ae(i.tableData.hours, (C) => (u(), g("th", {
|
|
6946
6946
|
rowspan: "1",
|
|
6947
6947
|
colspan: "1",
|
|
6948
6948
|
key: `HourL${C}`
|
|
@@ -6957,7 +6957,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6957
6957
|
ue("UTC"),
|
|
6958
6958
|
o("span", { class: "unit" })
|
|
6959
6959
|
], -1)),
|
|
6960
|
-
(
|
|
6960
|
+
(u(!0), g(ee, null, ae(i.tableData.hours, (C) => (u(), g("th", {
|
|
6961
6961
|
rowspan: "1",
|
|
6962
6962
|
colspan: "1",
|
|
6963
6963
|
key: `HourZ${C}`
|
|
@@ -6969,7 +6969,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6969
6969
|
colspan: "1",
|
|
6970
6970
|
class: "tr-title"
|
|
6971
6971
|
}, null, -1)),
|
|
6972
|
-
(
|
|
6972
|
+
(u(!0), g(ee, null, ae(i.tableData.weatherUrls, (C, T) => (u(), g("th", {
|
|
6973
6973
|
rowspan: "1",
|
|
6974
6974
|
colspan: "1",
|
|
6975
6975
|
key: `weatherUrls${T}${C}`
|
|
@@ -6981,12 +6981,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6981
6981
|
"show-after": 500
|
|
6982
6982
|
}, {
|
|
6983
6983
|
default: Pe(() => [
|
|
6984
|
-
C ? (
|
|
6984
|
+
C ? (u(), g("img", {
|
|
6985
6985
|
key: 0,
|
|
6986
6986
|
class: "iconfont weather-icon",
|
|
6987
6987
|
src: C,
|
|
6988
6988
|
alt: ""
|
|
6989
|
-
}, null, 8, qi)) :
|
|
6989
|
+
}, null, 8, qi)) : V("", !0)
|
|
6990
6990
|
]),
|
|
6991
6991
|
_: 2
|
|
6992
6992
|
}, 1032, ["content"])
|
|
@@ -7001,7 +7001,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7001
7001
|
ue("Temp"),
|
|
7002
7002
|
o("span", { class: "unit" }, "°C")
|
|
7003
7003
|
], -1)),
|
|
7004
|
-
(
|
|
7004
|
+
(u(!0), g(ee, null, ae(i.tableData.temp, (C, T) => (u(), g("td", {
|
|
7005
7005
|
rowspan: "1",
|
|
7006
7006
|
colspan: "1",
|
|
7007
7007
|
key: `weatherUrls${T}${C}`
|
|
@@ -7016,7 +7016,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7016
7016
|
ue("Precip"),
|
|
7017
7017
|
o("span", { class: "unit" }, "mm")
|
|
7018
7018
|
], -1)),
|
|
7019
|
-
(
|
|
7019
|
+
(u(!0), g(ee, null, ae(i.tableData.precip1h, (C, T) => (u(), g("td", {
|
|
7020
7020
|
rowspan: "1",
|
|
7021
7021
|
colspan: "1",
|
|
7022
7022
|
key: `precip1h${T}${C}`
|
|
@@ -7031,7 +7031,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7031
7031
|
ue("Visibility"),
|
|
7032
7032
|
o("span", { class: "unit" }, "nm")
|
|
7033
7033
|
], -1)),
|
|
7034
|
-
(
|
|
7034
|
+
(u(!0), g(ee, null, ae(i.tableData.visibility, (C, T) => (u(), g("td", {
|
|
7035
7035
|
rowspan: "1",
|
|
7036
7036
|
colspan: "1",
|
|
7037
7037
|
key: `visibility${T}${C}`
|
|
@@ -7046,7 +7046,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7046
7046
|
ue("Wind gust"),
|
|
7047
7047
|
o("span", { class: "unit" }, "kts")
|
|
7048
7048
|
], -1)),
|
|
7049
|
-
(
|
|
7049
|
+
(u(!0), g(ee, null, ae(i.tableData.windGust, (C, T) => (u(), g("td", {
|
|
7050
7050
|
rowspan: "1",
|
|
7051
7051
|
colspan: "1",
|
|
7052
7052
|
key: `windGust${T}${C}`
|
|
@@ -7067,7 +7067,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7067
7067
|
ue("Hours"),
|
|
7068
7068
|
o("span", { class: "unit" }, "(LT)")
|
|
7069
7069
|
], -1)),
|
|
7070
|
-
(
|
|
7070
|
+
(u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7071
7071
|
rowspan: "1",
|
|
7072
7072
|
colspan: "1",
|
|
7073
7073
|
key: `currenthoursL${T}${C}`
|
|
@@ -7082,7 +7082,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7082
7082
|
ue("UTC"),
|
|
7083
7083
|
o("span", { class: "unit" })
|
|
7084
7084
|
], -1)),
|
|
7085
|
-
(
|
|
7085
|
+
(u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7086
7086
|
rowspan: "1",
|
|
7087
7087
|
colspan: "1",
|
|
7088
7088
|
key: `currenthoursZ${T}${C}`
|
|
@@ -7097,12 +7097,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7097
7097
|
ue("Wind"),
|
|
7098
7098
|
o("span", { class: "unit" }, "kts")
|
|
7099
7099
|
], -1)),
|
|
7100
|
-
(
|
|
7100
|
+
(u(!0), g(ee, null, ae(i.tableData.windSpeed, (C, T) => (u(), g("td", {
|
|
7101
7101
|
rowspan: "1",
|
|
7102
7102
|
colspan: "1",
|
|
7103
7103
|
key: `windSpeed${T}${C}`
|
|
7104
7104
|
}, [
|
|
7105
|
-
isNaN(i.tableData.windDir[T]) ?
|
|
7105
|
+
isNaN(i.tableData.windDir[T]) ? V("", !0) : (u(), g("span", {
|
|
7106
7106
|
key: 0,
|
|
7107
7107
|
class: "iconfont icon wind",
|
|
7108
7108
|
style: ge({ display: "inline-block", transform: `rotate(${i.tableData.windDir[T]}deg)` })
|
|
@@ -7119,12 +7119,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7119
7119
|
ue("Sig Wave"),
|
|
7120
7120
|
o("span", { class: "unit" }, "m")
|
|
7121
7121
|
], -1)),
|
|
7122
|
-
(
|
|
7122
|
+
(u(!0), g(ee, null, ae(i.tableData.sigwaveHeight, (C, T) => (u(), g("td", {
|
|
7123
7123
|
rowspan: "1",
|
|
7124
7124
|
colspan: "1",
|
|
7125
7125
|
key: `sigwaveHeight${T}${C}`
|
|
7126
7126
|
}, [
|
|
7127
|
-
isNaN(i.tableData.sigwaveDir[T]) ?
|
|
7127
|
+
isNaN(i.tableData.sigwaveDir[T]) ? V("", !0) : (u(), g("span", {
|
|
7128
7128
|
key: 0,
|
|
7129
7129
|
class: "iconfont icon sigwave",
|
|
7130
7130
|
style: ge({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[T]}deg)` })
|
|
@@ -7141,12 +7141,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7141
7141
|
ue("Wind Wave"),
|
|
7142
7142
|
o("span", { class: "unit" }, "m")
|
|
7143
7143
|
], -1)),
|
|
7144
|
-
(
|
|
7144
|
+
(u(!0), g(ee, null, ae(i.tableData.windwaveHeight, (C, T) => (u(), g("td", {
|
|
7145
7145
|
rowspan: "1",
|
|
7146
7146
|
colspan: "1",
|
|
7147
7147
|
key: `windwaveHeight${T}${C}`
|
|
7148
7148
|
}, [
|
|
7149
|
-
isNaN(i.tableData.sigwaveDir[T]) ?
|
|
7149
|
+
isNaN(i.tableData.sigwaveDir[T]) ? V("", !0) : (u(), g("span", {
|
|
7150
7150
|
key: 0,
|
|
7151
7151
|
class: "iconfont icon windwave",
|
|
7152
7152
|
style: ge({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[T]}deg)` })
|
|
@@ -7163,12 +7163,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7163
7163
|
ue("Swell"),
|
|
7164
7164
|
o("span", { class: "unit" }, "m")
|
|
7165
7165
|
], -1)),
|
|
7166
|
-
(
|
|
7166
|
+
(u(!0), g(ee, null, ae(i.tableData.swellHeight, (C, T) => (u(), g("td", {
|
|
7167
7167
|
rowspan: "1",
|
|
7168
7168
|
colspan: "1",
|
|
7169
7169
|
key: `swellHeight${T}${C}`
|
|
7170
7170
|
}, [
|
|
7171
|
-
isNaN(i.tableData.swellDir[T]) ?
|
|
7171
|
+
isNaN(i.tableData.swellDir[T]) ? V("", !0) : (u(), g("span", {
|
|
7172
7172
|
key: 0,
|
|
7173
7173
|
class: "iconfont icon swell",
|
|
7174
7174
|
style: ge({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[T]}deg)` })
|
|
@@ -7185,12 +7185,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7185
7185
|
ue("Current"),
|
|
7186
7186
|
o("span", { class: "unit" }, "kts")
|
|
7187
7187
|
], -1)),
|
|
7188
|
-
(
|
|
7188
|
+
(u(!0), g(ee, null, ae(i.tableData.currentSpeed, (C, T) => (u(), g("td", {
|
|
7189
7189
|
rowspan: "1",
|
|
7190
7190
|
colspan: "1",
|
|
7191
7191
|
key: `currentSpeed${T}${C}`
|
|
7192
7192
|
}, [
|
|
7193
|
-
isNaN(i.tableData.currentDir[T]) ?
|
|
7193
|
+
isNaN(i.tableData.currentDir[T]) ? V("", !0) : (u(), g("span", {
|
|
7194
7194
|
key: 0,
|
|
7195
7195
|
class: "iconfont icon current",
|
|
7196
7196
|
id: "meteoGrayIcon",
|
|
@@ -7212,7 +7212,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7212
7212
|
ue("Hours"),
|
|
7213
7213
|
o("span", { class: "unit" }, "(LT)")
|
|
7214
7214
|
], -1)),
|
|
7215
|
-
(
|
|
7215
|
+
(u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7216
7216
|
rowspan: "1",
|
|
7217
7217
|
colspan: "1",
|
|
7218
7218
|
key: `seahoursL${T}${C}`
|
|
@@ -7227,7 +7227,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7227
7227
|
ue("UTC"),
|
|
7228
7228
|
o("span", { class: "unit" })
|
|
7229
7229
|
], -1)),
|
|
7230
|
-
(
|
|
7230
|
+
(u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7231
7231
|
rowspan: "1",
|
|
7232
7232
|
colspan: "1",
|
|
7233
7233
|
key: `seahoursZ${T}${C}`
|
|
@@ -7242,7 +7242,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7242
7242
|
ue("SeaLevel"),
|
|
7243
7243
|
o("span", { class: "unit" }, "m")
|
|
7244
7244
|
], -1)),
|
|
7245
|
-
(
|
|
7245
|
+
(u(!0), g(ee, null, ae(i.tableData.seaLevel, (C, T) => (u(), g("td", {
|
|
7246
7246
|
rowspan: "1",
|
|
7247
7247
|
colspan: "1",
|
|
7248
7248
|
key: `SeaLevel${T}${C}`
|
|
@@ -7257,7 +7257,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7257
7257
|
ue("SeaTemp"),
|
|
7258
7258
|
o("span", { class: "unit" }, "°C")
|
|
7259
7259
|
], -1)),
|
|
7260
|
-
(
|
|
7260
|
+
(u(!0), g(ee, null, ae(i.tableData.seaTemp, (C, T) => (u(), g("td", {
|
|
7261
7261
|
rowspan: "1",
|
|
7262
7262
|
colspan: "1",
|
|
7263
7263
|
key: `SeaTemp${T}${C}`
|
|
@@ -7266,26 +7266,26 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7266
7266
|
], 512), [
|
|
7267
7267
|
[Oe, i.activeIndex === 3]
|
|
7268
7268
|
]),
|
|
7269
|
-
i.activeIndex === 3 ? (
|
|
7269
|
+
i.activeIndex === 3 ? (u(), g("div", ur, e[31] || (e[31] = [
|
|
7270
7270
|
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)
|
|
7271
|
-
]))) :
|
|
7271
|
+
]))) : V("", !0),
|
|
7272
7272
|
Fe(o("table", gr, [
|
|
7273
7273
|
o("tr", yr, [
|
|
7274
|
-
(
|
|
7274
|
+
(u(!0), g(ee, null, ae(i.tideTableData, (C, T) => (u(), g("th", {
|
|
7275
7275
|
rowspan: "1",
|
|
7276
7276
|
colspan: "1",
|
|
7277
7277
|
key: `Tide-tr-${T}${C}`
|
|
7278
7278
|
}, k(C.type) + " Tide", 1))), 128))
|
|
7279
7279
|
]),
|
|
7280
7280
|
o("tr", fr, [
|
|
7281
|
-
(
|
|
7281
|
+
(u(!0), g(ee, null, ae(i.tideTableData, (C, T) => (u(), g("td", {
|
|
7282
7282
|
rowspan: "1",
|
|
7283
7283
|
colspan: "1",
|
|
7284
7284
|
key: `Tide-date-${T}${C}`
|
|
7285
7285
|
}, k(s.computeHourHmmLT(C == null ? void 0 : C.date)), 1))), 128))
|
|
7286
7286
|
]),
|
|
7287
7287
|
o("tr", Ar, [
|
|
7288
|
-
(
|
|
7288
|
+
(u(!0), g(ee, null, ae(i.tideTableData, (C, T) => (u(), g("td", {
|
|
7289
7289
|
rowspan: "1",
|
|
7290
7290
|
colspan: "1",
|
|
7291
7291
|
key: `Tide-height-${T}${C}`
|
|
@@ -7300,7 +7300,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7300
7300
|
[Oe, i.activeIndex === 4]
|
|
7301
7301
|
])
|
|
7302
7302
|
], 512), [
|
|
7303
|
-
[Oe, ((
|
|
7303
|
+
[Oe, ((P = (w = i.tableData) == null ? void 0 : w.hours) == null ? void 0 : P.length) > 0 && i.showTables]
|
|
7304
7304
|
]),
|
|
7305
7305
|
Fe(o("div", wr, [
|
|
7306
7306
|
o("div", vr, [
|
|
@@ -7310,23 +7310,23 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7310
7310
|
]),
|
|
7311
7311
|
o("div", Lr, [
|
|
7312
7312
|
e[34] || (e[34] = o("div", null, "Sig wave", -1)),
|
|
7313
|
-
o("div", null, k((
|
|
7313
|
+
o("div", null, k((Z = (U = (me = i.currentHourData) == null ? void 0 : me.wave) == null ? void 0 : U.sig) == null ? void 0 : Z.direction) + "/" + k(s.roundPrecision((fe = (ne = (ye = i.currentHourData) == null ? void 0 : ye.wave) == null ? void 0 : ne.sig) == null ? void 0 : fe.height, 1)) + "m/" + k(s.roundPrecision((xe = (be = (Ce = i.currentHourData) == null ? void 0 : Ce.wave) == null ? void 0 : be.sig) == null ? void 0 : xe.period, 1)) + "s", 1)
|
|
7314
7314
|
])
|
|
7315
7315
|
]),
|
|
7316
7316
|
o("div", Cr, [
|
|
7317
7317
|
o("div", xr, [
|
|
7318
7318
|
e[35] || (e[35] = o("div", null, "Wind wave", -1)),
|
|
7319
|
-
o("div", null, k((Le = (
|
|
7319
|
+
o("div", null, k((Le = (Ee = (B = i.currentHourData) == null ? void 0 : B.wave) == null ? void 0 : Ee.wd) == null ? void 0 : Le.direction) + "/" + k(s.roundPrecision((ze = (Be = (ke = i.currentHourData) == null ? void 0 : ke.wave) == null ? void 0 : Be.wd) == null ? void 0 : ze.height, 1)) + "m/" + k(s.roundPrecision((q = (J = (_e = i.currentHourData) == null ? void 0 : _e.wave) == null ? void 0 : J.wd) == null ? void 0 : q.period, 1)) + "s", 1)
|
|
7320
7320
|
]),
|
|
7321
7321
|
o("div", _r, [
|
|
7322
7322
|
e[36] || (e[36] = o("div", null, "Swell", -1)),
|
|
7323
|
-
o("div", null, k((K = (
|
|
7323
|
+
o("div", null, k((K = (De = (S = i.currentHourData) == null ? void 0 : S.wave) == null ? void 0 : De.swell) == null ? void 0 : K.direction) + "/" + k(s.roundPrecision((M = (Se = ($ = i.currentHourData) == null ? void 0 : $.wave) == null ? void 0 : Se.swell) == null ? void 0 : M.height, 1)) + "m/" + k(s.roundPrecision((Te = (Me = (Ae = i.currentHourData) == null ? void 0 : Ae.wave) == null ? void 0 : Me.swell) == null ? void 0 : Te.period, 1)) + "s", 1)
|
|
7324
7324
|
])
|
|
7325
7325
|
]),
|
|
7326
7326
|
o("div", Br, [
|
|
7327
7327
|
o("div", Ir, [
|
|
7328
7328
|
e[37] || (e[37] = o("div", null, "Current", -1)),
|
|
7329
|
-
o("div", null, k((
|
|
7329
|
+
o("div", null, k((z = (Qe = i.currentHourData) == null ? void 0 : Qe.current) == null ? void 0 : z.direction) + "/" + k(s.roundPrecision((Ge = (O = i.currentHourData) == null ? void 0 : O.current) == null ? void 0 : Ge.kts, 2)) + "kts", 1)
|
|
7330
7330
|
]),
|
|
7331
7331
|
o("div", Er, [
|
|
7332
7332
|
e[38] || (e[38] = o("div", null, "Sea level", -1)),
|
|
@@ -7357,14 +7357,14 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7357
7357
|
[Oe, !i.showTables]
|
|
7358
7358
|
]),
|
|
7359
7359
|
o("div", {
|
|
7360
|
-
class:
|
|
7360
|
+
class: te(["action", i.isDay ? "day" : "night"])
|
|
7361
7361
|
}, [
|
|
7362
|
-
t.permission & i.helper.LEVEL.Supper ? (
|
|
7362
|
+
t.permission & i.helper.LEVEL.Supper ? (u(), g("div", {
|
|
7363
7363
|
key: 0,
|
|
7364
7364
|
class: "button",
|
|
7365
7365
|
style: { "margin-right": "10px" },
|
|
7366
7366
|
onClick: e[7] || (e[7] = (...C) => s.handleNotify && s.handleNotify(...C))
|
|
7367
|
-
}, "Notify")) :
|
|
7367
|
+
}, "Notify")) : V("", !0),
|
|
7368
7368
|
o("div", {
|
|
7369
7369
|
onClick: e[8] || (e[8] = (...C) => s.handleMeteoMore && s.handleMeteoMore(...C))
|
|
7370
7370
|
}, "More >>")
|
|
@@ -7469,7 +7469,7 @@ const Hr = /* @__PURE__ */ Y(_i, [["render", Qr], ["__scopeId", "data-v-3afdcf26
|
|
|
7469
7469
|
}
|
|
7470
7470
|
};
|
|
7471
7471
|
function Fr(a, e, t, r, i, s) {
|
|
7472
|
-
return
|
|
7472
|
+
return u(), g("div");
|
|
7473
7473
|
}
|
|
7474
7474
|
const Or = /* @__PURE__ */ Y(Nr, [["render", Fr]]), Rr = {
|
|
7475
7475
|
name: "IdmGmdssArea",
|
|
@@ -7595,7 +7595,7 @@ const Or = /* @__PURE__ */ Y(Nr, [["render", Fr]]), Rr = {
|
|
|
7595
7595
|
}
|
|
7596
7596
|
};
|
|
7597
7597
|
function jr(a, e, t, r, i, s) {
|
|
7598
|
-
return
|
|
7598
|
+
return u(), g("div");
|
|
7599
7599
|
}
|
|
7600
7600
|
const Wr = /* @__PURE__ */ Y(Rr, [["render", jr]]), Gr = {
|
|
7601
7601
|
name: "IdmEcaZone",
|
|
@@ -7692,7 +7692,7 @@ const Wr = /* @__PURE__ */ Y(Rr, [["render", jr]]), Gr = {
|
|
|
7692
7692
|
}
|
|
7693
7693
|
};
|
|
7694
7694
|
function Ur(a, e, t, r, i, s) {
|
|
7695
|
-
return
|
|
7695
|
+
return u(), g("div");
|
|
7696
7696
|
}
|
|
7697
7697
|
const Yr = /* @__PURE__ */ Y(Gr, [["render", Ur]]);
|
|
7698
7698
|
const Kr = {
|
|
@@ -7831,7 +7831,7 @@ const Kr = {
|
|
|
7831
7831
|
}, Xr = { id: "idm-gl3-zone-info" }, Jr = ["innerHTML"];
|
|
7832
7832
|
function qr(a, e, t, r, i, s) {
|
|
7833
7833
|
var n;
|
|
7834
|
-
return Fe((
|
|
7834
|
+
return Fe((u(), g("div", Xr, [
|
|
7835
7835
|
o("div", {
|
|
7836
7836
|
class: "iconfont close",
|
|
7837
7837
|
onClick: e[0] || (e[0] = (l) => i.showZone = !1)
|
|
@@ -7948,7 +7948,7 @@ const Zr = {
|
|
|
7948
7948
|
style: { "align-items": "flex-start" }
|
|
7949
7949
|
}, ss = { class: "meteo-forecast flex-end" };
|
|
7950
7950
|
function os(a, e, t, r, i, s) {
|
|
7951
|
-
return Fe((
|
|
7951
|
+
return Fe((u(), g("div", $r, [
|
|
7952
7952
|
o("div", {
|
|
7953
7953
|
class: "close iconfont",
|
|
7954
7954
|
onClick: e[0] || (e[0] = (n) => i.showPort = !1)
|
|
@@ -8054,7 +8054,7 @@ const ns = /* @__PURE__ */ Y(Zr, [["render", os], ["__scopeId", "data-v-39da1804
|
|
|
8054
8054
|
}
|
|
8055
8055
|
};
|
|
8056
8056
|
function hs(a, e, t, r, i, s) {
|
|
8057
|
-
return
|
|
8057
|
+
return u(), g("div");
|
|
8058
8058
|
}
|
|
8059
8059
|
const cs = /* @__PURE__ */ Y(ls, [["render", hs]]), ds = {
|
|
8060
8060
|
name: "IdmTimezone",
|
|
@@ -8225,7 +8225,7 @@ const cs = /* @__PURE__ */ Y(ls, [["render", hs]]), ds = {
|
|
|
8225
8225
|
}
|
|
8226
8226
|
};
|
|
8227
8227
|
function ps(a, e, t, r, i, s) {
|
|
8228
|
-
return
|
|
8228
|
+
return u(), g("div");
|
|
8229
8229
|
}
|
|
8230
8230
|
const ms = /* @__PURE__ */ Y(ds, [["render", ps]]), us = {
|
|
8231
8231
|
name: "IdmVoluntaryReportingArea",
|
|
@@ -8319,7 +8319,7 @@ const ms = /* @__PURE__ */ Y(ds, [["render", ps]]), us = {
|
|
|
8319
8319
|
}
|
|
8320
8320
|
};
|
|
8321
8321
|
function gs(a, e, t, r, i, s) {
|
|
8322
|
-
return
|
|
8322
|
+
return u(), g("div");
|
|
8323
8323
|
}
|
|
8324
8324
|
const ys = /* @__PURE__ */ Y(us, [["render", gs]]), fs = {
|
|
8325
8325
|
name: "IdmSpecialArea",
|
|
@@ -8415,7 +8415,7 @@ const ys = /* @__PURE__ */ Y(us, [["render", gs]]), fs = {
|
|
|
8415
8415
|
}
|
|
8416
8416
|
};
|
|
8417
8417
|
function As(a, e, t, r, i, s) {
|
|
8418
|
-
return
|
|
8418
|
+
return u(), g("div");
|
|
8419
8419
|
}
|
|
8420
8420
|
const ws = /* @__PURE__ */ Y(fs, [["render", As]]), vs = {
|
|
8421
8421
|
name: "IdmTerminator",
|
|
@@ -8470,7 +8470,7 @@ const ws = /* @__PURE__ */ Y(fs, [["render", As]]), vs = {
|
|
|
8470
8470
|
}
|
|
8471
8471
|
};
|
|
8472
8472
|
function bs(a, e, t, r, i, s) {
|
|
8473
|
-
return
|
|
8473
|
+
return u(), g("div");
|
|
8474
8474
|
}
|
|
8475
8475
|
const Ls = /* @__PURE__ */ Y(vs, [["render", bs]]);
|
|
8476
8476
|
const Cs = {
|
|
@@ -8629,7 +8629,7 @@ const Cs = {
|
|
|
8629
8629
|
}
|
|
8630
8630
|
};
|
|
8631
8631
|
function xs(a, e, t, r, i, s) {
|
|
8632
|
-
return i.lngLat ? (
|
|
8632
|
+
return i.lngLat ? (u(), g("div", {
|
|
8633
8633
|
key: 0,
|
|
8634
8634
|
class: "lat-lng-tip",
|
|
8635
8635
|
style: ge({ right: i.right + "px", bottom: t.bottom })
|
|
@@ -8637,7 +8637,7 @@ function xs(a, e, t, r, i, s) {
|
|
|
8637
8637
|
o("span", null, k(i.lngLat.lat.pretty), 1),
|
|
8638
8638
|
e[0] || (e[0] = o("span", null, ", ", -1)),
|
|
8639
8639
|
o("span", null, k(i.lngLat.lng.pretty), 1)
|
|
8640
|
-
], 4)) :
|
|
8640
|
+
], 4)) : V("", !0);
|
|
8641
8641
|
}
|
|
8642
8642
|
const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8"]]), _s = {
|
|
8643
8643
|
name: "IdmMeasure",
|
|
@@ -8708,24 +8708,24 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8708
8708
|
var t, r, i, s, n, l, c, d, h, p;
|
|
8709
8709
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
8710
8710
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8711
|
-
const
|
|
8712
|
-
this.pointMarkers[
|
|
8711
|
+
const L = this.geojson.filter((I) => I.id === e.split("-")[0])[0];
|
|
8712
|
+
this.pointMarkers[L.id].filter((I) => {
|
|
8713
8713
|
var _;
|
|
8714
8714
|
return ((_ = I._element) == null ? void 0 : _.id) === e;
|
|
8715
8715
|
})[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
|
|
8716
8716
|
let E;
|
|
8717
|
-
|
|
8717
|
+
L.features.forEach((I, _) => {
|
|
8718
8718
|
if (I.geometry.type === "Point" && I.properties.id == e.split("-")[1]) {
|
|
8719
8719
|
E = _;
|
|
8720
8720
|
return;
|
|
8721
8721
|
}
|
|
8722
8722
|
});
|
|
8723
|
-
const
|
|
8723
|
+
const A = L.features.filter((I) => I.geometry.type === "Point");
|
|
8724
8724
|
this.handleTmpPointUpdate(
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
{ lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat, properties:
|
|
8728
|
-
E ===
|
|
8725
|
+
L,
|
|
8726
|
+
A[E - 1],
|
|
8727
|
+
{ lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat, properties: A[E].properties },
|
|
8728
|
+
E === A.length - 1 ? void 0 : A[E + 1]
|
|
8729
8729
|
);
|
|
8730
8730
|
}
|
|
8731
8731
|
},
|
|
@@ -8733,13 +8733,13 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8733
8733
|
var t, r, i, s, n, l, c, d, h, p;
|
|
8734
8734
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
8735
8735
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8736
|
-
const
|
|
8737
|
-
this.pointMarkers[
|
|
8736
|
+
const L = this.geojson.filter((A) => A.id === e.split("-")[0])[0];
|
|
8737
|
+
this.pointMarkers[L.id].filter((A) => {
|
|
8738
8738
|
var I;
|
|
8739
|
-
return ((I =
|
|
8739
|
+
return ((I = A._element) == null ? void 0 : I.id) === e;
|
|
8740
8740
|
})[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
|
|
8741
|
-
const E =
|
|
8742
|
-
E.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat],
|
|
8741
|
+
const E = L.features.filter((A) => A.geometry.type === "Point" && A.properties.id == e.split("-")[1])[0];
|
|
8742
|
+
E.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat], L.features = L.features.filter((A) => A.geometry.type === "Point"), this.handlePointUpdate(L);
|
|
8743
8743
|
}
|
|
8744
8744
|
},
|
|
8745
8745
|
handleContextmenu(a) {
|
|
@@ -8788,9 +8788,9 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8788
8788
|
for (let i = 1; i < e.length; i++) {
|
|
8789
8789
|
const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h = je.calculateDistance(c, d, l.mode === "RL", 4), p = je.calculateBearing(c, d, l.mode === "RL", 2);
|
|
8790
8790
|
t = le.roundPrecision(t + h, 2);
|
|
8791
|
-
let
|
|
8792
|
-
l.mode === "RL" ?
|
|
8793
|
-
const x = Q.lineString(
|
|
8791
|
+
let L;
|
|
8792
|
+
l.mode === "RL" ? L = le.convertToMonotonicLng([c, d]) : L = le.convertToMonotonicLng(je.interpolateCoordinates(c, d, 200));
|
|
8793
|
+
const x = Q.lineString(L.map((E) => [E.lng, E.lat]));
|
|
8794
8794
|
x.properties.dist = h, x.properties.bearing = p, x.properties.total = t, r.push(x);
|
|
8795
8795
|
}
|
|
8796
8796
|
e.push(...r), a.total = t;
|
|
@@ -8805,16 +8805,16 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8805
8805
|
s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8806
8806
|
let p;
|
|
8807
8807
|
c.mode === "RL" ? p = le.convertToMonotonicLng([d, h]) : p = le.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
|
|
8808
|
-
const
|
|
8809
|
-
|
|
8808
|
+
const L = Q.lineString(p.map((x) => [x.lng, x.lat]));
|
|
8809
|
+
L.properties.dist = s, L.properties.bearing = n, i.features.push(L);
|
|
8810
8810
|
}
|
|
8811
8811
|
if (r) {
|
|
8812
8812
|
const c = t.properties, d = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
8813
8813
|
s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8814
8814
|
let p;
|
|
8815
8815
|
c.mode === "RL" ? p = le.convertToMonotonicLng([d, h]) : p = le.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
|
|
8816
|
-
const
|
|
8817
|
-
|
|
8816
|
+
const L = Q.lineString(p.map((x) => [x.lng, x.lat]));
|
|
8817
|
+
L.properties.dist = s, L.properties.bearing = n, i.features.push(L);
|
|
8818
8818
|
}
|
|
8819
8819
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
8820
8820
|
type: "geojson",
|
|
@@ -8926,16 +8926,16 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8926
8926
|
}
|
|
8927
8927
|
},
|
|
8928
8928
|
handleClear(a, e = !0) {
|
|
8929
|
-
var s, n, l, c, d, h, p,
|
|
8929
|
+
var s, n, l, c, d, h, p, L, x;
|
|
8930
8930
|
const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
|
|
8931
8931
|
(s = this.map) != null && s.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[a.id]) == null || d.remove(), this.closeMarkers[a.id] = void 0, (h = this.pointMarkers[a.id]) == null || h.forEach((E) => {
|
|
8932
8932
|
E == null || E.remove();
|
|
8933
|
-
}), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((
|
|
8933
|
+
}), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((L = this.map) != null && L.getSource(t)) && this.map.removeSource(t), e && ((x = this.map) != null && x.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
8934
8934
|
}
|
|
8935
8935
|
}
|
|
8936
8936
|
};
|
|
8937
8937
|
function Bs(a, e, t, r, i, s) {
|
|
8938
|
-
return
|
|
8938
|
+
return u(), g("div");
|
|
8939
8939
|
}
|
|
8940
8940
|
const Is = /* @__PURE__ */ Y(_s, [["render", Bs]]);
|
|
8941
8941
|
const Es = {
|
|
@@ -8996,7 +8996,7 @@ const Es = {
|
|
|
8996
8996
|
}, ks = { key: 0 }, Ds = { class: "bar-item" };
|
|
8997
8997
|
function zs(a, e, t, r, i, s) {
|
|
8998
8998
|
const n = R("ElTooltip");
|
|
8999
|
-
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (
|
|
8999
|
+
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (u(), g("div", ks, [
|
|
9000
9000
|
o("div", {
|
|
9001
9001
|
class: "menu-bar-box",
|
|
9002
9002
|
style: ge({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
@@ -9010,7 +9010,7 @@ function zs(a, e, t, r, i, s) {
|
|
|
9010
9010
|
}, {
|
|
9011
9011
|
default: Pe(() => [
|
|
9012
9012
|
o("div", {
|
|
9013
|
-
class:
|
|
9013
|
+
class: te(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
9014
9014
|
onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
|
|
9015
9015
|
}, e[2] || (e[2] = [
|
|
9016
9016
|
o("span", { class: "iconfont" }, "HI", -1)
|
|
@@ -9026,7 +9026,7 @@ function zs(a, e, t, r, i, s) {
|
|
|
9026
9026
|
}, {
|
|
9027
9027
|
default: Pe(() => [
|
|
9028
9028
|
o("div", {
|
|
9029
|
-
class:
|
|
9029
|
+
class: te(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
9030
9030
|
onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
|
|
9031
9031
|
}, e[3] || (e[3] = [
|
|
9032
9032
|
o("span", { class: "iconfont" }, "I4", -1)
|
|
@@ -9036,7 +9036,7 @@ function zs(a, e, t, r, i, s) {
|
|
|
9036
9036
|
})
|
|
9037
9037
|
])
|
|
9038
9038
|
], 4)
|
|
9039
|
-
])) :
|
|
9039
|
+
])) : V("", !0);
|
|
9040
9040
|
}
|
|
9041
9041
|
const Ps = /* @__PURE__ */ Y(Es, [["render", zs], ["__scopeId", "data-v-8eecd76d"]]), Ms = {
|
|
9042
9042
|
name: "IdmWorld12nm",
|
|
@@ -9281,7 +9281,7 @@ const js = {
|
|
|
9281
9281
|
watch: {
|
|
9282
9282
|
ts: {
|
|
9283
9283
|
handler(a, e) {
|
|
9284
|
-
a && e &&
|
|
9284
|
+
a && e && ie(a).utc().format("yyyy-MM-DD HH") !== ie(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
9285
9285
|
this.handleDateChange({ tropicals: !1 });
|
|
9286
9286
|
});
|
|
9287
9287
|
},
|
|
@@ -9301,11 +9301,11 @@ const js = {
|
|
|
9301
9301
|
},
|
|
9302
9302
|
activeWeatherLayers: {
|
|
9303
9303
|
handler() {
|
|
9304
|
-
var t, r, i, s, n, l, c, d, h, p,
|
|
9304
|
+
var t, r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, P;
|
|
9305
9305
|
if (!this.map)
|
|
9306
9306
|
return !1;
|
|
9307
9307
|
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");
|
|
9308
|
-
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")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((
|
|
9308
|
+
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")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((L = this.map) != null && L.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((x = this.viewport) == null ? void 0 : x.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((I = this.map) == null || I.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (A = this.viewport) == null ? void 0 : A.rampColorLayer))) : ((y = (_ = this.map) == null ? void 0 : _.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || y.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (m = (v = this.map) == null ? void 0 : v.getLayer(this.enc)) == null || m.setLayoutProperty("visibility", "visible") : ((f = (b = this.map) == null ? void 0 : b.getLayer("i4")) == null || f.setLayoutProperty("visibility", "none"), (P = (w = this.map) == null ? void 0 : w.getLayer("hi")) == null || P.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
|
|
9309
9309
|
},
|
|
9310
9310
|
immediate: !0
|
|
9311
9311
|
},
|
|
@@ -9357,83 +9357,83 @@ const js = {
|
|
|
9357
9357
|
},
|
|
9358
9358
|
methods: {
|
|
9359
9359
|
async fetchWeatherLayers(a = { tropicals: !1 }) {
|
|
9360
|
-
var i, s, n, l, c, d, h, p,
|
|
9360
|
+
var i, s, n, l, c, d, h, p, L;
|
|
9361
9361
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
9362
9362
|
let t = 0, r = 0;
|
|
9363
9363
|
if (this.map) {
|
|
9364
|
-
const x = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, E = (s = this.map) == null ? void 0 : s.getBounds(),
|
|
9364
|
+
const x = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, E = (s = this.map) == null ? void 0 : s.getBounds(), A = `${E._sw.lng},${E._sw.lat},${E._ne.lng},${E._ne.lat}`;
|
|
9365
9365
|
if (this.particleFactor && ((n = this.$refs.layer) != null && n.autoActive)) {
|
|
9366
9366
|
const I = Ze.WEATHER_LAYERS.find((_) => {
|
|
9367
|
-
var
|
|
9368
|
-
return ((
|
|
9367
|
+
var y;
|
|
9368
|
+
return ((y = _.peer) == null ? void 0 : y.weight) === this.particleFactor.weight;
|
|
9369
9369
|
});
|
|
9370
9370
|
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & I.weight ? this.weatherWeight : this.weatherWeight + I.weight : this.weatherWeight = this.weatherWeight & I.weight ? this.weatherWeight - I.weight : this.weatherWeight;
|
|
9371
9371
|
}
|
|
9372
9372
|
if (this.weatherWeight > 0) {
|
|
9373
9373
|
let I = this.weatherWeight, _;
|
|
9374
9374
|
if (a.tropicals || this.weatherWeight & 256 && (_ = this.weatherLayers.tropicals, _ && (I -= 256, _.version = Math.random() + 1)), I > 0) {
|
|
9375
|
-
const
|
|
9375
|
+
const y = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], v = await He.get(`${y}/api/arc/weather/layers2/links?l=${I}&v=${this.source}&z=${x}&bbox=${A}&t=${this.ts}`, {
|
|
9376
9376
|
headers: {
|
|
9377
9377
|
Authorization: this.token || this.defaultMeteoToken
|
|
9378
9378
|
}
|
|
9379
9379
|
});
|
|
9380
|
-
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l =
|
|
9381
|
-
const m = (c =
|
|
9382
|
-
for (const
|
|
9383
|
-
|
|
9384
|
-
He.get(m[
|
|
9380
|
+
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l = v == null ? void 0 : v.data) == null ? void 0 : l.code) === 0) {
|
|
9381
|
+
const m = (c = v == null ? void 0 : v.data) == null ? void 0 : c.data, b = [];
|
|
9382
|
+
for (const w in m)
|
|
9383
|
+
w !== "tropicals" && b.push(
|
|
9384
|
+
He.get(m[w], {
|
|
9385
9385
|
headers: {
|
|
9386
9386
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9387
|
-
key:
|
|
9387
|
+
key: w
|
|
9388
9388
|
},
|
|
9389
|
-
responseType: /\.(jpg|png)$/.test(m[
|
|
9390
|
-
}).catch((
|
|
9391
|
-
console.log(`[${
|
|
9389
|
+
responseType: /\.(jpg|png)$/.test(m[w]) ? "blob" : "json"
|
|
9390
|
+
}).catch((P) => {
|
|
9391
|
+
console.log(`[${w}] fetch layer error: ${P}`);
|
|
9392
9392
|
})
|
|
9393
9393
|
);
|
|
9394
|
-
const
|
|
9395
|
-
this.weatherLayers = {},
|
|
9394
|
+
const f = await Promise.all(b);
|
|
9395
|
+
this.weatherLayers = {}, f.map((w) => {
|
|
9396
9396
|
var N, H, j, G;
|
|
9397
|
-
const
|
|
9398
|
-
D &&
|
|
9399
|
-
raw:
|
|
9400
|
-
type: ((G =
|
|
9401
|
-
etime:
|
|
9397
|
+
const P = ((N = w == null ? void 0 : w.data) == null ? void 0 : N.data) || (w == null ? void 0 : w.data), D = (j = (H = w == null ? void 0 : w.config) == null ? void 0 : H.headers) == null ? void 0 : j.key;
|
|
9398
|
+
D && P && (this.weatherLayers[D] = {
|
|
9399
|
+
raw: P,
|
|
9400
|
+
type: ((G = w == null ? void 0 : w.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
|
|
9401
|
+
etime: v.data.etime
|
|
9402
9402
|
});
|
|
9403
9403
|
}), m.tropicals && He.get(m.tropicals, {
|
|
9404
9404
|
headers: {
|
|
9405
9405
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9406
9406
|
key: "tropicals"
|
|
9407
9407
|
}
|
|
9408
|
-
}).then((
|
|
9408
|
+
}).then((w) => {
|
|
9409
9409
|
var N, H, j;
|
|
9410
|
-
const
|
|
9410
|
+
const P = ct.convert2Geojson(((N = w == null ? void 0 : w.data) == null ? void 0 : N.data) || (w == null ? void 0 : w.data)), D = (j = (H = w == null ? void 0 : w.config) == null ? void 0 : H.headers) == null ? void 0 : j.key;
|
|
9411
9411
|
this.weatherLayers[D] = {
|
|
9412
|
-
data:
|
|
9412
|
+
data: P,
|
|
9413
9413
|
active: !0,
|
|
9414
9414
|
cached: !1,
|
|
9415
9415
|
type: "json",
|
|
9416
|
-
etime:
|
|
9416
|
+
etime: v.data.etime,
|
|
9417
9417
|
version: Math.random() + 1
|
|
9418
9418
|
};
|
|
9419
9419
|
});
|
|
9420
9420
|
}
|
|
9421
9421
|
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"]) {
|
|
9422
|
-
const m = (d = this.weatherLayers["swell-direction"]) == null ? void 0 : d.raw,
|
|
9422
|
+
const m = (d = this.weatherLayers["swell-direction"]) == null ? void 0 : d.raw, b = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
|
|
9423
9423
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
9424
9424
|
type: "json",
|
|
9425
9425
|
direction: m,
|
|
9426
|
-
height: { raw:
|
|
9427
|
-
etime:
|
|
9426
|
+
height: { raw: b },
|
|
9427
|
+
etime: v.data.etime
|
|
9428
9428
|
};
|
|
9429
9429
|
}
|
|
9430
9430
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
9431
|
-
const m = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw,
|
|
9431
|
+
const m = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, b = (L = this.weatherLayers["current-speed"]) == null ? void 0 : L.raw;
|
|
9432
9432
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
9433
9433
|
type: "json",
|
|
9434
9434
|
direction: m,
|
|
9435
|
-
speed: { raw:
|
|
9436
|
-
etime:
|
|
9435
|
+
speed: { raw: b },
|
|
9436
|
+
etime: v.data.etime
|
|
9437
9437
|
};
|
|
9438
9438
|
}
|
|
9439
9439
|
}
|
|
@@ -9457,20 +9457,20 @@ const js = {
|
|
|
9457
9457
|
}
|
|
9458
9458
|
});
|
|
9459
9459
|
if (((e = p == null ? void 0 : p.data) == null ? void 0 : e.code) === 0) {
|
|
9460
|
-
const
|
|
9461
|
-
for (const
|
|
9460
|
+
const L = (t = p == null ? void 0 : p.data) == null ? void 0 : t.data, x = [];
|
|
9461
|
+
for (const A in L)
|
|
9462
9462
|
x.push(
|
|
9463
|
-
He.get(
|
|
9463
|
+
He.get(L[A], {
|
|
9464
9464
|
headers: {
|
|
9465
9465
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9466
|
-
key:
|
|
9466
|
+
key: A
|
|
9467
9467
|
}
|
|
9468
9468
|
})
|
|
9469
9469
|
);
|
|
9470
9470
|
const E = await Promise.all(x);
|
|
9471
|
-
this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d }, E.map((
|
|
9472
|
-
var
|
|
9473
|
-
const I = ((
|
|
9471
|
+
this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d }, E.map((A) => {
|
|
9472
|
+
var y, v, m;
|
|
9473
|
+
const I = ((y = A == null ? void 0 : A.data) == null ? void 0 : y.data) || (A == null ? void 0 : A.data), _ = (m = (v = A == null ? void 0 : A.config) == null ? void 0 : v.headers) == null ? void 0 : m.key;
|
|
9474
9474
|
this.otherLayers[_] = I;
|
|
9475
9475
|
});
|
|
9476
9476
|
}
|
|
@@ -9481,19 +9481,19 @@ const js = {
|
|
|
9481
9481
|
}
|
|
9482
9482
|
});
|
|
9483
9483
|
if (((r = p == null ? void 0 : p.data) == null ? void 0 : r.code) === 0) {
|
|
9484
|
-
const
|
|
9485
|
-
for (const
|
|
9484
|
+
const L = (i = p == null ? void 0 : p.data) == null ? void 0 : i.data, x = [];
|
|
9485
|
+
for (const A in L)
|
|
9486
9486
|
x.push(
|
|
9487
|
-
He.get(
|
|
9487
|
+
He.get(L[A], {
|
|
9488
9488
|
headers: {
|
|
9489
9489
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9490
|
-
key:
|
|
9490
|
+
key: A
|
|
9491
9491
|
}
|
|
9492
9492
|
})
|
|
9493
9493
|
);
|
|
9494
|
-
(await Promise.all(x)).map((
|
|
9495
|
-
var
|
|
9496
|
-
const I = ((
|
|
9494
|
+
(await Promise.all(x)).map((A) => {
|
|
9495
|
+
var y, v, m;
|
|
9496
|
+
const I = ((y = A == null ? void 0 : A.data) == null ? void 0 : y.data) || (A == null ? void 0 : A.data), _ = (m = (v = A == null ? void 0 : A.config) == null ? void 0 : v.headers) == null ? void 0 : m.key;
|
|
9497
9497
|
this.otherLayers[_] = I;
|
|
9498
9498
|
});
|
|
9499
9499
|
}
|
|
@@ -9549,253 +9549,253 @@ const js = {
|
|
|
9549
9549
|
);
|
|
9550
9550
|
},
|
|
9551
9551
|
handleDrawWeather4Json() {
|
|
9552
|
-
var d, h, p,
|
|
9552
|
+
var d, h, p, L, x, E;
|
|
9553
9553
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
9554
9554
|
let e = 0, t = 0;
|
|
9555
9555
|
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = le.convertToStdLng(r._sw.lng), n = le.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
|
|
9556
|
-
for (const
|
|
9556
|
+
for (const A in this.weatherLayers) {
|
|
9557
9557
|
let I = !1;
|
|
9558
|
-
if (this.weatherLayers[
|
|
9558
|
+
if (this.weatherLayers[A].active && this.weatherLayers[A].type === "json") {
|
|
9559
9559
|
let _ = [];
|
|
9560
|
-
if (
|
|
9560
|
+
if (A === "swell") {
|
|
9561
9561
|
I = !0;
|
|
9562
|
-
const
|
|
9563
|
-
for (const m in
|
|
9562
|
+
const y = ((h = this.weatherLayers[A]) == null ? void 0 : h.direction) || {};
|
|
9563
|
+
for (const m in y)
|
|
9564
9564
|
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9565
|
-
const
|
|
9566
|
-
s > n ?
|
|
9567
|
-
var
|
|
9565
|
+
const b = y[m].lng;
|
|
9566
|
+
s > n ? b.forEach((f, w) => {
|
|
9567
|
+
var P, D, N, H, j, G;
|
|
9568
9568
|
if (i < 2) {
|
|
9569
|
-
if ((
|
|
9570
|
-
const W = Q.point([
|
|
9571
|
-
val: ((
|
|
9572
|
-
spd: (N =
|
|
9569
|
+
if ((f >= 0 && f <= 360 || f >= -360 && f <= 0) && f % 10 === 0) {
|
|
9570
|
+
const W = Q.point([f, m], {
|
|
9571
|
+
val: ((P = y[m].val) == null ? void 0 : P[w]) || ((D = y[m].dir) == null ? void 0 : D[w]),
|
|
9572
|
+
spd: (N = y[m].spd) == null ? void 0 : N[w]
|
|
9573
9573
|
});
|
|
9574
9574
|
_.push(W);
|
|
9575
9575
|
}
|
|
9576
|
-
} else if ((
|
|
9577
|
-
const W = Q.point([
|
|
9578
|
-
val: ((H =
|
|
9579
|
-
spd: (G =
|
|
9576
|
+
} else if ((f >= s && f <= 180 || f >= -180 && f <= n) && (!(i <= this.zoom) || f % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9577
|
+
const W = Q.point([f, m], {
|
|
9578
|
+
val: ((H = y[m].val) == null ? void 0 : H[w]) || ((j = y[m].dir) == null ? void 0 : j[w]),
|
|
9579
|
+
spd: (G = y[m].spd) == null ? void 0 : G[w]
|
|
9580
9580
|
});
|
|
9581
9581
|
_.push(W);
|
|
9582
9582
|
}
|
|
9583
|
-
}) :
|
|
9584
|
-
var
|
|
9583
|
+
}) : b.forEach((f, w) => {
|
|
9584
|
+
var P, D, N, H, j, G;
|
|
9585
9585
|
if (s < 2) {
|
|
9586
|
-
if ((
|
|
9587
|
-
const W = Q.point([
|
|
9588
|
-
val: ((
|
|
9589
|
-
spd: (N =
|
|
9586
|
+
if ((f >= 0 && f <= 360 || f >= -360 && f <= 0) && f % 10 === 0) {
|
|
9587
|
+
const W = Q.point([f, m], {
|
|
9588
|
+
val: ((P = y[m].val) == null ? void 0 : P[w]) || ((D = y[m].dir) == null ? void 0 : D[w]),
|
|
9589
|
+
spd: (N = y[m].spd) == null ? void 0 : N[w]
|
|
9590
9590
|
});
|
|
9591
9591
|
_.push(W);
|
|
9592
9592
|
}
|
|
9593
|
-
} else if (
|
|
9594
|
-
const W = Q.point([
|
|
9595
|
-
val: ((H =
|
|
9596
|
-
spd: (G =
|
|
9593
|
+
} else if (f >= s && f <= n && (!(i <= this.zoom) || f % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9594
|
+
const W = Q.point([f, m], {
|
|
9595
|
+
val: ((H = y[m].val) == null ? void 0 : H[w]) || ((j = y[m].dir) == null ? void 0 : j[w]),
|
|
9596
|
+
spd: (G = y[m].spd) == null ? void 0 : G[w]
|
|
9597
9597
|
});
|
|
9598
9598
|
_.push(W);
|
|
9599
9599
|
}
|
|
9600
9600
|
});
|
|
9601
9601
|
}
|
|
9602
9602
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell direction elapsed: ", t, ", total: ", e += t);
|
|
9603
|
-
const
|
|
9604
|
-
if (
|
|
9605
|
-
if (!
|
|
9603
|
+
const v = this.weatherLayers[A].height;
|
|
9604
|
+
if (v) {
|
|
9605
|
+
if (!v.data) {
|
|
9606
9606
|
const m = [];
|
|
9607
|
-
for (const
|
|
9608
|
-
const
|
|
9609
|
-
for (const
|
|
9607
|
+
for (const b in (p = v.raw) == null ? void 0 : p.LineString) {
|
|
9608
|
+
const f = v.raw.LineString[b];
|
|
9609
|
+
for (const w of f)
|
|
9610
9610
|
m.push(
|
|
9611
|
-
Q.lineString(
|
|
9612
|
-
val: Number(
|
|
9611
|
+
Q.lineString(w, {
|
|
9612
|
+
val: Number(b)
|
|
9613
9613
|
})
|
|
9614
9614
|
);
|
|
9615
|
-
|
|
9615
|
+
v.data = Q.featureCollection(m);
|
|
9616
9616
|
}
|
|
9617
9617
|
}
|
|
9618
|
-
if (
|
|
9619
|
-
const m = this.handleBboxClip(
|
|
9618
|
+
if (v.data) {
|
|
9619
|
+
const m = this.handleBboxClip(v.data, r);
|
|
9620
9620
|
_ = _.concat(m);
|
|
9621
9621
|
}
|
|
9622
9622
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
|
|
9623
9623
|
}
|
|
9624
|
-
} else if (
|
|
9624
|
+
} else if (A === "current" && this.showCurrentIsoband) {
|
|
9625
9625
|
I = !0;
|
|
9626
|
-
const
|
|
9627
|
-
for (const m in
|
|
9626
|
+
const y = ((L = this.weatherLayers[A]) == null ? void 0 : L.direction) || {};
|
|
9627
|
+
for (const m in y)
|
|
9628
9628
|
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9629
|
-
const
|
|
9630
|
-
s > n ?
|
|
9631
|
-
var
|
|
9629
|
+
const b = y[m].lng;
|
|
9630
|
+
s > n ? b.forEach((f, w) => {
|
|
9631
|
+
var P, D, N, H, j, G;
|
|
9632
9632
|
if (i < 2) {
|
|
9633
|
-
if ((
|
|
9634
|
-
const W = Q.point([
|
|
9635
|
-
val: ((
|
|
9636
|
-
spd: (N =
|
|
9633
|
+
if ((f >= 0 && f <= 360 || f >= -360 && f <= 0) && f % 10 === 0) {
|
|
9634
|
+
const W = Q.point([f, m], {
|
|
9635
|
+
val: ((P = y[m].val) == null ? void 0 : P[w]) || ((D = y[m].dir) == null ? void 0 : D[w]),
|
|
9636
|
+
spd: (N = y[m].spd) == null ? void 0 : N[w]
|
|
9637
9637
|
});
|
|
9638
9638
|
_.push(W);
|
|
9639
9639
|
}
|
|
9640
|
-
} else if ((
|
|
9641
|
-
const W = Q.point([
|
|
9642
|
-
val: ((H =
|
|
9643
|
-
spd: (G =
|
|
9640
|
+
} else if ((f >= s && f <= 180 || f >= -180 && f <= n) && (!(i <= this.zoom) || f % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9641
|
+
const W = Q.point([f, m], {
|
|
9642
|
+
val: ((H = y[m].val) == null ? void 0 : H[w]) || ((j = y[m].dir) == null ? void 0 : j[w]),
|
|
9643
|
+
spd: (G = y[m].spd) == null ? void 0 : G[w]
|
|
9644
9644
|
});
|
|
9645
9645
|
_.push(W);
|
|
9646
9646
|
}
|
|
9647
|
-
}) :
|
|
9648
|
-
var
|
|
9647
|
+
}) : b.forEach((f, w) => {
|
|
9648
|
+
var P, D, N, H, j, G;
|
|
9649
9649
|
if (s < 2) {
|
|
9650
|
-
if ((
|
|
9651
|
-
const W = Q.point([
|
|
9652
|
-
val: ((
|
|
9653
|
-
spd: (N =
|
|
9650
|
+
if ((f >= 0 && f <= 360 || f >= -360 && f <= 0) && f % 10 === 0) {
|
|
9651
|
+
const W = Q.point([f, m], {
|
|
9652
|
+
val: ((P = y[m].val) == null ? void 0 : P[w]) || ((D = y[m].dir) == null ? void 0 : D[w]),
|
|
9653
|
+
spd: (N = y[m].spd) == null ? void 0 : N[w]
|
|
9654
9654
|
});
|
|
9655
9655
|
_.push(W);
|
|
9656
9656
|
}
|
|
9657
|
-
} else if (
|
|
9658
|
-
const W = Q.point([
|
|
9659
|
-
val: ((H =
|
|
9660
|
-
spd: (G =
|
|
9657
|
+
} else if (f >= s && f <= n && (!(i <= this.zoom) || f % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9658
|
+
const W = Q.point([f, m], {
|
|
9659
|
+
val: ((H = y[m].val) == null ? void 0 : H[w]) || ((j = y[m].dir) == null ? void 0 : j[w]),
|
|
9660
|
+
spd: (G = y[m].spd) == null ? void 0 : G[w]
|
|
9661
9661
|
});
|
|
9662
9662
|
_.push(W);
|
|
9663
9663
|
}
|
|
9664
9664
|
});
|
|
9665
9665
|
}
|
|
9666
9666
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current direction elapsed: ", t, ", total: ", e += t);
|
|
9667
|
-
const
|
|
9668
|
-
if (
|
|
9669
|
-
if (!
|
|
9670
|
-
const
|
|
9671
|
-
for (const
|
|
9672
|
-
const
|
|
9673
|
-
for (const
|
|
9674
|
-
|
|
9675
|
-
Q.polygon(
|
|
9676
|
-
val: Number(
|
|
9667
|
+
const v = this.weatherLayers[A].speed;
|
|
9668
|
+
if (v) {
|
|
9669
|
+
if (!v.data) {
|
|
9670
|
+
const b = [];
|
|
9671
|
+
for (const f in (x = v.raw) == null ? void 0 : x.Polygon) {
|
|
9672
|
+
const w = v.raw.Polygon[f];
|
|
9673
|
+
for (const P of w)
|
|
9674
|
+
b.push(
|
|
9675
|
+
Q.polygon(P, {
|
|
9676
|
+
val: Number(f)
|
|
9677
9677
|
})
|
|
9678
9678
|
);
|
|
9679
9679
|
}
|
|
9680
|
-
|
|
9680
|
+
v.data = Q.featureCollection(b);
|
|
9681
9681
|
}
|
|
9682
|
-
const m = i < this.zoom ?
|
|
9682
|
+
const m = i < this.zoom ? v.data.features.filter((b) => b.properties.val > 0.5) : v.data.features;
|
|
9683
9683
|
_ = _.concat(m), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
|
|
9684
9684
|
}
|
|
9685
|
-
} else if (
|
|
9685
|
+
} else if (A === "wind" && this.showWindFeather) {
|
|
9686
9686
|
I = !0;
|
|
9687
|
-
const
|
|
9688
|
-
for (const
|
|
9689
|
-
if (
|
|
9690
|
-
const m =
|
|
9691
|
-
s > n ? m.forEach((
|
|
9692
|
-
var
|
|
9687
|
+
const y = this.weatherLayers.wind.raw;
|
|
9688
|
+
for (const v in y)
|
|
9689
|
+
if (v > l && v < c && (!(i <= this.zoom) || v % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9690
|
+
const m = y[v].lng;
|
|
9691
|
+
s > n ? m.forEach((b, f) => {
|
|
9692
|
+
var w, P, D, N;
|
|
9693
9693
|
if (i < 2) {
|
|
9694
|
-
if ((
|
|
9695
|
-
const H = Q.point([
|
|
9696
|
-
dir: ((
|
|
9697
|
-
spd:
|
|
9694
|
+
if ((b >= 0 && b <= 360 || b >= -360 && b <= 0) && b % 10 === 0) {
|
|
9695
|
+
const H = Q.point([b, v], {
|
|
9696
|
+
dir: ((w = y[v].val) == null ? void 0 : w[f]) || ((P = y[v].dir) == null ? void 0 : P[f]),
|
|
9697
|
+
spd: y[v].spd[f]
|
|
9698
9698
|
});
|
|
9699
9699
|
_.push(H);
|
|
9700
9700
|
}
|
|
9701
|
-
} else if ((
|
|
9702
|
-
const H = Q.point([
|
|
9703
|
-
dir: ((D =
|
|
9704
|
-
spd:
|
|
9701
|
+
} else if ((b >= s && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9702
|
+
const H = Q.point([b, v], {
|
|
9703
|
+
dir: ((D = y[v].val) == null ? void 0 : D[f]) || ((N = y[v].dir) == null ? void 0 : N[f]),
|
|
9704
|
+
spd: y[v].spd[f]
|
|
9705
9705
|
});
|
|
9706
9706
|
_.push(H);
|
|
9707
9707
|
}
|
|
9708
|
-
}) : m.forEach((
|
|
9709
|
-
var
|
|
9708
|
+
}) : m.forEach((b, f) => {
|
|
9709
|
+
var w, P, D, N;
|
|
9710
9710
|
if (i < 2) {
|
|
9711
|
-
if ((
|
|
9712
|
-
const H = Q.point([
|
|
9713
|
-
dir: ((
|
|
9714
|
-
spd:
|
|
9711
|
+
if ((b >= 0 && b <= 360 || b >= -360 && b <= 0) && b % 10 === 0) {
|
|
9712
|
+
const H = Q.point([b, v], {
|
|
9713
|
+
dir: ((w = y[v].val) == null ? void 0 : w[f]) || ((P = y[v].dir) == null ? void 0 : P[f]),
|
|
9714
|
+
spd: y[v].spd[f]
|
|
9715
9715
|
});
|
|
9716
9716
|
_.push(H);
|
|
9717
9717
|
}
|
|
9718
|
-
} else if (
|
|
9719
|
-
const H = Q.point([
|
|
9720
|
-
dir: ((D =
|
|
9721
|
-
spd:
|
|
9718
|
+
} else if (b >= s && b <= n && (!(i <= this.zoom) || b % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9719
|
+
const H = Q.point([b, v], {
|
|
9720
|
+
dir: ((D = y[v].val) == null ? void 0 : D[f]) || ((N = y[v].dir) == null ? void 0 : N[f]),
|
|
9721
|
+
spd: y[v].spd[f]
|
|
9722
9722
|
});
|
|
9723
9723
|
_.push(H);
|
|
9724
9724
|
}
|
|
9725
9725
|
});
|
|
9726
9726
|
}
|
|
9727
9727
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
|
|
9728
|
-
} else if (
|
|
9729
|
-
if (this.weatherLayers[
|
|
9730
|
-
_ = this.weatherLayers[
|
|
9728
|
+
} else if (A === "sig-wave-height") {
|
|
9729
|
+
if (this.weatherLayers[A].data)
|
|
9730
|
+
_ = this.weatherLayers[A].data;
|
|
9731
9731
|
else {
|
|
9732
9732
|
I = !0;
|
|
9733
|
-
const
|
|
9734
|
-
if (
|
|
9735
|
-
const
|
|
9736
|
-
for (const m in
|
|
9737
|
-
const
|
|
9738
|
-
for (const
|
|
9739
|
-
|
|
9740
|
-
Q.polygon(
|
|
9733
|
+
const y = this.weatherLayers[A].raw;
|
|
9734
|
+
if (y) {
|
|
9735
|
+
const v = [];
|
|
9736
|
+
for (const m in y.Polygon) {
|
|
9737
|
+
const b = y.Polygon[m];
|
|
9738
|
+
for (const f of b)
|
|
9739
|
+
v.push(
|
|
9740
|
+
Q.polygon(f, {
|
|
9741
9741
|
val: Number(m)
|
|
9742
9742
|
})
|
|
9743
9743
|
);
|
|
9744
9744
|
}
|
|
9745
|
-
for (const m in
|
|
9746
|
-
const
|
|
9747
|
-
for (const
|
|
9748
|
-
|
|
9749
|
-
Q.multiPolygon(
|
|
9745
|
+
for (const m in y.MultiPolygon) {
|
|
9746
|
+
const b = y.MultiPolygon[m];
|
|
9747
|
+
for (const f of b)
|
|
9748
|
+
v.push(
|
|
9749
|
+
Q.multiPolygon(f, {
|
|
9750
9750
|
val: Number(m)
|
|
9751
9751
|
})
|
|
9752
9752
|
);
|
|
9753
9753
|
}
|
|
9754
|
-
for (const m in
|
|
9755
|
-
const
|
|
9756
|
-
for (let
|
|
9757
|
-
|
|
9758
|
-
Q.point([
|
|
9759
|
-
val: Number(
|
|
9754
|
+
for (const m in y.Point) {
|
|
9755
|
+
const b = y.Point[m];
|
|
9756
|
+
for (let f = 0; f < ((E = b.lng) == null ? void 0 : E.length); f++)
|
|
9757
|
+
v.push(
|
|
9758
|
+
Q.point([b.lng[f], m], {
|
|
9759
|
+
val: Number(b.val[f])
|
|
9760
9760
|
})
|
|
9761
9761
|
);
|
|
9762
9762
|
}
|
|
9763
|
-
_ = _.concat(
|
|
9763
|
+
_ = _.concat(v);
|
|
9764
9764
|
}
|
|
9765
9765
|
}
|
|
9766
9766
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
|
|
9767
|
-
} else if (
|
|
9768
|
-
if (this.weatherLayers[
|
|
9769
|
-
_ = this.weatherLayers[
|
|
9767
|
+
} else if (A === "prmsl") {
|
|
9768
|
+
if (this.weatherLayers[A].data)
|
|
9769
|
+
_ = this.weatherLayers[A].data;
|
|
9770
9770
|
else {
|
|
9771
9771
|
I = !0;
|
|
9772
|
-
const
|
|
9773
|
-
if (
|
|
9774
|
-
const
|
|
9775
|
-
for (const m in
|
|
9776
|
-
const
|
|
9777
|
-
for (const
|
|
9778
|
-
|
|
9779
|
-
Q.lineString(
|
|
9772
|
+
const y = this.weatherLayers[A].raw;
|
|
9773
|
+
if (y) {
|
|
9774
|
+
const v = [];
|
|
9775
|
+
for (const m in y.LineString) {
|
|
9776
|
+
const b = y.LineString[m];
|
|
9777
|
+
for (const f of b)
|
|
9778
|
+
v.push(
|
|
9779
|
+
Q.lineString(f, {
|
|
9780
9780
|
val: Number(m)
|
|
9781
9781
|
})
|
|
9782
9782
|
);
|
|
9783
9783
|
}
|
|
9784
|
-
for (const m in
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
Q.point([
|
|
9788
|
-
val:
|
|
9789
|
-
type:
|
|
9784
|
+
for (const m in y.Point)
|
|
9785
|
+
y.Point[m].lng.forEach((b, f) => {
|
|
9786
|
+
b = le.convertToStdLng(b), v.push(
|
|
9787
|
+
Q.point([b, m], {
|
|
9788
|
+
val: y.Point[m].val[f],
|
|
9789
|
+
type: y.Point[m].type[f]
|
|
9790
9790
|
})
|
|
9791
9791
|
);
|
|
9792
9792
|
});
|
|
9793
|
-
_ = _.concat(
|
|
9793
|
+
_ = _.concat(v);
|
|
9794
9794
|
}
|
|
9795
9795
|
}
|
|
9796
9796
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
9797
9797
|
}
|
|
9798
|
-
_.length && (this.weatherLayers[
|
|
9798
|
+
_.length && (this.weatherLayers[A].data = Q.featureCollection(_)), I && (this.weatherLayers[A].version = Math.random() + 1);
|
|
9799
9799
|
}
|
|
9800
9800
|
}
|
|
9801
9801
|
},
|
|
@@ -9831,8 +9831,8 @@ const js = {
|
|
|
9831
9831
|
this.handleBeforeLayerToggle();
|
|
9832
9832
|
},
|
|
9833
9833
|
handleBeforeLayerToggle() {
|
|
9834
|
-
var a, e, t, r, i, s, n, l, c, d, h, p,
|
|
9835
|
-
(a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (
|
|
9834
|
+
var a, e, t, r, i, s, n, l, c, d, h, p, L, x, E, A;
|
|
9835
|
+
(a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (L = this.otherLayers) != null && L.chinaRoute || (x = this.otherLayers) != null && x["voluntary-reporting-area"] || (E = this.otherLayers) != null && E["eca-zones"] || (A = this.otherLayers) != null && A["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
9836
9836
|
},
|
|
9837
9837
|
handleDateChange(a = { tropicals: !1 }) {
|
|
9838
9838
|
this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -9866,8 +9866,8 @@ const js = {
|
|
|
9866
9866
|
}
|
|
9867
9867
|
},
|
|
9868
9868
|
handle3dToggle(a) {
|
|
9869
|
-
var e, t, r, i, s, n, l, c, d, h, p,
|
|
9870
|
-
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((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (
|
|
9869
|
+
var e, t, r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m;
|
|
9870
|
+
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((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (L = this.map) != null && L.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((x = this.map) != null && x.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((A = this.map) == null || A.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((I = this.viewport) == null ? void 0 : I.particleLayer) && ((y = this.map) != null && y.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((m = this.map) == null || m.moveLayer((v = this.viewport) == null ? void 0 : v.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
9871
9871
|
},
|
|
9872
9872
|
handleParticle(a) {
|
|
9873
9873
|
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
|
|
@@ -9891,9 +9891,9 @@ const js = {
|
|
|
9891
9891
|
class: "map-gl-home"
|
|
9892
9892
|
};
|
|
9893
9893
|
function Gs(a, e, t, r, i, s) {
|
|
9894
|
-
var
|
|
9895
|
-
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"),
|
|
9896
|
-
return t.map ? (
|
|
9894
|
+
var Z, ye, ne, fe, Ce, be, xe, B, Ee, Le, ke, Be, ze, _e, J, q, S, De, K, $, Se, M, Ae, Me, Te, Qe, z, O, Ge, Ue;
|
|
9895
|
+
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), L = R("IdmSwell"), x = R("IdmPrmsl"), E = R("IdmIceEdge"), A = R("IdmIceCover"), I = R("IdmIceThickness"), _ = R("IdmTropicals"), y = R("IdmCurrents"), v = R("IdmCurrentParticle"), m = R("IdmWindBarb"), b = R("IdmWindParticle"), f = R("IdmPrecip3h"), w = R("IdmVisibility"), P = R("IdmWaterTemp"), D = R("IdmTemp"), N = R("IdmWarZone"), H = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), ce = R("IdmLoadLine"), re = R("IdmTimezone"), de = R("IdmVRA"), we = R("IdmSpecialArea"), pe = R("IdmTerminator"), ve = R("IdmLatLng"), me = R("IdmMeasure"), U = R("IdmPoint");
|
|
9896
|
+
return t.map ? (u(), g("div", Ws, [
|
|
9897
9897
|
F(n, X({
|
|
9898
9898
|
ref: "layer",
|
|
9899
9899
|
map: t.map,
|
|
@@ -9928,7 +9928,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9928
9928
|
F(l, X({
|
|
9929
9929
|
map: t.map,
|
|
9930
9930
|
token: t.token,
|
|
9931
|
-
enabled: (
|
|
9931
|
+
enabled: (Z = i.otherLayers) == null ? void 0 : Z.enc,
|
|
9932
9932
|
"toggle-version": t.toggleVersion
|
|
9933
9933
|
}, a.$attrs, {
|
|
9934
9934
|
onEnc: e[9] || (e[9] = (oe) => i.enc = oe)
|
|
@@ -9953,11 +9953,11 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9953
9953
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9954
9954
|
F(p, X({
|
|
9955
9955
|
map: t.map,
|
|
9956
|
-
"sig-wave": (
|
|
9956
|
+
"sig-wave": (Ce = i.weatherLayers) == null ? void 0 : Ce["sig-wave-height"],
|
|
9957
9957
|
"before-layer": t.beforeLayer,
|
|
9958
9958
|
"active-weather-layers": i.activeWeatherLayers
|
|
9959
9959
|
}, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "active-weather-layers"]),
|
|
9960
|
-
F(
|
|
9960
|
+
F(L, X({
|
|
9961
9961
|
map: t.map,
|
|
9962
9962
|
swell: (be = i.weatherLayers) == null ? void 0 : be.swell,
|
|
9963
9963
|
"before-layer": t.beforeLayer,
|
|
@@ -9965,7 +9965,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9965
9965
|
}, a.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
|
|
9966
9966
|
F(x, X({
|
|
9967
9967
|
map: t.map,
|
|
9968
|
-
prmsl: (
|
|
9968
|
+
prmsl: (xe = i.weatherLayers) == null ? void 0 : xe.prmsl,
|
|
9969
9969
|
"before-layer": t.beforeLayer,
|
|
9970
9970
|
"active-weather-layers": i.activeWeatherLayers
|
|
9971
9971
|
}, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
@@ -9975,9 +9975,9 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9975
9975
|
"toggle-version": t.toggleVersion,
|
|
9976
9976
|
"before-layer": t.beforeLayer
|
|
9977
9977
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
9978
|
-
F(
|
|
9978
|
+
F(A, X({
|
|
9979
9979
|
viewport: i.viewport,
|
|
9980
|
-
factor: (
|
|
9980
|
+
factor: (Ee = i.weatherLayers) == null ? void 0 : Ee["ice-cover"],
|
|
9981
9981
|
"toggle-version": t.toggleVersion,
|
|
9982
9982
|
"before-layer": t.beforeLayer
|
|
9983
9983
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
@@ -9990,10 +9990,10 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9990
9990
|
F(_, X({
|
|
9991
9991
|
map: t.map,
|
|
9992
9992
|
date: t.ts,
|
|
9993
|
-
tropicals: (
|
|
9993
|
+
tropicals: (ke = i.weatherLayers) == null ? void 0 : ke.tropicals,
|
|
9994
9994
|
"before-layer": t.beforeLayer
|
|
9995
9995
|
}, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
9996
|
-
F(
|
|
9996
|
+
F(y, X({
|
|
9997
9997
|
map: t.map,
|
|
9998
9998
|
"map-projection": i.mapProjection,
|
|
9999
9999
|
current: (Be = i.weatherLayers) == null ? void 0 : Be.current,
|
|
@@ -10008,7 +10008,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10008
10008
|
onParticle: s.handleParticle,
|
|
10009
10009
|
onHandleToggleVersion: s.handleToggleVersion
|
|
10010
10010
|
}), null, 16, ["map", "map-projection", "current", "before-layer", "show-current-isoband", "show-current-particle", "toggle-partice-version", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
10011
|
-
F(
|
|
10011
|
+
F(v, X({
|
|
10012
10012
|
viewport: i.viewport,
|
|
10013
10013
|
factor: (ze = i.weatherLayers) == null ? void 0 : ze["current-particle"],
|
|
10014
10014
|
"before-layer": t.beforeLayer,
|
|
@@ -10018,8 +10018,8 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10018
10018
|
ref: "windBarb",
|
|
10019
10019
|
map: t.map,
|
|
10020
10020
|
"map-projection": i.mapProjection,
|
|
10021
|
-
wind: (
|
|
10022
|
-
current: (
|
|
10021
|
+
wind: (_e = i.weatherLayers) == null ? void 0 : _e.wind,
|
|
10022
|
+
current: (J = i.weatherLayers) == null ? void 0 : J.current,
|
|
10023
10023
|
"before-layer": t.beforeLayer,
|
|
10024
10024
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
10025
10025
|
"show-wind-feather": i.showWindFeather,
|
|
@@ -10030,25 +10030,25 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10030
10030
|
"weather-layers": i.weatherLayers,
|
|
10031
10031
|
onParticle: s.handleParticle
|
|
10032
10032
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-wind-feather", "show-wind-particle", "toggle-partice-version", "toggle-version", "weather-layers", "onParticle"]),
|
|
10033
|
-
F(
|
|
10033
|
+
F(b, X({
|
|
10034
10034
|
viewport: i.viewport,
|
|
10035
|
-
factor: (
|
|
10035
|
+
factor: (q = i.weatherLayers) == null ? void 0 : q["wind-particle"],
|
|
10036
10036
|
"before-layer": t.beforeLayer,
|
|
10037
10037
|
"toggle-version": t.toggleVersion
|
|
10038
10038
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10039
|
-
F(
|
|
10039
|
+
F(f, X({
|
|
10040
10040
|
viewport: i.viewport,
|
|
10041
|
-
factor: (
|
|
10041
|
+
factor: (S = i.weatherLayers) == null ? void 0 : S.precip3h,
|
|
10042
10042
|
"before-layer": t.beforeLayer,
|
|
10043
10043
|
"toggle-version": t.toggleVersion
|
|
10044
10044
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10045
|
-
F(
|
|
10045
|
+
F(w, X({
|
|
10046
10046
|
viewport: i.viewport,
|
|
10047
|
-
factor: (
|
|
10047
|
+
factor: (De = i.weatherLayers) == null ? void 0 : De.visibility,
|
|
10048
10048
|
"before-layer": t.beforeLayer,
|
|
10049
10049
|
"toggle-version": t.toggleVersion
|
|
10050
10050
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10051
|
-
F(
|
|
10051
|
+
F(P, X({
|
|
10052
10052
|
viewport: i.viewport,
|
|
10053
10053
|
factor: (K = i.weatherLayers) == null ? void 0 : K["water-temp"],
|
|
10054
10054
|
"before-layer": t.beforeLayer,
|
|
@@ -10056,7 +10056,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10056
10056
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10057
10057
|
F(D, X({
|
|
10058
10058
|
viewport: i.viewport,
|
|
10059
|
-
factor: (
|
|
10059
|
+
factor: ($ = i.weatherLayers) == null ? void 0 : $.temp,
|
|
10060
10060
|
"before-layer": t.beforeLayer,
|
|
10061
10061
|
"toggle-version": t.toggleVersion
|
|
10062
10062
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
@@ -10067,7 +10067,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10067
10067
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10068
10068
|
F(H, X({
|
|
10069
10069
|
map: t.map,
|
|
10070
|
-
area: (
|
|
10070
|
+
area: (M = i.otherLayers) == null ? void 0 : M["gmdss-areas"],
|
|
10071
10071
|
"before-layer": t.beforeLayer
|
|
10072
10072
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
10073
10073
|
F(j, X({
|
|
@@ -10093,7 +10093,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10093
10093
|
}, a.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
10094
10094
|
F(re, X({
|
|
10095
10095
|
map: t.map,
|
|
10096
|
-
zone: (
|
|
10096
|
+
zone: (z = i.otherLayers) == null ? void 0 : z["time-zones"],
|
|
10097
10097
|
"before-layer": t.beforeLayer
|
|
10098
10098
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10099
10099
|
F(de, X({
|
|
@@ -10129,7 +10129,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10129
10129
|
gateway: i.gateway,
|
|
10130
10130
|
"forecast-model": t.forecastModel
|
|
10131
10131
|
}, a.$attrs), null, 16, ["map", "show", "meteo", "ts", "token", "gateway", "forecast-model"])
|
|
10132
|
-
], 512)) :
|
|
10132
|
+
], 512)) : V("", !0);
|
|
10133
10133
|
}
|
|
10134
10134
|
const Us = /* @__PURE__ */ Y(js, [["render", Gs]]), ao = {
|
|
10135
10135
|
install(a) {
|
|
@@ -10141,7 +10141,7 @@ export {
|
|
|
10141
10141
|
Us as MapboxGL,
|
|
10142
10142
|
ao as MapboxGLPlugin,
|
|
10143
10143
|
na as MapboxHelper,
|
|
10144
|
-
|
|
10144
|
+
Ie as ParticleSchema,
|
|
10145
10145
|
dt as TropicalGL,
|
|
10146
10146
|
et as Viewport,
|
|
10147
10147
|
We as WebGL,
|