@idmwx/idmui-gl3 4.5.2 → 4.5.3
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 +233 -227
- package/dist/index.umd.cjs +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
var Ve = Object.defineProperty;
|
|
2
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
|
|
4
|
-
import { resolveComponent as P, openBlock as L, createElementBlock as x, createElementVNode as n, normalizeStyle as Z, createVNode as k, withCtx as H, normalizeClass as
|
|
3
|
+
var R = (a, e, t) => (Ue(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { resolveComponent as P, openBlock as L, createElementBlock as x, createElementVNode as n, normalizeStyle as Z, createVNode as k, withCtx as H, normalizeClass as A, Fragment as Ie, renderList as We, toDisplayString as S, createCommentVNode as M, createTextVNode as Ae, withDirectives as De, createStaticVNode as Ze, vShow as Me, defineComponent as He, mergeProps as E } from "vue";
|
|
5
5
|
import * as C from "@turf/turf";
|
|
6
6
|
import Ge from "@mapbox/sphericalmercator";
|
|
7
7
|
import G from "moment";
|
|
8
8
|
import ee from "mapbox-gl";
|
|
9
|
-
import { TropicalHelper as
|
|
9
|
+
import { TropicalHelper as Be, LngLatHelper as D, LaneHelper as K } from "@idm-plugin/geo";
|
|
10
10
|
import oe from "axios";
|
|
11
|
-
var
|
|
12
|
-
class
|
|
11
|
+
var Je = Object.defineProperty, Xe = (a, e, t) => e in a ? Je(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, ge = (a, e, t) => (Xe(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
12
|
+
class Ee {
|
|
13
13
|
}
|
|
14
|
-
ge(
|
|
14
|
+
ge(Ee, "LEVEL", {
|
|
15
15
|
Basic: 1,
|
|
16
16
|
Prime: 2,
|
|
17
17
|
Supper: 1024
|
|
18
18
|
});
|
|
19
|
-
class
|
|
19
|
+
class Re {
|
|
20
20
|
}
|
|
21
|
-
ge(
|
|
21
|
+
ge(Re, "WEATHER_LAYERS", [
|
|
22
22
|
{
|
|
23
23
|
weight: 1,
|
|
24
24
|
name: "Wind",
|
|
@@ -243,7 +243,7 @@ ge(Ee, "WEATHER_LAYERS", [
|
|
|
243
243
|
type: "jpg"
|
|
244
244
|
}
|
|
245
245
|
]), // 其它图层
|
|
246
|
-
ge(
|
|
246
|
+
ge(Re, "OTHER_LAYERS", [
|
|
247
247
|
{
|
|
248
248
|
weight: 1,
|
|
249
249
|
name: "War Zones",
|
|
@@ -355,9 +355,9 @@ ge(Ee, "OTHER_LAYERS", [
|
|
|
355
355
|
type: "origin"
|
|
356
356
|
}
|
|
357
357
|
]);
|
|
358
|
-
class
|
|
358
|
+
class je {
|
|
359
359
|
}
|
|
360
|
-
ge(
|
|
360
|
+
ge(je, "WEATHER_TAG", [
|
|
361
361
|
{
|
|
362
362
|
weight: 4,
|
|
363
363
|
// 2^2
|
|
@@ -383,7 +383,7 @@ ge(Oe, "WEATHER_TAG", [
|
|
|
383
383
|
positive: !0
|
|
384
384
|
}
|
|
385
385
|
]), // 航行相关标签, 2^11 <= weight <= 2^20
|
|
386
|
-
ge(
|
|
386
|
+
ge(je, "SAILING_TAG", [
|
|
387
387
|
{
|
|
388
388
|
weight: 2048,
|
|
389
389
|
// 2^11
|
|
@@ -425,7 +425,7 @@ ge(Oe, "SAILING_TAG", [
|
|
|
425
425
|
positive: !0
|
|
426
426
|
}
|
|
427
427
|
]), // 其他标签, 2^21 <= weight <= 2^31
|
|
428
|
-
ge(
|
|
428
|
+
ge(je, "OTHER_TAG", [
|
|
429
429
|
{
|
|
430
430
|
weight: 2097152,
|
|
431
431
|
// 2^21
|
|
@@ -527,9 +527,9 @@ const T = (a, e) => {
|
|
|
527
527
|
autoActive: !0,
|
|
528
528
|
layers: {
|
|
529
529
|
weather: [
|
|
530
|
-
...
|
|
530
|
+
...Re.WEATHER_LAYERS.filter((a) => !["swell-height", "swell-direction", "current-direction", "current-speed"].includes(a.key))
|
|
531
531
|
],
|
|
532
|
-
other: [...
|
|
532
|
+
other: [...Re.OTHER_LAYERS.filter((a) => a.key !== "world12nm" && a.enabled)]
|
|
533
533
|
},
|
|
534
534
|
activeWeatherLayers: [],
|
|
535
535
|
activeOtherLayers: [],
|
|
@@ -595,17 +595,21 @@ const T = (a, e) => {
|
|
|
595
595
|
);
|
|
596
596
|
this.layers.weather.forEach((r) => {
|
|
597
597
|
r.collected = !!t.some((i) => i.key === r.key && i.collected);
|
|
598
|
-
}), e = localStorage.getItem(this.activeWeatherLayersCache), t = JSON.parse(
|
|
599
|
-
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"}]'
|
|
600
|
-
), this.autoActive && (this.activeWeatherLayers = [...t]), t.some((r) => r.key === "wind" && r.particle) && this.$emit("toggleWindParticle", !0), localStorage.getItem(this.windFeatherCache) === "true" && this.$emit("toggleWindFeather", !0), t.some((r) => r.key === "current" && r.particle) && this.$emit("toggleCurrentParticle", !0), localStorage.getItem(this.currentIsobandCache) === "true" && this.$emit("toggleCurrentIsoband", !0), e = localStorage.getItem(this.activeOtherLayersCache), t = JSON.parse(e || '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}]'), this.activeOtherLayers = t, e = localStorage.getItem(this.sourceCache), this.source = e || "GFS";
|
|
598
|
+
}), e = localStorage.getItem(this.activeWeatherLayersCache), e || localStorage.setItem(this.activeWeatherLayersCache, JSON.stringify([{ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 }, { weight: 4096, name: "Pressure", key: "prmsl", enabled: !0, type: "json" }, { weight: 256, name: "Tropicals", key: "tropicals", enabled: !0, type: "json" }])), e = localStorage.getItem(this.activeWeatherLayersCache), t = JSON.parse(e), this.autoActive && (this.activeWeatherLayers = [...t]), t.some((r) => r.key === "wind" && r.particle) && this.$emit("toggleWindParticle", !0), localStorage.getItem(this.windFeatherCache) === "true" && this.$emit("toggleWindFeather", !0), t.some((r) => r.key === "current" && r.particle) && this.$emit("toggleCurrentParticle", !0), localStorage.getItem(this.currentIsobandCache) === "true" && this.$emit("toggleCurrentIsoband", !0), e = localStorage.getItem(this.activeOtherLayersCache), t = JSON.parse(e || '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}]'), this.activeOtherLayers = t, e = localStorage.getItem(this.sourceCache), this.source = e || "GFS";
|
|
601
599
|
},
|
|
602
600
|
handleConfirm() {
|
|
603
601
|
this.$emit("weather", this.activeWeatherLayers, this.source), this.$emit("other", this.activeOtherLayers), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
|
|
604
602
|
},
|
|
605
603
|
handleWeatherLayerPick(a) {
|
|
606
|
-
if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe" || !this.autoActive)
|
|
604
|
+
if (this.activeWeatherLayers = JSON.parse(localStorage.getItem(this.activeWeatherLayersCache)), this.rampColorLayers.includes(a.key) && this.mapProjection === "globe" || !this.autoActive)
|
|
607
605
|
return !1;
|
|
608
|
-
(a.key === "wind" && !this.showWindFeather || a.key === "current" && !this.showCurrentIsoband) && (a.particle = !0), this.activeWeatherLayers.some((e) => e.key === a.key) ? this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== a.key) : this.activeWeatherLayers.length <
|
|
606
|
+
(a.key === "wind" && !this.showWindFeather || a.key === "current" && !this.showCurrentIsoband) && (a.particle = !0), this.activeWeatherLayers.some((e) => e.key === a.key) ? this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== a.key) : this.activeWeatherLayers.length < 6 && a.enabled && (["png", "jpg"].includes(a.type) ? (this.activeWeatherLayers.forEach((e) => {
|
|
607
|
+
(e.key === "wind" && this.showWindFeather || a.key === "current" && this.showCurrentIsoband) && (e.particle = !1);
|
|
608
|
+
}), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json" && !(["wind", "current"].includes(e.key) && e.particle))) : a.key === "wind" ? (this.activeWeatherLayers.forEach((e) => {
|
|
609
|
+
e.key === "current" && this.showCurrentIsoband && (e.particle = !1);
|
|
610
|
+
}), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json" && !(["wind", "current"].includes(e.key) && e.particle))) : a.key === "current" && (this.activeWeatherLayers.forEach((e) => {
|
|
611
|
+
e.key === "wind" && this.showWindFeather && (e.particle = !1);
|
|
612
|
+
}), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json" && !(["wind", "current"].includes(e.key) && e.particle))), this.activeWeatherLayers.push(a)), this.$emit("weather", this.activeWeatherLayers, this.source), localStorage.setItem(this.activeWeatherLayersCache, JSON.stringify(this.activeWeatherLayers));
|
|
609
613
|
},
|
|
610
614
|
handleActiveWeatherLayerPick(a) {
|
|
611
615
|
if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe")
|
|
@@ -624,13 +628,13 @@ const T = (a, e) => {
|
|
|
624
628
|
!a.collected && ((e = this.layers.weather.filter((t) => t.collected)) == null ? void 0 : e.length) >= 6 && (this.layers.weather.filter((t) => t.collected)[0].collected = !1), a.collected = !a.collected, localStorage.setItem(this.collectedLayerCache, JSON.stringify(this.layers.weather)), this.$emit("handleToggleVersion");
|
|
625
629
|
},
|
|
626
630
|
handleToggleWindParticle() {
|
|
627
|
-
!this.showWindFeather && this.showWindParticle ? this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 }) : this.$emit("toggleWindParticle", !this.showWindParticle);
|
|
631
|
+
!this.showWindFeather && this.showWindParticle ? this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 }) : (this.showCurrentParticle && (this.$emit("toggleCurrentParticle", !1), this.showCurrentIsoband || (this.activeWeatherLayers = this.activeWeatherLayers.filter((a) => a.key !== "current"), localStorage.setItem(this.activeWeatherLayersCache, JSON.stringify(this.activeWeatherLayers)))), this.$emit("toggleWindParticle", !this.showWindParticle));
|
|
628
632
|
},
|
|
629
633
|
handleToggleWindFeather() {
|
|
630
634
|
this.showWindFeather && !this.showWindParticle && this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 }), this.$emit("toggleWindFeather", !this.showWindFeather), localStorage.setItem(this.windFeatherCache, !this.showWindFeather);
|
|
631
635
|
},
|
|
632
636
|
handleToggleCurrentParticle() {
|
|
633
|
-
!this.showCurrentIsoband && this.showCurrentParticle ? this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 }) : this.$emit("toggleCurrentParticle", !this.showCurrentParticle);
|
|
637
|
+
!this.showCurrentIsoband && this.showCurrentParticle ? this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 }) : (this.showWindParticle && (this.$emit("toggleWindParticle", !1), this.showWindFeather || (this.activeWeatherLayers = this.activeWeatherLayers.filter((a) => a.key !== "wind"), localStorage.setItem(this.activeWeatherLayersCache, JSON.stringify(this.activeWeatherLayers)))), this.$emit("toggleCurrentParticle", !this.showCurrentParticle));
|
|
634
638
|
},
|
|
635
639
|
handleToggleCurrentIsoband() {
|
|
636
640
|
this.showCurrentIsoband && !this.showCurrentParticle && this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 }), this.$emit("toggleCurrentIsoband", !this.showCurrentIsoband), localStorage.setItem(this.currentIsobandCache, !this.showCurrentIsoband);
|
|
@@ -710,7 +714,7 @@ function It(a, e, t, r, i, o) {
|
|
|
710
714
|
}, {
|
|
711
715
|
default: H(() => [
|
|
712
716
|
n("div", {
|
|
713
|
-
class:
|
|
717
|
+
class: A(t.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
714
718
|
onClick: e[0] || (e[0] = (...c) => o.handleMenuToggle && o.handleMenuToggle(...c))
|
|
715
719
|
}, e[17] || (e[17] = [
|
|
716
720
|
n("span", { class: "iconfont" }, "", -1)
|
|
@@ -733,7 +737,7 @@ function It(a, e, t, r, i, o) {
|
|
|
733
737
|
}, {
|
|
734
738
|
default: H(() => [
|
|
735
739
|
n("div", {
|
|
736
|
-
class:
|
|
740
|
+
class: A(i.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
737
741
|
onClick: e[1] || (e[1] = (...c) => o.handleMeasureToggle && o.handleMeasureToggle(...c))
|
|
738
742
|
}, e[18] || (e[18] = [
|
|
739
743
|
n("span", { class: "iconfont" }, "", -1)
|
|
@@ -749,7 +753,7 @@ function It(a, e, t, r, i, o) {
|
|
|
749
753
|
}, {
|
|
750
754
|
default: H(() => [
|
|
751
755
|
n("div", {
|
|
752
|
-
class:
|
|
756
|
+
class: A(i.showPoint ? "menu-icon active" : "menu-icon"),
|
|
753
757
|
onClick: e[2] || (e[2] = (...c) => o.handlePointToggle && o.handlePointToggle(...c))
|
|
754
758
|
}, e[19] || (e[19] = [
|
|
755
759
|
n("span", { class: "iconfont" }, "", -1)
|
|
@@ -765,7 +769,7 @@ function It(a, e, t, r, i, o) {
|
|
|
765
769
|
}, {
|
|
766
770
|
default: H(() => [
|
|
767
771
|
n("div", {
|
|
768
|
-
class:
|
|
772
|
+
class: A(i.showCoord ? "menu-icon active" : "menu-icon"),
|
|
769
773
|
onClick: e[3] || (e[3] = (...c) => o.handleCoordToggle && o.handleCoordToggle(...c))
|
|
770
774
|
}, e[20] || (e[20] = [
|
|
771
775
|
n("span", { class: "iconfont" }, "", -1)
|
|
@@ -781,7 +785,7 @@ function It(a, e, t, r, i, o) {
|
|
|
781
785
|
}, {
|
|
782
786
|
default: H(() => [
|
|
783
787
|
n("div", {
|
|
784
|
-
class:
|
|
788
|
+
class: A(i.show3d ? "menu-icon active" : "menu-icon"),
|
|
785
789
|
onClick: e[4] || (e[4] = (...c) => o.handle3DToggle && o.handle3DToggle(...c))
|
|
786
790
|
}, e[21] || (e[21] = [
|
|
787
791
|
n("span", { class: "iconfont" }, "", -1)
|
|
@@ -806,9 +810,9 @@ function It(a, e, t, r, i, o) {
|
|
|
806
810
|
i.autoActive ? (L(), x("i", tt, "")) : (L(), x("i", at, ""))
|
|
807
811
|
])
|
|
808
812
|
]),
|
|
809
|
-
(L(!0), x(Ie, null,
|
|
813
|
+
(L(!0), x(Ie, null, We(i.layers.weather.filter((c) => c.collected), (c) => (L(), x("div", {
|
|
810
814
|
key: c.key,
|
|
811
|
-
class:
|
|
815
|
+
class: A(o.computeLayerClass(c, i.activeWeatherLayers))
|
|
812
816
|
}, [
|
|
813
817
|
n("div", {
|
|
814
818
|
class: "checkbox",
|
|
@@ -820,21 +824,21 @@ function It(a, e, t, r, i, o) {
|
|
|
820
824
|
}, S(c.name), 9, rt),
|
|
821
825
|
c.key === "wind" && i.activeWeatherLayers.some((d) => d.key === c.key) ? (L(), x("div", ot, [
|
|
822
826
|
n("i", {
|
|
823
|
-
class:
|
|
827
|
+
class: A(["iconfont sub-layer-icon", t.showWindParticle ? "active" : ""]),
|
|
824
828
|
onClick: e[6] || (e[6] = (d) => o.handleToggleWindParticle())
|
|
825
829
|
}, "", 2),
|
|
826
830
|
n("i", {
|
|
827
|
-
class:
|
|
831
|
+
class: A(["iconfont sub-layer-icon", t.showWindFeather ? "active" : ""]),
|
|
828
832
|
onClick: e[7] || (e[7] = (d) => o.handleToggleWindFeather())
|
|
829
833
|
}, "", 2)
|
|
830
834
|
])) : M("", !0),
|
|
831
835
|
c.key === "current" && i.activeWeatherLayers.some((d) => d.key === c.key) ? (L(), x("div", st, [
|
|
832
836
|
n("i", {
|
|
833
|
-
class:
|
|
837
|
+
class: A(["iconfont sub-layer-icon", t.showCurrentParticle ? "active" : ""]),
|
|
834
838
|
onClick: e[8] || (e[8] = (d) => o.handleToggleCurrentParticle())
|
|
835
839
|
}, "", 2),
|
|
836
840
|
n("i", {
|
|
837
|
-
class:
|
|
841
|
+
class: A(["iconfont sub-layer-icon", t.showCurrentIsoband ? "active" : ""]),
|
|
838
842
|
onClick: e[9] || (e[9] = (d) => o.handleToggleCurrentIsoband())
|
|
839
843
|
}, "", 2)
|
|
840
844
|
])) : M("", !0)
|
|
@@ -845,7 +849,7 @@ function It(a, e, t, r, i, o) {
|
|
|
845
849
|
style: Z({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
|
|
846
850
|
}, [
|
|
847
851
|
n("div", {
|
|
848
|
-
class:
|
|
852
|
+
class: A(["list-box", t.layerToggle ? "right-bar" : ""])
|
|
849
853
|
}, [
|
|
850
854
|
n("div", nt, [
|
|
851
855
|
e[23] || (e[23] = n("div", null, "Layers", -1)),
|
|
@@ -868,12 +872,12 @@ function It(a, e, t, r, i, o) {
|
|
|
868
872
|
])
|
|
869
873
|
]),
|
|
870
874
|
n("div", pt, [
|
|
871
|
-
(L(!0), x(Ie, null,
|
|
875
|
+
(L(!0), x(Ie, null, We(i.layers.weather, (c) => (L(), x(Ie, {
|
|
872
876
|
key: c.key
|
|
873
877
|
}, [
|
|
874
878
|
c.hide ? M("", !0) : (L(), x("div", {
|
|
875
879
|
key: 0,
|
|
876
|
-
class:
|
|
880
|
+
class: A(o.computeLayerClass(c, i.activeWeatherLayers))
|
|
877
881
|
}, [
|
|
878
882
|
n("div", mt, [
|
|
879
883
|
n("div", {
|
|
@@ -886,21 +890,21 @@ function It(a, e, t, r, i, o) {
|
|
|
886
890
|
}, S(c.name), 9, yt),
|
|
887
891
|
c.key === "wind" && i.activeWeatherLayers.some((d) => d.key === c.key) ? (L(), x("div", ft, [
|
|
888
892
|
n("i", {
|
|
889
|
-
class:
|
|
893
|
+
class: A(["iconfont sub-layer-icon", t.showWindParticle ? "active" : ""]),
|
|
890
894
|
onClick: e[12] || (e[12] = (d) => o.handleToggleWindParticle())
|
|
891
895
|
}, "", 2),
|
|
892
896
|
n("i", {
|
|
893
|
-
class:
|
|
897
|
+
class: A(["iconfont sub-layer-icon", t.showWindFeather ? "active" : ""]),
|
|
894
898
|
onClick: e[13] || (e[13] = (d) => o.handleToggleWindFeather())
|
|
895
899
|
}, "", 2)
|
|
896
900
|
])) : M("", !0),
|
|
897
901
|
c.key === "current" && i.activeWeatherLayers.some((d) => d.key === c.key) ? (L(), x("div", gt, [
|
|
898
902
|
n("i", {
|
|
899
|
-
class:
|
|
903
|
+
class: A(["iconfont sub-layer-icon", t.showCurrentParticle ? "active" : ""]),
|
|
900
904
|
onClick: e[14] || (e[14] = (d) => o.handleToggleCurrentParticle())
|
|
901
905
|
}, "", 2),
|
|
902
906
|
n("i", {
|
|
903
|
-
class:
|
|
907
|
+
class: A(["iconfont sub-layer-icon", t.showCurrentIsoband ? "active" : ""]),
|
|
904
908
|
onClick: e[15] || (e[15] = (d) => o.handleToggleCurrentIsoband())
|
|
905
909
|
}, "", 2)
|
|
906
910
|
])) : M("", !0)
|
|
@@ -924,11 +928,11 @@ function It(a, e, t, r, i, o) {
|
|
|
924
928
|
n("div", Lt, [
|
|
925
929
|
e[26] || (e[26] = n("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
926
930
|
n("div", xt, [
|
|
927
|
-
(L(!0), x(Ie, null,
|
|
931
|
+
(L(!0), x(Ie, null, We(i.layers.other, (c) => {
|
|
928
932
|
var d;
|
|
929
933
|
return L(), x("div", {
|
|
930
934
|
key: c.key,
|
|
931
|
-
class:
|
|
935
|
+
class: A(["layer flex-between", o.computeLayerClass(c, i.activeOtherLayers)]),
|
|
932
936
|
onClick: (f) => o.handleOtherLayerPick(c)
|
|
933
937
|
}, [
|
|
934
938
|
n("div", Ct, [
|
|
@@ -952,13 +956,13 @@ function It(a, e, t, r, i, o) {
|
|
|
952
956
|
default: H(() => [
|
|
953
957
|
k(l, { value: "GFS" }, {
|
|
954
958
|
default: H(() => e[27] || (e[27] = [
|
|
955
|
-
|
|
959
|
+
Ae("GFS")
|
|
956
960
|
])),
|
|
957
961
|
_: 1
|
|
958
962
|
}),
|
|
959
963
|
k(l, { value: "CMEMS" }, {
|
|
960
964
|
default: H(() => e[28] || (e[28] = [
|
|
961
|
-
|
|
965
|
+
Ae("CMEMS")
|
|
962
966
|
])),
|
|
963
967
|
_: 1
|
|
964
968
|
})
|
|
@@ -974,8 +978,8 @@ function It(a, e, t, r, i, o) {
|
|
|
974
978
|
], 4)
|
|
975
979
|
]);
|
|
976
980
|
}
|
|
977
|
-
const
|
|
978
|
-
const
|
|
981
|
+
const Et = /* @__PURE__ */ T(Ye, [["render", It]]);
|
|
982
|
+
const Rt = {
|
|
979
983
|
name: "IdmWindBarb",
|
|
980
984
|
props: {
|
|
981
985
|
map: {
|
|
@@ -1122,23 +1126,23 @@ const Et = {
|
|
|
1122
1126
|
this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
|
|
1123
1127
|
}
|
|
1124
1128
|
}
|
|
1125
|
-
},
|
|
1126
|
-
function
|
|
1129
|
+
}, Wt = { key: 0 };
|
|
1130
|
+
function At(a, e, t, r, i, o) {
|
|
1127
1131
|
var s;
|
|
1128
|
-
return (s = t.wind) != null && s.active ? (L(), x("div",
|
|
1132
|
+
return (s = t.wind) != null && s.active ? (L(), x("div", Wt)) : M("", !0);
|
|
1129
1133
|
}
|
|
1130
|
-
const
|
|
1131
|
-
class
|
|
1134
|
+
const Dt = /* @__PURE__ */ T(Rt, [["render", At]]);
|
|
1135
|
+
class Ne {
|
|
1132
1136
|
constructor(e) {
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1137
|
+
R(this, "map");
|
|
1138
|
+
R(this, "mercator");
|
|
1139
|
+
R(this, "rampColorLayer");
|
|
1140
|
+
R(this, "rampColorSource");
|
|
1141
|
+
R(this, "particleLayer");
|
|
1142
|
+
R(this, "particleSource");
|
|
1143
|
+
R(this, "rampColorCanvas");
|
|
1144
|
+
R(this, "particleCanvas");
|
|
1145
|
+
R(this, "ratio");
|
|
1142
1146
|
this.map = e, this.mercator = new Ge(), 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;
|
|
1143
1147
|
}
|
|
1144
1148
|
/**
|
|
@@ -1352,8 +1356,8 @@ class fe {
|
|
|
1352
1356
|
}
|
|
1353
1357
|
const m = e.getBoundPixel(), b = e.map.getZoom() + 1, y = e.getWorldCopy(m, b);
|
|
1354
1358
|
for (const u of y) {
|
|
1355
|
-
const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio, _ = u[2] * e.ratio, [z, w,
|
|
1356
|
-
t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER,
|
|
1359
|
+
const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio, _ = u[2] * e.ratio, [z, w, W, O] = [v, _ + v, g, _ + g], j = new Float32Array([z, W, w, W, z, O, z, O, w, W, w, O]);
|
|
1360
|
+
t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER, j, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
1357
1361
|
}
|
|
1358
1362
|
} catch (c) {
|
|
1359
1363
|
console.log(`render failed...${c}`);
|
|
@@ -1401,10 +1405,10 @@ class fe {
|
|
|
1401
1405
|
});
|
|
1402
1406
|
}
|
|
1403
1407
|
}
|
|
1404
|
-
class
|
|
1408
|
+
class N {
|
|
1405
1409
|
}
|
|
1406
1410
|
// 顶点渲染
|
|
1407
|
-
|
|
1411
|
+
R(N, "vertexSchema", `
|
|
1408
1412
|
//canvas 坐标系上的坐标 (x, y)
|
|
1409
1413
|
attribute vec2 a_position; //像素坐标
|
|
1410
1414
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -1419,7 +1423,7 @@ E(B, "vertexSchema", `
|
|
|
1419
1423
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
1420
1424
|
v_texCoord = a_texCoord;
|
|
1421
1425
|
}`), // 类如风、流等u v双变量片元渲染
|
|
1422
|
-
|
|
1426
|
+
R(N, "uvFragmentSchema", `
|
|
1423
1427
|
precision mediump float;
|
|
1424
1428
|
uniform sampler2D u_image;
|
|
1425
1429
|
uniform vec2 u_range_u_v;
|
|
@@ -1438,7 +1442,7 @@ E(B, "uvFragmentSchema", `
|
|
|
1438
1442
|
|
|
1439
1443
|
gl_FragColor = color;
|
|
1440
1444
|
}`), // 类如浪、气压等单变量片元渲染
|
|
1441
|
-
|
|
1445
|
+
R(N, "fragmentSchema", `
|
|
1442
1446
|
precision mediump float;
|
|
1443
1447
|
uniform sampler2D u_image; // 灰度
|
|
1444
1448
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -1451,7 +1455,7 @@ E(B, "fragmentSchema", `
|
|
|
1451
1455
|
}`);
|
|
1452
1456
|
class U {
|
|
1453
1457
|
}
|
|
1454
|
-
|
|
1458
|
+
R(U, "vertexSchema", `
|
|
1455
1459
|
precision mediump float;
|
|
1456
1460
|
|
|
1457
1461
|
attribute float a_index; // 索引
|
|
@@ -1475,7 +1479,7 @@ E(U, "vertexSchema", `
|
|
|
1475
1479
|
gl_PointSize = 1.0;
|
|
1476
1480
|
// gl_PointSize = u_point;
|
|
1477
1481
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
1478
|
-
}`),
|
|
1482
|
+
}`), R(U, "fragmentSchema", `
|
|
1479
1483
|
precision mediump float;
|
|
1480
1484
|
|
|
1481
1485
|
uniform sampler2D u_factor;
|
|
@@ -1497,7 +1501,7 @@ E(U, "vertexSchema", `
|
|
|
1497
1501
|
|
|
1498
1502
|
float f = 1.0 - uv.b;
|
|
1499
1503
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
1500
|
-
}`),
|
|
1504
|
+
}`), R(U, "quadVertSchema", `
|
|
1501
1505
|
precision mediump float;
|
|
1502
1506
|
|
|
1503
1507
|
attribute vec2 a_pos;
|
|
@@ -1507,7 +1511,7 @@ E(U, "vertexSchema", `
|
|
|
1507
1511
|
void main() {
|
|
1508
1512
|
v_tex_pos = a_pos;
|
|
1509
1513
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
1510
|
-
}`),
|
|
1514
|
+
}`), R(U, "screenFragmentSchema", `
|
|
1511
1515
|
precision mediump float;
|
|
1512
1516
|
|
|
1513
1517
|
uniform sampler2D u_screen;
|
|
@@ -1519,7 +1523,7 @@ E(U, "vertexSchema", `
|
|
|
1519
1523
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
1520
1524
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
1521
1525
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
1522
|
-
}`),
|
|
1526
|
+
}`), R(U, "updateFragmentSchema", `
|
|
1523
1527
|
precision mediump float;
|
|
1524
1528
|
|
|
1525
1529
|
uniform sampler2D u_particles;
|
|
@@ -1600,12 +1604,12 @@ E(U, "vertexSchema", `
|
|
|
1600
1604
|
}`);
|
|
1601
1605
|
class Mt {
|
|
1602
1606
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1607
|
+
R(this, "token");
|
|
1608
|
+
R(this, "mapboxCustomer");
|
|
1609
|
+
R(this, "i4");
|
|
1610
|
+
R(this, "hi");
|
|
1611
|
+
R(this, "td");
|
|
1612
|
+
R(this, "windy");
|
|
1609
1613
|
this.token = e, this.mapboxCustomer = {
|
|
1610
1614
|
source: this.initialOnlineStyle().sources.composite,
|
|
1611
1615
|
layers: {
|
|
@@ -3202,14 +3206,14 @@ class Mt {
|
|
|
3202
3206
|
};
|
|
3203
3207
|
}
|
|
3204
3208
|
}
|
|
3205
|
-
const
|
|
3209
|
+
const Ot = {
|
|
3206
3210
|
name: "IdmWindParticle",
|
|
3207
3211
|
props: {
|
|
3208
3212
|
factor: {
|
|
3209
3213
|
type: Object
|
|
3210
3214
|
},
|
|
3211
3215
|
viewport: {
|
|
3212
|
-
type:
|
|
3216
|
+
type: Ne
|
|
3213
3217
|
},
|
|
3214
3218
|
bottom: {
|
|
3215
3219
|
type: String,
|
|
@@ -3316,7 +3320,7 @@ const jt = {
|
|
|
3316
3320
|
[1, "rgb(91, 136, 161)"]
|
|
3317
3321
|
];
|
|
3318
3322
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3319
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3323
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
|
|
3320
3324
|
this.program = e, this.aPositionBuffer = t;
|
|
3321
3325
|
}
|
|
3322
3326
|
this.handleParticleSetup();
|
|
@@ -3364,10 +3368,10 @@ const jt = {
|
|
|
3364
3368
|
});
|
|
3365
3369
|
}
|
|
3366
3370
|
}
|
|
3367
|
-
},
|
|
3368
|
-
function
|
|
3371
|
+
}, jt = { key: 0 };
|
|
3372
|
+
function Nt(a, e, t, r, i, o) {
|
|
3369
3373
|
var s;
|
|
3370
|
-
return (s = t.factor) != null && s.active ? (L(), x("div",
|
|
3374
|
+
return (s = t.factor) != null && s.active ? (L(), x("div", jt, [
|
|
3371
3375
|
n("div", {
|
|
3372
3376
|
class: "legend-bars flex-center",
|
|
3373
3377
|
style: Z([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -3383,7 +3387,7 @@ function Bt(a, e, t, r, i, o) {
|
|
|
3383
3387
|
]), 4)
|
|
3384
3388
|
])) : M("", !0);
|
|
3385
3389
|
}
|
|
3386
|
-
const
|
|
3390
|
+
const Bt = /* @__PURE__ */ T(Ot, [["render", Nt], ["__scopeId", "data-v-24e5434b"]]);
|
|
3387
3391
|
const Ft = {
|
|
3388
3392
|
name: "IdmCurrent",
|
|
3389
3393
|
props: {
|
|
@@ -3550,7 +3554,7 @@ const Zt = {
|
|
|
3550
3554
|
type: Object
|
|
3551
3555
|
},
|
|
3552
3556
|
viewport: {
|
|
3553
|
-
type:
|
|
3557
|
+
type: Ne
|
|
3554
3558
|
},
|
|
3555
3559
|
bottom: {
|
|
3556
3560
|
type: String,
|
|
@@ -3648,7 +3652,7 @@ const Zt = {
|
|
|
3648
3652
|
[1, "rgb(195,194,194)"]
|
|
3649
3653
|
];
|
|
3650
3654
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3651
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3655
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
|
|
3652
3656
|
this.program = e, this.aPositionBuffer = t;
|
|
3653
3657
|
}
|
|
3654
3658
|
this.handleParticleSetup();
|
|
@@ -3718,7 +3722,7 @@ function Gt(a, e, t, r, i, o) {
|
|
|
3718
3722
|
]), 4)
|
|
3719
3723
|
])) : M("", !0);
|
|
3720
3724
|
}
|
|
3721
|
-
const
|
|
3725
|
+
const Jt = /* @__PURE__ */ T(Zt, [["render", Gt], ["__scopeId", "data-v-6d4fd206"]]), Xt = {
|
|
3722
3726
|
name: "IdmSigWave",
|
|
3723
3727
|
props: {
|
|
3724
3728
|
map: {
|
|
@@ -3840,7 +3844,7 @@ const Xt = /* @__PURE__ */ T(Zt, [["render", Gt], ["__scopeId", "data-v-6d4fd206
|
|
|
3840
3844
|
function Yt(a, e, t, r, i, o) {
|
|
3841
3845
|
return L(), x("div");
|
|
3842
3846
|
}
|
|
3843
|
-
const qt = /* @__PURE__ */ T(
|
|
3847
|
+
const qt = /* @__PURE__ */ T(Xt, [["render", Yt]]), Qt = {
|
|
3844
3848
|
name: "IdmSwell",
|
|
3845
3849
|
props: {
|
|
3846
3850
|
map: {
|
|
@@ -4219,7 +4223,7 @@ const na = {
|
|
|
4219
4223
|
emits: ["tropical", "tropicalProbability"],
|
|
4220
4224
|
data() {
|
|
4221
4225
|
return {
|
|
4222
|
-
helper:
|
|
4226
|
+
helper: Ee,
|
|
4223
4227
|
source: "tropicals-source",
|
|
4224
4228
|
clusterSource: "tropicals-cluster-source",
|
|
4225
4229
|
historyLayer: "tropicals-history-layer",
|
|
@@ -4569,7 +4573,7 @@ const na = {
|
|
|
4569
4573
|
}), m = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m));
|
|
4570
4574
|
}
|
|
4571
4575
|
this.handleDrawCircle();
|
|
4572
|
-
const c =
|
|
4576
|
+
const c = Be.interpolate(this.tropicals, 1);
|
|
4573
4577
|
this.interpolateData = JSON.parse(JSON.stringify(c)), this.interpolateData.filter((d) => d.properties.name === "kristy" && d.properties.model === "ecmwf"), this.handleDateChange();
|
|
4574
4578
|
}
|
|
4575
4579
|
},
|
|
@@ -4578,9 +4582,9 @@ const na = {
|
|
|
4578
4582
|
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));
|
|
4579
4583
|
},
|
|
4580
4584
|
handleDateChange() {
|
|
4581
|
-
var a, e, t, r, i, o, s, l, h, p, c, d, f, m, b, y, u, v, g, _, z, w,
|
|
4582
|
-
if ((a = this.interpolateMarkers) == null || a.forEach((
|
|
4583
|
-
const
|
|
4585
|
+
var a, e, t, r, i, o, s, l, h, p, c, d, f, m, b, y, u, v, g, _, z, w, W, O, j, B, F, J, se, ne, le, ce, he, de, pe, te;
|
|
4586
|
+
if ((a = this.interpolateMarkers) == null || a.forEach((X) => X == null ? void 0 : X.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
4587
|
+
const X = G(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), Y = this.interpolateData.filter((I) => I.properties.date === X.format() && !I.properties.disabled), me = this.handleComputePolygons(Y), q = C.featureCollection([...Y]);
|
|
4584
4588
|
me.forEach((I) => {
|
|
4585
4589
|
q.features.push(I);
|
|
4586
4590
|
}), (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, {
|
|
@@ -4600,7 +4604,7 @@ const na = {
|
|
|
4600
4604
|
for (const I of Y)
|
|
4601
4605
|
if (!I.properties.disabled) {
|
|
4602
4606
|
let $ = "#f44336";
|
|
4603
|
-
((l = (s = I.properties) == null ? void 0 : s.wind) == null ? void 0 : l.spd) < 17.2 || !((p = (h = I.properties) == null ? void 0 : h.wind) != null && p.spd) ? $ = "#03f869" : ((d = (c = I.properties) == null ? void 0 : c.wind) == null ? void 0 : d.spd) >= 17.2 && ((m = (f = I.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? $ = "#f2f202" : ((y = (b = I.properties) == null ? void 0 : b.wind) == null ? void 0 : y.spd) >= 24.5 && ((v = (u = I.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) < 32.7 ? $ = "#ff9100" : ((_ = (g = I.properties) == null ? void 0 : g.wind) == null ? void 0 : _.spd) >= 32.7 && ((w = (z = I.properties) == null ? void 0 : z.wind) == null ? void 0 : w.spd) < 41.5 ? $ = "#f44336" : ((
|
|
4607
|
+
((l = (s = I.properties) == null ? void 0 : s.wind) == null ? void 0 : l.spd) < 17.2 || !((p = (h = I.properties) == null ? void 0 : h.wind) != null && p.spd) ? $ = "#03f869" : ((d = (c = I.properties) == null ? void 0 : c.wind) == null ? void 0 : d.spd) >= 17.2 && ((m = (f = I.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? $ = "#f2f202" : ((y = (b = I.properties) == null ? void 0 : b.wind) == null ? void 0 : y.spd) >= 24.5 && ((v = (u = I.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) < 32.7 ? $ = "#ff9100" : ((_ = (g = I.properties) == null ? void 0 : g.wind) == null ? void 0 : _.spd) >= 32.7 && ((w = (z = I.properties) == null ? void 0 : z.wind) == null ? void 0 : w.spd) < 41.5 ? $ = "#f44336" : ((O = (W = I.properties) == null ? void 0 : W.wind) == null ? void 0 : O.spd) >= 41.5 && ((B = (j = I.properties) == null ? void 0 : j.wind) == null ? void 0 : B.spd) < 51 ? $ = "#f903d0" : ((J = (F = I.properties) == null ? void 0 : F.wind) == null ? void 0 : J.spd) >= 51 ? $ = "#8702f9" : $ = "#f44336";
|
|
4604
4608
|
const ue = `<svg t="1719918955501"
|
|
4605
4609
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
4606
4610
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -4761,7 +4765,7 @@ const na = {
|
|
|
4761
4765
|
}, wa = { class: "forecast-models" }, La = ["onClick"], xa = { class: "more" };
|
|
4762
4766
|
function _a(a, e, t, r, i, o) {
|
|
4763
4767
|
var s, l, h, p, c, d, f, m, b, y, u, v, g, _, z;
|
|
4764
|
-
return
|
|
4768
|
+
return De((L(), x("div", la, [
|
|
4765
4769
|
n("div", ca, [
|
|
4766
4770
|
n("div", {
|
|
4767
4771
|
class: "iconfont close-btn",
|
|
@@ -4769,7 +4773,7 @@ function _a(a, e, t, r, i, o) {
|
|
|
4769
4773
|
}, ""),
|
|
4770
4774
|
n("div", ha, [
|
|
4771
4775
|
(l = (s = i.activeTropicals) == null ? void 0 : s.history) != null && l.level ? (L(), x("span", da, S((p = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : p.level) + " , ", 1)) : M("", !0),
|
|
4772
|
-
|
|
4776
|
+
Ae(S((c = i.activeTropicals) == null ? void 0 : c.name), 1)
|
|
4773
4777
|
]),
|
|
4774
4778
|
n("div", pa, " Last update: " + S(o.computeTime(((f = (d = i.activeTropicals) == null ? void 0 : d.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)
|
|
4775
4779
|
]),
|
|
@@ -4789,19 +4793,19 @@ function _a(a, e, t, r, i, o) {
|
|
|
4789
4793
|
n("div", va, [
|
|
4790
4794
|
e[4] || (e[4] = n("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
4791
4795
|
n("div", wa, [
|
|
4792
|
-
(L(!0), x(Ie, null,
|
|
4793
|
-
var
|
|
4796
|
+
(L(!0), x(Ie, null, We((z = i.activeTropicals) == null ? void 0 : z.forecasts, (w, W) => {
|
|
4797
|
+
var O, j, B, F;
|
|
4794
4798
|
return L(), x("div", {
|
|
4795
|
-
key:
|
|
4796
|
-
class:
|
|
4799
|
+
key: W,
|
|
4800
|
+
class: A([
|
|
4797
4801
|
"model",
|
|
4798
4802
|
w.disabled ? "" : "active",
|
|
4799
|
-
|
|
4803
|
+
W > 0 && W < ((j = (O = i.activeTropicals) == null ? void 0 : O.forecasts) == null ? void 0 : j.length) - 1 && ((F = (B = i.activeTropicals) == null ? void 0 : B.forecasts) == null ? void 0 : F.length) > 2 ? "center-child" : ""
|
|
4800
4804
|
]),
|
|
4801
|
-
onClick: (
|
|
4805
|
+
onClick: (J) => o.handleForecastToggle(w)
|
|
4802
4806
|
}, [
|
|
4803
4807
|
n("span", {
|
|
4804
|
-
class:
|
|
4808
|
+
class: A(w.model)
|
|
4805
4809
|
}, S(w.model), 3)
|
|
4806
4810
|
], 10, La);
|
|
4807
4811
|
}), 128))
|
|
@@ -4910,7 +4914,7 @@ const Ca = {
|
|
|
4910
4914
|
[1, "rgba(197,5,58,0.8)"]
|
|
4911
4915
|
];
|
|
4912
4916
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4913
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4917
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
|
|
4914
4918
|
this.program = e, this.aPositionBuffer = t;
|
|
4915
4919
|
}
|
|
4916
4920
|
},
|
|
@@ -5024,7 +5028,7 @@ const za = {
|
|
|
5024
5028
|
[1, "rgba(144,144,144,0)"]
|
|
5025
5029
|
];
|
|
5026
5030
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
5027
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
5031
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
|
|
5028
5032
|
this.program = e, this.aPositionBuffer = t;
|
|
5029
5033
|
}
|
|
5030
5034
|
},
|
|
@@ -5054,8 +5058,8 @@ function Ia(a, e, t, r, i, o) {
|
|
|
5054
5058
|
]), 4)
|
|
5055
5059
|
])) : M("", !0);
|
|
5056
5060
|
}
|
|
5057
|
-
const
|
|
5058
|
-
const
|
|
5061
|
+
const Ea = /* @__PURE__ */ T(za, [["render", Ia], ["__scopeId", "data-v-f7b2fb08"]]);
|
|
5062
|
+
const Ra = {
|
|
5059
5063
|
name: "IdmWaterTemp",
|
|
5060
5064
|
props: {
|
|
5061
5065
|
factor: {
|
|
@@ -5144,7 +5148,7 @@ const Ea = {
|
|
|
5144
5148
|
//
|
|
5145
5149
|
];
|
|
5146
5150
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
5147
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
5151
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
|
|
5148
5152
|
this.program = e, this.aPositionBuffer = t;
|
|
5149
5153
|
}
|
|
5150
5154
|
},
|
|
@@ -5157,10 +5161,10 @@ const Ea = {
|
|
|
5157
5161
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
5158
5162
|
}
|
|
5159
5163
|
}
|
|
5160
|
-
},
|
|
5161
|
-
function
|
|
5164
|
+
}, Wa = { key: 0 };
|
|
5165
|
+
function Aa(a, e, t, r, i, o) {
|
|
5162
5166
|
var s;
|
|
5163
|
-
return (s = t.factor) != null && s.active ? (L(), x("div",
|
|
5167
|
+
return (s = t.factor) != null && s.active ? (L(), x("div", Wa, [
|
|
5164
5168
|
n("div", {
|
|
5165
5169
|
class: "legend-bars flex-center",
|
|
5166
5170
|
style: Z([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -5174,7 +5178,7 @@ function Da(a, e, t, r, i, o) {
|
|
|
5174
5178
|
]), 4)
|
|
5175
5179
|
])) : M("", !0);
|
|
5176
5180
|
}
|
|
5177
|
-
const
|
|
5181
|
+
const Da = /* @__PURE__ */ T(Ra, [["render", Aa], ["__scopeId", "data-v-7521f582"]]);
|
|
5178
5182
|
const Ma = {
|
|
5179
5183
|
name: "IdmTemp",
|
|
5180
5184
|
props: {
|
|
@@ -5267,7 +5271,7 @@ const Ma = {
|
|
|
5267
5271
|
[1, "rgb(138, 43, 10)"]
|
|
5268
5272
|
];
|
|
5269
5273
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
5270
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
5274
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
|
|
5271
5275
|
this.program = e, this.aPositionBuffer = t;
|
|
5272
5276
|
}
|
|
5273
5277
|
},
|
|
@@ -5280,10 +5284,10 @@ const Ma = {
|
|
|
5280
5284
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
5281
5285
|
}
|
|
5282
5286
|
}
|
|
5283
|
-
},
|
|
5284
|
-
function
|
|
5287
|
+
}, Oa = { key: 0 };
|
|
5288
|
+
function ja(a, e, t, r, i, o) {
|
|
5285
5289
|
var s;
|
|
5286
|
-
return (s = t.factor) != null && s.active ? (L(), x("div",
|
|
5290
|
+
return (s = t.factor) != null && s.active ? (L(), x("div", Oa, [
|
|
5287
5291
|
n("div", {
|
|
5288
5292
|
class: "legend-bars flex-center",
|
|
5289
5293
|
style: Z([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
@@ -5299,8 +5303,8 @@ function Oa(a, e, t, r, i, o) {
|
|
|
5299
5303
|
]), 4)
|
|
5300
5304
|
])) : M("", !0);
|
|
5301
5305
|
}
|
|
5302
|
-
const
|
|
5303
|
-
const
|
|
5306
|
+
const Na = /* @__PURE__ */ T(Ma, [["render", ja], ["__scopeId", "data-v-25daaa82"]]);
|
|
5307
|
+
const Ba = {
|
|
5304
5308
|
name: "IdmArctic",
|
|
5305
5309
|
props: {
|
|
5306
5310
|
factor: {
|
|
@@ -5383,7 +5387,7 @@ const Na = {
|
|
|
5383
5387
|
// 2m
|
|
5384
5388
|
];
|
|
5385
5389
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
5386
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
5390
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
|
|
5387
5391
|
this.program = e, this.aPositionBuffer = t;
|
|
5388
5392
|
}
|
|
5389
5393
|
},
|
|
@@ -5413,7 +5417,7 @@ function $a(a, e, t, r, i, o) {
|
|
|
5413
5417
|
]), 4)
|
|
5414
5418
|
])) : M("", !0);
|
|
5415
5419
|
}
|
|
5416
|
-
const Va = /* @__PURE__ */ T(
|
|
5420
|
+
const Va = /* @__PURE__ */ T(Ba, [["render", $a], ["__scopeId", "data-v-5bb73794"]]);
|
|
5417
5421
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
5418
5422
|
var Ua = /* @__PURE__ */ He({
|
|
5419
5423
|
name: "LocationFilled",
|
|
@@ -5453,7 +5457,7 @@ const Ha = {
|
|
|
5453
5457
|
return {
|
|
5454
5458
|
showMeteo: !0,
|
|
5455
5459
|
meteoMarker: void 0,
|
|
5456
|
-
helper:
|
|
5460
|
+
helper: Ee
|
|
5457
5461
|
};
|
|
5458
5462
|
},
|
|
5459
5463
|
watch: {
|
|
@@ -5485,17 +5489,17 @@ const Ha = {
|
|
|
5485
5489
|
},
|
|
5486
5490
|
computeLat() {
|
|
5487
5491
|
return function(a, e = 4) {
|
|
5488
|
-
return
|
|
5492
|
+
return D.lat2pretty(a, e).pretty;
|
|
5489
5493
|
};
|
|
5490
5494
|
},
|
|
5491
5495
|
computeLng() {
|
|
5492
5496
|
return function(a, e = 4) {
|
|
5493
|
-
return
|
|
5497
|
+
return D.lng2pretty(a, e).pretty;
|
|
5494
5498
|
};
|
|
5495
5499
|
},
|
|
5496
5500
|
roundPrecision() {
|
|
5497
5501
|
return function(a, e = 4) {
|
|
5498
|
-
return isNaN(a) ? "-" :
|
|
5502
|
+
return isNaN(a) ? "-" : D.roundPrecision(a, e);
|
|
5499
5503
|
};
|
|
5500
5504
|
}
|
|
5501
5505
|
},
|
|
@@ -5520,13 +5524,13 @@ const Ha = {
|
|
|
5520
5524
|
}, Ga = {
|
|
5521
5525
|
id: "point-meteo",
|
|
5522
5526
|
class: "point-meteo"
|
|
5523
|
-
},
|
|
5527
|
+
}, Ja = { class: "meteo-box" }, Xa = { class: "header-box flex-between" }, Ya = { class: "flex-center" }, qa = { class: "lnglat" }, Qa = { class: "main-box" }, Ka = { class: "summary-row flex-between" }, ei = { class: "summary flex-center" }, ti = { class: "temp" }, ai = { class: "des info" }, ii = { class: "flex-start" }, ri = { class: "flex-start" }, oi = { class: "date flex-col-center-end" }, si = { class: "" }, ni = { class: "" }, li = { class: "row flex-space" }, ci = { class: "row flex-space" }, hi = { class: "row flex-space" }, di = { class: "row flex-space" }, pi = { class: "row flex-space" }, mi = { class: "row flex-space" }, ui = { class: "row flex-space" };
|
|
5524
5528
|
function yi(a, e, t, r, i, o) {
|
|
5525
|
-
var h, p, c, d, f, m, b, y, u, v, g, _, z, w,
|
|
5529
|
+
var h, p, c, d, f, m, b, y, u, v, g, _, z, w, W, O, j, B, F, J, se, ne, le, ce, he, de, pe, te, X, Y, me, q, I, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe, _e, Ce, ke, Se, Pe, ze, Te;
|
|
5526
5530
|
const s = P("LocationFilled"), l = P("ElIcon");
|
|
5527
|
-
return
|
|
5528
|
-
n("div",
|
|
5529
|
-
n("div",
|
|
5531
|
+
return De((L(), x("div", Ga, [
|
|
5532
|
+
n("div", Ja, [
|
|
5533
|
+
n("div", Xa, [
|
|
5530
5534
|
n("div", Ya, [
|
|
5531
5535
|
k(l, { size: "22" }, {
|
|
5532
5536
|
default: H(() => [
|
|
@@ -5538,7 +5542,7 @@ function yi(a, e, t, r, i, o) {
|
|
|
5538
5542
|
]),
|
|
5539
5543
|
n("div", {
|
|
5540
5544
|
class: "iconfont close",
|
|
5541
|
-
onClick: e[0] || (e[0] = (
|
|
5545
|
+
onClick: e[0] || (e[0] = (Oe) => i.showMeteo = !1)
|
|
5542
5546
|
}, "")
|
|
5543
5547
|
]),
|
|
5544
5548
|
n("div", Qa, [
|
|
@@ -5550,7 +5554,7 @@ function yi(a, e, t, r, i, o) {
|
|
|
5550
5554
|
}, "", -1)),
|
|
5551
5555
|
n("div", ti, [
|
|
5552
5556
|
n("span", null, [
|
|
5553
|
-
|
|
5557
|
+
Ae(S((b = (m = (f = (d = (c = t.meteo) == null ? void 0 : c.weather) == null ? void 0 : d[0]) == null ? void 0 : f.daily) == null ? void 0 : m.temperature_2m_min) == null ? void 0 : b[0]), 1),
|
|
5554
5558
|
e[1] || (e[1] = n("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
5555
5559
|
])
|
|
5556
5560
|
]),
|
|
@@ -5572,15 +5576,15 @@ function yi(a, e, t, r, i, o) {
|
|
|
5572
5576
|
]),
|
|
5573
5577
|
n("div", li, [
|
|
5574
5578
|
e[5] || (e[5] = n("label", null, "Wind", -1)),
|
|
5575
|
-
n("span", null, S(((z = (_ = t.meteo) == null ? void 0 : _.wind) == null ? void 0 : z.direction) || "-") + "/" + S(o.roundPrecision((
|
|
5579
|
+
n("span", null, S(((z = (_ = t.meteo) == null ? void 0 : _.wind) == null ? void 0 : z.direction) || "-") + "/" + S(o.roundPrecision((W = (w = t.meteo) == null ? void 0 : w.wind) == null ? void 0 : W.kts, 1)) + "[kts]/" + S((j = (O = t.meteo) == null ? void 0 : O.wind) == null ? void 0 : j.scale) + "[BF]/" + S(o.roundPrecision((F = (B = t.meteo) == null ? void 0 : B.gusts) == null ? void 0 : F.kts, 1)) + "[kts]", 1)
|
|
5576
5580
|
]),
|
|
5577
5581
|
n("div", ci, [
|
|
5578
5582
|
e[6] || (e[6] = n("label", null, "Wind.Wave", -1)),
|
|
5579
|
-
n("span", null, S(((ne = (se = (
|
|
5583
|
+
n("span", null, S(((ne = (se = (J = t.meteo) == null ? void 0 : J.wave) == null ? void 0 : se.wd) == null ? void 0 : ne.direction) || "-") + "/" + S(o.roundPrecision((he = (ce = (le = t.meteo) == null ? void 0 : le.wave) == null ? void 0 : ce.wd) == null ? void 0 : he.height, 1)) + "[m]/" + S(o.roundPrecision((te = (pe = (de = t.meteo) == null ? void 0 : de.wave) == null ? void 0 : pe.wd) == null ? void 0 : te.period, 1)) + "[s]", 1)
|
|
5580
5584
|
]),
|
|
5581
5585
|
n("div", hi, [
|
|
5582
5586
|
e[7] || (e[7] = n("label", null, "Swell", -1)),
|
|
5583
|
-
n("span", null, S(((me = (Y = (
|
|
5587
|
+
n("span", null, S(((me = (Y = (X = t.meteo) == null ? void 0 : X.wave) == null ? void 0 : Y.swell) == null ? void 0 : me.direction) || "-") + "/" + S(o.roundPrecision(($ = (I = (q = t.meteo) == null ? void 0 : q.wave) == null ? void 0 : I.swell) == null ? void 0 : $.height, 1)) + "[m]/" + S(o.roundPrecision((ye = (Q = (ue = t.meteo) == null ? void 0 : ue.wave) == null ? void 0 : Q.swell) == null ? void 0 : ye.period, 1)) + "[s]", 1)
|
|
5584
5588
|
]),
|
|
5585
5589
|
n("div", di, [
|
|
5586
5590
|
e[8] || (e[8] = n("label", null, "Sig.Wave", -1)),
|
|
@@ -6046,7 +6050,7 @@ const Si = {
|
|
|
6046
6050
|
}, Pi = { id: "idm-gl3-zone-info" }, zi = ["innerHTML"];
|
|
6047
6051
|
function Ti(a, e, t, r, i, o) {
|
|
6048
6052
|
var s;
|
|
6049
|
-
return
|
|
6053
|
+
return De((L(), x("div", Pi, [
|
|
6050
6054
|
n("div", {
|
|
6051
6055
|
class: "iconfont close",
|
|
6052
6056
|
onClick: e[0] || (e[0] = (l) => i.showZone = !1)
|
|
@@ -6060,7 +6064,7 @@ function Ti(a, e, t, r, i, o) {
|
|
|
6060
6064
|
]);
|
|
6061
6065
|
}
|
|
6062
6066
|
const Ii = /* @__PURE__ */ T(Si, [["render", Ti]]);
|
|
6063
|
-
const
|
|
6067
|
+
const Ei = {
|
|
6064
6068
|
name: "IdmPort",
|
|
6065
6069
|
props: {
|
|
6066
6070
|
map: {
|
|
@@ -6086,12 +6090,12 @@ const Ri = {
|
|
|
6086
6090
|
computed: {
|
|
6087
6091
|
computeLat() {
|
|
6088
6092
|
return function(a) {
|
|
6089
|
-
return
|
|
6093
|
+
return D.lat2pretty(a, 4).pretty;
|
|
6090
6094
|
};
|
|
6091
6095
|
},
|
|
6092
6096
|
computeLng() {
|
|
6093
6097
|
return function(a) {
|
|
6094
|
-
return
|
|
6098
|
+
return D.lng2pretty(a, 4).pretty;
|
|
6095
6099
|
};
|
|
6096
6100
|
}
|
|
6097
6101
|
},
|
|
@@ -6152,24 +6156,24 @@ const Ri = {
|
|
|
6152
6156
|
this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
6153
6157
|
}
|
|
6154
6158
|
}
|
|
6155
|
-
},
|
|
6159
|
+
}, Ri = { id: "port-info" }, Wi = { class: "port-box" }, Ai = { class: "flex-start" }, Di = { class: "flex-start" }, Mi = { class: "flex-start" }, Oi = {
|
|
6156
6160
|
class: "flex-start",
|
|
6157
6161
|
style: { "align-items": "flex-start" }
|
|
6158
6162
|
};
|
|
6159
|
-
function
|
|
6160
|
-
return
|
|
6163
|
+
function ji(a, e, t, r, i, o) {
|
|
6164
|
+
return De((L(), x("div", Ri, [
|
|
6161
6165
|
n("div", {
|
|
6162
6166
|
class: "close iconfont",
|
|
6163
6167
|
onClick: e[0] || (e[0] = (s) => i.showPort = !1)
|
|
6164
6168
|
}, ""),
|
|
6165
|
-
n("div",
|
|
6166
|
-
n("div",
|
|
6169
|
+
n("div", Wi, [
|
|
6170
|
+
n("div", Ai, [
|
|
6167
6171
|
e[2] || (e[2] = n("label", null, "Name : ", -1)),
|
|
6168
6172
|
n("span", {
|
|
6169
6173
|
onClick: e[1] || (e[1] = (...s) => o.handleEmit && o.handleEmit(...s))
|
|
6170
6174
|
}, S(i.form.name), 1)
|
|
6171
6175
|
]),
|
|
6172
|
-
n("div",
|
|
6176
|
+
n("div", Di, [
|
|
6173
6177
|
e[3] || (e[3] = n("label", null, "Position : ", -1)),
|
|
6174
6178
|
n("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
|
|
6175
6179
|
]),
|
|
@@ -6177,7 +6181,7 @@ function Oi(a, e, t, r, i, o) {
|
|
|
6177
6181
|
e[4] || (e[4] = n("label", null, "LoCode : ", -1)),
|
|
6178
6182
|
n("span", null, S(i.form.loCode || "-"), 1)
|
|
6179
6183
|
]),
|
|
6180
|
-
n("div",
|
|
6184
|
+
n("div", Oi, [
|
|
6181
6185
|
e[5] || (e[5] = n("label", null, "Region : ", -1)),
|
|
6182
6186
|
n("span", null, S(i.form.zoneName || "-"), 1)
|
|
6183
6187
|
])
|
|
@@ -6186,7 +6190,7 @@ function Oi(a, e, t, r, i, o) {
|
|
|
6186
6190
|
[Me, i.showPort]
|
|
6187
6191
|
]);
|
|
6188
6192
|
}
|
|
6189
|
-
const
|
|
6193
|
+
const Ni = /* @__PURE__ */ T(Ei, [["render", ji], ["__scopeId", "data-v-c07e4c45"]]), Bi = {
|
|
6190
6194
|
name: "IdmLoadLine",
|
|
6191
6195
|
props: {
|
|
6192
6196
|
map: {
|
|
@@ -6259,7 +6263,7 @@ const Bi = /* @__PURE__ */ T(Ri, [["render", Oi], ["__scopeId", "data-v-c07e4c45
|
|
|
6259
6263
|
function Fi(a, e, t, r, i, o) {
|
|
6260
6264
|
return L(), x("div");
|
|
6261
6265
|
}
|
|
6262
|
-
const $i = /* @__PURE__ */ T(
|
|
6266
|
+
const $i = /* @__PURE__ */ T(Bi, [["render", Fi]]), Vi = {
|
|
6263
6267
|
name: "IdmTimezone",
|
|
6264
6268
|
props: {
|
|
6265
6269
|
map: {
|
|
@@ -6518,7 +6522,7 @@ const Zi = /* @__PURE__ */ T(Vi, [["render", Ui]]), Hi = {
|
|
|
6518
6522
|
function Gi(a, e, t, r, i, o) {
|
|
6519
6523
|
return L(), x("div");
|
|
6520
6524
|
}
|
|
6521
|
-
const
|
|
6525
|
+
const Ji = /* @__PURE__ */ T(Hi, [["render", Gi]]), Xi = {
|
|
6522
6526
|
name: "IdmSpecialArea",
|
|
6523
6527
|
props: {
|
|
6524
6528
|
map: {
|
|
@@ -6548,7 +6552,7 @@ const Xi = /* @__PURE__ */ T(Hi, [["render", Gi]]), Ji = {
|
|
|
6548
6552
|
methods: {
|
|
6549
6553
|
handleRender() {
|
|
6550
6554
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
|
|
6551
|
-
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) =>
|
|
6555
|
+
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => D.convertToMonotonicLng2(e));
|
|
6552
6556
|
}), this.map.addSource(this.source, {
|
|
6553
6557
|
type: "geojson",
|
|
6554
6558
|
data: this.area
|
|
@@ -6611,7 +6615,7 @@ const Xi = /* @__PURE__ */ T(Hi, [["render", Gi]]), Ji = {
|
|
|
6611
6615
|
function Yi(a, e, t, r, i, o) {
|
|
6612
6616
|
return L(), x("div");
|
|
6613
6617
|
}
|
|
6614
|
-
const qi = /* @__PURE__ */ T(
|
|
6618
|
+
const qi = /* @__PURE__ */ T(Xi, [["render", Yi]]), Qi = {
|
|
6615
6619
|
name: "IdmTerminator",
|
|
6616
6620
|
props: {
|
|
6617
6621
|
map: {
|
|
@@ -6722,7 +6726,7 @@ const tr = {
|
|
|
6722
6726
|
this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
6723
6727
|
},
|
|
6724
6728
|
handleMouseMove(a) {
|
|
6725
|
-
const e = a.lngLat, t =
|
|
6729
|
+
const e = a.lngLat, t = D.lng2pretty(e.lng, 2), r = D.lat2pretty(e.lat, 2);
|
|
6726
6730
|
this.lngLat = { lng: t, lat: r };
|
|
6727
6731
|
},
|
|
6728
6732
|
handleComputeLatLngs() {
|
|
@@ -6972,9 +6976,9 @@ const $e = /* @__PURE__ */ T(tr, [["render", ar], ["__scopeId", "data-v-73241fe7
|
|
|
6972
6976
|
const r = [];
|
|
6973
6977
|
for (let i = 1; i < e.length; i++) {
|
|
6974
6978
|
const o = e[i - 1], s = e[i], l = o.properties, h = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, p = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, c = K.calculateDistance(h, p, l.mode === "RL", 2), d = K.calculateBearing(h, p, l.mode === "RL", 2);
|
|
6975
|
-
t =
|
|
6979
|
+
t = D.roundPrecision(t + c, 2);
|
|
6976
6980
|
let f;
|
|
6977
|
-
l.mode === "RL" ? f =
|
|
6981
|
+
l.mode === "RL" ? f = D.convertToMonotonicLng([h, p]) : f = D.convertToMonotonicLng(K.interpolateCoordinates(h, p, 200));
|
|
6978
6982
|
const m = C.lineString(f.map((b) => [b.lng, b.lat]));
|
|
6979
6983
|
m.properties.dist = c, m.properties.bearing = d, m.properties.total = t, r.push(m);
|
|
6980
6984
|
}
|
|
@@ -6989,7 +6993,7 @@ const $e = /* @__PURE__ */ T(tr, [["render", ar], ["__scopeId", "data-v-73241fe7
|
|
|
6989
6993
|
const h = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, c = { lng: t.lng, lat: t.lat };
|
|
6990
6994
|
o = K.calculateDistance(p, c, h.mode === "RL", 2), s = K.calculateBearing(p, c, h.mode === "RL", 2);
|
|
6991
6995
|
let d;
|
|
6992
|
-
h.mode === "RL" ? d =
|
|
6996
|
+
h.mode === "RL" ? d = D.convertToMonotonicLng([p, c]) : d = D.convertToMonotonicLng(K.interpolateCoordinates(p, c, 200));
|
|
6993
6997
|
const f = C.lineString(d.map((m) => [m.lng, m.lat]));
|
|
6994
6998
|
f.properties.dist = o, f.properties.bearing = s, i.features.push(f);
|
|
6995
6999
|
}
|
|
@@ -6997,7 +7001,7 @@ const $e = /* @__PURE__ */ T(tr, [["render", ar], ["__scopeId", "data-v-73241fe7
|
|
|
6997
7001
|
const h = t.properties, p = t, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
6998
7002
|
o = K.calculateDistance(p, c, h.mode === "RL", 2), s = K.calculateBearing(p, c, h.mode === "RL", 2);
|
|
6999
7003
|
let d;
|
|
7000
|
-
h.mode === "RL" ? d =
|
|
7004
|
+
h.mode === "RL" ? d = D.convertToMonotonicLng([p, c]) : d = D.convertToMonotonicLng(K.interpolateCoordinates(p, c, 200));
|
|
7001
7005
|
const f = C.lineString(d.map((m) => [m.lng, m.lat]));
|
|
7002
7006
|
f.properties.dist = o, f.properties.bearing = s, i.features.push(f);
|
|
7003
7007
|
}
|
|
@@ -7039,7 +7043,7 @@ const $e = /* @__PURE__ */ T(tr, [["render", ar], ["__scopeId", "data-v-73241fe7
|
|
|
7039
7043
|
}
|
|
7040
7044
|
});
|
|
7041
7045
|
let l;
|
|
7042
|
-
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Tol distance: <b>${
|
|
7046
|
+
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)
|
|
7043
7047
|
this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
7044
7048
|
else {
|
|
7045
7049
|
const h = document.createElement("div");
|
|
@@ -7154,8 +7158,8 @@ const sr = {
|
|
|
7154
7158
|
emits: ["enc"],
|
|
7155
7159
|
data() {
|
|
7156
7160
|
return {
|
|
7157
|
-
helper:
|
|
7158
|
-
vendor: this.$attrs.permission &
|
|
7161
|
+
helper: Ee,
|
|
7162
|
+
vendor: this.$attrs.permission & Ee.LEVEL.Supper ? "hi" : "i4",
|
|
7159
7163
|
right: 10
|
|
7160
7164
|
};
|
|
7161
7165
|
},
|
|
@@ -7192,7 +7196,7 @@ function cr(a, e, t, r, i, o) {
|
|
|
7192
7196
|
}, {
|
|
7193
7197
|
default: H(() => [
|
|
7194
7198
|
n("div", {
|
|
7195
|
-
class:
|
|
7199
|
+
class: A(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
7196
7200
|
onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
|
|
7197
7201
|
}, e[2] || (e[2] = [
|
|
7198
7202
|
n("span", { class: "iconfont" }, "HI", -1)
|
|
@@ -7208,7 +7212,7 @@ function cr(a, e, t, r, i, o) {
|
|
|
7208
7212
|
}, {
|
|
7209
7213
|
default: H(() => [
|
|
7210
7214
|
n("div", {
|
|
7211
|
-
class:
|
|
7215
|
+
class: A(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
7212
7216
|
onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
|
|
7213
7217
|
}, e[3] || (e[3] = [
|
|
7214
7218
|
n("span", { class: "iconfont" }, "I4", -1)
|
|
@@ -7224,11 +7228,11 @@ const hr = /* @__PURE__ */ T(sr, [["render", cr], ["__scopeId", "data-v-150235f7
|
|
|
7224
7228
|
const dr = {
|
|
7225
7229
|
name: "IdmGLV2",
|
|
7226
7230
|
components: {
|
|
7227
|
-
IdmGlLayer:
|
|
7228
|
-
IdmWindBarb:
|
|
7229
|
-
IdmWindParticle:
|
|
7231
|
+
IdmGlLayer: Et,
|
|
7232
|
+
IdmWindBarb: Dt,
|
|
7233
|
+
IdmWindParticle: Bt,
|
|
7230
7234
|
IdmCurrents: Ut,
|
|
7231
|
-
IdmCurrentParticle:
|
|
7235
|
+
IdmCurrentParticle: Jt,
|
|
7232
7236
|
IdmSigWave: qt,
|
|
7233
7237
|
IdmSwell: ea,
|
|
7234
7238
|
IdmPrmsl: ia,
|
|
@@ -7236,18 +7240,18 @@ const dr = {
|
|
|
7236
7240
|
IdmIceberg: sa,
|
|
7237
7241
|
IdmTropicals: Fe,
|
|
7238
7242
|
IdmPrecip3h: Pa,
|
|
7239
|
-
IdmVisibility:
|
|
7240
|
-
IdmWaterTemp:
|
|
7241
|
-
IdmTemp:
|
|
7243
|
+
IdmVisibility: Ea,
|
|
7244
|
+
IdmWaterTemp: Da,
|
|
7245
|
+
IdmTemp: Na,
|
|
7242
7246
|
IdmArctic: Va,
|
|
7243
7247
|
IdmWarZone: vi,
|
|
7244
7248
|
IdmGmdssArea: xi,
|
|
7245
7249
|
IdmEcaZone: ki,
|
|
7246
7250
|
IdmAlertZone: Ii,
|
|
7247
|
-
IdmPort:
|
|
7251
|
+
IdmPort: Ni,
|
|
7248
7252
|
IdmLoadLine: $i,
|
|
7249
7253
|
IdmTimezone: Zi,
|
|
7250
|
-
IdmVRA:
|
|
7254
|
+
IdmVRA: Ji,
|
|
7251
7255
|
IdmSpecialArea: qi,
|
|
7252
7256
|
IdmTerminator: er,
|
|
7253
7257
|
IdmLatLng: $e,
|
|
@@ -7315,7 +7319,7 @@ const dr = {
|
|
|
7315
7319
|
},
|
|
7316
7320
|
map: {
|
|
7317
7321
|
handler() {
|
|
7318
|
-
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new
|
|
7322
|
+
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Ne(this.map), this.handleRampColorInitial());
|
|
7319
7323
|
},
|
|
7320
7324
|
immediate: !0
|
|
7321
7325
|
},
|
|
@@ -7383,7 +7387,7 @@ const dr = {
|
|
|
7383
7387
|
if (this.map) {
|
|
7384
7388
|
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}`;
|
|
7385
7389
|
if (this.particleFactor) {
|
|
7386
|
-
const y =
|
|
7390
|
+
const y = Re.WEATHER_LAYERS.find((u) => {
|
|
7387
7391
|
var v;
|
|
7388
7392
|
return ((v = u.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
|
|
7389
7393
|
});
|
|
@@ -7407,17 +7411,17 @@ const dr = {
|
|
|
7407
7411
|
key: w
|
|
7408
7412
|
},
|
|
7409
7413
|
responseType: /\.(jpg|png)$/.test(g[w]) ? "blob" : "json"
|
|
7410
|
-
}).catch((
|
|
7411
|
-
console.log(`[${w}] fetch layer error: ${
|
|
7414
|
+
}).catch((W) => {
|
|
7415
|
+
console.log(`[${w}] fetch layer error: ${W}`);
|
|
7412
7416
|
})
|
|
7413
7417
|
);
|
|
7414
7418
|
const z = await Promise.all(_);
|
|
7415
7419
|
this.weatherLayers = {}, z.map((w) => {
|
|
7416
|
-
var
|
|
7417
|
-
const
|
|
7418
|
-
|
|
7419
|
-
raw:
|
|
7420
|
-
type: ((
|
|
7420
|
+
var j, B, F, J;
|
|
7421
|
+
const W = ((j = w == null ? void 0 : w.data) == null ? void 0 : j.data) || (w == null ? void 0 : w.data), O = (F = (B = w == null ? void 0 : w.config) == null ? void 0 : B.headers) == null ? void 0 : F.key;
|
|
7422
|
+
O && W && (this.weatherLayers[O] = {
|
|
7423
|
+
raw: W,
|
|
7424
|
+
type: ((J = w == null ? void 0 : w.config) == null ? void 0 : J.responseType) === "blob" ? "image" : "json",
|
|
7421
7425
|
etime: this.ts
|
|
7422
7426
|
});
|
|
7423
7427
|
}), g.tropicals && oe.get(g.tropicals, {
|
|
@@ -7426,10 +7430,10 @@ const dr = {
|
|
|
7426
7430
|
key: "tropicals"
|
|
7427
7431
|
}
|
|
7428
7432
|
}).then((w) => {
|
|
7429
|
-
var
|
|
7430
|
-
const
|
|
7431
|
-
this.weatherLayers[
|
|
7432
|
-
data:
|
|
7433
|
+
var j, B, F;
|
|
7434
|
+
const W = Be.convert2Geojson(((j = w == null ? void 0 : w.data) == null ? void 0 : j.data) || (w == null ? void 0 : w.data)), O = (F = (B = w == null ? void 0 : w.config) == null ? void 0 : B.headers) == null ? void 0 : F.key;
|
|
7435
|
+
this.weatherLayers[O] = {
|
|
7436
|
+
data: W,
|
|
7433
7437
|
active: !0,
|
|
7434
7438
|
cached: !1,
|
|
7435
7439
|
type: "json",
|
|
@@ -7572,7 +7576,7 @@ const dr = {
|
|
|
7572
7576
|
var p, c, d, f;
|
|
7573
7577
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
7574
7578
|
let e = 0, t = 0;
|
|
7575
|
-
const r = (p = this.map) == null ? void 0 : p.getBounds(), i = this.map.getZoom(), o =
|
|
7579
|
+
const r = (p = this.map) == null ? void 0 : p.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);
|
|
7576
7580
|
for (const m in this.weatherLayers)
|
|
7577
7581
|
if (this.weatherLayers[m].active && this.weatherLayers[m].type === "json") {
|
|
7578
7582
|
this.weatherLayers[m].active = !1, this.weatherLayers[m].version = Math.random() + 1;
|
|
@@ -7716,7 +7720,7 @@ const dr = {
|
|
|
7716
7720
|
}
|
|
7717
7721
|
for (const v in y.Point)
|
|
7718
7722
|
y.Point[v].lng.forEach((g, _) => {
|
|
7719
|
-
g =
|
|
7723
|
+
g = D.convertToStdLng(g), u.push(
|
|
7720
7724
|
C.point([g, v], {
|
|
7721
7725
|
val: y.Point[v].val[_],
|
|
7722
7726
|
type: y.Point[v].type[_]
|
|
@@ -7756,7 +7760,7 @@ const dr = {
|
|
|
7756
7760
|
this.weatherLayers[a].active && this.weatherLayers[a].type === "image" && (this.weatherLayers[a].active = !0, this.weatherLayers[a].version = Math.random() + 1);
|
|
7757
7761
|
},
|
|
7758
7762
|
handleBboxClip(a, e) {
|
|
7759
|
-
const t = [], r =
|
|
7763
|
+
const t = [], r = D.convertToStdLng(e._sw.lng), i = D.convertToStdLng(e._ne.lng);
|
|
7760
7764
|
return a.features.forEach((o) => {
|
|
7761
7765
|
if (o.geometry.type !== "Point")
|
|
7762
7766
|
if (r > i) {
|
|
@@ -7789,7 +7793,7 @@ const dr = {
|
|
|
7789
7793
|
},
|
|
7790
7794
|
handleWeatherLayerChange(a, e) {
|
|
7791
7795
|
this.showWindParticle = !1, this.showCurrentParticle = !1, this.map ? setTimeout(() => {
|
|
7792
|
-
this.activeWeatherLayers = a;
|
|
7796
|
+
this.activeWeatherLayers = JSON.parse(JSON.stringify(a));
|
|
7793
7797
|
const t = this.activeWeatherLayers.some(
|
|
7794
7798
|
(o) => {
|
|
7795
7799
|
var s;
|
|
@@ -7801,7 +7805,7 @@ const dr = {
|
|
|
7801
7805
|
}), this.particleFactor.particle = !0) : r && this.particleFactor && (this.particleFactor.particle = !1);
|
|
7802
7806
|
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);
|
|
7803
7807
|
this.weatherWeight !== i || this.source !== e ? (this.source = e, this.weatherWeight = i, this.fetchWeatherLayers({ tropicals: !1 })) : this.handleWeatherLayerToggle();
|
|
7804
|
-
}
|
|
7808
|
+
}) : setTimeout(() => {
|
|
7805
7809
|
this.handleWeatherLayerChange(a, e);
|
|
7806
7810
|
}, 500);
|
|
7807
7811
|
},
|
|
@@ -7837,14 +7841,16 @@ const dr = {
|
|
|
7837
7841
|
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((p = this.viewport) == null ? void 0 : p.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((d = this.viewport) == null ? void 0 : d.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((_ = this.viewport) == null ? void 0 : _.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
7838
7842
|
},
|
|
7839
7843
|
handleParticle(a) {
|
|
7840
|
-
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.
|
|
7841
|
-
|
|
7844
|
+
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
|
|
7845
|
+
var i;
|
|
7846
|
+
return r.key === a.key ? r.particle = a.particle : (i = Object.keys(r)) != null && i.some((o) => o === "particle") && (r.particle = !1), r;
|
|
7842
7847
|
});
|
|
7843
|
-
let e = localStorage.getItem("
|
|
7848
|
+
let e = localStorage.getItem("activeWeatherLayersCache");
|
|
7844
7849
|
const t = JSON.parse(e) || [];
|
|
7845
7850
|
t == null || t.forEach((r) => {
|
|
7846
|
-
|
|
7847
|
-
|
|
7851
|
+
var i;
|
|
7852
|
+
r.key === a.key ? r.particle = a.particle : (i = Object.keys(r)) != null && i.some((o) => o === "particle") && (r.particle = !1);
|
|
7853
|
+
}), localStorage.setItem("activeWeatherLayersCache", JSON.stringify(t)), this.fetchWeatherLayers({ tropicals: !1 });
|
|
7848
7854
|
},
|
|
7849
7855
|
handleToggleVersion() {
|
|
7850
7856
|
this.$emit("toggleVersion", Math.random());
|
|
@@ -7855,10 +7861,10 @@ const dr = {
|
|
|
7855
7861
|
className: "map-gl-home"
|
|
7856
7862
|
};
|
|
7857
7863
|
function mr(a, e, t, r, i, o) {
|
|
7858
|
-
var te,
|
|
7859
|
-
const s = P("IdmGlLayer"), l = P("IdmENC"), h = P("IdmSigWave"), p = P("IdmSwell"), c = P("IdmPrmsl"), d = P("IdmIceberg"), f = P("IdmTropicals"), m = P("IdmCurrents"), b = P("IdmCurrentParticle"), y = P("IdmWindBarb"), u = P("IdmWindParticle"), v = P("IdmPrecip3h"), g = P("IdmVisibility"), _ = P("IdmWaterTemp"), z = P("IdmTemp"), w = P("IdmArctic"),
|
|
7864
|
+
var te, X, Y, me, q, I, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe, _e, Ce, ke, Se, Pe, ze, Te, Oe;
|
|
7865
|
+
const s = P("IdmGlLayer"), l = P("IdmENC"), h = P("IdmSigWave"), p = P("IdmSwell"), c = P("IdmPrmsl"), d = P("IdmIceberg"), f = P("IdmTropicals"), m = P("IdmCurrents"), b = P("IdmCurrentParticle"), y = P("IdmWindBarb"), u = P("IdmWindParticle"), v = P("IdmPrecip3h"), g = P("IdmVisibility"), _ = P("IdmWaterTemp"), z = P("IdmTemp"), w = P("IdmArctic"), W = P("IdmWarZone"), O = P("IdmGmdssArea"), j = P("IdmEcaZone"), B = P("IdmAlertZone"), F = P("IdmPort"), J = P("IdmLoadLine"), se = P("IdmTimezone"), ne = P("IdmVRA"), le = P("IdmSpecialArea"), ce = P("IdmTerminator"), he = P("IdmLatLng"), de = P("IdmMeasure"), pe = P("IdmPoint");
|
|
7860
7866
|
return t.map ? (L(), x("div", pr, [
|
|
7861
|
-
k(s,
|
|
7867
|
+
k(s, E({
|
|
7862
7868
|
ref: "layer",
|
|
7863
7869
|
map: t.map,
|
|
7864
7870
|
"toggle-version": t.toggleVersion,
|
|
@@ -7880,7 +7886,7 @@ function mr(a, e, t, r, i, o) {
|
|
|
7880
7886
|
on3d: o.handle3dToggle,
|
|
7881
7887
|
onHandleToggleVersion: o.handleToggleVersion
|
|
7882
7888
|
}), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
7883
|
-
k(l,
|
|
7889
|
+
k(l, E({
|
|
7884
7890
|
map: t.map,
|
|
7885
7891
|
token: t.token,
|
|
7886
7892
|
enabled: (te = i.otherLayers) == null ? void 0 : te.enc,
|
|
@@ -7888,36 +7894,36 @@ function mr(a, e, t, r, i, o) {
|
|
|
7888
7894
|
}, a.$attrs, {
|
|
7889
7895
|
onEnc: e[7] || (e[7] = (V) => i.enc = V)
|
|
7890
7896
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
7891
|
-
k(h,
|
|
7897
|
+
k(h, E({
|
|
7892
7898
|
map: t.map,
|
|
7893
|
-
"sig-wave": (
|
|
7899
|
+
"sig-wave": (X = i.weatherLayers) == null ? void 0 : X["sig-wave-height"],
|
|
7894
7900
|
"before-layer": t.beforeLayer,
|
|
7895
7901
|
activeWeatherLayers: i.activeWeatherLayers
|
|
7896
7902
|
}, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "activeWeatherLayers"]),
|
|
7897
|
-
k(p,
|
|
7903
|
+
k(p, E({
|
|
7898
7904
|
map: t.map,
|
|
7899
7905
|
swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
|
|
7900
7906
|
"before-layer": t.beforeLayer,
|
|
7901
7907
|
activeWeatherLayers: i.activeWeatherLayers
|
|
7902
7908
|
}, a.$attrs), null, 16, ["map", "swell", "before-layer", "activeWeatherLayers"]),
|
|
7903
|
-
k(c,
|
|
7909
|
+
k(c, E({
|
|
7904
7910
|
map: t.map,
|
|
7905
7911
|
prmsl: (me = i.weatherLayers) == null ? void 0 : me.prmsl,
|
|
7906
7912
|
"before-layer": t.beforeLayer,
|
|
7907
7913
|
"active-weather-layers": i.activeWeatherLayers
|
|
7908
7914
|
}, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
7909
|
-
k(d,
|
|
7915
|
+
k(d, E({
|
|
7910
7916
|
map: t.map,
|
|
7911
7917
|
iceberg: (q = i.weatherLayers) == null ? void 0 : q.iceberg,
|
|
7912
7918
|
"before-layer": t.beforeLayer
|
|
7913
7919
|
}, a.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
7914
|
-
k(f,
|
|
7920
|
+
k(f, E({
|
|
7915
7921
|
map: t.map,
|
|
7916
7922
|
date: t.ts,
|
|
7917
7923
|
tropicals: (I = i.weatherLayers) == null ? void 0 : I.tropicals,
|
|
7918
7924
|
"before-layer": t.beforeLayer
|
|
7919
7925
|
}, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
7920
|
-
k(m,
|
|
7926
|
+
k(m, E({
|
|
7921
7927
|
map: t.map,
|
|
7922
7928
|
"map-projection": i.mapProjection,
|
|
7923
7929
|
current: ($ = i.weatherLayers) == null ? void 0 : $.current,
|
|
@@ -7931,13 +7937,13 @@ function mr(a, e, t, r, i, o) {
|
|
|
7931
7937
|
onParticle: o.handleParticle,
|
|
7932
7938
|
onHandleToggleVersion: o.handleToggleVersion
|
|
7933
7939
|
}), null, 16, ["map", "map-projection", "current", "before-layer", "showCurrentIsoband", "showCurrentParticle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
7934
|
-
k(b,
|
|
7940
|
+
k(b, E({
|
|
7935
7941
|
viewport: i.viewport,
|
|
7936
7942
|
factor: (ue = i.weatherLayers) == null ? void 0 : ue["current-particle"],
|
|
7937
7943
|
"before-layer": t.beforeLayer,
|
|
7938
7944
|
"toggle-version": t.toggleVersion
|
|
7939
7945
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7940
|
-
k(y,
|
|
7946
|
+
k(y, E({
|
|
7941
7947
|
ref: "windBarb",
|
|
7942
7948
|
map: t.map,
|
|
7943
7949
|
"map-projection": i.mapProjection,
|
|
@@ -7952,101 +7958,101 @@ function mr(a, e, t, r, i, o) {
|
|
|
7952
7958
|
"weather-layers": i.weatherLayers,
|
|
7953
7959
|
onParticle: o.handleParticle
|
|
7954
7960
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "showWindFeather", "showWindParticle", "toggle-version", "weather-layers", "onParticle"]),
|
|
7955
|
-
k(u,
|
|
7961
|
+
k(u, E({
|
|
7956
7962
|
viewport: i.viewport,
|
|
7957
7963
|
factor: (ae = i.weatherLayers) == null ? void 0 : ae["wind-particle"],
|
|
7958
7964
|
"before-layer": t.beforeLayer,
|
|
7959
7965
|
"toggle-version": t.toggleVersion
|
|
7960
7966
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7961
|
-
k(v,
|
|
7967
|
+
k(v, E({
|
|
7962
7968
|
viewport: i.viewport,
|
|
7963
7969
|
factor: (ie = i.weatherLayers) == null ? void 0 : ie.precip3h,
|
|
7964
7970
|
"before-layer": t.beforeLayer,
|
|
7965
7971
|
"toggle-version": t.toggleVersion
|
|
7966
7972
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7967
|
-
k(g,
|
|
7973
|
+
k(g, E({
|
|
7968
7974
|
viewport: i.viewport,
|
|
7969
7975
|
factor: (re = i.weatherLayers) == null ? void 0 : re.visibility,
|
|
7970
7976
|
"before-layer": t.beforeLayer,
|
|
7971
7977
|
"toggle-version": t.toggleVersion
|
|
7972
7978
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7973
|
-
k(_,
|
|
7979
|
+
k(_, E({
|
|
7974
7980
|
viewport: i.viewport,
|
|
7975
7981
|
factor: (be = i.weatherLayers) == null ? void 0 : be["water-temp"],
|
|
7976
7982
|
"before-layer": t.beforeLayer,
|
|
7977
7983
|
"toggle-version": t.toggleVersion
|
|
7978
7984
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7979
|
-
k(z,
|
|
7985
|
+
k(z, E({
|
|
7980
7986
|
viewport: i.viewport,
|
|
7981
7987
|
factor: (ve = i.weatherLayers) == null ? void 0 : ve.temp,
|
|
7982
7988
|
"before-layer": t.beforeLayer,
|
|
7983
7989
|
"toggle-version": t.toggleVersion
|
|
7984
7990
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7985
|
-
k(w,
|
|
7991
|
+
k(w, E({
|
|
7986
7992
|
viewport: i.viewport,
|
|
7987
7993
|
factor: (we = i.weatherLayers) == null ? void 0 : we.arctic,
|
|
7988
7994
|
"before-layer": t.beforeLayer,
|
|
7989
7995
|
"toggle-version": t.toggleVersion
|
|
7990
7996
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7991
|
-
k(
|
|
7997
|
+
k(W, E({
|
|
7992
7998
|
map: t.map,
|
|
7993
7999
|
zone: (Le = i.otherLayers) == null ? void 0 : Le["war-zones"],
|
|
7994
8000
|
"before-layer": t.beforeLayer
|
|
7995
8001
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7996
|
-
k(
|
|
8002
|
+
k(O, E({
|
|
7997
8003
|
map: t.map,
|
|
7998
8004
|
area: (xe = i.otherLayers) == null ? void 0 : xe["gmdss-areas"],
|
|
7999
8005
|
"before-layer": t.beforeLayer
|
|
8000
8006
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
8001
|
-
k(
|
|
8007
|
+
k(j, E({
|
|
8002
8008
|
map: t.map,
|
|
8003
8009
|
zone: (_e = i.otherLayers) == null ? void 0 : _e["eca-zones"],
|
|
8004
8010
|
"before-layer": t.beforeLayer
|
|
8005
8011
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8006
|
-
k(
|
|
8012
|
+
k(B, E({
|
|
8007
8013
|
map: t.map,
|
|
8008
8014
|
zone: (Ce = i.otherLayers) == null ? void 0 : Ce["alert-zones"],
|
|
8009
8015
|
"before-layer": t.beforeLayer
|
|
8010
8016
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8011
|
-
k(F,
|
|
8017
|
+
k(F, E({
|
|
8012
8018
|
map: t.map,
|
|
8013
8019
|
port: (ke = i.otherLayers) == null ? void 0 : ke.ports,
|
|
8014
8020
|
"before-layer": t.beforeLayer
|
|
8015
8021
|
}, a.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
8016
|
-
k(
|
|
8022
|
+
k(J, E({
|
|
8017
8023
|
map: t.map,
|
|
8018
8024
|
line: (Se = i.otherLayers) == null ? void 0 : Se["load-lines"],
|
|
8019
8025
|
"before-layer": t.beforeLayer
|
|
8020
8026
|
}, a.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
8021
|
-
k(se,
|
|
8027
|
+
k(se, E({
|
|
8022
8028
|
map: t.map,
|
|
8023
8029
|
zone: (Pe = i.otherLayers) == null ? void 0 : Pe["time-zones"],
|
|
8024
8030
|
"before-layer": t.beforeLayer
|
|
8025
8031
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8026
|
-
k(ne,
|
|
8032
|
+
k(ne, E({
|
|
8027
8033
|
map: t.map,
|
|
8028
8034
|
area: (ze = i.otherLayers) == null ? void 0 : ze["voluntary-reporting-area"],
|
|
8029
8035
|
"before-layer": t.beforeLayer
|
|
8030
8036
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
8031
|
-
k(le,
|
|
8037
|
+
k(le, E({
|
|
8032
8038
|
map: t.map,
|
|
8033
8039
|
area: (Te = i.otherLayers) == null ? void 0 : Te["special-area"],
|
|
8034
8040
|
"before-layer": t.beforeLayer
|
|
8035
8041
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
8036
|
-
k(ce,
|
|
8042
|
+
k(ce, E({
|
|
8037
8043
|
map: t.map,
|
|
8038
|
-
area: (
|
|
8044
|
+
area: (Oe = i.otherLayers) == null ? void 0 : Oe["day-night"]
|
|
8039
8045
|
}, a.$attrs), null, 16, ["map", "area"]),
|
|
8040
|
-
k(he,
|
|
8046
|
+
k(he, E({
|
|
8041
8047
|
map: t.map,
|
|
8042
8048
|
show: i.showCoord,
|
|
8043
8049
|
"toggle-version": t.toggleVersion
|
|
8044
8050
|
}, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
8045
|
-
k(de,
|
|
8051
|
+
k(de, E({
|
|
8046
8052
|
map: t.map,
|
|
8047
8053
|
show: i.showMeasure
|
|
8048
8054
|
}, a.$attrs), null, 16, ["map", "show"]),
|
|
8049
|
-
k(pe,
|
|
8055
|
+
k(pe, E({
|
|
8050
8056
|
map: t.map,
|
|
8051
8057
|
show: i.showPoint,
|
|
8052
8058
|
meteo: i.meteo
|
|
@@ -8065,7 +8071,7 @@ export {
|
|
|
8065
8071
|
Mt as MapboxHelper,
|
|
8066
8072
|
U as ParticleSchema,
|
|
8067
8073
|
Fe as TropicalGL,
|
|
8068
|
-
|
|
8074
|
+
Ne as Viewport,
|
|
8069
8075
|
fe as WebGL,
|
|
8070
|
-
|
|
8076
|
+
N as WebGLSchema
|
|
8071
8077
|
};
|