@idmwx/idmui-gl3 4.4.7 → 4.4.8
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 +1146 -1088
- package/dist/index.umd.cjs +13 -13
- package/dist/mapbox/src/components/layer.vue.d.ts +46 -6
- 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
|
-
this.weatherLayers.some((e) => e.key === a.key) ?
|
|
623
|
+
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 = !a.collected, 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), 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 = ["onClick"], et = { class: "header-box flex-between" }, tt = { class: "weather-layers card-bg" }, at = { class: "layers-body" }, it = ["onClick"], rt = ["onClick"], ot = {
|
|
633
652
|
key: 0,
|
|
634
653
|
class: "iconfont bookmark active"
|
|
635
|
-
},
|
|
654
|
+
}, st = {
|
|
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
|
+
}, nt = { class: "other-layers card-bg" }, lt = { class: "layers-body" }, ct = ["onClick"], ht = { class: "flex-start" }, dt = { class: "source-layers card-bg" }, pt = { class: "layers-body" };
|
|
658
|
+
function mt(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: j(["active-layers flex-between", i.autoActive ? "active" : ""]),
|
|
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", null, [
|
|
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, Ke))), 128))
|
|
769
|
+
]),
|
|
770
|
+
n("div", {
|
|
771
|
+
class: "switch flex-center",
|
|
772
|
+
style: { "margin-top": "4px", "align-self": "flex-start" },
|
|
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
|
+
], 6)) : 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", et, [
|
|
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", tt, [
|
|
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", at, [
|
|
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, it),
|
|
824
|
+
n("div", {
|
|
825
|
+
onClick: (p) => o.handleWeatherLayerCollect(c)
|
|
785
826
|
}, [
|
|
786
|
-
|
|
787
|
-
], 8,
|
|
827
|
+
c.collected ? (_(), C("i", ot, "")) : (_(), C("i", st, ""))
|
|
828
|
+
], 8, rt)
|
|
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", nt, [
|
|
841
|
+
e[22] || (e[22] = n("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
842
|
+
n("div", lt, [
|
|
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", ht, [
|
|
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, ct))), 128))
|
|
806
856
|
])
|
|
807
857
|
]),
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
k(
|
|
858
|
+
n("div", dt, [
|
|
859
|
+
e[25] || (e[25] = n("span", { class: "layers-title" }, "Forecast Model", -1)),
|
|
860
|
+
n("div", pt, [
|
|
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 ut = /* @__PURE__ */ T(Xe, [["render", mt]]);
|
|
892
|
+
const yt = {
|
|
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
|
+
}, ft = { key: 0 };
|
|
1035
|
+
function gt(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", ft, [
|
|
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 bt = /* @__PURE__ */ T(yt, [["render", gt]]);
|
|
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 vt {
|
|
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 wt = {
|
|
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
|
+
}, Lt = { key: 0 };
|
|
3298
|
+
function xt(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", Lt, [
|
|
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 _t = /* @__PURE__ */ T(wt, [["render", xt], ["__scopeId", "data-v-64887571"]]);
|
|
3317
|
+
const Ct = {
|
|
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
|
+
}, kt = { key: 0 };
|
|
3468
|
+
function St(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", kt, [
|
|
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 Pt = /* @__PURE__ */ T(Ct, [["render", St]]);
|
|
3494
|
+
const zt = {
|
|
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
|
+
}, Tt = { key: 0 };
|
|
3652
|
+
function Et(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", Tt, [
|
|
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 It = /* @__PURE__ */ T(zt, [["render", Et], ["__scopeId", "data-v-6d4fd206"]]), Rt = {
|
|
3620
3670
|
name: "IdmSigWave",
|
|
3621
3671
|
props: {
|
|
3622
3672
|
map: {
|
|
@@ -3634,7 +3684,7 @@ const ja = /* @__PURE__ */ T(Sa, [["render", $a], ["__scopeId", "data-v-6d4fd206
|
|
|
3634
3684
|
source: "sig-wave-source",
|
|
3635
3685
|
heightLayer: "sig-wave-height-layer",
|
|
3636
3686
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
3637
|
-
empty:
|
|
3687
|
+
empty: x.featureCollection([])
|
|
3638
3688
|
};
|
|
3639
3689
|
},
|
|
3640
3690
|
watch: {
|
|
@@ -3672,13 +3722,13 @@ const ja = /* @__PURE__ */ T(Sa, [["render", $a], ["__scopeId", "data-v-6d4fd206
|
|
|
3672
3722
|
"fill-color": [
|
|
3673
3723
|
"step",
|
|
3674
3724
|
["get", "val"],
|
|
3675
|
-
"rgba(
|
|
3725
|
+
"rgba(186,247,237,0.5)",
|
|
3676
3726
|
3,
|
|
3677
|
-
"
|
|
3727
|
+
"rgba(93,235,185,0.8)",
|
|
3678
3728
|
4,
|
|
3679
|
-
"
|
|
3729
|
+
"rgba(101,252,149,0.9)",
|
|
3680
3730
|
5,
|
|
3681
|
-
"#
|
|
3731
|
+
"#b3ff6b",
|
|
3682
3732
|
6,
|
|
3683
3733
|
"#fee600",
|
|
3684
3734
|
7,
|
|
@@ -3727,10 +3777,10 @@ const ja = /* @__PURE__ */ T(Sa, [["render", $a], ["__scopeId", "data-v-6d4fd206
|
|
|
3727
3777
|
}
|
|
3728
3778
|
}
|
|
3729
3779
|
};
|
|
3730
|
-
function
|
|
3731
|
-
return
|
|
3780
|
+
function At(a, e, t, r, i, o) {
|
|
3781
|
+
return _(), C("div");
|
|
3732
3782
|
}
|
|
3733
|
-
const
|
|
3783
|
+
const Dt = /* @__PURE__ */ T(Rt, [["render", At]]), Mt = {
|
|
3734
3784
|
name: "IdmSwell",
|
|
3735
3785
|
props: {
|
|
3736
3786
|
map: {
|
|
@@ -3749,7 +3799,7 @@ const Ba = /* @__PURE__ */ T(Wa, [["render", Na]]), Oa = {
|
|
|
3749
3799
|
directionLayer: "swell-direction-layer",
|
|
3750
3800
|
heightLayer: "swell-height-layer",
|
|
3751
3801
|
heightLabelLayer: "swell-height-label-layer",
|
|
3752
|
-
empty:
|
|
3802
|
+
empty: x.featureCollection([])
|
|
3753
3803
|
};
|
|
3754
3804
|
},
|
|
3755
3805
|
watch: {
|
|
@@ -3828,7 +3878,7 @@ const Ba = /* @__PURE__ */ T(Wa, [["render", Na]]), Oa = {
|
|
|
3828
3878
|
],
|
|
3829
3879
|
"text-halo-width": 4
|
|
3830
3880
|
}
|
|
3831
|
-
}), this.map.addLayer(
|
|
3881
|
+
}, this.beforeLayer), this.map.addLayer(
|
|
3832
3882
|
{
|
|
3833
3883
|
id: this.directionLayer,
|
|
3834
3884
|
type: "symbol",
|
|
@@ -3860,7 +3910,9 @@ const Ba = /* @__PURE__ */ T(Wa, [["render", Na]]), Oa = {
|
|
|
3860
3910
|
}
|
|
3861
3911
|
},
|
|
3862
3912
|
this.beforeLayer
|
|
3863
|
-
), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[swell] add elapsed: ", i, ", total: ", r += i))
|
|
3913
|
+
), i = (/* @__PURE__ */ new Date()).valueOf() - (t + r), console.log("[swell] add elapsed: ", i, ", total: ", r += i), setTimeout(() => {
|
|
3914
|
+
this.map.moveLayer("country-boundaries", null);
|
|
3915
|
+
}, 100));
|
|
3864
3916
|
}
|
|
3865
3917
|
},
|
|
3866
3918
|
handleClear() {
|
|
@@ -3868,10 +3920,10 @@ const Ba = /* @__PURE__ */ T(Wa, [["render", Na]]), Oa = {
|
|
|
3868
3920
|
}
|
|
3869
3921
|
}
|
|
3870
3922
|
};
|
|
3871
|
-
function
|
|
3872
|
-
return
|
|
3923
|
+
function jt(a, e, t, r, i, o) {
|
|
3924
|
+
return _(), C("div");
|
|
3873
3925
|
}
|
|
3874
|
-
const
|
|
3926
|
+
const Wt = /* @__PURE__ */ T(Mt, [["render", jt]]), Bt = {
|
|
3875
3927
|
name: "IdmPrmsl",
|
|
3876
3928
|
props: {
|
|
3877
3929
|
map: {
|
|
@@ -3893,7 +3945,7 @@ const Va = /* @__PURE__ */ T(Oa, [["render", Fa]]), Ua = {
|
|
|
3893
3945
|
layer: "prmsl-layer",
|
|
3894
3946
|
labelLayer: "prmsl-label-layer",
|
|
3895
3947
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
3896
|
-
empty:
|
|
3948
|
+
empty: x.featureCollection([])
|
|
3897
3949
|
};
|
|
3898
3950
|
},
|
|
3899
3951
|
watch: {
|
|
@@ -3996,10 +4048,10 @@ const Va = /* @__PURE__ */ T(Oa, [["render", Fa]]), Ua = {
|
|
|
3996
4048
|
}
|
|
3997
4049
|
}
|
|
3998
4050
|
};
|
|
3999
|
-
function
|
|
4000
|
-
return
|
|
4051
|
+
function Nt(a, e, t, r, i, o) {
|
|
4052
|
+
return _(), C("div");
|
|
4001
4053
|
}
|
|
4002
|
-
const
|
|
4054
|
+
const Ot = /* @__PURE__ */ T(Bt, [["render", Nt]]), Ft = {
|
|
4003
4055
|
name: "IdmIceberg",
|
|
4004
4056
|
props: {
|
|
4005
4057
|
map: {
|
|
@@ -4016,7 +4068,7 @@ const Ha = /* @__PURE__ */ T(Ua, [["render", Za]]), Ga = {
|
|
|
4016
4068
|
return {
|
|
4017
4069
|
source: "iceberg-source",
|
|
4018
4070
|
layer: "iceberg-layer",
|
|
4019
|
-
empty:
|
|
4071
|
+
empty: x.featureCollection([])
|
|
4020
4072
|
};
|
|
4021
4073
|
},
|
|
4022
4074
|
watch: {
|
|
@@ -4056,11 +4108,11 @@ const Ha = /* @__PURE__ */ T(Ua, [["render", Za]]), Ga = {
|
|
|
4056
4108
|
}
|
|
4057
4109
|
}
|
|
4058
4110
|
};
|
|
4059
|
-
function
|
|
4060
|
-
return
|
|
4111
|
+
function $t(a, e, t, r, i, o) {
|
|
4112
|
+
return _(), C("div");
|
|
4061
4113
|
}
|
|
4062
|
-
const
|
|
4063
|
-
const
|
|
4114
|
+
const Vt = /* @__PURE__ */ T(Ft, [["render", $t]]);
|
|
4115
|
+
const Ut = {
|
|
4064
4116
|
name: "IdmTropicals",
|
|
4065
4117
|
props: {
|
|
4066
4118
|
map: {
|
|
@@ -4080,7 +4132,7 @@ const Ya = {
|
|
|
4080
4132
|
emits: ["tropical", "tropicalProbability"],
|
|
4081
4133
|
data() {
|
|
4082
4134
|
return {
|
|
4083
|
-
helper:
|
|
4135
|
+
helper: Ce,
|
|
4084
4136
|
source: "tropicals-source",
|
|
4085
4137
|
clusterSource: "tropicals-cluster-source",
|
|
4086
4138
|
historyLayer: "tropicals-history-layer",
|
|
@@ -4098,9 +4150,9 @@ const Ya = {
|
|
|
4098
4150
|
showTropicals: !1,
|
|
4099
4151
|
activeTropicals: void 0,
|
|
4100
4152
|
activeTropicalsMarker: void 0,
|
|
4101
|
-
empty:
|
|
4153
|
+
empty: x.featureCollection([]),
|
|
4102
4154
|
circleSource: "circle-source",
|
|
4103
|
-
circleSourceData:
|
|
4155
|
+
circleSourceData: x.featureCollection([]),
|
|
4104
4156
|
circleLayer: "tropical-circle-layer"
|
|
4105
4157
|
};
|
|
4106
4158
|
},
|
|
@@ -4147,29 +4199,29 @@ const Ya = {
|
|
|
4147
4199
|
var r, i;
|
|
4148
4200
|
const a = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = Z().utc().hour(), t = [];
|
|
4149
4201
|
a.forEach((o) => {
|
|
4150
|
-
var s,
|
|
4151
|
-
(s = o.properties) != null && s.name && !t.includes((
|
|
4202
|
+
var s, l, h;
|
|
4203
|
+
(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
4204
|
}), t.forEach((o) => {
|
|
4153
4205
|
var d;
|
|
4154
|
-
let s = 0,
|
|
4155
|
-
const
|
|
4156
|
-
var
|
|
4157
|
-
return ((
|
|
4206
|
+
let s = 0, l;
|
|
4207
|
+
const h = a.filter((c) => {
|
|
4208
|
+
var p, f;
|
|
4209
|
+
return ((f = (p = c.properties) == null ? void 0 : p.category) == null ? void 0 : f.split("-")[0]) === o;
|
|
4158
4210
|
});
|
|
4159
|
-
(d =
|
|
4160
|
-
var
|
|
4161
|
-
return ((
|
|
4162
|
-
})[0]) == null || d.properties.model,
|
|
4163
|
-
var
|
|
4164
|
-
((
|
|
4165
|
-
}),
|
|
4166
|
-
var
|
|
4167
|
-
if (((
|
|
4168
|
-
|
|
4169
|
-
const
|
|
4170
|
-
|
|
4211
|
+
(d = h.filter((c) => {
|
|
4212
|
+
var p, f;
|
|
4213
|
+
return ((p = c.geometry) == null ? void 0 : p.type) === "LineString" && ((f = c.properties) == null ? void 0 : f.type) === "forecast";
|
|
4214
|
+
})[0]) == null || d.properties.model, h.forEach((c, p) => {
|
|
4215
|
+
var f, m, b, y, u, v;
|
|
4216
|
+
((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);
|
|
4217
|
+
}), h.map((c, p) => {
|
|
4218
|
+
var f, m, b, y, u, v, g;
|
|
4219
|
+
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") {
|
|
4220
|
+
c.properties.format = Z(c.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
4221
|
+
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");
|
|
4222
|
+
c.properties.showHistoryLabel = L || p === s, c.properties.showNameLabel = p === s, c.properties.name = o;
|
|
4171
4223
|
}
|
|
4172
|
-
return
|
|
4224
|
+
return c;
|
|
4173
4225
|
});
|
|
4174
4226
|
}), this.handleInit();
|
|
4175
4227
|
},
|
|
@@ -4204,16 +4256,16 @@ const Ya = {
|
|
|
4204
4256
|
));
|
|
4205
4257
|
},
|
|
4206
4258
|
handleRender() {
|
|
4207
|
-
var a, e, t, r, i, o, s,
|
|
4259
|
+
var a, e, t, r, i, o, s, l, h, d;
|
|
4208
4260
|
if (!this.map)
|
|
4209
4261
|
setTimeout(() => {
|
|
4210
4262
|
this.handleRender();
|
|
4211
4263
|
}, 500);
|
|
4212
4264
|
else {
|
|
4213
4265
|
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),
|
|
4266
|
+
const p = (/* @__PURE__ */ new Date()).valueOf();
|
|
4267
|
+
let f = 0, m = 0;
|
|
4268
|
+
(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
4269
|
type: "geojson",
|
|
4218
4270
|
data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
|
|
4219
4271
|
}), this.map.addLayer({
|
|
@@ -4310,9 +4362,9 @@ const Ya = {
|
|
|
4310
4362
|
],
|
|
4311
4363
|
"text-halo-width": 4
|
|
4312
4364
|
}
|
|
4313
|
-
}),
|
|
4365
|
+
}), 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
4366
|
type: "geojson",
|
|
4315
|
-
data: (
|
|
4367
|
+
data: (h = this.tropicals) != null && h.active ? (d = this.tropicals) == null ? void 0 : d.data : this.empty
|
|
4316
4368
|
// cluster: true,
|
|
4317
4369
|
// clusterRadius: 10, // 聚合半径
|
|
4318
4370
|
}), this.map.addLayer({
|
|
@@ -4427,13 +4479,11 @@ const Ya = {
|
|
|
4427
4479
|
"text-halo-color": "#0033ff",
|
|
4428
4480
|
"text-halo-width": 4
|
|
4429
4481
|
}
|
|
4430
|
-
}),
|
|
4482
|
+
}), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m));
|
|
4431
4483
|
}
|
|
4432
4484
|
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();
|
|
4485
|
+
const c = Oe.interpolate(this.tropicals, 1);
|
|
4486
|
+
this.interpolateData = JSON.parse(JSON.stringify(c)), this.interpolateData.filter((p) => p.properties.name === "kristy" && p.properties.model === "ecmwf"), this.handleDateChange();
|
|
4437
4487
|
}
|
|
4438
4488
|
},
|
|
4439
4489
|
handleClear() {
|
|
@@ -4441,14 +4491,14 @@ const Ya = {
|
|
|
4441
4491
|
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
4492
|
},
|
|
4443
4493
|
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(
|
|
4494
|
+
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;
|
|
4495
|
+
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) {
|
|
4496
|
+
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]);
|
|
4497
|
+
me.forEach((E) => {
|
|
4498
|
+
q.features.push(E);
|
|
4499
|
+
}), (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
4500
|
type: "geojson",
|
|
4451
|
-
data:
|
|
4501
|
+
data: q
|
|
4452
4502
|
}), (o = this.map) == null || o.addLayer({
|
|
4453
4503
|
id: this.interpolateLineLayer,
|
|
4454
4504
|
type: "line",
|
|
@@ -4460,17 +4510,17 @@ const Ya = {
|
|
|
4460
4510
|
"line-width": 1
|
|
4461
4511
|
}
|
|
4462
4512
|
})), this.interpolateMarkers = [];
|
|
4463
|
-
for (const
|
|
4464
|
-
if (!
|
|
4465
|
-
let
|
|
4466
|
-
((
|
|
4467
|
-
const
|
|
4513
|
+
for (const E of Y)
|
|
4514
|
+
if (!E.properties.disabled) {
|
|
4515
|
+
let $ = "#f44336";
|
|
4516
|
+
((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";
|
|
4517
|
+
const ue = `<svg t="1719918955501"
|
|
4468
4518
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
4469
4519
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
4470
4520
|
<path
|
|
4471
4521
|
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="${
|
|
4522
|
+
fill="${$}" p-id="18383"></path>
|
|
4523
|
+
<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
4524
|
p-id="18384"></path>
|
|
4475
4525
|
<path
|
|
4476
4526
|
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 +4528,60 @@ const Ya = {
|
|
|
4478
4528
|
<path
|
|
4479
4529
|
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
4530
|
fill="#ffffff" p-id="18386"></path>
|
|
4481
|
-
</svg>`,
|
|
4482
|
-
|
|
4483
|
-
const
|
|
4484
|
-
if (this.interpolateMarkers.push(
|
|
4485
|
-
const
|
|
4486
|
-
(
|
|
4487
|
-
|
|
4488
|
-
), (
|
|
4489
|
-
|
|
4490
|
-
), (
|
|
4491
|
-
|
|
4531
|
+
</svg>`, Q = document.createElement("div");
|
|
4532
|
+
Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ue}</div>`;
|
|
4533
|
+
const ye = new ee.Marker(Q).setLngLat(E.geometry.coordinates).addTo(this.map);
|
|
4534
|
+
if (this.interpolateMarkers.push(ye), (se = E.properties) != null && se.showCircle) {
|
|
4535
|
+
const ae = { radius: 100, coordinates: E.geometry.coordinates }, ie = { radius: 200, coordinates: E.geometry.coordinates }, re = { radius: 500, coordinates: E.geometry.coordinates };
|
|
4536
|
+
(ne = this.circleSourceData) == null || ne.features.push(
|
|
4537
|
+
x.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4538
|
+
), (le = this.circleSourceData) == null || le.features.push(
|
|
4539
|
+
x.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4540
|
+
), (ce = this.circleSourceData) == null || ce.features.push(
|
|
4541
|
+
x.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4492
4542
|
);
|
|
4493
4543
|
}
|
|
4494
|
-
(
|
|
4544
|
+
(de = (he = this.map) == null ? void 0 : he.getSource(this.circleSource)) == null || de.setData(this.circleSourceData);
|
|
4495
4545
|
}
|
|
4496
4546
|
} else
|
|
4497
|
-
(
|
|
4547
|
+
(pe = this.map) != null && pe.getSource(this.interpolateSource) && ((te = this.map) == null || te.getSource(this.interpolateSource).setData(this.empty));
|
|
4498
4548
|
},
|
|
4499
4549
|
handleClick(a) {
|
|
4500
|
-
var o, s,
|
|
4550
|
+
var o, s, l, h, d, c, p, f;
|
|
4501
4551
|
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
|
|
4552
|
+
(m) => {
|
|
4553
|
+
var b;
|
|
4554
|
+
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
4555
|
}
|
|
4506
4556
|
);
|
|
4507
|
-
t.sort((
|
|
4508
|
-
var
|
|
4509
|
-
return ((
|
|
4557
|
+
t.sort((m, b) => {
|
|
4558
|
+
var y, u, v, g;
|
|
4559
|
+
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
4560
|
});
|
|
4511
|
-
const r = (
|
|
4512
|
-
(
|
|
4513
|
-
var
|
|
4514
|
-
return
|
|
4561
|
+
const r = (h = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : h.features.filter(
|
|
4562
|
+
(m) => {
|
|
4563
|
+
var b;
|
|
4564
|
+
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
4565
|
}
|
|
4516
4566
|
);
|
|
4517
4567
|
this.activeTropicals = {
|
|
4518
4568
|
name: (d = e == null ? void 0 : e.properties) == null ? void 0 : d.name,
|
|
4519
|
-
forecasts: t.map((
|
|
4520
|
-
history: (
|
|
4521
|
-
showCircle: (
|
|
4569
|
+
forecasts: t.map((m) => m.properties),
|
|
4570
|
+
history: (c = r[0]) == null ? void 0 : c.properties,
|
|
4571
|
+
showCircle: (f = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
|
|
4522
4572
|
}, this.showTropicals = !0;
|
|
4523
4573
|
const i = document.getElementById("active-tropical");
|
|
4524
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new
|
|
4574
|
+
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
4575
|
},
|
|
4526
4576
|
handleForecastToggle(a) {
|
|
4527
|
-
var r, i, o, s,
|
|
4577
|
+
var r, i, o, s, l, h;
|
|
4528
4578
|
a.disabled = !a.disabled;
|
|
4529
4579
|
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
4580
|
t.forEach((d) => {
|
|
4531
4581
|
d.properties.category === e && (d.properties.disabled = a.disabled);
|
|
4532
4582
|
}), this.interpolateData.forEach((d) => {
|
|
4533
4583
|
d.properties.category === e && (d.properties.disabled = a.disabled);
|
|
4534
|
-
}), (s = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || s.setData(
|
|
4584
|
+
}), (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
4585
|
},
|
|
4536
4586
|
handleStrikeProbability(a) {
|
|
4537
4587
|
this.$emit("tropicalProbability", a);
|
|
@@ -4575,8 +4625,8 @@ const Ya = {
|
|
|
4575
4625
|
se: r.r10se >= 0 ? r.r10se : void 0,
|
|
4576
4626
|
sw: r.r10sw >= 0 ? r.r10sw : void 0,
|
|
4577
4627
|
nw: r.r10nw >= 0 ? r.r10nw : void 0
|
|
4578
|
-
},
|
|
4579
|
-
e.push(
|
|
4628
|
+
}, l = this.handleComputeArc(t.geometry.coordinates, s, { ...t.properties, level: 10 });
|
|
4629
|
+
e.push(l);
|
|
4580
4630
|
}
|
|
4581
4631
|
return e;
|
|
4582
4632
|
},
|
|
@@ -4584,108 +4634,108 @@ const Ya = {
|
|
|
4584
4634
|
var o;
|
|
4585
4635
|
const r = [];
|
|
4586
4636
|
for (const s in e) {
|
|
4587
|
-
const
|
|
4588
|
-
let
|
|
4637
|
+
const l = e[s] ?? 0;
|
|
4638
|
+
let h;
|
|
4589
4639
|
switch (s) {
|
|
4590
4640
|
case "ne":
|
|
4591
|
-
|
|
4641
|
+
h = x.lineArc(a, l * 1.852, 0, 90, { steps: l > 0 ? 64 : 1 });
|
|
4592
4642
|
break;
|
|
4593
4643
|
case "se":
|
|
4594
|
-
|
|
4644
|
+
h = x.lineArc(a, l * 1.852, 90, 180, { steps: l > 0 ? 64 : 1 });
|
|
4595
4645
|
break;
|
|
4596
4646
|
case "sw":
|
|
4597
|
-
|
|
4647
|
+
h = x.lineArc(a, l * 1.852, 180, 270, { steps: l > 0 ? 64 : 1 });
|
|
4598
4648
|
break;
|
|
4599
4649
|
case "nw":
|
|
4600
|
-
|
|
4650
|
+
h = x.lineArc(a, l * 1.852, 270, 360, { steps: l > 0 ? 64 : 1 });
|
|
4601
4651
|
break;
|
|
4602
4652
|
}
|
|
4603
|
-
r.push(...(o =
|
|
4653
|
+
r.push(...(o = h == null ? void 0 : h.geometry) == null ? void 0 : o.coordinates);
|
|
4604
4654
|
}
|
|
4605
|
-
const i =
|
|
4606
|
-
return
|
|
4655
|
+
const i = x.lineString(r);
|
|
4656
|
+
return x.lineToPolygon(i, { properties: t });
|
|
4607
4657
|
}
|
|
4608
4658
|
}
|
|
4609
|
-
},
|
|
4659
|
+
}, Zt = {
|
|
4610
4660
|
id: "active-tropical",
|
|
4611
4661
|
class: "active-tropical"
|
|
4612
|
-
},
|
|
4662
|
+
}, Ht = { class: "header-box" }, Gt = { class: "main" }, Jt = { key: 0 }, Xt = { class: "sub" }, Yt = {
|
|
4613
4663
|
id: "meteoBox",
|
|
4614
4664
|
class: "main-box"
|
|
4615
|
-
},
|
|
4665
|
+
}, qt = { class: "content" }, Qt = { class: "row" }, Kt = {
|
|
4616
4666
|
class: "col col-left",
|
|
4617
4667
|
style: { "justify-content": "flex-start" }
|
|
4618
|
-
},
|
|
4668
|
+
}, ea = {
|
|
4619
4669
|
class: "col col-right",
|
|
4620
4670
|
style: { "justify-content": "flex-start" }
|
|
4621
|
-
},
|
|
4671
|
+
}, ta = { class: "row" }, aa = {
|
|
4622
4672
|
class: "col col-24",
|
|
4623
4673
|
style: { "justify-content": "flex-start" }
|
|
4624
|
-
},
|
|
4625
|
-
function
|
|
4626
|
-
var s,
|
|
4627
|
-
return
|
|
4628
|
-
|
|
4629
|
-
|
|
4674
|
+
}, ia = { class: "forecast-models" }, ra = ["onClick"], oa = { class: "more" };
|
|
4675
|
+
function sa(a, e, t, r, i, o) {
|
|
4676
|
+
var s, l, h, d, c, p, f, m, b, y, u, v, g, L, z;
|
|
4677
|
+
return Pe((_(), C("div", Zt, [
|
|
4678
|
+
n("div", Ht, [
|
|
4679
|
+
n("div", {
|
|
4630
4680
|
class: "iconfont close-btn",
|
|
4631
4681
|
onClick: e[0] || (e[0] = (w) => i.showTropicals = !1)
|
|
4632
4682
|
}, ""),
|
|
4633
|
-
|
|
4634
|
-
(
|
|
4635
|
-
|
|
4683
|
+
n("div", Gt, [
|
|
4684
|
+
(l = (s = i.activeTropicals) == null ? void 0 : s.history) != null && l.level ? (_(), C("span", Jt, S((d = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : d.level) + " , ", 1)) : B("", !0),
|
|
4685
|
+
Ie(S((c = i.activeTropicals) == null ? void 0 : c.name), 1)
|
|
4636
4686
|
]),
|
|
4637
|
-
|
|
4687
|
+
n("div", Xt, " 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
4688
|
]),
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4689
|
+
n("div", Yt, [
|
|
4690
|
+
n("div", qt, [
|
|
4691
|
+
n("div", Qt, [
|
|
4692
|
+
n("div", Kt, [
|
|
4693
|
+
e[2] || (e[2] = n("label", null, "Wind speed : ", -1)),
|
|
4694
|
+
n("span", null, S(((v = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
|
|
4645
4695
|
]),
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4696
|
+
n("div", ea, [
|
|
4697
|
+
e[3] || (e[3] = n("label", null, "Pressure : ", -1)),
|
|
4698
|
+
n("span", null, S(((L = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : L.pressure) || "-") + "[hPa]", 1)
|
|
4649
4699
|
])
|
|
4650
4700
|
]),
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
(
|
|
4656
|
-
var M,
|
|
4657
|
-
return
|
|
4701
|
+
n("div", ta, [
|
|
4702
|
+
n("div", aa, [
|
|
4703
|
+
e[4] || (e[4] = n("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
4704
|
+
n("div", ia, [
|
|
4705
|
+
(_(!0), C(_e, null, Se((z = i.activeTropicals) == null ? void 0 : z.forecasts, (w, A) => {
|
|
4706
|
+
var M, W, O, F;
|
|
4707
|
+
return _(), C("div", {
|
|
4658
4708
|
key: A,
|
|
4659
|
-
class:
|
|
4709
|
+
class: j([
|
|
4660
4710
|
"model",
|
|
4661
4711
|
w.disabled ? "" : "active",
|
|
4662
|
-
A > 0 && A < ((
|
|
4712
|
+
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
4713
|
]),
|
|
4664
|
-
onClick: (
|
|
4714
|
+
onClick: (H) => o.handleForecastToggle(w)
|
|
4665
4715
|
}, [
|
|
4666
|
-
|
|
4667
|
-
class:
|
|
4716
|
+
n("span", {
|
|
4717
|
+
class: j(w.model)
|
|
4668
4718
|
}, S(w.model), 3)
|
|
4669
|
-
], 10,
|
|
4719
|
+
], 10, ra);
|
|
4670
4720
|
}), 128))
|
|
4671
4721
|
])
|
|
4672
4722
|
])
|
|
4673
4723
|
]),
|
|
4674
|
-
|
|
4724
|
+
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
4725
|
]),
|
|
4676
|
-
|
|
4677
|
-
|
|
4726
|
+
n("div", oa, [
|
|
4727
|
+
n("div", {
|
|
4678
4728
|
class: "button",
|
|
4679
4729
|
onClick: e[1] || (e[1] = (w) => o.handleStrikeProbability(i.activeTropicals))
|
|
4680
4730
|
}, "Strike Probability >>")
|
|
4681
4731
|
])
|
|
4682
4732
|
])
|
|
4683
4733
|
], 512)), [
|
|
4684
|
-
[
|
|
4734
|
+
[ze, i.showTropicals && !a.$attrs.hideTropicalsLegend]
|
|
4685
4735
|
]);
|
|
4686
4736
|
}
|
|
4687
|
-
const
|
|
4688
|
-
const
|
|
4737
|
+
const Fe = /* @__PURE__ */ T(Ut, [["render", sa], ["__scopeId", "data-v-f122450c"]]);
|
|
4738
|
+
const na = {
|
|
4689
4739
|
name: "IdmPrecip3h",
|
|
4690
4740
|
props: {
|
|
4691
4741
|
factor: {
|
|
@@ -4713,7 +4763,7 @@ const gi = {
|
|
|
4713
4763
|
texture: void 0,
|
|
4714
4764
|
rampColor: void 0,
|
|
4715
4765
|
aPositionBuffer: void 0,
|
|
4716
|
-
webgl: new
|
|
4766
|
+
webgl: new fe(),
|
|
4717
4767
|
etime: void 0,
|
|
4718
4768
|
right: 10
|
|
4719
4769
|
};
|
|
@@ -4786,27 +4836,27 @@ const gi = {
|
|
|
4786
4836
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4787
4837
|
}
|
|
4788
4838
|
}
|
|
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) {
|
|
4839
|
+
}, la = { key: 0 };
|
|
4840
|
+
function ca(a, e, t, r, i, o) {
|
|
4800
4841
|
var s;
|
|
4801
|
-
return (s = t.factor) != null && s.active ? (
|
|
4802
|
-
|
|
4842
|
+
return (s = t.factor) != null && s.active ? (_(), C("div", la, [
|
|
4843
|
+
n("div", {
|
|
4803
4844
|
class: "legend-bars flex-center",
|
|
4804
4845
|
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4805
|
-
},
|
|
4806
|
-
|
|
4846
|
+
}, e[0] || (e[0] = [
|
|
4847
|
+
n("span", null, "mm", -1),
|
|
4848
|
+
n("span", null, "1.5", -1),
|
|
4849
|
+
n("span", null, "2", -1),
|
|
4850
|
+
n("span", null, "3", -1),
|
|
4851
|
+
n("span", null, "7", -1),
|
|
4852
|
+
n("span", null, "10", -1),
|
|
4853
|
+
n("span", null, "20", -1),
|
|
4854
|
+
n("span", null, "30", -1)
|
|
4855
|
+
]), 4)
|
|
4856
|
+
])) : B("", !0);
|
|
4807
4857
|
}
|
|
4808
|
-
const
|
|
4809
|
-
const
|
|
4858
|
+
const ha = /* @__PURE__ */ T(na, [["render", ca], ["__scopeId", "data-v-9708a7a3"]]);
|
|
4859
|
+
const da = {
|
|
4810
4860
|
name: "IdmVisibility",
|
|
4811
4861
|
props: {
|
|
4812
4862
|
factor: {
|
|
@@ -4834,7 +4884,7 @@ const Ii = {
|
|
|
4834
4884
|
texture: void 0,
|
|
4835
4885
|
rampColor: void 0,
|
|
4836
4886
|
aPositionBuffer: void 0,
|
|
4837
|
-
webgl: new
|
|
4887
|
+
webgl: new fe(),
|
|
4838
4888
|
etime: void 0
|
|
4839
4889
|
};
|
|
4840
4890
|
},
|
|
@@ -4900,25 +4950,25 @@ const Ii = {
|
|
|
4900
4950
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4901
4951
|
}
|
|
4902
4952
|
}
|
|
4903
|
-
},
|
|
4904
|
-
|
|
4905
|
-
Ai,
|
|
4906
|
-
Di,
|
|
4907
|
-
Mi,
|
|
4908
|
-
$i,
|
|
4909
|
-
ji
|
|
4910
|
-
];
|
|
4911
|
-
function Ni(a, e, t, r, i, o) {
|
|
4953
|
+
}, pa = { key: 0 };
|
|
4954
|
+
function ma(a, e, t, r, i, o) {
|
|
4912
4955
|
var s;
|
|
4913
|
-
return (s = t.factor) != null && s.active ? (
|
|
4914
|
-
|
|
4956
|
+
return (s = t.factor) != null && s.active ? (_(), C("div", pa, [
|
|
4957
|
+
n("div", {
|
|
4915
4958
|
class: "legend-bars flex-center",
|
|
4916
4959
|
style: U([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
4917
|
-
},
|
|
4918
|
-
|
|
4960
|
+
}, e[0] || (e[0] = [
|
|
4961
|
+
n("span", null, "nm", -1),
|
|
4962
|
+
n("span", null, "0", -1),
|
|
4963
|
+
n("span", null, "0.5", -1),
|
|
4964
|
+
n("span", null, "1.5", -1),
|
|
4965
|
+
n("span", null, "3", -1),
|
|
4966
|
+
n("span", null, "9", -1)
|
|
4967
|
+
]), 4)
|
|
4968
|
+
])) : B("", !0);
|
|
4919
4969
|
}
|
|
4920
|
-
const
|
|
4921
|
-
const
|
|
4970
|
+
const ua = /* @__PURE__ */ T(da, [["render", ma], ["__scopeId", "data-v-f7b2fb08"]]);
|
|
4971
|
+
const ya = {
|
|
4922
4972
|
name: "IdmWaterTemp",
|
|
4923
4973
|
props: {
|
|
4924
4974
|
factor: {
|
|
@@ -4946,7 +4996,7 @@ const Oi = {
|
|
|
4946
4996
|
texture: void 0,
|
|
4947
4997
|
rampColor: void 0,
|
|
4948
4998
|
aPositionBuffer: void 0,
|
|
4949
|
-
webgl: new
|
|
4999
|
+
webgl: new fe(),
|
|
4950
5000
|
etime: void 0,
|
|
4951
5001
|
right: 10
|
|
4952
5002
|
};
|
|
@@ -5020,25 +5070,25 @@ const Oi = {
|
|
|
5020
5070
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
5021
5071
|
}
|
|
5022
5072
|
}
|
|
5023
|
-
},
|
|
5024
|
-
|
|
5025
|
-
Ui,
|
|
5026
|
-
Zi,
|
|
5027
|
-
Hi,
|
|
5028
|
-
Gi,
|
|
5029
|
-
Ji
|
|
5030
|
-
];
|
|
5031
|
-
function Yi(a, e, t, r, i, o) {
|
|
5073
|
+
}, fa = { key: 0 };
|
|
5074
|
+
function ga(a, e, t, r, i, o) {
|
|
5032
5075
|
var s;
|
|
5033
|
-
return (s = t.factor) != null && s.active ? (
|
|
5034
|
-
|
|
5076
|
+
return (s = t.factor) != null && s.active ? (_(), C("div", fa, [
|
|
5077
|
+
n("div", {
|
|
5035
5078
|
class: "legend-bars flex-center",
|
|
5036
5079
|
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
5037
|
-
},
|
|
5038
|
-
|
|
5080
|
+
}, e[0] || (e[0] = [
|
|
5081
|
+
n("span", null, "°C", -1),
|
|
5082
|
+
n("span", null, "0", -1),
|
|
5083
|
+
n("span", null, "10", -1),
|
|
5084
|
+
n("span", null, "20", -1),
|
|
5085
|
+
n("span", null, "30", -1),
|
|
5086
|
+
n("span", null, "40", -1)
|
|
5087
|
+
]), 4)
|
|
5088
|
+
])) : B("", !0);
|
|
5039
5089
|
}
|
|
5040
|
-
const
|
|
5041
|
-
const
|
|
5090
|
+
const ba = /* @__PURE__ */ T(ya, [["render", ga], ["__scopeId", "data-v-7521f582"]]);
|
|
5091
|
+
const va = {
|
|
5042
5092
|
name: "IdmTemp",
|
|
5043
5093
|
props: {
|
|
5044
5094
|
factor: {
|
|
@@ -5066,7 +5116,7 @@ const Qi = {
|
|
|
5066
5116
|
texture: void 0,
|
|
5067
5117
|
rampColor: void 0,
|
|
5068
5118
|
aPositionBuffer: void 0,
|
|
5069
|
-
webgl: new
|
|
5119
|
+
webgl: new fe(),
|
|
5070
5120
|
etime: void 0,
|
|
5071
5121
|
right: 10
|
|
5072
5122
|
};
|
|
@@ -5143,27 +5193,27 @@ const Qi = {
|
|
|
5143
5193
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
5144
5194
|
}
|
|
5145
5195
|
}
|
|
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) {
|
|
5196
|
+
}, wa = { key: 0 };
|
|
5197
|
+
function La(a, e, t, r, i, o) {
|
|
5157
5198
|
var s;
|
|
5158
|
-
return (s = t.factor) != null && s.active ? (
|
|
5159
|
-
|
|
5199
|
+
return (s = t.factor) != null && s.active ? (_(), C("div", wa, [
|
|
5200
|
+
n("div", {
|
|
5160
5201
|
class: "legend-bars flex-center",
|
|
5161
5202
|
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
5162
|
-
},
|
|
5163
|
-
|
|
5203
|
+
}, e[0] || (e[0] = [
|
|
5204
|
+
n("span", null, "°C", -1),
|
|
5205
|
+
n("span", null, "-20", -1),
|
|
5206
|
+
n("span", null, "-10", -1),
|
|
5207
|
+
n("span", null, "0", -1),
|
|
5208
|
+
n("span", null, "10", -1),
|
|
5209
|
+
n("span", null, "20", -1),
|
|
5210
|
+
n("span", null, "30", -1),
|
|
5211
|
+
n("span", null, "40", -1)
|
|
5212
|
+
]), 4)
|
|
5213
|
+
])) : B("", !0);
|
|
5164
5214
|
}
|
|
5165
|
-
const
|
|
5166
|
-
const
|
|
5215
|
+
const xa = /* @__PURE__ */ T(va, [["render", La], ["__scopeId", "data-v-25daaa82"]]);
|
|
5216
|
+
const _a = {
|
|
5167
5217
|
name: "IdmArctic",
|
|
5168
5218
|
props: {
|
|
5169
5219
|
factor: {
|
|
@@ -5191,7 +5241,7 @@ const dr = {
|
|
|
5191
5241
|
texture: void 0,
|
|
5192
5242
|
rampColor: void 0,
|
|
5193
5243
|
aPositionBuffer: void 0,
|
|
5194
|
-
webgl: new
|
|
5244
|
+
webgl: new fe(),
|
|
5195
5245
|
etime: void 0,
|
|
5196
5246
|
right: 10
|
|
5197
5247
|
};
|
|
@@ -5259,25 +5309,25 @@ const dr = {
|
|
|
5259
5309
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
5260
5310
|
}
|
|
5261
5311
|
}
|
|
5262
|
-
},
|
|
5263
|
-
|
|
5264
|
-
ur,
|
|
5265
|
-
yr,
|
|
5266
|
-
fr,
|
|
5267
|
-
gr,
|
|
5268
|
-
br
|
|
5269
|
-
];
|
|
5270
|
-
function wr(a, e, t, r, i, o) {
|
|
5312
|
+
}, Ca = { key: 0 };
|
|
5313
|
+
function ka(a, e, t, r, i, o) {
|
|
5271
5314
|
var s;
|
|
5272
|
-
return (s = t.factor) != null && s.active ? (
|
|
5273
|
-
|
|
5315
|
+
return (s = t.factor) != null && s.active ? (_(), C("div", Ca, [
|
|
5316
|
+
n("div", {
|
|
5274
5317
|
class: "legend-bars flex-center",
|
|
5275
5318
|
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
5276
|
-
},
|
|
5277
|
-
|
|
5319
|
+
}, e[0] || (e[0] = [
|
|
5320
|
+
n("span", null, "m", -1),
|
|
5321
|
+
n("span", null, "0", -1),
|
|
5322
|
+
n("span", null, "0.5", -1),
|
|
5323
|
+
n("span", null, "1", -1),
|
|
5324
|
+
n("span", null, "1.5", -1),
|
|
5325
|
+
n("span", null, "2", -1)
|
|
5326
|
+
]), 4)
|
|
5327
|
+
])) : B("", !0);
|
|
5278
5328
|
}
|
|
5279
|
-
const
|
|
5280
|
-
const
|
|
5329
|
+
const Sa = /* @__PURE__ */ T(_a, [["render", ka], ["__scopeId", "data-v-5bb73794"]]);
|
|
5330
|
+
const Pa = {
|
|
5281
5331
|
name: "IdmPoint",
|
|
5282
5332
|
emits: ["point", "more"],
|
|
5283
5333
|
props: {
|
|
@@ -5299,7 +5349,7 @@ const Lr = {
|
|
|
5299
5349
|
return {
|
|
5300
5350
|
showMeteo: !1,
|
|
5301
5351
|
meteoMarker: void 0,
|
|
5302
|
-
helper:
|
|
5352
|
+
helper: Ce
|
|
5303
5353
|
};
|
|
5304
5354
|
},
|
|
5305
5355
|
watch: {
|
|
@@ -5360,71 +5410,71 @@ const Lr = {
|
|
|
5360
5410
|
var a;
|
|
5361
5411
|
if (this.meteo) {
|
|
5362
5412
|
const e = document.getElementById("point-meteo");
|
|
5363
|
-
this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new
|
|
5413
|
+
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
5414
|
}
|
|
5365
5415
|
}
|
|
5366
5416
|
}
|
|
5367
|
-
},
|
|
5417
|
+
}, za = {
|
|
5368
5418
|
id: "point-meteo",
|
|
5369
5419
|
class: "point-meteo"
|
|
5370
|
-
},
|
|
5371
|
-
function
|
|
5372
|
-
var s,
|
|
5373
|
-
return
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5420
|
+
}, Ta = { class: "meteo-box" }, Ea = { class: "header-box" }, Ia = { class: "main" }, Ra = { class: "sub" }, Aa = { class: "main-box" }, Da = { class: "flex-space" }, Ma = { class: "flex-space" }, ja = { class: "flex-space" }, Wa = { class: "flex-space" }, Ba = { class: "flex-space" }, Na = { class: "flex-space" }, Oa = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" };
|
|
5421
|
+
function Va(a, e, t, r, i, o) {
|
|
5422
|
+
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;
|
|
5423
|
+
return Pe((_(), C("div", za, [
|
|
5424
|
+
n("div", Ta, [
|
|
5425
|
+
n("div", Ea, [
|
|
5426
|
+
n("div", {
|
|
5377
5427
|
class: "iconfont close",
|
|
5378
|
-
onClick: e[0] || (e[0] = (
|
|
5428
|
+
onClick: e[0] || (e[0] = (Te) => i.showMeteo = !1)
|
|
5379
5429
|
}, ""),
|
|
5380
|
-
|
|
5381
|
-
|
|
5430
|
+
n("div", Ia, S(o.computeLat((s = t.meteo) == null ? void 0 : s.lat)) + "," + S(o.computeLng((l = t.meteo) == null ? void 0 : l.lng)), 1),
|
|
5431
|
+
n("div", Ra, S(o.computeTime((h = t.meteo) == null ? void 0 : h.utc)), 1)
|
|
5382
5432
|
]),
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5433
|
+
n("div", Aa, [
|
|
5434
|
+
n("div", Da, [
|
|
5435
|
+
e[1] || (e[1] = n("label", null, "Wind", -1)),
|
|
5436
|
+
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
5437
|
]),
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5438
|
+
n("div", Ma, [
|
|
5439
|
+
e[2] || (e[2] = n("label", null, "Wind.Wave", -1)),
|
|
5440
|
+
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
5441
|
]),
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5442
|
+
n("div", ja, [
|
|
5443
|
+
e[3] || (e[3] = n("label", null, "Swell", -1)),
|
|
5444
|
+
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
5445
|
]),
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5446
|
+
n("div", Wa, [
|
|
5447
|
+
e[4] || (e[4] = n("label", null, "Sig.Wave", -1)),
|
|
5448
|
+
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
5449
|
]),
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5450
|
+
n("div", Ba, [
|
|
5451
|
+
e[5] || (e[5] = n("label", null, "Current", -1)),
|
|
5452
|
+
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
5453
|
]),
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5454
|
+
n("div", Na, [
|
|
5455
|
+
e[6] || (e[6] = n("label", null, "Precip", -1)),
|
|
5456
|
+
n("span", null, S(o.roundPrecision((ve = (be = t.meteo) == null ? void 0 : be.precip) == null ? void 0 : ve.inter6h, 2)) + "[mm]", 1)
|
|
5407
5457
|
]),
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5458
|
+
n("div", Oa, [
|
|
5459
|
+
e[7] || (e[7] = n("label", null, "Visibility", -1)),
|
|
5460
|
+
n("span", null, S(o.roundPrecision(((we = t.meteo) == null ? void 0 : we.visibility) / 1852, 0)) + "[nm]", 1)
|
|
5411
5461
|
]),
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5462
|
+
n("div", Fa, [
|
|
5463
|
+
e[8] || (e[8] = n("label", null, "Temp", -1)),
|
|
5464
|
+
n("span", null, S(o.roundPrecision((Le = t.meteo) == null ? void 0 : Le.temp, 0)) + "[°C]", 1)
|
|
5415
5465
|
]),
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5466
|
+
n("div", $a, [
|
|
5467
|
+
e[9] || (e[9] = n("label", null, "Water Temp", -1)),
|
|
5468
|
+
n("span", null, S(o.roundPrecision((xe = t.meteo) == null ? void 0 : xe.waterTemp, 2)) + "[°C]", 1)
|
|
5419
5469
|
])
|
|
5420
5470
|
]),
|
|
5421
|
-
|
|
5471
|
+
B("", !0)
|
|
5422
5472
|
])
|
|
5423
5473
|
], 512)), [
|
|
5424
|
-
[
|
|
5474
|
+
[ze, i.showMeteo]
|
|
5425
5475
|
]);
|
|
5426
5476
|
}
|
|
5427
|
-
const
|
|
5477
|
+
const Ua = /* @__PURE__ */ T(Pa, [["render", Va], ["__scopeId", "data-v-efcf572f"]]), Za = {
|
|
5428
5478
|
name: "IdmWarZone",
|
|
5429
5479
|
props: {
|
|
5430
5480
|
map: {
|
|
@@ -5514,10 +5564,10 @@ const Jr = /* @__PURE__ */ T(Lr, [["render", Gr], ["__scopeId", "data-v-efcf572f
|
|
|
5514
5564
|
}
|
|
5515
5565
|
}
|
|
5516
5566
|
};
|
|
5517
|
-
function
|
|
5518
|
-
return
|
|
5567
|
+
function Ha(a, e, t, r, i, o) {
|
|
5568
|
+
return _(), C("div");
|
|
5519
5569
|
}
|
|
5520
|
-
const
|
|
5570
|
+
const Ga = /* @__PURE__ */ T(Za, [["render", Ha]]), Ja = {
|
|
5521
5571
|
name: "IdmGmdssArea",
|
|
5522
5572
|
props: {
|
|
5523
5573
|
map: {
|
|
@@ -5637,10 +5687,10 @@ const qr = /* @__PURE__ */ T(Xr, [["render", Yr]]), Qr = {
|
|
|
5637
5687
|
}
|
|
5638
5688
|
}
|
|
5639
5689
|
};
|
|
5640
|
-
function
|
|
5641
|
-
return
|
|
5690
|
+
function Xa(a, e, t, r, i, o) {
|
|
5691
|
+
return _(), C("div");
|
|
5642
5692
|
}
|
|
5643
|
-
const
|
|
5693
|
+
const Ya = /* @__PURE__ */ T(Ja, [["render", Xa]]), qa = {
|
|
5644
5694
|
name: "IdmEcaZone",
|
|
5645
5695
|
props: {
|
|
5646
5696
|
map: {
|
|
@@ -5728,11 +5778,11 @@ const eo = /* @__PURE__ */ T(Qr, [["render", Kr]]), to = {
|
|
|
5728
5778
|
}
|
|
5729
5779
|
}
|
|
5730
5780
|
};
|
|
5731
|
-
function
|
|
5732
|
-
return
|
|
5781
|
+
function Qa(a, e, t, r, i, o) {
|
|
5782
|
+
return _(), C("div");
|
|
5733
5783
|
}
|
|
5734
|
-
const
|
|
5735
|
-
const
|
|
5784
|
+
const Ka = /* @__PURE__ */ T(qa, [["render", Qa]]);
|
|
5785
|
+
const ei = {
|
|
5736
5786
|
name: "IdmAlertZone",
|
|
5737
5787
|
props: {
|
|
5738
5788
|
map: {
|
|
@@ -5775,7 +5825,7 @@ const ro = {
|
|
|
5775
5825
|
if (t) {
|
|
5776
5826
|
this.showZone = !0, this.form = { ...t.properties };
|
|
5777
5827
|
const i = document.getElementById("idm-gl3-zone-info");
|
|
5778
|
-
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new
|
|
5828
|
+
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
5829
|
}
|
|
5780
5830
|
},
|
|
5781
5831
|
handleRender() {
|
|
@@ -5862,24 +5912,24 @@ const ro = {
|
|
|
5862
5912
|
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
5913
|
}
|
|
5864
5914
|
}
|
|
5865
|
-
},
|
|
5866
|
-
function
|
|
5915
|
+
}, ti = { id: "idm-gl3-zone-info" }, ai = ["innerHTML"];
|
|
5916
|
+
function ii(a, e, t, r, i, o) {
|
|
5867
5917
|
var s;
|
|
5868
|
-
return
|
|
5869
|
-
|
|
5918
|
+
return Pe((_(), C("div", ti, [
|
|
5919
|
+
n("div", {
|
|
5870
5920
|
class: "iconfont close",
|
|
5871
|
-
onClick: e[0] || (e[0] = (
|
|
5921
|
+
onClick: e[0] || (e[0] = (l) => i.showZone = !1)
|
|
5872
5922
|
}, ""),
|
|
5873
|
-
|
|
5923
|
+
n("div", {
|
|
5874
5924
|
class: "rich-context",
|
|
5875
5925
|
innerHTML: (s = i.form) == null ? void 0 : s.name
|
|
5876
|
-
}, null, 8,
|
|
5926
|
+
}, null, 8, ai)
|
|
5877
5927
|
], 512)), [
|
|
5878
|
-
[
|
|
5928
|
+
[ze, i.showZone]
|
|
5879
5929
|
]);
|
|
5880
5930
|
}
|
|
5881
|
-
const
|
|
5882
|
-
const
|
|
5931
|
+
const ri = /* @__PURE__ */ T(ei, [["render", ii]]);
|
|
5932
|
+
const oi = {
|
|
5883
5933
|
name: "IdmPort",
|
|
5884
5934
|
props: {
|
|
5885
5935
|
map: {
|
|
@@ -5932,7 +5982,7 @@ const co = {
|
|
|
5932
5982
|
if (t) {
|
|
5933
5983
|
this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
|
|
5934
5984
|
const i = document.getElementById("port-info");
|
|
5935
|
-
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new
|
|
5985
|
+
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
5986
|
}
|
|
5937
5987
|
},
|
|
5938
5988
|
handleEmit() {
|
|
@@ -5971,41 +6021,41 @@ const co = {
|
|
|
5971
6021
|
this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
5972
6022
|
}
|
|
5973
6023
|
}
|
|
5974
|
-
},
|
|
6024
|
+
}, si = { id: "port-info" }, ni = { class: "port-box" }, li = { class: "flex-start" }, ci = { class: "flex-start" }, hi = { class: "flex-start" }, di = {
|
|
5975
6025
|
class: "flex-start",
|
|
5976
6026
|
style: { "align-items": "flex-start" }
|
|
5977
|
-
}
|
|
5978
|
-
function
|
|
5979
|
-
return
|
|
5980
|
-
|
|
6027
|
+
};
|
|
6028
|
+
function pi(a, e, t, r, i, o) {
|
|
6029
|
+
return Pe((_(), C("div", si, [
|
|
6030
|
+
n("div", {
|
|
5981
6031
|
class: "close iconfont",
|
|
5982
6032
|
onClick: e[0] || (e[0] = (s) => i.showPort = !1)
|
|
5983
6033
|
}, ""),
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
6034
|
+
n("div", ni, [
|
|
6035
|
+
n("div", li, [
|
|
6036
|
+
e[2] || (e[2] = n("label", null, "Name : ", -1)),
|
|
6037
|
+
n("span", {
|
|
5988
6038
|
onClick: e[1] || (e[1] = (...s) => o.handleEmit && o.handleEmit(...s))
|
|
5989
6039
|
}, S(i.form.name), 1)
|
|
5990
6040
|
]),
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
6041
|
+
n("div", ci, [
|
|
6042
|
+
e[3] || (e[3] = n("label", null, "Position : ", -1)),
|
|
6043
|
+
n("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
|
|
5994
6044
|
]),
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
6045
|
+
n("div", hi, [
|
|
6046
|
+
e[4] || (e[4] = n("label", null, "LoCode : ", -1)),
|
|
6047
|
+
n("span", null, S(i.form.loCode || "-"), 1)
|
|
5998
6048
|
]),
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6049
|
+
n("div", di, [
|
|
6050
|
+
e[5] || (e[5] = n("label", null, "Region : ", -1)),
|
|
6051
|
+
n("span", null, S(i.form.zoneName || "-"), 1)
|
|
6002
6052
|
])
|
|
6003
6053
|
])
|
|
6004
6054
|
], 512)), [
|
|
6005
|
-
[
|
|
6055
|
+
[ze, i.showPort]
|
|
6006
6056
|
]);
|
|
6007
6057
|
}
|
|
6008
|
-
const
|
|
6058
|
+
const mi = /* @__PURE__ */ T(oi, [["render", pi], ["__scopeId", "data-v-c07e4c45"]]), ui = {
|
|
6009
6059
|
name: "IdmLoadLine",
|
|
6010
6060
|
props: {
|
|
6011
6061
|
map: {
|
|
@@ -6075,10 +6125,10 @@ const Lo = /* @__PURE__ */ T(co, [["render", _o], ["__scopeId", "data-v-c07e4c45
|
|
|
6075
6125
|
}
|
|
6076
6126
|
}
|
|
6077
6127
|
};
|
|
6078
|
-
function
|
|
6079
|
-
return
|
|
6128
|
+
function yi(a, e, t, r, i, o) {
|
|
6129
|
+
return _(), C("div");
|
|
6080
6130
|
}
|
|
6081
|
-
const
|
|
6131
|
+
const fi = /* @__PURE__ */ T(ui, [["render", yi]]), gi = {
|
|
6082
6132
|
name: "IdmTimezone",
|
|
6083
6133
|
props: {
|
|
6084
6134
|
map: {
|
|
@@ -6243,10 +6293,10 @@ const ko = /* @__PURE__ */ T(xo, [["render", Co]]), So = {
|
|
|
6243
6293
|
}
|
|
6244
6294
|
}
|
|
6245
6295
|
};
|
|
6246
|
-
function
|
|
6247
|
-
return
|
|
6296
|
+
function bi(a, e, t, r, i, o) {
|
|
6297
|
+
return _(), C("div");
|
|
6248
6298
|
}
|
|
6249
|
-
const
|
|
6299
|
+
const vi = /* @__PURE__ */ T(gi, [["render", bi]]), wi = {
|
|
6250
6300
|
name: "IdmVoluntaryReportingArea",
|
|
6251
6301
|
props: {
|
|
6252
6302
|
map: {
|
|
@@ -6334,10 +6384,10 @@ const Po = /* @__PURE__ */ T(So, [["render", zo]]), To = {
|
|
|
6334
6384
|
}
|
|
6335
6385
|
}
|
|
6336
6386
|
};
|
|
6337
|
-
function
|
|
6338
|
-
return
|
|
6387
|
+
function Li(a, e, t, r, i, o) {
|
|
6388
|
+
return _(), C("div");
|
|
6339
6389
|
}
|
|
6340
|
-
const
|
|
6390
|
+
const xi = /* @__PURE__ */ T(wi, [["render", Li]]), _i = {
|
|
6341
6391
|
name: "IdmSpecialArea",
|
|
6342
6392
|
props: {
|
|
6343
6393
|
map: {
|
|
@@ -6427,10 +6477,10 @@ const Eo = /* @__PURE__ */ T(To, [["render", Io]]), Ro = {
|
|
|
6427
6477
|
}
|
|
6428
6478
|
}
|
|
6429
6479
|
};
|
|
6430
|
-
function
|
|
6431
|
-
return
|
|
6480
|
+
function Ci(a, e, t, r, i, o) {
|
|
6481
|
+
return _(), C("div");
|
|
6432
6482
|
}
|
|
6433
|
-
const
|
|
6483
|
+
const ki = /* @__PURE__ */ T(_i, [["render", Ci]]), Si = {
|
|
6434
6484
|
name: "IdmTerminator",
|
|
6435
6485
|
props: {
|
|
6436
6486
|
map: {
|
|
@@ -6479,11 +6529,11 @@ const Do = /* @__PURE__ */ T(Ro, [["render", Ao]]), Mo = {
|
|
|
6479
6529
|
}
|
|
6480
6530
|
}
|
|
6481
6531
|
};
|
|
6482
|
-
function
|
|
6483
|
-
return
|
|
6532
|
+
function Pi(a, e, t, r, i, o) {
|
|
6533
|
+
return _(), C("div");
|
|
6484
6534
|
}
|
|
6485
|
-
const
|
|
6486
|
-
const
|
|
6535
|
+
const zi = /* @__PURE__ */ T(Si, [["render", Pi]]);
|
|
6536
|
+
const Ti = {
|
|
6487
6537
|
name: "IdmLatLng",
|
|
6488
6538
|
props: {
|
|
6489
6539
|
map: {
|
|
@@ -6590,7 +6640,7 @@ const Wo = {
|
|
|
6590
6640
|
handleZoomEnd() {
|
|
6591
6641
|
var e;
|
|
6592
6642
|
const a = this.handleComputeLatLngs();
|
|
6593
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
6643
|
+
(e = this.map) == null || e.getSource(this.source).setData(x.featureCollection(a));
|
|
6594
6644
|
},
|
|
6595
6645
|
handleRender() {
|
|
6596
6646
|
if (this.map) {
|
|
@@ -6638,19 +6688,19 @@ const Wo = {
|
|
|
6638
6688
|
(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
6689
|
}
|
|
6640
6690
|
}
|
|
6641
|
-
}
|
|
6642
|
-
function
|
|
6643
|
-
return i.lngLat ? (
|
|
6691
|
+
};
|
|
6692
|
+
function Ei(a, e, t, r, i, o) {
|
|
6693
|
+
return i.lngLat ? (_(), C("div", {
|
|
6644
6694
|
key: 0,
|
|
6645
6695
|
class: "lat-lng-tip",
|
|
6646
6696
|
style: U({ right: i.right + "px", bottom: t.bottom })
|
|
6647
6697
|
}, [
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
], 4)) :
|
|
6698
|
+
n("span", null, S(i.lngLat.lat.pretty), 1),
|
|
6699
|
+
e[0] || (e[0] = n("span", null, ", ", -1)),
|
|
6700
|
+
n("span", null, S(i.lngLat.lng.pretty), 1)
|
|
6701
|
+
], 4)) : B("", !0);
|
|
6652
6702
|
}
|
|
6653
|
-
const
|
|
6703
|
+
const $e = /* @__PURE__ */ T(Ti, [["render", Ei], ["__scopeId", "data-v-73241fe7"]]), Ii = {
|
|
6654
6704
|
name: "IdmMeasure",
|
|
6655
6705
|
props: {
|
|
6656
6706
|
map: {
|
|
@@ -6691,13 +6741,13 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6691
6741
|
},
|
|
6692
6742
|
methods: {
|
|
6693
6743
|
handleBind() {
|
|
6694
|
-
var a, e, t, r, i, o, s,
|
|
6744
|
+
var a, e, t, r, i, o, s, l, h, d;
|
|
6695
6745
|
if (this.show)
|
|
6696
6746
|
(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
6747
|
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(
|
|
6748
|
+
(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);
|
|
6749
|
+
for (const c of this.geojson)
|
|
6750
|
+
this.handleClear(c, !0);
|
|
6701
6751
|
this.geojson = [], this.map && (this.map.getCanvas().style.cursor = "grab");
|
|
6702
6752
|
}
|
|
6703
6753
|
},
|
|
@@ -6709,41 +6759,41 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6709
6759
|
}
|
|
6710
6760
|
},
|
|
6711
6761
|
handleDrag(a) {
|
|
6712
|
-
var t, r, i, o, s,
|
|
6762
|
+
var t, r, i, o, s, l, h, d, c, p;
|
|
6713
6763
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
6714
6764
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6715
|
-
const
|
|
6716
|
-
this.pointMarkers[
|
|
6765
|
+
const f = this.geojson.filter((u) => u.id === e.split("-")[0])[0];
|
|
6766
|
+
this.pointMarkers[f.id].filter((u) => {
|
|
6717
6767
|
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
|
-
|
|
6768
|
+
return ((v = u._element) == null ? void 0 : v.id) === e;
|
|
6769
|
+
})[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]);
|
|
6770
|
+
let b;
|
|
6771
|
+
f.features.forEach((u, v) => {
|
|
6772
|
+
if (u.geometry.type === "Point" && u.properties.id == e.split("-")[1]) {
|
|
6773
|
+
b = v;
|
|
6724
6774
|
return;
|
|
6725
6775
|
}
|
|
6726
6776
|
});
|
|
6727
|
-
const
|
|
6777
|
+
const y = f.features.filter((u) => u.geometry.type === "Point");
|
|
6728
6778
|
this.handleTmpPointUpdate(
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
{ lng: (d = (
|
|
6732
|
-
|
|
6779
|
+
f,
|
|
6780
|
+
y[b - 1],
|
|
6781
|
+
{ 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 },
|
|
6782
|
+
b === y.length - 1 ? void 0 : y[b + 1]
|
|
6733
6783
|
);
|
|
6734
6784
|
}
|
|
6735
6785
|
},
|
|
6736
6786
|
handleDragEnd(a) {
|
|
6737
|
-
var t, r, i, o, s,
|
|
6787
|
+
var t, r, i, o, s, l, h, d, c, p;
|
|
6738
6788
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
6739
6789
|
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
|
-
|
|
6790
|
+
const f = this.geojson.filter((y) => y.id === e.split("-")[0])[0];
|
|
6791
|
+
this.pointMarkers[f.id].filter((y) => {
|
|
6792
|
+
var u;
|
|
6793
|
+
return ((u = y._element) == null ? void 0 : u.id) === e;
|
|
6794
|
+
})[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]);
|
|
6795
|
+
const b = f.features.filter((y) => y.geometry.type === "Point" && y.properties.id == e.split("-")[1])[0];
|
|
6796
|
+
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
6797
|
}
|
|
6748
6798
|
},
|
|
6749
6799
|
handleContextmenu(a) {
|
|
@@ -6751,10 +6801,10 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6751
6801
|
a.preventDefault(), (t = this.contextmenu) == null || t.remove();
|
|
6752
6802
|
const e = (o = (i = (r = a.originalEvent) == null ? void 0 : r.target) == null ? void 0 : i.parentElement) == null ? void 0 : o.id;
|
|
6753
6803
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6754
|
-
const
|
|
6755
|
-
if (
|
|
6804
|
+
const l = this.geojson.filter((h) => h.id === e.split("-")[0])[0].features.filter((h) => h.geometry.type === "Point");
|
|
6805
|
+
if (l.length > 2 && l.filter((d) => d.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
6756
6806
|
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
|
|
6807
|
+
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
6808
|
}
|
|
6759
6809
|
}
|
|
6760
6810
|
},
|
|
@@ -6763,15 +6813,15 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6763
6813
|
(t = this.contextmenu) == null || t.remove();
|
|
6764
6814
|
const e = a.originalEvent.target.className;
|
|
6765
6815
|
if (e === "marker-close") {
|
|
6766
|
-
const
|
|
6767
|
-
|
|
6816
|
+
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];
|
|
6817
|
+
h && this.handleClear(h, !0), this.geojson = this.geojson.filter((d) => d.id !== l);
|
|
6768
6818
|
} else if (e === "del-point") {
|
|
6769
|
-
const
|
|
6770
|
-
|
|
6819
|
+
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];
|
|
6820
|
+
h.features = h.features.filter((d) => d.geometry.type === "Point" && d.properties.id !== l[1]), this.handlePointUpdate(h);
|
|
6771
6821
|
} else if (e !== "marker-label") {
|
|
6772
|
-
let
|
|
6773
|
-
|
|
6774
|
-
const
|
|
6822
|
+
let l = this.geojson.at(-1);
|
|
6823
|
+
l || (l = x.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(l)), l.features = l.features.filter((d) => d.geometry.type === "Point");
|
|
6824
|
+
const h = x.feature(
|
|
6775
6825
|
{
|
|
6776
6826
|
type: "Point",
|
|
6777
6827
|
coordinates: [a.lngLat.lng, a.lngLat.lat]
|
|
@@ -6781,7 +6831,7 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6781
6831
|
mode: this.navigation
|
|
6782
6832
|
}
|
|
6783
6833
|
);
|
|
6784
|
-
|
|
6834
|
+
l.features.push(h), this.handlePointUpdate(l);
|
|
6785
6835
|
}
|
|
6786
6836
|
},
|
|
6787
6837
|
handlePointUpdate(a) {
|
|
@@ -6790,35 +6840,35 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6790
6840
|
let t = 0;
|
|
6791
6841
|
const r = [];
|
|
6792
6842
|
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
|
-
|
|
6843
|
+
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);
|
|
6844
|
+
t = D.roundPrecision(t + c, 2);
|
|
6845
|
+
let f;
|
|
6846
|
+
l.mode === "RL" ? f = D.convertToMonotonicLng([h, d]) : f = D.convertToMonotonicLng(K.interpolateCoordinates(h, d, 200));
|
|
6847
|
+
const m = x.lineString(f.map((b) => [b.lng, b.lat]));
|
|
6848
|
+
m.properties.dist = c, m.properties.bearing = p, m.properties.total = t, r.push(m);
|
|
6799
6849
|
}
|
|
6800
6850
|
e.push(...r), a.total = t;
|
|
6801
6851
|
}
|
|
6802
6852
|
return this.handleRender(a), a;
|
|
6803
6853
|
},
|
|
6804
6854
|
handleTmpPointUpdate(a, e, t, r) {
|
|
6805
|
-
const i =
|
|
6855
|
+
const i = x.featureCollection([]);
|
|
6806
6856
|
let o, s;
|
|
6807
6857
|
if (e) {
|
|
6808
|
-
const
|
|
6809
|
-
o =
|
|
6810
|
-
let
|
|
6811
|
-
|
|
6812
|
-
const
|
|
6813
|
-
|
|
6858
|
+
const h = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, c = { lng: t.lng, lat: t.lat };
|
|
6859
|
+
o = K.calculateDistance(d, c, h.mode === "RL", 2), s = K.calculateBearing(d, c, h.mode === "RL", 2);
|
|
6860
|
+
let p;
|
|
6861
|
+
h.mode === "RL" ? p = D.convertToMonotonicLng([d, c]) : p = D.convertToMonotonicLng(K.interpolateCoordinates(d, c, 200));
|
|
6862
|
+
const f = x.lineString(p.map((m) => [m.lng, m.lat]));
|
|
6863
|
+
f.properties.dist = o, f.properties.bearing = s, i.features.push(f);
|
|
6814
6864
|
}
|
|
6815
6865
|
if (r) {
|
|
6816
|
-
const
|
|
6817
|
-
o =
|
|
6818
|
-
let
|
|
6819
|
-
|
|
6820
|
-
const
|
|
6821
|
-
|
|
6866
|
+
const h = t.properties, d = t, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
6867
|
+
o = K.calculateDistance(d, c, h.mode === "RL", 2), s = K.calculateBearing(d, c, h.mode === "RL", 2);
|
|
6868
|
+
let p;
|
|
6869
|
+
h.mode === "RL" ? p = D.convertToMonotonicLng([d, c]) : p = D.convertToMonotonicLng(K.interpolateCoordinates(d, c, 200));
|
|
6870
|
+
const f = x.lineString(p.map((m) => [m.lng, m.lat]));
|
|
6871
|
+
f.properties.dist = o, f.properties.bearing = s, i.features.push(f);
|
|
6822
6872
|
}
|
|
6823
6873
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
6824
6874
|
type: "geojson",
|
|
@@ -6857,25 +6907,25 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6857
6907
|
"text-halo-blur": 0
|
|
6858
6908
|
}
|
|
6859
6909
|
});
|
|
6860
|
-
let
|
|
6861
|
-
if (r ?
|
|
6862
|
-
this.tipMarker._element.innerHTML =
|
|
6910
|
+
let l;
|
|
6911
|
+
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)
|
|
6912
|
+
this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
6863
6913
|
else {
|
|
6864
|
-
const
|
|
6865
|
-
|
|
6914
|
+
const h = document.createElement("div");
|
|
6915
|
+
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
6916
|
}
|
|
6867
6917
|
},
|
|
6868
6918
|
handleMove(a) {
|
|
6869
6919
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
6870
6920
|
let e = this.geojson.at(-1);
|
|
6871
|
-
e || (e =
|
|
6921
|
+
e || (e = x.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
6872
6922
|
const t = e.features.filter((r) => r.geometry.type === "Point");
|
|
6873
6923
|
t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
|
|
6874
6924
|
},
|
|
6875
6925
|
handleDblClick(a) {
|
|
6876
6926
|
a.preventDefault();
|
|
6877
6927
|
let e = this.geojson.at(-1);
|
|
6878
|
-
e.closed = !0, this.handleRender(e), e =
|
|
6928
|
+
e.closed = !0, this.handleRender(e), e = x.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
|
|
6879
6929
|
},
|
|
6880
6930
|
handleRender(a) {
|
|
6881
6931
|
var e;
|
|
@@ -6918,31 +6968,31 @@ const et = /* @__PURE__ */ T(Wo, [["render", Oo], ["__scopeId", "data-v-73241fe7
|
|
|
6918
6968
|
});
|
|
6919
6969
|
const o = a.features.filter((s) => s.geometry.type === "Point");
|
|
6920
6970
|
for (const s of o) {
|
|
6921
|
-
const
|
|
6922
|
-
|
|
6923
|
-
const
|
|
6924
|
-
|
|
6971
|
+
const l = document.createElement("div");
|
|
6972
|
+
l.id = `${a.id}-${s.properties.id}`, l.className = `${a.closed ? "point-marker closed" : "point-marker"}`, l.innerHTML = '<div class="marker-circle"></div>';
|
|
6973
|
+
const h = new ee.Marker({ element: l, draggable: !0, contextmenu: !0 }).setLngLat(s.geometry.coordinates).addTo(this.map);
|
|
6974
|
+
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
6975
|
}
|
|
6926
6976
|
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: ${
|
|
6977
|
+
const s = o.at(-1), h = a.features.filter((c) => c.geometry.type === "LineString").at(-1), d = document.createElement("div");
|
|
6978
|
+
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
6979
|
}
|
|
6930
6980
|
}
|
|
6931
6981
|
},
|
|
6932
6982
|
handleClear(a, e = !0) {
|
|
6933
|
-
var o, s,
|
|
6983
|
+
var o, s, l, h, d, c, p, f, m;
|
|
6934
6984
|
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] = [], (
|
|
6985
|
+
(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) => {
|
|
6986
|
+
b == null || b.remove();
|
|
6987
|
+
}), 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
6988
|
}
|
|
6939
6989
|
}
|
|
6940
6990
|
};
|
|
6941
|
-
function
|
|
6942
|
-
return
|
|
6991
|
+
function Ri(a, e, t, r, i, o) {
|
|
6992
|
+
return _(), C("div");
|
|
6943
6993
|
}
|
|
6944
|
-
const
|
|
6945
|
-
const
|
|
6994
|
+
const Ai = /* @__PURE__ */ T(Ii, [["render", Ri]]);
|
|
6995
|
+
const Di = {
|
|
6946
6996
|
name: "IdmENC",
|
|
6947
6997
|
props: {
|
|
6948
6998
|
map: {
|
|
@@ -6973,8 +7023,8 @@ const Zo = {
|
|
|
6973
7023
|
emits: ["enc"],
|
|
6974
7024
|
data() {
|
|
6975
7025
|
return {
|
|
6976
|
-
helper:
|
|
6977
|
-
vendor: this.$attrs.permission &
|
|
7026
|
+
helper: Ce,
|
|
7027
|
+
vendor: this.$attrs.permission & Ce.LEVEL.Supper ? "hi" : "i4",
|
|
6978
7028
|
right: 10
|
|
6979
7029
|
};
|
|
6980
7030
|
},
|
|
@@ -6994,30 +7044,28 @@ const Zo = {
|
|
|
6994
7044
|
}
|
|
6995
7045
|
},
|
|
6996
7046
|
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", {
|
|
7047
|
+
}, Mi = { key: 0 }, ji = { class: "bar-item" };
|
|
7048
|
+
function Wi(a, e, t, r, i, o) {
|
|
7049
|
+
const s = P("ElTooltip");
|
|
7050
|
+
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (_(), C("div", Mi, [
|
|
7051
|
+
n("div", {
|
|
7006
7052
|
class: "menu-bar-box",
|
|
7007
7053
|
style: U({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
7008
7054
|
}, [
|
|
7009
|
-
|
|
7055
|
+
n("div", ji, [
|
|
7010
7056
|
k(s, {
|
|
7011
7057
|
placement: "left",
|
|
7012
7058
|
effect: "light",
|
|
7013
7059
|
content: "Hifleet",
|
|
7014
|
-
"show-after":
|
|
7060
|
+
"show-after": 1e3
|
|
7015
7061
|
}, {
|
|
7016
|
-
default:
|
|
7017
|
-
|
|
7018
|
-
class:
|
|
7019
|
-
onClick: e[0] || (e[0] = (
|
|
7020
|
-
},
|
|
7062
|
+
default: X(() => [
|
|
7063
|
+
n("div", {
|
|
7064
|
+
class: j(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
7065
|
+
onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
|
|
7066
|
+
}, e[2] || (e[2] = [
|
|
7067
|
+
n("span", { class: "iconfont" }, "HI", -1)
|
|
7068
|
+
]), 2)
|
|
7021
7069
|
]),
|
|
7022
7070
|
_: 1
|
|
7023
7071
|
}),
|
|
@@ -7025,54 +7073,56 @@ function Qo(a, e, t, r, i, o) {
|
|
|
7025
7073
|
placement: "left",
|
|
7026
7074
|
effect: "light",
|
|
7027
7075
|
content: "I4insight",
|
|
7028
|
-
"show-after":
|
|
7076
|
+
"show-after": 1e3
|
|
7029
7077
|
}, {
|
|
7030
|
-
default:
|
|
7031
|
-
|
|
7032
|
-
class:
|
|
7033
|
-
onClick: e[1] || (e[1] = (
|
|
7034
|
-
},
|
|
7078
|
+
default: X(() => [
|
|
7079
|
+
n("div", {
|
|
7080
|
+
class: j(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
7081
|
+
onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
|
|
7082
|
+
}, e[3] || (e[3] = [
|
|
7083
|
+
n("span", { class: "iconfont" }, "I4", -1)
|
|
7084
|
+
]), 2)
|
|
7035
7085
|
]),
|
|
7036
7086
|
_: 1
|
|
7037
7087
|
})
|
|
7038
7088
|
])
|
|
7039
7089
|
], 4)
|
|
7040
|
-
])) :
|
|
7090
|
+
])) : B("", !0);
|
|
7041
7091
|
}
|
|
7042
|
-
const
|
|
7043
|
-
const
|
|
7092
|
+
const Bi = /* @__PURE__ */ T(Di, [["render", Wi], ["__scopeId", "data-v-5873cc66"]]);
|
|
7093
|
+
const Ni = {
|
|
7044
7094
|
name: "IdmGLV2",
|
|
7045
7095
|
components: {
|
|
7046
|
-
IdmGlLayer:
|
|
7047
|
-
IdmWindBarb:
|
|
7048
|
-
IdmWindParticle:
|
|
7049
|
-
IdmCurrents:
|
|
7050
|
-
IdmCurrentParticle:
|
|
7051
|
-
IdmSigWave:
|
|
7052
|
-
IdmSwell:
|
|
7053
|
-
IdmPrmsl:
|
|
7096
|
+
IdmGlLayer: ut,
|
|
7097
|
+
IdmWindBarb: bt,
|
|
7098
|
+
IdmWindParticle: _t,
|
|
7099
|
+
IdmCurrents: Pt,
|
|
7100
|
+
IdmCurrentParticle: It,
|
|
7101
|
+
IdmSigWave: Dt,
|
|
7102
|
+
IdmSwell: Wt,
|
|
7103
|
+
IdmPrmsl: Ot,
|
|
7054
7104
|
// 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:
|
|
7105
|
+
IdmIceberg: Vt,
|
|
7106
|
+
IdmTropicals: Fe,
|
|
7107
|
+
IdmPrecip3h: ha,
|
|
7108
|
+
IdmVisibility: ua,
|
|
7109
|
+
IdmWaterTemp: ba,
|
|
7110
|
+
IdmTemp: xa,
|
|
7111
|
+
IdmArctic: Sa,
|
|
7112
|
+
IdmWarZone: Ga,
|
|
7113
|
+
IdmGmdssArea: Ya,
|
|
7114
|
+
IdmEcaZone: Ka,
|
|
7115
|
+
IdmAlertZone: ri,
|
|
7116
|
+
IdmPort: mi,
|
|
7117
|
+
IdmLoadLine: fi,
|
|
7118
|
+
IdmTimezone: vi,
|
|
7119
|
+
IdmVRA: xi,
|
|
7120
|
+
IdmSpecialArea: ki,
|
|
7121
|
+
IdmTerminator: zi,
|
|
7122
|
+
IdmLatLng: $e,
|
|
7123
|
+
IdmMeasure: Ai,
|
|
7124
|
+
IdmPoint: Ua,
|
|
7125
|
+
IdmENC: Bi
|
|
7076
7126
|
},
|
|
7077
7127
|
props: {
|
|
7078
7128
|
map: {
|
|
@@ -7114,12 +7164,14 @@ const es = {
|
|
|
7114
7164
|
particleFactor: void 0,
|
|
7115
7165
|
showRampColor: !1,
|
|
7116
7166
|
activeWindLayer: !1,
|
|
7167
|
+
showWindFeather: !1,
|
|
7117
7168
|
showWindParticle: !1,
|
|
7169
|
+
showCurrentIsoband: !1,
|
|
7118
7170
|
showCurrentParticle: !1,
|
|
7119
7171
|
enc: "",
|
|
7120
7172
|
// enc: 'i4',
|
|
7121
7173
|
defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
|
|
7122
|
-
helper: new
|
|
7174
|
+
helper: new vt()
|
|
7123
7175
|
};
|
|
7124
7176
|
},
|
|
7125
7177
|
watch: {
|
|
@@ -7133,22 +7185,22 @@ const es = {
|
|
|
7133
7185
|
},
|
|
7134
7186
|
map: {
|
|
7135
7187
|
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
|
|
7188
|
+
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
7189
|
},
|
|
7138
7190
|
immediate: !0
|
|
7139
7191
|
},
|
|
7140
7192
|
enc: {
|
|
7141
7193
|
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")) : ((
|
|
7194
|
+
var t, r, i, o, s, l, h, d;
|
|
7195
|
+
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
7196
|
}
|
|
7145
7197
|
},
|
|
7146
7198
|
activeWeatherLayers: {
|
|
7147
7199
|
handler() {
|
|
7148
|
-
var a, e, t, r, i, o, s,
|
|
7200
|
+
var a, e, t, r, i, o, s, l, h, d, c, p, f, m, b, y, u, v;
|
|
7149
7201
|
if (!this.map)
|
|
7150
7202
|
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" && ((
|
|
7203
|
+
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
7204
|
},
|
|
7153
7205
|
immediate: !0
|
|
7154
7206
|
}
|
|
@@ -7195,57 +7247,57 @@ const es = {
|
|
|
7195
7247
|
},
|
|
7196
7248
|
methods: {
|
|
7197
7249
|
async fetchWeatherLayers(a = { tropicals: !1 }) {
|
|
7198
|
-
var i, o, s,
|
|
7250
|
+
var i, o, s, l, h, d, c, p;
|
|
7199
7251
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
7200
7252
|
let t = 0, r = 0;
|
|
7201
7253
|
if (this.map) {
|
|
7202
|
-
const
|
|
7254
|
+
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
7255
|
if (this.handleRampColorState(), this.particleFactor) {
|
|
7204
|
-
const
|
|
7256
|
+
const y = ke.WEATHER_LAYERS.find((u) => {
|
|
7205
7257
|
var v;
|
|
7206
|
-
return ((v =
|
|
7258
|
+
return ((v = u.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
|
|
7207
7259
|
});
|
|
7208
|
-
this.particleFactor.particle ? this.weatherWeight = this.weatherWeight &
|
|
7260
|
+
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
7261
|
}
|
|
7210
7262
|
if (this.weatherWeight > 0) {
|
|
7211
|
-
let
|
|
7212
|
-
if (a.tropicals || this.weatherWeight & 256 && (
|
|
7213
|
-
const v = await
|
|
7263
|
+
let y = this.weatherWeight, u;
|
|
7264
|
+
if (a.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (y -= 256, u.version = Math.random() + 1)), y > 0) {
|
|
7265
|
+
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
7266
|
headers: {
|
|
7215
7267
|
Authorization: this.token || this.defaultMeteoToken
|
|
7216
7268
|
}
|
|
7217
7269
|
});
|
|
7218
7270
|
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
|
-
|
|
7271
|
+
const g = (l = v == null ? void 0 : v.data) == null ? void 0 : l.data, L = [];
|
|
7272
|
+
for (const w in g)
|
|
7273
|
+
w === "ice-edge" && (g[w] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), w !== "tropicals" && L.push(
|
|
7274
|
+
oe.get(g[w], {
|
|
7223
7275
|
headers: {
|
|
7224
7276
|
Authorization: this.token || this.defaultMeteoToken,
|
|
7225
7277
|
key: w
|
|
7226
7278
|
},
|
|
7227
|
-
responseType: /\.(jpg|png)$/.test(
|
|
7279
|
+
responseType: /\.(jpg|png)$/.test(g[w]) ? "blob" : "json"
|
|
7228
7280
|
}).catch((A) => {
|
|
7229
7281
|
console.log(`[${w}] fetch layer error: ${A}`);
|
|
7230
7282
|
})
|
|
7231
7283
|
);
|
|
7232
|
-
const
|
|
7233
|
-
this.weatherLayers = {},
|
|
7234
|
-
var
|
|
7235
|
-
const A = ((
|
|
7284
|
+
const z = await Promise.all(L);
|
|
7285
|
+
this.weatherLayers = {}, z.map((w) => {
|
|
7286
|
+
var W, O, F, H;
|
|
7287
|
+
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
7288
|
M && A && (this.weatherLayers[M] = {
|
|
7237
7289
|
raw: A,
|
|
7238
|
-
type: ((
|
|
7290
|
+
type: ((H = w == null ? void 0 : w.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
|
|
7239
7291
|
etime: this.ts
|
|
7240
7292
|
});
|
|
7241
|
-
}),
|
|
7293
|
+
}), g.tropicals && oe.get(g.tropicals, {
|
|
7242
7294
|
headers: {
|
|
7243
7295
|
Authorization: this.token || this.defaultMeteoToken,
|
|
7244
7296
|
key: "tropicals"
|
|
7245
7297
|
}
|
|
7246
7298
|
}).then((w) => {
|
|
7247
|
-
var
|
|
7248
|
-
const A =
|
|
7299
|
+
var W, O, F;
|
|
7300
|
+
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
7301
|
this.weatherLayers[M] = {
|
|
7250
7302
|
data: A,
|
|
7251
7303
|
active: !0,
|
|
@@ -7257,25 +7309,25 @@ const es = {
|
|
|
7257
7309
|
});
|
|
7258
7310
|
}
|
|
7259
7311
|
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
|
|
7312
|
+
const g = (h = this.weatherLayers["swell-direction"]) == null ? void 0 : h.raw, L = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
7261
7313
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
7262
7314
|
type: "json",
|
|
7263
|
-
direction:
|
|
7264
|
-
height: { raw:
|
|
7315
|
+
direction: g,
|
|
7316
|
+
height: { raw: L },
|
|
7265
7317
|
etime: this.ts
|
|
7266
7318
|
};
|
|
7267
7319
|
}
|
|
7268
7320
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
7269
|
-
const
|
|
7321
|
+
const g = (c = this.weatherLayers["current-direction"]) == null ? void 0 : c.raw, L = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
|
|
7270
7322
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
7271
7323
|
type: "json",
|
|
7272
|
-
direction:
|
|
7273
|
-
speed: { raw:
|
|
7324
|
+
direction: g,
|
|
7325
|
+
speed: { raw: L },
|
|
7274
7326
|
etime: this.ts
|
|
7275
7327
|
};
|
|
7276
7328
|
}
|
|
7277
7329
|
}
|
|
7278
|
-
|
|
7330
|
+
u && (u.etime = this.ts, u.cached = !0, this.weatherLayers.tropicals = u);
|
|
7279
7331
|
}
|
|
7280
7332
|
this.handleWeatherLayerToggle(), this.handleDragEndWithZoom4Json();
|
|
7281
7333
|
}
|
|
@@ -7289,50 +7341,50 @@ const es = {
|
|
|
7289
7341
|
let s = !1;
|
|
7290
7342
|
if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, s = !0), o) {
|
|
7291
7343
|
if (a.all) {
|
|
7292
|
-
const
|
|
7344
|
+
const l = await oe.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
|
|
7293
7345
|
headers: {
|
|
7294
7346
|
Authorization: this.token || this.defaultMeteoToken
|
|
7295
7347
|
}
|
|
7296
7348
|
});
|
|
7297
|
-
if (((e =
|
|
7298
|
-
const
|
|
7299
|
-
for (const
|
|
7349
|
+
if (((e = l == null ? void 0 : l.data) == null ? void 0 : e.code) === 0) {
|
|
7350
|
+
const h = (t = l == null ? void 0 : l.data) == null ? void 0 : t.data, d = [];
|
|
7351
|
+
for (const p in h)
|
|
7300
7352
|
d.push(
|
|
7301
|
-
|
|
7353
|
+
oe.get(h[p], {
|
|
7302
7354
|
headers: {
|
|
7303
7355
|
Authorization: this.token || this.defaultMeteoToken,
|
|
7304
|
-
key:
|
|
7356
|
+
key: p
|
|
7305
7357
|
}
|
|
7306
7358
|
})
|
|
7307
7359
|
);
|
|
7308
|
-
const
|
|
7309
|
-
this.otherLayers = { enc: s },
|
|
7310
|
-
var
|
|
7311
|
-
const
|
|
7312
|
-
this.otherLayers[
|
|
7360
|
+
const c = await Promise.all(d);
|
|
7361
|
+
this.otherLayers = { enc: s }, c.map((p) => {
|
|
7362
|
+
var b, y, u;
|
|
7363
|
+
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;
|
|
7364
|
+
this.otherLayers[m] = f;
|
|
7313
7365
|
});
|
|
7314
7366
|
}
|
|
7315
7367
|
} else if (a.dayNight && o & 1024) {
|
|
7316
|
-
const
|
|
7368
|
+
const l = await oe.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
7317
7369
|
headers: {
|
|
7318
7370
|
Authorization: this.token || this.defaultMeteoToken
|
|
7319
7371
|
}
|
|
7320
7372
|
});
|
|
7321
|
-
if (((r =
|
|
7322
|
-
const
|
|
7323
|
-
for (const
|
|
7373
|
+
if (((r = l == null ? void 0 : l.data) == null ? void 0 : r.code) === 0) {
|
|
7374
|
+
const h = (i = l == null ? void 0 : l.data) == null ? void 0 : i.data, d = [];
|
|
7375
|
+
for (const p in h)
|
|
7324
7376
|
d.push(
|
|
7325
|
-
|
|
7377
|
+
oe.get(h[p], {
|
|
7326
7378
|
headers: {
|
|
7327
7379
|
Authorization: this.token || this.defaultMeteoToken,
|
|
7328
|
-
key:
|
|
7380
|
+
key: p
|
|
7329
7381
|
}
|
|
7330
7382
|
})
|
|
7331
7383
|
);
|
|
7332
|
-
(await Promise.all(d)).map((
|
|
7333
|
-
var
|
|
7334
|
-
const
|
|
7335
|
-
this.otherLayers[
|
|
7384
|
+
(await Promise.all(d)).map((p) => {
|
|
7385
|
+
var b, y, u;
|
|
7386
|
+
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;
|
|
7387
|
+
this.otherLayers[m] = f;
|
|
7336
7388
|
});
|
|
7337
7389
|
}
|
|
7338
7390
|
}
|
|
@@ -7353,7 +7405,7 @@ const es = {
|
|
|
7353
7405
|
this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
|
|
7354
7406
|
},
|
|
7355
7407
|
handleRampColorInitial() {
|
|
7356
|
-
var a, e, t, r, i, o, s,
|
|
7408
|
+
var a, e, t, r, i, o, s, l, h, d, c, p;
|
|
7357
7409
|
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
7410
|
type: "canvas",
|
|
7359
7411
|
canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
|
|
@@ -7369,16 +7421,16 @@ const es = {
|
|
|
7369
7421
|
}
|
|
7370
7422
|
},
|
|
7371
7423
|
this.beforeLayer
|
|
7372
|
-
), this.viewport.map.getSource((s = this.viewport) == null ? void 0 : s.particleSource) || this.viewport.map.addSource((
|
|
7424
|
+
), 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
7425
|
type: "canvas",
|
|
7374
|
-
canvas: (
|
|
7426
|
+
canvas: (h = this.viewport) == null ? void 0 : h.particleCanvas,
|
|
7375
7427
|
animate: !0,
|
|
7376
7428
|
coordinates: this.viewport.getBoundLngLat()
|
|
7377
7429
|
}), this.viewport.map.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) || this.viewport.map.addLayer(
|
|
7378
7430
|
{
|
|
7379
7431
|
type: "raster",
|
|
7380
|
-
id: (
|
|
7381
|
-
source: (
|
|
7432
|
+
id: (c = this.viewport) == null ? void 0 : c.particleLayer,
|
|
7433
|
+
source: (p = this.viewport) == null ? void 0 : p.particleSource,
|
|
7382
7434
|
layout: {
|
|
7383
7435
|
visibility: "none"
|
|
7384
7436
|
}
|
|
@@ -7387,186 +7439,186 @@ const es = {
|
|
|
7387
7439
|
);
|
|
7388
7440
|
},
|
|
7389
7441
|
handleDragEndWithZoom4Json() {
|
|
7390
|
-
var d,
|
|
7442
|
+
var d, c, p, f;
|
|
7391
7443
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
7392
7444
|
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: (
|
|
7445
|
+
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);
|
|
7446
|
+
for (const m in this.weatherLayers)
|
|
7447
|
+
if (this.weatherLayers[m].active && this.weatherLayers[m].type === "json") {
|
|
7448
|
+
this.weatherLayers[m].active = !1, this.weatherLayers[m].version = Math.random() + 1;
|
|
7449
|
+
let b = [];
|
|
7450
|
+
if (["swell", "current"].includes(m)) {
|
|
7451
|
+
const y = ((c = this.weatherLayers[m]) == null ? void 0 : c.direction) || {};
|
|
7452
|
+
for (const u in y)
|
|
7453
|
+
if (u > l && u < h && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7454
|
+
const v = y[u].lng;
|
|
7455
|
+
o > s ? v.forEach((g, L) => {
|
|
7456
|
+
var z;
|
|
7457
|
+
if ((g >= o && g <= 180 || g >= -180 && g <= s) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7458
|
+
const w = x.point([g, u], {
|
|
7459
|
+
val: y[u].val[L],
|
|
7460
|
+
spd: (z = y[u].spd) == null ? void 0 : z[L]
|
|
7409
7461
|
});
|
|
7410
|
-
|
|
7462
|
+
b.push(w);
|
|
7411
7463
|
}
|
|
7412
|
-
}) : v.forEach((
|
|
7413
|
-
var
|
|
7414
|
-
if (
|
|
7415
|
-
const w =
|
|
7416
|
-
val:
|
|
7417
|
-
spd: (
|
|
7464
|
+
}) : v.forEach((g, L) => {
|
|
7465
|
+
var z;
|
|
7466
|
+
if (g >= o && g <= s && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7467
|
+
const w = x.point([g, u], {
|
|
7468
|
+
val: y[u].val[L],
|
|
7469
|
+
spd: (z = y[u].spd) == null ? void 0 : z[L]
|
|
7418
7470
|
});
|
|
7419
|
-
|
|
7471
|
+
b.push(w);
|
|
7420
7472
|
}
|
|
7421
7473
|
});
|
|
7422
7474
|
}
|
|
7423
|
-
if (t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("direction elapsed: ", t, ", total: ", e += t),
|
|
7424
|
-
const
|
|
7425
|
-
if (
|
|
7426
|
-
if (!
|
|
7475
|
+
if (t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("direction elapsed: ", t, ", total: ", e += t), m === "swell") {
|
|
7476
|
+
const u = this.weatherLayers[m].height;
|
|
7477
|
+
if (u) {
|
|
7478
|
+
if (!u.data) {
|
|
7427
7479
|
const v = [];
|
|
7428
|
-
for (const
|
|
7429
|
-
const
|
|
7430
|
-
for (const
|
|
7480
|
+
for (const g in (p = u.raw) == null ? void 0 : p.LineString) {
|
|
7481
|
+
const L = u.raw.LineString[g];
|
|
7482
|
+
for (const z of L)
|
|
7431
7483
|
v.push(
|
|
7432
|
-
|
|
7433
|
-
val: Number(
|
|
7484
|
+
x.lineString(z, {
|
|
7485
|
+
val: Number(g)
|
|
7434
7486
|
})
|
|
7435
7487
|
);
|
|
7436
|
-
|
|
7488
|
+
u.data = x.featureCollection(v);
|
|
7437
7489
|
}
|
|
7438
7490
|
}
|
|
7439
|
-
if (
|
|
7440
|
-
const v = this.handleBboxClip(
|
|
7441
|
-
|
|
7491
|
+
if (u.data) {
|
|
7492
|
+
const v = this.handleBboxClip(u.data, r);
|
|
7493
|
+
b = b.concat(v);
|
|
7442
7494
|
}
|
|
7443
7495
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("height elapsed: ", t, ", total: ", e += t);
|
|
7444
7496
|
}
|
|
7445
7497
|
}
|
|
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(
|
|
7498
|
+
if (m === "current") {
|
|
7499
|
+
const u = this.weatherLayers[m].speed;
|
|
7500
|
+
if (u) {
|
|
7501
|
+
if (!u.data) {
|
|
7502
|
+
const g = [];
|
|
7503
|
+
for (const L in (f = u.raw) == null ? void 0 : f.Polygon) {
|
|
7504
|
+
const z = u.raw.Polygon[L];
|
|
7505
|
+
for (const w of z)
|
|
7506
|
+
g.push(
|
|
7507
|
+
x.polygon(w, {
|
|
7508
|
+
val: Number(L)
|
|
7457
7509
|
})
|
|
7458
7510
|
);
|
|
7459
7511
|
}
|
|
7460
|
-
|
|
7512
|
+
u.data = x.featureCollection(g);
|
|
7461
7513
|
}
|
|
7462
|
-
const v = i < this.zoom ?
|
|
7463
|
-
|
|
7514
|
+
const v = i < this.zoom ? u.data.features.filter((g) => g.properties.val > 0.5) : u.data.features;
|
|
7515
|
+
b = b.concat(v), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("speed elapsed: ", t, ", total: ", e += t);
|
|
7464
7516
|
}
|
|
7465
7517
|
}
|
|
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:
|
|
7518
|
+
} else if (m === "wind") {
|
|
7519
|
+
const y = this.weatherLayers.wind.raw;
|
|
7520
|
+
for (const u in y)
|
|
7521
|
+
if (u > l && u < h && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7522
|
+
const v = y[u].lng;
|
|
7523
|
+
o > s ? v.forEach((g, L) => {
|
|
7524
|
+
if ((g >= o && g <= 180 || g >= -180 && g <= s) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7525
|
+
const z = x.point([g, u], {
|
|
7526
|
+
val: y[u].val[L],
|
|
7527
|
+
spd: y[u].spd[L]
|
|
7476
7528
|
});
|
|
7477
|
-
|
|
7529
|
+
b.push(z);
|
|
7478
7530
|
}
|
|
7479
|
-
}) : v.forEach((
|
|
7480
|
-
if (
|
|
7481
|
-
const
|
|
7482
|
-
val:
|
|
7483
|
-
spd:
|
|
7531
|
+
}) : v.forEach((g, L) => {
|
|
7532
|
+
if (g >= o && g <= s && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7533
|
+
const z = x.point([g, u], {
|
|
7534
|
+
val: y[u].val[L],
|
|
7535
|
+
spd: y[u].spd[L]
|
|
7484
7536
|
});
|
|
7485
|
-
|
|
7537
|
+
b.push(z);
|
|
7486
7538
|
}
|
|
7487
7539
|
});
|
|
7488
7540
|
}
|
|
7489
7541
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
|
|
7490
|
-
} else if (
|
|
7491
|
-
if (this.weatherLayers[
|
|
7492
|
-
|
|
7542
|
+
} else if (m === "sig-wave-height") {
|
|
7543
|
+
if (this.weatherLayers[m].data)
|
|
7544
|
+
b = this.weatherLayers[m].data;
|
|
7493
7545
|
else {
|
|
7494
|
-
const
|
|
7495
|
-
if (
|
|
7496
|
-
const
|
|
7497
|
-
for (const v in
|
|
7498
|
-
const
|
|
7499
|
-
for (const
|
|
7500
|
-
|
|
7501
|
-
|
|
7546
|
+
const y = this.weatherLayers[m].raw;
|
|
7547
|
+
if (y) {
|
|
7548
|
+
const u = [];
|
|
7549
|
+
for (const v in y.Polygon) {
|
|
7550
|
+
const g = y.Polygon[v];
|
|
7551
|
+
for (const L of g)
|
|
7552
|
+
u.push(
|
|
7553
|
+
x.polygon(L, {
|
|
7502
7554
|
val: Number(v)
|
|
7503
7555
|
})
|
|
7504
7556
|
);
|
|
7505
7557
|
}
|
|
7506
|
-
for (const v in
|
|
7507
|
-
const
|
|
7508
|
-
for (const
|
|
7509
|
-
|
|
7510
|
-
...
|
|
7558
|
+
for (const v in y.Point) {
|
|
7559
|
+
const g = y.Point[v];
|
|
7560
|
+
for (const L of g)
|
|
7561
|
+
u.push(
|
|
7562
|
+
...x.points(L, {
|
|
7511
7563
|
val: Number(v)
|
|
7512
7564
|
}).features
|
|
7513
7565
|
);
|
|
7514
7566
|
}
|
|
7515
|
-
|
|
7567
|
+
b = b.concat(u);
|
|
7516
7568
|
}
|
|
7517
7569
|
}
|
|
7518
7570
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
|
|
7519
|
-
} else if (
|
|
7520
|
-
if (this.weatherLayers[
|
|
7521
|
-
|
|
7571
|
+
} else if (m === "prmsl") {
|
|
7572
|
+
if (this.weatherLayers[m].data)
|
|
7573
|
+
b = this.weatherLayers[m].data;
|
|
7522
7574
|
else {
|
|
7523
|
-
const
|
|
7524
|
-
if (
|
|
7525
|
-
const
|
|
7526
|
-
for (const v in
|
|
7527
|
-
const
|
|
7528
|
-
for (const
|
|
7529
|
-
|
|
7530
|
-
|
|
7575
|
+
const y = this.weatherLayers[m].raw;
|
|
7576
|
+
if (y) {
|
|
7577
|
+
const u = [];
|
|
7578
|
+
for (const v in y.LineString) {
|
|
7579
|
+
const g = y.LineString[v];
|
|
7580
|
+
for (const L of g)
|
|
7581
|
+
u.push(
|
|
7582
|
+
x.lineString(L, {
|
|
7531
7583
|
val: Number(v)
|
|
7532
7584
|
})
|
|
7533
7585
|
);
|
|
7534
7586
|
}
|
|
7535
|
-
for (const v in
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
val:
|
|
7540
|
-
type:
|
|
7587
|
+
for (const v in y.Point)
|
|
7588
|
+
y.Point[v].lng.forEach((g, L) => {
|
|
7589
|
+
g = D.convertToStdLng(g), u.push(
|
|
7590
|
+
x.point([g, v], {
|
|
7591
|
+
val: y.Point[v].val[L],
|
|
7592
|
+
type: y.Point[v].type[L]
|
|
7541
7593
|
})
|
|
7542
7594
|
);
|
|
7543
7595
|
});
|
|
7544
|
-
|
|
7596
|
+
b = b.concat(u);
|
|
7545
7597
|
}
|
|
7546
7598
|
}
|
|
7547
7599
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
7548
|
-
} else if (
|
|
7549
|
-
if (this.weatherLayers[
|
|
7550
|
-
|
|
7600
|
+
} else if (m === "arctic" || m === "iceberg") {
|
|
7601
|
+
if (this.weatherLayers[m].data)
|
|
7602
|
+
b = this.weatherLayers[m].data;
|
|
7551
7603
|
else {
|
|
7552
|
-
const
|
|
7553
|
-
if (
|
|
7554
|
-
const
|
|
7555
|
-
for (const v in
|
|
7556
|
-
const
|
|
7557
|
-
for (const
|
|
7558
|
-
|
|
7559
|
-
|
|
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, {
|
|
7560
7612
|
val: Number(v)
|
|
7561
7613
|
})
|
|
7562
7614
|
);
|
|
7563
7615
|
}
|
|
7564
|
-
|
|
7616
|
+
b = b.concat(u);
|
|
7565
7617
|
}
|
|
7566
7618
|
}
|
|
7567
7619
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e);
|
|
7568
7620
|
}
|
|
7569
|
-
console.log(
|
|
7621
|
+
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
7622
|
}
|
|
7571
7623
|
},
|
|
7572
7624
|
handleDragEndWithZoom4Image() {
|
|
@@ -7578,11 +7630,11 @@ const es = {
|
|
|
7578
7630
|
return a.features.forEach((o) => {
|
|
7579
7631
|
if (o.geometry.type !== "Point")
|
|
7580
7632
|
if (r > i) {
|
|
7581
|
-
let s = [r, e._sw.lat, 180, e._ne.lat],
|
|
7582
|
-
|
|
7633
|
+
let s = [r, e._sw.lat, 180, e._ne.lat], l = x.bboxClip(o, s);
|
|
7634
|
+
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
7635
|
} else {
|
|
7584
|
-
const s = [r, e._sw.lat, i, e._ne.lat],
|
|
7585
|
-
|
|
7636
|
+
const s = [r, e._sw.lat, i, e._ne.lat], l = x.bboxClip(o, s);
|
|
7637
|
+
l.geometry.coordinates.length && t.push(l);
|
|
7586
7638
|
}
|
|
7587
7639
|
else
|
|
7588
7640
|
t.push(o);
|
|
@@ -7599,30 +7651,30 @@ const es = {
|
|
|
7599
7651
|
this.handleBeforeLayerToggle();
|
|
7600
7652
|
},
|
|
7601
7653
|
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"] || (
|
|
7654
|
+
var a, e, t, r, i, o, s, l, h, d, c, p, f;
|
|
7655
|
+
(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
7656
|
},
|
|
7605
7657
|
handleDateChange(a = { tropicals: !1 }) {
|
|
7606
7658
|
this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
|
|
7607
7659
|
},
|
|
7608
|
-
handleWeatherLayerChange(a, e
|
|
7660
|
+
handleWeatherLayerChange(a, e) {
|
|
7609
7661
|
if (!this.map)
|
|
7610
7662
|
setTimeout(() => {
|
|
7611
|
-
this.handleWeatherLayerChange(a, e
|
|
7663
|
+
this.handleWeatherLayerChange(a, e);
|
|
7612
7664
|
}, 500);
|
|
7613
7665
|
else {
|
|
7614
|
-
this.activeWeatherLayers =
|
|
7615
|
-
const
|
|
7616
|
-
(
|
|
7617
|
-
var
|
|
7618
|
-
return ["wind", "current"].includes(
|
|
7666
|
+
this.activeWeatherLayers = a;
|
|
7667
|
+
const t = this.activeWeatherLayers.some(
|
|
7668
|
+
(o) => {
|
|
7669
|
+
var s;
|
|
7670
|
+
return ["wind", "current"].includes(o.key) && (!((s = Object.keys(o)) != null && s.some((l) => l === "particle")) || !!o.particle);
|
|
7619
7671
|
}
|
|
7620
|
-
),
|
|
7621
|
-
|
|
7622
|
-
["wind", "current"].includes(
|
|
7623
|
-
}), this.particleFactor.particle = !0) :
|
|
7624
|
-
const
|
|
7625
|
-
this.weatherWeight !==
|
|
7672
|
+
), r = this.activeWeatherLayers.some((o) => ["png", "jpg"].includes(o.type));
|
|
7673
|
+
t && !r ? (this.activeWeatherLayers.forEach((o) => {
|
|
7674
|
+
["wind", "current"].includes(o.key) && (this.particleFactor = o);
|
|
7675
|
+
}), this.particleFactor.particle = !0) : r && this.particleFactor && (this.particleFactor.particle = !1);
|
|
7676
|
+
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);
|
|
7677
|
+
this.weatherWeight !== i || this.source !== e ? (this.source = e, this.weatherWeight = i, this.fetchWeatherLayers({ tropicals: !1 })) : this.handleWeatherLayerToggle();
|
|
7626
7678
|
}
|
|
7627
7679
|
},
|
|
7628
7680
|
handleOtherLayerChange(a) {
|
|
@@ -7642,7 +7694,7 @@ const es = {
|
|
|
7642
7694
|
ts: e.utc().format(),
|
|
7643
7695
|
wt: !0,
|
|
7644
7696
|
src: this.source
|
|
7645
|
-
}, r = await
|
|
7697
|
+
}, r = await oe.get(`${this.gateway}/api/arc/meteo/query`, {
|
|
7646
7698
|
params: t,
|
|
7647
7699
|
headers: {
|
|
7648
7700
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -7654,8 +7706,8 @@ const es = {
|
|
|
7654
7706
|
});
|
|
7655
7707
|
},
|
|
7656
7708
|
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)), (
|
|
7709
|
+
var e, t, r, i, o, s, l, h, d, c, p, f, m, b, y, u, v, g, L, z;
|
|
7710
|
+
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
7711
|
},
|
|
7660
7712
|
handleParticle(a) {
|
|
7661
7713
|
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.forEach((r) => {
|
|
@@ -7671,210 +7723,216 @@ const es = {
|
|
|
7671
7723
|
this.$emit("toggleVersion", Math.random());
|
|
7672
7724
|
}
|
|
7673
7725
|
}
|
|
7674
|
-
},
|
|
7726
|
+
}, Oi = {
|
|
7675
7727
|
key: 0,
|
|
7676
7728
|
className: "map-gl-home"
|
|
7677
7729
|
};
|
|
7678
|
-
function
|
|
7679
|
-
var
|
|
7680
|
-
const s =
|
|
7681
|
-
return t.map ? (
|
|
7682
|
-
k(s,
|
|
7730
|
+
function Fi(a, e, t, r, i, o) {
|
|
7731
|
+
var te, G, Y, me, q, E, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe, Te, Ae, De, Me, je, We, Be, Ne;
|
|
7732
|
+
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");
|
|
7733
|
+
return t.map ? (_(), C("div", Oi, [
|
|
7734
|
+
k(s, I({
|
|
7683
7735
|
ref: "layer",
|
|
7684
7736
|
map: t.map,
|
|
7685
7737
|
"toggle-version": t.toggleVersion,
|
|
7686
|
-
"map-projection": i.mapProjection
|
|
7738
|
+
"map-projection": i.mapProjection,
|
|
7739
|
+
showWindFeather: i.showWindFeather,
|
|
7740
|
+
showWindParticle: i.showWindParticle,
|
|
7741
|
+
showCurrentIsoband: i.showCurrentIsoband,
|
|
7742
|
+
showCurrentParticle: i.showCurrentParticle
|
|
7687
7743
|
}, a.$attrs, {
|
|
7688
7744
|
onWeather: o.handleWeatherLayerChange,
|
|
7689
7745
|
onOther: o.handleOtherLayerChange,
|
|
7690
|
-
onCoordinate: e[0] || (e[0] = (
|
|
7691
|
-
onMeasure: e[1] || (e[1] = (
|
|
7692
|
-
onPoint: e[2] || (e[2] = (
|
|
7746
|
+
onCoordinate: e[0] || (e[0] = (J) => i.showCoord = J),
|
|
7747
|
+
onMeasure: e[1] || (e[1] = (J) => i.showMeasure = J),
|
|
7748
|
+
onPoint: e[2] || (e[2] = (J) => i.showPoint = J),
|
|
7693
7749
|
on3d: o.handle3dToggle,
|
|
7694
7750
|
onHandleToggleVersion: o.handleToggleVersion
|
|
7695
|
-
}), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
7696
|
-
k(
|
|
7751
|
+
}), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
7752
|
+
k(l, I({
|
|
7697
7753
|
map: t.map,
|
|
7698
7754
|
token: t.token,
|
|
7699
|
-
enabled: (
|
|
7755
|
+
enabled: (te = i.otherLayers) == null ? void 0 : te.enc,
|
|
7700
7756
|
"toggle-version": t.toggleVersion
|
|
7701
7757
|
}, a.$attrs, {
|
|
7702
|
-
onEnc: e[3] || (e[3] = (
|
|
7758
|
+
onEnc: e[3] || (e[3] = (J) => i.enc = J)
|
|
7703
7759
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
7704
|
-
k(
|
|
7760
|
+
k(h, I({
|
|
7705
7761
|
map: t.map,
|
|
7706
|
-
"sig-wave": (
|
|
7762
|
+
"sig-wave": (G = i.weatherLayers) == null ? void 0 : G["sig-wave-height"],
|
|
7707
7763
|
"before-layer": t.beforeLayer
|
|
7708
7764
|
}, a.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
|
|
7709
|
-
k(d,
|
|
7765
|
+
k(d, I({
|
|
7710
7766
|
map: t.map,
|
|
7711
|
-
swell: (
|
|
7767
|
+
swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
|
|
7712
7768
|
"before-layer": t.beforeLayer
|
|
7713
7769
|
}, a.$attrs), null, 16, ["map", "swell", "before-layer"]),
|
|
7714
|
-
k(
|
|
7770
|
+
k(c, I({
|
|
7715
7771
|
map: t.map,
|
|
7716
|
-
prmsl: (
|
|
7772
|
+
prmsl: (me = i.weatherLayers) == null ? void 0 : me.prmsl,
|
|
7717
7773
|
"before-layer": t.beforeLayer,
|
|
7718
7774
|
"active-weather-layers": i.activeWeatherLayers
|
|
7719
7775
|
}, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
7720
|
-
k(
|
|
7776
|
+
k(p, I({
|
|
7721
7777
|
map: t.map,
|
|
7722
|
-
iceberg: (
|
|
7778
|
+
iceberg: (q = i.weatherLayers) == null ? void 0 : q.iceberg,
|
|
7723
7779
|
"before-layer": t.beforeLayer
|
|
7724
7780
|
}, a.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
7725
|
-
k(
|
|
7781
|
+
k(f, I({
|
|
7726
7782
|
map: t.map,
|
|
7727
7783
|
date: t.ts,
|
|
7728
|
-
tropicals: (
|
|
7784
|
+
tropicals: (E = i.weatherLayers) == null ? void 0 : E.tropicals,
|
|
7729
7785
|
"before-layer": t.beforeLayer
|
|
7730
7786
|
}, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
7731
|
-
k(
|
|
7787
|
+
k(m, I({
|
|
7732
7788
|
map: t.map,
|
|
7733
7789
|
"map-projection": i.mapProjection,
|
|
7734
|
-
current: (
|
|
7790
|
+
current: ($ = i.weatherLayers) == null ? void 0 : $.current,
|
|
7735
7791
|
"before-layer": t.beforeLayer,
|
|
7736
7792
|
"show-particle": i.showCurrentParticle,
|
|
7737
7793
|
"margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
|
|
7738
7794
|
"toggle-version": t.toggleVersion,
|
|
7739
7795
|
"weather-layers": i.weatherLayers
|
|
7740
7796
|
}, a.$attrs, {
|
|
7797
|
+
onShowCurrentIsoband: e[4] || (e[4] = (J) => i.showCurrentIsoband = J),
|
|
7741
7798
|
onParticle: o.handleParticle,
|
|
7742
7799
|
onHandleToggleVersion: o.handleToggleVersion
|
|
7743
7800
|
}), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
7744
|
-
k(
|
|
7801
|
+
k(b, I({
|
|
7745
7802
|
viewport: i.viewport,
|
|
7746
|
-
factor: (
|
|
7803
|
+
factor: (ue = i.weatherLayers) == null ? void 0 : ue["current-particle"],
|
|
7747
7804
|
"before-layer": t.beforeLayer,
|
|
7748
7805
|
"toggle-version": t.toggleVersion
|
|
7749
7806
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7750
|
-
k(
|
|
7807
|
+
k(y, I({
|
|
7751
7808
|
ref: "windBarb",
|
|
7752
7809
|
map: t.map,
|
|
7753
7810
|
"map-projection": i.mapProjection,
|
|
7754
|
-
wind: (
|
|
7755
|
-
current: (
|
|
7811
|
+
wind: (Q = i.weatherLayers) == null ? void 0 : Q.wind,
|
|
7812
|
+
current: (ye = i.weatherLayers) == null ? void 0 : ye.current,
|
|
7756
7813
|
"before-layer": t.beforeLayer,
|
|
7757
7814
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
7758
7815
|
"show-particle": i.showWindParticle
|
|
7759
7816
|
}, a.$attrs, {
|
|
7760
7817
|
"toggle-version": t.toggleVersion,
|
|
7761
7818
|
"weather-layers": i.weatherLayers,
|
|
7762
|
-
onParticle: o.handleParticle
|
|
7819
|
+
onParticle: o.handleParticle,
|
|
7820
|
+
onShowWindFeather: e[5] || (e[5] = (J) => i.showWindFeather = J)
|
|
7763
7821
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
|
|
7764
|
-
k(
|
|
7822
|
+
k(u, I({
|
|
7765
7823
|
viewport: i.viewport,
|
|
7766
|
-
factor: (
|
|
7824
|
+
factor: (ae = i.weatherLayers) == null ? void 0 : ae["wind-particle"],
|
|
7767
7825
|
"before-layer": t.beforeLayer,
|
|
7768
7826
|
"toggle-version": t.toggleVersion
|
|
7769
7827
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7770
|
-
k(v,
|
|
7828
|
+
k(v, I({
|
|
7771
7829
|
viewport: i.viewport,
|
|
7772
|
-
factor: (
|
|
7830
|
+
factor: (ie = i.weatherLayers) == null ? void 0 : ie.precip3h,
|
|
7773
7831
|
"before-layer": t.beforeLayer,
|
|
7774
7832
|
"toggle-version": t.toggleVersion
|
|
7775
7833
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7776
|
-
k(
|
|
7834
|
+
k(g, I({
|
|
7777
7835
|
viewport: i.viewport,
|
|
7778
|
-
factor: (
|
|
7836
|
+
factor: (re = i.weatherLayers) == null ? void 0 : re.visibility,
|
|
7779
7837
|
"before-layer": t.beforeLayer,
|
|
7780
7838
|
"toggle-version": t.toggleVersion
|
|
7781
7839
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7782
|
-
k(
|
|
7840
|
+
k(L, I({
|
|
7783
7841
|
viewport: i.viewport,
|
|
7784
|
-
factor: (
|
|
7842
|
+
factor: (be = i.weatherLayers) == null ? void 0 : be["water-temp"],
|
|
7785
7843
|
"before-layer": t.beforeLayer,
|
|
7786
7844
|
"toggle-version": t.toggleVersion
|
|
7787
7845
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7788
|
-
k(
|
|
7846
|
+
k(z, I({
|
|
7789
7847
|
viewport: i.viewport,
|
|
7790
|
-
factor: (
|
|
7848
|
+
factor: (ve = i.weatherLayers) == null ? void 0 : ve.temp,
|
|
7791
7849
|
"before-layer": t.beforeLayer,
|
|
7792
7850
|
"toggle-version": t.toggleVersion
|
|
7793
7851
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7794
|
-
k(w,
|
|
7852
|
+
k(w, I({
|
|
7795
7853
|
viewport: i.viewport,
|
|
7796
|
-
factor: (
|
|
7854
|
+
factor: (we = i.weatherLayers) == null ? void 0 : we.arctic,
|
|
7797
7855
|
"before-layer": t.beforeLayer,
|
|
7798
7856
|
"toggle-version": t.toggleVersion
|
|
7799
7857
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7800
|
-
k(A,
|
|
7858
|
+
k(A, I({
|
|
7801
7859
|
map: t.map,
|
|
7802
|
-
zone: (
|
|
7860
|
+
zone: (Le = i.otherLayers) == null ? void 0 : Le["war-zones"],
|
|
7803
7861
|
"before-layer": t.beforeLayer
|
|
7804
7862
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7805
|
-
k(M,
|
|
7863
|
+
k(M, I({
|
|
7806
7864
|
map: t.map,
|
|
7807
|
-
area: (
|
|
7865
|
+
area: (xe = i.otherLayers) == null ? void 0 : xe["gmdss-areas"],
|
|
7808
7866
|
"before-layer": t.beforeLayer
|
|
7809
7867
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7810
|
-
k(
|
|
7868
|
+
k(W, I({
|
|
7811
7869
|
map: t.map,
|
|
7812
|
-
zone: (
|
|
7870
|
+
zone: (Te = i.otherLayers) == null ? void 0 : Te["eca-zones"],
|
|
7813
7871
|
"before-layer": t.beforeLayer
|
|
7814
7872
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7815
|
-
k(
|
|
7873
|
+
k(O, I({
|
|
7816
7874
|
map: t.map,
|
|
7817
|
-
zone: (
|
|
7875
|
+
zone: (Ae = i.otherLayers) == null ? void 0 : Ae["alert-zones"],
|
|
7818
7876
|
"before-layer": t.beforeLayer
|
|
7819
7877
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7820
|
-
k(
|
|
7878
|
+
k(F, I({
|
|
7821
7879
|
map: t.map,
|
|
7822
|
-
port: (
|
|
7880
|
+
port: (De = i.otherLayers) == null ? void 0 : De.ports,
|
|
7823
7881
|
"before-layer": t.beforeLayer
|
|
7824
7882
|
}, a.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
7825
|
-
k(
|
|
7883
|
+
k(H, I({
|
|
7826
7884
|
map: t.map,
|
|
7827
|
-
line: (
|
|
7885
|
+
line: (Me = i.otherLayers) == null ? void 0 : Me["load-lines"],
|
|
7828
7886
|
"before-layer": t.beforeLayer
|
|
7829
7887
|
}, a.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
7830
|
-
k(
|
|
7888
|
+
k(se, I({
|
|
7831
7889
|
map: t.map,
|
|
7832
|
-
zone: (
|
|
7890
|
+
zone: (je = i.otherLayers) == null ? void 0 : je["time-zones"],
|
|
7833
7891
|
"before-layer": t.beforeLayer
|
|
7834
7892
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7835
|
-
k(
|
|
7893
|
+
k(ne, I({
|
|
7836
7894
|
map: t.map,
|
|
7837
|
-
area: (
|
|
7895
|
+
area: (We = i.otherLayers) == null ? void 0 : We["voluntary-reporting-area"],
|
|
7838
7896
|
"before-layer": t.beforeLayer
|
|
7839
7897
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7840
|
-
k(
|
|
7898
|
+
k(le, I({
|
|
7841
7899
|
map: t.map,
|
|
7842
|
-
area: (
|
|
7900
|
+
area: (Be = i.otherLayers) == null ? void 0 : Be["special-area"],
|
|
7843
7901
|
"before-layer": t.beforeLayer
|
|
7844
7902
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7845
|
-
k(
|
|
7903
|
+
k(ce, I({
|
|
7846
7904
|
map: t.map,
|
|
7847
|
-
area: (
|
|
7905
|
+
area: (Ne = i.otherLayers) == null ? void 0 : Ne["day-night"]
|
|
7848
7906
|
}, a.$attrs), null, 16, ["map", "area"]),
|
|
7849
|
-
k(
|
|
7907
|
+
k(he, I({
|
|
7850
7908
|
map: t.map,
|
|
7851
7909
|
show: i.showCoord,
|
|
7852
7910
|
"toggle-version": t.toggleVersion
|
|
7853
7911
|
}, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
7854
|
-
k(
|
|
7912
|
+
k(de, I({
|
|
7855
7913
|
map: t.map,
|
|
7856
7914
|
show: i.showMeasure
|
|
7857
7915
|
}, a.$attrs), null, 16, ["map", "show"]),
|
|
7858
|
-
k(
|
|
7916
|
+
k(pe, I({
|
|
7859
7917
|
map: t.map,
|
|
7860
7918
|
show: i.showPoint,
|
|
7861
7919
|
meteo: i.meteo
|
|
7862
7920
|
}, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
|
|
7863
|
-
])) :
|
|
7921
|
+
])) : B("", !0);
|
|
7864
7922
|
}
|
|
7865
|
-
const
|
|
7923
|
+
const $i = /* @__PURE__ */ T(Ni, [["render", Fi]]), Yi = {
|
|
7866
7924
|
install(a) {
|
|
7867
|
-
a.component("MapboxGL",
|
|
7925
|
+
a.component("MapboxGL", $i), a.component("TropicalGL", Fe), a.component("LatLngGL", $e);
|
|
7868
7926
|
}
|
|
7869
7927
|
};
|
|
7870
7928
|
export {
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7929
|
+
$e as LatLngGL,
|
|
7930
|
+
$i as MapboxGL,
|
|
7931
|
+
Yi as MapboxGLPlugin,
|
|
7932
|
+
vt as MapboxHelper,
|
|
7875
7933
|
V as ParticleSchema,
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
|
|
7934
|
+
Fe as TropicalGL,
|
|
7935
|
+
Re as Viewport,
|
|
7936
|
+
fe as WebGL,
|
|
7879
7937
|
N as WebGLSchema
|
|
7880
7938
|
};
|