@idmwx/idmui-gl3 4.4.7 → 4.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1181 -1092
- package/dist/index.umd.cjs +13 -13
- package/dist/mapbox/src/components/layer.vue.d.ts +46 -6
- package/dist/mapbox/src/components/weather/prmsl.vue.d.ts +11 -2
- package/dist/mapbox/src/components/weather/sigWave.vue.d.ts +8 -0
- package/dist/mapbox/src/components/weather/swell.vue.d.ts +8 -0
- package/dist/mapbox/src/index.vue.d.ts +3 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var R = (a, e, t) => (
|
|
4
|
-
import { resolveComponent as
|
|
5
|
-
import * as
|
|
6
|
-
import
|
|
1
|
+
var Ve = Object.defineProperty;
|
|
2
|
+
var Ue = (a, e, t) => e in a ? Ve(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
|
+
var R = (a, e, t) => (Ue(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { resolveComponent as P, openBlock as _, createElementBlock as C, createElementVNode as n, normalizeStyle as U, createVNode as k, withCtx as X, normalizeClass as j, Fragment as _e, renderList as Se, toDisplayString as S, createCommentVNode as B, createTextVNode as Ie, withDirectives as Pe, createStaticVNode as Ze, vShow as ze, mergeProps as I } from "vue";
|
|
5
|
+
import * as x from "@turf/turf";
|
|
6
|
+
import He from "@mapbox/sphericalmercator";
|
|
7
7
|
import Z from "moment";
|
|
8
|
-
import
|
|
9
|
-
import { TropicalHelper as
|
|
10
|
-
import
|
|
11
|
-
var
|
|
12
|
-
class
|
|
8
|
+
import ee from "mapbox-gl";
|
|
9
|
+
import { TropicalHelper as Oe, LngLatHelper as D, LaneHelper as K } from "@idm-plugin/geo";
|
|
10
|
+
import oe from "axios";
|
|
11
|
+
var Ge = Object.defineProperty, Je = (a, e, t) => e in a ? Ge(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, ge = (a, e, t) => (Je(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
12
|
+
class Ce {
|
|
13
13
|
}
|
|
14
|
-
Ce
|
|
14
|
+
ge(Ce, "LEVEL", {
|
|
15
15
|
Basic: 1,
|
|
16
16
|
Prime: 2,
|
|
17
17
|
Supper: 1024
|
|
18
18
|
});
|
|
19
|
-
class
|
|
19
|
+
class ke {
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
ge(ke, "WEATHER_LAYERS", [
|
|
22
22
|
{
|
|
23
23
|
weight: 1,
|
|
24
24
|
name: "Wind",
|
|
@@ -243,7 +243,7 @@ Ce(Me, "WEATHER_LAYERS", [
|
|
|
243
243
|
type: "jpg"
|
|
244
244
|
}
|
|
245
245
|
]), // 其它图层
|
|
246
|
-
|
|
246
|
+
ge(ke, "OTHER_LAYERS", [
|
|
247
247
|
{
|
|
248
248
|
weight: 1,
|
|
249
249
|
name: "War Zones",
|
|
@@ -355,9 +355,9 @@ Ce(Me, "OTHER_LAYERS", [
|
|
|
355
355
|
type: "origin"
|
|
356
356
|
}
|
|
357
357
|
]);
|
|
358
|
-
class
|
|
358
|
+
class Ee {
|
|
359
359
|
}
|
|
360
|
-
|
|
360
|
+
ge(Ee, "WEATHER_TAG", [
|
|
361
361
|
{
|
|
362
362
|
weight: 4,
|
|
363
363
|
// 2^2
|
|
@@ -383,7 +383,7 @@ Ce(Oe, "WEATHER_TAG", [
|
|
|
383
383
|
positive: !0
|
|
384
384
|
}
|
|
385
385
|
]), // 航行相关标签, 2^11 <= weight <= 2^20
|
|
386
|
-
|
|
386
|
+
ge(Ee, "SAILING_TAG", [
|
|
387
387
|
{
|
|
388
388
|
weight: 2048,
|
|
389
389
|
// 2^11
|
|
@@ -425,7 +425,7 @@ Ce(Oe, "SAILING_TAG", [
|
|
|
425
425
|
positive: !0
|
|
426
426
|
}
|
|
427
427
|
]), // 其他标签, 2^21 <= weight <= 2^31
|
|
428
|
-
|
|
428
|
+
ge(Ee, "OTHER_TAG", [
|
|
429
429
|
{
|
|
430
430
|
weight: 2097152,
|
|
431
431
|
// 2^21
|
|
@@ -480,7 +480,7 @@ const T = (a, e) => {
|
|
|
480
480
|
for (const [r, i] of e)
|
|
481
481
|
t[r] = i;
|
|
482
482
|
return t;
|
|
483
|
-
},
|
|
483
|
+
}, Xe = {
|
|
484
484
|
name: "IdmGlLayer",
|
|
485
485
|
props: {
|
|
486
486
|
map: {
|
|
@@ -503,22 +503,36 @@ const T = (a, e) => {
|
|
|
503
503
|
isLogin: {
|
|
504
504
|
type: Boolean,
|
|
505
505
|
default: void 0
|
|
506
|
+
},
|
|
507
|
+
showWindFeather: {
|
|
508
|
+
type: Boolean,
|
|
509
|
+
default: void 0
|
|
510
|
+
},
|
|
511
|
+
showWindParticle: {
|
|
512
|
+
type: Boolean,
|
|
513
|
+
default: void 0
|
|
514
|
+
},
|
|
515
|
+
showCurrentIsoband: {
|
|
516
|
+
type: Boolean,
|
|
517
|
+
default: void 0
|
|
518
|
+
},
|
|
519
|
+
showCurrentParticle: {
|
|
520
|
+
type: Boolean,
|
|
521
|
+
default: void 0
|
|
506
522
|
}
|
|
507
523
|
},
|
|
508
524
|
emits: ["weather", "other", "coordinate", "measure", "point", "3d", "layerToggle", "handleToggleVersion"],
|
|
509
525
|
data() {
|
|
510
526
|
return {
|
|
511
|
-
source: "",
|
|
512
|
-
weatherLayers: [],
|
|
513
|
-
activeWeatherLayers: [],
|
|
514
527
|
autoActive: !0,
|
|
515
|
-
otherLayers: [],
|
|
516
528
|
layers: {
|
|
517
529
|
weather: [
|
|
518
|
-
...
|
|
530
|
+
...ke.WEATHER_LAYERS.filter((a) => !["swell-height", "swell-direction", "current-direction", "current-speed"].includes(a.key))
|
|
519
531
|
],
|
|
520
|
-
other: [...
|
|
532
|
+
other: [...ke.OTHER_LAYERS.filter((a) => a.key !== "world12nm" && a.enabled)]
|
|
521
533
|
},
|
|
534
|
+
weatherLayers: [],
|
|
535
|
+
otherLayers: [],
|
|
522
536
|
weatherLayersCache: "weatherLayersCache",
|
|
523
537
|
autoActiveCache: "autoActiveCache",
|
|
524
538
|
otherLayersCache: "otherLayersCache",
|
|
@@ -532,6 +546,7 @@ const T = (a, e) => {
|
|
|
532
546
|
v: "0.0.7",
|
|
533
547
|
k: "glCacheVersion"
|
|
534
548
|
},
|
|
549
|
+
source: "",
|
|
535
550
|
right: 10,
|
|
536
551
|
rampColorLayers: ["visibility", "precip3h", "temp", "water-temp", "arctic"]
|
|
537
552
|
};
|
|
@@ -539,9 +554,14 @@ const T = (a, e) => {
|
|
|
539
554
|
computed: {
|
|
540
555
|
computeLayerClass() {
|
|
541
556
|
return function(a, e) {
|
|
557
|
+
var r;
|
|
542
558
|
let t = "layer flex-between";
|
|
543
|
-
return e.some((
|
|
559
|
+
return e.some((i) => i.key === a.key) && (t = t + " active"), (!a.enabled || (r = this.layers.weather) != null && r.some((i) => i.key === a.key) && !this.autoActive || this.rampColorLayers.includes(a.key) && this.mapProjection === "globe") && (t = t + " disabled"), t;
|
|
544
560
|
};
|
|
561
|
+
},
|
|
562
|
+
hasCollectedLayers() {
|
|
563
|
+
var a;
|
|
564
|
+
return ((a = this.layers.weather.filter((e) => e.collected)) == null ? void 0 : a.length) > 0;
|
|
545
565
|
}
|
|
546
566
|
},
|
|
547
567
|
watch: {
|
|
@@ -557,46 +577,54 @@ const T = (a, e) => {
|
|
|
557
577
|
handler(a, e) {
|
|
558
578
|
a && e && a !== e && this.handleConfirm();
|
|
559
579
|
}
|
|
580
|
+
},
|
|
581
|
+
showWindFeather: {
|
|
582
|
+
handler() {
|
|
583
|
+
!this.showWindFeather && !this.showWindParticle && this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 });
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
showWindParticle: {
|
|
587
|
+
handler() {
|
|
588
|
+
!this.showWindFeather && !this.showWindParticle && this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 });
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
showCurrentIsoband: {
|
|
592
|
+
handler() {
|
|
593
|
+
!this.showCurrentIsoband && !this.showCurrentParticle && this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 });
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
showCurrentParticle: {
|
|
597
|
+
handler() {
|
|
598
|
+
!this.showCurrentIsoband && !this.showCurrentParticle && this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 });
|
|
599
|
+
}
|
|
560
600
|
}
|
|
561
601
|
},
|
|
562
602
|
mounted() {
|
|
563
603
|
const a = localStorage.getItem(this.version.k);
|
|
564
604
|
this.version.v !== a && (localStorage.removeItem(this.weatherLayersCache), localStorage.removeItem(this.collectedLayerCache), localStorage.removeItem(this.otherLayersCache), localStorage.removeItem("windFeatherCache"), localStorage.removeItem("currentJsonCache"), localStorage.setItem(this.version.k, this.version.v));
|
|
565
|
-
let e = localStorage.getItem(this.
|
|
566
|
-
|
|
605
|
+
let e = localStorage.getItem(this.autoActiveCache);
|
|
606
|
+
this.autoActive = e !== "false", e = localStorage.getItem(this.collectedLayerCache);
|
|
607
|
+
let t = JSON.parse(
|
|
608
|
+
e || '[{"weight": 16, "name": "Sig Waves", "key": "sig-wave-height", "collected": true},{"weight": 1, "name": "Wind", "key": "wind", "h5": true, "collected": true},{"weight": 96, "name": "Current", "key": "current", "collected": true},{"weight": 256, "name": "Tropicals", "key": "tropicals", "collected": true},{"weight": 4096, "name": "Pressure", "h5": true, "key": "prmsl", "collected": true},{"weight": 6, "name": "Swell", "key": "swell", "collected": true}]'
|
|
567
609
|
);
|
|
568
610
|
this.layers.weather.forEach((r) => {
|
|
569
611
|
r.collected = !!t.some((i) => i.key === r.key && i.collected);
|
|
570
|
-
}), e = localStorage.getItem(this.
|
|
612
|
+
}), e = localStorage.getItem(this.weatherLayersCache), t = JSON.parse(
|
|
571
613
|
e || '[{"weight":1,"name":"Wind","key":"wind","enabled":true,"type":"json","particle":true},{"weight":4096,"name":"Pressure","key":"prmsl","enabled":true,"type":"json"},{"weight":256,"name":"Tropicals","key":"tropicals","enabled":true,"type":"json"}]'
|
|
572
|
-
), this.
|
|
614
|
+
), this.autoActive && (this.weatherLayers = [...t]), e = localStorage.getItem(this.otherLayersCache), t = JSON.parse(e || '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}]'), this.otherLayers = t, e = localStorage.getItem(this.sourceCache), this.source = e || "GFS", this.handleConfirm();
|
|
573
615
|
},
|
|
574
616
|
methods: {
|
|
575
617
|
handleConfirm() {
|
|
576
|
-
this.$emit("weather", this.weatherLayers, this.
|
|
618
|
+
this.$emit("weather", this.weatherLayers, this.source), this.$emit("other", this.otherLayers), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
|
|
577
619
|
},
|
|
578
620
|
handleWeatherLayerPick(a) {
|
|
579
|
-
if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe")
|
|
621
|
+
if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe" || !this.autoActive)
|
|
580
622
|
return !1;
|
|
581
|
-
|
|
623
|
+
["wind", "current"].includes(a.key) && !this.showWindFeather && !this.showCurrentIsoband && (a.particle = !0), this.weatherLayers.some((e) => e.key === a.key) ? this.weatherLayers = this.weatherLayers.filter((e) => e.key !== a.key) : this.weatherLayers.length < 12 && a.enabled && (["png", "jpg"].includes(a.type) && (this.weatherLayers = this.weatherLayers.filter((e) => e.type === "json")), this.weatherLayers.push(a)), this.$emit("weather", this.weatherLayers, this.source), localStorage.setItem(this.weatherLayersCache, JSON.stringify(this.weatherLayers)), localStorage.setItem(this.sourceCache, this.source);
|
|
582
624
|
},
|
|
583
625
|
handleWeatherLayerCollect(a) {
|
|
584
626
|
var e;
|
|
585
|
-
|
|
586
|
-
return !1;
|
|
587
|
-
a.collected = !a.collected, localStorage.setItem(this.collectedLayerCache, JSON.stringify(this.layers.weather)), this.$emit("handleToggleVersion");
|
|
588
|
-
},
|
|
589
|
-
handleActiveWeatherLayerPick(a) {
|
|
590
|
-
if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe")
|
|
591
|
-
return !1;
|
|
592
|
-
if (this.activeWeatherLayers.some((e) => e.key === a.key))
|
|
593
|
-
this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== a.key);
|
|
594
|
-
else if (a.enabled) {
|
|
595
|
-
this.activeWeatherLayers.push(a);
|
|
596
|
-
for (const e of this.weatherLayers)
|
|
597
|
-
a.weight > e.weight && a.weight & e.weight && this.activeWeatherLayers.push(e);
|
|
598
|
-
}
|
|
599
|
-
this.handleWeatherLayerPick(a);
|
|
627
|
+
!a.collected && ((e = this.layers.weather.filter((t) => t.collected)) == null ? void 0 : e.length) >= 6 && (this.layers.weather.filter((t) => t.collected)[0].collected = !1), a.collected = !a.collected, localStorage.setItem(this.collectedLayerCache, JSON.stringify(this.layers.weather)), this.$emit("handleToggleVersion");
|
|
600
628
|
},
|
|
601
629
|
handleOtherLayerPick(a) {
|
|
602
630
|
this.otherLayers.some((e) => e.key === a.key) ? this.otherLayers = this.otherLayers.filter((e) => e.key !== a.key) : a.enabled && this.otherLayers.push(a), localStorage.setItem(this.otherLayersCache, JSON.stringify(this.otherLayers)), this.$emit("other", this.otherLayers);
|
|
@@ -604,6 +632,9 @@ const T = (a, e) => {
|
|
|
604
632
|
handleMenuToggle() {
|
|
605
633
|
this.$emit("layerToggle", !this.layerToggle);
|
|
606
634
|
},
|
|
635
|
+
toggleAutoActive() {
|
|
636
|
+
this.autoActive = !this.autoActive, localStorage.setItem(this.autoActiveCache, this.autoActive), this.autoActive ? this.$emit("weather", this.weatherLayers, this.source) : this.$emit("weather", [], this.source);
|
|
637
|
+
},
|
|
607
638
|
handleCoordToggle() {
|
|
608
639
|
this.showCoord = !this.showCoord, this.$emit("coordinate", this.showCoord);
|
|
609
640
|
},
|
|
@@ -617,75 +648,57 @@ const T = (a, e) => {
|
|
|
617
648
|
this.show3d = !this.show3d, this.$emit("3d", this.show3d);
|
|
618
649
|
}
|
|
619
650
|
}
|
|
620
|
-
},
|
|
621
|
-
dt
|
|
622
|
-
], mt = { class: "bar-item tool-bars" }, ut = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), yt = [
|
|
623
|
-
ut
|
|
624
|
-
], ft = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), gt = [
|
|
625
|
-
ft
|
|
626
|
-
], bt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), vt = [
|
|
627
|
-
bt
|
|
628
|
-
], wt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), _t = [
|
|
629
|
-
wt
|
|
630
|
-
], Lt = ["onClick"], xt = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), Ct = { class: "header-box flex-between" }, kt = /* @__PURE__ */ l("div", null, "Layers", -1), St = { class: "weather-layers card-bg" }, zt = /* @__PURE__ */ l("div", { class: "layers-title flex-between" }, [
|
|
631
|
-
/* @__PURE__ */ l("div", null, "Weather Layers")
|
|
632
|
-
], -1), Pt = { class: "layers-body" }, Tt = ["onClick"], It = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), Et = ["onClick"], Rt = {
|
|
651
|
+
}, Ye = { class: "idm-gl3-layer" }, qe = { class: "bar-item layer-bars" }, Qe = { class: "bar-item tool-bars" }, Ke = { style: { display: "flex", "align-items": "center", "flex-wrap": "wrap" } }, et = ["onClick"], tt = { class: "header-box flex-between" }, at = { class: "weather-layers card-bg" }, it = { class: "layers-body" }, rt = ["onClick"], ot = ["onClick"], st = {
|
|
633
652
|
key: 0,
|
|
634
653
|
class: "iconfont bookmark active"
|
|
635
|
-
},
|
|
654
|
+
}, nt = {
|
|
636
655
|
key: 1,
|
|
637
656
|
class: "iconfont bookmark inactive"
|
|
638
|
-
},
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
/* @__PURE__ */ l("div", null, "Bookmark your favorite layer to homepage(Max 6)")
|
|
644
|
-
], -1), Mt = { class: "other-layers card-bg" }, $t = /* @__PURE__ */ l("div", { class: "layers-title" }, "Other Layers", -1), jt = { class: "layers-body" }, Wt = ["onClick"], Nt = { class: "flex-start" }, Bt = /* @__PURE__ */ l("div", { class: "switch flex-center" }, [
|
|
645
|
-
/* @__PURE__ */ l("i", { class: "iconfont open" }, ""),
|
|
646
|
-
/* @__PURE__ */ l("i", { class: "iconfont close" }, "")
|
|
647
|
-
], -1), Ot = { class: "source-layers card-bg" }, Ft = /* @__PURE__ */ l("span", { class: "layers-title" }, "Forecast Model", -1), Vt = { class: "layers-body" };
|
|
648
|
-
function Ut(a, e, t, r, i, o) {
|
|
649
|
-
var p;
|
|
650
|
-
const s = z("ElTooltip"), n = z("ElRadio"), c = z("ElRadioGroup"), d = z("ElScrollbar");
|
|
651
|
-
return x(), C("div", ct, [
|
|
652
|
-
l("div", {
|
|
657
|
+
}, lt = { class: "other-layers card-bg" }, ct = { class: "layers-body" }, ht = ["onClick"], dt = { class: "flex-start" }, pt = { class: "source-layers card-bg" }, mt = { class: "layers-body" };
|
|
658
|
+
function ut(a, e, t, r, i, o) {
|
|
659
|
+
const s = P("ElTooltip"), l = P("ElRadio"), h = P("ElRadioGroup"), d = P("ElScrollbar");
|
|
660
|
+
return _(), C("div", Ye, [
|
|
661
|
+
n("div", {
|
|
653
662
|
class: "menu-bar-box",
|
|
654
663
|
style: U({ top: t.top + 10 + "px", right: i.right + "px" })
|
|
655
664
|
}, [
|
|
656
|
-
|
|
665
|
+
n("div", qe, [
|
|
657
666
|
k(s, {
|
|
658
667
|
placement: "left",
|
|
659
668
|
effect: "light",
|
|
660
669
|
content: "Menu",
|
|
661
|
-
"show-after":
|
|
670
|
+
"show-after": 1e3
|
|
662
671
|
}, {
|
|
663
|
-
default:
|
|
664
|
-
|
|
665
|
-
class:
|
|
666
|
-
onClick: e[0] || (e[0] = (...
|
|
667
|
-
},
|
|
672
|
+
default: X(() => [
|
|
673
|
+
n("div", {
|
|
674
|
+
class: j(t.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
675
|
+
onClick: e[0] || (e[0] = (...c) => o.handleMenuToggle && o.handleMenuToggle(...c))
|
|
676
|
+
}, e[9] || (e[9] = [
|
|
677
|
+
n("span", { class: "iconfont" }, "", -1)
|
|
678
|
+
]), 2)
|
|
668
679
|
]),
|
|
669
680
|
_: 1
|
|
670
681
|
})
|
|
671
682
|
])
|
|
672
683
|
], 4),
|
|
673
|
-
|
|
684
|
+
n("div", {
|
|
674
685
|
class: "menu-bar-box",
|
|
675
686
|
style: U({ top: t.top + 160 + "px", right: i.right + "px" })
|
|
676
687
|
}, [
|
|
677
|
-
|
|
688
|
+
n("div", Qe, [
|
|
678
689
|
k(s, {
|
|
679
690
|
placement: "left",
|
|
680
691
|
effect: "light",
|
|
681
692
|
content: "Measure",
|
|
682
|
-
"show-after":
|
|
693
|
+
"show-after": 1e3
|
|
683
694
|
}, {
|
|
684
|
-
default:
|
|
685
|
-
|
|
686
|
-
class:
|
|
687
|
-
onClick: e[1] || (e[1] = (...
|
|
688
|
-
},
|
|
695
|
+
default: X(() => [
|
|
696
|
+
n("div", {
|
|
697
|
+
class: j(i.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
698
|
+
onClick: e[1] || (e[1] = (...c) => o.handleMeasureToggle && o.handleMeasureToggle(...c))
|
|
699
|
+
}, e[10] || (e[10] = [
|
|
700
|
+
n("span", { class: "iconfont" }, "", -1)
|
|
701
|
+
]), 2)
|
|
689
702
|
]),
|
|
690
703
|
_: 1
|
|
691
704
|
}),
|
|
@@ -693,13 +706,15 @@ function Ut(a, e, t, r, i, o) {
|
|
|
693
706
|
placement: "left",
|
|
694
707
|
effect: "light",
|
|
695
708
|
content: "Point Meteo",
|
|
696
|
-
"show-after":
|
|
709
|
+
"show-after": 1e3
|
|
697
710
|
}, {
|
|
698
|
-
default:
|
|
699
|
-
|
|
700
|
-
class:
|
|
701
|
-
onClick: e[2] || (e[2] = (...
|
|
702
|
-
},
|
|
711
|
+
default: X(() => [
|
|
712
|
+
n("div", {
|
|
713
|
+
class: j(i.showPoint ? "menu-icon active" : "menu-icon"),
|
|
714
|
+
onClick: e[2] || (e[2] = (...c) => o.handlePointToggle && o.handlePointToggle(...c))
|
|
715
|
+
}, e[11] || (e[11] = [
|
|
716
|
+
n("span", { class: "iconfont" }, "", -1)
|
|
717
|
+
]), 2)
|
|
703
718
|
]),
|
|
704
719
|
_: 1
|
|
705
720
|
}),
|
|
@@ -707,13 +722,15 @@ function Ut(a, e, t, r, i, o) {
|
|
|
707
722
|
placement: "left",
|
|
708
723
|
effect: "light",
|
|
709
724
|
content: "Grid",
|
|
710
|
-
"show-after":
|
|
725
|
+
"show-after": 1e3
|
|
711
726
|
}, {
|
|
712
|
-
default:
|
|
713
|
-
|
|
714
|
-
class:
|
|
715
|
-
onClick: e[3] || (e[3] = (...
|
|
716
|
-
},
|
|
727
|
+
default: X(() => [
|
|
728
|
+
n("div", {
|
|
729
|
+
class: j(i.showCoord ? "menu-icon active" : "menu-icon"),
|
|
730
|
+
onClick: e[3] || (e[3] = (...c) => o.handleCoordToggle && o.handleCoordToggle(...c))
|
|
731
|
+
}, e[12] || (e[12] = [
|
|
732
|
+
n("span", { class: "iconfont" }, "", -1)
|
|
733
|
+
]), 2)
|
|
717
734
|
]),
|
|
718
735
|
_: 1
|
|
719
736
|
}),
|
|
@@ -721,109 +738,142 @@ function Ut(a, e, t, r, i, o) {
|
|
|
721
738
|
placement: "left",
|
|
722
739
|
effect: "light",
|
|
723
740
|
content: "3D",
|
|
724
|
-
"show-after":
|
|
741
|
+
"show-after": 1e3
|
|
725
742
|
}, {
|
|
726
|
-
default:
|
|
727
|
-
|
|
728
|
-
class:
|
|
729
|
-
onClick: e[4] || (e[4] = (...
|
|
730
|
-
},
|
|
743
|
+
default: X(() => [
|
|
744
|
+
n("div", {
|
|
745
|
+
class: j(i.show3d ? "menu-icon active" : "menu-icon"),
|
|
746
|
+
onClick: e[4] || (e[4] = (...c) => o.handle3DToggle && o.handle3DToggle(...c))
|
|
747
|
+
}, e[13] || (e[13] = [
|
|
748
|
+
n("span", { class: "iconfont" }, "", -1)
|
|
749
|
+
]), 2)
|
|
731
750
|
]),
|
|
732
751
|
_: 1
|
|
733
752
|
})
|
|
734
753
|
])
|
|
735
754
|
], 4),
|
|
736
|
-
|
|
755
|
+
o.hasCollectedLayers ? (_(), C("div", {
|
|
737
756
|
key: 0,
|
|
738
|
-
class: "active-layers",
|
|
757
|
+
class: "active-layers flex-between",
|
|
739
758
|
style: U({ right: i.right + "px", bottom: "100px" })
|
|
740
759
|
}, [
|
|
741
|
-
(
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
760
|
+
n("div", Ke, [
|
|
761
|
+
(_(!0), C(_e, null, Se(i.layers.weather.filter((c) => c.collected), (c) => (_(), C("div", {
|
|
762
|
+
key: c.key,
|
|
763
|
+
class: j(o.computeLayerClass(c, i.weatherLayers)),
|
|
764
|
+
onClick: (p) => o.handleWeatherLayerPick(c)
|
|
765
|
+
}, [
|
|
766
|
+
e[14] || (e[14] = n("div", { class: "checkbox" }, null, -1)),
|
|
767
|
+
n("span", null, S(c.name), 1)
|
|
768
|
+
], 10, et))), 128))
|
|
769
|
+
]),
|
|
770
|
+
n("div", {
|
|
771
|
+
class: "switch flex-center",
|
|
772
|
+
style: { "margin-top": "4px", "align-self": "flex-start", "font-size": "28px" },
|
|
773
|
+
onClick: e[5] || (e[5] = (...c) => o.toggleAutoActive && o.toggleAutoActive(...c))
|
|
774
|
+
}, e[15] || (e[15] = [
|
|
775
|
+
n("i", { class: "iconfont open" }, "", -1),
|
|
776
|
+
n("i", { class: "iconfont close" }, "", -1)
|
|
777
|
+
]))
|
|
778
|
+
], 4)) : B("", !0),
|
|
779
|
+
n("div", {
|
|
751
780
|
class: "available-layers flex-center",
|
|
752
781
|
style: U({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
|
|
753
782
|
}, [
|
|
754
|
-
|
|
755
|
-
class:
|
|
783
|
+
n("div", {
|
|
784
|
+
class: j(["list-box", t.layerToggle ? "right-bar" : ""])
|
|
756
785
|
}, [
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
786
|
+
n("div", tt, [
|
|
787
|
+
e[16] || (e[16] = n("div", null, "Layers", -1)),
|
|
788
|
+
n("div", {
|
|
760
789
|
class: "iconfont close-btn",
|
|
761
|
-
onClick: e[
|
|
790
|
+
onClick: e[6] || (e[6] = (...c) => o.handleMenuToggle && o.handleMenuToggle(...c))
|
|
762
791
|
}, "")
|
|
763
792
|
]),
|
|
764
793
|
k(d, { style: { flex: "1" } }, {
|
|
765
|
-
default:
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
794
|
+
default: X(() => [
|
|
795
|
+
n("div", at, [
|
|
796
|
+
n("div", {
|
|
797
|
+
class: j(["layers-title flex-between", i.autoActive ? "active" : ""])
|
|
798
|
+
}, [
|
|
799
|
+
e[18] || (e[18] = n("div", null, "Weather Layers", -1)),
|
|
800
|
+
n("div", {
|
|
801
|
+
class: "switch flex-center",
|
|
802
|
+
style: { "margin-right": "0" },
|
|
803
|
+
onClick: e[7] || (e[7] = (...c) => o.toggleAutoActive && o.toggleAutoActive(...c))
|
|
804
|
+
}, e[17] || (e[17] = [
|
|
805
|
+
n("i", { class: "iconfont open" }, "", -1),
|
|
806
|
+
n("i", { class: "iconfont close" }, "", -1)
|
|
807
|
+
]))
|
|
808
|
+
], 2),
|
|
809
|
+
n("div", it, [
|
|
810
|
+
(_(!0), C(_e, null, Se(i.layers.weather, (c) => (_(), C(_e, {
|
|
811
|
+
key: c.key
|
|
771
812
|
}, [
|
|
772
|
-
|
|
813
|
+
c.hide ? B("", !0) : (_(), C("div", {
|
|
773
814
|
key: 0,
|
|
774
|
-
class:
|
|
815
|
+
class: j(o.computeLayerClass(c, i.weatherLayers))
|
|
775
816
|
}, [
|
|
776
|
-
|
|
817
|
+
n("div", {
|
|
777
818
|
class: "flex-start",
|
|
778
|
-
onClick: (
|
|
819
|
+
onClick: (p) => o.handleWeatherLayerPick(c)
|
|
779
820
|
}, [
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
], 8,
|
|
783
|
-
|
|
784
|
-
onClick: (
|
|
821
|
+
e[19] || (e[19] = n("div", { class: "checkbox" }, null, -1)),
|
|
822
|
+
n("span", null, S(c.name), 1)
|
|
823
|
+
], 8, rt),
|
|
824
|
+
n("div", {
|
|
825
|
+
onClick: (p) => o.handleWeatherLayerCollect(c)
|
|
785
826
|
}, [
|
|
786
|
-
|
|
787
|
-
], 8,
|
|
827
|
+
c.collected ? (_(), C("i", st, "")) : (_(), C("i", nt, ""))
|
|
828
|
+
], 8, ot)
|
|
788
829
|
], 2))
|
|
789
830
|
], 64))), 128)),
|
|
790
|
-
|
|
831
|
+
e[20] || (e[20] = n("div", { class: "tip flex-start" }, [
|
|
832
|
+
n("i", {
|
|
833
|
+
class: "iconfont bookmark",
|
|
834
|
+
style: { "align-self": "flex-start", padding: "5px 5px 0 0" }
|
|
835
|
+
}, ""),
|
|
836
|
+
n("div", null, "Bookmark your favorite layer to homepage(Max 6)")
|
|
837
|
+
], -1))
|
|
791
838
|
])
|
|
792
839
|
]),
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
(
|
|
797
|
-
key:
|
|
798
|
-
class:
|
|
799
|
-
onClick: (
|
|
840
|
+
n("div", lt, [
|
|
841
|
+
e[22] || (e[22] = n("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
842
|
+
n("div", ct, [
|
|
843
|
+
(_(!0), C(_e, null, Se(i.layers.other, (c) => (_(), C("div", {
|
|
844
|
+
key: c.key,
|
|
845
|
+
class: j(o.computeLayerClass(c, i.otherLayers)),
|
|
846
|
+
onClick: (p) => o.handleOtherLayerPick(c)
|
|
800
847
|
}, [
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
848
|
+
n("div", dt, [
|
|
849
|
+
e[21] || (e[21] = n("div", { class: "switch flex-center" }, [
|
|
850
|
+
n("i", { class: "iconfont open" }, ""),
|
|
851
|
+
n("i", { class: "iconfont close" }, "")
|
|
852
|
+
], -1)),
|
|
853
|
+
n("span", null, S(c.name), 1)
|
|
804
854
|
])
|
|
805
|
-
], 10,
|
|
855
|
+
], 10, ht))), 128))
|
|
806
856
|
])
|
|
807
857
|
]),
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
k(
|
|
858
|
+
n("div", pt, [
|
|
859
|
+
e[25] || (e[25] = n("span", { class: "layers-title" }, "Forecast Model", -1)),
|
|
860
|
+
n("div", mt, [
|
|
861
|
+
k(h, {
|
|
812
862
|
modelValue: i.source,
|
|
813
|
-
"onUpdate:modelValue": e[
|
|
863
|
+
"onUpdate:modelValue": e[8] || (e[8] = (c) => i.source = c),
|
|
814
864
|
class: "layer-radio flex-col-center-start"
|
|
815
865
|
}, {
|
|
816
|
-
default:
|
|
817
|
-
k(
|
|
818
|
-
default:
|
|
819
|
-
|
|
820
|
-
]),
|
|
866
|
+
default: X(() => [
|
|
867
|
+
k(l, { value: "GFS" }, {
|
|
868
|
+
default: X(() => e[23] || (e[23] = [
|
|
869
|
+
Ie("GFS")
|
|
870
|
+
])),
|
|
821
871
|
_: 1
|
|
822
872
|
}),
|
|
823
|
-
k(
|
|
824
|
-
default:
|
|
825
|
-
|
|
826
|
-
]),
|
|
873
|
+
k(l, { value: "CMEMS" }, {
|
|
874
|
+
default: X(() => e[24] || (e[24] = [
|
|
875
|
+
Ie("CMEMS")
|
|
876
|
+
])),
|
|
827
877
|
_: 1
|
|
828
878
|
})
|
|
829
879
|
]),
|
|
@@ -838,8 +888,8 @@ function Ut(a, e, t, r, i, o) {
|
|
|
838
888
|
], 4)
|
|
839
889
|
]);
|
|
840
890
|
}
|
|
841
|
-
const
|
|
842
|
-
const
|
|
891
|
+
const yt = /* @__PURE__ */ T(Xe, [["render", ut]]);
|
|
892
|
+
const ft = {
|
|
843
893
|
name: "IdmWindBarb",
|
|
844
894
|
props: {
|
|
845
895
|
map: {
|
|
@@ -865,12 +915,12 @@ const Ht = {
|
|
|
865
915
|
type: Number
|
|
866
916
|
}
|
|
867
917
|
},
|
|
868
|
-
emits: ["particle"],
|
|
918
|
+
emits: ["particle", "showWindFeather"],
|
|
869
919
|
data() {
|
|
870
920
|
return {
|
|
871
921
|
source: "wind-barb-source",
|
|
872
922
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
873
|
-
empty:
|
|
923
|
+
empty: x.featureCollection([]),
|
|
874
924
|
showFeather: localStorage.getItem("windFeatherCache") === "true" || !1,
|
|
875
925
|
windFeatherCache: "windFeatherCache",
|
|
876
926
|
right: 10,
|
|
@@ -893,7 +943,7 @@ const Ht = {
|
|
|
893
943
|
},
|
|
894
944
|
showFeather: {
|
|
895
945
|
handler() {
|
|
896
|
-
localStorage.setItem(this.windFeatherCache, this.showFeather), this.handleToggle();
|
|
946
|
+
localStorage.setItem(this.windFeatherCache, this.showFeather), this.handleToggle(), this.$emit("showWindFeather", this.showFeather);
|
|
897
947
|
},
|
|
898
948
|
immediate: !0
|
|
899
949
|
},
|
|
@@ -917,28 +967,28 @@ const Ht = {
|
|
|
917
967
|
}, 500);
|
|
918
968
|
else if (this.wind) {
|
|
919
969
|
const i = (/* @__PURE__ */ new Date()).valueOf();
|
|
920
|
-
let o = 0, s = 0,
|
|
921
|
-
if ((a = this.wind) != null && a.active && (
|
|
922
|
-
(r = this.map) == null || r.getSource(this.source).setData(
|
|
970
|
+
let o = 0, s = 0, l = this.empty;
|
|
971
|
+
if ((a = this.wind) != null && a.active && (l = (e = this.wind) == null ? void 0 : e.data), (t = this.map) != null && t.getSource(this.source))
|
|
972
|
+
(r = this.map) == null || r.getSource(this.source).setData(l), s = (/* @__PURE__ */ new Date()).valueOf() - (i + o), console.log("[wind] update elapsed: ", s, ", total: ", o += s);
|
|
923
973
|
else {
|
|
924
|
-
this.map.addSource(this.source, { type: "geojson", data:
|
|
925
|
-
for (let
|
|
926
|
-
const d = (this.barbs ?? [])[
|
|
974
|
+
this.map.addSource(this.source, { type: "geojson", data: l });
|
|
975
|
+
for (let h = 0; h < (this.barbs ?? []).length - 1; h++) {
|
|
976
|
+
const d = (this.barbs ?? [])[h] || 0, c = (this.barbs ?? [])[h + 1] || 0, p = d < 10 ? `00${d}kts` : d < 100 ? `0${d}kts` : `${d}kts`;
|
|
927
977
|
this.map.addLayer(
|
|
928
978
|
{
|
|
929
|
-
id:
|
|
979
|
+
id: p,
|
|
930
980
|
type: "symbol",
|
|
931
981
|
filter: [
|
|
932
982
|
"all",
|
|
933
983
|
// @ts-ignore
|
|
934
984
|
[">=", "spd", d],
|
|
935
985
|
// @ts-ignore
|
|
936
|
-
["<", "spd",
|
|
986
|
+
["<", "spd", c]
|
|
937
987
|
],
|
|
938
988
|
source: this.source,
|
|
939
989
|
layout: {
|
|
940
990
|
"symbol-placement": "point",
|
|
941
|
-
"icon-image":
|
|
991
|
+
"icon-image": p,
|
|
942
992
|
// mapbox sprite
|
|
943
993
|
"icon-size": 0.14,
|
|
944
994
|
"icon-offset": [0, -20],
|
|
@@ -981,34 +1031,34 @@ const Ht = {
|
|
|
981
1031
|
this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
|
|
982
1032
|
}
|
|
983
1033
|
}
|
|
984
|
-
},
|
|
985
|
-
|
|
986
|
-
Xt
|
|
987
|
-
], qt = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), Qt = /* @__PURE__ */ l("span", null, "Wind Feather", -1), Kt = [
|
|
988
|
-
qt,
|
|
989
|
-
Qt
|
|
990
|
-
];
|
|
991
|
-
function ea(a, e, t, r, i, o) {
|
|
1034
|
+
}, gt = { key: 0 };
|
|
1035
|
+
function bt(a, e, t, r, i, o) {
|
|
992
1036
|
var s;
|
|
993
|
-
return (s = t.wind) != null && s.active ? (
|
|
994
|
-
|
|
1037
|
+
return (s = t.wind) != null && s.active ? (_(), C("div", gt, [
|
|
1038
|
+
n("div", {
|
|
995
1039
|
class: "flex-center wind-tool-bars",
|
|
996
1040
|
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
|
|
997
1041
|
}, [
|
|
998
|
-
t.mapProjection === "mercator" ? (
|
|
1042
|
+
t.mapProjection === "mercator" ? (_(), C("div", {
|
|
999
1043
|
key: 0,
|
|
1000
|
-
class:
|
|
1001
|
-
onClick: e[0] || (e[0] = (...
|
|
1002
|
-
},
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1044
|
+
class: j(["item-bar flex-start", t.showParticle ? "active" : "inactive"]),
|
|
1045
|
+
onClick: e[0] || (e[0] = (...l) => o.handleParticle && o.handleParticle(...l))
|
|
1046
|
+
}, e[2] || (e[2] = [
|
|
1047
|
+
n("div", { class: "checkbox" }, null, -1),
|
|
1048
|
+
n("span", null, "Wind Particles", -1)
|
|
1049
|
+
]), 2)) : B("", !0),
|
|
1050
|
+
n("div", {
|
|
1051
|
+
class: j(["item-bar flex-start", i.showFeather ? "active" : "inactive"]),
|
|
1052
|
+
onClick: e[1] || (e[1] = (l) => i.showFeather = !i.showFeather)
|
|
1053
|
+
}, e[3] || (e[3] = [
|
|
1054
|
+
n("div", { class: "checkbox" }, null, -1),
|
|
1055
|
+
n("span", null, "Wind Feather", -1)
|
|
1056
|
+
]), 2)
|
|
1007
1057
|
], 4)
|
|
1008
|
-
])) :
|
|
1058
|
+
])) : B("", !0);
|
|
1009
1059
|
}
|
|
1010
|
-
const
|
|
1011
|
-
class
|
|
1060
|
+
const vt = /* @__PURE__ */ T(ft, [["render", bt]]);
|
|
1061
|
+
class Re {
|
|
1012
1062
|
constructor(e) {
|
|
1013
1063
|
R(this, "map");
|
|
1014
1064
|
R(this, "mercator");
|
|
@@ -1019,7 +1069,7 @@ class Ve {
|
|
|
1019
1069
|
R(this, "rampColorCanvas");
|
|
1020
1070
|
R(this, "particleCanvas");
|
|
1021
1071
|
R(this, "ratio");
|
|
1022
|
-
this.map = e, this.mercator = new
|
|
1072
|
+
this.map = e, this.mercator = new He(), 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;
|
|
1023
1073
|
}
|
|
1024
1074
|
/**
|
|
1025
1075
|
* 转换为[-180, 180]的经度,且包含转换次数
|
|
@@ -1053,8 +1103,8 @@ class Ve {
|
|
|
1053
1103
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
1054
1104
|
*/
|
|
1055
1105
|
getBoundPixel() {
|
|
1056
|
-
const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, s] = this.convertNLng(r[0]), [
|
|
1057
|
-
return [
|
|
1106
|
+
const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, s] = this.convertNLng(r[0]), [l, h] = this.convertNLng(i[0]), [d, c] = this.mercator.px([o, r[1]], t), [p, f] = this.mercator.px([l, i[1]], t), m = Math.round(this.mercator.size * Math.pow(2, t) * (s + h));
|
|
1107
|
+
return [p, f, d + m, c];
|
|
1058
1108
|
}
|
|
1059
1109
|
/**
|
|
1060
1110
|
* [视窗边界像素宽度]
|
|
@@ -1069,13 +1119,13 @@ class Ve {
|
|
|
1069
1119
|
* @param zoom
|
|
1070
1120
|
*/
|
|
1071
1121
|
getWorldCopy(e, t) {
|
|
1072
|
-
const r = 2 ** t, [i, o, s,
|
|
1073
|
-
for (let
|
|
1074
|
-
for (let
|
|
1075
|
-
|
|
1076
|
-
return
|
|
1077
|
-
const
|
|
1078
|
-
return [
|
|
1122
|
+
const r = 2 ** t, [i, o, s, l] = e.map((c) => ~~(c / (r * 256))), h = [];
|
|
1123
|
+
for (let c = l; c <= o; c++)
|
|
1124
|
+
for (let p = i; p <= s; p++)
|
|
1125
|
+
h.push([p, c]);
|
|
1126
|
+
return h.map((c) => {
|
|
1127
|
+
const p = 2 ** t * 256;
|
|
1128
|
+
return [c[0] * p, c[1] * p, p];
|
|
1079
1129
|
});
|
|
1080
1130
|
}
|
|
1081
1131
|
resize() {
|
|
@@ -1091,7 +1141,7 @@ class Ve {
|
|
|
1091
1141
|
t !== r && this.map.setLayoutProperty(this.particleLayer, "visibility", r);
|
|
1092
1142
|
}
|
|
1093
1143
|
}
|
|
1094
|
-
class
|
|
1144
|
+
class fe {
|
|
1095
1145
|
/**
|
|
1096
1146
|
* 创建着色器
|
|
1097
1147
|
* @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
|
|
@@ -1116,9 +1166,9 @@ class Le {
|
|
|
1116
1166
|
* @param width??
|
|
1117
1167
|
* @param height??
|
|
1118
1168
|
*/
|
|
1119
|
-
createTexture(e, t, r, i, o, s,
|
|
1120
|
-
const
|
|
1121
|
-
return e.bindTexture(e.TEXTURE_2D,
|
|
1169
|
+
createTexture(e, t, r, i, o, s, l) {
|
|
1170
|
+
const h = e.createTexture();
|
|
1171
|
+
return e.bindTexture(e.TEXTURE_2D, h), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, t), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, r), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, i), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, i), o instanceof Uint8Array ? e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, s, l, 0, e.RGBA, e.UNSIGNED_BYTE, o) : e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, e.RGBA, e.UNSIGNED_BYTE, o), e.bindTexture(e.TEXTURE_2D, null), h;
|
|
1122
1172
|
}
|
|
1123
1173
|
/**
|
|
1124
1174
|
* 创建数据资源
|
|
@@ -1156,13 +1206,13 @@ class Le {
|
|
|
1156
1206
|
const i = this.createProgram(e, t, r);
|
|
1157
1207
|
if (i) {
|
|
1158
1208
|
const o = { program: i }, s = e.getProgramParameter(i, e.ACTIVE_ATTRIBUTES);
|
|
1159
|
-
for (let
|
|
1160
|
-
const d = e.getActiveAttrib(i,
|
|
1209
|
+
for (let h = 0; h < s; h++) {
|
|
1210
|
+
const d = e.getActiveAttrib(i, h);
|
|
1161
1211
|
o[d.name] = e.getAttribLocation(i, d.name);
|
|
1162
1212
|
}
|
|
1163
|
-
const
|
|
1164
|
-
for (let
|
|
1165
|
-
const d = e.getActiveUniform(i,
|
|
1213
|
+
const l = e.getProgramParameter(i, e.ACTIVE_UNIFORMS);
|
|
1214
|
+
for (let h = 0; h < l; h++) {
|
|
1215
|
+
const d = e.getActiveUniform(i, h);
|
|
1166
1216
|
o[d.name] = e.getUniformLocation(i, d.name);
|
|
1167
1217
|
}
|
|
1168
1218
|
return o;
|
|
@@ -1175,19 +1225,19 @@ class Le {
|
|
|
1175
1225
|
setup(e, t, r = !1, i, o) {
|
|
1176
1226
|
const s = document.createElement("canvas");
|
|
1177
1227
|
s.width = 256, s.height = 1;
|
|
1178
|
-
const
|
|
1179
|
-
if (
|
|
1180
|
-
const
|
|
1181
|
-
return t.forEach(([d,
|
|
1182
|
-
|
|
1183
|
-
}),
|
|
1228
|
+
const l = s.getContext("2d");
|
|
1229
|
+
if (l && e) {
|
|
1230
|
+
const h = l == null ? void 0 : l.createLinearGradient(0, 0, 256, 0);
|
|
1231
|
+
return t.forEach(([d, c]) => {
|
|
1232
|
+
h.addColorStop(d, c);
|
|
1233
|
+
}), l.fillStyle = h, l.fillRect(0, 0, 256, 1), {
|
|
1184
1234
|
canvas: s,
|
|
1185
1235
|
texture: this.createTexture(
|
|
1186
1236
|
e,
|
|
1187
1237
|
e.LINEAR,
|
|
1188
1238
|
e.LINEAR,
|
|
1189
1239
|
e.CLAMP_TO_EDGE,
|
|
1190
|
-
r ? new Uint8Array(
|
|
1240
|
+
r ? new Uint8Array(l.getImageData(0, 0, 256, 1).data) : s,
|
|
1191
1241
|
i,
|
|
1192
1242
|
o
|
|
1193
1243
|
)
|
|
@@ -1196,53 +1246,53 @@ class Le {
|
|
|
1196
1246
|
}
|
|
1197
1247
|
setupParticle(e, t = 1e3) {
|
|
1198
1248
|
const r = Math.ceil(Math.sqrt(t)), i = r * r, o = new Uint8Array(i * 4);
|
|
1199
|
-
for (let
|
|
1200
|
-
o[
|
|
1201
|
-
const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r),
|
|
1202
|
-
for (let
|
|
1203
|
-
c
|
|
1204
|
-
const d = this.createDataBuffer(e, "array",
|
|
1205
|
-
return { resolution: r, total: i, texture0: s, texture1:
|
|
1249
|
+
for (let c = 0; c < o.length; c++)
|
|
1250
|
+
o[c] = Math.floor(Math.random() * 256);
|
|
1251
|
+
const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), l = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), h = new Float32Array(i);
|
|
1252
|
+
for (let c = 0; c < i; c++)
|
|
1253
|
+
h[c] = c;
|
|
1254
|
+
const d = this.createDataBuffer(e, "array", h);
|
|
1255
|
+
return { resolution: r, total: i, texture0: s, texture1: l, indexBuffer: d };
|
|
1206
1256
|
}
|
|
1207
1257
|
bind(e, t, r) {
|
|
1208
1258
|
const i = this.createProgram(e, t, r);
|
|
1209
1259
|
if (i) {
|
|
1210
1260
|
const o = this.createDataBuffer(e, "array", void 0), s = e.getAttribLocation(i, "a_position");
|
|
1211
1261
|
e.enableVertexAttribArray(s), e.vertexAttribPointer(s, 2, e.FLOAT, !1, 0, 0);
|
|
1212
|
-
const
|
|
1213
|
-
this.createDataBuffer(e, "array",
|
|
1214
|
-
const
|
|
1215
|
-
return e.enableVertexAttribArray(
|
|
1262
|
+
const l = new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1]);
|
|
1263
|
+
this.createDataBuffer(e, "array", l);
|
|
1264
|
+
const h = e.getAttribLocation(i, "a_texCoord");
|
|
1265
|
+
return e.enableVertexAttribArray(h), e.vertexAttribPointer(h, 2, e.FLOAT, !1, 0, 0), { program: i, aPositionBuffer: o };
|
|
1216
1266
|
}
|
|
1217
1267
|
return {};
|
|
1218
1268
|
}
|
|
1219
1269
|
bindParticle(e, t, r, i, o, s) {
|
|
1220
|
-
const
|
|
1221
|
-
return { particle:
|
|
1270
|
+
const l = this.createProgramWrapper(e, t, r), h = this.createProgramWrapper(e, i, o), d = this.createProgramWrapper(e, i, s), c = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), p = e.createFramebuffer();
|
|
1271
|
+
return { particle: l, screen: h, update: d, quadBuffer: c, frameBuffer: p };
|
|
1222
1272
|
}
|
|
1223
|
-
draw(e, t, r, i, o, s,
|
|
1224
|
-
var
|
|
1273
|
+
draw(e, t, r, i, o, s, l) {
|
|
1274
|
+
var h, d;
|
|
1225
1275
|
if (t && r) {
|
|
1226
|
-
e.resize(), t == null || t.viewport(0, 0, (
|
|
1276
|
+
e.resize(), t == null || t.viewport(0, 0, (h = t == null ? void 0 : t.canvas) == null ? void 0 : h.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);
|
|
1227
1277
|
try {
|
|
1228
|
-
const
|
|
1229
|
-
if (t.useProgram(r), t.uniform2f(
|
|
1230
|
-
const
|
|
1231
|
-
t.uniform2f(
|
|
1278
|
+
const c = t.getUniformLocation(r, "u_resolution"), p = t.getUniformLocation(r, "u_image"), f = t.getUniformLocation(r, "u_color");
|
|
1279
|
+
if (t.useProgram(r), t.uniform2f(c, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), t.uniform1i(p, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, o), t.uniform1i(f, 1), l != null && l.uvRange && (l != null && l.sRange)) {
|
|
1280
|
+
const u = t.getUniformLocation(r, "u_range_u_v"), v = t.getUniformLocation(r, "u_range_s");
|
|
1281
|
+
t.uniform2f(u, l.uvRange[0], l.uvRange[1]), t.uniform2f(v, l.sRange[0], l.sRange[1]);
|
|
1232
1282
|
}
|
|
1233
|
-
const
|
|
1234
|
-
for (const
|
|
1235
|
-
const v = (
|
|
1236
|
-
t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER,
|
|
1283
|
+
const m = e.getBoundPixel(), b = e.map.getZoom() + 1, y = e.getWorldCopy(m, b);
|
|
1284
|
+
for (const u of y) {
|
|
1285
|
+
const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio, L = u[2] * e.ratio, [z, w, A, M] = [v, L + v, g, L + g], W = new Float32Array([z, A, w, A, z, M, z, M, w, A, w, M]);
|
|
1286
|
+
t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER, W, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
1237
1287
|
}
|
|
1238
|
-
} catch (
|
|
1239
|
-
console.log(`render failed...${
|
|
1288
|
+
} catch (c) {
|
|
1289
|
+
console.log(`render failed...${c}`);
|
|
1240
1290
|
}
|
|
1241
1291
|
}
|
|
1242
1292
|
}
|
|
1243
1293
|
drawParticle(e, t, r, i, o) {
|
|
1244
|
-
var s,
|
|
1245
|
-
t && (t == null || t.viewport(0, 0, (s = t == null ? void 0 : t.canvas) == null ? void 0 : s.width, (
|
|
1294
|
+
var s, l;
|
|
1295
|
+
t && (t == null || t.viewport(0, 0, (s = t == null ? void 0 : t.canvas) == null ? void 0 : s.width, (l = t == null ? void 0 : t.canvas) == null ? void 0 : l.height), t.disable(t.DEPTH_TEST), t.disable(t.STENCIL_TEST), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, r), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, i.texture0), this.renderScreen(e, t, i, o), this.updateParticles(e, t, i, o));
|
|
1246
1296
|
}
|
|
1247
1297
|
renderScreen(e, t, r, i) {
|
|
1248
1298
|
t.bindFramebuffer(t.FRAMEBUFFER, r.frameBuffer), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, r.screenTexture, 0), t.viewport(0, 0, t.canvas.width, t.canvas.height), this.renderScreenTexture(t, r.backgroundTexture, r.screen, r.quadBuffer, 0.95), this.renderParticles(e, t, r, i), t.bindFramebuffer(t.FRAMEBUFFER, null), this.renderScreenTexture(t, r.screenTexture, r.screen, r.quadBuffer, 1);
|
|
@@ -1260,11 +1310,11 @@ class Le {
|
|
|
1260
1310
|
}
|
|
1261
1311
|
}
|
|
1262
1312
|
updateParticles(e, t, r, i) {
|
|
1263
|
-
var s,
|
|
1313
|
+
var s, l;
|
|
1264
1314
|
if (t) {
|
|
1265
1315
|
t.bindFramebuffer(t.FRAMEBUFFER, r.frameBuffer), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, r.texture1, 0), t.viewport(0, 0, r.resolution, r.resolution), t.useProgram(r.update.program), t.bindBuffer(t.ARRAY_BUFFER, r.quadBuffer), t.enableVertexAttribArray(r.update.a_pos), t.vertexAttribPointer(r.update.a_pos, 2, t.FLOAT, !1, 0, 0), t.uniform1i(r.update.u_factor, 0), t.uniform1i(r.update.u_particles, 1);
|
|
1266
|
-
const
|
|
1267
|
-
t.uniform4f(r.update.u_viewport,
|
|
1316
|
+
const h = e.getBoundRange();
|
|
1317
|
+
t.uniform4f(r.update.u_viewport, h[0], h[1], h[2], h[3]), t.uniform1f(r.update.u_rand_seed, Math.random()), t.uniform2f(r.update.u_factor_res, (s = r == null ? void 0 : r.image) == null ? void 0 : s.width, (l = r == null ? void 0 : r.image) == null ? void 0 : l.height), t.uniform2f(r.update.u_factor_min, i.uvRange[0], i.uvRange[0]), t.uniform2f(r.update.u_factor_max, i.uvRange[1], i.uvRange[1]), t.uniform1f(r.update.u_speed_factor, i.speedFactor * e.ratio), t.uniform1f(r.update.u_drop_rate, i.dropRate), t.uniform1f(r.update.u_drop_rate_bump, i.dropRateBump), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
1268
1318
|
}
|
|
1269
1319
|
const o = r.texture0;
|
|
1270
1320
|
r.texture0 = r.texture1, r.texture1 = o;
|
|
@@ -1478,7 +1528,7 @@ R(V, "vertexSchema", `
|
|
|
1478
1528
|
fract(pos * 255.0),
|
|
1479
1529
|
floor(pos * 255.0) / 255.0);
|
|
1480
1530
|
}`);
|
|
1481
|
-
class
|
|
1531
|
+
class wt {
|
|
1482
1532
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
1483
1533
|
R(this, "token");
|
|
1484
1534
|
R(this, "mapboxCustomer");
|
|
@@ -3082,14 +3132,14 @@ class aa {
|
|
|
3082
3132
|
};
|
|
3083
3133
|
}
|
|
3084
3134
|
}
|
|
3085
|
-
const
|
|
3135
|
+
const Lt = {
|
|
3086
3136
|
name: "IdmWindParticle",
|
|
3087
3137
|
props: {
|
|
3088
3138
|
factor: {
|
|
3089
3139
|
type: Object
|
|
3090
3140
|
},
|
|
3091
3141
|
viewport: {
|
|
3092
|
-
type:
|
|
3142
|
+
type: Re
|
|
3093
3143
|
},
|
|
3094
3144
|
bottom: {
|
|
3095
3145
|
type: String,
|
|
@@ -3106,7 +3156,7 @@ const ia = {
|
|
|
3106
3156
|
texture: void 0,
|
|
3107
3157
|
rampColor: void 0,
|
|
3108
3158
|
aPositionBuffer: void 0,
|
|
3109
|
-
webgl: new
|
|
3159
|
+
webgl: new fe(),
|
|
3110
3160
|
etime: void 0,
|
|
3111
3161
|
wrapper: void 0,
|
|
3112
3162
|
animation: void 0,
|
|
@@ -3160,8 +3210,8 @@ const ia = {
|
|
|
3160
3210
|
}
|
|
3161
3211
|
},
|
|
3162
3212
|
handleClear() {
|
|
3163
|
-
var a, e, t, r, i, o, s,
|
|
3164
|
-
(a = this.viewport) == null || a.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (t = this.viewport) == null ? void 0 : t.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (
|
|
3213
|
+
var a, e, t, r, i, o, s, l;
|
|
3214
|
+
(a = this.viewport) == null || a.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (t = this.viewport) == null ? void 0 : t.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (l = (s = this.viewport) == null ? void 0 : s.map) == null || l.off("moveend", this.handlePlay), this.handlePause();
|
|
3165
3215
|
},
|
|
3166
3216
|
handleSetup() {
|
|
3167
3217
|
if (!this.context) {
|
|
@@ -3244,27 +3294,27 @@ const ia = {
|
|
|
3244
3294
|
});
|
|
3245
3295
|
}
|
|
3246
3296
|
}
|
|
3247
|
-
},
|
|
3248
|
-
|
|
3249
|
-
sa,
|
|
3250
|
-
na,
|
|
3251
|
-
la,
|
|
3252
|
-
ca,
|
|
3253
|
-
ha,
|
|
3254
|
-
da,
|
|
3255
|
-
pa
|
|
3256
|
-
];
|
|
3257
|
-
function ua(a, e, t, r, i, o) {
|
|
3297
|
+
}, xt = { key: 0 };
|
|
3298
|
+
function _t(a, e, t, r, i, o) {
|
|
3258
3299
|
var s;
|
|
3259
|
-
return (s = t.factor) != null && s.active ? (
|
|
3260
|
-
|
|
3300
|
+
return (s = t.factor) != null && s.active ? (_(), C("div", xt, [
|
|
3301
|
+
n("div", {
|
|
3261
3302
|
class: "legend-bars flex-center",
|
|
3262
3303
|
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3263
|
-
},
|
|
3264
|
-
|
|
3304
|
+
}, e[0] || (e[0] = [
|
|
3305
|
+
n("span", null, "kts", -1),
|
|
3306
|
+
n("span", null, "0", -1),
|
|
3307
|
+
n("span", null, "5", -1),
|
|
3308
|
+
n("span", null, "10", -1),
|
|
3309
|
+
n("span", null, "20", -1),
|
|
3310
|
+
n("span", null, "30", -1),
|
|
3311
|
+
n("span", null, "40", -1),
|
|
3312
|
+
n("span", null, "60", -1)
|
|
3313
|
+
]), 4)
|
|
3314
|
+
])) : B("", !0);
|
|
3265
3315
|
}
|
|
3266
|
-
const
|
|
3267
|
-
const
|
|
3316
|
+
const Ct = /* @__PURE__ */ T(Lt, [["render", _t], ["__scopeId", "data-v-64887571"]]);
|
|
3317
|
+
const kt = {
|
|
3268
3318
|
name: "IdmCurrent",
|
|
3269
3319
|
props: {
|
|
3270
3320
|
map: {
|
|
@@ -3291,14 +3341,14 @@ const fa = {
|
|
|
3291
3341
|
type: Number
|
|
3292
3342
|
}
|
|
3293
3343
|
},
|
|
3294
|
-
emits: ["particle", "handleToggleVersion"],
|
|
3344
|
+
emits: ["particle", "showCurrentIsoband", "handleToggleVersion"],
|
|
3295
3345
|
data() {
|
|
3296
3346
|
return {
|
|
3297
3347
|
source: "current-source",
|
|
3298
3348
|
directionLayer: "current-direction-layer",
|
|
3299
3349
|
speedLayer: "current-speed-layer",
|
|
3300
3350
|
speedLabelLayer: "current-speed-label-layer",
|
|
3301
|
-
empty:
|
|
3351
|
+
empty: x.featureCollection([]),
|
|
3302
3352
|
showJson: localStorage.getItem("currentJsonCache") === "true" || !1,
|
|
3303
3353
|
currentJsonCache: "currentJsonCache",
|
|
3304
3354
|
right: 10,
|
|
@@ -3320,7 +3370,7 @@ const fa = {
|
|
|
3320
3370
|
},
|
|
3321
3371
|
showJson: {
|
|
3322
3372
|
handler() {
|
|
3323
|
-
this.showJson, localStorage.setItem(this.currentJsonCache, this.showJson), this.handleToggle();
|
|
3373
|
+
this.showJson, localStorage.setItem(this.currentJsonCache, this.showJson), this.handleToggle(), this.$emit("showCurrentIsoband", this.showJson);
|
|
3324
3374
|
},
|
|
3325
3375
|
immediate: !0
|
|
3326
3376
|
},
|
|
@@ -3414,41 +3464,41 @@ const fa = {
|
|
|
3414
3464
|
this.map.getLayer(this.speedLayer) && this.map.removeLayer(this.speedLayer), this.map.getLayer(this.speedLabelLayer) && this.map.removeLayer(this.speedLabelLayer), this.map.getLayer(this.directionLayer) && this.map.removeLayer(this.directionLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
3415
3465
|
}
|
|
3416
3466
|
}
|
|
3417
|
-
},
|
|
3418
|
-
|
|
3419
|
-
va
|
|
3420
|
-
], _a = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), La = /* @__PURE__ */ l("span", null, "Current Isoband", -1), xa = [
|
|
3421
|
-
_a,
|
|
3422
|
-
La
|
|
3423
|
-
];
|
|
3424
|
-
function Ca(a, e, t, r, i, o) {
|
|
3467
|
+
}, St = { key: 0 };
|
|
3468
|
+
function Pt(a, e, t, r, i, o) {
|
|
3425
3469
|
var s;
|
|
3426
|
-
return (s = t.current) != null && s.active ? (
|
|
3427
|
-
|
|
3470
|
+
return (s = t.current) != null && s.active ? (_(), C("div", St, [
|
|
3471
|
+
n("div", {
|
|
3428
3472
|
class: "flex-center current-tool-bars",
|
|
3429
3473
|
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
|
|
3430
3474
|
}, [
|
|
3431
|
-
t.mapProjection === "mercator" ? (
|
|
3475
|
+
t.mapProjection === "mercator" ? (_(), C("div", {
|
|
3432
3476
|
key: 0,
|
|
3433
|
-
class:
|
|
3434
|
-
onClick: e[0] || (e[0] = (
|
|
3435
|
-
},
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3477
|
+
class: j(["flex-start item-bar", t.showParticle ? "active" : "inactive"]),
|
|
3478
|
+
onClick: e[0] || (e[0] = (l) => o.handleParticle(!t.showParticle))
|
|
3479
|
+
}, e[2] || (e[2] = [
|
|
3480
|
+
n("div", { class: "checkbox" }, null, -1),
|
|
3481
|
+
n("span", null, "Current Particles", -1)
|
|
3482
|
+
]), 2)) : B("", !0),
|
|
3483
|
+
n("div", {
|
|
3484
|
+
class: j(["flex-start item-bar", i.showJson ? "active" : "inactive"]),
|
|
3485
|
+
onClick: e[1] || (e[1] = (l) => i.showJson = !i.showJson)
|
|
3486
|
+
}, e[3] || (e[3] = [
|
|
3487
|
+
n("div", { class: "checkbox" }, null, -1),
|
|
3488
|
+
n("span", null, "Current Isoband", -1)
|
|
3489
|
+
]), 2)
|
|
3440
3490
|
], 4)
|
|
3441
|
-
])) :
|
|
3491
|
+
])) : B("", !0);
|
|
3442
3492
|
}
|
|
3443
|
-
const
|
|
3444
|
-
const
|
|
3493
|
+
const zt = /* @__PURE__ */ T(kt, [["render", Pt]]);
|
|
3494
|
+
const Tt = {
|
|
3445
3495
|
name: "IdmCurrentParticle",
|
|
3446
3496
|
props: {
|
|
3447
3497
|
factor: {
|
|
3448
3498
|
type: Object
|
|
3449
3499
|
},
|
|
3450
3500
|
viewport: {
|
|
3451
|
-
type:
|
|
3501
|
+
type: Re
|
|
3452
3502
|
},
|
|
3453
3503
|
bottom: {
|
|
3454
3504
|
type: String,
|
|
@@ -3465,7 +3515,7 @@ const Sa = {
|
|
|
3465
3515
|
texture: void 0,
|
|
3466
3516
|
rampColor: void 0,
|
|
3467
3517
|
aPositionBuffer: void 0,
|
|
3468
|
-
webgl: new
|
|
3518
|
+
webgl: new fe(),
|
|
3469
3519
|
etime: void 0,
|
|
3470
3520
|
wrapper: void 0,
|
|
3471
3521
|
animation: void 0,
|
|
@@ -3519,8 +3569,8 @@ const Sa = {
|
|
|
3519
3569
|
}
|
|
3520
3570
|
},
|
|
3521
3571
|
handleClear() {
|
|
3522
|
-
var a, e, t, r, i, o, s,
|
|
3523
|
-
(a = this.viewport) == null || a.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (t = this.viewport) == null ? void 0 : t.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (
|
|
3572
|
+
var a, e, t, r, i, o, s, l;
|
|
3573
|
+
(a = this.viewport) == null || a.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (t = this.viewport) == null ? void 0 : t.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (l = (s = this.viewport) == null ? void 0 : s.map) == null || l.off("moveend", this.handlePlay), this.handlePause();
|
|
3524
3574
|
},
|
|
3525
3575
|
handleSetup() {
|
|
3526
3576
|
if (!this.context) {
|
|
@@ -3598,25 +3648,25 @@ const Sa = {
|
|
|
3598
3648
|
});
|
|
3599
3649
|
}
|
|
3600
3650
|
}
|
|
3601
|
-
},
|
|
3602
|
-
|
|
3603
|
-
Ta,
|
|
3604
|
-
Ia,
|
|
3605
|
-
Ea,
|
|
3606
|
-
Ra,
|
|
3607
|
-
Aa,
|
|
3608
|
-
Da
|
|
3609
|
-
];
|
|
3610
|
-
function $a(a, e, t, r, i, o) {
|
|
3651
|
+
}, Et = { key: 0 };
|
|
3652
|
+
function It(a, e, t, r, i, o) {
|
|
3611
3653
|
var s;
|
|
3612
|
-
return (s = t.factor) != null && s.active ? (
|
|
3613
|
-
|
|
3654
|
+
return (s = t.factor) != null && s.active ? (_(), C("div", Et, [
|
|
3655
|
+
n("div", {
|
|
3614
3656
|
class: "legend-bars flex-center",
|
|
3615
3657
|
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3616
|
-
},
|
|
3617
|
-
|
|
3658
|
+
}, e[0] || (e[0] = [
|
|
3659
|
+
n("span", null, "kts", -1),
|
|
3660
|
+
n("span", null, "0", -1),
|
|
3661
|
+
n("span", null, "0.4", -1),
|
|
3662
|
+
n("span", null, "0.8", -1),
|
|
3663
|
+
n("span", null, "1.6", -1),
|
|
3664
|
+
n("span", null, "2", -1),
|
|
3665
|
+
n("span", null, "3.2", -1)
|
|
3666
|
+
]), 4)
|
|
3667
|
+
])) : B("", !0);
|
|
3618
3668
|
}
|
|
3619
|
-
const
|
|
3669
|
+
const Rt = /* @__PURE__ */ T(Tt, [["render", It], ["__scopeId", "data-v-6d4fd206"]]), At = {
|
|
3620
3670
|
name: "IdmSigWave",
|
|
3621
3671
|
props: {
|
|
3622
3672
|
map: {
|
|
@@ -3627,6 +3677,9 @@ const ja = /* @__PURE__ */ T(Sa, [["render", $a], ["__scopeId", "data-v-6d4fd206
|
|
|
3627
3677
|
},
|
|
3628
3678
|
beforeLayer: {
|
|
3629
3679
|
type: String
|
|
3680
|
+
},
|
|
3681
|
+
activeWeatherLayers: {
|
|
3682
|
+
type: Array
|
|
3630
3683
|
}
|
|
3631
3684
|
},
|
|
3632
3685
|
data() {
|
|
@@ -3634,7 +3687,7 @@ const ja = /* @__PURE__ */ T(Sa, [["render", $a], ["__scopeId", "data-v-6d4fd206
|
|
|
3634
3687
|
source: "sig-wave-source",
|
|
3635
3688
|
heightLayer: "sig-wave-height-layer",
|
|
3636
3689
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
3637
|
-
empty:
|
|
3690
|
+
empty: x.featureCollection([])
|
|
3638
3691
|
};
|
|
3639
3692
|
},
|
|
3640
3693
|
watch: {
|
|
@@ -3644,6 +3697,13 @@ const ja = /* @__PURE__ */ T(Sa, [["render", $a], ["__scopeId", "data-v-6d4fd206
|
|
|
3644
3697
|
(a = this.sigWave) != null && a.active ? this.handleRender() : this.handleClear();
|
|
3645
3698
|
},
|
|
3646
3699
|
deep: !0
|
|
3700
|
+
},
|
|
3701
|
+
activeWeatherLayers: {
|
|
3702
|
+
handler() {
|
|
3703
|
+
setTimeout(() => {
|
|
3704
|
+
}, 200);
|
|
3705
|
+
},
|
|
3706
|
+
deep: !0
|
|
3647
3707
|
}
|
|
3648
3708
|
},
|
|
3649
3709
|
methods: {
|
|
@@ -3672,13 +3732,13 @@ const ja = /* @__PURE__ */ T(Sa, [["render", $a], ["__scopeId", "data-v-6d4fd206
|
|
|
3672
3732
|
"fill-color": [
|
|
3673
3733
|
"step",
|
|
3674
3734
|
["get", "val"],
|
|
3675
|
-
"rgba(
|
|
3735
|
+
"rgba(186,247,237,0.5)",
|
|
3676
3736
|
3,
|
|
3677
|
-
"
|
|
3737
|
+
"rgba(93,235,185,0.8)",
|
|
3678
3738
|
4,
|
|
3679
|
-
"
|
|
3739
|
+
"rgba(101,252,149,0.9)",
|
|
3680
3740
|
5,
|
|
3681
|
-
"#
|
|
3741
|
+
"#b3ff6b",
|
|
3682
3742
|
6,
|
|
3683
3743
|
"#fee600",
|
|
3684
3744
|
7,
|
|
@@ -3727,10 +3787,10 @@ const ja = /* @__PURE__ */ T(Sa, [["render", $a], ["__scopeId", "data-v-6d4fd206
|
|
|
3727
3787
|
}
|
|
3728
3788
|
}
|
|
3729
3789
|
};
|
|
3730
|
-
function
|
|
3731
|
-
return
|
|
3790
|
+
function Dt(a, e, t, r, i, o) {
|
|
3791
|
+
return _(), C("div");
|
|
3732
3792
|
}
|
|
3733
|
-
const
|
|
3793
|
+
const Mt = /* @__PURE__ */ T(At, [["render", Dt]]), Wt = {
|
|
3734
3794
|
name: "IdmSwell",
|
|
3735
3795
|
props: {
|
|
3736
3796
|
map: {
|
|
@@ -3741,6 +3801,9 @@ const Ba = /* @__PURE__ */ T(Wa, [["render", Na]]), Oa = {
|
|
|
3741
3801
|
},
|
|
3742
3802
|
beforeLayer: {
|
|
3743
3803
|
type: String
|
|
3804
|
+
},
|
|
3805
|
+
activeWeatherLayers: {
|
|
3806
|
+
type: Array
|
|
3744
3807
|
}
|
|
3745
3808
|
},
|
|
3746
3809
|
data() {
|
|
@@ -3749,7 +3812,7 @@ const Ba = /* @__PURE__ */ T(Wa, [["render", Na]]), Oa = {
|
|
|
3749
3812
|
directionLayer: "swell-direction-layer",
|
|
3750
3813
|
heightLayer: "swell-height-layer",
|
|
3751
3814
|
heightLabelLayer: "swell-height-label-layer",
|
|
3752
|
-
empty:
|
|
3815
|
+
empty: x.featureCollection([])
|
|
3753
3816
|
};
|
|
3754
3817
|
},
|
|
3755
3818
|
watch: {
|
|
@@ -3759,6 +3822,13 @@ const Ba = /* @__PURE__ */ T(Wa, [["render", Na]]), Oa = {
|
|
|
3759
3822
|
(a = this.swell) != null && a.active ? this.handleRender() : this.handleClear();
|
|
3760
3823
|
},
|
|
3761
3824
|
deep: !0
|
|
3825
|
+
},
|
|
3826
|
+
activeWeatherLayers: {
|
|
3827
|
+
handler() {
|
|
3828
|
+
setTimeout(() => {
|
|
3829
|
+
}, 300);
|
|
3830
|
+
},
|
|
3831
|
+
deep: !0
|
|
3762
3832
|
}
|
|
3763
3833
|
},
|
|
3764
3834
|
methods: {
|
|
@@ -3828,7 +3898,7 @@ const Ba = /* @__PURE__ */ T(Wa, [["render", Na]]), Oa = {
|
|
|
3828
3898
|
],
|
|
3829
3899
|
"text-halo-width": 4
|
|
3830
3900
|
}
|
|
3831
|
-
}), this.map.addLayer(
|
|
3901
|
+
}, this.beforeLayer), this.map.addLayer(
|
|
3832
3902
|
{
|
|
3833
3903
|
id: this.directionLayer,
|
|
3834
3904
|
type: "symbol",
|
|
@@ -3868,10 +3938,10 @@ const Ba = /* @__PURE__ */ T(Wa, [["render", Na]]), Oa = {
|
|
|
3868
3938
|
}
|
|
3869
3939
|
}
|
|
3870
3940
|
};
|
|
3871
|
-
function
|
|
3872
|
-
return
|
|
3941
|
+
function jt(a, e, t, r, i, o) {
|
|
3942
|
+
return _(), C("div");
|
|
3873
3943
|
}
|
|
3874
|
-
const
|
|
3944
|
+
const Bt = /* @__PURE__ */ T(Wt, [["render", jt]]), Nt = {
|
|
3875
3945
|
name: "IdmPrmsl",
|
|
3876
3946
|
props: {
|
|
3877
3947
|
map: {
|
|
@@ -3883,6 +3953,9 @@ const Va = /* @__PURE__ */ T(Oa, [["render", Fa]]), Ua = {
|
|
|
3883
3953
|
beforeLayer: {
|
|
3884
3954
|
type: String
|
|
3885
3955
|
},
|
|
3956
|
+
showRampColor: {
|
|
3957
|
+
type: Boolean
|
|
3958
|
+
},
|
|
3886
3959
|
activeWeatherLayers: {
|
|
3887
3960
|
type: Array
|
|
3888
3961
|
}
|
|
@@ -3893,7 +3966,7 @@ const Va = /* @__PURE__ */ T(Oa, [["render", Fa]]), Ua = {
|
|
|
3893
3966
|
layer: "prmsl-layer",
|
|
3894
3967
|
labelLayer: "prmsl-label-layer",
|
|
3895
3968
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
3896
|
-
empty:
|
|
3969
|
+
empty: x.featureCollection([])
|
|
3897
3970
|
};
|
|
3898
3971
|
},
|
|
3899
3972
|
watch: {
|
|
@@ -3903,6 +3976,14 @@ const Va = /* @__PURE__ */ T(Oa, [["render", Fa]]), Ua = {
|
|
|
3903
3976
|
(a = this.prmsl) != null && a.active ? this.handleRender() : this.handleClear();
|
|
3904
3977
|
},
|
|
3905
3978
|
deep: !0
|
|
3979
|
+
},
|
|
3980
|
+
activeWeatherLayers: {
|
|
3981
|
+
handler() {
|
|
3982
|
+
setTimeout(() => {
|
|
3983
|
+
}, 300);
|
|
3984
|
+
},
|
|
3985
|
+
deep: !0,
|
|
3986
|
+
immediate: !0
|
|
3906
3987
|
}
|
|
3907
3988
|
},
|
|
3908
3989
|
methods: {
|
|
@@ -3983,7 +4064,7 @@ const Va = /* @__PURE__ */ T(Oa, [["render", Fa]]), Ua = {
|
|
|
3983
4064
|
},
|
|
3984
4065
|
this.beforeLayer
|
|
3985
4066
|
);
|
|
3986
|
-
},
|
|
4067
|
+
}, 100), o = (/* @__PURE__ */ new Date()).valueOf() - (r + i), console.log("[prmsl] add elapsed: ", o, ", total: ", i += o));
|
|
3987
4068
|
}
|
|
3988
4069
|
},
|
|
3989
4070
|
handleMove() {
|
|
@@ -3996,10 +4077,10 @@ const Va = /* @__PURE__ */ T(Oa, [["render", Fa]]), Ua = {
|
|
|
3996
4077
|
}
|
|
3997
4078
|
}
|
|
3998
4079
|
};
|
|
3999
|
-
function
|
|
4000
|
-
return
|
|
4080
|
+
function Ot(a, e, t, r, i, o) {
|
|
4081
|
+
return _(), C("div");
|
|
4001
4082
|
}
|
|
4002
|
-
const
|
|
4083
|
+
const Ft = /* @__PURE__ */ T(Nt, [["render", Ot]]), $t = {
|
|
4003
4084
|
name: "IdmIceberg",
|
|
4004
4085
|
props: {
|
|
4005
4086
|
map: {
|
|
@@ -4016,7 +4097,7 @@ const Ha = /* @__PURE__ */ T(Ua, [["render", Za]]), Ga = {
|
|
|
4016
4097
|
return {
|
|
4017
4098
|
source: "iceberg-source",
|
|
4018
4099
|
layer: "iceberg-layer",
|
|
4019
|
-
empty:
|
|
4100
|
+
empty: x.featureCollection([])
|
|
4020
4101
|
};
|
|
4021
4102
|
},
|
|
4022
4103
|
watch: {
|
|
@@ -4056,11 +4137,11 @@ const Ha = /* @__PURE__ */ T(Ua, [["render", Za]]), Ga = {
|
|
|
4056
4137
|
}
|
|
4057
4138
|
}
|
|
4058
4139
|
};
|
|
4059
|
-
function
|
|
4060
|
-
return
|
|
4140
|
+
function Vt(a, e, t, r, i, o) {
|
|
4141
|
+
return _(), C("div");
|
|
4061
4142
|
}
|
|
4062
|
-
const
|
|
4063
|
-
const
|
|
4143
|
+
const Ut = /* @__PURE__ */ T($t, [["render", Vt]]);
|
|
4144
|
+
const Zt = {
|
|
4064
4145
|
name: "IdmTropicals",
|
|
4065
4146
|
props: {
|
|
4066
4147
|
map: {
|
|
@@ -4080,7 +4161,7 @@ const Ya = {
|
|
|
4080
4161
|
emits: ["tropical", "tropicalProbability"],
|
|
4081
4162
|
data() {
|
|
4082
4163
|
return {
|
|
4083
|
-
helper:
|
|
4164
|
+
helper: Ce,
|
|
4084
4165
|
source: "tropicals-source",
|
|
4085
4166
|
clusterSource: "tropicals-cluster-source",
|
|
4086
4167
|
historyLayer: "tropicals-history-layer",
|
|
@@ -4098,9 +4179,9 @@ const Ya = {
|
|
|
4098
4179
|
showTropicals: !1,
|
|
4099
4180
|
activeTropicals: void 0,
|
|
4100
4181
|
activeTropicalsMarker: void 0,
|
|
4101
|
-
empty:
|
|
4182
|
+
empty: x.featureCollection([]),
|
|
4102
4183
|
circleSource: "circle-source",
|
|
4103
|
-
circleSourceData:
|
|
4184
|
+
circleSourceData: x.featureCollection([]),
|
|
4104
4185
|
circleLayer: "tropical-circle-layer"
|
|
4105
4186
|
};
|
|
4106
4187
|
},
|
|
@@ -4147,29 +4228,29 @@ const Ya = {
|
|
|
4147
4228
|
var r, i;
|
|
4148
4229
|
const a = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = Z().utc().hour(), t = [];
|
|
4149
4230
|
a.forEach((o) => {
|
|
4150
|
-
var s,
|
|
4151
|
-
(s = o.properties) != null && s.name && !t.includes((
|
|
4231
|
+
var s, l, h;
|
|
4232
|
+
(s = o.properties) != null && s.name && !t.includes((l = o.properties) == null ? void 0 : l.name) && t.push((h = o.properties) == null ? void 0 : h.name);
|
|
4152
4233
|
}), t.forEach((o) => {
|
|
4153
4234
|
var d;
|
|
4154
|
-
let s = 0,
|
|
4155
|
-
const
|
|
4156
|
-
var
|
|
4157
|
-
return ((
|
|
4235
|
+
let s = 0, l;
|
|
4236
|
+
const h = a.filter((c) => {
|
|
4237
|
+
var p, f;
|
|
4238
|
+
return ((f = (p = c.properties) == null ? void 0 : p.category) == null ? void 0 : f.split("-")[0]) === o;
|
|
4158
4239
|
});
|
|
4159
|
-
(d =
|
|
4160
|
-
var
|
|
4161
|
-
return ((
|
|
4162
|
-
})[0]) == null || d.properties.model,
|
|
4163
|
-
var
|
|
4164
|
-
((
|
|
4165
|
-
}),
|
|
4166
|
-
var
|
|
4167
|
-
if (((
|
|
4168
|
-
|
|
4169
|
-
const
|
|
4170
|
-
|
|
4240
|
+
(d = h.filter((c) => {
|
|
4241
|
+
var p, f;
|
|
4242
|
+
return ((p = c.geometry) == null ? void 0 : p.type) === "LineString" && ((f = c.properties) == null ? void 0 : f.type) === "forecast";
|
|
4243
|
+
})[0]) == null || d.properties.model, h.forEach((c, p) => {
|
|
4244
|
+
var f, m, b, y, u, v;
|
|
4245
|
+
((f = c.geometry) == null ? void 0 : f.type) === "Point" && ((m = c.properties) == null ? void 0 : m.type) === "history" && (s = p, l = l === void 0 ? p : l), ((b = c.geometry) == null ? void 0 : b.type) === "Point" && ((y = c.properties) == null ? void 0 : y.type) === "forecast" && l === void 0 && (l = p), ((u = c.geometry) == null ? void 0 : u.type) === "LineString" && ((v = c.properties) == null || v.type);
|
|
4246
|
+
}), h.map((c, p) => {
|
|
4247
|
+
var f, m, b, y, u, v, g;
|
|
4248
|
+
if (((f = c.geometry) == null ? void 0 : f.type) === "LineString" && ((m = c.properties) == null || m.type), ((b = c.geometry) == null ? void 0 : b.type) === "Point" && ((y = c.properties) == null ? void 0 : y.type) === "forecast" && (c.properties.name = o, c.properties.format = Z(c.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((u = c.geometry) == null ? void 0 : u.type) === "Point" && ((v = c.properties) == null ? void 0 : v.type) === "history") {
|
|
4249
|
+
c.properties.format = Z(c.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
4250
|
+
const L = Z((g = c.properties) == null ? void 0 : g.date).utc().format("HHmm") === Z().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
|
|
4251
|
+
c.properties.showHistoryLabel = L || p === s, c.properties.showNameLabel = p === s, c.properties.name = o;
|
|
4171
4252
|
}
|
|
4172
|
-
return
|
|
4253
|
+
return c;
|
|
4173
4254
|
});
|
|
4174
4255
|
}), this.handleInit();
|
|
4175
4256
|
},
|
|
@@ -4204,16 +4285,16 @@ const Ya = {
|
|
|
4204
4285
|
));
|
|
4205
4286
|
},
|
|
4206
4287
|
handleRender() {
|
|
4207
|
-
var a, e, t, r, i, o, s,
|
|
4288
|
+
var a, e, t, r, i, o, s, l, h, d;
|
|
4208
4289
|
if (!this.map)
|
|
4209
4290
|
setTimeout(() => {
|
|
4210
4291
|
this.handleRender();
|
|
4211
4292
|
}, 500);
|
|
4212
4293
|
else {
|
|
4213
4294
|
if (this.tropicals) {
|
|
4214
|
-
const
|
|
4215
|
-
let
|
|
4216
|
-
(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),
|
|
4295
|
+
const p = (/* @__PURE__ */ new Date()).valueOf();
|
|
4296
|
+
let f = 0, m = 0;
|
|
4297
|
+
(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), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropicals] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.source, {
|
|
4217
4298
|
type: "geojson",
|
|
4218
4299
|
data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
|
|
4219
4300
|
}), this.map.addLayer({
|
|
@@ -4310,9 +4391,9 @@ const Ya = {
|
|
|
4310
4391
|
],
|
|
4311
4392
|
"text-halo-width": 4
|
|
4312
4393
|
}
|
|
4313
|
-
}),
|
|
4394
|
+
}), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((l = this.map) == null || l.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.clusterSource, {
|
|
4314
4395
|
type: "geojson",
|
|
4315
|
-
data: (
|
|
4396
|
+
data: (h = this.tropicals) != null && h.active ? (d = this.tropicals) == null ? void 0 : d.data : this.empty
|
|
4316
4397
|
// cluster: true,
|
|
4317
4398
|
// clusterRadius: 10, // 聚合半径
|
|
4318
4399
|
}), this.map.addLayer({
|
|
@@ -4427,13 +4508,11 @@ const Ya = {
|
|
|
4427
4508
|
"text-halo-color": "#0033ff",
|
|
4428
4509
|
"text-halo-width": 4
|
|
4429
4510
|
}
|
|
4430
|
-
}),
|
|
4511
|
+
}), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m));
|
|
4431
4512
|
}
|
|
4432
4513
|
this.handleDrawCircle();
|
|
4433
|
-
const
|
|
4434
|
-
this.interpolateData = JSON.parse(JSON.stringify(p));
|
|
4435
|
-
const h = this.interpolateData.filter((g) => g.properties.name === "kristy" && g.properties.model === "ecmwf");
|
|
4436
|
-
console.log(h), this.handleDateChange();
|
|
4514
|
+
const c = Oe.interpolate(this.tropicals, 1);
|
|
4515
|
+
this.interpolateData = JSON.parse(JSON.stringify(c)), this.interpolateData.filter((p) => p.properties.name === "kristy" && p.properties.model === "ecmwf"), this.handleDateChange();
|
|
4437
4516
|
}
|
|
4438
4517
|
},
|
|
4439
4518
|
handleClear() {
|
|
@@ -4441,14 +4520,14 @@ const Ya = {
|
|
|
4441
4520
|
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));
|
|
4442
4521
|
},
|
|
4443
4522
|
handleDateChange() {
|
|
4444
|
-
var a, e, t, r, i, o, s,
|
|
4445
|
-
if ((a = this.interpolateMarkers) == null || a.forEach((
|
|
4446
|
-
const
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(
|
|
4523
|
+
var a, e, t, r, i, o, s, l, h, d, c, p, f, m, b, y, u, v, g, L, z, w, A, M, W, O, F, H, se, ne, le, ce, he, de, pe, te;
|
|
4524
|
+
if ((a = this.interpolateMarkers) == null || a.forEach((G) => G == null ? void 0 : G.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
4525
|
+
const G = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), Y = this.interpolateData.filter((E) => E.properties.date === G.format() && !E.properties.disabled), me = this.handleComputePolygons(Y), q = x.featureCollection([...Y]);
|
|
4526
|
+
me.forEach((E) => {
|
|
4527
|
+
q.features.push(E);
|
|
4528
|
+
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(q) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
4450
4529
|
type: "geojson",
|
|
4451
|
-
data:
|
|
4530
|
+
data: q
|
|
4452
4531
|
}), (o = this.map) == null || o.addLayer({
|
|
4453
4532
|
id: this.interpolateLineLayer,
|
|
4454
4533
|
type: "line",
|
|
@@ -4460,17 +4539,17 @@ const Ya = {
|
|
|
4460
4539
|
"line-width": 1
|
|
4461
4540
|
}
|
|
4462
4541
|
})), this.interpolateMarkers = [];
|
|
4463
|
-
for (const
|
|
4464
|
-
if (!
|
|
4465
|
-
let
|
|
4466
|
-
((
|
|
4467
|
-
const
|
|
4542
|
+
for (const E of Y)
|
|
4543
|
+
if (!E.properties.disabled) {
|
|
4544
|
+
let $ = "#f44336";
|
|
4545
|
+
((l = (s = E.properties) == null ? void 0 : s.wind) == null ? void 0 : l.spd) < 17.2 || !((d = (h = E.properties) == null ? void 0 : h.wind) != null && d.spd) ? $ = "#03f869" : ((p = (c = E.properties) == null ? void 0 : c.wind) == null ? void 0 : p.spd) >= 17.2 && ((m = (f = E.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? $ = "#f2f202" : ((y = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : y.spd) >= 24.5 && ((v = (u = E.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) < 32.7 ? $ = "#ff9100" : ((L = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : L.spd) >= 32.7 && ((w = (z = E.properties) == null ? void 0 : z.wind) == null ? void 0 : w.spd) < 41.5 ? $ = "#f44336" : ((M = (A = E.properties) == null ? void 0 : A.wind) == null ? void 0 : M.spd) >= 41.5 && ((O = (W = E.properties) == null ? void 0 : W.wind) == null ? void 0 : O.spd) < 51 ? $ = "#f903d0" : ((H = (F = E.properties) == null ? void 0 : F.wind) == null ? void 0 : H.spd) >= 51 ? $ = "#8702f9" : $ = "#f44336";
|
|
4546
|
+
const ue = `<svg t="1719918955501"
|
|
4468
4547
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
4469
4548
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
4470
4549
|
<path
|
|
4471
4550
|
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"
|
|
4472
|
-
fill="${
|
|
4473
|
-
<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="${
|
|
4551
|
+
fill="${$}" p-id="18383"></path>
|
|
4552
|
+
<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="${$}"
|
|
4474
4553
|
p-id="18384"></path>
|
|
4475
4554
|
<path
|
|
4476
4555
|
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"
|
|
@@ -4478,60 +4557,60 @@ const Ya = {
|
|
|
4478
4557
|
<path
|
|
4479
4558
|
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"
|
|
4480
4559
|
fill="#ffffff" p-id="18386"></path>
|
|
4481
|
-
</svg>`,
|
|
4482
|
-
|
|
4483
|
-
const
|
|
4484
|
-
if (this.interpolateMarkers.push(
|
|
4485
|
-
const
|
|
4486
|
-
(
|
|
4487
|
-
|
|
4488
|
-
), (
|
|
4489
|
-
|
|
4490
|
-
), (
|
|
4491
|
-
|
|
4560
|
+
</svg>`, Q = document.createElement("div");
|
|
4561
|
+
Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ue}</div>`;
|
|
4562
|
+
const ye = new ee.Marker(Q).setLngLat(E.geometry.coordinates).addTo(this.map);
|
|
4563
|
+
if (this.interpolateMarkers.push(ye), (se = E.properties) != null && se.showCircle) {
|
|
4564
|
+
const ae = { radius: 100, coordinates: E.geometry.coordinates }, ie = { radius: 200, coordinates: E.geometry.coordinates }, re = { radius: 500, coordinates: E.geometry.coordinates };
|
|
4565
|
+
(ne = this.circleSourceData) == null || ne.features.push(
|
|
4566
|
+
x.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4567
|
+
), (le = this.circleSourceData) == null || le.features.push(
|
|
4568
|
+
x.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4569
|
+
), (ce = this.circleSourceData) == null || ce.features.push(
|
|
4570
|
+
x.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4492
4571
|
);
|
|
4493
4572
|
}
|
|
4494
|
-
(
|
|
4573
|
+
(de = (he = this.map) == null ? void 0 : he.getSource(this.circleSource)) == null || de.setData(this.circleSourceData);
|
|
4495
4574
|
}
|
|
4496
4575
|
} else
|
|
4497
|
-
(
|
|
4576
|
+
(pe = this.map) != null && pe.getSource(this.interpolateSource) && ((te = this.map) == null || te.getSource(this.interpolateSource).setData(this.empty));
|
|
4498
4577
|
},
|
|
4499
4578
|
handleClick(a) {
|
|
4500
|
-
var o, s,
|
|
4579
|
+
var o, s, l, h, d, c, p, f;
|
|
4501
4580
|
const e = a.features[0], t = (s = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : s.features.filter(
|
|
4502
|
-
(
|
|
4503
|
-
var
|
|
4504
|
-
return
|
|
4581
|
+
(m) => {
|
|
4582
|
+
var b;
|
|
4583
|
+
return m.geometry.type === "LineString" && m.properties.type === "forecast" && m.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
|
|
4505
4584
|
}
|
|
4506
4585
|
);
|
|
4507
|
-
t.sort((
|
|
4508
|
-
var
|
|
4509
|
-
return ((
|
|
4586
|
+
t.sort((m, b) => {
|
|
4587
|
+
var y, u, v, g;
|
|
4588
|
+
return ((y = m.properties) == null ? void 0 : y.model) === "cma" ? -1 : ((u = m.properties) == null ? void 0 : u.model) === "jma" ? ((v = b.properties) == null ? void 0 : v.model) === "cma" ? 1 : -1 : m.properties.model === "ecmwf" ? ["jma", "cma"].includes((g = b.properties) == null ? void 0 : g.model) ? 1 : -1 : 0;
|
|
4510
4589
|
});
|
|
4511
|
-
const r = (
|
|
4512
|
-
(
|
|
4513
|
-
var
|
|
4514
|
-
return
|
|
4590
|
+
const r = (h = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : h.features.filter(
|
|
4591
|
+
(m) => {
|
|
4592
|
+
var b;
|
|
4593
|
+
return m.geometry.type === "LineString" && m.properties.type === "history" && m.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
|
|
4515
4594
|
}
|
|
4516
4595
|
);
|
|
4517
4596
|
this.activeTropicals = {
|
|
4518
4597
|
name: (d = e == null ? void 0 : e.properties) == null ? void 0 : d.name,
|
|
4519
|
-
forecasts: t.map((
|
|
4520
|
-
history: (
|
|
4521
|
-
showCircle: (
|
|
4598
|
+
forecasts: t.map((m) => m.properties),
|
|
4599
|
+
history: (c = r[0]) == null ? void 0 : c.properties,
|
|
4600
|
+
showCircle: (f = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
|
|
4522
4601
|
}, this.showTropicals = !0;
|
|
4523
4602
|
const i = document.getElementById("active-tropical");
|
|
4524
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new
|
|
4603
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new ee.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
4525
4604
|
},
|
|
4526
4605
|
handleForecastToggle(a) {
|
|
4527
|
-
var r, i, o, s,
|
|
4606
|
+
var r, i, o, s, l, h;
|
|
4528
4607
|
a.disabled = !a.disabled;
|
|
4529
4608
|
const e = `${a.name}-${a.model}`, t = (i = (r = this.map) == null ? void 0 : r.getSource(this.source)._data) == null ? void 0 : i.features;
|
|
4530
4609
|
t.forEach((d) => {
|
|
4531
4610
|
d.properties.category === e && (d.properties.disabled = a.disabled);
|
|
4532
4611
|
}), this.interpolateData.forEach((d) => {
|
|
4533
4612
|
d.properties.category === e && (d.properties.disabled = a.disabled);
|
|
4534
|
-
}), (s = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || s.setData(
|
|
4613
|
+
}), (s = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || s.setData(x.featureCollection(t)), (h = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || h.setData(x.featureCollection(t)), this.handleDateChange();
|
|
4535
4614
|
},
|
|
4536
4615
|
handleStrikeProbability(a) {
|
|
4537
4616
|
this.$emit("tropicalProbability", a);
|
|
@@ -4575,8 +4654,8 @@ const Ya = {
|
|
|
4575
4654
|
se: r.r10se >= 0 ? r.r10se : void 0,
|
|
4576
4655
|
sw: r.r10sw >= 0 ? r.r10sw : void 0,
|
|
4577
4656
|
nw: r.r10nw >= 0 ? r.r10nw : void 0
|
|
4578
|
-
},
|
|
4579
|
-
e.push(
|
|
4657
|
+
}, l = this.handleComputeArc(t.geometry.coordinates, s, { ...t.properties, level: 10 });
|
|
4658
|
+
e.push(l);
|
|
4580
4659
|
}
|
|
4581
4660
|
return e;
|
|
4582
4661
|
},
|
|
@@ -4584,108 +4663,108 @@ const Ya = {
|
|
|
4584
4663
|
var o;
|
|
4585
4664
|
const r = [];
|
|
4586
4665
|
for (const s in e) {
|
|
4587
|
-
const
|
|
4588
|
-
let
|
|
4666
|
+
const l = e[s] ?? 0;
|
|
4667
|
+
let h;
|
|
4589
4668
|
switch (s) {
|
|
4590
4669
|
case "ne":
|
|
4591
|
-
|
|
4670
|
+
h = x.lineArc(a, l * 1.852, 0, 90, { steps: l > 0 ? 64 : 1 });
|
|
4592
4671
|
break;
|
|
4593
4672
|
case "se":
|
|
4594
|
-
|
|
4673
|
+
h = x.lineArc(a, l * 1.852, 90, 180, { steps: l > 0 ? 64 : 1 });
|
|
4595
4674
|
break;
|
|
4596
4675
|
case "sw":
|
|
4597
|
-
|
|
4676
|
+
h = x.lineArc(a, l * 1.852, 180, 270, { steps: l > 0 ? 64 : 1 });
|
|
4598
4677
|
break;
|
|
4599
4678
|
case "nw":
|
|
4600
|
-
|
|
4679
|
+
h = x.lineArc(a, l * 1.852, 270, 360, { steps: l > 0 ? 64 : 1 });
|
|
4601
4680
|
break;
|
|
4602
4681
|
}
|
|
4603
|
-
r.push(...(o =
|
|
4682
|
+
r.push(...(o = h == null ? void 0 : h.geometry) == null ? void 0 : o.coordinates);
|
|
4604
4683
|
}
|
|
4605
|
-
const i =
|
|
4606
|
-
return
|
|
4684
|
+
const i = x.lineString(r);
|
|
4685
|
+
return x.lineToPolygon(i, { properties: t });
|
|
4607
4686
|
}
|
|
4608
4687
|
}
|
|
4609
|
-
},
|
|
4688
|
+
}, Ht = {
|
|
4610
4689
|
id: "active-tropical",
|
|
4611
4690
|
class: "active-tropical"
|
|
4612
|
-
},
|
|
4691
|
+
}, Gt = { class: "header-box" }, Jt = { class: "main" }, Xt = { key: 0 }, Yt = { class: "sub" }, qt = {
|
|
4613
4692
|
id: "meteoBox",
|
|
4614
4693
|
class: "main-box"
|
|
4615
|
-
},
|
|
4694
|
+
}, Qt = { class: "content" }, Kt = { class: "row" }, ea = {
|
|
4616
4695
|
class: "col col-left",
|
|
4617
4696
|
style: { "justify-content": "flex-start" }
|
|
4618
|
-
},
|
|
4697
|
+
}, ta = {
|
|
4619
4698
|
class: "col col-right",
|
|
4620
4699
|
style: { "justify-content": "flex-start" }
|
|
4621
|
-
},
|
|
4700
|
+
}, aa = { class: "row" }, ia = {
|
|
4622
4701
|
class: "col col-24",
|
|
4623
4702
|
style: { "justify-content": "flex-start" }
|
|
4624
|
-
},
|
|
4625
|
-
function
|
|
4626
|
-
var s,
|
|
4627
|
-
return
|
|
4628
|
-
|
|
4629
|
-
|
|
4703
|
+
}, ra = { class: "forecast-models" }, oa = ["onClick"], sa = { class: "more" };
|
|
4704
|
+
function na(a, e, t, r, i, o) {
|
|
4705
|
+
var s, l, h, d, c, p, f, m, b, y, u, v, g, L, z;
|
|
4706
|
+
return Pe((_(), C("div", Ht, [
|
|
4707
|
+
n("div", Gt, [
|
|
4708
|
+
n("div", {
|
|
4630
4709
|
class: "iconfont close-btn",
|
|
4631
4710
|
onClick: e[0] || (e[0] = (w) => i.showTropicals = !1)
|
|
4632
4711
|
}, ""),
|
|
4633
|
-
|
|
4634
|
-
(
|
|
4635
|
-
|
|
4712
|
+
n("div", Jt, [
|
|
4713
|
+
(l = (s = i.activeTropicals) == null ? void 0 : s.history) != null && l.level ? (_(), C("span", Xt, S((d = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : d.level) + " , ", 1)) : B("", !0),
|
|
4714
|
+
Ie(S((c = i.activeTropicals) == null ? void 0 : c.name), 1)
|
|
4636
4715
|
]),
|
|
4637
|
-
|
|
4716
|
+
n("div", Yt, " Last update: " + S(o.computeTime(((f = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : f.updated) || ((y = (b = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : b.filter((w) => !w.disabled)[0]) == null ? void 0 : y.date))), 1)
|
|
4638
4717
|
]),
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4718
|
+
n("div", qt, [
|
|
4719
|
+
n("div", Qt, [
|
|
4720
|
+
n("div", Kt, [
|
|
4721
|
+
n("div", ea, [
|
|
4722
|
+
e[2] || (e[2] = n("label", null, "Wind speed : ", -1)),
|
|
4723
|
+
n("span", null, S(((v = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
|
|
4645
4724
|
]),
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4725
|
+
n("div", ta, [
|
|
4726
|
+
e[3] || (e[3] = n("label", null, "Pressure : ", -1)),
|
|
4727
|
+
n("span", null, S(((L = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : L.pressure) || "-") + "[hPa]", 1)
|
|
4649
4728
|
])
|
|
4650
4729
|
]),
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
(
|
|
4656
|
-
var M,
|
|
4657
|
-
return
|
|
4730
|
+
n("div", aa, [
|
|
4731
|
+
n("div", ia, [
|
|
4732
|
+
e[4] || (e[4] = n("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
4733
|
+
n("div", ra, [
|
|
4734
|
+
(_(!0), C(_e, null, Se((z = i.activeTropicals) == null ? void 0 : z.forecasts, (w, A) => {
|
|
4735
|
+
var M, W, O, F;
|
|
4736
|
+
return _(), C("div", {
|
|
4658
4737
|
key: A,
|
|
4659
|
-
class:
|
|
4738
|
+
class: j([
|
|
4660
4739
|
"model",
|
|
4661
4740
|
w.disabled ? "" : "active",
|
|
4662
|
-
A > 0 && A < ((
|
|
4741
|
+
A > 0 && A < ((W = (M = i.activeTropicals) == null ? void 0 : M.forecasts) == null ? void 0 : W.length) - 1 && ((F = (O = i.activeTropicals) == null ? void 0 : O.forecasts) == null ? void 0 : F.length) > 2 ? "center-child" : ""
|
|
4663
4742
|
]),
|
|
4664
|
-
onClick: (
|
|
4743
|
+
onClick: (H) => o.handleForecastToggle(w)
|
|
4665
4744
|
}, [
|
|
4666
|
-
|
|
4667
|
-
class:
|
|
4745
|
+
n("span", {
|
|
4746
|
+
class: j(w.model)
|
|
4668
4747
|
}, S(w.model), 3)
|
|
4669
|
-
], 10,
|
|
4748
|
+
], 10, oa);
|
|
4670
4749
|
}), 128))
|
|
4671
4750
|
])
|
|
4672
4751
|
])
|
|
4673
4752
|
]),
|
|
4674
|
-
|
|
4753
|
+
e[5] || (e[5] = Ze('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-f122450c></div><div class="row" style="padding:2px 10px;" data-v-f122450c><div class="legend" data-v-f122450c><div class="icon td" data-v-f122450c></div><div class="label" data-v-f122450c>TD</div></div><div class="legend" data-v-f122450c><div class="icon ts" data-v-f122450c></div><div class="label" data-v-f122450c>TS</div></div><div class="legend" data-v-f122450c><div class="icon sts" data-v-f122450c></div><div class="label" data-v-f122450c>STS</div></div><div class="legend" data-v-f122450c><div class="icon ty" data-v-f122450c></div><div class="label" data-v-f122450c>TY</div></div><div class="legend" data-v-f122450c><div class="icon sty" data-v-f122450c></div><div class="label" data-v-f122450c>STY</div></div><div class="legend" data-v-f122450c><div class="icon supper-ty" data-v-f122450c></div><div class="label" data-v-f122450c>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-f122450c><div class="legend" data-v-f122450c><div class="icon history" data-v-f122450c></div><div class="label" data-v-f122450c>History</div></div><div class="legend" data-v-f122450c><div class="icon r7" data-v-f122450c></div><div class="label" data-v-f122450c>35kts Radii</div></div><div class="legend" data-v-f122450c><div class="icon r10" data-v-f122450c></div><div class="label" data-v-f122450c>50kts Radii</div></div></div>', 3))
|
|
4675
4754
|
]),
|
|
4676
|
-
|
|
4677
|
-
|
|
4755
|
+
n("div", sa, [
|
|
4756
|
+
n("div", {
|
|
4678
4757
|
class: "button",
|
|
4679
4758
|
onClick: e[1] || (e[1] = (w) => o.handleStrikeProbability(i.activeTropicals))
|
|
4680
4759
|
}, "Strike Probability >>")
|
|
4681
4760
|
])
|
|
4682
4761
|
])
|
|
4683
4762
|
], 512)), [
|
|
4684
|
-
[
|
|
4763
|
+
[ze, i.showTropicals && !a.$attrs.hideTropicalsLegend]
|
|
4685
4764
|
]);
|
|
4686
4765
|
}
|
|
4687
|
-
const
|
|
4688
|
-
const
|
|
4766
|
+
const Fe = /* @__PURE__ */ T(Zt, [["render", na], ["__scopeId", "data-v-f122450c"]]);
|
|
4767
|
+
const la = {
|
|
4689
4768
|
name: "IdmPrecip3h",
|
|
4690
4769
|
props: {
|
|
4691
4770
|
factor: {
|
|
@@ -4713,7 +4792,7 @@ const gi = {
|
|
|
4713
4792
|
texture: void 0,
|
|
4714
4793
|
rampColor: void 0,
|
|
4715
4794
|
aPositionBuffer: void 0,
|
|
4716
|
-
webgl: new
|
|
4795
|
+
webgl: new fe(),
|
|
4717
4796
|
etime: void 0,
|
|
4718
4797
|
right: 10
|
|
4719
4798
|
};
|
|
@@ -4786,27 +4865,27 @@ const gi = {
|
|
|
4786
4865
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4787
4866
|
}
|
|
4788
4867
|
}
|
|
4789
|
-
},
|
|
4790
|
-
|
|
4791
|
-
wi,
|
|
4792
|
-
_i,
|
|
4793
|
-
Li,
|
|
4794
|
-
xi,
|
|
4795
|
-
Ci,
|
|
4796
|
-
ki,
|
|
4797
|
-
Si
|
|
4798
|
-
];
|
|
4799
|
-
function Pi(a, e, t, r, i, o) {
|
|
4868
|
+
}, ca = { key: 0 };
|
|
4869
|
+
function ha(a, e, t, r, i, o) {
|
|
4800
4870
|
var s;
|
|
4801
|
-
return (s = t.factor) != null && s.active ? (
|
|
4802
|
-
|
|
4871
|
+
return (s = t.factor) != null && s.active ? (_(), C("div", ca, [
|
|
4872
|
+
n("div", {
|
|
4803
4873
|
class: "legend-bars flex-center",
|
|
4804
4874
|
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4805
|
-
},
|
|
4806
|
-
|
|
4875
|
+
}, e[0] || (e[0] = [
|
|
4876
|
+
n("span", null, "mm", -1),
|
|
4877
|
+
n("span", null, "1.5", -1),
|
|
4878
|
+
n("span", null, "2", -1),
|
|
4879
|
+
n("span", null, "3", -1),
|
|
4880
|
+
n("span", null, "7", -1),
|
|
4881
|
+
n("span", null, "10", -1),
|
|
4882
|
+
n("span", null, "20", -1),
|
|
4883
|
+
n("span", null, "30", -1)
|
|
4884
|
+
]), 4)
|
|
4885
|
+
])) : B("", !0);
|
|
4807
4886
|
}
|
|
4808
|
-
const
|
|
4809
|
-
const
|
|
4887
|
+
const da = /* @__PURE__ */ T(la, [["render", ha], ["__scopeId", "data-v-9708a7a3"]]);
|
|
4888
|
+
const pa = {
|
|
4810
4889
|
name: "IdmVisibility",
|
|
4811
4890
|
props: {
|
|
4812
4891
|
factor: {
|
|
@@ -4834,7 +4913,7 @@ const Ii = {
|
|
|
4834
4913
|
texture: void 0,
|
|
4835
4914
|
rampColor: void 0,
|
|
4836
4915
|
aPositionBuffer: void 0,
|
|
4837
|
-
webgl: new
|
|
4916
|
+
webgl: new fe(),
|
|
4838
4917
|
etime: void 0
|
|
4839
4918
|
};
|
|
4840
4919
|
},
|
|
@@ -4900,25 +4979,25 @@ const Ii = {
|
|
|
4900
4979
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4901
4980
|
}
|
|
4902
4981
|
}
|
|
4903
|
-
},
|
|
4904
|
-
|
|
4905
|
-
Ai,
|
|
4906
|
-
Di,
|
|
4907
|
-
Mi,
|
|
4908
|
-
$i,
|
|
4909
|
-
ji
|
|
4910
|
-
];
|
|
4911
|
-
function Ni(a, e, t, r, i, o) {
|
|
4982
|
+
}, ma = { key: 0 };
|
|
4983
|
+
function ua(a, e, t, r, i, o) {
|
|
4912
4984
|
var s;
|
|
4913
|
-
return (s = t.factor) != null && s.active ? (
|
|
4914
|
-
|
|
4985
|
+
return (s = t.factor) != null && s.active ? (_(), C("div", ma, [
|
|
4986
|
+
n("div", {
|
|
4915
4987
|
class: "legend-bars flex-center",
|
|
4916
4988
|
style: U([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
4917
|
-
},
|
|
4918
|
-
|
|
4989
|
+
}, e[0] || (e[0] = [
|
|
4990
|
+
n("span", null, "nm", -1),
|
|
4991
|
+
n("span", null, "0", -1),
|
|
4992
|
+
n("span", null, "0.5", -1),
|
|
4993
|
+
n("span", null, "1.5", -1),
|
|
4994
|
+
n("span", null, "3", -1),
|
|
4995
|
+
n("span", null, "9", -1)
|
|
4996
|
+
]), 4)
|
|
4997
|
+
])) : B("", !0);
|
|
4919
4998
|
}
|
|
4920
|
-
const
|
|
4921
|
-
const
|
|
4999
|
+
const ya = /* @__PURE__ */ T(pa, [["render", ua], ["__scopeId", "data-v-f7b2fb08"]]);
|
|
5000
|
+
const fa = {
|
|
4922
5001
|
name: "IdmWaterTemp",
|
|
4923
5002
|
props: {
|
|
4924
5003
|
factor: {
|
|
@@ -4946,7 +5025,7 @@ const Oi = {
|
|
|
4946
5025
|
texture: void 0,
|
|
4947
5026
|
rampColor: void 0,
|
|
4948
5027
|
aPositionBuffer: void 0,
|
|
4949
|
-
webgl: new
|
|
5028
|
+
webgl: new fe(),
|
|
4950
5029
|
etime: void 0,
|
|
4951
5030
|
right: 10
|
|
4952
5031
|
};
|
|
@@ -5020,25 +5099,25 @@ const Oi = {
|
|
|
5020
5099
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
5021
5100
|
}
|
|
5022
5101
|
}
|
|
5023
|
-
},
|
|
5024
|
-
|
|
5025
|
-
Ui,
|
|
5026
|
-
Zi,
|
|
5027
|
-
Hi,
|
|
5028
|
-
Gi,
|
|
5029
|
-
Ji
|
|
5030
|
-
];
|
|
5031
|
-
function Yi(a, e, t, r, i, o) {
|
|
5102
|
+
}, ga = { key: 0 };
|
|
5103
|
+
function ba(a, e, t, r, i, o) {
|
|
5032
5104
|
var s;
|
|
5033
|
-
return (s = t.factor) != null && s.active ? (
|
|
5034
|
-
|
|
5105
|
+
return (s = t.factor) != null && s.active ? (_(), C("div", ga, [
|
|
5106
|
+
n("div", {
|
|
5035
5107
|
class: "legend-bars flex-center",
|
|
5036
5108
|
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
5037
|
-
},
|
|
5038
|
-
|
|
5109
|
+
}, e[0] || (e[0] = [
|
|
5110
|
+
n("span", null, "°C", -1),
|
|
5111
|
+
n("span", null, "0", -1),
|
|
5112
|
+
n("span", null, "10", -1),
|
|
5113
|
+
n("span", null, "20", -1),
|
|
5114
|
+
n("span", null, "30", -1),
|
|
5115
|
+
n("span", null, "40", -1)
|
|
5116
|
+
]), 4)
|
|
5117
|
+
])) : B("", !0);
|
|
5039
5118
|
}
|
|
5040
|
-
const
|
|
5041
|
-
const
|
|
5119
|
+
const va = /* @__PURE__ */ T(fa, [["render", ba], ["__scopeId", "data-v-7521f582"]]);
|
|
5120
|
+
const wa = {
|
|
5042
5121
|
name: "IdmTemp",
|
|
5043
5122
|
props: {
|
|
5044
5123
|
factor: {
|
|
@@ -5066,7 +5145,7 @@ const Qi = {
|
|
|
5066
5145
|
texture: void 0,
|
|
5067
5146
|
rampColor: void 0,
|
|
5068
5147
|
aPositionBuffer: void 0,
|
|
5069
|
-
webgl: new
|
|
5148
|
+
webgl: new fe(),
|
|
5070
5149
|
etime: void 0,
|
|
5071
5150
|
right: 10
|
|
5072
5151
|
};
|
|
@@ -5143,27 +5222,27 @@ const Qi = {
|
|
|
5143
5222
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
5144
5223
|
}
|
|
5145
5224
|
}
|
|
5146
|
-
},
|
|
5147
|
-
|
|
5148
|
-
tr,
|
|
5149
|
-
ar,
|
|
5150
|
-
ir,
|
|
5151
|
-
rr,
|
|
5152
|
-
or,
|
|
5153
|
-
sr,
|
|
5154
|
-
nr
|
|
5155
|
-
];
|
|
5156
|
-
function cr(a, e, t, r, i, o) {
|
|
5225
|
+
}, La = { key: 0 };
|
|
5226
|
+
function xa(a, e, t, r, i, o) {
|
|
5157
5227
|
var s;
|
|
5158
|
-
return (s = t.factor) != null && s.active ? (
|
|
5159
|
-
|
|
5228
|
+
return (s = t.factor) != null && s.active ? (_(), C("div", La, [
|
|
5229
|
+
n("div", {
|
|
5160
5230
|
class: "legend-bars flex-center",
|
|
5161
5231
|
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
5162
|
-
},
|
|
5163
|
-
|
|
5232
|
+
}, e[0] || (e[0] = [
|
|
5233
|
+
n("span", null, "°C", -1),
|
|
5234
|
+
n("span", null, "-20", -1),
|
|
5235
|
+
n("span", null, "-10", -1),
|
|
5236
|
+
n("span", null, "0", -1),
|
|
5237
|
+
n("span", null, "10", -1),
|
|
5238
|
+
n("span", null, "20", -1),
|
|
5239
|
+
n("span", null, "30", -1),
|
|
5240
|
+
n("span", null, "40", -1)
|
|
5241
|
+
]), 4)
|
|
5242
|
+
])) : B("", !0);
|
|
5164
5243
|
}
|
|
5165
|
-
const
|
|
5166
|
-
const
|
|
5244
|
+
const _a = /* @__PURE__ */ T(wa, [["render", xa], ["__scopeId", "data-v-25daaa82"]]);
|
|
5245
|
+
const Ca = {
|
|
5167
5246
|
name: "IdmArctic",
|
|
5168
5247
|
props: {
|
|
5169
5248
|
factor: {
|
|
@@ -5191,7 +5270,7 @@ const dr = {
|
|
|
5191
5270
|
texture: void 0,
|
|
5192
5271
|
rampColor: void 0,
|
|
5193
5272
|
aPositionBuffer: void 0,
|
|
5194
|
-
webgl: new
|
|
5273
|
+
webgl: new fe(),
|
|
5195
5274
|
etime: void 0,
|
|
5196
5275
|
right: 10
|
|
5197
5276
|
};
|
|
@@ -5259,25 +5338,25 @@ const dr = {
|
|
|
5259
5338
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
5260
5339
|
}
|
|
5261
5340
|
}
|
|
5262
|
-
},
|
|
5263
|
-
|
|
5264
|
-
ur,
|
|
5265
|
-
yr,
|
|
5266
|
-
fr,
|
|
5267
|
-
gr,
|
|
5268
|
-
br
|
|
5269
|
-
];
|
|
5270
|
-
function wr(a, e, t, r, i, o) {
|
|
5341
|
+
}, ka = { key: 0 };
|
|
5342
|
+
function Sa(a, e, t, r, i, o) {
|
|
5271
5343
|
var s;
|
|
5272
|
-
return (s = t.factor) != null && s.active ? (
|
|
5273
|
-
|
|
5344
|
+
return (s = t.factor) != null && s.active ? (_(), C("div", ka, [
|
|
5345
|
+
n("div", {
|
|
5274
5346
|
class: "legend-bars flex-center",
|
|
5275
5347
|
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
5276
|
-
},
|
|
5277
|
-
|
|
5348
|
+
}, e[0] || (e[0] = [
|
|
5349
|
+
n("span", null, "m", -1),
|
|
5350
|
+
n("span", null, "0", -1),
|
|
5351
|
+
n("span", null, "0.5", -1),
|
|
5352
|
+
n("span", null, "1", -1),
|
|
5353
|
+
n("span", null, "1.5", -1),
|
|
5354
|
+
n("span", null, "2", -1)
|
|
5355
|
+
]), 4)
|
|
5356
|
+
])) : B("", !0);
|
|
5278
5357
|
}
|
|
5279
|
-
const
|
|
5280
|
-
const
|
|
5358
|
+
const Pa = /* @__PURE__ */ T(Ca, [["render", Sa], ["__scopeId", "data-v-5bb73794"]]);
|
|
5359
|
+
const za = {
|
|
5281
5360
|
name: "IdmPoint",
|
|
5282
5361
|
emits: ["point", "more"],
|
|
5283
5362
|
props: {
|
|
@@ -5299,7 +5378,7 @@ const Lr = {
|
|
|
5299
5378
|
return {
|
|
5300
5379
|
showMeteo: !1,
|
|
5301
5380
|
meteoMarker: void 0,
|
|
5302
|
-
helper:
|
|
5381
|
+
helper: Ce
|
|
5303
5382
|
};
|
|
5304
5383
|
},
|
|
5305
5384
|
watch: {
|
|
@@ -5360,71 +5439,71 @@ const Lr = {
|
|
|
5360
5439
|
var a;
|
|
5361
5440
|
if (this.meteo) {
|
|
5362
5441
|
const e = document.getElementById("point-meteo");
|
|
5363
|
-
this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new
|
|
5442
|
+
this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new ee.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
|
|
5364
5443
|
}
|
|
5365
5444
|
}
|
|
5366
5445
|
}
|
|
5367
|
-
},
|
|
5446
|
+
}, Ta = {
|
|
5368
5447
|
id: "point-meteo",
|
|
5369
5448
|
class: "point-meteo"
|
|
5370
|
-
},
|
|
5371
|
-
function
|
|
5372
|
-
var s,
|
|
5373
|
-
return
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5449
|
+
}, Ea = { class: "meteo-box" }, Ia = { class: "header-box" }, Ra = { class: "main" }, Aa = { class: "sub" }, Da = { class: "main-box" }, Ma = { class: "flex-space" }, Wa = { class: "flex-space" }, ja = { class: "flex-space" }, Ba = { class: "flex-space" }, Na = { class: "flex-space" }, Oa = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" }, Va = { class: "flex-space" };
|
|
5450
|
+
function Ua(a, e, t, r, i, o) {
|
|
5451
|
+
var s, l, h, d, c, p, f, m, b, y, u, v, g, L, z, w, A, M, W, O, F, H, se, ne, le, ce, he, de, pe, te, G, Y, me, q, E, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe;
|
|
5452
|
+
return Pe((_(), C("div", Ta, [
|
|
5453
|
+
n("div", Ea, [
|
|
5454
|
+
n("div", Ia, [
|
|
5455
|
+
n("div", {
|
|
5377
5456
|
class: "iconfont close",
|
|
5378
|
-
onClick: e[0] || (e[0] = (
|
|
5457
|
+
onClick: e[0] || (e[0] = (Te) => i.showMeteo = !1)
|
|
5379
5458
|
}, ""),
|
|
5380
|
-
|
|
5381
|
-
|
|
5459
|
+
n("div", Ra, S(o.computeLat((s = t.meteo) == null ? void 0 : s.lat)) + "," + S(o.computeLng((l = t.meteo) == null ? void 0 : l.lng)), 1),
|
|
5460
|
+
n("div", Aa, S(o.computeTime((h = t.meteo) == null ? void 0 : h.utc)), 1)
|
|
5382
5461
|
]),
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5462
|
+
n("div", Da, [
|
|
5463
|
+
n("div", Ma, [
|
|
5464
|
+
e[1] || (e[1] = n("label", null, "Wind", -1)),
|
|
5465
|
+
n("span", null, S(((c = (d = t.meteo) == null ? void 0 : d.wind) == null ? void 0 : c.direction) || "-") + "/" + S(o.roundPrecision((f = (p = t.meteo) == null ? void 0 : p.wind) == null ? void 0 : f.kts, 1)) + "[kts]/" + S((b = (m = t.meteo) == null ? void 0 : m.wind) == null ? void 0 : b.scale) + "[BF]/" + S(o.roundPrecision((u = (y = t.meteo) == null ? void 0 : y.gusts) == null ? void 0 : u.kts, 1)) + "[kts]", 1)
|
|
5387
5466
|
]),
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5467
|
+
n("div", Wa, [
|
|
5468
|
+
e[2] || (e[2] = n("label", null, "Wind.Wave", -1)),
|
|
5469
|
+
n("span", null, S(((L = (g = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : g.wd) == null ? void 0 : L.direction) || "-") + "/" + S(o.roundPrecision((A = (w = (z = t.meteo) == null ? void 0 : z.wave) == null ? void 0 : w.wd) == null ? void 0 : A.height, 1)) + "[m]/" + S(o.roundPrecision((O = (W = (M = t.meteo) == null ? void 0 : M.wave) == null ? void 0 : W.wd) == null ? void 0 : O.period, 1)) + "[s]", 1)
|
|
5391
5470
|
]),
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5471
|
+
n("div", ja, [
|
|
5472
|
+
e[3] || (e[3] = n("label", null, "Swell", -1)),
|
|
5473
|
+
n("span", null, S(((se = (H = (F = t.meteo) == null ? void 0 : F.wave) == null ? void 0 : H.swell) == null ? void 0 : se.direction) || "-") + "/" + S(o.roundPrecision((ce = (le = (ne = t.meteo) == null ? void 0 : ne.wave) == null ? void 0 : le.swell) == null ? void 0 : ce.height, 1)) + "[m]/" + S(o.roundPrecision((pe = (de = (he = t.meteo) == null ? void 0 : he.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.period, 1)) + "[s]", 1)
|
|
5395
5474
|
]),
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5475
|
+
n("div", Ba, [
|
|
5476
|
+
e[4] || (e[4] = n("label", null, "Sig.Wave", -1)),
|
|
5477
|
+
n("span", null, S(((Y = (G = (te = t.meteo) == null ? void 0 : te.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.direction) || "-") + "/" + S(o.roundPrecision((E = (q = (me = t.meteo) == null ? void 0 : me.wave) == null ? void 0 : q.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((Q = (ue = ($ = t.meteo) == null ? void 0 : $.wave) == null ? void 0 : ue.sig) == null ? void 0 : Q.period, 1)) + "[s]", 1)
|
|
5399
5478
|
]),
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5479
|
+
n("div", Na, [
|
|
5480
|
+
e[5] || (e[5] = n("label", null, "Current", -1)),
|
|
5481
|
+
n("span", null, S(((ae = (ye = t.meteo) == null ? void 0 : ye.current) == null ? void 0 : ae.direction) || "-") + "/" + S(o.roundPrecision((re = (ie = t.meteo) == null ? void 0 : ie.current) == null ? void 0 : re.kts, 2)) + "[kts]", 1)
|
|
5403
5482
|
]),
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5483
|
+
n("div", Oa, [
|
|
5484
|
+
e[6] || (e[6] = n("label", null, "Precip", -1)),
|
|
5485
|
+
n("span", null, S(o.roundPrecision((ve = (be = t.meteo) == null ? void 0 : be.precip) == null ? void 0 : ve.inter6h, 2)) + "[mm]", 1)
|
|
5407
5486
|
]),
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5487
|
+
n("div", Fa, [
|
|
5488
|
+
e[7] || (e[7] = n("label", null, "Visibility", -1)),
|
|
5489
|
+
n("span", null, S(o.roundPrecision(((we = t.meteo) == null ? void 0 : we.visibility) / 1852, 0)) + "[nm]", 1)
|
|
5411
5490
|
]),
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5491
|
+
n("div", $a, [
|
|
5492
|
+
e[8] || (e[8] = n("label", null, "Temp", -1)),
|
|
5493
|
+
n("span", null, S(o.roundPrecision((Le = t.meteo) == null ? void 0 : Le.temp, 0)) + "[°C]", 1)
|
|
5415
5494
|
]),
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5495
|
+
n("div", Va, [
|
|
5496
|
+
e[9] || (e[9] = n("label", null, "Water Temp", -1)),
|
|
5497
|
+
n("span", null, S(o.roundPrecision((xe = t.meteo) == null ? void 0 : xe.waterTemp, 2)) + "[°C]", 1)
|
|
5419
5498
|
])
|
|
5420
5499
|
]),
|
|
5421
|
-
|
|
5500
|
+
B("", !0)
|
|
5422
5501
|
])
|
|
5423
5502
|
], 512)), [
|
|
5424
|
-
[
|
|
5503
|
+
[ze, i.showMeteo]
|
|
5425
5504
|
]);
|
|
5426
5505
|
}
|
|
5427
|
-
const
|
|
5506
|
+
const Za = /* @__PURE__ */ T(za, [["render", Ua], ["__scopeId", "data-v-efcf572f"]]), Ha = {
|
|
5428
5507
|
name: "IdmWarZone",
|
|
5429
5508
|
props: {
|
|
5430
5509
|
map: {
|
|
@@ -5514,10 +5593,10 @@ const Jr = /* @__PURE__ */ T(Lr, [["render", Gr], ["__scopeId", "data-v-efcf572f
|
|
|
5514
5593
|
}
|
|
5515
5594
|
}
|
|
5516
5595
|
};
|
|
5517
|
-
function
|
|
5518
|
-
return
|
|
5596
|
+
function Ga(a, e, t, r, i, o) {
|
|
5597
|
+
return _(), C("div");
|
|
5519
5598
|
}
|
|
5520
|
-
const
|
|
5599
|
+
const Ja = /* @__PURE__ */ T(Ha, [["render", Ga]]), Xa = {
|
|
5521
5600
|
name: "IdmGmdssArea",
|
|
5522
5601
|
props: {
|
|
5523
5602
|
map: {
|
|
@@ -5637,10 +5716,10 @@ const qr = /* @__PURE__ */ T(Xr, [["render", Yr]]), Qr = {
|
|
|
5637
5716
|
}
|
|
5638
5717
|
}
|
|
5639
5718
|
};
|
|
5640
|
-
function
|
|
5641
|
-
return
|
|
5719
|
+
function Ya(a, e, t, r, i, o) {
|
|
5720
|
+
return _(), C("div");
|
|
5642
5721
|
}
|
|
5643
|
-
const
|
|
5722
|
+
const qa = /* @__PURE__ */ T(Xa, [["render", Ya]]), Qa = {
|
|
5644
5723
|
name: "IdmEcaZone",
|
|
5645
5724
|
props: {
|
|
5646
5725
|
map: {
|
|
@@ -5728,11 +5807,11 @@ const eo = /* @__PURE__ */ T(Qr, [["render", Kr]]), to = {
|
|
|
5728
5807
|
}
|
|
5729
5808
|
}
|
|
5730
5809
|
};
|
|
5731
|
-
function
|
|
5732
|
-
return
|
|
5810
|
+
function Ka(a, e, t, r, i, o) {
|
|
5811
|
+
return _(), C("div");
|
|
5733
5812
|
}
|
|
5734
|
-
const
|
|
5735
|
-
const
|
|
5813
|
+
const ei = /* @__PURE__ */ T(Qa, [["render", Ka]]);
|
|
5814
|
+
const ti = {
|
|
5736
5815
|
name: "IdmAlertZone",
|
|
5737
5816
|
props: {
|
|
5738
5817
|
map: {
|
|
@@ -5775,7 +5854,7 @@ const ro = {
|
|
|
5775
5854
|
if (t) {
|
|
5776
5855
|
this.showZone = !0, this.form = { ...t.properties };
|
|
5777
5856
|
const i = document.getElementById("idm-gl3-zone-info");
|
|
5778
|
-
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new
|
|
5857
|
+
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new ee.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
|
|
5779
5858
|
}
|
|
5780
5859
|
},
|
|
5781
5860
|
handleRender() {
|
|
@@ -5862,24 +5941,24 @@ const ro = {
|
|
|
5862
5941
|
this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
5863
5942
|
}
|
|
5864
5943
|
}
|
|
5865
|
-
},
|
|
5866
|
-
function
|
|
5944
|
+
}, ai = { id: "idm-gl3-zone-info" }, ii = ["innerHTML"];
|
|
5945
|
+
function ri(a, e, t, r, i, o) {
|
|
5867
5946
|
var s;
|
|
5868
|
-
return
|
|
5869
|
-
|
|
5947
|
+
return Pe((_(), C("div", ai, [
|
|
5948
|
+
n("div", {
|
|
5870
5949
|
class: "iconfont close",
|
|
5871
|
-
onClick: e[0] || (e[0] = (
|
|
5950
|
+
onClick: e[0] || (e[0] = (l) => i.showZone = !1)
|
|
5872
5951
|
}, ""),
|
|
5873
|
-
|
|
5952
|
+
n("div", {
|
|
5874
5953
|
class: "rich-context",
|
|
5875
5954
|
innerHTML: (s = i.form) == null ? void 0 : s.name
|
|
5876
|
-
}, null, 8,
|
|
5955
|
+
}, null, 8, ii)
|
|
5877
5956
|
], 512)), [
|
|
5878
|
-
[
|
|
5957
|
+
[ze, i.showZone]
|
|
5879
5958
|
]);
|
|
5880
5959
|
}
|
|
5881
|
-
const
|
|
5882
|
-
const
|
|
5960
|
+
const oi = /* @__PURE__ */ T(ti, [["render", ri]]);
|
|
5961
|
+
const si = {
|
|
5883
5962
|
name: "IdmPort",
|
|
5884
5963
|
props: {
|
|
5885
5964
|
map: {
|
|
@@ -5932,7 +6011,7 @@ const co = {
|
|
|
5932
6011
|
if (t) {
|
|
5933
6012
|
this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
|
|
5934
6013
|
const i = document.getElementById("port-info");
|
|
5935
|
-
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new
|
|
6014
|
+
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new ee.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
5936
6015
|
}
|
|
5937
6016
|
},
|
|
5938
6017
|
handleEmit() {
|
|
@@ -5971,41 +6050,41 @@ const co = {
|
|
|
5971
6050
|
this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
5972
6051
|
}
|
|
5973
6052
|
}
|
|
5974
|
-
},
|
|
6053
|
+
}, ni = { id: "port-info" }, li = { class: "port-box" }, ci = { class: "flex-start" }, hi = { class: "flex-start" }, di = { class: "flex-start" }, pi = {
|
|
5975
6054
|
class: "flex-start",
|
|
5976
6055
|
style: { "align-items": "flex-start" }
|
|
5977
|
-
}
|
|
5978
|
-
function
|
|
5979
|
-
return
|
|
5980
|
-
|
|
6056
|
+
};
|
|
6057
|
+
function mi(a, e, t, r, i, o) {
|
|
6058
|
+
return Pe((_(), C("div", ni, [
|
|
6059
|
+
n("div", {
|
|
5981
6060
|
class: "close iconfont",
|
|
5982
6061
|
onClick: e[0] || (e[0] = (s) => i.showPort = !1)
|
|
5983
6062
|
}, ""),
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
6063
|
+
n("div", li, [
|
|
6064
|
+
n("div", ci, [
|
|
6065
|
+
e[2] || (e[2] = n("label", null, "Name : ", -1)),
|
|
6066
|
+
n("span", {
|
|
5988
6067
|
onClick: e[1] || (e[1] = (...s) => o.handleEmit && o.handleEmit(...s))
|
|
5989
6068
|
}, S(i.form.name), 1)
|
|
5990
6069
|
]),
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
6070
|
+
n("div", hi, [
|
|
6071
|
+
e[3] || (e[3] = n("label", null, "Position : ", -1)),
|
|
6072
|
+
n("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
|
|
5994
6073
|
]),
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
6074
|
+
n("div", di, [
|
|
6075
|
+
e[4] || (e[4] = n("label", null, "LoCode : ", -1)),
|
|
6076
|
+
n("span", null, S(i.form.loCode || "-"), 1)
|
|
5998
6077
|
]),
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6078
|
+
n("div", pi, [
|
|
6079
|
+
e[5] || (e[5] = n("label", null, "Region : ", -1)),
|
|
6080
|
+
n("span", null, S(i.form.zoneName || "-"), 1)
|
|
6002
6081
|
])
|
|
6003
6082
|
])
|
|
6004
6083
|
], 512)), [
|
|
6005
|
-
[
|
|
6084
|
+
[ze, i.showPort]
|
|
6006
6085
|
]);
|
|
6007
6086
|
}
|
|
6008
|
-
const
|
|
6087
|
+
const ui = /* @__PURE__ */ T(si, [["render", mi], ["__scopeId", "data-v-c07e4c45"]]), yi = {
|
|
6009
6088
|
name: "IdmLoadLine",
|
|
6010
6089
|
props: {
|
|
6011
6090
|
map: {
|
|
@@ -6075,10 +6154,10 @@ const Lo = /* @__PURE__ */ T(co, [["render", _o], ["__scopeId", "data-v-c07e4c45
|
|
|
6075
6154
|
}
|
|
6076
6155
|
}
|
|
6077
6156
|
};
|
|
6078
|
-
function
|
|
6079
|
-
return
|
|
6157
|
+
function fi(a, e, t, r, i, o) {
|
|
6158
|
+
return _(), C("div");
|
|
6080
6159
|
}
|
|
6081
|
-
const
|
|
6160
|
+
const gi = /* @__PURE__ */ T(yi, [["render", fi]]), bi = {
|
|
6082
6161
|
name: "IdmTimezone",
|
|
6083
6162
|
props: {
|
|
6084
6163
|
map: {
|
|
@@ -6243,10 +6322,10 @@ const ko = /* @__PURE__ */ T(xo, [["render", Co]]), So = {
|
|
|
6243
6322
|
}
|
|
6244
6323
|
}
|
|
6245
6324
|
};
|
|
6246
|
-
function
|
|
6247
|
-
return
|
|
6325
|
+
function vi(a, e, t, r, i, o) {
|
|
6326
|
+
return _(), C("div");
|
|
6248
6327
|
}
|
|
6249
|
-
const
|
|
6328
|
+
const wi = /* @__PURE__ */ T(bi, [["render", vi]]), Li = {
|
|
6250
6329
|
name: "IdmVoluntaryReportingArea",
|
|
6251
6330
|
props: {
|
|
6252
6331
|
map: {
|
|
@@ -6334,10 +6413,10 @@ const Po = /* @__PURE__ */ T(So, [["render", zo]]), To = {
|
|
|
6334
6413
|
}
|
|
6335
6414
|
}
|
|
6336
6415
|
};
|
|
6337
|
-
function
|
|
6338
|
-
return
|
|
6416
|
+
function xi(a, e, t, r, i, o) {
|
|
6417
|
+
return _(), C("div");
|
|
6339
6418
|
}
|
|
6340
|
-
const
|
|
6419
|
+
const _i = /* @__PURE__ */ T(Li, [["render", xi]]), Ci = {
|
|
6341
6420
|
name: "IdmSpecialArea",
|
|
6342
6421
|
props: {
|
|
6343
6422
|
map: {
|
|
@@ -6427,10 +6506,10 @@ const Eo = /* @__PURE__ */ T(To, [["render", Io]]), Ro = {
|
|
|
6427
6506
|
}
|
|
6428
6507
|
}
|
|
6429
6508
|
};
|
|
6430
|
-
function
|
|
6431
|
-
return
|
|
6509
|
+
function ki(a, e, t, r, i, o) {
|
|
6510
|
+
return _(), C("div");
|
|
6432
6511
|
}
|
|
6433
|
-
const
|
|
6512
|
+
const Si = /* @__PURE__ */ T(Ci, [["render", ki]]), Pi = {
|
|
6434
6513
|
name: "IdmTerminator",
|
|
6435
6514
|
props: {
|
|
6436
6515
|
map: {
|
|
@@ -6479,11 +6558,11 @@ const Do = /* @__PURE__ */ T(Ro, [["render", Ao]]), Mo = {
|
|
|
6479
6558
|
}
|
|
6480
6559
|
}
|
|
6481
6560
|
};
|
|
6482
|
-
function
|
|
6483
|
-
return
|
|
6561
|
+
function zi(a, e, t, r, i, o) {
|
|
6562
|
+
return _(), C("div");
|
|
6484
6563
|
}
|
|
6485
|
-
const
|
|
6486
|
-
const
|
|
6564
|
+
const Ti = /* @__PURE__ */ T(Pi, [["render", zi]]);
|
|
6565
|
+
const Ei = {
|
|
6487
6566
|
name: "IdmLatLng",
|
|
6488
6567
|
props: {
|
|
6489
6568
|
map: {
|
|
@@ -6590,7 +6669,7 @@ const Wo = {
|
|
|
6590
6669
|
handleZoomEnd() {
|
|
6591
6670
|
var e;
|
|
6592
6671
|
const a = this.handleComputeLatLngs();
|
|
6593
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
6672
|
+
(e = this.map) == null || e.getSource(this.source).setData(x.featureCollection(a));
|
|
6594
6673
|
},
|
|
6595
6674
|
handleRender() {
|
|
6596
6675
|
if (this.map) {
|
|
@@ -6638,19 +6717,19 @@ const Wo = {
|
|
|
6638
6717
|
(a = this.map) != null && a.getLayer(this.layer) && ((e = this.map) == null || e.removeLayer(this.layer)), (t = this.map) != null && t.getLayer(this.labelLayer) && ((r = this.map) == null || r.removeLayer(this.labelLayer)), (i = this.map) != null && i.getSource(this.source) && ((o = this.map) == null || o.removeSource(this.source));
|
|
6639
6718
|
}
|
|
6640
6719
|
}
|
|
6641
|
-
}
|
|
6642
|
-
function
|
|
6643
|
-
return i.lngLat ? (
|
|
6720
|
+
};
|
|
6721
|
+
function Ii(a, e, t, r, i, o) {
|
|
6722
|
+
return i.lngLat ? (_(), C("div", {
|
|
6644
6723
|
key: 0,
|
|
6645
6724
|
class: "lat-lng-tip",
|
|
6646
6725
|
style: U({ right: i.right + "px", bottom: t.bottom })
|
|
6647
6726
|
}, [
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
], 4)) :
|
|
6727
|
+
n("span", null, S(i.lngLat.lat.pretty), 1),
|
|
6728
|
+
e[0] || (e[0] = n("span", null, ", ", -1)),
|
|
6729
|
+
n("span", null, S(i.lngLat.lng.pretty), 1)
|
|
6730
|
+
], 4)) : B("", !0);
|
|
6652
6731
|
}
|
|
6653
|
-
const
|
|
6732
|
+
const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7"]]), Ri = {
|
|
6654
6733
|
name: "IdmMeasure",
|
|
6655
6734
|
props: {
|
|
6656
6735
|
map: {
|
|
@@ -6691,13 +6770,13 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6691
6770
|
},
|
|
6692
6771
|
methods: {
|
|
6693
6772
|
handleBind() {
|
|
6694
|
-
var a, e, t, r, i, o, s,
|
|
6773
|
+
var a, e, t, r, i, o, s, l, h, d;
|
|
6695
6774
|
if (this.show)
|
|
6696
6775
|
(a = this.map) == null || a.getCanvas().addEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.on("mousemove", this.handleMove), (t = this.map) == null || t.on("dblclick", this.handleDblClick), (r = this.map) == null || r.on("click", this.handleClick), (i = this.map) == null || i.on("contextmenu", this.handleContextmenu), this.map && (this.map.getCanvas().style.cursor = "crosshair");
|
|
6697
6776
|
else {
|
|
6698
|
-
(o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (s = this.map) == null || s.off("mousemove", this.handleMove), (
|
|
6699
|
-
for (const
|
|
6700
|
-
this.handleClear(
|
|
6777
|
+
(o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (s = this.map) == null || s.off("mousemove", this.handleMove), (l = this.map) == null || l.off("dblclick", this.handleDblClick), (h = this.map) == null || h.off("click", this.handleClick), (d = this.map) == null || d.off("contextmenu", this.handleContextmenu);
|
|
6778
|
+
for (const c of this.geojson)
|
|
6779
|
+
this.handleClear(c, !0);
|
|
6701
6780
|
this.geojson = [], this.map && (this.map.getCanvas().style.cursor = "grab");
|
|
6702
6781
|
}
|
|
6703
6782
|
},
|
|
@@ -6709,41 +6788,41 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6709
6788
|
}
|
|
6710
6789
|
},
|
|
6711
6790
|
handleDrag(a) {
|
|
6712
|
-
var t, r, i, o, s,
|
|
6791
|
+
var t, r, i, o, s, l, h, d, c, p;
|
|
6713
6792
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
6714
6793
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6715
|
-
const
|
|
6716
|
-
this.pointMarkers[
|
|
6794
|
+
const f = this.geojson.filter((u) => u.id === e.split("-")[0])[0];
|
|
6795
|
+
this.pointMarkers[f.id].filter((u) => {
|
|
6717
6796
|
var v;
|
|
6718
|
-
return ((v =
|
|
6719
|
-
})[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (
|
|
6720
|
-
let
|
|
6721
|
-
|
|
6722
|
-
if (
|
|
6723
|
-
|
|
6797
|
+
return ((v = u._element) == null ? void 0 : v.id) === e;
|
|
6798
|
+
})[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (l = (s = a.target) == null ? void 0 : s._lngLat) == null ? void 0 : l.lat]);
|
|
6799
|
+
let b;
|
|
6800
|
+
f.features.forEach((u, v) => {
|
|
6801
|
+
if (u.geometry.type === "Point" && u.properties.id == e.split("-")[1]) {
|
|
6802
|
+
b = v;
|
|
6724
6803
|
return;
|
|
6725
6804
|
}
|
|
6726
6805
|
});
|
|
6727
|
-
const
|
|
6806
|
+
const y = f.features.filter((u) => u.geometry.type === "Point");
|
|
6728
6807
|
this.handleTmpPointUpdate(
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
{ lng: (d = (
|
|
6732
|
-
|
|
6808
|
+
f,
|
|
6809
|
+
y[b - 1],
|
|
6810
|
+
{ lng: (d = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : d.lng, lat: (p = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : p.lat, properties: y[b].properties },
|
|
6811
|
+
b === y.length - 1 ? void 0 : y[b + 1]
|
|
6733
6812
|
);
|
|
6734
6813
|
}
|
|
6735
6814
|
},
|
|
6736
6815
|
handleDragEnd(a) {
|
|
6737
|
-
var t, r, i, o, s,
|
|
6816
|
+
var t, r, i, o, s, l, h, d, c, p;
|
|
6738
6817
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
6739
6818
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6740
|
-
const
|
|
6741
|
-
this.pointMarkers[
|
|
6742
|
-
var
|
|
6743
|
-
return ((
|
|
6744
|
-
})[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (
|
|
6745
|
-
const
|
|
6746
|
-
|
|
6819
|
+
const f = this.geojson.filter((y) => y.id === e.split("-")[0])[0];
|
|
6820
|
+
this.pointMarkers[f.id].filter((y) => {
|
|
6821
|
+
var u;
|
|
6822
|
+
return ((u = y._element) == null ? void 0 : u.id) === e;
|
|
6823
|
+
})[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (l = (s = a.target) == null ? void 0 : s._lngLat) == null ? void 0 : l.lat]);
|
|
6824
|
+
const b = f.features.filter((y) => y.geometry.type === "Point" && y.properties.id == e.split("-")[1])[0];
|
|
6825
|
+
b.geometry.coordinates = [(d = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : d.lng, (p = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : p.lat], f.features = f.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(f);
|
|
6747
6826
|
}
|
|
6748
6827
|
},
|
|
6749
6828
|
handleContextmenu(a) {
|
|
@@ -6751,10 +6830,10 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6751
6830
|
a.preventDefault(), (t = this.contextmenu) == null || t.remove();
|
|
6752
6831
|
const e = (o = (i = (r = a.originalEvent) == null ? void 0 : r.target) == null ? void 0 : i.parentElement) == null ? void 0 : o.id;
|
|
6753
6832
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6754
|
-
const
|
|
6755
|
-
if (
|
|
6833
|
+
const l = this.geojson.filter((h) => h.id === e.split("-")[0])[0].features.filter((h) => h.geometry.type === "Point");
|
|
6834
|
+
if (l.length > 2 && l.filter((d) => d.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
6756
6835
|
const d = document.createElement("div");
|
|
6757
|
-
d.className = "point-contextmenu-marker", d.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new
|
|
6836
|
+
d.className = "point-contextmenu-marker", d.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ee.Marker(d).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
|
|
6758
6837
|
}
|
|
6759
6838
|
}
|
|
6760
6839
|
},
|
|
@@ -6763,15 +6842,15 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6763
6842
|
(t = this.contextmenu) == null || t.remove();
|
|
6764
6843
|
const e = a.originalEvent.target.className;
|
|
6765
6844
|
if (e === "marker-close") {
|
|
6766
|
-
const
|
|
6767
|
-
|
|
6845
|
+
const l = (i = (r = a.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, h = this.geojson.filter((d) => d.id === l)[0];
|
|
6846
|
+
h && this.handleClear(h, !0), this.geojson = this.geojson.filter((d) => d.id !== l);
|
|
6768
6847
|
} else if (e === "del-point") {
|
|
6769
|
-
const
|
|
6770
|
-
|
|
6848
|
+
const l = (s = (o = a.originalEvent.target.id) == null ? void 0 : o.replace("del-", "")) == null ? void 0 : s.split("-"), h = this.geojson.filter((d) => d.id === l[0])[0];
|
|
6849
|
+
h.features = h.features.filter((d) => d.geometry.type === "Point" && d.properties.id !== l[1]), this.handlePointUpdate(h);
|
|
6771
6850
|
} else if (e !== "marker-label") {
|
|
6772
|
-
let
|
|
6773
|
-
|
|
6774
|
-
const
|
|
6851
|
+
let l = this.geojson.at(-1);
|
|
6852
|
+
l || (l = x.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(l)), l.features = l.features.filter((d) => d.geometry.type === "Point");
|
|
6853
|
+
const h = x.feature(
|
|
6775
6854
|
{
|
|
6776
6855
|
type: "Point",
|
|
6777
6856
|
coordinates: [a.lngLat.lng, a.lngLat.lat]
|
|
@@ -6781,7 +6860,7 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6781
6860
|
mode: this.navigation
|
|
6782
6861
|
}
|
|
6783
6862
|
);
|
|
6784
|
-
|
|
6863
|
+
l.features.push(h), this.handlePointUpdate(l);
|
|
6785
6864
|
}
|
|
6786
6865
|
},
|
|
6787
6866
|
handlePointUpdate(a) {
|
|
@@ -6790,35 +6869,35 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6790
6869
|
let t = 0;
|
|
6791
6870
|
const r = [];
|
|
6792
6871
|
for (let i = 1; i < e.length; i++) {
|
|
6793
|
-
const o = e[i - 1], s = e[i],
|
|
6794
|
-
t = D.roundPrecision(t +
|
|
6795
|
-
let
|
|
6796
|
-
|
|
6797
|
-
const
|
|
6798
|
-
|
|
6872
|
+
const o = e[i - 1], s = e[i], l = o.properties, h = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, d = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, c = K.calculateDistance(h, d, l.mode === "RL", 2), p = K.calculateBearing(h, d, l.mode === "RL", 2);
|
|
6873
|
+
t = D.roundPrecision(t + c, 2);
|
|
6874
|
+
let f;
|
|
6875
|
+
l.mode === "RL" ? f = D.convertToMonotonicLng([h, d]) : f = D.convertToMonotonicLng(K.interpolateCoordinates(h, d, 200));
|
|
6876
|
+
const m = x.lineString(f.map((b) => [b.lng, b.lat]));
|
|
6877
|
+
m.properties.dist = c, m.properties.bearing = p, m.properties.total = t, r.push(m);
|
|
6799
6878
|
}
|
|
6800
6879
|
e.push(...r), a.total = t;
|
|
6801
6880
|
}
|
|
6802
6881
|
return this.handleRender(a), a;
|
|
6803
6882
|
},
|
|
6804
6883
|
handleTmpPointUpdate(a, e, t, r) {
|
|
6805
|
-
const i =
|
|
6884
|
+
const i = x.featureCollection([]);
|
|
6806
6885
|
let o, s;
|
|
6807
6886
|
if (e) {
|
|
6808
|
-
const
|
|
6809
|
-
o =
|
|
6810
|
-
let
|
|
6811
|
-
|
|
6812
|
-
const
|
|
6813
|
-
|
|
6887
|
+
const h = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, c = { lng: t.lng, lat: t.lat };
|
|
6888
|
+
o = K.calculateDistance(d, c, h.mode === "RL", 2), s = K.calculateBearing(d, c, h.mode === "RL", 2);
|
|
6889
|
+
let p;
|
|
6890
|
+
h.mode === "RL" ? p = D.convertToMonotonicLng([d, c]) : p = D.convertToMonotonicLng(K.interpolateCoordinates(d, c, 200));
|
|
6891
|
+
const f = x.lineString(p.map((m) => [m.lng, m.lat]));
|
|
6892
|
+
f.properties.dist = o, f.properties.bearing = s, i.features.push(f);
|
|
6814
6893
|
}
|
|
6815
6894
|
if (r) {
|
|
6816
|
-
const
|
|
6817
|
-
o =
|
|
6818
|
-
let
|
|
6819
|
-
|
|
6820
|
-
const
|
|
6821
|
-
|
|
6895
|
+
const h = t.properties, d = t, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
6896
|
+
o = K.calculateDistance(d, c, h.mode === "RL", 2), s = K.calculateBearing(d, c, h.mode === "RL", 2);
|
|
6897
|
+
let p;
|
|
6898
|
+
h.mode === "RL" ? p = D.convertToMonotonicLng([d, c]) : p = D.convertToMonotonicLng(K.interpolateCoordinates(d, c, 200));
|
|
6899
|
+
const f = x.lineString(p.map((m) => [m.lng, m.lat]));
|
|
6900
|
+
f.properties.dist = o, f.properties.bearing = s, i.features.push(f);
|
|
6822
6901
|
}
|
|
6823
6902
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
6824
6903
|
type: "geojson",
|
|
@@ -6857,25 +6936,25 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6857
6936
|
"text-halo-blur": 0
|
|
6858
6937
|
}
|
|
6859
6938
|
});
|
|
6860
|
-
let
|
|
6861
|
-
if (r ?
|
|
6862
|
-
this.tipMarker._element.innerHTML =
|
|
6939
|
+
let l;
|
|
6940
|
+
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Tol distance: <b>${D.roundPrecision((a.total ?? 0) + o, 2)}</b>nm, bearing: <b>${s}</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)
|
|
6941
|
+
this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
6863
6942
|
else {
|
|
6864
|
-
const
|
|
6865
|
-
|
|
6943
|
+
const h = document.createElement("div");
|
|
6944
|
+
h.className = "tip-marker", h.innerHTML = l, this.tipMarker = new ee.Marker(h).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
|
|
6866
6945
|
}
|
|
6867
6946
|
},
|
|
6868
6947
|
handleMove(a) {
|
|
6869
6948
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
6870
6949
|
let e = this.geojson.at(-1);
|
|
6871
|
-
e || (e =
|
|
6950
|
+
e || (e = x.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
6872
6951
|
const t = e.features.filter((r) => r.geometry.type === "Point");
|
|
6873
6952
|
t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
|
|
6874
6953
|
},
|
|
6875
6954
|
handleDblClick(a) {
|
|
6876
6955
|
a.preventDefault();
|
|
6877
6956
|
let e = this.geojson.at(-1);
|
|
6878
|
-
e.closed = !0, this.handleRender(e), e =
|
|
6957
|
+
e.closed = !0, this.handleRender(e), e = x.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
|
|
6879
6958
|
},
|
|
6880
6959
|
handleRender(a) {
|
|
6881
6960
|
var e;
|
|
@@ -6918,31 +6997,31 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6918
6997
|
});
|
|
6919
6998
|
const o = a.features.filter((s) => s.geometry.type === "Point");
|
|
6920
6999
|
for (const s of o) {
|
|
6921
|
-
const
|
|
6922
|
-
|
|
6923
|
-
const
|
|
6924
|
-
|
|
7000
|
+
const l = document.createElement("div");
|
|
7001
|
+
l.id = `${a.id}-${s.properties.id}`, l.className = `${a.closed ? "point-marker closed" : "point-marker"}`, l.innerHTML = '<div class="marker-circle"></div>';
|
|
7002
|
+
const h = new ee.Marker({ element: l, draggable: !0, contextmenu: !0 }).setLngLat(s.geometry.coordinates).addTo(this.map);
|
|
7003
|
+
h.on("drag", this.handleDrag), h.on("dragend", this.handleDragEnd), this.pointMarkers[a.id] ? this.pointMarkers[a.id].push(h) : this.pointMarkers[a.id] = [h];
|
|
6925
7004
|
}
|
|
6926
7005
|
if (a.closed) {
|
|
6927
|
-
const s = o.at(-1),
|
|
6928
|
-
d.className = "point-summary-marker", d.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${
|
|
7006
|
+
const s = o.at(-1), h = a.features.filter((c) => c.geometry.type === "LineString").at(-1), d = document.createElement("div");
|
|
7007
|
+
d.className = "point-summary-marker", d.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${h.properties.total}nm</div>`, this.closeMarkers[a.id] = new ee.Marker(d).setOffset([60, 0]).setLngLat(s.geometry.coordinates).addTo(this.map);
|
|
6929
7008
|
}
|
|
6930
7009
|
}
|
|
6931
7010
|
},
|
|
6932
7011
|
handleClear(a, e = !0) {
|
|
6933
|
-
var o, s,
|
|
7012
|
+
var o, s, l, h, d, c, p, f, m;
|
|
6934
7013
|
const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
|
|
6935
|
-
(o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (
|
|
6936
|
-
|
|
6937
|
-
}), this.pointMarkers[a.id] = [], (
|
|
7014
|
+
(o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[a.id]) == null || d.remove(), this.closeMarkers[a.id] = void 0, (c = this.pointMarkers[a.id]) == null || c.forEach((b) => {
|
|
7015
|
+
b == null || b.remove();
|
|
7016
|
+
}), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(t)) && this.map.removeSource(t), e && ((m = this.map) != null && m.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
6938
7017
|
}
|
|
6939
7018
|
}
|
|
6940
7019
|
};
|
|
6941
|
-
function
|
|
6942
|
-
return
|
|
7020
|
+
function Ai(a, e, t, r, i, o) {
|
|
7021
|
+
return _(), C("div");
|
|
6943
7022
|
}
|
|
6944
|
-
const
|
|
6945
|
-
const
|
|
7023
|
+
const Di = /* @__PURE__ */ T(Ri, [["render", Ai]]);
|
|
7024
|
+
const Mi = {
|
|
6946
7025
|
name: "IdmENC",
|
|
6947
7026
|
props: {
|
|
6948
7027
|
map: {
|
|
@@ -6973,8 +7052,8 @@ const Zo = {
|
|
|
6973
7052
|
emits: ["enc"],
|
|
6974
7053
|
data() {
|
|
6975
7054
|
return {
|
|
6976
|
-
helper:
|
|
6977
|
-
vendor: this.$attrs.permission &
|
|
7055
|
+
helper: Ce,
|
|
7056
|
+
vendor: this.$attrs.permission & Ce.LEVEL.Supper ? "hi" : "i4",
|
|
6978
7057
|
right: 10
|
|
6979
7058
|
};
|
|
6980
7059
|
},
|
|
@@ -6994,30 +7073,28 @@ const Zo = {
|
|
|
6994
7073
|
}
|
|
6995
7074
|
},
|
|
6996
7075
|
methods: {}
|
|
6997
|
-
},
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
function Qo(a, e, t, r, i, o) {
|
|
7003
|
-
const s = z("ElTooltip");
|
|
7004
|
-
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (x(), C("div", Ho, [
|
|
7005
|
-
l("div", {
|
|
7076
|
+
}, Wi = { key: 0 }, ji = { class: "bar-item" };
|
|
7077
|
+
function Bi(a, e, t, r, i, o) {
|
|
7078
|
+
const s = P("ElTooltip");
|
|
7079
|
+
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (_(), C("div", Wi, [
|
|
7080
|
+
n("div", {
|
|
7006
7081
|
class: "menu-bar-box",
|
|
7007
7082
|
style: U({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
7008
7083
|
}, [
|
|
7009
|
-
|
|
7084
|
+
n("div", ji, [
|
|
7010
7085
|
k(s, {
|
|
7011
7086
|
placement: "left",
|
|
7012
7087
|
effect: "light",
|
|
7013
7088
|
content: "Hifleet",
|
|
7014
|
-
"show-after":
|
|
7089
|
+
"show-after": 1e3
|
|
7015
7090
|
}, {
|
|
7016
|
-
default:
|
|
7017
|
-
|
|
7018
|
-
class:
|
|
7019
|
-
onClick: e[0] || (e[0] = (
|
|
7020
|
-
},
|
|
7091
|
+
default: X(() => [
|
|
7092
|
+
n("div", {
|
|
7093
|
+
class: j(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
7094
|
+
onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
|
|
7095
|
+
}, e[2] || (e[2] = [
|
|
7096
|
+
n("span", { class: "iconfont" }, "HI", -1)
|
|
7097
|
+
]), 2)
|
|
7021
7098
|
]),
|
|
7022
7099
|
_: 1
|
|
7023
7100
|
}),
|
|
@@ -7025,54 +7102,56 @@ function Qo(a, e, t, r, i, o) {
|
|
|
7025
7102
|
placement: "left",
|
|
7026
7103
|
effect: "light",
|
|
7027
7104
|
content: "I4insight",
|
|
7028
|
-
"show-after":
|
|
7105
|
+
"show-after": 1e3
|
|
7029
7106
|
}, {
|
|
7030
|
-
default:
|
|
7031
|
-
|
|
7032
|
-
class:
|
|
7033
|
-
onClick: e[1] || (e[1] = (
|
|
7034
|
-
},
|
|
7107
|
+
default: X(() => [
|
|
7108
|
+
n("div", {
|
|
7109
|
+
class: j(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
7110
|
+
onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
|
|
7111
|
+
}, e[3] || (e[3] = [
|
|
7112
|
+
n("span", { class: "iconfont" }, "I4", -1)
|
|
7113
|
+
]), 2)
|
|
7035
7114
|
]),
|
|
7036
7115
|
_: 1
|
|
7037
7116
|
})
|
|
7038
7117
|
])
|
|
7039
7118
|
], 4)
|
|
7040
|
-
])) :
|
|
7119
|
+
])) : B("", !0);
|
|
7041
7120
|
}
|
|
7042
|
-
const
|
|
7043
|
-
const
|
|
7121
|
+
const Ni = /* @__PURE__ */ T(Mi, [["render", Bi], ["__scopeId", "data-v-5873cc66"]]);
|
|
7122
|
+
const Oi = {
|
|
7044
7123
|
name: "IdmGLV2",
|
|
7045
7124
|
components: {
|
|
7046
|
-
IdmGlLayer:
|
|
7047
|
-
IdmWindBarb:
|
|
7048
|
-
IdmWindParticle:
|
|
7049
|
-
IdmCurrents:
|
|
7050
|
-
IdmCurrentParticle:
|
|
7051
|
-
IdmSigWave:
|
|
7052
|
-
IdmSwell:
|
|
7053
|
-
IdmPrmsl:
|
|
7125
|
+
IdmGlLayer: yt,
|
|
7126
|
+
IdmWindBarb: vt,
|
|
7127
|
+
IdmWindParticle: Ct,
|
|
7128
|
+
IdmCurrents: zt,
|
|
7129
|
+
IdmCurrentParticle: Rt,
|
|
7130
|
+
IdmSigWave: Mt,
|
|
7131
|
+
IdmSwell: Bt,
|
|
7132
|
+
IdmPrmsl: Ft,
|
|
7054
7133
|
// IdmIceEdge,
|
|
7055
|
-
IdmIceberg:
|
|
7056
|
-
IdmTropicals:
|
|
7057
|
-
IdmPrecip3h:
|
|
7058
|
-
IdmVisibility:
|
|
7059
|
-
IdmWaterTemp:
|
|
7060
|
-
IdmTemp:
|
|
7061
|
-
IdmArctic:
|
|
7062
|
-
IdmWarZone:
|
|
7063
|
-
IdmGmdssArea:
|
|
7064
|
-
IdmEcaZone:
|
|
7065
|
-
IdmAlertZone:
|
|
7066
|
-
IdmPort:
|
|
7067
|
-
IdmLoadLine:
|
|
7068
|
-
IdmTimezone:
|
|
7069
|
-
IdmVRA:
|
|
7070
|
-
IdmSpecialArea:
|
|
7071
|
-
IdmTerminator:
|
|
7072
|
-
IdmLatLng:
|
|
7073
|
-
IdmMeasure:
|
|
7074
|
-
IdmPoint:
|
|
7075
|
-
IdmENC:
|
|
7134
|
+
IdmIceberg: Ut,
|
|
7135
|
+
IdmTropicals: Fe,
|
|
7136
|
+
IdmPrecip3h: da,
|
|
7137
|
+
IdmVisibility: ya,
|
|
7138
|
+
IdmWaterTemp: va,
|
|
7139
|
+
IdmTemp: _a,
|
|
7140
|
+
IdmArctic: Pa,
|
|
7141
|
+
IdmWarZone: Ja,
|
|
7142
|
+
IdmGmdssArea: qa,
|
|
7143
|
+
IdmEcaZone: ei,
|
|
7144
|
+
IdmAlertZone: oi,
|
|
7145
|
+
IdmPort: ui,
|
|
7146
|
+
IdmLoadLine: gi,
|
|
7147
|
+
IdmTimezone: wi,
|
|
7148
|
+
IdmVRA: _i,
|
|
7149
|
+
IdmSpecialArea: Si,
|
|
7150
|
+
IdmTerminator: Ti,
|
|
7151
|
+
IdmLatLng: $e,
|
|
7152
|
+
IdmMeasure: Di,
|
|
7153
|
+
IdmPoint: Za,
|
|
7154
|
+
IdmENC: Ni
|
|
7076
7155
|
},
|
|
7077
7156
|
props: {
|
|
7078
7157
|
map: {
|
|
@@ -7114,12 +7193,14 @@ const es = {
|
|
|
7114
7193
|
particleFactor: void 0,
|
|
7115
7194
|
showRampColor: !1,
|
|
7116
7195
|
activeWindLayer: !1,
|
|
7196
|
+
showWindFeather: !1,
|
|
7117
7197
|
showWindParticle: !1,
|
|
7198
|
+
showCurrentIsoband: !1,
|
|
7118
7199
|
showCurrentParticle: !1,
|
|
7119
7200
|
enc: "",
|
|
7120
7201
|
// enc: 'i4',
|
|
7121
7202
|
defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
|
|
7122
|
-
helper: new
|
|
7203
|
+
helper: new wt()
|
|
7123
7204
|
};
|
|
7124
7205
|
},
|
|
7125
7206
|
watch: {
|
|
@@ -7133,22 +7214,22 @@ const es = {
|
|
|
7133
7214
|
},
|
|
7134
7215
|
map: {
|
|
7135
7216
|
handler() {
|
|
7136
|
-
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new
|
|
7217
|
+
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Re(this.map), this.handleRampColorInitial());
|
|
7137
7218
|
},
|
|
7138
7219
|
immediate: !0
|
|
7139
7220
|
},
|
|
7140
7221
|
enc: {
|
|
7141
7222
|
handler(a, e) {
|
|
7142
|
-
var t, r, i, o, s,
|
|
7143
|
-
a ? ((r = (t = this.map) == null ? void 0 : t.getLayer(a)) == null || r.setLayoutProperty("visibility", "visible"), (o = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || o.setLayoutProperty("visibility", "none")) : ((
|
|
7223
|
+
var t, r, i, o, s, l, h, d;
|
|
7224
|
+
a ? ((r = (t = this.map) == null ? void 0 : t.getLayer(a)) == null || r.setLayoutProperty("visibility", "visible"), (o = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || o.setLayoutProperty("visibility", "none")) : ((l = (s = this.map) == null ? void 0 : s.getLayer("i4")) == null || l.setLayoutProperty("visibility", "none"), (d = (h = this.map) == null ? void 0 : h.getLayer("hi")) == null || d.setLayoutProperty("visibility", "none"));
|
|
7144
7225
|
}
|
|
7145
7226
|
},
|
|
7146
7227
|
activeWeatherLayers: {
|
|
7147
7228
|
handler() {
|
|
7148
|
-
var a, e, t, r, i, o, s,
|
|
7229
|
+
var a, e, t, r, i, o, s, l, h, d, c, p, f, m, b, y, u, v;
|
|
7149
7230
|
if (!this.map)
|
|
7150
7231
|
return !1;
|
|
7151
|
-
this.activeWeatherLayers.length > 0 ? ((e = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (t = this.map) == null ? void 0 : t.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((s = this.map) != null && s.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((
|
|
7232
|
+
this.activeWeatherLayers.length > 0 ? ((e = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (t = this.map) == null ? void 0 : t.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((s = this.map) != null && s.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((h = this.map) == null || h.moveLayer((l = this.viewport) == null ? void 0 : l.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (c = this.map) != null && c.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) && ((p = this.map) != null && p.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((m = this.map) == null || m.moveLayer((f = this.viewport) == null ? void 0 : f.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((y = (b = this.map) == null ? void 0 : b.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible"), (v = (u = this.map) == null ? void 0 : u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none")), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
|
|
7152
7233
|
},
|
|
7153
7234
|
immediate: !0
|
|
7154
7235
|
}
|
|
@@ -7195,57 +7276,57 @@ const es = {
|
|
|
7195
7276
|
},
|
|
7196
7277
|
methods: {
|
|
7197
7278
|
async fetchWeatherLayers(a = { tropicals: !1 }) {
|
|
7198
|
-
var i, o, s,
|
|
7279
|
+
var i, o, s, l, h, d, c, p;
|
|
7199
7280
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
7200
7281
|
let t = 0, r = 0;
|
|
7201
7282
|
if (this.map) {
|
|
7202
|
-
const
|
|
7283
|
+
const f = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, m = (o = this.map) == null ? void 0 : o.getBounds(), b = `${m._sw.lng},${m._sw.lat},${m._ne.lng},${m._ne.lat}`;
|
|
7203
7284
|
if (this.handleRampColorState(), this.particleFactor) {
|
|
7204
|
-
const
|
|
7285
|
+
const y = ke.WEATHER_LAYERS.find((u) => {
|
|
7205
7286
|
var v;
|
|
7206
|
-
return ((v =
|
|
7287
|
+
return ((v = u.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
|
|
7207
7288
|
});
|
|
7208
|
-
this.particleFactor.particle ? this.weatherWeight = this.weatherWeight &
|
|
7289
|
+
this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & y.weight ? this.weatherWeight : this.weatherWeight + y.weight : this.weatherWeight = this.weatherWeight & y.weight ? this.weatherWeight - y.weight : this.weatherWeight;
|
|
7209
7290
|
}
|
|
7210
7291
|
if (this.weatherWeight > 0) {
|
|
7211
|
-
let
|
|
7212
|
-
if (a.tropicals || this.weatherWeight & 256 && (
|
|
7213
|
-
const v = await
|
|
7292
|
+
let y = this.weatherWeight, u;
|
|
7293
|
+
if (a.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (y -= 256, u.version = Math.random() + 1)), y > 0) {
|
|
7294
|
+
const v = await oe.get(`${this.gateway}/api/arc/weather/layers/links?l=${y}&v=${this.source}&z=${f}&bbox=${b}&t=${this.ts}`, {
|
|
7214
7295
|
headers: {
|
|
7215
7296
|
Authorization: this.token || this.defaultMeteoToken
|
|
7216
7297
|
}
|
|
7217
7298
|
});
|
|
7218
7299
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((s = v == null ? void 0 : v.data) == null ? void 0 : s.code) === 0) {
|
|
7219
|
-
const
|
|
7220
|
-
for (const w in
|
|
7221
|
-
w === "ice-edge" && (
|
|
7222
|
-
|
|
7300
|
+
const g = (l = v == null ? void 0 : v.data) == null ? void 0 : l.data, L = [];
|
|
7301
|
+
for (const w in g)
|
|
7302
|
+
w === "ice-edge" && (g[w] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), w !== "tropicals" && L.push(
|
|
7303
|
+
oe.get(g[w], {
|
|
7223
7304
|
headers: {
|
|
7224
7305
|
Authorization: this.token || this.defaultMeteoToken,
|
|
7225
7306
|
key: w
|
|
7226
7307
|
},
|
|
7227
|
-
responseType: /\.(jpg|png)$/.test(
|
|
7308
|
+
responseType: /\.(jpg|png)$/.test(g[w]) ? "blob" : "json"
|
|
7228
7309
|
}).catch((A) => {
|
|
7229
7310
|
console.log(`[${w}] fetch layer error: ${A}`);
|
|
7230
7311
|
})
|
|
7231
7312
|
);
|
|
7232
|
-
const
|
|
7233
|
-
this.weatherLayers = {},
|
|
7234
|
-
var
|
|
7235
|
-
const A = ((
|
|
7313
|
+
const z = await Promise.all(L);
|
|
7314
|
+
this.weatherLayers = {}, z.map((w) => {
|
|
7315
|
+
var W, O, F, H;
|
|
7316
|
+
const A = ((W = w == null ? void 0 : w.data) == null ? void 0 : W.data) || (w == null ? void 0 : w.data), M = (F = (O = w == null ? void 0 : w.config) == null ? void 0 : O.headers) == null ? void 0 : F.key;
|
|
7236
7317
|
M && A && (this.weatherLayers[M] = {
|
|
7237
7318
|
raw: A,
|
|
7238
|
-
type: ((
|
|
7319
|
+
type: ((H = w == null ? void 0 : w.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
|
|
7239
7320
|
etime: this.ts
|
|
7240
7321
|
});
|
|
7241
|
-
}),
|
|
7322
|
+
}), g.tropicals && oe.get(g.tropicals, {
|
|
7242
7323
|
headers: {
|
|
7243
7324
|
Authorization: this.token || this.defaultMeteoToken,
|
|
7244
7325
|
key: "tropicals"
|
|
7245
7326
|
}
|
|
7246
7327
|
}).then((w) => {
|
|
7247
|
-
var
|
|
7248
|
-
const A =
|
|
7328
|
+
var W, O, F;
|
|
7329
|
+
const A = Oe.convert2Geojson(((W = w == null ? void 0 : w.data) == null ? void 0 : W.data) || (w == null ? void 0 : w.data)), M = (F = (O = w == null ? void 0 : w.config) == null ? void 0 : O.headers) == null ? void 0 : F.key;
|
|
7249
7330
|
this.weatherLayers[M] = {
|
|
7250
7331
|
data: A,
|
|
7251
7332
|
active: !0,
|
|
@@ -7257,25 +7338,25 @@ const es = {
|
|
|
7257
7338
|
});
|
|
7258
7339
|
}
|
|
7259
7340
|
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"]) {
|
|
7260
|
-
const
|
|
7341
|
+
const g = (h = this.weatherLayers["swell-direction"]) == null ? void 0 : h.raw, L = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
7261
7342
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
7262
7343
|
type: "json",
|
|
7263
|
-
direction:
|
|
7264
|
-
height: { raw:
|
|
7344
|
+
direction: g,
|
|
7345
|
+
height: { raw: L },
|
|
7265
7346
|
etime: this.ts
|
|
7266
7347
|
};
|
|
7267
7348
|
}
|
|
7268
7349
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
7269
|
-
const
|
|
7350
|
+
const g = (c = this.weatherLayers["current-direction"]) == null ? void 0 : c.raw, L = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
|
|
7270
7351
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
7271
7352
|
type: "json",
|
|
7272
|
-
direction:
|
|
7273
|
-
speed: { raw:
|
|
7353
|
+
direction: g,
|
|
7354
|
+
speed: { raw: L },
|
|
7274
7355
|
etime: this.ts
|
|
7275
7356
|
};
|
|
7276
7357
|
}
|
|
7277
7358
|
}
|
|
7278
|
-
|
|
7359
|
+
u && (u.etime = this.ts, u.cached = !0, this.weatherLayers.tropicals = u);
|
|
7279
7360
|
}
|
|
7280
7361
|
this.handleWeatherLayerToggle(), this.handleDragEndWithZoom4Json();
|
|
7281
7362
|
}
|
|
@@ -7289,50 +7370,50 @@ const es = {
|
|
|
7289
7370
|
let s = !1;
|
|
7290
7371
|
if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, s = !0), o) {
|
|
7291
7372
|
if (a.all) {
|
|
7292
|
-
const
|
|
7373
|
+
const l = await oe.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
|
|
7293
7374
|
headers: {
|
|
7294
7375
|
Authorization: this.token || this.defaultMeteoToken
|
|
7295
7376
|
}
|
|
7296
7377
|
});
|
|
7297
|
-
if (((e =
|
|
7298
|
-
const
|
|
7299
|
-
for (const
|
|
7378
|
+
if (((e = l == null ? void 0 : l.data) == null ? void 0 : e.code) === 0) {
|
|
7379
|
+
const h = (t = l == null ? void 0 : l.data) == null ? void 0 : t.data, d = [];
|
|
7380
|
+
for (const p in h)
|
|
7300
7381
|
d.push(
|
|
7301
|
-
|
|
7382
|
+
oe.get(h[p], {
|
|
7302
7383
|
headers: {
|
|
7303
7384
|
Authorization: this.token || this.defaultMeteoToken,
|
|
7304
|
-
key:
|
|
7385
|
+
key: p
|
|
7305
7386
|
}
|
|
7306
7387
|
})
|
|
7307
7388
|
);
|
|
7308
|
-
const
|
|
7309
|
-
this.otherLayers = { enc: s },
|
|
7310
|
-
var
|
|
7311
|
-
const
|
|
7312
|
-
this.otherLayers[
|
|
7389
|
+
const c = await Promise.all(d);
|
|
7390
|
+
this.otherLayers = { enc: s }, c.map((p) => {
|
|
7391
|
+
var b, y, u;
|
|
7392
|
+
const f = ((b = p == null ? void 0 : p.data) == null ? void 0 : b.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
|
|
7393
|
+
this.otherLayers[m] = f;
|
|
7313
7394
|
});
|
|
7314
7395
|
}
|
|
7315
7396
|
} else if (a.dayNight && o & 1024) {
|
|
7316
|
-
const
|
|
7397
|
+
const l = await oe.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
7317
7398
|
headers: {
|
|
7318
7399
|
Authorization: this.token || this.defaultMeteoToken
|
|
7319
7400
|
}
|
|
7320
7401
|
});
|
|
7321
|
-
if (((r =
|
|
7322
|
-
const
|
|
7323
|
-
for (const
|
|
7402
|
+
if (((r = l == null ? void 0 : l.data) == null ? void 0 : r.code) === 0) {
|
|
7403
|
+
const h = (i = l == null ? void 0 : l.data) == null ? void 0 : i.data, d = [];
|
|
7404
|
+
for (const p in h)
|
|
7324
7405
|
d.push(
|
|
7325
|
-
|
|
7406
|
+
oe.get(h[p], {
|
|
7326
7407
|
headers: {
|
|
7327
7408
|
Authorization: this.token || this.defaultMeteoToken,
|
|
7328
|
-
key:
|
|
7409
|
+
key: p
|
|
7329
7410
|
}
|
|
7330
7411
|
})
|
|
7331
7412
|
);
|
|
7332
|
-
(await Promise.all(d)).map((
|
|
7333
|
-
var
|
|
7334
|
-
const
|
|
7335
|
-
this.otherLayers[
|
|
7413
|
+
(await Promise.all(d)).map((p) => {
|
|
7414
|
+
var b, y, u;
|
|
7415
|
+
const f = ((b = p == null ? void 0 : p.data) == null ? void 0 : b.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
|
|
7416
|
+
this.otherLayers[m] = f;
|
|
7336
7417
|
});
|
|
7337
7418
|
}
|
|
7338
7419
|
}
|
|
@@ -7353,7 +7434,7 @@ const es = {
|
|
|
7353
7434
|
this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
|
|
7354
7435
|
},
|
|
7355
7436
|
handleRampColorInitial() {
|
|
7356
|
-
var a, e, t, r, i, o, s,
|
|
7437
|
+
var a, e, t, r, i, o, s, l, h, d, c, p;
|
|
7357
7438
|
this.viewport.map.getSource((a = this.viewport) == null ? void 0 : a.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
7358
7439
|
type: "canvas",
|
|
7359
7440
|
canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
|
|
@@ -7369,16 +7450,16 @@ const es = {
|
|
|
7369
7450
|
}
|
|
7370
7451
|
},
|
|
7371
7452
|
this.beforeLayer
|
|
7372
|
-
), this.viewport.map.getSource((s = this.viewport) == null ? void 0 : s.particleSource) || this.viewport.map.addSource((
|
|
7453
|
+
), this.viewport.map.getSource((s = this.viewport) == null ? void 0 : s.particleSource) || this.viewport.map.addSource((l = this.viewport) == null ? void 0 : l.particleSource, {
|
|
7373
7454
|
type: "canvas",
|
|
7374
|
-
canvas: (
|
|
7455
|
+
canvas: (h = this.viewport) == null ? void 0 : h.particleCanvas,
|
|
7375
7456
|
animate: !0,
|
|
7376
7457
|
coordinates: this.viewport.getBoundLngLat()
|
|
7377
7458
|
}), this.viewport.map.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) || this.viewport.map.addLayer(
|
|
7378
7459
|
{
|
|
7379
7460
|
type: "raster",
|
|
7380
|
-
id: (
|
|
7381
|
-
source: (
|
|
7461
|
+
id: (c = this.viewport) == null ? void 0 : c.particleLayer,
|
|
7462
|
+
source: (p = this.viewport) == null ? void 0 : p.particleSource,
|
|
7382
7463
|
layout: {
|
|
7383
7464
|
visibility: "none"
|
|
7384
7465
|
}
|
|
@@ -7387,186 +7468,186 @@ const es = {
|
|
|
7387
7468
|
);
|
|
7388
7469
|
},
|
|
7389
7470
|
handleDragEndWithZoom4Json() {
|
|
7390
|
-
var d,
|
|
7471
|
+
var d, c, p, f;
|
|
7391
7472
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
7392
7473
|
let e = 0, t = 0;
|
|
7393
|
-
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), o = D.convertToStdLng(r._sw.lng), s = D.convertToStdLng(r._ne.lng),
|
|
7394
|
-
for (const
|
|
7395
|
-
if (this.weatherLayers[
|
|
7396
|
-
this.weatherLayers[
|
|
7397
|
-
let
|
|
7398
|
-
if (["swell", "current"].includes(
|
|
7399
|
-
const
|
|
7400
|
-
for (const
|
|
7401
|
-
if (
|
|
7402
|
-
const v =
|
|
7403
|
-
o > s ? v.forEach((
|
|
7404
|
-
var
|
|
7405
|
-
if ((
|
|
7406
|
-
const w =
|
|
7407
|
-
val:
|
|
7408
|
-
spd: (
|
|
7474
|
+
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), o = D.convertToStdLng(r._sw.lng), s = D.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), h = Math.ceil(r._ne.lat);
|
|
7475
|
+
for (const m in this.weatherLayers)
|
|
7476
|
+
if (this.weatherLayers[m].active && this.weatherLayers[m].type === "json") {
|
|
7477
|
+
this.weatherLayers[m].active = !1, this.weatherLayers[m].version = Math.random() + 1;
|
|
7478
|
+
let b = [];
|
|
7479
|
+
if (["swell", "current"].includes(m)) {
|
|
7480
|
+
const y = ((c = this.weatherLayers[m]) == null ? void 0 : c.direction) || {};
|
|
7481
|
+
for (const u in y)
|
|
7482
|
+
if (u > l && u < h && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7483
|
+
const v = y[u].lng;
|
|
7484
|
+
o > s ? v.forEach((g, L) => {
|
|
7485
|
+
var z;
|
|
7486
|
+
if ((g >= o && g <= 180 || g >= -180 && g <= s) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7487
|
+
const w = x.point([g, u], {
|
|
7488
|
+
val: y[u].val[L],
|
|
7489
|
+
spd: (z = y[u].spd) == null ? void 0 : z[L]
|
|
7409
7490
|
});
|
|
7410
|
-
|
|
7491
|
+
b.push(w);
|
|
7411
7492
|
}
|
|
7412
|
-
}) : v.forEach((
|
|
7413
|
-
var
|
|
7414
|
-
if (
|
|
7415
|
-
const w =
|
|
7416
|
-
val:
|
|
7417
|
-
spd: (
|
|
7493
|
+
}) : v.forEach((g, L) => {
|
|
7494
|
+
var z;
|
|
7495
|
+
if (g >= o && g <= s && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7496
|
+
const w = x.point([g, u], {
|
|
7497
|
+
val: y[u].val[L],
|
|
7498
|
+
spd: (z = y[u].spd) == null ? void 0 : z[L]
|
|
7418
7499
|
});
|
|
7419
|
-
|
|
7500
|
+
b.push(w);
|
|
7420
7501
|
}
|
|
7421
7502
|
});
|
|
7422
7503
|
}
|
|
7423
|
-
if (t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("direction elapsed: ", t, ", total: ", e += t),
|
|
7424
|
-
const
|
|
7425
|
-
if (
|
|
7426
|
-
if (!
|
|
7504
|
+
if (t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("direction elapsed: ", t, ", total: ", e += t), m === "swell") {
|
|
7505
|
+
const u = this.weatherLayers[m].height;
|
|
7506
|
+
if (u) {
|
|
7507
|
+
if (!u.data) {
|
|
7427
7508
|
const v = [];
|
|
7428
|
-
for (const
|
|
7429
|
-
const
|
|
7430
|
-
for (const
|
|
7509
|
+
for (const g in (p = u.raw) == null ? void 0 : p.LineString) {
|
|
7510
|
+
const L = u.raw.LineString[g];
|
|
7511
|
+
for (const z of L)
|
|
7431
7512
|
v.push(
|
|
7432
|
-
|
|
7433
|
-
val: Number(
|
|
7513
|
+
x.lineString(z, {
|
|
7514
|
+
val: Number(g)
|
|
7434
7515
|
})
|
|
7435
7516
|
);
|
|
7436
|
-
|
|
7517
|
+
u.data = x.featureCollection(v);
|
|
7437
7518
|
}
|
|
7438
7519
|
}
|
|
7439
|
-
if (
|
|
7440
|
-
const v = this.handleBboxClip(
|
|
7441
|
-
|
|
7520
|
+
if (u.data) {
|
|
7521
|
+
const v = this.handleBboxClip(u.data, r);
|
|
7522
|
+
b = b.concat(v);
|
|
7442
7523
|
}
|
|
7443
7524
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("height elapsed: ", t, ", total: ", e += t);
|
|
7444
7525
|
}
|
|
7445
7526
|
}
|
|
7446
|
-
if (
|
|
7447
|
-
const
|
|
7448
|
-
if (
|
|
7449
|
-
if (!
|
|
7450
|
-
const
|
|
7451
|
-
for (const
|
|
7452
|
-
const
|
|
7453
|
-
for (const w of
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
val: Number(
|
|
7527
|
+
if (m === "current") {
|
|
7528
|
+
const u = this.weatherLayers[m].speed;
|
|
7529
|
+
if (u) {
|
|
7530
|
+
if (!u.data) {
|
|
7531
|
+
const g = [];
|
|
7532
|
+
for (const L in (f = u.raw) == null ? void 0 : f.Polygon) {
|
|
7533
|
+
const z = u.raw.Polygon[L];
|
|
7534
|
+
for (const w of z)
|
|
7535
|
+
g.push(
|
|
7536
|
+
x.polygon(w, {
|
|
7537
|
+
val: Number(L)
|
|
7457
7538
|
})
|
|
7458
7539
|
);
|
|
7459
7540
|
}
|
|
7460
|
-
|
|
7541
|
+
u.data = x.featureCollection(g);
|
|
7461
7542
|
}
|
|
7462
|
-
const v = i < this.zoom ?
|
|
7463
|
-
|
|
7543
|
+
const v = i < this.zoom ? u.data.features.filter((g) => g.properties.val > 0.5) : u.data.features;
|
|
7544
|
+
b = b.concat(v), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("speed elapsed: ", t, ", total: ", e += t);
|
|
7464
7545
|
}
|
|
7465
7546
|
}
|
|
7466
|
-
} else if (
|
|
7467
|
-
const
|
|
7468
|
-
for (const
|
|
7469
|
-
if (
|
|
7470
|
-
const v =
|
|
7471
|
-
o > s ? v.forEach((
|
|
7472
|
-
if ((
|
|
7473
|
-
const
|
|
7474
|
-
val:
|
|
7475
|
-
spd:
|
|
7547
|
+
} else if (m === "wind") {
|
|
7548
|
+
const y = this.weatherLayers.wind.raw;
|
|
7549
|
+
for (const u in y)
|
|
7550
|
+
if (u > l && u < h && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7551
|
+
const v = y[u].lng;
|
|
7552
|
+
o > s ? v.forEach((g, L) => {
|
|
7553
|
+
if ((g >= o && g <= 180 || g >= -180 && g <= s) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7554
|
+
const z = x.point([g, u], {
|
|
7555
|
+
val: y[u].val[L],
|
|
7556
|
+
spd: y[u].spd[L]
|
|
7476
7557
|
});
|
|
7477
|
-
|
|
7558
|
+
b.push(z);
|
|
7478
7559
|
}
|
|
7479
|
-
}) : v.forEach((
|
|
7480
|
-
if (
|
|
7481
|
-
const
|
|
7482
|
-
val:
|
|
7483
|
-
spd:
|
|
7560
|
+
}) : v.forEach((g, L) => {
|
|
7561
|
+
if (g >= o && g <= s && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7562
|
+
const z = x.point([g, u], {
|
|
7563
|
+
val: y[u].val[L],
|
|
7564
|
+
spd: y[u].spd[L]
|
|
7484
7565
|
});
|
|
7485
|
-
|
|
7566
|
+
b.push(z);
|
|
7486
7567
|
}
|
|
7487
7568
|
});
|
|
7488
7569
|
}
|
|
7489
7570
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
|
|
7490
|
-
} else if (
|
|
7491
|
-
if (this.weatherLayers[
|
|
7492
|
-
|
|
7571
|
+
} else if (m === "sig-wave-height") {
|
|
7572
|
+
if (this.weatherLayers[m].data)
|
|
7573
|
+
b = this.weatherLayers[m].data;
|
|
7493
7574
|
else {
|
|
7494
|
-
const
|
|
7495
|
-
if (
|
|
7496
|
-
const
|
|
7497
|
-
for (const v in
|
|
7498
|
-
const
|
|
7499
|
-
for (const
|
|
7500
|
-
|
|
7501
|
-
|
|
7575
|
+
const y = this.weatherLayers[m].raw;
|
|
7576
|
+
if (y) {
|
|
7577
|
+
const u = [];
|
|
7578
|
+
for (const v in y.Polygon) {
|
|
7579
|
+
const g = y.Polygon[v];
|
|
7580
|
+
for (const L of g)
|
|
7581
|
+
u.push(
|
|
7582
|
+
x.polygon(L, {
|
|
7502
7583
|
val: Number(v)
|
|
7503
7584
|
})
|
|
7504
7585
|
);
|
|
7505
7586
|
}
|
|
7506
|
-
for (const v in
|
|
7507
|
-
const
|
|
7508
|
-
for (const
|
|
7509
|
-
|
|
7510
|
-
...
|
|
7587
|
+
for (const v in y.Point) {
|
|
7588
|
+
const g = y.Point[v];
|
|
7589
|
+
for (const L of g)
|
|
7590
|
+
u.push(
|
|
7591
|
+
...x.points(L, {
|
|
7511
7592
|
val: Number(v)
|
|
7512
7593
|
}).features
|
|
7513
7594
|
);
|
|
7514
7595
|
}
|
|
7515
|
-
|
|
7596
|
+
b = b.concat(u);
|
|
7516
7597
|
}
|
|
7517
7598
|
}
|
|
7518
7599
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
|
|
7519
|
-
} else if (
|
|
7520
|
-
if (this.weatherLayers[
|
|
7521
|
-
|
|
7600
|
+
} else if (m === "prmsl") {
|
|
7601
|
+
if (this.weatherLayers[m].data)
|
|
7602
|
+
b = this.weatherLayers[m].data;
|
|
7522
7603
|
else {
|
|
7523
|
-
const
|
|
7524
|
-
if (
|
|
7525
|
-
const
|
|
7526
|
-
for (const v in
|
|
7527
|
-
const
|
|
7528
|
-
for (const
|
|
7529
|
-
|
|
7530
|
-
|
|
7604
|
+
const y = this.weatherLayers[m].raw;
|
|
7605
|
+
if (y) {
|
|
7606
|
+
const u = [];
|
|
7607
|
+
for (const v in y.LineString) {
|
|
7608
|
+
const g = y.LineString[v];
|
|
7609
|
+
for (const L of g)
|
|
7610
|
+
u.push(
|
|
7611
|
+
x.lineString(L, {
|
|
7531
7612
|
val: Number(v)
|
|
7532
7613
|
})
|
|
7533
7614
|
);
|
|
7534
7615
|
}
|
|
7535
|
-
for (const v in
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
val:
|
|
7540
|
-
type:
|
|
7616
|
+
for (const v in y.Point)
|
|
7617
|
+
y.Point[v].lng.forEach((g, L) => {
|
|
7618
|
+
g = D.convertToStdLng(g), u.push(
|
|
7619
|
+
x.point([g, v], {
|
|
7620
|
+
val: y.Point[v].val[L],
|
|
7621
|
+
type: y.Point[v].type[L]
|
|
7541
7622
|
})
|
|
7542
7623
|
);
|
|
7543
7624
|
});
|
|
7544
|
-
|
|
7625
|
+
b = b.concat(u);
|
|
7545
7626
|
}
|
|
7546
7627
|
}
|
|
7547
7628
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
7548
|
-
} else if (
|
|
7549
|
-
if (this.weatherLayers[
|
|
7550
|
-
|
|
7629
|
+
} else if (m === "arctic" || m === "iceberg") {
|
|
7630
|
+
if (this.weatherLayers[m].data)
|
|
7631
|
+
b = this.weatherLayers[m].data;
|
|
7551
7632
|
else {
|
|
7552
|
-
const
|
|
7553
|
-
if (
|
|
7554
|
-
const
|
|
7555
|
-
for (const v in
|
|
7556
|
-
const
|
|
7557
|
-
for (const
|
|
7558
|
-
|
|
7559
|
-
|
|
7633
|
+
const y = this.weatherLayers[m].raw;
|
|
7634
|
+
if (y) {
|
|
7635
|
+
const u = [];
|
|
7636
|
+
for (const v in y.LineString) {
|
|
7637
|
+
const g = y.LineString[v];
|
|
7638
|
+
for (const L of g)
|
|
7639
|
+
u.push(
|
|
7640
|
+
x.lineString(L, {
|
|
7560
7641
|
val: Number(v)
|
|
7561
7642
|
})
|
|
7562
7643
|
);
|
|
7563
7644
|
}
|
|
7564
|
-
|
|
7645
|
+
b = b.concat(u);
|
|
7565
7646
|
}
|
|
7566
7647
|
}
|
|
7567
7648
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e);
|
|
7568
7649
|
}
|
|
7569
|
-
console.log(
|
|
7650
|
+
console.log(m, " elapsed: ", t, ", total: ", e += t), b.length && (this.weatherLayers[m].data = x.featureCollection(b)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
|
|
7570
7651
|
}
|
|
7571
7652
|
},
|
|
7572
7653
|
handleDragEndWithZoom4Image() {
|
|
@@ -7578,11 +7659,11 @@ const es = {
|
|
|
7578
7659
|
return a.features.forEach((o) => {
|
|
7579
7660
|
if (o.geometry.type !== "Point")
|
|
7580
7661
|
if (r > i) {
|
|
7581
|
-
let s = [r, e._sw.lat, 180, e._ne.lat],
|
|
7582
|
-
|
|
7662
|
+
let s = [r, e._sw.lat, 180, e._ne.lat], l = x.bboxClip(o, s);
|
|
7663
|
+
l.geometry.coordinates.length && t.push(l), s = [-180, e._sw.lat, i, e._ne.lat], l = x.bboxClip(o, s), l.geometry.coordinates.length && t.push(l);
|
|
7583
7664
|
} else {
|
|
7584
|
-
const s = [r, e._sw.lat, i, e._ne.lat],
|
|
7585
|
-
|
|
7665
|
+
const s = [r, e._sw.lat, i, e._ne.lat], l = x.bboxClip(o, s);
|
|
7666
|
+
l.geometry.coordinates.length && t.push(l);
|
|
7586
7667
|
}
|
|
7587
7668
|
else
|
|
7588
7669
|
t.push(o);
|
|
@@ -7599,30 +7680,30 @@ const es = {
|
|
|
7599
7680
|
this.handleBeforeLayerToggle();
|
|
7600
7681
|
},
|
|
7601
7682
|
handleBeforeLayerToggle() {
|
|
7602
|
-
var a, e, t, r, i, o, s,
|
|
7603
|
-
(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"] || (o = this.otherLayers) != null && o["high-risk-area"] || (s = this.otherLayers) != null && s["time-zones"] || (
|
|
7683
|
+
var a, e, t, r, i, o, s, l, h, d, c, p, f;
|
|
7684
|
+
(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"] || (o = this.otherLayers) != null && o["high-risk-area"] || (s = this.otherLayers) != null && s["time-zones"] || (l = this.otherLayers) != null && l.pirates || (h = this.otherLayers) != null && h.ports || (d = this.otherLayers) != null && d.enc || (c = this.otherLayers) != null && c["voluntary-reporting-area"] || (p = this.otherLayers) != null && p["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
7604
7685
|
},
|
|
7605
7686
|
handleDateChange(a = { tropicals: !1 }) {
|
|
7606
7687
|
this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
|
|
7607
7688
|
},
|
|
7608
|
-
handleWeatherLayerChange(a, e
|
|
7689
|
+
handleWeatherLayerChange(a, e) {
|
|
7609
7690
|
if (!this.map)
|
|
7610
7691
|
setTimeout(() => {
|
|
7611
|
-
this.handleWeatherLayerChange(a, e
|
|
7692
|
+
this.handleWeatherLayerChange(a, e);
|
|
7612
7693
|
}, 500);
|
|
7613
7694
|
else {
|
|
7614
|
-
this.activeWeatherLayers =
|
|
7615
|
-
const
|
|
7616
|
-
(
|
|
7617
|
-
var
|
|
7618
|
-
return ["wind", "current"].includes(
|
|
7695
|
+
this.activeWeatherLayers = a;
|
|
7696
|
+
const t = this.activeWeatherLayers.some(
|
|
7697
|
+
(o) => {
|
|
7698
|
+
var s;
|
|
7699
|
+
return ["wind", "current"].includes(o.key) && (!((s = Object.keys(o)) != null && s.some((l) => l === "particle")) || !!o.particle);
|
|
7619
7700
|
}
|
|
7620
|
-
),
|
|
7621
|
-
|
|
7622
|
-
["wind", "current"].includes(
|
|
7623
|
-
}), this.particleFactor.particle = !0) :
|
|
7624
|
-
const
|
|
7625
|
-
this.weatherWeight !==
|
|
7701
|
+
), r = this.activeWeatherLayers.some((o) => ["png", "jpg"].includes(o.type));
|
|
7702
|
+
t && !r ? (this.activeWeatherLayers.forEach((o) => {
|
|
7703
|
+
["wind", "current"].includes(o.key) && (this.particleFactor = o);
|
|
7704
|
+
}), this.particleFactor.particle = !0) : r && this.particleFactor && (this.particleFactor.particle = !1);
|
|
7705
|
+
const i = a == null ? void 0 : a.reduce((o, s) => o + (o & (s == null ? void 0 : s.weight) ? 0 : s == null ? void 0 : s.weight), 0);
|
|
7706
|
+
this.weatherWeight !== i || this.source !== e ? (this.source = e, this.weatherWeight = i, this.fetchWeatherLayers({ tropicals: !1 })) : this.handleWeatherLayerToggle();
|
|
7626
7707
|
}
|
|
7627
7708
|
},
|
|
7628
7709
|
handleOtherLayerChange(a) {
|
|
@@ -7642,7 +7723,7 @@ const es = {
|
|
|
7642
7723
|
ts: e.utc().format(),
|
|
7643
7724
|
wt: !0,
|
|
7644
7725
|
src: this.source
|
|
7645
|
-
}, r = await
|
|
7726
|
+
}, r = await oe.get(`${this.gateway}/api/arc/meteo/query`, {
|
|
7646
7727
|
params: t,
|
|
7647
7728
|
headers: {
|
|
7648
7729
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -7654,8 +7735,8 @@ const es = {
|
|
|
7654
7735
|
});
|
|
7655
7736
|
},
|
|
7656
7737
|
handle3dToggle(a) {
|
|
7657
|
-
var e, t, r, i, o, s,
|
|
7658
|
-
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)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (
|
|
7738
|
+
var e, t, r, i, o, s, l, h, d, c, p, f, m, b, y, u, v, g, L, z;
|
|
7739
|
+
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)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((s = this.viewport) == null ? void 0 : s.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((c = this.map) == null || c.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (f = this.map) != null && f.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((m = this.map) != null && m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((y = this.map) == null || y.moveLayer((b = this.viewport) == null ? void 0 : b.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) && ((g = this.map) != null && g.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((z = this.map) == null || z.moveLayer((L = this.viewport) == null ? void 0 : L.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
7659
7740
|
},
|
|
7660
7741
|
handleParticle(a) {
|
|
7661
7742
|
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.forEach((r) => {
|
|
@@ -7671,210 +7752,218 @@ const es = {
|
|
|
7671
7752
|
this.$emit("toggleVersion", Math.random());
|
|
7672
7753
|
}
|
|
7673
7754
|
}
|
|
7674
|
-
},
|
|
7755
|
+
}, Fi = {
|
|
7675
7756
|
key: 0,
|
|
7676
7757
|
className: "map-gl-home"
|
|
7677
7758
|
};
|
|
7678
|
-
function
|
|
7679
|
-
var
|
|
7680
|
-
const s =
|
|
7681
|
-
return t.map ? (
|
|
7682
|
-
k(s,
|
|
7759
|
+
function $i(a, e, t, r, i, o) {
|
|
7760
|
+
var te, G, Y, me, q, E, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe, Te, Ae, De, Me, We, je, Be, Ne;
|
|
7761
|
+
const s = P("IdmGlLayer"), l = P("IdmENC"), h = P("IdmSigWave"), d = P("IdmSwell"), c = P("IdmPrmsl"), p = P("IdmIceberg"), f = P("IdmTropicals"), m = P("IdmCurrents"), b = P("IdmCurrentParticle"), y = P("IdmWindBarb"), u = P("IdmWindParticle"), v = P("IdmPrecip3h"), g = P("IdmVisibility"), L = P("IdmWaterTemp"), z = P("IdmTemp"), w = P("IdmArctic"), A = P("IdmWarZone"), M = P("IdmGmdssArea"), W = P("IdmEcaZone"), O = P("IdmAlertZone"), F = P("IdmPort"), H = P("IdmLoadLine"), se = P("IdmTimezone"), ne = P("IdmVRA"), le = P("IdmSpecialArea"), ce = P("IdmTerminator"), he = P("IdmLatLng"), de = P("IdmMeasure"), pe = P("IdmPoint");
|
|
7762
|
+
return t.map ? (_(), C("div", Fi, [
|
|
7763
|
+
k(s, I({
|
|
7683
7764
|
ref: "layer",
|
|
7684
7765
|
map: t.map,
|
|
7685
7766
|
"toggle-version": t.toggleVersion,
|
|
7686
|
-
"map-projection": i.mapProjection
|
|
7767
|
+
"map-projection": i.mapProjection,
|
|
7768
|
+
showWindFeather: i.showWindFeather,
|
|
7769
|
+
showWindParticle: i.showWindParticle,
|
|
7770
|
+
showCurrentIsoband: i.showCurrentIsoband,
|
|
7771
|
+
showCurrentParticle: i.showCurrentParticle
|
|
7687
7772
|
}, a.$attrs, {
|
|
7688
7773
|
onWeather: o.handleWeatherLayerChange,
|
|
7689
7774
|
onOther: o.handleOtherLayerChange,
|
|
7690
|
-
onCoordinate: e[0] || (e[0] = (
|
|
7691
|
-
onMeasure: e[1] || (e[1] = (
|
|
7692
|
-
onPoint: e[2] || (e[2] = (
|
|
7775
|
+
onCoordinate: e[0] || (e[0] = (J) => i.showCoord = J),
|
|
7776
|
+
onMeasure: e[1] || (e[1] = (J) => i.showMeasure = J),
|
|
7777
|
+
onPoint: e[2] || (e[2] = (J) => i.showPoint = J),
|
|
7693
7778
|
on3d: o.handle3dToggle,
|
|
7694
7779
|
onHandleToggleVersion: o.handleToggleVersion
|
|
7695
|
-
}), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
7696
|
-
k(
|
|
7780
|
+
}), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
7781
|
+
k(l, I({
|
|
7697
7782
|
map: t.map,
|
|
7698
7783
|
token: t.token,
|
|
7699
|
-
enabled: (
|
|
7784
|
+
enabled: (te = i.otherLayers) == null ? void 0 : te.enc,
|
|
7700
7785
|
"toggle-version": t.toggleVersion
|
|
7701
7786
|
}, a.$attrs, {
|
|
7702
|
-
onEnc: e[3] || (e[3] = (
|
|
7787
|
+
onEnc: e[3] || (e[3] = (J) => i.enc = J)
|
|
7703
7788
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
7704
|
-
k(
|
|
7789
|
+
k(h, I({
|
|
7705
7790
|
map: t.map,
|
|
7706
|
-
"sig-wave": (
|
|
7707
|
-
"before-layer": t.beforeLayer
|
|
7708
|
-
|
|
7709
|
-
|
|
7791
|
+
"sig-wave": (G = i.weatherLayers) == null ? void 0 : G["sig-wave-height"],
|
|
7792
|
+
"before-layer": t.beforeLayer,
|
|
7793
|
+
activeWeatherLayers: i.activeWeatherLayers
|
|
7794
|
+
}, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "activeWeatherLayers"]),
|
|
7795
|
+
k(d, I({
|
|
7710
7796
|
map: t.map,
|
|
7711
|
-
swell: (
|
|
7712
|
-
"before-layer": t.beforeLayer
|
|
7713
|
-
|
|
7714
|
-
|
|
7797
|
+
swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
|
|
7798
|
+
"before-layer": t.beforeLayer,
|
|
7799
|
+
activeWeatherLayers: i.activeWeatherLayers
|
|
7800
|
+
}, a.$attrs), null, 16, ["map", "swell", "before-layer", "activeWeatherLayers"]),
|
|
7801
|
+
k(c, I({
|
|
7715
7802
|
map: t.map,
|
|
7716
|
-
prmsl: (
|
|
7803
|
+
prmsl: (me = i.weatherLayers) == null ? void 0 : me.prmsl,
|
|
7717
7804
|
"before-layer": t.beforeLayer,
|
|
7718
7805
|
"active-weather-layers": i.activeWeatherLayers
|
|
7719
7806
|
}, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
7720
|
-
k(
|
|
7807
|
+
k(p, I({
|
|
7721
7808
|
map: t.map,
|
|
7722
|
-
iceberg: (
|
|
7809
|
+
iceberg: (q = i.weatherLayers) == null ? void 0 : q.iceberg,
|
|
7723
7810
|
"before-layer": t.beforeLayer
|
|
7724
7811
|
}, a.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
7725
|
-
k(
|
|
7812
|
+
k(f, I({
|
|
7726
7813
|
map: t.map,
|
|
7727
7814
|
date: t.ts,
|
|
7728
|
-
tropicals: (
|
|
7815
|
+
tropicals: (E = i.weatherLayers) == null ? void 0 : E.tropicals,
|
|
7729
7816
|
"before-layer": t.beforeLayer
|
|
7730
7817
|
}, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
7731
|
-
k(
|
|
7818
|
+
k(m, I({
|
|
7732
7819
|
map: t.map,
|
|
7733
7820
|
"map-projection": i.mapProjection,
|
|
7734
|
-
current: (
|
|
7821
|
+
current: ($ = i.weatherLayers) == null ? void 0 : $.current,
|
|
7735
7822
|
"before-layer": t.beforeLayer,
|
|
7736
7823
|
"show-particle": i.showCurrentParticle,
|
|
7737
7824
|
"margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
|
|
7738
7825
|
"toggle-version": t.toggleVersion,
|
|
7739
7826
|
"weather-layers": i.weatherLayers
|
|
7740
7827
|
}, a.$attrs, {
|
|
7828
|
+
onShowCurrentIsoband: e[4] || (e[4] = (J) => i.showCurrentIsoband = J),
|
|
7741
7829
|
onParticle: o.handleParticle,
|
|
7742
7830
|
onHandleToggleVersion: o.handleToggleVersion
|
|
7743
7831
|
}), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
7744
|
-
k(
|
|
7832
|
+
k(b, I({
|
|
7745
7833
|
viewport: i.viewport,
|
|
7746
|
-
factor: (
|
|
7834
|
+
factor: (ue = i.weatherLayers) == null ? void 0 : ue["current-particle"],
|
|
7747
7835
|
"before-layer": t.beforeLayer,
|
|
7748
7836
|
"toggle-version": t.toggleVersion
|
|
7749
7837
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7750
|
-
k(
|
|
7838
|
+
k(y, I({
|
|
7751
7839
|
ref: "windBarb",
|
|
7752
7840
|
map: t.map,
|
|
7753
7841
|
"map-projection": i.mapProjection,
|
|
7754
|
-
wind: (
|
|
7755
|
-
current: (
|
|
7842
|
+
wind: (Q = i.weatherLayers) == null ? void 0 : Q.wind,
|
|
7843
|
+
current: (ye = i.weatherLayers) == null ? void 0 : ye.current,
|
|
7756
7844
|
"before-layer": t.beforeLayer,
|
|
7757
7845
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
7758
7846
|
"show-particle": i.showWindParticle
|
|
7759
7847
|
}, a.$attrs, {
|
|
7760
7848
|
"toggle-version": t.toggleVersion,
|
|
7761
7849
|
"weather-layers": i.weatherLayers,
|
|
7762
|
-
onParticle: o.handleParticle
|
|
7850
|
+
onParticle: o.handleParticle,
|
|
7851
|
+
onShowWindFeather: e[5] || (e[5] = (J) => i.showWindFeather = J)
|
|
7763
7852
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
|
|
7764
|
-
k(
|
|
7853
|
+
k(u, I({
|
|
7765
7854
|
viewport: i.viewport,
|
|
7766
|
-
factor: (
|
|
7855
|
+
factor: (ae = i.weatherLayers) == null ? void 0 : ae["wind-particle"],
|
|
7767
7856
|
"before-layer": t.beforeLayer,
|
|
7768
7857
|
"toggle-version": t.toggleVersion
|
|
7769
7858
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7770
|
-
k(v,
|
|
7859
|
+
k(v, I({
|
|
7771
7860
|
viewport: i.viewport,
|
|
7772
|
-
factor: (
|
|
7861
|
+
factor: (ie = i.weatherLayers) == null ? void 0 : ie.precip3h,
|
|
7773
7862
|
"before-layer": t.beforeLayer,
|
|
7774
7863
|
"toggle-version": t.toggleVersion
|
|
7775
7864
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7776
|
-
k(
|
|
7865
|
+
k(g, I({
|
|
7777
7866
|
viewport: i.viewport,
|
|
7778
|
-
factor: (
|
|
7867
|
+
factor: (re = i.weatherLayers) == null ? void 0 : re.visibility,
|
|
7779
7868
|
"before-layer": t.beforeLayer,
|
|
7780
7869
|
"toggle-version": t.toggleVersion
|
|
7781
7870
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7782
|
-
k(
|
|
7871
|
+
k(L, I({
|
|
7783
7872
|
viewport: i.viewport,
|
|
7784
|
-
factor: (
|
|
7873
|
+
factor: (be = i.weatherLayers) == null ? void 0 : be["water-temp"],
|
|
7785
7874
|
"before-layer": t.beforeLayer,
|
|
7786
7875
|
"toggle-version": t.toggleVersion
|
|
7787
7876
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7788
|
-
k(
|
|
7877
|
+
k(z, I({
|
|
7789
7878
|
viewport: i.viewport,
|
|
7790
|
-
factor: (
|
|
7879
|
+
factor: (ve = i.weatherLayers) == null ? void 0 : ve.temp,
|
|
7791
7880
|
"before-layer": t.beforeLayer,
|
|
7792
7881
|
"toggle-version": t.toggleVersion
|
|
7793
7882
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7794
|
-
k(w,
|
|
7883
|
+
k(w, I({
|
|
7795
7884
|
viewport: i.viewport,
|
|
7796
|
-
factor: (
|
|
7885
|
+
factor: (we = i.weatherLayers) == null ? void 0 : we.arctic,
|
|
7797
7886
|
"before-layer": t.beforeLayer,
|
|
7798
7887
|
"toggle-version": t.toggleVersion
|
|
7799
7888
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7800
|
-
k(A,
|
|
7889
|
+
k(A, I({
|
|
7801
7890
|
map: t.map,
|
|
7802
|
-
zone: (
|
|
7891
|
+
zone: (Le = i.otherLayers) == null ? void 0 : Le["war-zones"],
|
|
7803
7892
|
"before-layer": t.beforeLayer
|
|
7804
7893
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7805
|
-
k(M,
|
|
7894
|
+
k(M, I({
|
|
7806
7895
|
map: t.map,
|
|
7807
|
-
area: (
|
|
7896
|
+
area: (xe = i.otherLayers) == null ? void 0 : xe["gmdss-areas"],
|
|
7808
7897
|
"before-layer": t.beforeLayer
|
|
7809
7898
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7810
|
-
k(
|
|
7899
|
+
k(W, I({
|
|
7811
7900
|
map: t.map,
|
|
7812
|
-
zone: (
|
|
7901
|
+
zone: (Te = i.otherLayers) == null ? void 0 : Te["eca-zones"],
|
|
7813
7902
|
"before-layer": t.beforeLayer
|
|
7814
7903
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7815
|
-
k(
|
|
7904
|
+
k(O, I({
|
|
7816
7905
|
map: t.map,
|
|
7817
|
-
zone: (
|
|
7906
|
+
zone: (Ae = i.otherLayers) == null ? void 0 : Ae["alert-zones"],
|
|
7818
7907
|
"before-layer": t.beforeLayer
|
|
7819
7908
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7820
|
-
k(
|
|
7909
|
+
k(F, I({
|
|
7821
7910
|
map: t.map,
|
|
7822
|
-
port: (
|
|
7911
|
+
port: (De = i.otherLayers) == null ? void 0 : De.ports,
|
|
7823
7912
|
"before-layer": t.beforeLayer
|
|
7824
7913
|
}, a.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
7825
|
-
k(
|
|
7914
|
+
k(H, I({
|
|
7826
7915
|
map: t.map,
|
|
7827
|
-
line: (
|
|
7916
|
+
line: (Me = i.otherLayers) == null ? void 0 : Me["load-lines"],
|
|
7828
7917
|
"before-layer": t.beforeLayer
|
|
7829
7918
|
}, a.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
7830
|
-
k(
|
|
7919
|
+
k(se, I({
|
|
7831
7920
|
map: t.map,
|
|
7832
|
-
zone: (
|
|
7921
|
+
zone: (We = i.otherLayers) == null ? void 0 : We["time-zones"],
|
|
7833
7922
|
"before-layer": t.beforeLayer
|
|
7834
7923
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7835
|
-
k(
|
|
7924
|
+
k(ne, I({
|
|
7836
7925
|
map: t.map,
|
|
7837
|
-
area: (
|
|
7926
|
+
area: (je = i.otherLayers) == null ? void 0 : je["voluntary-reporting-area"],
|
|
7838
7927
|
"before-layer": t.beforeLayer
|
|
7839
7928
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7840
|
-
k(
|
|
7929
|
+
k(le, I({
|
|
7841
7930
|
map: t.map,
|
|
7842
|
-
area: (
|
|
7931
|
+
area: (Be = i.otherLayers) == null ? void 0 : Be["special-area"],
|
|
7843
7932
|
"before-layer": t.beforeLayer
|
|
7844
7933
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7845
|
-
k(
|
|
7934
|
+
k(ce, I({
|
|
7846
7935
|
map: t.map,
|
|
7847
|
-
area: (
|
|
7936
|
+
area: (Ne = i.otherLayers) == null ? void 0 : Ne["day-night"]
|
|
7848
7937
|
}, a.$attrs), null, 16, ["map", "area"]),
|
|
7849
|
-
k(
|
|
7938
|
+
k(he, I({
|
|
7850
7939
|
map: t.map,
|
|
7851
7940
|
show: i.showCoord,
|
|
7852
7941
|
"toggle-version": t.toggleVersion
|
|
7853
7942
|
}, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
7854
|
-
k(
|
|
7943
|
+
k(de, I({
|
|
7855
7944
|
map: t.map,
|
|
7856
7945
|
show: i.showMeasure
|
|
7857
7946
|
}, a.$attrs), null, 16, ["map", "show"]),
|
|
7858
|
-
k(
|
|
7947
|
+
k(pe, I({
|
|
7859
7948
|
map: t.map,
|
|
7860
7949
|
show: i.showPoint,
|
|
7861
7950
|
meteo: i.meteo
|
|
7862
7951
|
}, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
|
|
7863
|
-
])) :
|
|
7952
|
+
])) : B("", !0);
|
|
7864
7953
|
}
|
|
7865
|
-
const
|
|
7954
|
+
const Vi = /* @__PURE__ */ T(Oi, [["render", $i]]), qi = {
|
|
7866
7955
|
install(a) {
|
|
7867
|
-
a.component("MapboxGL",
|
|
7956
|
+
a.component("MapboxGL", Vi), a.component("TropicalGL", Fe), a.component("LatLngGL", $e);
|
|
7868
7957
|
}
|
|
7869
7958
|
};
|
|
7870
7959
|
export {
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7960
|
+
$e as LatLngGL,
|
|
7961
|
+
Vi as MapboxGL,
|
|
7962
|
+
qi as MapboxGLPlugin,
|
|
7963
|
+
wt as MapboxHelper,
|
|
7875
7964
|
V as ParticleSchema,
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
|
|
7965
|
+
Fe as TropicalGL,
|
|
7966
|
+
Re as Viewport,
|
|
7967
|
+
fe as WebGL,
|
|
7879
7968
|
N as WebGLSchema
|
|
7880
7969
|
};
|