@idmwx/idmui-gl3 6.2.8 → 6.3.0
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 +748 -721
- package/dist/index.umd.cjs +23 -13
- package/dist/mapbox/src/components/weather/tropical.vue.d.ts +7 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
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
|
-
var
|
|
3
|
+
var ae = (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
5
|
import ee from "moment";
|
|
6
6
|
import Qe from "axios";
|
|
7
7
|
import Ye from "moment-timezone";
|
|
8
|
-
import { resolveComponent as R, openBlock as
|
|
8
|
+
import { resolveComponent as R, openBlock as u, createElementBlock as g, createElementVNode as o, normalizeStyle as he, createVNode as H, withCtx as Ie, normalizeClass as Z, Fragment as V, renderList as $, toDisplayString as E, createCommentVNode as J, createBlock as gt, createTextVNode as le, withDirectives as Fe, createStaticVNode as yt, vShow as Oe, defineComponent as ft, withModifiers as Ve, mergeProps as X } from "vue";
|
|
9
9
|
import * as S from "@turf/turf";
|
|
10
10
|
import At from "@mapbox/sphericalmercator";
|
|
11
|
-
import
|
|
12
|
-
import { TropicalHelper as ct, LngLatHelper as
|
|
11
|
+
import Re from "mapbox-gl";
|
|
12
|
+
import { TropicalHelper as ct, LngLatHelper as oe, LaneHelper as je } from "@idm-plugin/geo";
|
|
13
13
|
import { TidesAssist as $e, Meteo2Assist as Ke } from "@idm-plugin/meteo";
|
|
14
14
|
const U = (a, e) => {
|
|
15
15
|
const t = a.__vccOpts || a;
|
|
@@ -301,11 +301,11 @@ const U = (a, e) => {
|
|
|
301
301
|
class: "radio-tip"
|
|
302
302
|
};
|
|
303
303
|
function aa(a, e, t, r, i, s) {
|
|
304
|
-
const n = R("ElTooltip"), l = R("ElRadio"), c = R("ElRadioGroup"),
|
|
305
|
-
return
|
|
304
|
+
const n = R("ElTooltip"), l = R("ElRadio"), c = R("ElRadioGroup"), d = R("ElScrollbar");
|
|
305
|
+
return u(), g("div", vt, [
|
|
306
306
|
o("div", {
|
|
307
307
|
class: "menu-bar-box",
|
|
308
|
-
style:
|
|
308
|
+
style: he({ top: t.top + 10 + "px", right: i.right + "px" })
|
|
309
309
|
}, [
|
|
310
310
|
o("div", bt, [
|
|
311
311
|
H(n, {
|
|
@@ -328,7 +328,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
328
328
|
], 4),
|
|
329
329
|
o("div", {
|
|
330
330
|
class: "menu-bar-box",
|
|
331
|
-
style:
|
|
331
|
+
style: he({ top: t.top + 160 + "px", right: i.right + "px" })
|
|
332
332
|
}, [
|
|
333
333
|
o("div", Lt, [
|
|
334
334
|
H(n, {
|
|
@@ -397,10 +397,10 @@ 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
|
-
style:
|
|
403
|
+
style: he({ right: i.right + "px", bottom: "100px" })
|
|
404
404
|
}, [
|
|
405
405
|
o("div", Ct, [
|
|
406
406
|
e[22] || (e[22] = o("div", { style: { margin: "2px 5px" } }, "Weather Layers", -1)),
|
|
@@ -409,46 +409,46 @@ 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(V, null, $(i.layers.weather.filter((h) => h.collected), (h) => (u(), g("div", {
|
|
416
416
|
key: h.key,
|
|
417
417
|
class: Z(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
418
418
|
}, [
|
|
419
419
|
o("div", {
|
|
420
420
|
class: "checkbox",
|
|
421
|
-
onClick: (
|
|
421
|
+
onClick: (p) => s.handleWeatherLayerPick(h)
|
|
422
422
|
}, null, 8, Bt),
|
|
423
423
|
o("span", {
|
|
424
424
|
class: "name",
|
|
425
|
-
onClick: (
|
|
426
|
-
},
|
|
427
|
-
h.key === "wind" && i.activeWeatherLayersCollected.some((
|
|
425
|
+
onClick: (p) => s.handleWeatherLayerPick(h)
|
|
426
|
+
}, E(h.name), 9, It),
|
|
427
|
+
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Et, [
|
|
428
428
|
o("i", {
|
|
429
429
|
class: Z(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
430
|
-
onClick: e[6] || (e[6] = (
|
|
430
|
+
onClick: e[6] || (e[6] = (p) => s.handleToggleWindParticle())
|
|
431
431
|
}, "", 2),
|
|
432
432
|
o("i", {
|
|
433
433
|
class: Z(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
434
|
-
onClick: e[7] || (e[7] = (
|
|
434
|
+
onClick: e[7] || (e[7] = (p) => s.handleToggleWindFeather())
|
|
435
435
|
}, "", 2)
|
|
436
436
|
])) : J("", !0),
|
|
437
|
-
h.key === "current" && i.activeWeatherLayersCollected.some((
|
|
437
|
+
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", kt, [
|
|
438
438
|
o("i", {
|
|
439
439
|
class: Z(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
440
|
-
onClick: e[8] || (e[8] = (
|
|
440
|
+
onClick: e[8] || (e[8] = (p) => s.handleToggleCurrentParticle())
|
|
441
441
|
}, "", 2),
|
|
442
442
|
o("i", {
|
|
443
443
|
class: Z(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
444
|
-
onClick: e[9] || (e[9] = (
|
|
444
|
+
onClick: e[9] || (e[9] = (p) => s.handleToggleCurrentIsoband())
|
|
445
445
|
}, "", 2)
|
|
446
446
|
])) : J("", !0)
|
|
447
447
|
], 2))), 128))
|
|
448
448
|
], 4)) : J("", !0),
|
|
449
449
|
o("div", {
|
|
450
450
|
class: "available-layers flex-center",
|
|
451
|
-
style:
|
|
451
|
+
style: he({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
|
|
452
452
|
}, [
|
|
453
453
|
o("div", {
|
|
454
454
|
class: Z(["list-box", t.layerToggle ? "right-bar" : ""])
|
|
@@ -460,7 +460,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
460
460
|
onClick: e[10] || (e[10] = (...h) => s.handleMenuToggle && s.handleMenuToggle(...h))
|
|
461
461
|
}, "")
|
|
462
462
|
]),
|
|
463
|
-
H(
|
|
463
|
+
H(d, { style: { flex: "1" } }, {
|
|
464
464
|
default: Ie(() => [
|
|
465
465
|
o("div", zt, [
|
|
466
466
|
o("div", Pt, [
|
|
@@ -470,51 +470,51 @@ 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(V, null, $(i.layers.weather, (h) => (u(), g(V, {
|
|
478
478
|
key: h.key
|
|
479
479
|
}, [
|
|
480
|
-
h.hide ? J("", !0) : (
|
|
480
|
+
h.hide ? J("", !0) : (u(), g("div", {
|
|
481
481
|
key: 0,
|
|
482
482
|
class: Z(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
483
483
|
}, [
|
|
484
484
|
o("div", Qt, [
|
|
485
485
|
o("div", {
|
|
486
486
|
class: "checkbox",
|
|
487
|
-
onClick: (
|
|
487
|
+
onClick: (p) => s.handleWeatherLayerPick(h)
|
|
488
488
|
}, null, 8, Ht),
|
|
489
489
|
o("span", {
|
|
490
490
|
class: "name",
|
|
491
|
-
onClick: (
|
|
492
|
-
},
|
|
493
|
-
h.key === "wind" && i.activeWeatherLayersCollected.some((
|
|
491
|
+
onClick: (p) => s.handleWeatherLayerPick(h)
|
|
492
|
+
}, E(h.name), 9, Nt),
|
|
493
|
+
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Ft, [
|
|
494
494
|
o("i", {
|
|
495
495
|
class: Z(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
496
|
-
onClick: e[12] || (e[12] = (
|
|
496
|
+
onClick: e[12] || (e[12] = (p) => s.handleToggleWindParticle())
|
|
497
497
|
}, "", 2),
|
|
498
498
|
o("i", {
|
|
499
499
|
class: Z(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
500
|
-
onClick: e[13] || (e[13] = (
|
|
500
|
+
onClick: e[13] || (e[13] = (p) => s.handleToggleWindFeather())
|
|
501
501
|
}, "", 2)
|
|
502
502
|
])) : J("", !0),
|
|
503
|
-
h.key === "current" && i.activeWeatherLayersCollected.some((
|
|
503
|
+
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Ot, [
|
|
504
504
|
o("i", {
|
|
505
505
|
class: Z(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
506
|
-
onClick: e[14] || (e[14] = (
|
|
506
|
+
onClick: e[14] || (e[14] = (p) => s.handleToggleCurrentParticle())
|
|
507
507
|
}, "", 2),
|
|
508
508
|
o("i", {
|
|
509
509
|
class: Z(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
510
|
-
onClick: e[15] || (e[15] = (
|
|
510
|
+
onClick: e[15] || (e[15] = (p) => s.handleToggleCurrentIsoband())
|
|
511
511
|
}, "", 2)
|
|
512
512
|
])) : J("", !0)
|
|
513
513
|
]),
|
|
514
514
|
o("div", {
|
|
515
|
-
onClick: (
|
|
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,18 +530,18 @@ 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
|
-
(
|
|
534
|
-
var
|
|
535
|
-
return
|
|
533
|
+
(u(!0), g(V, null, $(i.layers.other, (h) => {
|
|
534
|
+
var p;
|
|
535
|
+
return u(), g("div", {
|
|
536
536
|
key: h.key,
|
|
537
537
|
class: Z(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
|
|
538
|
-
onClick: (
|
|
538
|
+
onClick: (v) => s.handleOtherLayerPick(h)
|
|
539
539
|
}, [
|
|
540
540
|
o("div", Kt, [
|
|
541
541
|
o("div", Xt, [
|
|
542
|
-
(
|
|
542
|
+
(p = s.computeLayerClass(h, i.activeOtherLayers)) != null && p.includes("active") ? (u(), g("i", Jt, "")) : (u(), g("i", qt, ""))
|
|
543
543
|
]),
|
|
544
|
-
o("span", null,
|
|
544
|
+
o("span", null, E(h.name), 1)
|
|
545
545
|
])
|
|
546
546
|
], 10, Yt);
|
|
547
547
|
}), 128))
|
|
@@ -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: Ie(() => [
|
|
560
|
-
(
|
|
560
|
+
(u(!0), g(V, null, $(i.sourceList, (h, p) => (u(), gt(l, {
|
|
561
561
|
key: `source${h.name}`,
|
|
562
562
|
value: h.name
|
|
563
563
|
}, {
|
|
564
564
|
default: Ie(() => {
|
|
565
|
-
var
|
|
565
|
+
var v, C, _, f, k, B;
|
|
566
566
|
return [
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
567
|
+
le(E(h.name) + " ", 1),
|
|
568
|
+
p !== 0 ? (u(), g("span", $t, E(h.resolution) + "km " + E(h.length) + "days", 1)) : J("", !0),
|
|
569
|
+
p === 0 ? (u(), g("div", ea, "Provides the best forecast")) : (_ = (C = (v = h == null ? void 0 : h.update) == null ? void 0 : v.default) == null ? void 0 : C.meta) != null && _.initialisationTime ? (u(), g("div", ta, "Update: " + E(s.computeDateZ((B = (k = (f = h == null ? void 0 : h.update) == null ? void 0 : f.default) == null ? void 0 : k.meta) == null ? void 0 : B.initialisationTime)), 1)) : J("", !0)
|
|
570
570
|
];
|
|
571
571
|
}),
|
|
572
572
|
_: 2
|
|
@@ -667,22 +667,22 @@ const ra = {
|
|
|
667
667
|
else {
|
|
668
668
|
this.map.addSource(this.source, { type: "geojson", data: l });
|
|
669
669
|
for (let c = 0; c < (this.barbs ?? []).length - 1; c++) {
|
|
670
|
-
const
|
|
670
|
+
const d = (this.barbs ?? [])[c] || 0, h = (this.barbs ?? [])[c + 1] || 0, p = d < 10 ? `00${d}kts` : d < 100 ? `0${d}kts` : `${d}kts`;
|
|
671
671
|
this.map.addLayer(
|
|
672
672
|
{
|
|
673
|
-
id:
|
|
673
|
+
id: p,
|
|
674
674
|
type: "symbol",
|
|
675
675
|
filter: [
|
|
676
676
|
"all",
|
|
677
677
|
// @ts-ignore
|
|
678
|
-
[">=", "spd",
|
|
678
|
+
[">=", "spd", d],
|
|
679
679
|
// @ts-ignore
|
|
680
680
|
["<", "spd", h]
|
|
681
681
|
],
|
|
682
682
|
source: this.source,
|
|
683
683
|
layout: {
|
|
684
684
|
"symbol-placement": "point",
|
|
685
|
-
"icon-image":
|
|
685
|
+
"icon-image": p,
|
|
686
686
|
// mapbox sprite
|
|
687
687
|
"icon-size": 0.14,
|
|
688
688
|
"icon-offset": [0, -20],
|
|
@@ -732,15 +732,15 @@ function sa(a, e, t, r, i, s) {
|
|
|
732
732
|
const oa = /* @__PURE__ */ U(ra, [["render", sa]]);
|
|
733
733
|
class et {
|
|
734
734
|
constructor(e) {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
735
|
+
ae(this, "map");
|
|
736
|
+
ae(this, "mercator");
|
|
737
|
+
ae(this, "rampColorLayer");
|
|
738
|
+
ae(this, "rampColorSource");
|
|
739
|
+
ae(this, "particleLayer");
|
|
740
|
+
ae(this, "particleSource");
|
|
741
|
+
ae(this, "rampColorCanvas");
|
|
742
|
+
ae(this, "particleCanvas");
|
|
743
|
+
ae(this, "ratio");
|
|
744
744
|
this.map = e, this.mercator = new At(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
|
|
745
745
|
}
|
|
746
746
|
/**
|
|
@@ -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]), [
|
|
779
|
-
return [
|
|
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, v] = this.mercator.px([l, i[1]], t), C = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
|
|
779
|
+
return [p, v, d + C, h];
|
|
780
780
|
}
|
|
781
781
|
/**
|
|
782
782
|
* [视窗边界像素宽度]
|
|
@@ -793,11 +793,11 @@ class et {
|
|
|
793
793
|
getWorldCopy(e, t) {
|
|
794
794
|
const r = 2 ** t, [i, s, n, l] = e.map((h) => ~~(h / (r * 256))), c = [];
|
|
795
795
|
for (let h = l; h <= s; h++)
|
|
796
|
-
for (let
|
|
797
|
-
c.push([
|
|
796
|
+
for (let p = i; p <= n; p++)
|
|
797
|
+
c.push([p, h]);
|
|
798
798
|
return c.map((h) => {
|
|
799
|
-
const
|
|
800
|
-
return [h[0] *
|
|
799
|
+
const p = 2 ** t * 256;
|
|
800
|
+
return [h[0] * p, h[1] * p, p];
|
|
801
801
|
});
|
|
802
802
|
}
|
|
803
803
|
resize() {
|
|
@@ -879,13 +879,13 @@ class We {
|
|
|
879
879
|
if (i) {
|
|
880
880
|
const s = { program: i }, n = e.getProgramParameter(i, e.ACTIVE_ATTRIBUTES);
|
|
881
881
|
for (let c = 0; c < n; c++) {
|
|
882
|
-
const
|
|
883
|
-
s[
|
|
882
|
+
const d = e.getActiveAttrib(i, c);
|
|
883
|
+
s[d.name] = e.getAttribLocation(i, d.name);
|
|
884
884
|
}
|
|
885
885
|
const l = e.getProgramParameter(i, e.ACTIVE_UNIFORMS);
|
|
886
886
|
for (let c = 0; c < l; c++) {
|
|
887
|
-
const
|
|
888
|
-
s[
|
|
887
|
+
const d = e.getActiveUniform(i, c);
|
|
888
|
+
s[d.name] = e.getUniformLocation(i, d.name);
|
|
889
889
|
}
|
|
890
890
|
return s;
|
|
891
891
|
}
|
|
@@ -900,8 +900,8 @@ class We {
|
|
|
900
900
|
const l = n.getContext("2d");
|
|
901
901
|
if (l && e) {
|
|
902
902
|
const c = l == null ? void 0 : l.createLinearGradient(0, 0, 256, 0);
|
|
903
|
-
return t.forEach(([
|
|
904
|
-
c.addColorStop(
|
|
903
|
+
return t.forEach(([d, h]) => {
|
|
904
|
+
c.addColorStop(d, h);
|
|
905
905
|
}), l.fillStyle = c, l.fillRect(0, 0, 256, 1), {
|
|
906
906
|
canvas: n,
|
|
907
907
|
texture: this.createTexture(
|
|
@@ -923,8 +923,8 @@ class We {
|
|
|
923
923
|
const n = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, s, r, r), l = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, s, r, r), c = new Float32Array(i);
|
|
924
924
|
for (let h = 0; h < i; h++)
|
|
925
925
|
c[h] = h;
|
|
926
|
-
const
|
|
927
|
-
return { resolution: r, total: i, texture0: n, texture1: l, indexBuffer:
|
|
926
|
+
const d = this.createDataBuffer(e, "array", c);
|
|
927
|
+
return { resolution: r, total: i, texture0: n, texture1: l, indexBuffer: d };
|
|
928
928
|
}
|
|
929
929
|
bind(e, t, r) {
|
|
930
930
|
const i = this.createProgram(e, t, r);
|
|
@@ -939,13 +939,13 @@ class We {
|
|
|
939
939
|
return {};
|
|
940
940
|
}
|
|
941
941
|
bindParticle(e, t, r, i, s, n) {
|
|
942
|
-
const l = this.createProgramWrapper(e, t, r), c = this.createProgramWrapper(e, i, s),
|
|
943
|
-
return { particle: l, screen: c, update:
|
|
942
|
+
const l = this.createProgramWrapper(e, t, r), c = this.createProgramWrapper(e, i, s), d = this.createProgramWrapper(e, i, n), h = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), p = e.createFramebuffer();
|
|
943
|
+
return { particle: l, screen: c, update: d, quadBuffer: h, frameBuffer: p };
|
|
944
944
|
}
|
|
945
945
|
draw(e, t, r, i, s, n, l) {
|
|
946
|
-
var c,
|
|
946
|
+
var c, d;
|
|
947
947
|
if (t && r) {
|
|
948
|
-
e.resize(), t == null || t.viewport(0, 0, (c = t == null ? void 0 : t.canvas) == null ? void 0 : c.width, (
|
|
948
|
+
e.resize(), t == null || t.viewport(0, 0, (c = t == null ? void 0 : t.canvas) == null ? void 0 : c.width, (d = t == null ? void 0 : t.canvas) == null ? void 0 : d.height), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT);
|
|
949
949
|
try {
|
|
950
950
|
t.useProgram(r);
|
|
951
951
|
const h = {
|
|
@@ -957,9 +957,9 @@ 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
|
|
961
|
-
for (const
|
|
962
|
-
const
|
|
960
|
+
const p = e.getBoundPixel(), v = e.map.getZoom() + 1, C = e.getWorldCopy(p, v);
|
|
961
|
+
for (const _ of C) {
|
|
962
|
+
const f = (_[0] - p[0]) * e.ratio, k = (_[1] - p[3]) * e.ratio, B = _[2] * e.ratio, [A, w, m, L] = [f, B + f, k, B + k], y = new Float32Array([A, m, w, m, A, L, A, L, w, m, w, L]);
|
|
963
963
|
t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, y, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
964
964
|
}
|
|
965
965
|
} catch (h) {
|
|
@@ -1008,10 +1008,10 @@ class We {
|
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
class
|
|
1011
|
+
class ne {
|
|
1012
1012
|
}
|
|
1013
1013
|
// 顶点渲染
|
|
1014
|
-
|
|
1014
|
+
ae(ne, "vertexSchema", `
|
|
1015
1015
|
//canvas 坐标系上的坐标 (x, y)
|
|
1016
1016
|
attribute vec2 a_position; //像素坐标
|
|
1017
1017
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -1026,7 +1026,7 @@ te(oe, "vertexSchema", `
|
|
|
1026
1026
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
1027
1027
|
v_texCoord = a_texCoord;
|
|
1028
1028
|
}`), // 类如风、流等u v双变量片元渲染
|
|
1029
|
-
|
|
1029
|
+
ae(ne, "uvFragmentSchema", `
|
|
1030
1030
|
precision mediump float;
|
|
1031
1031
|
uniform sampler2D u_image;
|
|
1032
1032
|
uniform vec2 u_range_u_v;
|
|
@@ -1046,7 +1046,7 @@ te(oe, "uvFragmentSchema", `
|
|
|
1046
1046
|
|
|
1047
1047
|
gl_FragColor = color;
|
|
1048
1048
|
}`), // 类如浪、气压等单变量片元渲染
|
|
1049
|
-
|
|
1049
|
+
ae(ne, "fragmentSchema", `
|
|
1050
1050
|
precision mediump float;
|
|
1051
1051
|
uniform sampler2D u_image; // 灰度
|
|
1052
1052
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -1057,9 +1057,9 @@ te(oe, "fragmentSchema", `
|
|
|
1057
1057
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
1058
1058
|
gl_FragColor = color;
|
|
1059
1059
|
}`);
|
|
1060
|
-
class
|
|
1060
|
+
class Ce {
|
|
1061
1061
|
}
|
|
1062
|
-
|
|
1062
|
+
ae(Ce, "vertexSchema", `
|
|
1063
1063
|
precision mediump float;
|
|
1064
1064
|
|
|
1065
1065
|
attribute float a_index; // 索引
|
|
@@ -1083,7 +1083,7 @@ te(be, "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
|
-
}`),
|
|
1086
|
+
}`), ae(Ce, "fragmentSchema", `
|
|
1087
1087
|
precision mediump float;
|
|
1088
1088
|
|
|
1089
1089
|
uniform sampler2D u_factor;
|
|
@@ -1105,7 +1105,7 @@ te(be, "vertexSchema", `
|
|
|
1105
1105
|
|
|
1106
1106
|
float f = 1.0 - uv.b;
|
|
1107
1107
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
1108
|
-
}`),
|
|
1108
|
+
}`), ae(Ce, "quadVertSchema", `
|
|
1109
1109
|
precision mediump float;
|
|
1110
1110
|
|
|
1111
1111
|
attribute vec2 a_pos;
|
|
@@ -1115,7 +1115,7 @@ te(be, "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
|
-
}`),
|
|
1118
|
+
}`), ae(Ce, "screenFragmentSchema", `
|
|
1119
1119
|
precision mediump float;
|
|
1120
1120
|
|
|
1121
1121
|
uniform sampler2D u_screen;
|
|
@@ -1127,7 +1127,7 @@ te(be, "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
|
-
}`),
|
|
1130
|
+
}`), ae(Ce, "updateFragmentSchema", `
|
|
1131
1131
|
precision mediump float;
|
|
1132
1132
|
|
|
1133
1133
|
uniform sampler2D u_particles;
|
|
@@ -1208,12 +1208,12 @@ te(be, "vertexSchema", `
|
|
|
1208
1208
|
}`);
|
|
1209
1209
|
class na {
|
|
1210
1210
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1211
|
+
ae(this, "token");
|
|
1212
|
+
ae(this, "mapboxCustomer");
|
|
1213
|
+
ae(this, "i4");
|
|
1214
|
+
ae(this, "hi");
|
|
1215
|
+
ae(this, "td");
|
|
1216
|
+
ae(this, "windy");
|
|
1217
1217
|
this.token = e, this.mapboxCustomer = {
|
|
1218
1218
|
source: this.initialOnlineStyle().sources.composite,
|
|
1219
1219
|
layers: {
|
|
@@ -3210,7 +3210,7 @@ const la = {
|
|
|
3210
3210
|
[1, "rgb(91, 136, 161)"]
|
|
3211
3211
|
];
|
|
3212
3212
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3213
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3213
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
3214
3214
|
this.program = e, this.aPositionBuffer = t;
|
|
3215
3215
|
}
|
|
3216
3216
|
this.handleParticleSetup();
|
|
@@ -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
|
+
Ce.vertexSchema,
|
|
3228
|
+
Ce.fragmentSchema,
|
|
3229
|
+
Ce.quadVertSchema,
|
|
3230
|
+
Ce.screenFragmentSchema,
|
|
3231
|
+
Ce.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,10 +3261,10 @@ 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
|
-
style:
|
|
3267
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3268
3268
|
}, e[0] || (e[0] = [
|
|
3269
3269
|
o("span", null, "kts", -1),
|
|
3270
3270
|
o("span", null, "0", -1),
|
|
@@ -3538,7 +3538,7 @@ const ga = {
|
|
|
3538
3538
|
[1, "rgb(195,194,194)"]
|
|
3539
3539
|
];
|
|
3540
3540
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3541
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3541
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
3542
3542
|
this.program = e, this.aPositionBuffer = t;
|
|
3543
3543
|
}
|
|
3544
3544
|
this.handleParticleSetup();
|
|
@@ -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
|
+
Ce.vertexSchema,
|
|
3557
|
+
Ce.fragmentSchema,
|
|
3558
|
+
Ce.quadVertSchema,
|
|
3559
|
+
Ce.screenFragmentSchema,
|
|
3560
|
+
Ce.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,10 +3594,10 @@ 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
|
-
style:
|
|
3600
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3601
3601
|
}, e[0] || (e[0] = [
|
|
3602
3602
|
o("span", null, "kts", -1),
|
|
3603
3603
|
o("span", null, "0", -1),
|
|
@@ -3738,7 +3738,7 @@ const Aa = /* @__PURE__ */ U(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__ */ U(wa, [["render", va]]), La = {
|
|
3744
3744
|
name: "IdmSwell",
|
|
@@ -3896,7 +3896,7 @@ const ba = /* @__PURE__ */ U(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__ */ U(La, [["render", Ca]]), _a = {
|
|
3902
3902
|
name: "IdmPrmsl",
|
|
@@ -4034,7 +4034,7 @@ const xa = /* @__PURE__ */ U(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__ */ U(_a, [["render", Ba]]);
|
|
4040
4040
|
const Ea = {
|
|
@@ -4125,7 +4125,7 @@ const Ea = {
|
|
|
4125
4125
|
// 100%
|
|
4126
4126
|
];
|
|
4127
4127
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4128
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4128
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
4129
4129
|
this.program = e, this.aPositionBuffer = t;
|
|
4130
4130
|
}
|
|
4131
4131
|
},
|
|
@@ -4141,10 +4141,10 @@ 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
|
-
style:
|
|
4147
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4148
4148
|
}, e[0] || (e[0] = [
|
|
4149
4149
|
o("span", null, null, -1),
|
|
4150
4150
|
o("span", { style: { display: "inline-block", position: "relative", left: "-10px" } }, "%", -1),
|
|
@@ -4241,7 +4241,7 @@ const Pa = {
|
|
|
4241
4241
|
// 100%
|
|
4242
4242
|
];
|
|
4243
4243
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4244
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4244
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
4245
4245
|
this.program = e, this.aPositionBuffer = t;
|
|
4246
4246
|
}
|
|
4247
4247
|
},
|
|
@@ -4257,10 +4257,10 @@ 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
|
-
style:
|
|
4263
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4264
4264
|
}, e[0] || (e[0] = [
|
|
4265
4265
|
o("span", null, "%", -1),
|
|
4266
4266
|
o("span", null, "20", -1),
|
|
@@ -4359,7 +4359,7 @@ const Qa = {
|
|
|
4359
4359
|
// 4m
|
|
4360
4360
|
];
|
|
4361
4361
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4362
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4362
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
4363
4363
|
this.program = e, this.aPositionBuffer = t;
|
|
4364
4364
|
}
|
|
4365
4365
|
},
|
|
@@ -4375,10 +4375,10 @@ 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
|
-
style:
|
|
4381
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4382
4382
|
}, e[0] || (e[0] = [
|
|
4383
4383
|
o("span", null, "m", -1),
|
|
4384
4384
|
o("span", null, "0", -1),
|
|
@@ -4708,19 +4708,19 @@ 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
|
|
4712
|
-
return ((
|
|
4713
|
-
}),
|
|
4714
|
-
var
|
|
4715
|
-
return ((
|
|
4711
|
+
var p, v, C;
|
|
4712
|
+
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((v = h.alias) == null ? void 0 : v.toLowerCase()) === l || ((C = h.name) == null ? void 0 : C.toLowerCase()) === l;
|
|
4713
|
+
}), d = Je.find((h) => {
|
|
4714
|
+
var p, v, C;
|
|
4715
|
+
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((v = h.alias) == null ? void 0 : v.toLowerCase()) === l || ((C = h.name) == null ? void 0 : C.toLowerCase()) === l;
|
|
4716
4716
|
});
|
|
4717
4717
|
c = c || Xe.find((h) => {
|
|
4718
|
-
var
|
|
4719
|
-
return ((
|
|
4720
|
-
}),
|
|
4721
|
-
var
|
|
4722
|
-
return ((
|
|
4723
|
-
}), c = c || Xe[0],
|
|
4718
|
+
var p, v;
|
|
4719
|
+
return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((v = d == null ? void 0 : d.alias) == null ? void 0 : v.toLowerCase());
|
|
4720
|
+
}), d = d || Je.find((h) => {
|
|
4721
|
+
var p, v;
|
|
4722
|
+
return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((v = c == null ? void 0 : c.alias) == null ? void 0 : v.toLowerCase());
|
|
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 {
|
|
4726
4726
|
weatherModels: s.join(","),
|
|
@@ -4737,36 +4737,36 @@ class ht {
|
|
|
4737
4737
|
}), i;
|
|
4738
4738
|
}
|
|
4739
4739
|
static pickHourly(e, t) {
|
|
4740
|
-
var r, i, s, n, l, c,
|
|
4741
|
-
const
|
|
4742
|
-
if (
|
|
4743
|
-
const P =
|
|
4740
|
+
var r, i, s, n, l, c, d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe, be, _e, I, ze, Le, Pe, Ee, He, ke;
|
|
4741
|
+
const se = typeof t == "string" ? ee(t) : t, ce = e == null ? void 0 : e.weather, Q = e == null ? void 0 : e.marine, Be = ee((i = (r = ce == null ? void 0 : ce[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = Be.clone().add((l = (n = (s = ce == null ? void 0 : ce[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), q = Be.clone().add((h = (d = (c = ce == null ? void 0 : ce[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Me = [];
|
|
4742
|
+
if (se.isBetween(K, q, "millisecond", "[]")) {
|
|
4743
|
+
const P = se.utc().diff(K, "h", !1);
|
|
4744
4744
|
let de, De;
|
|
4745
4745
|
if (ce) {
|
|
4746
4746
|
let Se = 0, Te = 0;
|
|
4747
4747
|
for (const z of ce) {
|
|
4748
4748
|
const O = z == null ? void 0 : z.hourly;
|
|
4749
4749
|
for (let Ne = P - (P - 1) % 3; Ne <= P; Ne++)
|
|
4750
|
-
Se += (
|
|
4750
|
+
Se += (p = O == null ? void 0 : O.precipitation) == null ? void 0 : p.at(Ne);
|
|
4751
4751
|
for (let Ne = P - (P - 1) % 6; Ne <= P; Ne++)
|
|
4752
|
-
Te += (
|
|
4752
|
+
Te += (v = O == null ? void 0 : O.precipitation) == null ? void 0 : v.at(Ne);
|
|
4753
4753
|
de = {
|
|
4754
|
-
temp: (
|
|
4755
|
-
apparentTemp: (
|
|
4756
|
-
rh: (
|
|
4754
|
+
temp: (C = O == null ? void 0 : O.temperature_2m) == null ? void 0 : C.at(P),
|
|
4755
|
+
apparentTemp: (_ = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : _.at(P),
|
|
4756
|
+
rh: (f = O == null ? void 0 : O.relative_humidity_2m) == null ? void 0 : f.at(P),
|
|
4757
4757
|
dp: (k = O == null ? void 0 : O.dew_point_2m) == null ? void 0 : k.at(P),
|
|
4758
4758
|
precip: {
|
|
4759
|
-
probability: (
|
|
4760
|
-
sum: (
|
|
4759
|
+
probability: (B = O == null ? void 0 : O.precipitation_probability) == null ? void 0 : B.at(P),
|
|
4760
|
+
sum: (A = O == null ? void 0 : O.precipitation) == null ? void 0 : A.at(P),
|
|
4761
4761
|
sum3Hours: Math.round(Se * 100) / 100,
|
|
4762
4762
|
sum6Hours: Math.round(Te * 100) / 100
|
|
4763
4763
|
},
|
|
4764
|
-
pmsl: (
|
|
4765
|
-
psurf: (
|
|
4766
|
-
code: (
|
|
4764
|
+
pmsl: (w = O == null ? void 0 : O.pressure_msl) == null ? void 0 : w.at(P),
|
|
4765
|
+
psurf: (m = O == null ? void 0 : O.surface_pressure) == null ? void 0 : m.at(P),
|
|
4766
|
+
code: (L = O == null ? void 0 : O.weather_code) == null ? void 0 : L.at(P),
|
|
4767
4767
|
visibility: this.m2nm((y = O == null ? void 0 : O.visibility) == null ? void 0 : y.at(P)),
|
|
4768
4768
|
wind: {
|
|
4769
|
-
speed: (
|
|
4769
|
+
speed: (b = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : b.at(P),
|
|
4770
4770
|
kts: (T = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : T.at(P),
|
|
4771
4771
|
degree: (D = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : D.at(P),
|
|
4772
4772
|
bearing: ((F = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : F.at(P)) !== null ? (((N = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : N.at(P)) + 180) % 360 : null,
|
|
@@ -4791,27 +4791,27 @@ class ht {
|
|
|
4791
4791
|
sig: {
|
|
4792
4792
|
height: (W = z == null ? void 0 : z.wave_height) == null ? void 0 : W.at(P),
|
|
4793
4793
|
degree: (me = z == null ? void 0 : z.wave_direction) == null ? void 0 : me.at(P),
|
|
4794
|
-
bearing: ((
|
|
4795
|
-
period: (
|
|
4794
|
+
bearing: ((re = z == null ? void 0 : z.wave_direction) == null ? void 0 : re.at(P)) !== null ? (((ue = z == null ? void 0 : z.wave_direction) == null ? void 0 : ue.at(P)) + 180) % 360 : null,
|
|
4795
|
+
period: (we = z == null ? void 0 : z.wave_period) == null ? void 0 : we.at(P)
|
|
4796
4796
|
},
|
|
4797
4797
|
swell: {
|
|
4798
4798
|
height: (ge = z == null ? void 0 : z.swell_wave_height) == null ? void 0 : ge.at(P),
|
|
4799
|
-
degree: (
|
|
4800
|
-
bearing: ((
|
|
4801
|
-
period: (
|
|
4802
|
-
peakPeriod: (
|
|
4799
|
+
degree: (ve = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : ve.at(P),
|
|
4800
|
+
bearing: ((ye = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : ye.at(P)) !== null ? (((Y = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : Y.at(P)) + 180) % 360 : null,
|
|
4801
|
+
period: (te = z == null ? void 0 : z.swell_wave_period) == null ? void 0 : te.at(P),
|
|
4802
|
+
peakPeriod: (fe = z == null ? void 0 : z.swell_wave_peak_period) == null ? void 0 : fe.at(P)
|
|
4803
4803
|
},
|
|
4804
4804
|
wd: {
|
|
4805
|
-
height: (
|
|
4806
|
-
degree: (
|
|
4807
|
-
bearing: ((xe = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : xe.at(P)) !== null ? (((
|
|
4805
|
+
height: (pe = z == null ? void 0 : z.wind_wave_height) == null ? void 0 : pe.at(P),
|
|
4806
|
+
degree: (Ae = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : Ae.at(P),
|
|
4807
|
+
bearing: ((xe = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : xe.at(P)) !== null ? (((be = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : be.at(P)) + 180) % 360 : null,
|
|
4808
4808
|
period: (_e = z == null ? void 0 : z.wind_wave_period) == null ? void 0 : _e.at(P),
|
|
4809
|
-
peakPeriod: (
|
|
4809
|
+
peakPeriod: (I = z == null ? void 0 : z.wind_wave_peak_period) == null ? void 0 : I.at(P)
|
|
4810
4810
|
}
|
|
4811
4811
|
},
|
|
4812
4812
|
current: {
|
|
4813
4813
|
speed: (ze = z == null ? void 0 : z.ocean_current_velocity) == null ? void 0 : ze.at(P),
|
|
4814
|
-
kts: (
|
|
4814
|
+
kts: (Le = z == null ? void 0 : z.ocean_current_velocity) == null ? void 0 : Le.at(P),
|
|
4815
4815
|
degree: (Pe = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : Pe.at(P),
|
|
4816
4816
|
bearing: ((Ee = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : Ee.at(P)) ?? null
|
|
4817
4817
|
},
|
|
@@ -4824,7 +4824,7 @@ class ht {
|
|
|
4824
4824
|
return Me;
|
|
4825
4825
|
}
|
|
4826
4826
|
static toLegacy(e) {
|
|
4827
|
-
var t, r, i, s, n, l, c,
|
|
4827
|
+
var t, r, i, s, n, l, c, d, h, p;
|
|
4828
4828
|
return {
|
|
4829
4829
|
wind: (t = e == null ? void 0 : e.weather) == null ? void 0 : t.wind,
|
|
4830
4830
|
visibility: (r = e == null ? void 0 : e.weather) == null ? void 0 : r.visibility,
|
|
@@ -4834,9 +4834,9 @@ class ht {
|
|
|
4834
4834
|
kts: (l = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.wind) == null ? void 0 : l.gusts
|
|
4835
4835
|
},
|
|
4836
4836
|
precip: (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip,
|
|
4837
|
-
code: (
|
|
4837
|
+
code: (d = e == null ? void 0 : e.weather) == null ? void 0 : d.code,
|
|
4838
4838
|
name: (h = e == null ? void 0 : e.weather) == null ? void 0 : h.name,
|
|
4839
|
-
url: (
|
|
4839
|
+
url: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.url,
|
|
4840
4840
|
wave: e == null ? void 0 : e.wave,
|
|
4841
4841
|
current: e == null ? void 0 : e.current,
|
|
4842
4842
|
sst: e == null ? void 0 : e.sst,
|
|
@@ -4846,37 +4846,37 @@ class ht {
|
|
|
4846
4846
|
};
|
|
4847
4847
|
}
|
|
4848
4848
|
static pickDaily(e, t) {
|
|
4849
|
-
var r, i, s, n, l, c,
|
|
4850
|
-
const ze = typeof t == "string" ? ee(t) : t,
|
|
4849
|
+
var r, i, s, n, l, c, d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe, be, _e, I;
|
|
4850
|
+
const ze = typeof t == "string" ? ee(t) : t, Le = e == null ? void 0 : e.weather, Pe = e == null ? void 0 : e.marine, Ee = ee((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)), He = ee((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)), ke = [];
|
|
4851
4851
|
if (ze.isBetween(Ee, He, "millisecond", "[]")) {
|
|
4852
|
-
let
|
|
4852
|
+
let se, ce;
|
|
4853
4853
|
const Q = ze.diff(Ee, "d", !1);
|
|
4854
|
-
if (
|
|
4855
|
-
for (const Be of
|
|
4854
|
+
if (Le)
|
|
4855
|
+
for (const Be of Le) {
|
|
4856
4856
|
const K = Be.daily;
|
|
4857
|
-
|
|
4858
|
-
code: (
|
|
4857
|
+
se = {
|
|
4858
|
+
code: (d = K.weather_code) == null ? void 0 : d.at(Q),
|
|
4859
4859
|
temp: {
|
|
4860
4860
|
max: (h = K.temperature_2m_max) == null ? void 0 : h.at(Q),
|
|
4861
|
-
min: (
|
|
4862
|
-
mean: (
|
|
4861
|
+
min: (p = K.temperature_2m_min) == null ? void 0 : p.at(Q),
|
|
4862
|
+
mean: (v = K.temperature_2m_mean) == null ? void 0 : v.at(Q)
|
|
4863
4863
|
},
|
|
4864
4864
|
apparentTemp: {
|
|
4865
|
-
max: (
|
|
4866
|
-
min: (
|
|
4865
|
+
max: (C = K.apparent_temperature_max) == null ? void 0 : C.at(Q),
|
|
4866
|
+
min: (_ = K.apparent_temperature_min) == null ? void 0 : _.at(Q)
|
|
4867
4867
|
},
|
|
4868
4868
|
precip: {
|
|
4869
|
-
sum: (
|
|
4869
|
+
sum: (f = K.precipitation_sum) == null ? void 0 : f.at(Q),
|
|
4870
4870
|
rainSum: (k = K.rain_sum) == null ? void 0 : k.at(Q),
|
|
4871
|
-
snowfallSum: (
|
|
4872
|
-
showersSum: (
|
|
4873
|
-
hours: (
|
|
4874
|
-
probability: (
|
|
4871
|
+
snowfallSum: (B = K.snowfall_sum) == null ? void 0 : B.at(Q),
|
|
4872
|
+
showersSum: (A = K.showers_sum) == null ? void 0 : A.at(Q),
|
|
4873
|
+
hours: (w = K.precipitation_hours) == null ? void 0 : w.at(Q),
|
|
4874
|
+
probability: (m = K.precipitation_probability_max) == null ? void 0 : m.at(Q)
|
|
4875
4875
|
},
|
|
4876
4876
|
rh: {
|
|
4877
|
-
max: (
|
|
4877
|
+
max: (L = K.relative_humidity_2m_max) == null ? void 0 : L.at(Q),
|
|
4878
4878
|
min: (y = K.relative_humidity_2m_min) == null ? void 0 : y.at(Q),
|
|
4879
|
-
mean: (
|
|
4879
|
+
mean: (b = K.relative_humidity_2m_mean) == null ? void 0 : b.at(Q)
|
|
4880
4880
|
},
|
|
4881
4881
|
wind: {
|
|
4882
4882
|
speed: (T = K.wind_speed_10m_max) == null ? void 0 : T.at(Q),
|
|
@@ -4886,11 +4886,11 @@ class ht {
|
|
|
4886
4886
|
bearing: ((j = K.wind_direction_10m_dominant) == null ? void 0 : j.at(Q)) !== null ? (((G = K.wind_direction_10m_dominant) == null ? void 0 : G.at(Q)) + 180) % 360 : null
|
|
4887
4887
|
}
|
|
4888
4888
|
};
|
|
4889
|
-
const { name: q, url: Me, bg: P } = this.parseWeatherCode(
|
|
4890
|
-
|
|
4889
|
+
const { name: q, url: Me, bg: P } = this.parseWeatherCode(se.code, !0);
|
|
4890
|
+
se.name = q, se.url = Me, se.bg = P, se.wind.scale = this.beaufort(this.kts2ms(se.wind.kts)), se.wind.direction = this.degree2Direction(se.wind.degree), ke.push({
|
|
4891
4891
|
utc: Ee.add(Q, "d").utc().format(),
|
|
4892
4892
|
model: Be.model,
|
|
4893
|
-
weather: { ...
|
|
4893
|
+
weather: { ...se }
|
|
4894
4894
|
});
|
|
4895
4895
|
}
|
|
4896
4896
|
if (Pe) {
|
|
@@ -4902,26 +4902,26 @@ class ht {
|
|
|
4902
4902
|
sig: {
|
|
4903
4903
|
height: (W = q.wave_height_max) == null ? void 0 : W.at(Q),
|
|
4904
4904
|
degree: (me = q.wave_direction_dominant) == null ? void 0 : me.at(Q),
|
|
4905
|
-
period: (
|
|
4906
|
-
bearing: ((ue = q.wave_direction_dominant) == null ? void 0 : ue.at(Q)) !== null ? (((
|
|
4905
|
+
period: (re = q.wave_period_max) == null ? void 0 : re.at(Q),
|
|
4906
|
+
bearing: ((ue = q.wave_direction_dominant) == null ? void 0 : ue.at(Q)) !== null ? (((we = q.wave_direction_dominant) == null ? void 0 : we.at(Q)) + 180) % 360 : null
|
|
4907
4907
|
},
|
|
4908
4908
|
swell: {
|
|
4909
4909
|
height: (ge = q.swell_wave_height_max) == null ? void 0 : ge.at(Q),
|
|
4910
|
-
degree: (
|
|
4911
|
-
period: (
|
|
4912
|
-
peakPeriod: (
|
|
4910
|
+
degree: (ve = q.swell_wave_direction_dominant) == null ? void 0 : ve.at(Q),
|
|
4911
|
+
period: (ye = q.swell_wave_period_max) == null ? void 0 : ye.at(Q),
|
|
4912
|
+
peakPeriod: (Y = q.swell_wave_peak_period_max) == null ? void 0 : Y.at(Q),
|
|
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: ((te = q.swell_wave_direction_dominant) == null ? void 0 : te.at(Q)) !== null ? ((fe = q.swell_wave_direction_dominant) == null ? void 0 : fe.at(Q)) % 360 : null
|
|
4915
4915
|
},
|
|
4916
4916
|
wd: {
|
|
4917
|
-
height: (
|
|
4918
|
-
degree: (
|
|
4917
|
+
height: (pe = q.wind_wave_height_max) == null ? void 0 : pe.at(Q),
|
|
4918
|
+
degree: (Ae = q.wind_wave_direction_dominant) == null ? void 0 : Ae.at(Q),
|
|
4919
4919
|
period: (xe = q.wind_wave_period_max) == null ? void 0 : xe.at(Q),
|
|
4920
|
-
peakPeriod: (
|
|
4921
|
-
bearing: ((_e = q.wind_wave_direction_dominant) == null ? void 0 : _e.at(Q)) !== null ? (((
|
|
4920
|
+
peakPeriod: (be = q.wind_wave_peak_period_max) == null ? void 0 : be.at(Q),
|
|
4921
|
+
bearing: ((_e = q.wind_wave_direction_dominant) == null ? void 0 : _e.at(Q)) !== null ? (((I = q.wind_wave_direction_dominant) == null ? void 0 : I.at(Q)) + 180) % 360 : null
|
|
4922
4922
|
}
|
|
4923
4923
|
}
|
|
4924
|
-
}, ce.wave = this.parseWave(ce.wave,
|
|
4924
|
+
}, ce.wave = this.parseWave(ce.wave, se == null ? void 0 : se.wind), Object.assign(ke[Be], ce), Be++;
|
|
4925
4925
|
}
|
|
4926
4926
|
}
|
|
4927
4927
|
}
|
|
@@ -4932,14 +4932,22 @@ class ht {
|
|
|
4932
4932
|
const r = Math.sqrt(Math.pow(e.swell.height || 0, 2) + Math.pow(e.wd.height || 0, 2));
|
|
4933
4933
|
e.sig.height = Math.round(r * 100) / 100;
|
|
4934
4934
|
}
|
|
4935
|
-
if (e.swell.height === 0)
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4935
|
+
if (e.swell.height === 0)
|
|
4936
|
+
if (e.sig.height > e.wd.height) {
|
|
4937
|
+
const r = Math.sqrt(Math.abs(Math.pow(e.sig.height || 0, 2) - Math.pow(e.wd.height || 0, 2)));
|
|
4938
|
+
e.swell.height = Math.round(r * 100) / 100;
|
|
4939
|
+
} else {
|
|
4940
|
+
const r = Math.round(0.12 * this.kts2ms((t == null ? void 0 : t.kts) || 0) * 100) / 100, i = r > 1 ? r / 10 : r > 0.5 ? r / 5 : r > 0.3 ? r / 2 : r;
|
|
4941
|
+
e.swell.height = Math.round(i * 100) / 100;
|
|
4942
|
+
}
|
|
4943
|
+
if (e.wd.height === 0 || e.wd.height > e.sig.height)
|
|
4944
|
+
if (e.sig.height > e.swell.height) {
|
|
4945
|
+
const r = Math.sqrt(Math.abs(Math.pow(e.sig.height || 0, 2) - Math.pow(e.swell.height || 0, 2))), i = 0.24 * this.kts2ms((t == null ? void 0 : t.kts) || 0);
|
|
4946
|
+
e.wd.height = Math.round(Math.min(r, i) * 100) / 100;
|
|
4947
|
+
} else {
|
|
4948
|
+
const r = 0.24 * this.kts2ms((t == null ? void 0 : t.kts) || 0);
|
|
4949
|
+
e.wd.height = Math.round(r * 100) / 100;
|
|
4950
|
+
}
|
|
4943
4951
|
return e.swell.height > e.sig.height && (e.swell.height = Math.round(e.sig.height * 0.76 * 100) / 100), e.sig.period || (e.sig.period = Math.round(5 * Math.sqrt(e.sig.height))), e.swell.period || (e.swell.period = Math.round(5 * Math.sqrt(e.swell.height))), e.wd.period || (e.wd.period = Math.round(5 * Math.sqrt(e.wd.height))), e;
|
|
4944
4952
|
}
|
|
4945
4953
|
static parseWeatherCode(e, t) {
|
|
@@ -5307,7 +5315,7 @@ class ht {
|
|
|
5307
5315
|
*/
|
|
5308
5316
|
static beaufort(e) {
|
|
5309
5317
|
let t = 0;
|
|
5310
|
-
return isNaN(e) || (e = Math.round(e * 10) / 10, e <= 0.2 ? t = 0 : e <= 1.5 ? t = 1 : e <= 3.3 ? t = 2 : e <= 5.4 ? t = 3 : e <= 7.9 ? t = 4 : e <= 10.7 ? t = 5 : e <= 13.8 ? t = 6 : e <= 17.1 ? t = 7 : e <= 20.7 ? t = 8 : e <= 22.4 ? t = 9 : e <= 28.4 ? t = 10 : e <= 32.6 ? t = 11 : e >
|
|
5318
|
+
return isNaN(e) || (e = Math.round(e * 10) / 10, e <= 0.2 ? t = 0 : e <= 1.5 ? t = 1 : e <= 3.3 ? t = 2 : e <= 5.4 ? t = 3 : e <= 7.9 ? t = 4 : e <= 10.7 ? t = 5 : e <= 13.8 ? t = 6 : e <= 17.1 ? t = 7 : e <= 20.7 ? t = 8 : e <= 22.4 ? t = 9 : e <= 28.4 ? t = 10 : e <= 32.6 ? t = 11 : e <= 36.9 ? t = 12 : e <= 41.4 ? t = 13 : e <= 46.1 ? t = 14 : e <= 50.9 ? t = 15 : e <= 55.9 ? t = 16 : e <= 61.2 ? t = 17 : e > 61.2 && (t = 18)), t;
|
|
5311
5319
|
}
|
|
5312
5320
|
/**
|
|
5313
5321
|
* 计算海浪等级
|
|
@@ -5336,6 +5344,10 @@ const Oa = {
|
|
|
5336
5344
|
},
|
|
5337
5345
|
permission: {
|
|
5338
5346
|
type: Number
|
|
5347
|
+
},
|
|
5348
|
+
fromTropicalReport: {
|
|
5349
|
+
type: Boolean,
|
|
5350
|
+
default: !1
|
|
5339
5351
|
}
|
|
5340
5352
|
},
|
|
5341
5353
|
emits: ["tropical", "tropicalProbability", "tropicalNotification"],
|
|
@@ -5362,7 +5374,8 @@ const Oa = {
|
|
|
5362
5374
|
empty: S.featureCollection([]),
|
|
5363
5375
|
circleSource: "circle-source",
|
|
5364
5376
|
circleSourceData: S.featureCollection([]),
|
|
5365
|
-
circleLayer: "tropical-circle-layer"
|
|
5377
|
+
circleLayer: "tropical-circle-layer",
|
|
5378
|
+
labelMarkers: []
|
|
5366
5379
|
};
|
|
5367
5380
|
},
|
|
5368
5381
|
computed: {
|
|
@@ -5454,16 +5467,16 @@ const Oa = {
|
|
|
5454
5467
|
));
|
|
5455
5468
|
},
|
|
5456
5469
|
handleRender() {
|
|
5457
|
-
var a, e, t, r, i, s, n, l, c,
|
|
5470
|
+
var a, e, t, r, i, s, n, l, c, d, h;
|
|
5458
5471
|
if (!this.map)
|
|
5459
5472
|
setTimeout(() => {
|
|
5460
5473
|
this.handleRender();
|
|
5461
5474
|
}, 500);
|
|
5462
5475
|
else {
|
|
5463
5476
|
if (this.tropicals) {
|
|
5464
|
-
const
|
|
5465
|
-
let
|
|
5466
|
-
(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),
|
|
5477
|
+
const v = (/* @__PURE__ */ new Date()).valueOf();
|
|
5478
|
+
let C = 0, _ = 0;
|
|
5479
|
+
(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), _ = (/* @__PURE__ */ new Date()).valueOf() - (v + C), console.log("[tropicals] update elapsed: ", _, ", total: ", C += _)) : (this.map.addSource(this.source, {
|
|
5467
5480
|
type: "geojson",
|
|
5468
5481
|
data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
|
|
5469
5482
|
}), this.map.addLayer({
|
|
@@ -5560,9 +5573,9 @@ const Oa = {
|
|
|
5560
5573
|
],
|
|
5561
5574
|
"text-halo-width": 4
|
|
5562
5575
|
}
|
|
5563
|
-
}),
|
|
5576
|
+
}), _ = (/* @__PURE__ */ new Date()).valueOf() - (v + C), console.log("[tropical] add elapsed: ", _, ", total: ", C += _)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), _ = (/* @__PURE__ */ new Date()).valueOf() - (v + C), console.log("[tropical] update elapsed: ", _, ", total: ", C += _)) : (this.map.addSource(this.clusterSource, {
|
|
5564
5577
|
type: "geojson",
|
|
5565
|
-
data: (c = this.tropicals) != null && c.active ? (
|
|
5578
|
+
data: (c = this.tropicals) != null && c.active ? (d = this.tropicals) == null ? void 0 : d.data : this.empty
|
|
5566
5579
|
// cluster: true,
|
|
5567
5580
|
// clusterRadius: 10, // 聚合半径
|
|
5568
5581
|
}), this.map.addLayer({
|
|
@@ -5600,7 +5613,21 @@ const Oa = {
|
|
|
5600
5613
|
"#fff"
|
|
5601
5614
|
]
|
|
5602
5615
|
}
|
|
5603
|
-
}), this.
|
|
5616
|
+
}), this.fromTropicalReport ? (h = this.tropicals.data.features) == null || h.filter((f) => f.geometry.type === "Point" && f.properties.type === "forecast").forEach((f) => {
|
|
5617
|
+
var B, A, w, m, L;
|
|
5618
|
+
const k = document.createElement("div");
|
|
5619
|
+
k.style.cssText = "font-size: 12px; color: #000; background-color: rgba(255, 255, 255, 0.8); border: 2px solid rgba(0, 0, 0, 0.3); padding: 4px 8px; border-radius: 6px;", k.innerHTML = `
|
|
5620
|
+
<div style="">
|
|
5621
|
+
<span>${f.properties.format}</span>
|
|
5622
|
+
<span> [${(B = f.properties.model) == null ? void 0 : B.toUpperCase()}]</span>
|
|
5623
|
+
</div>
|
|
5624
|
+
<div>
|
|
5625
|
+
<span>${((m = (w = (A = f.properties) == null ? void 0 : A.movement) == null ? void 0 : w.kts) == null ? void 0 : m.toFixed(0)) || "-"} bft</span> /
|
|
5626
|
+
<span>${((L = f.properties) == null ? void 0 : L.pressure) || "-"} kPa</span>
|
|
5627
|
+
</div>
|
|
5628
|
+
<div style="position: absolute;width: 24px;margin-left: 96px;margin-top: 12px;height: 2px;transform: rotate(45deg);background-color: rgba(0, 0, 0, 0.3);"></div>
|
|
5629
|
+
`, this.labelMarkers.push(new Re.Marker(k).setLngLat(f.geometry.coordinates).setOffset([-60, -40]).addTo(this.map));
|
|
5630
|
+
}) : this.map.addLayer({
|
|
5604
5631
|
id: this.pointLabelLayer,
|
|
5605
5632
|
type: "symbol",
|
|
5606
5633
|
source: this.clusterSource,
|
|
@@ -5677,26 +5704,26 @@ const Oa = {
|
|
|
5677
5704
|
"text-halo-color": "#0033ff",
|
|
5678
5705
|
"text-halo-width": 4
|
|
5679
5706
|
}
|
|
5680
|
-
}),
|
|
5707
|
+
}), _ = (/* @__PURE__ */ new Date()).valueOf() - (v + C), console.log("[tropical] add elapsed: ", _, ", total: ", C += _));
|
|
5681
5708
|
}
|
|
5682
5709
|
this.handleDrawCircle();
|
|
5683
|
-
const
|
|
5684
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
5710
|
+
const p = ct.interpolate(this.tropicals, 1);
|
|
5711
|
+
this.interpolateData = JSON.parse(JSON.stringify(p)), this.handleDateChange();
|
|
5685
5712
|
}
|
|
5686
5713
|
},
|
|
5687
5714
|
handleClear() {
|
|
5688
5715
|
var a;
|
|
5689
|
-
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));
|
|
5716
|
+
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 = []);
|
|
5690
5717
|
},
|
|
5691
5718
|
handleDateChange() {
|
|
5692
|
-
var a, e, t, r, i, s, n, l, c,
|
|
5693
|
-
if ((a = this.interpolateMarkers) == null || a.forEach((
|
|
5694
|
-
const
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(
|
|
5719
|
+
var a, e, t, r, i, s, n, l, c, d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T, D, F, N, j, G, W, me;
|
|
5720
|
+
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) {
|
|
5721
|
+
const re = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ue = ee.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), we = re.isBefore(ue) && ue.diff(re, "h") < 2 ? ue.format() : re.format(), ge = this.interpolateData.filter((Y) => Y.properties.date === we && !Y.properties.disabled), ve = this.handleComputePolygons(ge), ye = S.featureCollection([...ge]);
|
|
5722
|
+
ve.forEach((Y) => {
|
|
5723
|
+
ye.features.push(Y);
|
|
5724
|
+
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(ye) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
5698
5725
|
type: "geojson",
|
|
5699
|
-
data:
|
|
5726
|
+
data: ye
|
|
5700
5727
|
}), (s = this.map) == null || s.addLayer({
|
|
5701
5728
|
id: this.interpolateLineLayer,
|
|
5702
5729
|
type: "line",
|
|
@@ -5708,17 +5735,17 @@ const Oa = {
|
|
|
5708
5735
|
"line-width": 1
|
|
5709
5736
|
}
|
|
5710
5737
|
})), this.interpolateMarkers = [];
|
|
5711
|
-
for (const Y of
|
|
5738
|
+
for (const Y of ge)
|
|
5712
5739
|
if (!Y.properties.disabled) {
|
|
5713
|
-
let
|
|
5714
|
-
((l = (n = Y.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((
|
|
5715
|
-
const
|
|
5740
|
+
let te = "#f44336";
|
|
5741
|
+
((l = (n = Y.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = Y.properties) == null ? void 0 : c.wind) != null && d.kts) ? te = "#03f869" : ((p = (h = Y.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((C = (v = Y.properties) == null ? void 0 : v.wind) == null ? void 0 : C.kts) < 47 ? te = "#f2f202" : ((f = (_ = Y.properties) == null ? void 0 : _.wind) == null ? void 0 : f.kts) >= 47 && ((B = (k = Y.properties) == null ? void 0 : k.wind) == null ? void 0 : B.kts) < 63 ? te = "#ff9100" : ((w = (A = Y.properties) == null ? void 0 : A.wind) == null ? void 0 : w.kts) >= 63 && ((L = (m = Y.properties) == null ? void 0 : m.wind) == null ? void 0 : L.kts) < 79 ? te = "#f44336" : ((b = (y = Y.properties) == null ? void 0 : y.wind) == null ? void 0 : b.kts) >= 79 && ((D = (T = Y.properties) == null ? void 0 : T.wind) == null ? void 0 : D.kts) < 94 ? te = "#f903d0" : ((N = (F = Y.properties) == null ? void 0 : F.wind) == null ? void 0 : N.kts) >= 94 ? te = "#8702f9" : te = "#f44336";
|
|
5742
|
+
const fe = `<svg t="1719918955501"
|
|
5716
5743
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5717
5744
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
5718
5745
|
<path
|
|
5719
5746
|
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"
|
|
5720
|
-
fill="${
|
|
5721
|
-
<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="${
|
|
5747
|
+
fill="${te}" p-id="18383"></path>
|
|
5748
|
+
<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="${te}"
|
|
5722
5749
|
p-id="18384"></path>
|
|
5723
5750
|
<path
|
|
5724
5751
|
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"
|
|
@@ -5727,43 +5754,43 @@ const Oa = {
|
|
|
5727
5754
|
d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
|
|
5728
5755
|
fill="#ffffff" p-id="18386"></path>
|
|
5729
5756
|
</svg>`, pe = document.createElement("div");
|
|
5730
|
-
pe.className = "hurricane-hourly-marker", pe.innerHTML = `<div class="${Y.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${
|
|
5731
|
-
const
|
|
5732
|
-
this.interpolateMarkers.push(
|
|
5757
|
+
pe.className = "hurricane-hourly-marker", pe.innerHTML = `<div class="${Y.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${fe}</div>`;
|
|
5758
|
+
const Ae = new Re.Marker(pe).setLngLat(Y.geometry.coordinates).addTo(this.map);
|
|
5759
|
+
this.interpolateMarkers.push(Ae), (G = (j = this.map) == null ? void 0 : j.getSource(this.circleSource)) == null || G.setData(this.circleSourceData);
|
|
5733
5760
|
}
|
|
5734
5761
|
} else
|
|
5735
5762
|
(W = this.map) != null && W.getSource(this.interpolateSource) && ((me = this.map) == null || me.getSource(this.interpolateSource).setData(this.empty));
|
|
5736
5763
|
},
|
|
5737
5764
|
handleClick(a) {
|
|
5738
|
-
var s, n, l, c,
|
|
5765
|
+
var s, n, l, c, d, h, p, v;
|
|
5739
5766
|
const e = a.features[0], t = (n = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : n.features.filter(
|
|
5740
|
-
(
|
|
5741
|
-
var
|
|
5742
|
-
return
|
|
5767
|
+
(C) => {
|
|
5768
|
+
var _;
|
|
5769
|
+
return C.geometry.type === "LineString" && C.properties.type === "forecast" && C.properties.name === ((_ = e == null ? void 0 : e.properties) == null ? void 0 : _.name);
|
|
5743
5770
|
}
|
|
5744
5771
|
), r = (c = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : c.features.filter(
|
|
5745
|
-
(
|
|
5746
|
-
var
|
|
5747
|
-
return
|
|
5772
|
+
(C) => {
|
|
5773
|
+
var _;
|
|
5774
|
+
return C.geometry.type === "LineString" && C.properties.type === "history" && C.properties.name === ((_ = e == null ? void 0 : e.properties) == null ? void 0 : _.name);
|
|
5748
5775
|
}
|
|
5749
5776
|
);
|
|
5750
5777
|
this.activeTropicals = {
|
|
5751
|
-
name: (
|
|
5752
|
-
forecasts: t.map((
|
|
5778
|
+
name: (d = e == null ? void 0 : e.properties) == null ? void 0 : d.name,
|
|
5779
|
+
forecasts: t.map((C) => C.properties),
|
|
5753
5780
|
history: (h = r[0]) == null ? void 0 : h.properties,
|
|
5754
|
-
showCircle: (
|
|
5781
|
+
showCircle: (v = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : v.showCircle
|
|
5755
5782
|
}, this.showTropicals = !0;
|
|
5756
5783
|
const i = document.getElementById("idm-tropical-gl3");
|
|
5757
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new
|
|
5784
|
+
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);
|
|
5758
5785
|
},
|
|
5759
5786
|
handleForecastToggle(a) {
|
|
5760
5787
|
var r, i, s, n, l, c;
|
|
5761
5788
|
a.disabled = !a.disabled;
|
|
5762
5789
|
const e = `${a.name}-${a.model}`, t = (i = (r = this.map) == null ? void 0 : r.getSource(this.source)._data) == null ? void 0 : i.features;
|
|
5763
|
-
t.forEach((
|
|
5764
|
-
|
|
5765
|
-
}), this.interpolateData.forEach((
|
|
5766
|
-
|
|
5790
|
+
t.forEach((d) => {
|
|
5791
|
+
d.properties.category === e && (d.properties.disabled = a.disabled);
|
|
5792
|
+
}), this.interpolateData.forEach((d) => {
|
|
5793
|
+
d.properties.category === e && (d.properties.disabled = a.disabled);
|
|
5767
5794
|
}), (n = (s = this.map) == null ? void 0 : s.getSource(this.source)) == null || n.setData(S.featureCollection(t)), (c = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || c.setData(S.featureCollection(t)), this.handleDateChange();
|
|
5768
5795
|
},
|
|
5769
5796
|
handleStrikeProbability(a) {
|
|
@@ -5865,49 +5892,49 @@ const Oa = {
|
|
|
5865
5892
|
style: { "justify-content": "flex-start" }
|
|
5866
5893
|
}, ai = { class: "forecast-models" }, ii = ["onClick"], ri = { class: "more" };
|
|
5867
5894
|
function si(a, e, t, r, i, s) {
|
|
5868
|
-
var n, l, c,
|
|
5869
|
-
return Fe((
|
|
5895
|
+
var n, l, c, d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T;
|
|
5896
|
+
return Fe((u(), g("div", Ra, [
|
|
5870
5897
|
o("div", ja, [
|
|
5871
5898
|
o("div", {
|
|
5872
5899
|
class: "iconfont close-btn",
|
|
5873
5900
|
onClick: e[0] || (e[0] = (D) => i.showTropicals = !1)
|
|
5874
5901
|
}, ""),
|
|
5875
5902
|
o("div", Wa, [
|
|
5876
|
-
(l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (
|
|
5877
|
-
|
|
5903
|
+
(l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (u(), g("span", Ga, E((d = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : d.level) + " , ", 1)) : J("", !0),
|
|
5904
|
+
le(E((h = i.activeTropicals) == null ? void 0 : h.name), 1)
|
|
5878
5905
|
]),
|
|
5879
|
-
o("div", Ua, " Last update: " +
|
|
5906
|
+
o("div", Ua, " Last update: " + E(s.computeTime(((v = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : v.updated) || ((f = (_ = (C = i.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : _.filter((D) => !D.disabled)[0]) == null ? void 0 : f.date))), 1)
|
|
5880
5907
|
]),
|
|
5881
5908
|
o("div", Ya, [
|
|
5882
5909
|
o("div", Ka, [
|
|
5883
5910
|
o("div", Xa, [
|
|
5884
5911
|
o("div", Ja, [
|
|
5885
5912
|
e[3] || (e[3] = o("label", null, "Wind speed : ", -1)),
|
|
5886
|
-
o("span", null,
|
|
5887
|
-
o("span", null, ", BF " +
|
|
5913
|
+
o("span", null, E(((B = (k = i.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : B.kts) || "-") + " [kts]", 1),
|
|
5914
|
+
o("span", null, ", BF " + E(s.computeBF(((w = (A = i.activeTropicals) == null ? void 0 : A.history) == null ? void 0 : w.kts) || 0)), 1)
|
|
5888
5915
|
]),
|
|
5889
5916
|
o("div", qa, [
|
|
5890
5917
|
e[4] || (e[4] = o("label", null, "Pressure : ", -1)),
|
|
5891
|
-
o("span", null,
|
|
5918
|
+
o("span", null, E(((L = (m = i.activeTropicals) == null ? void 0 : m.history) == null ? void 0 : L.pressure) || "-") + " [hPa]", 1)
|
|
5892
5919
|
])
|
|
5893
5920
|
]),
|
|
5894
5921
|
o("div", Va, [
|
|
5895
5922
|
o("div", Za, [
|
|
5896
5923
|
e[5] || (e[5] = o("label", null, "Move Speed: ", -1)),
|
|
5897
|
-
o("span", null,
|
|
5924
|
+
o("span", null, E((y = s.computeMovement(i.activeTropicals)) == null ? void 0 : y.kts) + " [kts]", 1)
|
|
5898
5925
|
]),
|
|
5899
5926
|
o("div", $a, [
|
|
5900
5927
|
e[6] || (e[6] = o("label", null, "Move Dir: ", -1)),
|
|
5901
|
-
o("span", null,
|
|
5928
|
+
o("span", null, E((b = s.computeMovement(i.activeTropicals)) == null ? void 0 : b.deg) + " [°]", 1)
|
|
5902
5929
|
])
|
|
5903
5930
|
]),
|
|
5904
5931
|
o("div", ei, [
|
|
5905
5932
|
o("div", ti, [
|
|
5906
5933
|
e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
5907
5934
|
o("div", ai, [
|
|
5908
|
-
(
|
|
5935
|
+
(u(!0), g(V, null, $((T = i.activeTropicals) == null ? void 0 : T.forecasts, (D, F) => {
|
|
5909
5936
|
var N, j, G, W;
|
|
5910
|
-
return
|
|
5937
|
+
return u(), g("div", {
|
|
5911
5938
|
key: F,
|
|
5912
5939
|
class: Z([
|
|
5913
5940
|
"model",
|
|
@@ -5918,7 +5945,7 @@ function si(a, e, t, r, i, s) {
|
|
|
5918
5945
|
}, [
|
|
5919
5946
|
o("span", {
|
|
5920
5947
|
class: Z(D.model)
|
|
5921
|
-
},
|
|
5948
|
+
}, E(D.model), 3)
|
|
5922
5949
|
], 10, ii);
|
|
5923
5950
|
}), 128))
|
|
5924
5951
|
])
|
|
@@ -5927,7 +5954,7 @@ function si(a, e, t, r, i, s) {
|
|
|
5927
5954
|
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))
|
|
5928
5955
|
]),
|
|
5929
5956
|
o("div", ri, [
|
|
5930
|
-
t.permission & i.helper.LEVEL.Supper ? (
|
|
5957
|
+
t.permission & i.helper.LEVEL.Supper ? (u(), g("div", {
|
|
5931
5958
|
key: 0,
|
|
5932
5959
|
class: "button",
|
|
5933
5960
|
style: { "margin-right": "10px" },
|
|
@@ -6032,7 +6059,7 @@ const oi = {
|
|
|
6032
6059
|
[1, "rgba(197,5,58,0.8)"]
|
|
6033
6060
|
];
|
|
6034
6061
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6035
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6062
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6036
6063
|
this.program = e, this.aPositionBuffer = t;
|
|
6037
6064
|
}
|
|
6038
6065
|
},
|
|
@@ -6048,10 +6075,10 @@ const oi = {
|
|
|
6048
6075
|
}, ni = { key: 0 };
|
|
6049
6076
|
function li(a, e, t, r, i, s) {
|
|
6050
6077
|
var n;
|
|
6051
|
-
return (n = t.factor) != null && n.active ? (
|
|
6078
|
+
return (n = t.factor) != null && n.active ? (u(), g("div", ni, [
|
|
6052
6079
|
o("div", {
|
|
6053
6080
|
class: "legend-bars flex-center",
|
|
6054
|
-
style:
|
|
6081
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6055
6082
|
}, e[0] || (e[0] = [
|
|
6056
6083
|
o("span", null, "mm", -1),
|
|
6057
6084
|
o("span", null, "1.5", -1),
|
|
@@ -6146,7 +6173,7 @@ const ci = {
|
|
|
6146
6173
|
[1, "rgba(144,144,144,0)"]
|
|
6147
6174
|
];
|
|
6148
6175
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6149
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6176
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6150
6177
|
this.program = e, this.aPositionBuffer = t;
|
|
6151
6178
|
}
|
|
6152
6179
|
},
|
|
@@ -6162,10 +6189,10 @@ const ci = {
|
|
|
6162
6189
|
}, di = { key: 0 };
|
|
6163
6190
|
function pi(a, e, t, r, i, s) {
|
|
6164
6191
|
var n;
|
|
6165
|
-
return (n = t.factor) != null && n.active ? (
|
|
6192
|
+
return (n = t.factor) != null && n.active ? (u(), g("div", di, [
|
|
6166
6193
|
o("div", {
|
|
6167
6194
|
class: "legend-bars flex-center",
|
|
6168
|
-
style:
|
|
6195
|
+
style: he([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
6169
6196
|
}, e[0] || (e[0] = [
|
|
6170
6197
|
o("span", null, "nm", -1),
|
|
6171
6198
|
o("span", null, "0", -1),
|
|
@@ -6266,7 +6293,7 @@ const ui = {
|
|
|
6266
6293
|
//
|
|
6267
6294
|
];
|
|
6268
6295
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6269
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6296
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6270
6297
|
this.program = e, this.aPositionBuffer = t;
|
|
6271
6298
|
}
|
|
6272
6299
|
},
|
|
@@ -6282,10 +6309,10 @@ const ui = {
|
|
|
6282
6309
|
}, gi = { key: 0 };
|
|
6283
6310
|
function yi(a, e, t, r, i, s) {
|
|
6284
6311
|
var n;
|
|
6285
|
-
return (n = t.factor) != null && n.active ? (
|
|
6312
|
+
return (n = t.factor) != null && n.active ? (u(), g("div", gi, [
|
|
6286
6313
|
o("div", {
|
|
6287
6314
|
class: "legend-bars flex-center",
|
|
6288
|
-
style:
|
|
6315
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6289
6316
|
}, e[0] || (e[0] = [
|
|
6290
6317
|
o("span", null, "°C", -1),
|
|
6291
6318
|
o("span", null, "0", -1),
|
|
@@ -6389,7 +6416,7 @@ const Ai = {
|
|
|
6389
6416
|
[1, "rgb(138, 43, 10)"]
|
|
6390
6417
|
];
|
|
6391
6418
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6392
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6419
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6393
6420
|
this.program = e, this.aPositionBuffer = t;
|
|
6394
6421
|
}
|
|
6395
6422
|
},
|
|
@@ -6405,10 +6432,10 @@ const Ai = {
|
|
|
6405
6432
|
}, wi = { key: 0 };
|
|
6406
6433
|
function vi(a, e, t, r, i, s) {
|
|
6407
6434
|
var n;
|
|
6408
|
-
return (n = t.factor) != null && n.active ? (
|
|
6435
|
+
return (n = t.factor) != null && n.active ? (u(), g("div", wi, [
|
|
6409
6436
|
o("div", {
|
|
6410
6437
|
class: "legend-bars flex-center",
|
|
6411
|
-
style:
|
|
6438
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6412
6439
|
}, e[0] || (e[0] = [
|
|
6413
6440
|
o("span", null, "°C", -1),
|
|
6414
6441
|
o("span", null, "-20", -1),
|
|
@@ -6427,7 +6454,7 @@ var Li = /* @__PURE__ */ ft({
|
|
|
6427
6454
|
name: "LocationFilled",
|
|
6428
6455
|
__name: "location-filled",
|
|
6429
6456
|
setup(a) {
|
|
6430
|
-
return (e, t) => (
|
|
6457
|
+
return (e, t) => (u(), g("svg", {
|
|
6431
6458
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6432
6459
|
viewBox: "0 0 1024 1024"
|
|
6433
6460
|
}, [
|
|
@@ -6584,17 +6611,17 @@ const _i = {
|
|
|
6584
6611
|
},
|
|
6585
6612
|
computeLat() {
|
|
6586
6613
|
return function(a, e = 4) {
|
|
6587
|
-
return
|
|
6614
|
+
return oe.lat2pretty(a, e).pretty;
|
|
6588
6615
|
};
|
|
6589
6616
|
},
|
|
6590
6617
|
computeLng() {
|
|
6591
6618
|
return function(a, e = 4) {
|
|
6592
|
-
return
|
|
6619
|
+
return oe.lng2pretty(a, e).pretty;
|
|
6593
6620
|
};
|
|
6594
6621
|
},
|
|
6595
6622
|
roundPrecision() {
|
|
6596
6623
|
return function(a, e = 4) {
|
|
6597
|
-
return isNaN(a) ? "-" :
|
|
6624
|
+
return isNaN(a) ? "-" : oe.roundPrecision(a, e);
|
|
6598
6625
|
};
|
|
6599
6626
|
}
|
|
6600
6627
|
},
|
|
@@ -6635,18 +6662,18 @@ const _i = {
|
|
|
6635
6662
|
(n == null ? void 0 : n.data.code) === 0 && (this.meteoData = n == null ? void 0 : n.data.data, this.loading = !1);
|
|
6636
6663
|
},
|
|
6637
6664
|
initTableData(a) {
|
|
6638
|
-
var e, t, r, i, s, n, l, c,
|
|
6639
|
-
this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Ye(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a, ee(this.ts))) == null ? void 0 : l[0], ((
|
|
6640
|
-
var
|
|
6665
|
+
var e, t, r, i, s, n, l, c, d;
|
|
6666
|
+
this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Ye(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a, ee(this.ts))) == null ? void 0 : l[0], ((d = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : d.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
6667
|
+
var p, v, C, _, f, k, B, A, w, m, L, y, b, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe;
|
|
6641
6668
|
if (!document.getElementById("meteoMainBox"))
|
|
6642
6669
|
return !1;
|
|
6643
6670
|
if (!this.currentHourData)
|
|
6644
6671
|
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;
|
|
6645
|
-
for (let
|
|
6646
|
-
const _e = Ye(this.ts).tz(this.positionGmt).add(3 *
|
|
6672
|
+
for (let be = 0; be < 8; be++) {
|
|
6673
|
+
const _e = Ye(this.ts).tz(this.positionGmt).add(3 * be, "h").format();
|
|
6647
6674
|
this.tableData.hours.push(_e);
|
|
6648
|
-
const
|
|
6649
|
-
this.tableData.temp.push(this.roundPrecision((
|
|
6675
|
+
const I = ((p = Ke.pickHourly(a, _e)) == null ? void 0 : p[0]) || {};
|
|
6676
|
+
this.tableData.temp.push(this.roundPrecision((v = I == null ? void 0 : I.weather) == null ? void 0 : v.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((_ = (C = I == null ? void 0 : I.weather) == null ? void 0 : C.precip) == null ? void 0 : _.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((k = (f = I == null ? void 0 : I.weather) == null ? void 0 : f.precip) == null ? void 0 : k.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((B = I == null ? void 0 : I.weather) == null ? void 0 : B.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((w = (A = I == null ? void 0 : I.weather) == null ? void 0 : A.wind) == null ? void 0 : w.kts, 1) ?? "-"), this.tableData.windDir.push((L = (m = I == null ? void 0 : I.weather) == null ? void 0 : m.wind) == null ? void 0 : L.bearing), this.tableData.windGust.push(this.roundPrecision((b = (y = I == null ? void 0 : I.weather) == null ? void 0 : y.wind) == null ? void 0 : b.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (T = I == null ? void 0 : I.wave) == null ? void 0 : T.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((N = (F = I == null ? void 0 : I.wave) == null ? void 0 : F.sig) == null ? void 0 : N.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((G = (j = I == null ? void 0 : I.wave) == null ? void 0 : j.wd) == null ? void 0 : G.height, 1) ?? "-"), this.tableData.windwaveDir.push((me = (W = I == null ? void 0 : I.wave) == null ? void 0 : W.wd) == null ? void 0 : me.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ue = (re = I == null ? void 0 : I.wave) == null ? void 0 : re.wd) == null ? void 0 : ue.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (we = I == null ? void 0 : I.wave) == null ? void 0 : we.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((ye = (ve = I == null ? void 0 : I.wave) == null ? void 0 : ve.swell) == null ? void 0 : ye.bearing), this.tableData.swellPeriod.push(this.roundPrecision((te = (Y = I == null ? void 0 : I.wave) == null ? void 0 : Y.swell) == null ? void 0 : te.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((fe = I == null ? void 0 : I.current) == null ? void 0 : fe.speed, 1) ?? "-"), this.tableData.currentDir.push((pe = I == null ? void 0 : I.current) == null ? void 0 : pe.bearing), this.tableData.seaLevel.push(this.roundPrecision(I == null ? void 0 : I.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(I == null ? void 0 : I.sst, 0) ?? "-"), this.tableData.weatherUrls.push((Ae = I == null ? void 0 : I.weather) == null ? void 0 : Ae.url), this.tableData.weatherNames.push(((xe = I == null ? void 0 : I.weather) == null ? void 0 : xe.name) ?? "-");
|
|
6650
6677
|
}
|
|
6651
6678
|
});
|
|
6652
6679
|
},
|
|
@@ -6723,7 +6750,7 @@ const _i = {
|
|
|
6723
6750
|
this.$nextTick(() => {
|
|
6724
6751
|
var e;
|
|
6725
6752
|
const a = document.getElementById("point-meteo");
|
|
6726
|
-
this.point && (this.meteoMarker ? (e = this.meteoMarker) == null || e.setLngLat([this.point.lng, this.point.lat]) : this.meteoMarker = new
|
|
6753
|
+
this.point && (this.meteoMarker ? (e = this.meteoMarker) == null || e.setLngLat([this.point.lng, this.point.lat]) : this.meteoMarker = new Re.Marker(a).setLngLat([this.point.lng, this.point.lat]).addTo(this.map));
|
|
6727
6754
|
});
|
|
6728
6755
|
}
|
|
6729
6756
|
}
|
|
@@ -6772,9 +6799,9 @@ const _i = {
|
|
|
6772
6799
|
class: "main-box flex-center"
|
|
6773
6800
|
};
|
|
6774
6801
|
function Qr(a, e, t, r, i, s) {
|
|
6775
|
-
var
|
|
6802
|
+
var d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe, be, _e, I, ze, Le, Pe, Ee, He, ke, se, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue, ie, Ne, tt, at, it, rt, st, ot;
|
|
6776
6803
|
const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
|
|
6777
|
-
return Fe((
|
|
6804
|
+
return Fe((u(), g("div", Bi, [
|
|
6778
6805
|
o("div", Ii, [
|
|
6779
6806
|
o("div", Ei, [
|
|
6780
6807
|
o("div", ki, [
|
|
@@ -6784,14 +6811,14 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6784
6811
|
]),
|
|
6785
6812
|
_: 1
|
|
6786
6813
|
}),
|
|
6787
|
-
o("div", Di,
|
|
6814
|
+
o("div", Di, E(s.computeLat((d = i.point) == null ? void 0 : d.lat)) + "," + E(s.computeLng((h = i.point) == null ? void 0 : h.lng)), 1)
|
|
6788
6815
|
]),
|
|
6789
6816
|
o("div", zi, [
|
|
6790
|
-
i.showTables ? (
|
|
6817
|
+
i.showTables ? (u(), g("div", {
|
|
6791
6818
|
key: 0,
|
|
6792
6819
|
class: "iconfont toggle",
|
|
6793
6820
|
onClick: e[0] || (e[0] = (x) => i.showTables = !i.showTables)
|
|
6794
|
-
}, "")) : (
|
|
6821
|
+
}, "")) : (u(), g("div", {
|
|
6795
6822
|
key: 1,
|
|
6796
6823
|
class: "iconfont toggle",
|
|
6797
6824
|
onClick: e[1] || (e[1] = (x) => i.showTables = !i.showTables)
|
|
@@ -6802,12 +6829,12 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6802
6829
|
}, "")
|
|
6803
6830
|
])
|
|
6804
6831
|
]),
|
|
6805
|
-
i.loading ? (
|
|
6832
|
+
i.loading ? (u(), g("div", Tr, e[43] || (e[43] = [
|
|
6806
6833
|
o("img", {
|
|
6807
6834
|
src: xi,
|
|
6808
6835
|
alt: ""
|
|
6809
6836
|
}, null, -1)
|
|
6810
|
-
]))) : (
|
|
6837
|
+
]))) : (u(), g("div", {
|
|
6811
6838
|
key: 0,
|
|
6812
6839
|
class: Z(["main-box", i.isDay ? "day-bg" : "night-bg"]),
|
|
6813
6840
|
id: "meteoMainBox"
|
|
@@ -6817,46 +6844,46 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6817
6844
|
H(c, {
|
|
6818
6845
|
placement: "top",
|
|
6819
6846
|
effect: "light",
|
|
6820
|
-
content: (
|
|
6847
|
+
content: (v = (p = i.currentHourData) == null ? void 0 : p.weather) == null ? void 0 : v.name,
|
|
6821
6848
|
"show-after": 1e3
|
|
6822
6849
|
}, {
|
|
6823
6850
|
default: Ie(() => {
|
|
6824
6851
|
var x, M, nt, lt;
|
|
6825
6852
|
return [
|
|
6826
|
-
(M = (x = i.currentHourData) == null ? void 0 : x.weather) != null && M.url ? (
|
|
6853
|
+
(M = (x = i.currentHourData) == null ? void 0 : x.weather) != null && M.url ? (u(), g("img", {
|
|
6827
6854
|
key: 0,
|
|
6828
6855
|
class: "iconfont icon",
|
|
6829
6856
|
style: { "margin-right": "5px" },
|
|
6830
6857
|
src: (lt = (nt = i.currentHourData) == null ? void 0 : nt.weather) == null ? void 0 : lt.url
|
|
6831
|
-
}, null, 8, Si)) : (
|
|
6858
|
+
}, null, 8, Si)) : (u(), g("span", Ti))
|
|
6832
6859
|
];
|
|
6833
6860
|
}),
|
|
6834
6861
|
_: 1
|
|
6835
6862
|
}, 8, ["content"]),
|
|
6836
6863
|
o("div", Qi, [
|
|
6837
6864
|
o("div", null, [
|
|
6838
|
-
|
|
6865
|
+
le(E(s.roundPrecision((_ = (C = i.currentHourData) == null ? void 0 : C.weather) == null ? void 0 : _.temp, 0)), 1),
|
|
6839
6866
|
e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
6840
6867
|
])
|
|
6841
6868
|
]),
|
|
6842
6869
|
o("div", Hi, [
|
|
6843
6870
|
o("div", Ni, [
|
|
6844
6871
|
e[10] || (e[10] = o("label", null, "Precip : ", -1)),
|
|
6845
|
-
o("span", null,
|
|
6872
|
+
o("span", null, E(s.roundPrecision((B = (k = (f = i.currentHourData) == null ? void 0 : f.weather) == null ? void 0 : k.precip) == null ? void 0 : B.sum, 0)) + " mm", 1)
|
|
6846
6873
|
]),
|
|
6847
6874
|
o("div", Fi, [
|
|
6848
6875
|
e[11] || (e[11] = o("label", null, "Visibility : ", -1)),
|
|
6849
|
-
o("span", null,
|
|
6876
|
+
o("span", null, E(s.roundPrecision((w = (A = i.currentHourData) == null ? void 0 : A.weather) == null ? void 0 : w.visibility, 0)) + " nm", 1)
|
|
6850
6877
|
]),
|
|
6851
6878
|
o("div", Oi, [
|
|
6852
6879
|
e[12] || (e[12] = o("label", null, "Wind : ", -1)),
|
|
6853
|
-
o("span", null,
|
|
6880
|
+
o("span", null, E(s.roundPrecision((y = (L = (m = i.currentHourData) == null ? void 0 : m.weather) == null ? void 0 : L.wind) == null ? void 0 : y.kts, 1)) + " kts", 1)
|
|
6854
6881
|
])
|
|
6855
6882
|
])
|
|
6856
6883
|
]),
|
|
6857
6884
|
o("div", Ri, [
|
|
6858
|
-
o("div", ji,
|
|
6859
|
-
o("div", Wi, "( UTC " +
|
|
6885
|
+
o("div", ji, E(i.localDate), 1),
|
|
6886
|
+
o("div", Wi, "( UTC " + E(i.positionOffset) + " )", 1)
|
|
6860
6887
|
])
|
|
6861
6888
|
]),
|
|
6862
6889
|
Fe(o("div", Gi, [
|
|
@@ -6885,14 +6912,14 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6885
6912
|
colspan: "1",
|
|
6886
6913
|
class: "tr-title"
|
|
6887
6914
|
}, [
|
|
6888
|
-
|
|
6915
|
+
le("Hours"),
|
|
6889
6916
|
o("span", { class: "unit" }, "(LT)")
|
|
6890
6917
|
], -1)),
|
|
6891
|
-
(
|
|
6918
|
+
(u(!0), g(V, null, $(i.tableData.hours, (x) => (u(), g("th", {
|
|
6892
6919
|
rowspan: "1",
|
|
6893
6920
|
colspan: "1",
|
|
6894
6921
|
key: `HourL${x}`
|
|
6895
|
-
},
|
|
6922
|
+
}, E(s.computeHourL(x)), 1))), 128))
|
|
6896
6923
|
]),
|
|
6897
6924
|
o("tr", Xi, [
|
|
6898
6925
|
e[14] || (e[14] = o("th", {
|
|
@@ -6900,14 +6927,14 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6900
6927
|
colspan: "1",
|
|
6901
6928
|
class: "tr-title"
|
|
6902
6929
|
}, [
|
|
6903
|
-
|
|
6930
|
+
le("UTC"),
|
|
6904
6931
|
o("span", { class: "unit" })
|
|
6905
6932
|
], -1)),
|
|
6906
|
-
(
|
|
6933
|
+
(u(!0), g(V, null, $(i.tableData.hours, (x) => (u(), g("th", {
|
|
6907
6934
|
rowspan: "1",
|
|
6908
6935
|
colspan: "1",
|
|
6909
6936
|
key: `HourZ${x}`
|
|
6910
|
-
},
|
|
6937
|
+
}, E(s.computeHourZ(x)), 1))), 128))
|
|
6911
6938
|
]),
|
|
6912
6939
|
o("tr", Ji, [
|
|
6913
6940
|
e[15] || (e[15] = o("th", {
|
|
@@ -6915,7 +6942,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6915
6942
|
colspan: "1",
|
|
6916
6943
|
class: "tr-title"
|
|
6917
6944
|
}, null, -1)),
|
|
6918
|
-
(
|
|
6945
|
+
(u(!0), g(V, null, $(i.tableData.weatherUrls, (x, M) => (u(), g("th", {
|
|
6919
6946
|
rowspan: "1",
|
|
6920
6947
|
colspan: "1",
|
|
6921
6948
|
key: `weatherUrls${M}${x}`
|
|
@@ -6927,7 +6954,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6927
6954
|
"show-after": 500
|
|
6928
6955
|
}, {
|
|
6929
6956
|
default: Ie(() => [
|
|
6930
|
-
x ? (
|
|
6957
|
+
x ? (u(), g("img", {
|
|
6931
6958
|
key: 0,
|
|
6932
6959
|
class: "iconfont weather-icon",
|
|
6933
6960
|
src: x,
|
|
@@ -6944,14 +6971,14 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6944
6971
|
colspan: "1",
|
|
6945
6972
|
class: "tr-title"
|
|
6946
6973
|
}, [
|
|
6947
|
-
|
|
6974
|
+
le("Temp"),
|
|
6948
6975
|
o("span", { class: "unit" }, "°C")
|
|
6949
6976
|
], -1)),
|
|
6950
|
-
(
|
|
6977
|
+
(u(!0), g(V, null, $(i.tableData.temp, (x, M) => (u(), g("td", {
|
|
6951
6978
|
rowspan: "1",
|
|
6952
6979
|
colspan: "1",
|
|
6953
6980
|
key: `weatherUrls${M}${x}`
|
|
6954
|
-
},
|
|
6981
|
+
}, E(x), 1))), 128))
|
|
6955
6982
|
]),
|
|
6956
6983
|
o("tr", Zi, [
|
|
6957
6984
|
e[17] || (e[17] = o("td", {
|
|
@@ -6959,14 +6986,14 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6959
6986
|
colspan: "1",
|
|
6960
6987
|
class: "tr-title"
|
|
6961
6988
|
}, [
|
|
6962
|
-
|
|
6989
|
+
le("Precip"),
|
|
6963
6990
|
o("span", { class: "unit" }, "mm")
|
|
6964
6991
|
], -1)),
|
|
6965
|
-
(
|
|
6992
|
+
(u(!0), g(V, null, $(i.tableData.precip1h, (x, M) => (u(), g("td", {
|
|
6966
6993
|
rowspan: "1",
|
|
6967
6994
|
colspan: "1",
|
|
6968
6995
|
key: `precip1h${M}${x}`
|
|
6969
|
-
},
|
|
6996
|
+
}, E(x), 1))), 128))
|
|
6970
6997
|
]),
|
|
6971
6998
|
o("tr", $i, [
|
|
6972
6999
|
e[18] || (e[18] = o("td", {
|
|
@@ -6974,14 +7001,14 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6974
7001
|
colspan: "1",
|
|
6975
7002
|
class: "tr-title"
|
|
6976
7003
|
}, [
|
|
6977
|
-
|
|
7004
|
+
le("Visibility"),
|
|
6978
7005
|
o("span", { class: "unit" }, "nm")
|
|
6979
7006
|
], -1)),
|
|
6980
|
-
(
|
|
7007
|
+
(u(!0), g(V, null, $(i.tableData.visibility, (x, M) => (u(), g("td", {
|
|
6981
7008
|
rowspan: "1",
|
|
6982
7009
|
colspan: "1",
|
|
6983
7010
|
key: `visibility${M}${x}`
|
|
6984
|
-
},
|
|
7011
|
+
}, E(x), 1))), 128))
|
|
6985
7012
|
]),
|
|
6986
7013
|
o("tr", er, [
|
|
6987
7014
|
e[19] || (e[19] = o("td", {
|
|
@@ -6989,15 +7016,15 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6989
7016
|
colspan: "1",
|
|
6990
7017
|
class: "tr-title"
|
|
6991
7018
|
}, [
|
|
6992
|
-
|
|
7019
|
+
le("Wind gust"),
|
|
6993
7020
|
o("span", { class: "unit" }, "kts")
|
|
6994
7021
|
], -1)),
|
|
6995
|
-
(
|
|
7022
|
+
(u(!0), g(V, null, $(i.tableData.windGust, (x, M) => (u(), g("td", {
|
|
6996
7023
|
rowspan: "1",
|
|
6997
7024
|
colspan: "1",
|
|
6998
7025
|
key: `windGust${M}${x}`
|
|
6999
7026
|
}, [
|
|
7000
|
-
o("span", null,
|
|
7027
|
+
o("span", null, E(x), 1)
|
|
7001
7028
|
]))), 128))
|
|
7002
7029
|
])
|
|
7003
7030
|
], 512), [
|
|
@@ -7010,14 +7037,14 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7010
7037
|
colspan: "1",
|
|
7011
7038
|
class: "tr-title"
|
|
7012
7039
|
}, [
|
|
7013
|
-
|
|
7040
|
+
le("Hours"),
|
|
7014
7041
|
o("span", { class: "unit" }, "(LT)")
|
|
7015
7042
|
], -1)),
|
|
7016
|
-
(
|
|
7043
|
+
(u(!0), g(V, null, $(i.tableData.hours, (x, M) => (u(), g("th", {
|
|
7017
7044
|
rowspan: "1",
|
|
7018
7045
|
colspan: "1",
|
|
7019
7046
|
key: `currenthoursL${M}${x}`
|
|
7020
|
-
},
|
|
7047
|
+
}, E(s.computeHourL(x)), 1))), 128))
|
|
7021
7048
|
]),
|
|
7022
7049
|
o("tr", ir, [
|
|
7023
7050
|
e[21] || (e[21] = o("th", {
|
|
@@ -7025,14 +7052,14 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7025
7052
|
colspan: "1",
|
|
7026
7053
|
class: "tr-title"
|
|
7027
7054
|
}, [
|
|
7028
|
-
|
|
7055
|
+
le("UTC"),
|
|
7029
7056
|
o("span", { class: "unit" })
|
|
7030
7057
|
], -1)),
|
|
7031
|
-
(
|
|
7058
|
+
(u(!0), g(V, null, $(i.tableData.hours, (x, M) => (u(), g("th", {
|
|
7032
7059
|
rowspan: "1",
|
|
7033
7060
|
colspan: "1",
|
|
7034
7061
|
key: `currenthoursZ${M}${x}`
|
|
7035
|
-
},
|
|
7062
|
+
}, E(s.computeHourZ(x)), 1))), 128))
|
|
7036
7063
|
]),
|
|
7037
7064
|
o("tr", rr, [
|
|
7038
7065
|
e[22] || (e[22] = o("td", {
|
|
@@ -7040,20 +7067,20 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7040
7067
|
colspan: "1",
|
|
7041
7068
|
class: "tr-title"
|
|
7042
7069
|
}, [
|
|
7043
|
-
|
|
7070
|
+
le("Wind"),
|
|
7044
7071
|
o("span", { class: "unit" }, "kts")
|
|
7045
7072
|
], -1)),
|
|
7046
|
-
(
|
|
7073
|
+
(u(!0), g(V, null, $(i.tableData.windSpeed, (x, M) => (u(), g("td", {
|
|
7047
7074
|
rowspan: "1",
|
|
7048
7075
|
colspan: "1",
|
|
7049
7076
|
key: `windSpeed${M}${x}`
|
|
7050
7077
|
}, [
|
|
7051
|
-
isNaN(i.tableData.windDir[M]) ? J("", !0) : (
|
|
7078
|
+
isNaN(i.tableData.windDir[M]) ? J("", !0) : (u(), g("span", {
|
|
7052
7079
|
key: 0,
|
|
7053
7080
|
class: "iconfont icon wind",
|
|
7054
|
-
style:
|
|
7081
|
+
style: he({ display: "inline-block", transform: `rotate(${i.tableData.windDir[M]}deg)` })
|
|
7055
7082
|
}, "", 4)),
|
|
7056
|
-
o("span", null,
|
|
7083
|
+
o("span", null, E(x), 1)
|
|
7057
7084
|
]))), 128))
|
|
7058
7085
|
]),
|
|
7059
7086
|
o("tr", sr, [
|
|
@@ -7062,20 +7089,20 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7062
7089
|
colspan: "1",
|
|
7063
7090
|
class: "tr-title"
|
|
7064
7091
|
}, [
|
|
7065
|
-
|
|
7092
|
+
le("Sig Wave"),
|
|
7066
7093
|
o("span", { class: "unit" }, "m")
|
|
7067
7094
|
], -1)),
|
|
7068
|
-
(
|
|
7095
|
+
(u(!0), g(V, null, $(i.tableData.sigwaveHeight, (x, M) => (u(), g("td", {
|
|
7069
7096
|
rowspan: "1",
|
|
7070
7097
|
colspan: "1",
|
|
7071
7098
|
key: `sigwaveHeight${M}${x}`
|
|
7072
7099
|
}, [
|
|
7073
|
-
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (
|
|
7100
|
+
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (u(), g("span", {
|
|
7074
7101
|
key: 0,
|
|
7075
7102
|
class: "iconfont icon sigwave",
|
|
7076
|
-
style:
|
|
7103
|
+
style: he({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[M]}deg)` })
|
|
7077
7104
|
}, "", 4)),
|
|
7078
|
-
o("span", null,
|
|
7105
|
+
o("span", null, E(x), 1)
|
|
7079
7106
|
]))), 128))
|
|
7080
7107
|
]),
|
|
7081
7108
|
o("tr", or, [
|
|
@@ -7084,20 +7111,20 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7084
7111
|
colspan: "1",
|
|
7085
7112
|
class: "tr-title"
|
|
7086
7113
|
}, [
|
|
7087
|
-
|
|
7114
|
+
le("Wind Wave"),
|
|
7088
7115
|
o("span", { class: "unit" }, "m")
|
|
7089
7116
|
], -1)),
|
|
7090
|
-
(
|
|
7117
|
+
(u(!0), g(V, null, $(i.tableData.windwaveHeight, (x, M) => (u(), g("td", {
|
|
7091
7118
|
rowspan: "1",
|
|
7092
7119
|
colspan: "1",
|
|
7093
7120
|
key: `windwaveHeight${M}${x}`
|
|
7094
7121
|
}, [
|
|
7095
|
-
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (
|
|
7122
|
+
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (u(), g("span", {
|
|
7096
7123
|
key: 0,
|
|
7097
7124
|
class: "iconfont icon windwave",
|
|
7098
|
-
style:
|
|
7125
|
+
style: he({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[M]}deg)` })
|
|
7099
7126
|
}, "", 4)),
|
|
7100
|
-
o("span", null,
|
|
7127
|
+
o("span", null, E(x), 1)
|
|
7101
7128
|
]))), 128))
|
|
7102
7129
|
]),
|
|
7103
7130
|
o("tr", nr, [
|
|
@@ -7106,20 +7133,20 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7106
7133
|
colspan: "1",
|
|
7107
7134
|
class: "tr-title"
|
|
7108
7135
|
}, [
|
|
7109
|
-
|
|
7136
|
+
le("Swell"),
|
|
7110
7137
|
o("span", { class: "unit" }, "m")
|
|
7111
7138
|
], -1)),
|
|
7112
|
-
(
|
|
7139
|
+
(u(!0), g(V, null, $(i.tableData.swellHeight, (x, M) => (u(), g("td", {
|
|
7113
7140
|
rowspan: "1",
|
|
7114
7141
|
colspan: "1",
|
|
7115
7142
|
key: `swellHeight${M}${x}`
|
|
7116
7143
|
}, [
|
|
7117
|
-
isNaN(i.tableData.swellDir[M]) ? J("", !0) : (
|
|
7144
|
+
isNaN(i.tableData.swellDir[M]) ? J("", !0) : (u(), g("span", {
|
|
7118
7145
|
key: 0,
|
|
7119
7146
|
class: "iconfont icon swell",
|
|
7120
|
-
style:
|
|
7147
|
+
style: he({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[M]}deg)` })
|
|
7121
7148
|
}, "", 4)),
|
|
7122
|
-
o("span", null,
|
|
7149
|
+
o("span", null, E(x), 1)
|
|
7123
7150
|
]))), 128))
|
|
7124
7151
|
]),
|
|
7125
7152
|
o("tr", lr, [
|
|
@@ -7128,21 +7155,21 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7128
7155
|
colspan: "1",
|
|
7129
7156
|
class: "tr-title"
|
|
7130
7157
|
}, [
|
|
7131
|
-
|
|
7158
|
+
le("Current"),
|
|
7132
7159
|
o("span", { class: "unit" }, "kts")
|
|
7133
7160
|
], -1)),
|
|
7134
|
-
(
|
|
7161
|
+
(u(!0), g(V, null, $(i.tableData.currentSpeed, (x, M) => (u(), g("td", {
|
|
7135
7162
|
rowspan: "1",
|
|
7136
7163
|
colspan: "1",
|
|
7137
7164
|
key: `currentSpeed${M}${x}`
|
|
7138
7165
|
}, [
|
|
7139
|
-
isNaN(i.tableData.currentDir[M]) ? J("", !0) : (
|
|
7166
|
+
isNaN(i.tableData.currentDir[M]) ? J("", !0) : (u(), g("span", {
|
|
7140
7167
|
key: 0,
|
|
7141
7168
|
class: "iconfont icon current",
|
|
7142
7169
|
id: "meteoGrayIcon",
|
|
7143
|
-
style:
|
|
7170
|
+
style: he({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[M]}deg)` })
|
|
7144
7171
|
}, "", 4)),
|
|
7145
|
-
o("span", null,
|
|
7172
|
+
o("span", null, E(x), 1)
|
|
7146
7173
|
]))), 128))
|
|
7147
7174
|
])
|
|
7148
7175
|
], 512), [
|
|
@@ -7155,14 +7182,14 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7155
7182
|
colspan: "1",
|
|
7156
7183
|
class: "tr-title"
|
|
7157
7184
|
}, [
|
|
7158
|
-
|
|
7185
|
+
le("Hours"),
|
|
7159
7186
|
o("span", { class: "unit" }, "(LT)")
|
|
7160
7187
|
], -1)),
|
|
7161
|
-
(
|
|
7188
|
+
(u(!0), g(V, null, $(i.tableData.hours, (x, M) => (u(), g("th", {
|
|
7162
7189
|
rowspan: "1",
|
|
7163
7190
|
colspan: "1",
|
|
7164
7191
|
key: `seahoursL${M}${x}`
|
|
7165
|
-
},
|
|
7192
|
+
}, E(s.computeHourL(x)), 1))), 128))
|
|
7166
7193
|
]),
|
|
7167
7194
|
o("tr", dr, [
|
|
7168
7195
|
e[28] || (e[28] = o("th", {
|
|
@@ -7170,14 +7197,14 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7170
7197
|
colspan: "1",
|
|
7171
7198
|
class: "tr-title"
|
|
7172
7199
|
}, [
|
|
7173
|
-
|
|
7200
|
+
le("UTC"),
|
|
7174
7201
|
o("span", { class: "unit" })
|
|
7175
7202
|
], -1)),
|
|
7176
|
-
(
|
|
7203
|
+
(u(!0), g(V, null, $(i.tableData.hours, (x, M) => (u(), g("th", {
|
|
7177
7204
|
rowspan: "1",
|
|
7178
7205
|
colspan: "1",
|
|
7179
7206
|
key: `seahoursZ${M}${x}`
|
|
7180
|
-
},
|
|
7207
|
+
}, E(s.computeHourZ(x)), 1))), 128))
|
|
7181
7208
|
]),
|
|
7182
7209
|
o("tr", pr, [
|
|
7183
7210
|
e[29] || (e[29] = o("td", {
|
|
@@ -7185,14 +7212,14 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7185
7212
|
colspan: "1",
|
|
7186
7213
|
class: "tr-title"
|
|
7187
7214
|
}, [
|
|
7188
|
-
|
|
7215
|
+
le("SeaLevel"),
|
|
7189
7216
|
o("span", { class: "unit" }, "m")
|
|
7190
7217
|
], -1)),
|
|
7191
|
-
(
|
|
7218
|
+
(u(!0), g(V, null, $(i.tableData.seaLevel, (x, M) => (u(), g("td", {
|
|
7192
7219
|
rowspan: "1",
|
|
7193
7220
|
colspan: "1",
|
|
7194
7221
|
key: `SeaLevel${M}${x}`
|
|
7195
|
-
},
|
|
7222
|
+
}, E(x), 1))), 128))
|
|
7196
7223
|
]),
|
|
7197
7224
|
o("tr", mr, [
|
|
7198
7225
|
e[30] || (e[30] = o("td", {
|
|
@@ -7200,42 +7227,42 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7200
7227
|
colspan: "1",
|
|
7201
7228
|
class: "tr-title"
|
|
7202
7229
|
}, [
|
|
7203
|
-
|
|
7230
|
+
le("SeaTemp"),
|
|
7204
7231
|
o("span", { class: "unit" }, "°C")
|
|
7205
7232
|
], -1)),
|
|
7206
|
-
(
|
|
7233
|
+
(u(!0), g(V, null, $(i.tableData.seaTemp, (x, M) => (u(), g("td", {
|
|
7207
7234
|
rowspan: "1",
|
|
7208
7235
|
colspan: "1",
|
|
7209
7236
|
key: `SeaTemp${M}${x}`
|
|
7210
|
-
},
|
|
7237
|
+
}, E(x), 1))), 128))
|
|
7211
7238
|
])
|
|
7212
7239
|
], 512), [
|
|
7213
7240
|
[Oe, i.activeIndex === 3]
|
|
7214
7241
|
]),
|
|
7215
|
-
i.activeIndex === 3 ? (
|
|
7242
|
+
i.activeIndex === 3 ? (u(), g("div", ur, e[31] || (e[31] = [
|
|
7216
7243
|
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)
|
|
7217
7244
|
]))) : J("", !0),
|
|
7218
7245
|
Fe(o("table", gr, [
|
|
7219
7246
|
o("tr", yr, [
|
|
7220
|
-
(
|
|
7247
|
+
(u(!0), g(V, null, $(i.tideTableData, (x, M) => (u(), g("th", {
|
|
7221
7248
|
rowspan: "1",
|
|
7222
7249
|
colspan: "1",
|
|
7223
7250
|
key: `Tide-tr-${M}${x}`
|
|
7224
|
-
},
|
|
7251
|
+
}, E(x.type) + " Tide", 1))), 128))
|
|
7225
7252
|
]),
|
|
7226
7253
|
o("tr", fr, [
|
|
7227
|
-
(
|
|
7254
|
+
(u(!0), g(V, null, $(i.tideTableData, (x, M) => (u(), g("td", {
|
|
7228
7255
|
rowspan: "1",
|
|
7229
7256
|
colspan: "1",
|
|
7230
7257
|
key: `Tide-date-${M}${x}`
|
|
7231
|
-
},
|
|
7258
|
+
}, E(s.computeHourHmmLT(x == null ? void 0 : x.date)), 1))), 128))
|
|
7232
7259
|
]),
|
|
7233
7260
|
o("tr", Ar, [
|
|
7234
|
-
(
|
|
7261
|
+
(u(!0), g(V, null, $(i.tideTableData, (x, M) => (u(), g("td", {
|
|
7235
7262
|
rowspan: "1",
|
|
7236
7263
|
colspan: "1",
|
|
7237
7264
|
key: `Tide-height-${M}${x}`
|
|
7238
|
-
},
|
|
7265
|
+
}, E(s.roundPrecision(x == null ? void 0 : x.height, 2)) + " m", 1))), 128))
|
|
7239
7266
|
]),
|
|
7240
7267
|
e[32] || (e[32] = o("tr", { class: "tr-tide flex-center info" }, [
|
|
7241
7268
|
o("td", null, [
|
|
@@ -7246,57 +7273,57 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7246
7273
|
[Oe, i.activeIndex === 4]
|
|
7247
7274
|
])
|
|
7248
7275
|
], 512), [
|
|
7249
|
-
[Oe, ((T = (
|
|
7276
|
+
[Oe, ((T = (b = i.tableData) == null ? void 0 : b.hours) == null ? void 0 : T.length) > 0 && i.showTables]
|
|
7250
7277
|
]),
|
|
7251
7278
|
Fe(o("div", wr, [
|
|
7252
7279
|
o("div", vr, [
|
|
7253
7280
|
o("div", br, [
|
|
7254
7281
|
e[33] || (e[33] = o("div", null, "Wind", -1)),
|
|
7255
|
-
o("div", null,
|
|
7282
|
+
o("div", null, E((N = (F = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : F.wind) == null ? void 0 : N.direction) + "/" + E(s.roundPrecision((W = (G = (j = i.currentHourData) == null ? void 0 : j.weather) == null ? void 0 : G.wind) == null ? void 0 : W.kts, 1)) + "kts/BF" + E((ue = (re = (me = i.currentHourData) == null ? void 0 : me.weather) == null ? void 0 : re.wind) == null ? void 0 : ue.scale) + "/" + E(s.roundPrecision((ve = (ge = (we = i.currentHourData) == null ? void 0 : we.weather) == null ? void 0 : ge.wind) == null ? void 0 : ve.gusts, 1)) + " kts", 1)
|
|
7256
7283
|
]),
|
|
7257
7284
|
o("div", Lr, [
|
|
7258
7285
|
e[34] || (e[34] = o("div", null, "Sig wave", -1)),
|
|
7259
|
-
o("div", null,
|
|
7286
|
+
o("div", null, E((te = (Y = (ye = i.currentHourData) == null ? void 0 : ye.wave) == null ? void 0 : Y.sig) == null ? void 0 : te.direction) + "/" + E(s.roundPrecision((Ae = (pe = (fe = i.currentHourData) == null ? void 0 : fe.wave) == null ? void 0 : pe.sig) == null ? void 0 : Ae.height, 1)) + "m/" + E(s.roundPrecision((_e = (be = (xe = i.currentHourData) == null ? void 0 : xe.wave) == null ? void 0 : be.sig) == null ? void 0 : _e.period, 1)) + "s", 1)
|
|
7260
7287
|
])
|
|
7261
7288
|
]),
|
|
7262
7289
|
o("div", Cr, [
|
|
7263
7290
|
o("div", xr, [
|
|
7264
7291
|
e[35] || (e[35] = o("div", null, "Wind wave", -1)),
|
|
7265
|
-
o("div", null,
|
|
7292
|
+
o("div", null, E((Le = (ze = (I = i.currentHourData) == null ? void 0 : I.wave) == null ? void 0 : ze.wd) == null ? void 0 : Le.direction) + "/" + E(s.roundPrecision((He = (Ee = (Pe = i.currentHourData) == null ? void 0 : Pe.wave) == null ? void 0 : Ee.wd) == null ? void 0 : He.height, 1)) + "m/" + E(s.roundPrecision((ce = (se = (ke = i.currentHourData) == null ? void 0 : ke.wave) == null ? void 0 : se.wd) == null ? void 0 : ce.period, 1)) + "s", 1)
|
|
7266
7293
|
]),
|
|
7267
7294
|
o("div", _r, [
|
|
7268
7295
|
e[36] || (e[36] = o("div", null, "Swell", -1)),
|
|
7269
|
-
o("div", null,
|
|
7296
|
+
o("div", null, E((K = (Be = (Q = i.currentHourData) == null ? void 0 : Q.wave) == null ? void 0 : Be.swell) == null ? void 0 : K.direction) + "/" + E(s.roundPrecision((P = (Me = (q = i.currentHourData) == null ? void 0 : q.wave) == null ? void 0 : Me.swell) == null ? void 0 : P.height, 1)) + "m/" + E(s.roundPrecision((Se = (De = (de = i.currentHourData) == null ? void 0 : de.wave) == null ? void 0 : De.swell) == null ? void 0 : Se.period, 1)) + "s", 1)
|
|
7270
7297
|
])
|
|
7271
7298
|
]),
|
|
7272
7299
|
o("div", Br, [
|
|
7273
7300
|
o("div", Ir, [
|
|
7274
7301
|
e[37] || (e[37] = o("div", null, "Current", -1)),
|
|
7275
|
-
o("div", null,
|
|
7302
|
+
o("div", null, E((z = (Te = i.currentHourData) == null ? void 0 : Te.current) == null ? void 0 : z.direction) + "/" + E(s.roundPrecision((Ge = (O = i.currentHourData) == null ? void 0 : O.current) == null ? void 0 : Ge.kts, 2)) + "kts", 1)
|
|
7276
7303
|
]),
|
|
7277
7304
|
o("div", Er, [
|
|
7278
7305
|
e[38] || (e[38] = o("div", null, "Sea level", -1)),
|
|
7279
|
-
o("div", null,
|
|
7306
|
+
o("div", null, E(s.roundPrecision((Ue = i.currentHourData) == null ? void 0 : Ue.height, 1)) + "m", 1)
|
|
7280
7307
|
])
|
|
7281
7308
|
]),
|
|
7282
7309
|
o("div", kr, [
|
|
7283
7310
|
o("div", Dr, [
|
|
7284
7311
|
e[39] || (e[39] = o("div", null, "Sea Temp", -1)),
|
|
7285
|
-
o("div", null,
|
|
7312
|
+
o("div", null, E(s.roundPrecision((ie = i.currentHourData) == null ? void 0 : ie.sst, 1)) + "°C", 1)
|
|
7286
7313
|
]),
|
|
7287
7314
|
o("div", zr, [
|
|
7288
7315
|
e[40] || (e[40] = o("div", null, "Visibility", -1)),
|
|
7289
|
-
o("div", null,
|
|
7316
|
+
o("div", null, E(s.roundPrecision((tt = (Ne = i.currentHourData) == null ? void 0 : Ne.weather) == null ? void 0 : tt.visibility, 1)) + "nm", 1)
|
|
7290
7317
|
])
|
|
7291
7318
|
]),
|
|
7292
7319
|
o("div", Pr, [
|
|
7293
7320
|
o("div", Mr, [
|
|
7294
7321
|
e[41] || (e[41] = o("div", null, "Temp", -1)),
|
|
7295
|
-
o("div", null,
|
|
7322
|
+
o("div", null, E(s.roundPrecision((it = (at = i.currentHourData) == null ? void 0 : at.weather) == null ? void 0 : it.temp, 1)) + "°C", 1)
|
|
7296
7323
|
]),
|
|
7297
7324
|
o("div", Sr, [
|
|
7298
7325
|
e[42] || (e[42] = o("div", null, "Precip", -1)),
|
|
7299
|
-
o("div", null,
|
|
7326
|
+
o("div", null, E(s.roundPrecision((ot = (st = (rt = i.currentHourData) == null ? void 0 : rt.weather) == null ? void 0 : st.precip) == null ? void 0 : ot.sum3Hours, 1)) + "mm", 1)
|
|
7300
7327
|
])
|
|
7301
7328
|
])
|
|
7302
7329
|
], 512), [
|
|
@@ -7305,7 +7332,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7305
7332
|
o("div", {
|
|
7306
7333
|
class: Z(["action", i.isDay ? "day" : "night"])
|
|
7307
7334
|
}, [
|
|
7308
|
-
t.permission & i.helper.LEVEL.Supper ? (
|
|
7335
|
+
t.permission & i.helper.LEVEL.Supper ? (u(), g("div", {
|
|
7309
7336
|
key: 0,
|
|
7310
7337
|
class: "button",
|
|
7311
7338
|
style: { "margin-right": "10px" },
|
|
@@ -7415,7 +7442,7 @@ const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-3afdcf26
|
|
|
7415
7442
|
}
|
|
7416
7443
|
};
|
|
7417
7444
|
function Fr(a, e, t, r, i, s) {
|
|
7418
|
-
return
|
|
7445
|
+
return u(), g("div");
|
|
7419
7446
|
}
|
|
7420
7447
|
const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
|
|
7421
7448
|
name: "IdmGmdssArea",
|
|
@@ -7541,7 +7568,7 @@ const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
|
|
|
7541
7568
|
}
|
|
7542
7569
|
};
|
|
7543
7570
|
function jr(a, e, t, r, i, s) {
|
|
7544
|
-
return
|
|
7571
|
+
return u(), g("div");
|
|
7545
7572
|
}
|
|
7546
7573
|
const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
|
|
7547
7574
|
name: "IdmEcaZone",
|
|
@@ -7638,7 +7665,7 @@ const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
|
|
|
7638
7665
|
}
|
|
7639
7666
|
};
|
|
7640
7667
|
function Ur(a, e, t, r, i, s) {
|
|
7641
|
-
return
|
|
7668
|
+
return u(), g("div");
|
|
7642
7669
|
}
|
|
7643
7670
|
const Yr = /* @__PURE__ */ U(Gr, [["render", Ur]]);
|
|
7644
7671
|
const Kr = {
|
|
@@ -7684,7 +7711,7 @@ const Kr = {
|
|
|
7684
7711
|
if (t) {
|
|
7685
7712
|
this.showZone = !0, this.form = { ...t.properties };
|
|
7686
7713
|
const i = document.getElementById("idm-gl3-zone-info");
|
|
7687
|
-
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new
|
|
7714
|
+
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new Re.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
|
|
7688
7715
|
}
|
|
7689
7716
|
},
|
|
7690
7717
|
handleRender() {
|
|
@@ -7777,7 +7804,7 @@ const Kr = {
|
|
|
7777
7804
|
}, Xr = { id: "idm-gl3-zone-info" }, Jr = ["innerHTML"];
|
|
7778
7805
|
function qr(a, e, t, r, i, s) {
|
|
7779
7806
|
var n;
|
|
7780
|
-
return Fe((
|
|
7807
|
+
return Fe((u(), g("div", Xr, [
|
|
7781
7808
|
o("div", {
|
|
7782
7809
|
class: "iconfont close",
|
|
7783
7810
|
onClick: e[0] || (e[0] = (l) => i.showZone = !1)
|
|
@@ -7820,12 +7847,12 @@ const Zr = {
|
|
|
7820
7847
|
computed: {
|
|
7821
7848
|
computeLat() {
|
|
7822
7849
|
return function(a) {
|
|
7823
|
-
return
|
|
7850
|
+
return oe.lat2pretty(a, 4).pretty;
|
|
7824
7851
|
};
|
|
7825
7852
|
},
|
|
7826
7853
|
computeLng() {
|
|
7827
7854
|
return function(a) {
|
|
7828
|
-
return
|
|
7855
|
+
return oe.lng2pretty(a, 4).pretty;
|
|
7829
7856
|
};
|
|
7830
7857
|
}
|
|
7831
7858
|
},
|
|
@@ -7847,7 +7874,7 @@ const Zr = {
|
|
|
7847
7874
|
if (t) {
|
|
7848
7875
|
this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
|
|
7849
7876
|
const i = document.getElementById("port-info");
|
|
7850
|
-
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new
|
|
7877
|
+
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new Re.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
7851
7878
|
}
|
|
7852
7879
|
},
|
|
7853
7880
|
handleRender() {
|
|
@@ -7894,7 +7921,7 @@ const Zr = {
|
|
|
7894
7921
|
style: { "align-items": "flex-start" }
|
|
7895
7922
|
}, ss = { class: "meteo-forecast flex-end" };
|
|
7896
7923
|
function os(a, e, t, r, i, s) {
|
|
7897
|
-
return Fe((
|
|
7924
|
+
return Fe((u(), g("div", $r, [
|
|
7898
7925
|
o("div", {
|
|
7899
7926
|
class: "close iconfont",
|
|
7900
7927
|
onClick: e[0] || (e[0] = (n) => i.showPort = !1)
|
|
@@ -7902,19 +7929,19 @@ function os(a, e, t, r, i, s) {
|
|
|
7902
7929
|
o("div", es, [
|
|
7903
7930
|
o("div", ts, [
|
|
7904
7931
|
e[2] || (e[2] = o("label", null, "Name : ", -1)),
|
|
7905
|
-
o("span", null,
|
|
7932
|
+
o("span", null, E(i.form.name), 1)
|
|
7906
7933
|
]),
|
|
7907
7934
|
o("div", as, [
|
|
7908
7935
|
e[3] || (e[3] = o("label", null, "Position : ", -1)),
|
|
7909
|
-
o("span", null,
|
|
7936
|
+
o("span", null, E(s.computeLat(i.form.lat)) + ", " + E(s.computeLng(i.form.lng)), 1)
|
|
7910
7937
|
]),
|
|
7911
7938
|
o("div", is, [
|
|
7912
7939
|
e[4] || (e[4] = o("label", null, "LoCode : ", -1)),
|
|
7913
|
-
o("span", null,
|
|
7940
|
+
o("span", null, E(i.form.loCode || "-"), 1)
|
|
7914
7941
|
]),
|
|
7915
7942
|
o("div", rs, [
|
|
7916
7943
|
e[5] || (e[5] = o("label", null, "Region : ", -1)),
|
|
7917
|
-
o("span", null,
|
|
7944
|
+
o("span", null, E(i.form.zoneName || "-"), 1)
|
|
7918
7945
|
]),
|
|
7919
7946
|
o("div", ss, [
|
|
7920
7947
|
o("span", {
|
|
@@ -8000,7 +8027,7 @@ const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-39da1804
|
|
|
8000
8027
|
}
|
|
8001
8028
|
};
|
|
8002
8029
|
function hs(a, e, t, r, i, s) {
|
|
8003
|
-
return
|
|
8030
|
+
return u(), g("div");
|
|
8004
8031
|
}
|
|
8005
8032
|
const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
|
|
8006
8033
|
name: "IdmTimezone",
|
|
@@ -8171,7 +8198,7 @@ const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
|
|
|
8171
8198
|
}
|
|
8172
8199
|
};
|
|
8173
8200
|
function ps(a, e, t, r, i, s) {
|
|
8174
|
-
return
|
|
8201
|
+
return u(), g("div");
|
|
8175
8202
|
}
|
|
8176
8203
|
const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
|
|
8177
8204
|
name: "IdmVoluntaryReportingArea",
|
|
@@ -8265,7 +8292,7 @@ const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
|
|
|
8265
8292
|
}
|
|
8266
8293
|
};
|
|
8267
8294
|
function gs(a, e, t, r, i, s) {
|
|
8268
|
-
return
|
|
8295
|
+
return u(), g("div");
|
|
8269
8296
|
}
|
|
8270
8297
|
const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
|
|
8271
8298
|
name: "IdmSpecialArea",
|
|
@@ -8297,7 +8324,7 @@ const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
|
|
|
8297
8324
|
methods: {
|
|
8298
8325
|
handleRender() {
|
|
8299
8326
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
|
|
8300
|
-
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) =>
|
|
8327
|
+
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => oe.convertToMonotonicLng2(e));
|
|
8301
8328
|
}), this.map.addSource(this.source, {
|
|
8302
8329
|
type: "geojson",
|
|
8303
8330
|
data: this.area
|
|
@@ -8361,7 +8388,7 @@ const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
|
|
|
8361
8388
|
}
|
|
8362
8389
|
};
|
|
8363
8390
|
function As(a, e, t, r, i, s) {
|
|
8364
|
-
return
|
|
8391
|
+
return u(), g("div");
|
|
8365
8392
|
}
|
|
8366
8393
|
const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
|
|
8367
8394
|
name: "IdmTerminator",
|
|
@@ -8416,7 +8443,7 @@ const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
|
|
|
8416
8443
|
}
|
|
8417
8444
|
};
|
|
8418
8445
|
function bs(a, e, t, r, i, s) {
|
|
8419
|
-
return
|
|
8446
|
+
return u(), g("div");
|
|
8420
8447
|
}
|
|
8421
8448
|
const Ls = /* @__PURE__ */ U(vs, [["render", bs]]);
|
|
8422
8449
|
const Cs = {
|
|
@@ -8477,7 +8504,7 @@ const Cs = {
|
|
|
8477
8504
|
this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
8478
8505
|
},
|
|
8479
8506
|
handleMouseMove(a) {
|
|
8480
|
-
const e = a.lngLat, t =
|
|
8507
|
+
const e = a.lngLat, t = oe.lng2pretty(e.lng, 2), r = oe.lat2pretty(e.lat, 2);
|
|
8481
8508
|
this.lngLat = { lng: t, lat: r };
|
|
8482
8509
|
},
|
|
8483
8510
|
handleComputeLatLngs() {
|
|
@@ -8576,14 +8603,14 @@ const Cs = {
|
|
|
8576
8603
|
}
|
|
8577
8604
|
};
|
|
8578
8605
|
function xs(a, e, t, r, i, s) {
|
|
8579
|
-
return i.lngLat ? (
|
|
8606
|
+
return i.lngLat ? (u(), g("div", {
|
|
8580
8607
|
key: 0,
|
|
8581
8608
|
class: "lat-lng-tip",
|
|
8582
|
-
style:
|
|
8609
|
+
style: he({ right: i.right + "px", bottom: t.bottom })
|
|
8583
8610
|
}, [
|
|
8584
|
-
o("span", null,
|
|
8611
|
+
o("span", null, E(i.lngLat.lat.pretty), 1),
|
|
8585
8612
|
e[0] || (e[0] = o("span", null, ", ", -1)),
|
|
8586
|
-
o("span", null,
|
|
8613
|
+
o("span", null, E(i.lngLat.lng.pretty), 1)
|
|
8587
8614
|
], 4)) : J("", !0);
|
|
8588
8615
|
}
|
|
8589
8616
|
const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7"]]), _s = {
|
|
@@ -8652,41 +8679,41 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8652
8679
|
}
|
|
8653
8680
|
},
|
|
8654
8681
|
handleDrag(a) {
|
|
8655
|
-
var t, r, i, s, n, l, c,
|
|
8682
|
+
var t, r, i, s, n, l, c, d, h, p;
|
|
8656
8683
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
8657
8684
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8658
|
-
const
|
|
8659
|
-
this.pointMarkers[
|
|
8660
|
-
var
|
|
8661
|
-
return ((
|
|
8685
|
+
const v = this.geojson.filter((k) => k.id === e.split("-")[0])[0];
|
|
8686
|
+
this.pointMarkers[v.id].filter((k) => {
|
|
8687
|
+
var B;
|
|
8688
|
+
return ((B = k._element) == null ? void 0 : B.id) === e;
|
|
8662
8689
|
})[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]);
|
|
8663
|
-
let
|
|
8664
|
-
|
|
8690
|
+
let _;
|
|
8691
|
+
v.features.forEach((k, B) => {
|
|
8665
8692
|
if (k.geometry.type === "Point" && k.properties.id == e.split("-")[1]) {
|
|
8666
|
-
|
|
8693
|
+
_ = B;
|
|
8667
8694
|
return;
|
|
8668
8695
|
}
|
|
8669
8696
|
});
|
|
8670
|
-
const
|
|
8697
|
+
const f = v.features.filter((k) => k.geometry.type === "Point");
|
|
8671
8698
|
this.handleTmpPointUpdate(
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
{ lng: (
|
|
8675
|
-
|
|
8699
|
+
v,
|
|
8700
|
+
f[_ - 1],
|
|
8701
|
+
{ 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: f[_].properties },
|
|
8702
|
+
_ === f.length - 1 ? void 0 : f[_ + 1]
|
|
8676
8703
|
);
|
|
8677
8704
|
}
|
|
8678
8705
|
},
|
|
8679
8706
|
handleDragEnd(a) {
|
|
8680
|
-
var t, r, i, s, n, l, c,
|
|
8707
|
+
var t, r, i, s, n, l, c, d, h, p;
|
|
8681
8708
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
8682
8709
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8683
|
-
const
|
|
8684
|
-
this.pointMarkers[
|
|
8710
|
+
const v = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
|
|
8711
|
+
this.pointMarkers[v.id].filter((f) => {
|
|
8685
8712
|
var k;
|
|
8686
|
-
return ((k =
|
|
8713
|
+
return ((k = f._element) == null ? void 0 : k.id) === e;
|
|
8687
8714
|
})[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]);
|
|
8688
|
-
const
|
|
8689
|
-
|
|
8715
|
+
const _ = v.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
|
|
8716
|
+
_.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], v.features = v.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(v);
|
|
8690
8717
|
}
|
|
8691
8718
|
},
|
|
8692
8719
|
handleContextmenu(a) {
|
|
@@ -8695,9 +8722,9 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8695
8722
|
const e = (s = (i = (r = a.originalEvent) == null ? void 0 : r.target) == null ? void 0 : i.parentElement) == null ? void 0 : s.id;
|
|
8696
8723
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8697
8724
|
const l = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
|
|
8698
|
-
if (l.length > 2 && l.filter((
|
|
8699
|
-
const
|
|
8700
|
-
|
|
8725
|
+
if (l.length > 2 && l.filter((d) => d.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
8726
|
+
const d = document.createElement("div");
|
|
8727
|
+
d.className = "point-contextmenu-marker", d.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new Re.Marker(d).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
|
|
8701
8728
|
}
|
|
8702
8729
|
}
|
|
8703
8730
|
},
|
|
@@ -8706,15 +8733,15 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8706
8733
|
(t = this.contextmenu) == null || t.remove();
|
|
8707
8734
|
const e = a.originalEvent.target.className;
|
|
8708
8735
|
if (e === "marker-close") {
|
|
8709
|
-
const c = (i = (r = a.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id,
|
|
8710
|
-
|
|
8736
|
+
const c = (i = (r = a.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, d = this.geojson.filter((h) => h.id === c)[0];
|
|
8737
|
+
d && this.handleClear(d, !0), this.geojson = this.geojson.filter((h) => h.id !== c), !this.show && !((s = this.geojson) != null && s.some((h) => h.closed)) && this.handleUnbind();
|
|
8711
8738
|
} else if (e === "del-point") {
|
|
8712
|
-
const c = (l = (n = a.originalEvent.target.id) == null ? void 0 : n.replace("del-", "")) == null ? void 0 : l.split("-"),
|
|
8713
|
-
|
|
8739
|
+
const c = (l = (n = a.originalEvent.target.id) == null ? void 0 : n.replace("del-", "")) == null ? void 0 : l.split("-"), d = this.geojson.filter((h) => h.id === c[0])[0];
|
|
8740
|
+
d.features = d.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== c[1]), this.handlePointUpdate(d);
|
|
8714
8741
|
} else if (e !== "marker-label" && this.show) {
|
|
8715
8742
|
let c = this.geojson.at(-1);
|
|
8716
8743
|
c || (c = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((h) => h.geometry.type === "Point");
|
|
8717
|
-
const
|
|
8744
|
+
const d = S.feature(
|
|
8718
8745
|
{
|
|
8719
8746
|
type: "Point",
|
|
8720
8747
|
coordinates: [a.lngLat.lng, a.lngLat.lat]
|
|
@@ -8724,7 +8751,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8724
8751
|
mode: this.navigation
|
|
8725
8752
|
}
|
|
8726
8753
|
);
|
|
8727
|
-
c.features.push(
|
|
8754
|
+
c.features.push(d), this.handlePointUpdate(c);
|
|
8728
8755
|
}
|
|
8729
8756
|
},
|
|
8730
8757
|
handlePointUpdate(a) {
|
|
@@ -8733,12 +8760,12 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8733
8760
|
let t = 0;
|
|
8734
8761
|
const r = [];
|
|
8735
8762
|
for (let i = 1; i < e.length; i++) {
|
|
8736
|
-
const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] },
|
|
8737
|
-
t =
|
|
8738
|
-
let
|
|
8739
|
-
l.mode === "RL" ?
|
|
8740
|
-
const
|
|
8741
|
-
|
|
8763
|
+
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);
|
|
8764
|
+
t = oe.roundPrecision(t + h, 2);
|
|
8765
|
+
let v;
|
|
8766
|
+
l.mode === "RL" ? v = oe.convertToMonotonicLng([c, d]) : v = oe.convertToMonotonicLng(je.interpolateCoordinates(c, d, 200));
|
|
8767
|
+
const C = S.lineString(v.map((_) => [_.lng, _.lat]));
|
|
8768
|
+
C.properties.dist = h, C.properties.bearing = p, C.properties.total = t, r.push(C);
|
|
8742
8769
|
}
|
|
8743
8770
|
e.push(...r), a.total = t;
|
|
8744
8771
|
}
|
|
@@ -8748,20 +8775,20 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8748
8775
|
const i = S.featureCollection([]);
|
|
8749
8776
|
let s, n;
|
|
8750
8777
|
if (e) {
|
|
8751
|
-
const c = e.properties,
|
|
8752
|
-
s =
|
|
8753
|
-
let
|
|
8754
|
-
c.mode === "RL" ?
|
|
8755
|
-
const
|
|
8756
|
-
|
|
8778
|
+
const c = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
|
|
8779
|
+
s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8780
|
+
let p;
|
|
8781
|
+
c.mode === "RL" ? p = oe.convertToMonotonicLng([d, h]) : p = oe.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
|
|
8782
|
+
const v = S.lineString(p.map((C) => [C.lng, C.lat]));
|
|
8783
|
+
v.properties.dist = s, v.properties.bearing = n, i.features.push(v);
|
|
8757
8784
|
}
|
|
8758
8785
|
if (r) {
|
|
8759
|
-
const c = t.properties,
|
|
8760
|
-
s =
|
|
8761
|
-
let
|
|
8762
|
-
c.mode === "RL" ?
|
|
8763
|
-
const
|
|
8764
|
-
|
|
8786
|
+
const c = t.properties, d = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
8787
|
+
s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8788
|
+
let p;
|
|
8789
|
+
c.mode === "RL" ? p = oe.convertToMonotonicLng([d, h]) : p = oe.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
|
|
8790
|
+
const v = S.lineString(p.map((C) => [C.lng, C.lat]));
|
|
8791
|
+
v.properties.dist = s, v.properties.bearing = n, i.features.push(v);
|
|
8765
8792
|
}
|
|
8766
8793
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
8767
8794
|
type: "geojson",
|
|
@@ -8801,11 +8828,11 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8801
8828
|
}
|
|
8802
8829
|
});
|
|
8803
8830
|
let l;
|
|
8804
|
-
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${
|
|
8831
|
+
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${oe.roundPrecision((a.total ?? 0) + s, 1)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
|
|
8805
8832
|
this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
8806
8833
|
else {
|
|
8807
8834
|
const c = document.createElement("div");
|
|
8808
|
-
c.className = "tip-marker", c.innerHTML = l, this.tipMarker = new
|
|
8835
|
+
c.className = "tip-marker", c.innerHTML = l, this.tipMarker = new Re.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
|
|
8809
8836
|
}
|
|
8810
8837
|
},
|
|
8811
8838
|
handleMove(a) {
|
|
@@ -8863,26 +8890,26 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8863
8890
|
for (const n of s) {
|
|
8864
8891
|
const l = document.createElement("div");
|
|
8865
8892
|
l.id = `${a.id}-${n.properties.id}`, l.className = `${a.closed ? "point-marker closed" : "point-marker"}`, l.innerHTML = '<div class="marker-circle"></div>';
|
|
8866
|
-
const c = new
|
|
8893
|
+
const c = new Re.Marker({ element: l, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
8867
8894
|
c.on("drag", this.handleDrag), c.on("dragend", this.handleDragEnd), this.pointMarkers[a.id] ? this.pointMarkers[a.id].push(c) : this.pointMarkers[a.id] = [c];
|
|
8868
8895
|
}
|
|
8869
8896
|
if (a.closed) {
|
|
8870
|
-
const n = s.at(-1), c = a.features.filter((h) => h.geometry.type === "LineString").at(-1),
|
|
8871
|
-
|
|
8897
|
+
const n = s.at(-1), c = a.features.filter((h) => h.geometry.type === "LineString").at(-1), d = document.createElement("div");
|
|
8898
|
+
d.className = "point-summary-marker", d.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Total: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new Re.Marker(d).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
8872
8899
|
}
|
|
8873
8900
|
}
|
|
8874
8901
|
},
|
|
8875
8902
|
handleClear(a, e = !0) {
|
|
8876
|
-
var s, n, l, c,
|
|
8903
|
+
var s, n, l, c, d, h, p, v, C;
|
|
8877
8904
|
const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
|
|
8878
|
-
(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), (
|
|
8879
|
-
|
|
8880
|
-
}), this.pointMarkers[a.id] = [], (
|
|
8905
|
+
(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((_) => {
|
|
8906
|
+
_ == null || _.remove();
|
|
8907
|
+
}), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((v = this.map) != null && v.getSource(t)) && this.map.removeSource(t), e && ((C = this.map) != null && C.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
8881
8908
|
}
|
|
8882
8909
|
}
|
|
8883
8910
|
};
|
|
8884
8911
|
function Bs(a, e, t, r, i, s) {
|
|
8885
|
-
return
|
|
8912
|
+
return u(), g("div");
|
|
8886
8913
|
}
|
|
8887
8914
|
const Is = /* @__PURE__ */ U(_s, [["render", Bs]]);
|
|
8888
8915
|
const Es = {
|
|
@@ -8943,10 +8970,10 @@ const Es = {
|
|
|
8943
8970
|
}, ks = { key: 0 }, Ds = { class: "bar-item" };
|
|
8944
8971
|
function zs(a, e, t, r, i, s) {
|
|
8945
8972
|
const n = R("ElTooltip");
|
|
8946
|
-
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (
|
|
8973
|
+
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (u(), g("div", ks, [
|
|
8947
8974
|
o("div", {
|
|
8948
8975
|
class: "menu-bar-box",
|
|
8949
|
-
style:
|
|
8976
|
+
style: he({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
8950
8977
|
}, [
|
|
8951
8978
|
o("div", Ds, [
|
|
8952
8979
|
H(n, {
|
|
@@ -9242,17 +9269,17 @@ const js = {
|
|
|
9242
9269
|
},
|
|
9243
9270
|
enc: {
|
|
9244
9271
|
handler(a, e) {
|
|
9245
|
-
var t, r, i, s, n, l, c,
|
|
9246
|
-
a && this.map.getZoom() > 3 ? ((r = (t = this.map) == null ? void 0 : t.getLayer(a)) == null || r.setLayoutProperty("visibility", "visible"), (s = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || s.setLayoutProperty("visibility", "none")) : ((l = (n = this.map) == null ? void 0 : n.getLayer("i4")) == null || l.setLayoutProperty("visibility", "none"), (
|
|
9272
|
+
var t, r, i, s, n, l, c, d;
|
|
9273
|
+
a && this.map.getZoom() > 3 ? ((r = (t = this.map) == null ? void 0 : t.getLayer(a)) == null || r.setLayoutProperty("visibility", "visible"), (s = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || s.setLayoutProperty("visibility", "none")) : ((l = (n = this.map) == null ? void 0 : n.getLayer("i4")) == null || l.setLayoutProperty("visibility", "none"), (d = (c = this.map) == null ? void 0 : c.getLayer("hi")) == null || d.setLayoutProperty("visibility", "none"));
|
|
9247
9274
|
}
|
|
9248
9275
|
},
|
|
9249
9276
|
activeWeatherLayers: {
|
|
9250
9277
|
handler() {
|
|
9251
|
-
var t, r, i, s, n, l, c,
|
|
9278
|
+
var t, r, i, s, n, l, c, d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T;
|
|
9252
9279
|
if (!this.map)
|
|
9253
9280
|
return !1;
|
|
9254
9281
|
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");
|
|
9255
|
-
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")), (
|
|
9282
|
+
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) && ((v = this.map) != null && v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((_ = this.map) == null || _.moveLayer((C = this.viewport) == null ? void 0 : C.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((k = this.map) == null || k.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (f = this.viewport) == null ? void 0 : f.rampColorLayer))) : ((A = (B = this.map) == null ? void 0 : B.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || A.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (m = (w = this.map) == null ? void 0 : w.getLayer(this.enc)) == null || m.setLayoutProperty("visibility", "visible") : ((y = (L = this.map) == null ? void 0 : L.getLayer("i4")) == null || y.setLayoutProperty("visibility", "none"), (T = (b = this.map) == null ? void 0 : b.getLayer("hi")) == null || T.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
|
|
9256
9283
|
},
|
|
9257
9284
|
immediate: !0
|
|
9258
9285
|
},
|
|
@@ -9304,87 +9331,87 @@ const js = {
|
|
|
9304
9331
|
},
|
|
9305
9332
|
methods: {
|
|
9306
9333
|
async fetchWeatherLayers(a = { tropicals: !1 }) {
|
|
9307
|
-
var i, s, n, l, c,
|
|
9334
|
+
var i, s, n, l, c, d, h, p, v;
|
|
9308
9335
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
9309
9336
|
let t = 0, r = 0;
|
|
9310
9337
|
if (this.map) {
|
|
9311
|
-
const
|
|
9338
|
+
const C = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, _ = (s = this.map) == null ? void 0 : s.getBounds(), f = `${_._sw.lng},${_._sw.lat},${_._ne.lng},${_._ne.lat}`;
|
|
9312
9339
|
if (this.particleFactor && ((n = this.$refs.layer) != null && n.autoActive)) {
|
|
9313
|
-
const k = Ze.WEATHER_LAYERS.find((
|
|
9314
|
-
var
|
|
9315
|
-
return ((
|
|
9340
|
+
const k = Ze.WEATHER_LAYERS.find((B) => {
|
|
9341
|
+
var A;
|
|
9342
|
+
return ((A = B.peer) == null ? void 0 : A.weight) === this.particleFactor.weight;
|
|
9316
9343
|
});
|
|
9317
9344
|
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & k.weight ? this.weatherWeight : this.weatherWeight + k.weight : this.weatherWeight = this.weatherWeight & k.weight ? this.weatherWeight - k.weight : this.weatherWeight;
|
|
9318
9345
|
}
|
|
9319
9346
|
if (this.weatherWeight > 0) {
|
|
9320
|
-
let k = this.weatherWeight,
|
|
9321
|
-
if (a.tropicals || this.weatherWeight & 256 && (
|
|
9322
|
-
const
|
|
9347
|
+
let k = this.weatherWeight, B;
|
|
9348
|
+
if (a.tropicals || this.weatherWeight & 256 && (B = this.weatherLayers.tropicals, B && (k -= 256, B.version = Math.random() + 1)), k > 0) {
|
|
9349
|
+
const A = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], w = await Qe.get(`${A}/api/arc/weather/layers2/links?l=${k}&v=${this.source}&z=${C}&bbox=${f}&t=${this.ts}`, {
|
|
9323
9350
|
headers: {
|
|
9324
9351
|
Authorization: this.token || this.defaultMeteoToken
|
|
9325
9352
|
}
|
|
9326
9353
|
});
|
|
9327
|
-
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l =
|
|
9328
|
-
const
|
|
9329
|
-
for (const
|
|
9330
|
-
|
|
9331
|
-
Qe.get(
|
|
9354
|
+
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l = w == null ? void 0 : w.data) == null ? void 0 : l.code) === 0) {
|
|
9355
|
+
const m = (c = w == null ? void 0 : w.data) == null ? void 0 : c.data, L = [];
|
|
9356
|
+
for (const b in m)
|
|
9357
|
+
b !== "tropicals" && L.push(
|
|
9358
|
+
Qe.get(m[b], {
|
|
9332
9359
|
headers: {
|
|
9333
9360
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9334
|
-
key:
|
|
9361
|
+
key: b
|
|
9335
9362
|
},
|
|
9336
|
-
responseType: /\.(jpg|png)$/.test(
|
|
9363
|
+
responseType: /\.(jpg|png)$/.test(m[b]) ? "blob" : "json"
|
|
9337
9364
|
}).catch((T) => {
|
|
9338
|
-
console.log(`[${
|
|
9365
|
+
console.log(`[${b}] fetch layer error: ${T}`);
|
|
9339
9366
|
})
|
|
9340
9367
|
);
|
|
9341
|
-
const y = await Promise.all(
|
|
9342
|
-
this.weatherLayers = {}, y.map((
|
|
9368
|
+
const y = await Promise.all(L);
|
|
9369
|
+
this.weatherLayers = {}, y.map((b) => {
|
|
9343
9370
|
var F, N, j, G;
|
|
9344
|
-
const T = ((F =
|
|
9371
|
+
const T = ((F = b == null ? void 0 : b.data) == null ? void 0 : F.data) || (b == null ? void 0 : b.data), D = (j = (N = b == null ? void 0 : b.config) == null ? void 0 : N.headers) == null ? void 0 : j.key;
|
|
9345
9372
|
D && T && (this.weatherLayers[D] = {
|
|
9346
9373
|
raw: T,
|
|
9347
|
-
type: ((G =
|
|
9348
|
-
etime:
|
|
9374
|
+
type: ((G = b == null ? void 0 : b.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
|
|
9375
|
+
etime: w.data.etime
|
|
9349
9376
|
});
|
|
9350
|
-
}),
|
|
9377
|
+
}), m.tropicals && Qe.get(m.tropicals, {
|
|
9351
9378
|
headers: {
|
|
9352
9379
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9353
9380
|
key: "tropicals"
|
|
9354
9381
|
}
|
|
9355
|
-
}).then((
|
|
9382
|
+
}).then((b) => {
|
|
9356
9383
|
var F, N, j;
|
|
9357
|
-
const T = ct.convert2Geojson(((F =
|
|
9384
|
+
const T = ct.convert2Geojson(((F = b == null ? void 0 : b.data) == null ? void 0 : F.data) || (b == null ? void 0 : b.data)), D = (j = (N = b == null ? void 0 : b.config) == null ? void 0 : N.headers) == null ? void 0 : j.key;
|
|
9358
9385
|
this.weatherLayers[D] = {
|
|
9359
9386
|
data: T,
|
|
9360
9387
|
active: !0,
|
|
9361
9388
|
cached: !1,
|
|
9362
9389
|
type: "json",
|
|
9363
|
-
etime:
|
|
9390
|
+
etime: w.data.etime,
|
|
9364
9391
|
version: Math.random() + 1
|
|
9365
9392
|
};
|
|
9366
9393
|
});
|
|
9367
9394
|
}
|
|
9368
9395
|
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"]) {
|
|
9369
|
-
const
|
|
9396
|
+
const m = (d = this.weatherLayers["swell-direction"]) == null ? void 0 : d.raw, L = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
|
|
9370
9397
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
9371
9398
|
type: "json",
|
|
9372
|
-
direction:
|
|
9373
|
-
height: { raw:
|
|
9374
|
-
etime:
|
|
9399
|
+
direction: m,
|
|
9400
|
+
height: { raw: L },
|
|
9401
|
+
etime: w.data.etime
|
|
9375
9402
|
};
|
|
9376
9403
|
}
|
|
9377
9404
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
9378
|
-
const
|
|
9405
|
+
const m = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, L = (v = this.weatherLayers["current-speed"]) == null ? void 0 : v.raw;
|
|
9379
9406
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
9380
9407
|
type: "json",
|
|
9381
|
-
direction:
|
|
9382
|
-
speed: { raw:
|
|
9383
|
-
etime:
|
|
9408
|
+
direction: m,
|
|
9409
|
+
speed: { raw: L },
|
|
9410
|
+
etime: w.data.etime
|
|
9384
9411
|
};
|
|
9385
9412
|
}
|
|
9386
9413
|
}
|
|
9387
|
-
|
|
9414
|
+
B && (B.etime = this.ts, B.cached = !0, this.weatherLayers.tropicals = B);
|
|
9388
9415
|
}
|
|
9389
9416
|
this.handleWeatherLayerToggle(), this.handleDrawWeather4Json();
|
|
9390
9417
|
}
|
|
@@ -9395,58 +9422,58 @@ const js = {
|
|
|
9395
9422
|
if (this.map) {
|
|
9396
9423
|
let s = this.otherWeight;
|
|
9397
9424
|
if (s) {
|
|
9398
|
-
let n = !1, l = !1, c = !1,
|
|
9399
|
-
if (this.otherWeight & 2048 && (s = this.otherWeight - 2048, n = !0), this.otherWeight & 8192 && (s = s - 8192, l = !0), this.otherWeight & 16384 && (s = s - 16384, c = !0), this.otherWeight & 32768 && (s = s - 32768,
|
|
9425
|
+
let n = !1, l = !1, c = !1, d = !1;
|
|
9426
|
+
if (this.otherWeight & 2048 && (s = this.otherWeight - 2048, n = !0), this.otherWeight & 8192 && (s = s - 8192, l = !0), this.otherWeight & 16384 && (s = s - 16384, c = !0), this.otherWeight & 32768 && (s = s - 32768, d = !0), s) {
|
|
9400
9427
|
if (a.all) {
|
|
9401
|
-
const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))],
|
|
9428
|
+
const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], p = await Qe.get(`${h}/api/arc/other/layers/links?l=${s}&t=${this.ts}`, {
|
|
9402
9429
|
headers: {
|
|
9403
9430
|
Authorization: this.token || this.defaultMeteoToken
|
|
9404
9431
|
}
|
|
9405
9432
|
});
|
|
9406
|
-
if (((e =
|
|
9407
|
-
const
|
|
9408
|
-
for (const
|
|
9409
|
-
|
|
9410
|
-
Qe.get(
|
|
9433
|
+
if (((e = p == null ? void 0 : p.data) == null ? void 0 : e.code) === 0) {
|
|
9434
|
+
const v = (t = p == null ? void 0 : p.data) == null ? void 0 : t.data, C = [];
|
|
9435
|
+
for (const f in v)
|
|
9436
|
+
C.push(
|
|
9437
|
+
Qe.get(v[f], {
|
|
9411
9438
|
headers: {
|
|
9412
9439
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9413
|
-
key:
|
|
9440
|
+
key: f
|
|
9414
9441
|
}
|
|
9415
9442
|
})
|
|
9416
9443
|
);
|
|
9417
|
-
const
|
|
9418
|
-
this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute:
|
|
9419
|
-
var
|
|
9420
|
-
const k = ((
|
|
9421
|
-
this.otherLayers[
|
|
9444
|
+
const _ = await Promise.all(C);
|
|
9445
|
+
this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d }, _.map((f) => {
|
|
9446
|
+
var A, w, m;
|
|
9447
|
+
const k = ((A = f == null ? void 0 : f.data) == null ? void 0 : A.data) || (f == null ? void 0 : f.data), B = (m = (w = f == null ? void 0 : f.config) == null ? void 0 : w.headers) == null ? void 0 : m.key;
|
|
9448
|
+
this.otherLayers[B] = k;
|
|
9422
9449
|
});
|
|
9423
9450
|
}
|
|
9424
9451
|
} else if (a.dayNight && s & 1024) {
|
|
9425
|
-
const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))],
|
|
9452
|
+
const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], p = await Qe.get(`${h}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
9426
9453
|
headers: {
|
|
9427
9454
|
Authorization: this.token || this.defaultMeteoToken
|
|
9428
9455
|
}
|
|
9429
9456
|
});
|
|
9430
|
-
if (((r =
|
|
9431
|
-
const
|
|
9432
|
-
for (const
|
|
9433
|
-
|
|
9434
|
-
Qe.get(
|
|
9457
|
+
if (((r = p == null ? void 0 : p.data) == null ? void 0 : r.code) === 0) {
|
|
9458
|
+
const v = (i = p == null ? void 0 : p.data) == null ? void 0 : i.data, C = [];
|
|
9459
|
+
for (const f in v)
|
|
9460
|
+
C.push(
|
|
9461
|
+
Qe.get(v[f], {
|
|
9435
9462
|
headers: {
|
|
9436
9463
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9437
|
-
key:
|
|
9464
|
+
key: f
|
|
9438
9465
|
}
|
|
9439
9466
|
})
|
|
9440
9467
|
);
|
|
9441
|
-
(await Promise.all(
|
|
9442
|
-
var
|
|
9443
|
-
const k = ((
|
|
9444
|
-
this.otherLayers[
|
|
9468
|
+
(await Promise.all(C)).map((f) => {
|
|
9469
|
+
var A, w, m;
|
|
9470
|
+
const k = ((A = f == null ? void 0 : f.data) == null ? void 0 : A.data) || (f == null ? void 0 : f.data), B = (m = (w = f == null ? void 0 : f.config) == null ? void 0 : w.headers) == null ? void 0 : m.key;
|
|
9471
|
+
this.otherLayers[B] = k;
|
|
9445
9472
|
});
|
|
9446
9473
|
}
|
|
9447
9474
|
}
|
|
9448
9475
|
} else
|
|
9449
|
-
this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute:
|
|
9476
|
+
this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d };
|
|
9450
9477
|
} else
|
|
9451
9478
|
this.otherLayers = {};
|
|
9452
9479
|
this.handleBeforeLayerToggle();
|
|
@@ -9462,7 +9489,7 @@ const js = {
|
|
|
9462
9489
|
this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
|
|
9463
9490
|
},
|
|
9464
9491
|
handleRampColorInitial() {
|
|
9465
|
-
var a, e, t, r, i, s, n, l, c,
|
|
9492
|
+
var a, e, t, r, i, s, n, l, c, d, h, p;
|
|
9466
9493
|
this.viewport.map.getSource((a = this.viewport) == null ? void 0 : a.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
9467
9494
|
type: "canvas",
|
|
9468
9495
|
canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
|
|
@@ -9483,11 +9510,11 @@ const js = {
|
|
|
9483
9510
|
canvas: (c = this.viewport) == null ? void 0 : c.particleCanvas,
|
|
9484
9511
|
animate: !0,
|
|
9485
9512
|
coordinates: this.viewport.getBoundLngLat()
|
|
9486
|
-
}), this.viewport.map.getLayer((
|
|
9513
|
+
}), this.viewport.map.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) || this.viewport.map.addLayer(
|
|
9487
9514
|
{
|
|
9488
9515
|
type: "raster",
|
|
9489
9516
|
id: (h = this.viewport) == null ? void 0 : h.particleLayer,
|
|
9490
|
-
source: (
|
|
9517
|
+
source: (p = this.viewport) == null ? void 0 : p.particleSource,
|
|
9491
9518
|
layout: {
|
|
9492
9519
|
visibility: "none"
|
|
9493
9520
|
}
|
|
@@ -9496,253 +9523,253 @@ const js = {
|
|
|
9496
9523
|
);
|
|
9497
9524
|
},
|
|
9498
9525
|
handleDrawWeather4Json() {
|
|
9499
|
-
var
|
|
9526
|
+
var d, h, p, v, C, _;
|
|
9500
9527
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
9501
9528
|
let e = 0, t = 0;
|
|
9502
|
-
const r = (
|
|
9503
|
-
for (const
|
|
9529
|
+
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = oe.convertToStdLng(r._sw.lng), n = oe.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
|
|
9530
|
+
for (const f in this.weatherLayers) {
|
|
9504
9531
|
let k = !1;
|
|
9505
|
-
if (this.weatherLayers[
|
|
9506
|
-
let
|
|
9507
|
-
if (
|
|
9532
|
+
if (this.weatherLayers[f].active && this.weatherLayers[f].type === "json") {
|
|
9533
|
+
let B = [];
|
|
9534
|
+
if (f === "swell") {
|
|
9508
9535
|
k = !0;
|
|
9509
|
-
const
|
|
9510
|
-
for (const
|
|
9511
|
-
if (
|
|
9512
|
-
const
|
|
9513
|
-
s > n ?
|
|
9536
|
+
const A = ((h = this.weatherLayers[f]) == null ? void 0 : h.direction) || {};
|
|
9537
|
+
for (const m in A)
|
|
9538
|
+
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9539
|
+
const L = A[m].lng;
|
|
9540
|
+
s > n ? L.forEach((y, b) => {
|
|
9514
9541
|
var T, D, F, N, j, G;
|
|
9515
9542
|
if (i < 2) {
|
|
9516
9543
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9517
|
-
const W = S.point([y,
|
|
9518
|
-
val: ((T =
|
|
9519
|
-
spd: (F =
|
|
9544
|
+
const W = S.point([y, m], {
|
|
9545
|
+
val: ((T = A[m].val) == null ? void 0 : T[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
|
|
9546
|
+
spd: (F = A[m].spd) == null ? void 0 : F[b]
|
|
9520
9547
|
});
|
|
9521
|
-
|
|
9548
|
+
B.push(W);
|
|
9522
9549
|
}
|
|
9523
9550
|
} else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9524
|
-
const W = S.point([y,
|
|
9525
|
-
val: ((N =
|
|
9526
|
-
spd: (G =
|
|
9551
|
+
const W = S.point([y, m], {
|
|
9552
|
+
val: ((N = A[m].val) == null ? void 0 : N[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
|
|
9553
|
+
spd: (G = A[m].spd) == null ? void 0 : G[b]
|
|
9527
9554
|
});
|
|
9528
|
-
|
|
9555
|
+
B.push(W);
|
|
9529
9556
|
}
|
|
9530
|
-
}) :
|
|
9557
|
+
}) : L.forEach((y, b) => {
|
|
9531
9558
|
var T, D, F, N, j, G;
|
|
9532
9559
|
if (s < 2) {
|
|
9533
9560
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9534
|
-
const W = S.point([y,
|
|
9535
|
-
val: ((T =
|
|
9536
|
-
spd: (F =
|
|
9561
|
+
const W = S.point([y, m], {
|
|
9562
|
+
val: ((T = A[m].val) == null ? void 0 : T[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
|
|
9563
|
+
spd: (F = A[m].spd) == null ? void 0 : F[b]
|
|
9537
9564
|
});
|
|
9538
|
-
|
|
9565
|
+
B.push(W);
|
|
9539
9566
|
}
|
|
9540
9567
|
} else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9541
|
-
const W = S.point([y,
|
|
9542
|
-
val: ((N =
|
|
9543
|
-
spd: (G =
|
|
9568
|
+
const W = S.point([y, m], {
|
|
9569
|
+
val: ((N = A[m].val) == null ? void 0 : N[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
|
|
9570
|
+
spd: (G = A[m].spd) == null ? void 0 : G[b]
|
|
9544
9571
|
});
|
|
9545
|
-
|
|
9572
|
+
B.push(W);
|
|
9546
9573
|
}
|
|
9547
9574
|
});
|
|
9548
9575
|
}
|
|
9549
9576
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell direction elapsed: ", t, ", total: ", e += t);
|
|
9550
|
-
const
|
|
9551
|
-
if (
|
|
9552
|
-
if (!
|
|
9553
|
-
const
|
|
9554
|
-
for (const
|
|
9555
|
-
const y =
|
|
9556
|
-
for (const
|
|
9557
|
-
|
|
9558
|
-
S.lineString(
|
|
9559
|
-
val: Number(
|
|
9577
|
+
const w = this.weatherLayers[f].height;
|
|
9578
|
+
if (w) {
|
|
9579
|
+
if (!w.data) {
|
|
9580
|
+
const m = [];
|
|
9581
|
+
for (const L in (p = w.raw) == null ? void 0 : p.LineString) {
|
|
9582
|
+
const y = w.raw.LineString[L];
|
|
9583
|
+
for (const b of y)
|
|
9584
|
+
m.push(
|
|
9585
|
+
S.lineString(b, {
|
|
9586
|
+
val: Number(L)
|
|
9560
9587
|
})
|
|
9561
9588
|
);
|
|
9562
|
-
|
|
9589
|
+
w.data = S.featureCollection(m);
|
|
9563
9590
|
}
|
|
9564
9591
|
}
|
|
9565
|
-
if (
|
|
9566
|
-
const
|
|
9567
|
-
|
|
9592
|
+
if (w.data) {
|
|
9593
|
+
const m = this.handleBboxClip(w.data, r);
|
|
9594
|
+
B = B.concat(m);
|
|
9568
9595
|
}
|
|
9569
9596
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
|
|
9570
9597
|
}
|
|
9571
|
-
} else if (
|
|
9598
|
+
} else if (f === "current" && this.showCurrentIsoband) {
|
|
9572
9599
|
k = !0;
|
|
9573
|
-
const
|
|
9574
|
-
for (const
|
|
9575
|
-
if (
|
|
9576
|
-
const
|
|
9577
|
-
s > n ?
|
|
9600
|
+
const A = ((v = this.weatherLayers[f]) == null ? void 0 : v.direction) || {};
|
|
9601
|
+
for (const m in A)
|
|
9602
|
+
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9603
|
+
const L = A[m].lng;
|
|
9604
|
+
s > n ? L.forEach((y, b) => {
|
|
9578
9605
|
var T, D, F, N, j, G;
|
|
9579
9606
|
if (i < 2) {
|
|
9580
9607
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9581
|
-
const W = S.point([y,
|
|
9582
|
-
val: ((T =
|
|
9583
|
-
spd: (F =
|
|
9608
|
+
const W = S.point([y, m], {
|
|
9609
|
+
val: ((T = A[m].val) == null ? void 0 : T[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
|
|
9610
|
+
spd: (F = A[m].spd) == null ? void 0 : F[b]
|
|
9584
9611
|
});
|
|
9585
|
-
|
|
9612
|
+
B.push(W);
|
|
9586
9613
|
}
|
|
9587
9614
|
} else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9588
|
-
const W = S.point([y,
|
|
9589
|
-
val: ((N =
|
|
9590
|
-
spd: (G =
|
|
9615
|
+
const W = S.point([y, m], {
|
|
9616
|
+
val: ((N = A[m].val) == null ? void 0 : N[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
|
|
9617
|
+
spd: (G = A[m].spd) == null ? void 0 : G[b]
|
|
9591
9618
|
});
|
|
9592
|
-
|
|
9619
|
+
B.push(W);
|
|
9593
9620
|
}
|
|
9594
|
-
}) :
|
|
9621
|
+
}) : L.forEach((y, b) => {
|
|
9595
9622
|
var T, D, F, N, j, G;
|
|
9596
9623
|
if (s < 2) {
|
|
9597
9624
|
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
|
|
9598
|
-
const W = S.point([y,
|
|
9599
|
-
val: ((T =
|
|
9600
|
-
spd: (F =
|
|
9625
|
+
const W = S.point([y, m], {
|
|
9626
|
+
val: ((T = A[m].val) == null ? void 0 : T[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
|
|
9627
|
+
spd: (F = A[m].spd) == null ? void 0 : F[b]
|
|
9601
9628
|
});
|
|
9602
|
-
|
|
9629
|
+
B.push(W);
|
|
9603
9630
|
}
|
|
9604
9631
|
} else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9605
|
-
const W = S.point([y,
|
|
9606
|
-
val: ((N =
|
|
9607
|
-
spd: (G =
|
|
9632
|
+
const W = S.point([y, m], {
|
|
9633
|
+
val: ((N = A[m].val) == null ? void 0 : N[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
|
|
9634
|
+
spd: (G = A[m].spd) == null ? void 0 : G[b]
|
|
9608
9635
|
});
|
|
9609
|
-
|
|
9636
|
+
B.push(W);
|
|
9610
9637
|
}
|
|
9611
9638
|
});
|
|
9612
9639
|
}
|
|
9613
9640
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current direction elapsed: ", t, ", total: ", e += t);
|
|
9614
|
-
const
|
|
9615
|
-
if (
|
|
9616
|
-
if (!
|
|
9617
|
-
const
|
|
9618
|
-
for (const y in (
|
|
9619
|
-
const
|
|
9620
|
-
for (const T of
|
|
9621
|
-
|
|
9641
|
+
const w = this.weatherLayers[f].speed;
|
|
9642
|
+
if (w) {
|
|
9643
|
+
if (!w.data) {
|
|
9644
|
+
const L = [];
|
|
9645
|
+
for (const y in (C = w.raw) == null ? void 0 : C.Polygon) {
|
|
9646
|
+
const b = w.raw.Polygon[y];
|
|
9647
|
+
for (const T of b)
|
|
9648
|
+
L.push(
|
|
9622
9649
|
S.polygon(T, {
|
|
9623
9650
|
val: Number(y)
|
|
9624
9651
|
})
|
|
9625
9652
|
);
|
|
9626
9653
|
}
|
|
9627
|
-
|
|
9654
|
+
w.data = S.featureCollection(L);
|
|
9628
9655
|
}
|
|
9629
|
-
const
|
|
9630
|
-
|
|
9656
|
+
const m = i < this.zoom ? w.data.features.filter((L) => L.properties.val > 0.5) : w.data.features;
|
|
9657
|
+
B = B.concat(m), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
|
|
9631
9658
|
}
|
|
9632
|
-
} else if (
|
|
9659
|
+
} else if (f === "wind" && this.showWindFeather) {
|
|
9633
9660
|
k = !0;
|
|
9634
|
-
const
|
|
9635
|
-
for (const
|
|
9636
|
-
if (
|
|
9637
|
-
const
|
|
9638
|
-
s > n ?
|
|
9639
|
-
var
|
|
9661
|
+
const A = this.weatherLayers.wind.raw;
|
|
9662
|
+
for (const w in A)
|
|
9663
|
+
if (w > l && w < c && (!(i <= this.zoom) || w % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9664
|
+
const m = A[w].lng;
|
|
9665
|
+
s > n ? m.forEach((L, y) => {
|
|
9666
|
+
var b, T, D, F;
|
|
9640
9667
|
if (i < 2) {
|
|
9641
|
-
if ((
|
|
9642
|
-
const N = S.point([
|
|
9643
|
-
dir: ((
|
|
9644
|
-
spd:
|
|
9668
|
+
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
9669
|
+
const N = S.point([L, w], {
|
|
9670
|
+
dir: ((b = A[w].val) == null ? void 0 : b[y]) || ((T = A[w].dir) == null ? void 0 : T[y]),
|
|
9671
|
+
spd: A[w].spd[y]
|
|
9645
9672
|
});
|
|
9646
|
-
|
|
9673
|
+
B.push(N);
|
|
9647
9674
|
}
|
|
9648
|
-
} else if ((
|
|
9649
|
-
const N = S.point([
|
|
9650
|
-
dir: ((D =
|
|
9651
|
-
spd:
|
|
9675
|
+
} else if ((L >= s && L <= 180 || L >= -180 && L <= n) && (!(i <= this.zoom) || L % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9676
|
+
const N = S.point([L, w], {
|
|
9677
|
+
dir: ((D = A[w].val) == null ? void 0 : D[y]) || ((F = A[w].dir) == null ? void 0 : F[y]),
|
|
9678
|
+
spd: A[w].spd[y]
|
|
9652
9679
|
});
|
|
9653
|
-
|
|
9680
|
+
B.push(N);
|
|
9654
9681
|
}
|
|
9655
|
-
}) :
|
|
9656
|
-
var
|
|
9682
|
+
}) : m.forEach((L, y) => {
|
|
9683
|
+
var b, T, D, F;
|
|
9657
9684
|
if (i < 2) {
|
|
9658
|
-
if ((
|
|
9659
|
-
const N = S.point([
|
|
9660
|
-
dir: ((
|
|
9661
|
-
spd:
|
|
9685
|
+
if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
|
|
9686
|
+
const N = S.point([L, w], {
|
|
9687
|
+
dir: ((b = A[w].val) == null ? void 0 : b[y]) || ((T = A[w].dir) == null ? void 0 : T[y]),
|
|
9688
|
+
spd: A[w].spd[y]
|
|
9662
9689
|
});
|
|
9663
|
-
|
|
9690
|
+
B.push(N);
|
|
9664
9691
|
}
|
|
9665
|
-
} else if (
|
|
9666
|
-
const N = S.point([
|
|
9667
|
-
dir: ((D =
|
|
9668
|
-
spd:
|
|
9692
|
+
} else if (L >= s && L <= n && (!(i <= this.zoom) || L % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9693
|
+
const N = S.point([L, w], {
|
|
9694
|
+
dir: ((D = A[w].val) == null ? void 0 : D[y]) || ((F = A[w].dir) == null ? void 0 : F[y]),
|
|
9695
|
+
spd: A[w].spd[y]
|
|
9669
9696
|
});
|
|
9670
|
-
|
|
9697
|
+
B.push(N);
|
|
9671
9698
|
}
|
|
9672
9699
|
});
|
|
9673
9700
|
}
|
|
9674
9701
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
|
|
9675
|
-
} else if (
|
|
9676
|
-
if (this.weatherLayers[
|
|
9677
|
-
|
|
9702
|
+
} else if (f === "sig-wave-height") {
|
|
9703
|
+
if (this.weatherLayers[f].data)
|
|
9704
|
+
B = this.weatherLayers[f].data;
|
|
9678
9705
|
else {
|
|
9679
9706
|
k = !0;
|
|
9680
|
-
const
|
|
9681
|
-
if (
|
|
9682
|
-
const
|
|
9683
|
-
for (const
|
|
9684
|
-
const
|
|
9685
|
-
for (const y of
|
|
9686
|
-
|
|
9707
|
+
const A = this.weatherLayers[f].raw;
|
|
9708
|
+
if (A) {
|
|
9709
|
+
const w = [];
|
|
9710
|
+
for (const m in A.Polygon) {
|
|
9711
|
+
const L = A.Polygon[m];
|
|
9712
|
+
for (const y of L)
|
|
9713
|
+
w.push(
|
|
9687
9714
|
S.polygon(y, {
|
|
9688
|
-
val: Number(
|
|
9715
|
+
val: Number(m)
|
|
9689
9716
|
})
|
|
9690
9717
|
);
|
|
9691
9718
|
}
|
|
9692
|
-
for (const
|
|
9693
|
-
const
|
|
9694
|
-
for (const y of
|
|
9695
|
-
|
|
9719
|
+
for (const m in A.MultiPolygon) {
|
|
9720
|
+
const L = A.MultiPolygon[m];
|
|
9721
|
+
for (const y of L)
|
|
9722
|
+
w.push(
|
|
9696
9723
|
S.multiPolygon(y, {
|
|
9697
|
-
val: Number(
|
|
9724
|
+
val: Number(m)
|
|
9698
9725
|
})
|
|
9699
9726
|
);
|
|
9700
9727
|
}
|
|
9701
|
-
for (const
|
|
9702
|
-
const
|
|
9703
|
-
for (let y = 0; y < ((
|
|
9704
|
-
|
|
9705
|
-
S.point([
|
|
9706
|
-
val: Number(
|
|
9728
|
+
for (const m in A.Point) {
|
|
9729
|
+
const L = A.Point[m];
|
|
9730
|
+
for (let y = 0; y < ((_ = L.lng) == null ? void 0 : _.length); y++)
|
|
9731
|
+
w.push(
|
|
9732
|
+
S.point([L.lng[y], m], {
|
|
9733
|
+
val: Number(L.val[y])
|
|
9707
9734
|
})
|
|
9708
9735
|
);
|
|
9709
9736
|
}
|
|
9710
|
-
|
|
9737
|
+
B = B.concat(w);
|
|
9711
9738
|
}
|
|
9712
9739
|
}
|
|
9713
9740
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
|
|
9714
|
-
} else if (
|
|
9715
|
-
if (this.weatherLayers[
|
|
9716
|
-
|
|
9741
|
+
} else if (f === "prmsl") {
|
|
9742
|
+
if (this.weatherLayers[f].data)
|
|
9743
|
+
B = this.weatherLayers[f].data;
|
|
9717
9744
|
else {
|
|
9718
9745
|
k = !0;
|
|
9719
|
-
const
|
|
9720
|
-
if (
|
|
9721
|
-
const
|
|
9722
|
-
for (const
|
|
9723
|
-
const
|
|
9724
|
-
for (const y of
|
|
9725
|
-
|
|
9746
|
+
const A = this.weatherLayers[f].raw;
|
|
9747
|
+
if (A) {
|
|
9748
|
+
const w = [];
|
|
9749
|
+
for (const m in A.LineString) {
|
|
9750
|
+
const L = A.LineString[m];
|
|
9751
|
+
for (const y of L)
|
|
9752
|
+
w.push(
|
|
9726
9753
|
S.lineString(y, {
|
|
9727
|
-
val: Number(
|
|
9754
|
+
val: Number(m)
|
|
9728
9755
|
})
|
|
9729
9756
|
);
|
|
9730
9757
|
}
|
|
9731
|
-
for (const
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
S.point([
|
|
9735
|
-
val:
|
|
9736
|
-
type:
|
|
9758
|
+
for (const m in A.Point)
|
|
9759
|
+
A.Point[m].lng.forEach((L, y) => {
|
|
9760
|
+
L = oe.convertToStdLng(L), w.push(
|
|
9761
|
+
S.point([L, m], {
|
|
9762
|
+
val: A.Point[m].val[y],
|
|
9763
|
+
type: A.Point[m].type[y]
|
|
9737
9764
|
})
|
|
9738
9765
|
);
|
|
9739
9766
|
});
|
|
9740
|
-
|
|
9767
|
+
B = B.concat(w);
|
|
9741
9768
|
}
|
|
9742
9769
|
}
|
|
9743
9770
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
9744
9771
|
}
|
|
9745
|
-
|
|
9772
|
+
B.length && (this.weatherLayers[f].data = S.featureCollection(B)), k && (this.weatherLayers[f].version = Math.random() + 1);
|
|
9746
9773
|
}
|
|
9747
9774
|
}
|
|
9748
9775
|
},
|
|
@@ -9753,7 +9780,7 @@ const js = {
|
|
|
9753
9780
|
this.handleDrawWeather4Json(), !this.activeWeatherLayers.some((l) => l.key === "wind" && l.particle === !0 || l.key === "current" && l.particle === !0 || l.key === "ice-edge" || l.key === "ice-thickness" || l.key === "ice-cover" || l.key === "temp" || l.key === "water-temp") && this.map.getZoom() > 3 && this.enc ? (t = (e = this.map) == null ? void 0 : e.getLayer(this.enc)) == null || t.setLayoutProperty("visibility", "visible") : ((i = (r = this.map) == null ? void 0 : r.getLayer("i4")) == null || i.setLayoutProperty("visibility", "none"), (n = (s = this.map) == null ? void 0 : s.getLayer("hi")) == null || n.setLayoutProperty("visibility", "none"));
|
|
9754
9781
|
},
|
|
9755
9782
|
handleBboxClip(a, e) {
|
|
9756
|
-
const t = [], r =
|
|
9783
|
+
const t = [], r = oe.convertToStdLng(e._sw.lng), i = oe.convertToStdLng(e._ne.lng);
|
|
9757
9784
|
return a.features.forEach((s) => {
|
|
9758
9785
|
if (s.geometry.type !== "Point")
|
|
9759
9786
|
if (r > i) {
|
|
@@ -9778,8 +9805,8 @@ const js = {
|
|
|
9778
9805
|
this.handleBeforeLayerToggle();
|
|
9779
9806
|
},
|
|
9780
9807
|
handleBeforeLayerToggle() {
|
|
9781
|
-
var a, e, t, r, i, s, n, l, c,
|
|
9782
|
-
(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 || (
|
|
9808
|
+
var a, e, t, r, i, s, n, l, c, d, h, p, v, C, _, f;
|
|
9809
|
+
(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 || (v = this.otherLayers) != null && v.chinaRoute || (C = this.otherLayers) != null && C["voluntary-reporting-area"] || (_ = this.otherLayers) != null && _["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
9783
9810
|
},
|
|
9784
9811
|
handleDateChange(a = { tropicals: !1 }) {
|
|
9785
9812
|
this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -9809,12 +9836,12 @@ const js = {
|
|
|
9809
9836
|
}, 500);
|
|
9810
9837
|
else {
|
|
9811
9838
|
const e = a == null ? void 0 : a.reduce((t, r) => t + (r == null ? void 0 : r.weight), 0);
|
|
9812
|
-
a.find((t) => t.key === "enc") ? this.enc = this.$attrs.permission & qe.LEVEL.Supper ? "hi" : "i4" : this.enc = "", this.otherWeight
|
|
9839
|
+
a.find((t) => t.key === "enc") ? this.enc = this.$attrs.permission & qe.LEVEL.Supper ? "hi" : "i4" : this.enc = "", this.otherWeight !== e && (this.otherWeight = e, this.fetchOtherLayers({ all: !0 }));
|
|
9813
9840
|
}
|
|
9814
9841
|
},
|
|
9815
9842
|
handle3dToggle(a) {
|
|
9816
|
-
var e, t, r, i, s, n, l, c,
|
|
9817
|
-
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((
|
|
9843
|
+
var e, t, r, i, s, n, l, c, d, h, p, v, C, _, f, k, B, A, w, m;
|
|
9844
|
+
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", (v = this.map) != null && v.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((C = this.map) != null && C.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((_ = this.viewport) == null ? void 0 : _.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (B = this.map) != null && B.getLayer((k = this.viewport) == null ? void 0 : k.particleLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((m = this.map) == null || m.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
9818
9845
|
},
|
|
9819
9846
|
handleParticle(a) {
|
|
9820
9847
|
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
|
|
@@ -9835,12 +9862,12 @@ const js = {
|
|
|
9835
9862
|
}, Ws = {
|
|
9836
9863
|
key: 0,
|
|
9837
9864
|
ref: "mapGlHome",
|
|
9838
|
-
|
|
9865
|
+
class: "map-gl-home"
|
|
9839
9866
|
};
|
|
9840
9867
|
function Gs(a, e, t, r, i, s) {
|
|
9841
|
-
var
|
|
9842
|
-
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"),
|
|
9843
|
-
return t.map ? (
|
|
9868
|
+
var te, fe, pe, Ae, xe, be, _e, I, ze, Le, Pe, Ee, He, ke, se, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue;
|
|
9869
|
+
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), v = R("IdmSwell"), C = R("IdmPrmsl"), _ = R("IdmIceEdge"), f = R("IdmIceCover"), k = R("IdmIceThickness"), B = R("IdmTropicals"), A = R("IdmCurrents"), w = R("IdmCurrentParticle"), m = R("IdmWindBarb"), L = R("IdmWindParticle"), y = R("IdmPrecip3h"), b = R("IdmVisibility"), T = R("IdmWaterTemp"), D = R("IdmTemp"), F = R("IdmWarZone"), N = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), me = R("IdmLoadLine"), re = R("IdmTimezone"), ue = R("IdmVRA"), we = R("IdmSpecialArea"), ge = R("IdmTerminator"), ve = R("IdmLatLng"), ye = R("IdmMeasure"), Y = R("IdmPoint");
|
|
9870
|
+
return t.map ? (u(), g("div", Ws, [
|
|
9844
9871
|
H(n, X({
|
|
9845
9872
|
ref: "layer",
|
|
9846
9873
|
map: t.map,
|
|
@@ -9858,11 +9885,11 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9858
9885
|
onOther: s.handleOtherLayerChange,
|
|
9859
9886
|
onToggleWindParticle: e[0] || (e[0] = (ie) => i.showWindParticle = ie),
|
|
9860
9887
|
onToggleWindFeather: e[1] || (e[1] = (ie) => {
|
|
9861
|
-
i.showWindFeather = ie
|
|
9888
|
+
(i.showWindFeather = ie) && s.handleDrawWeather4Json();
|
|
9862
9889
|
}),
|
|
9863
9890
|
onToggleCurrentParticle: e[2] || (e[2] = (ie) => i.showCurrentParticle = ie),
|
|
9864
9891
|
onToggleCurrentIsoband: e[3] || (e[3] = (ie) => {
|
|
9865
|
-
i.showCurrentIsoband = ie
|
|
9892
|
+
(i.showCurrentIsoband = ie) && s.handleDrawWeather4Json();
|
|
9866
9893
|
}),
|
|
9867
9894
|
onToggleWindParticeVersion: e[4] || (e[4] = (ie) => i.toggleWindParticeVersion = Math.random()),
|
|
9868
9895
|
onToggleCurrentParticeVersion: e[5] || (e[5] = (ie) => i.toggleCurrentParticeVersion = Math.random()),
|
|
@@ -9875,7 +9902,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9875
9902
|
H(l, X({
|
|
9876
9903
|
map: t.map,
|
|
9877
9904
|
token: t.token,
|
|
9878
|
-
enabled: (
|
|
9905
|
+
enabled: (te = i.otherLayers) == null ? void 0 : te.enc,
|
|
9879
9906
|
"toggle-version": t.toggleVersion
|
|
9880
9907
|
}, a.$attrs, {
|
|
9881
9908
|
onEnc: e[9] || (e[9] = (ie) => i.enc = ie)
|
|
@@ -9884,45 +9911,45 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9884
9911
|
map: t.map,
|
|
9885
9912
|
token: t.token,
|
|
9886
9913
|
"weather-layers": i.weatherLayers,
|
|
9887
|
-
enabled: (
|
|
9914
|
+
enabled: (fe = i.otherLayers) == null ? void 0 : fe.world12nm
|
|
9888
9915
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9889
|
-
H(
|
|
9916
|
+
H(d, X({
|
|
9890
9917
|
map: t.map,
|
|
9891
9918
|
token: t.token,
|
|
9892
9919
|
"weather-layers": i.weatherLayers,
|
|
9893
|
-
enabled: (
|
|
9920
|
+
enabled: (pe = i.otherLayers) == null ? void 0 : pe.worldMarine
|
|
9894
9921
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9895
9922
|
H(h, X({
|
|
9896
9923
|
map: t.map,
|
|
9897
9924
|
token: t.token,
|
|
9898
9925
|
"weather-layers": i.weatherLayers,
|
|
9899
|
-
enabled: (
|
|
9926
|
+
enabled: (Ae = i.otherLayers) == null ? void 0 : Ae.chinaRoute
|
|
9900
9927
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9901
|
-
H(
|
|
9928
|
+
H(p, X({
|
|
9902
9929
|
map: t.map,
|
|
9903
9930
|
"sig-wave": (xe = i.weatherLayers) == null ? void 0 : xe["sig-wave-height"],
|
|
9904
9931
|
"before-layer": t.beforeLayer,
|
|
9905
9932
|
"active-weather-layers": i.activeWeatherLayers
|
|
9906
9933
|
}, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "active-weather-layers"]),
|
|
9907
|
-
H(
|
|
9934
|
+
H(v, X({
|
|
9908
9935
|
map: t.map,
|
|
9909
|
-
swell: (
|
|
9936
|
+
swell: (be = i.weatherLayers) == null ? void 0 : be.swell,
|
|
9910
9937
|
"before-layer": t.beforeLayer,
|
|
9911
9938
|
"active-weather-layers": i.activeWeatherLayers
|
|
9912
9939
|
}, a.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
|
|
9913
|
-
H(
|
|
9940
|
+
H(C, X({
|
|
9914
9941
|
map: t.map,
|
|
9915
9942
|
prmsl: (_e = i.weatherLayers) == null ? void 0 : _e.prmsl,
|
|
9916
9943
|
"before-layer": t.beforeLayer,
|
|
9917
9944
|
"active-weather-layers": i.activeWeatherLayers
|
|
9918
9945
|
}, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
9919
|
-
H(
|
|
9946
|
+
H(_, X({
|
|
9920
9947
|
viewport: i.viewport,
|
|
9921
|
-
factor: (
|
|
9948
|
+
factor: (I = i.weatherLayers) == null ? void 0 : I["ice-edge"],
|
|
9922
9949
|
"toggle-version": t.toggleVersion,
|
|
9923
9950
|
"before-layer": t.beforeLayer
|
|
9924
9951
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
9925
|
-
H(
|
|
9952
|
+
H(f, X({
|
|
9926
9953
|
viewport: i.viewport,
|
|
9927
9954
|
factor: (ze = i.weatherLayers) == null ? void 0 : ze["ice-cover"],
|
|
9928
9955
|
"toggle-version": t.toggleVersion,
|
|
@@ -9930,17 +9957,17 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9930
9957
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
9931
9958
|
H(k, X({
|
|
9932
9959
|
viewport: i.viewport,
|
|
9933
|
-
factor: (
|
|
9960
|
+
factor: (Le = i.weatherLayers) == null ? void 0 : Le["ice-thickness"],
|
|
9934
9961
|
"toggle-version": t.toggleVersion,
|
|
9935
9962
|
"before-layer": t.beforeLayer
|
|
9936
9963
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
9937
|
-
H(
|
|
9964
|
+
H(B, X({
|
|
9938
9965
|
map: t.map,
|
|
9939
9966
|
date: t.ts,
|
|
9940
9967
|
tropicals: (Pe = i.weatherLayers) == null ? void 0 : Pe.tropicals,
|
|
9941
9968
|
"before-layer": t.beforeLayer
|
|
9942
9969
|
}, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
9943
|
-
H(
|
|
9970
|
+
H(A, X({
|
|
9944
9971
|
map: t.map,
|
|
9945
9972
|
"map-projection": i.mapProjection,
|
|
9946
9973
|
current: (Ee = i.weatherLayers) == null ? void 0 : Ee.current,
|
|
@@ -9955,18 +9982,18 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9955
9982
|
onParticle: s.handleParticle,
|
|
9956
9983
|
onHandleToggleVersion: s.handleToggleVersion
|
|
9957
9984
|
}), 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"]),
|
|
9958
|
-
H(
|
|
9985
|
+
H(w, X({
|
|
9959
9986
|
viewport: i.viewport,
|
|
9960
9987
|
factor: (He = i.weatherLayers) == null ? void 0 : He["current-particle"],
|
|
9961
9988
|
"before-layer": t.beforeLayer,
|
|
9962
9989
|
"toggle-version": t.toggleVersion
|
|
9963
9990
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9964
|
-
H(
|
|
9991
|
+
H(m, X({
|
|
9965
9992
|
ref: "windBarb",
|
|
9966
9993
|
map: t.map,
|
|
9967
9994
|
"map-projection": i.mapProjection,
|
|
9968
9995
|
wind: (ke = i.weatherLayers) == null ? void 0 : ke.wind,
|
|
9969
|
-
current: (
|
|
9996
|
+
current: (se = i.weatherLayers) == null ? void 0 : se.current,
|
|
9970
9997
|
"before-layer": t.beforeLayer,
|
|
9971
9998
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
9972
9999
|
"show-wind-feather": i.showWindFeather,
|
|
@@ -9977,7 +10004,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9977
10004
|
"weather-layers": i.weatherLayers,
|
|
9978
10005
|
onParticle: s.handleParticle
|
|
9979
10006
|
}), 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"]),
|
|
9980
|
-
H(
|
|
10007
|
+
H(L, X({
|
|
9981
10008
|
viewport: i.viewport,
|
|
9982
10009
|
factor: (ce = i.weatherLayers) == null ? void 0 : ce["wind-particle"],
|
|
9983
10010
|
"before-layer": t.beforeLayer,
|
|
@@ -9989,7 +10016,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9989
10016
|
"before-layer": t.beforeLayer,
|
|
9990
10017
|
"toggle-version": t.toggleVersion
|
|
9991
10018
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9992
|
-
H(
|
|
10019
|
+
H(b, X({
|
|
9993
10020
|
viewport: i.viewport,
|
|
9994
10021
|
factor: (Be = i.weatherLayers) == null ? void 0 : Be.visibility,
|
|
9995
10022
|
"before-layer": t.beforeLayer,
|
|
@@ -10038,7 +10065,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10038
10065
|
line: (Te = i.otherLayers) == null ? void 0 : Te["load-lines"],
|
|
10039
10066
|
"before-layer": t.beforeLayer
|
|
10040
10067
|
}, a.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
10041
|
-
H(
|
|
10068
|
+
H(re, X({
|
|
10042
10069
|
map: t.map,
|
|
10043
10070
|
zone: (z = i.otherLayers) == null ? void 0 : z["time-zones"],
|
|
10044
10071
|
"before-layer": t.beforeLayer
|
|
@@ -10048,7 +10075,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10048
10075
|
area: (O = i.otherLayers) == null ? void 0 : O["voluntary-reporting-area"],
|
|
10049
10076
|
"before-layer": t.beforeLayer
|
|
10050
10077
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
10051
|
-
H(
|
|
10078
|
+
H(we, X({
|
|
10052
10079
|
map: t.map,
|
|
10053
10080
|
area: (Ge = i.otherLayers) == null ? void 0 : Ge["special-area"],
|
|
10054
10081
|
"before-layer": t.beforeLayer
|
|
@@ -10057,16 +10084,16 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10057
10084
|
map: t.map,
|
|
10058
10085
|
area: (Ue = i.otherLayers) == null ? void 0 : Ue["day-night"]
|
|
10059
10086
|
}, a.$attrs), null, 16, ["map", "area"]),
|
|
10060
|
-
H(
|
|
10087
|
+
H(ve, X({
|
|
10061
10088
|
map: t.map,
|
|
10062
10089
|
show: i.showCoord,
|
|
10063
10090
|
"toggle-version": t.toggleVersion
|
|
10064
10091
|
}, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
10065
|
-
H(
|
|
10092
|
+
H(ye, X({
|
|
10066
10093
|
map: t.map,
|
|
10067
10094
|
show: i.showMeasure
|
|
10068
10095
|
}, a.$attrs), null, 16, ["map", "show"]),
|
|
10069
|
-
H(
|
|
10096
|
+
H(Y, X({
|
|
10070
10097
|
ref: "idmPoint",
|
|
10071
10098
|
map: t.map,
|
|
10072
10099
|
show: i.showPoint,
|
|
@@ -10088,9 +10115,9 @@ export {
|
|
|
10088
10115
|
Us as MapboxGL,
|
|
10089
10116
|
ao as MapboxGLPlugin,
|
|
10090
10117
|
na as MapboxHelper,
|
|
10091
|
-
|
|
10118
|
+
Ce as ParticleSchema,
|
|
10092
10119
|
dt as TropicalGL,
|
|
10093
10120
|
et as Viewport,
|
|
10094
10121
|
We as WebGL,
|
|
10095
|
-
|
|
10122
|
+
ne as WebGLSchema
|
|
10096
10123
|
};
|