@idmwx/idmui-gl3 4.5.1 → 4.5.2
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 +949 -856
- package/dist/index.umd.cjs +4 -4
- package/dist/mapbox/src/components/layer.vue.d.ts +11 -20
- package/dist/mapbox/src/components/other/point.vue.d.ts +2 -0
- package/dist/mapbox/src/components/weather/current.vue.d.ts +15 -17
- package/dist/mapbox/src/components/weather/wind.vue.d.ts +11 -13
- package/dist/style.css +1 -1
- 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
|
|
5
|
-
import * as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
3
|
+
var E = (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 D, Fragment as Ie, renderList as Ae, toDisplayString as S, createCommentVNode as M, createTextVNode as De, withDirectives as We, createStaticVNode as Ze, vShow as Me, defineComponent as He, mergeProps as R } from "vue";
|
|
5
|
+
import * as C from "@turf/turf";
|
|
6
|
+
import Ge from "@mapbox/sphericalmercator";
|
|
7
|
+
import G from "moment";
|
|
8
8
|
import ee from "mapbox-gl";
|
|
9
|
-
import { TropicalHelper as
|
|
9
|
+
import { TropicalHelper as Ne, LngLatHelper as W, LaneHelper as K } from "@idm-plugin/geo";
|
|
10
10
|
import oe from "axios";
|
|
11
|
-
var
|
|
12
|
-
class
|
|
11
|
+
var Xe = Object.defineProperty, Je = (a, e, t) => e in a ? Xe(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 Re {
|
|
13
13
|
}
|
|
14
|
-
ge(
|
|
14
|
+
ge(Re, "LEVEL", {
|
|
15
15
|
Basic: 1,
|
|
16
16
|
Prime: 2,
|
|
17
17
|
Supper: 1024
|
|
18
18
|
});
|
|
19
|
-
class
|
|
19
|
+
class Ee {
|
|
20
20
|
}
|
|
21
|
-
ge(
|
|
21
|
+
ge(Ee, "WEATHER_LAYERS", [
|
|
22
22
|
{
|
|
23
23
|
weight: 1,
|
|
24
24
|
name: "Wind",
|
|
@@ -243,7 +243,7 @@ ge(ke, "WEATHER_LAYERS", [
|
|
|
243
243
|
type: "jpg"
|
|
244
244
|
}
|
|
245
245
|
]), // 其它图层
|
|
246
|
-
ge(
|
|
246
|
+
ge(Ee, "OTHER_LAYERS", [
|
|
247
247
|
{
|
|
248
248
|
weight: 1,
|
|
249
249
|
name: "War Zones",
|
|
@@ -355,9 +355,9 @@ ge(ke, "OTHER_LAYERS", [
|
|
|
355
355
|
type: "origin"
|
|
356
356
|
}
|
|
357
357
|
]);
|
|
358
|
-
class
|
|
358
|
+
class Oe {
|
|
359
359
|
}
|
|
360
|
-
ge(
|
|
360
|
+
ge(Oe, "WEATHER_TAG", [
|
|
361
361
|
{
|
|
362
362
|
weight: 4,
|
|
363
363
|
// 2^2
|
|
@@ -383,7 +383,7 @@ ge(Ee, "WEATHER_TAG", [
|
|
|
383
383
|
positive: !0
|
|
384
384
|
}
|
|
385
385
|
]), // 航行相关标签, 2^11 <= weight <= 2^20
|
|
386
|
-
ge(
|
|
386
|
+
ge(Oe, "SAILING_TAG", [
|
|
387
387
|
{
|
|
388
388
|
weight: 2048,
|
|
389
389
|
// 2^11
|
|
@@ -425,7 +425,7 @@ ge(Ee, "SAILING_TAG", [
|
|
|
425
425
|
positive: !0
|
|
426
426
|
}
|
|
427
427
|
]), // 其他标签, 2^21 <= weight <= 2^31
|
|
428
|
-
ge(
|
|
428
|
+
ge(Oe, "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
|
+
}, Ye = {
|
|
484
484
|
name: "IdmGlLayer",
|
|
485
485
|
props: {
|
|
486
486
|
map: {
|
|
@@ -521,23 +521,25 @@ const T = (a, e) => {
|
|
|
521
521
|
default: void 0
|
|
522
522
|
}
|
|
523
523
|
},
|
|
524
|
-
emits: ["weather", "other", "coordinate", "measure", "point", "3d", "layerToggle", "handleToggleVersion"],
|
|
524
|
+
emits: ["weather", "other", "toggleWindParticle", "toggleWindFeather", "toggleCurrentParticle", "toggleCurrentIsoband", "coordinate", "measure", "point", "3d", "layerToggle", "handleToggleVersion"],
|
|
525
525
|
data() {
|
|
526
526
|
return {
|
|
527
527
|
autoActive: !0,
|
|
528
528
|
layers: {
|
|
529
529
|
weather: [
|
|
530
|
-
...
|
|
530
|
+
...Ee.WEATHER_LAYERS.filter((a) => !["swell-height", "swell-direction", "current-direction", "current-speed"].includes(a.key))
|
|
531
531
|
],
|
|
532
|
-
other: [...
|
|
532
|
+
other: [...Ee.OTHER_LAYERS.filter((a) => a.key !== "world12nm" && a.enabled)]
|
|
533
533
|
},
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
weatherLayersCache: "weatherLayersCache",
|
|
534
|
+
activeWeatherLayers: [],
|
|
535
|
+
activeOtherLayers: [],
|
|
537
536
|
autoActiveCache: "autoActiveCache",
|
|
538
|
-
|
|
537
|
+
activeWeatherLayersCache: "activeWeatherLayersCache",
|
|
538
|
+
activeOtherLayersCache: "activeOtherLayersCache",
|
|
539
539
|
collectedLayerCache: "collectedLayerCache",
|
|
540
540
|
sourceCache: "defaultSourceCache",
|
|
541
|
+
windFeatherCache: "windFeatherCache",
|
|
542
|
+
currentIsobandCache: "currentIsobandCache",
|
|
541
543
|
showCoord: !1,
|
|
542
544
|
showMeasure: !1,
|
|
543
545
|
showPoint: !1,
|
|
@@ -577,26 +579,6 @@ const T = (a, e) => {
|
|
|
577
579
|
handler(a, e) {
|
|
578
580
|
a && e && a !== e && this.handleConfirm();
|
|
579
581
|
}
|
|
580
|
-
},
|
|
581
|
-
showWindFeather: {
|
|
582
|
-
handler() {
|
|
583
|
-
!this.showWindFeather && !this.showWindParticle && this.weatherLayers.some((a) => a.key === "wind") && (console.log(888999), 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.weatherLayers.some((a) => a.key === "wind") && (console.log(777999), 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.weatherLayers.some((a) => a.key === "current") && (console.log(666999), 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.weatherLayers.some((a) => a.key === "current") && (console.log(555999), this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 }));
|
|
599
|
-
}
|
|
600
582
|
}
|
|
601
583
|
},
|
|
602
584
|
mounted() {
|
|
@@ -605,38 +587,62 @@ const T = (a, e) => {
|
|
|
605
587
|
methods: {
|
|
606
588
|
fetchCache() {
|
|
607
589
|
const a = localStorage.getItem(this.version.k);
|
|
608
|
-
this.version.v !== a && (localStorage.removeItem(this.
|
|
590
|
+
this.version.v !== a && (localStorage.removeItem(this.activeWeatherLayersCache), localStorage.removeItem(this.collectedLayerCache), localStorage.removeItem(this.activeOtherLayersCache), localStorage.removeItem(this.windFeatherCache), localStorage.removeItem(this.currentIsobandCache), localStorage.setItem(this.version.k, this.version.v));
|
|
609
591
|
let e = localStorage.getItem(this.autoActiveCache);
|
|
610
592
|
this.autoActive = e !== "false", e = localStorage.getItem(this.collectedLayerCache);
|
|
611
593
|
let t = JSON.parse(
|
|
612
|
-
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":
|
|
594
|
+
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": 6, "name": "Swell", "key": "swell", "collected": true}]'
|
|
613
595
|
);
|
|
614
596
|
this.layers.weather.forEach((r) => {
|
|
615
597
|
r.collected = !!t.some((i) => i.key === r.key && i.collected);
|
|
616
|
-
}), e = localStorage.getItem(this.
|
|
598
|
+
}), e = localStorage.getItem(this.activeWeatherLayersCache), t = JSON.parse(
|
|
617
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"}]'
|
|
618
|
-
), this.autoActive && (this.
|
|
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";
|
|
619
601
|
},
|
|
620
602
|
handleConfirm() {
|
|
621
|
-
this.$emit("weather", this.
|
|
603
|
+
this.$emit("weather", this.activeWeatherLayers, this.source), this.$emit("other", this.activeOtherLayers), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
|
|
622
604
|
},
|
|
623
605
|
handleWeatherLayerPick(a) {
|
|
624
606
|
if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe" || !this.autoActive)
|
|
625
607
|
return !1;
|
|
626
|
-
|
|
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 < 12 && a.enabled && (["png", "jpg"].includes(a.type) ? this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json" && !e.particle) : a.particle && (this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json" && !(["wind", "current"].includes(a.key) && e.particle))), this.activeWeatherLayers.push(a)), this.$emit("weather", this.activeWeatherLayers, this.source), localStorage.setItem(this.activeWeatherLayersCache, JSON.stringify(this.activeWeatherLayers));
|
|
609
|
+
},
|
|
610
|
+
handleActiveWeatherLayerPick(a) {
|
|
611
|
+
if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe")
|
|
612
|
+
return !1;
|
|
613
|
+
if (this.activeWeatherLayers.some((e) => e.key === a.key))
|
|
614
|
+
this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== a.key);
|
|
615
|
+
else if (a.enabled) {
|
|
616
|
+
this.activeWeatherLayers.push(a);
|
|
617
|
+
for (const e of this.activeWeatherLayers)
|
|
618
|
+
a.weight > e.weight && a.weight & e.weight && this.activeWeatherLayers.push(e);
|
|
619
|
+
}
|
|
620
|
+
this.handleWeatherLayerPick(a);
|
|
627
621
|
},
|
|
628
622
|
handleWeatherLayerCollect(a) {
|
|
629
623
|
var e;
|
|
630
624
|
!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");
|
|
631
625
|
},
|
|
626
|
+
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);
|
|
628
|
+
},
|
|
629
|
+
handleToggleWindFeather() {
|
|
630
|
+
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
|
+
},
|
|
632
|
+
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);
|
|
634
|
+
},
|
|
635
|
+
handleToggleCurrentIsoband() {
|
|
636
|
+
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);
|
|
637
|
+
},
|
|
632
638
|
handleOtherLayerPick(a) {
|
|
633
|
-
this.
|
|
639
|
+
this.activeOtherLayers.some((e) => e.key === a.key) ? this.activeOtherLayers = this.activeOtherLayers.filter((e) => e.key !== a.key) : a.enabled && this.activeOtherLayers.push(a), localStorage.setItem(this.activeOtherLayersCache, JSON.stringify(this.activeOtherLayers)), this.$emit("other", this.activeOtherLayers);
|
|
634
640
|
},
|
|
635
641
|
handleMenuToggle() {
|
|
636
642
|
this.$emit("layerToggle", !this.layerToggle);
|
|
637
643
|
},
|
|
638
644
|
toggleAutoActive() {
|
|
639
|
-
this.autoActive = !this.autoActive, localStorage.setItem(this.autoActiveCache, this.autoActive), this.autoActive ? this.$emit("weather", this.
|
|
645
|
+
this.autoActive = !this.autoActive, localStorage.setItem(this.autoActiveCache, this.autoActive), this.autoActive ? this.$emit("weather", this.activeWeatherLayers, this.source) : this.$emit("weather", [], this.source);
|
|
640
646
|
},
|
|
641
647
|
handleCoordToggle() {
|
|
642
648
|
this.showCoord = !this.showCoord, this.$emit("coordinate", this.showCoord);
|
|
@@ -651,32 +657,62 @@ const T = (a, e) => {
|
|
|
651
657
|
this.show3d = !this.show3d, this.$emit("3d", this.show3d);
|
|
652
658
|
}
|
|
653
659
|
}
|
|
654
|
-
},
|
|
660
|
+
}, qe = { class: "idm-gl3-layer" }, Qe = { class: "bar-item layer-bars" }, Ke = { class: "bar-item tool-bars" }, et = { class: "flex-between" }, tt = {
|
|
661
|
+
key: 0,
|
|
662
|
+
class: "iconfont active"
|
|
663
|
+
}, at = {
|
|
664
|
+
key: 1,
|
|
665
|
+
class: "iconfont"
|
|
666
|
+
}, it = ["onClick"], rt = ["onClick"], ot = {
|
|
655
667
|
key: 0,
|
|
656
|
-
class: "
|
|
657
|
-
},
|
|
668
|
+
class: "flex-start"
|
|
669
|
+
}, st = {
|
|
658
670
|
key: 1,
|
|
659
|
-
class: "
|
|
660
|
-
},
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
671
|
+
class: "flex-start"
|
|
672
|
+
}, nt = { class: "header-box flex-between" }, lt = { class: "weather-layers card-bg" }, ct = { class: "layers-title flex-between" }, ht = {
|
|
673
|
+
key: 0,
|
|
674
|
+
class: "iconfont active"
|
|
675
|
+
}, dt = {
|
|
676
|
+
key: 1,
|
|
677
|
+
class: "iconfont"
|
|
678
|
+
}, pt = { class: "layers-body" }, mt = { class: "flex-start" }, ut = ["onClick"], yt = ["onClick"], ft = {
|
|
679
|
+
key: 0,
|
|
680
|
+
class: "flex-start"
|
|
681
|
+
}, gt = {
|
|
682
|
+
key: 1,
|
|
683
|
+
class: "flex-start"
|
|
684
|
+
}, bt = ["onClick"], vt = {
|
|
685
|
+
key: 0,
|
|
686
|
+
class: "iconfont bookmark-icon active"
|
|
687
|
+
}, wt = {
|
|
688
|
+
key: 1,
|
|
689
|
+
class: "iconfont bookmark-icon inactive"
|
|
690
|
+
}, Lt = { class: "other-layers card-bg" }, xt = { class: "layers-body" }, _t = ["onClick"], Ct = { class: "flex-start" }, kt = { class: "switch flex-center" }, St = {
|
|
691
|
+
key: 0,
|
|
692
|
+
class: "iconfont active"
|
|
693
|
+
}, Pt = {
|
|
694
|
+
key: 1,
|
|
695
|
+
class: "iconfont"
|
|
696
|
+
}, zt = { class: "source-layers card-bg" }, Tt = { class: "layers-body" };
|
|
697
|
+
function It(a, e, t, r, i, o) {
|
|
698
|
+
const s = P("ElTooltip"), l = P("ElRadio"), h = P("ElRadioGroup"), p = P("ElScrollbar");
|
|
699
|
+
return L(), x("div", qe, [
|
|
664
700
|
n("div", {
|
|
665
701
|
class: "menu-bar-box",
|
|
666
|
-
style:
|
|
702
|
+
style: Z({ top: t.top + 10 + "px", right: i.right + "px" })
|
|
667
703
|
}, [
|
|
668
|
-
n("div",
|
|
704
|
+
n("div", Qe, [
|
|
669
705
|
k(s, {
|
|
670
706
|
placement: "left",
|
|
671
707
|
effect: "light",
|
|
672
708
|
content: "Menu",
|
|
673
709
|
"show-after": 1e3
|
|
674
710
|
}, {
|
|
675
|
-
default:
|
|
711
|
+
default: H(() => [
|
|
676
712
|
n("div", {
|
|
677
|
-
class:
|
|
713
|
+
class: D(t.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
678
714
|
onClick: e[0] || (e[0] = (...c) => o.handleMenuToggle && o.handleMenuToggle(...c))
|
|
679
|
-
}, e[
|
|
715
|
+
}, e[17] || (e[17] = [
|
|
680
716
|
n("span", { class: "iconfont" }, "", -1)
|
|
681
717
|
]), 2)
|
|
682
718
|
]),
|
|
@@ -686,20 +722,20 @@ function ut(a, e, t, r, i, o) {
|
|
|
686
722
|
], 4),
|
|
687
723
|
n("div", {
|
|
688
724
|
class: "menu-bar-box",
|
|
689
|
-
style:
|
|
725
|
+
style: Z({ top: t.top + 160 + "px", right: i.right + "px" })
|
|
690
726
|
}, [
|
|
691
|
-
n("div",
|
|
727
|
+
n("div", Ke, [
|
|
692
728
|
k(s, {
|
|
693
729
|
placement: "left",
|
|
694
730
|
effect: "light",
|
|
695
731
|
content: "Measure",
|
|
696
732
|
"show-after": 1e3
|
|
697
733
|
}, {
|
|
698
|
-
default:
|
|
734
|
+
default: H(() => [
|
|
699
735
|
n("div", {
|
|
700
|
-
class:
|
|
736
|
+
class: D(i.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
701
737
|
onClick: e[1] || (e[1] = (...c) => o.handleMeasureToggle && o.handleMeasureToggle(...c))
|
|
702
|
-
}, e[
|
|
738
|
+
}, e[18] || (e[18] = [
|
|
703
739
|
n("span", { class: "iconfont" }, "", -1)
|
|
704
740
|
]), 2)
|
|
705
741
|
]),
|
|
@@ -711,11 +747,11 @@ function ut(a, e, t, r, i, o) {
|
|
|
711
747
|
content: "Point Meteo",
|
|
712
748
|
"show-after": 1e3
|
|
713
749
|
}, {
|
|
714
|
-
default:
|
|
750
|
+
default: H(() => [
|
|
715
751
|
n("div", {
|
|
716
|
-
class:
|
|
752
|
+
class: D(i.showPoint ? "menu-icon active" : "menu-icon"),
|
|
717
753
|
onClick: e[2] || (e[2] = (...c) => o.handlePointToggle && o.handlePointToggle(...c))
|
|
718
|
-
}, e[
|
|
754
|
+
}, e[19] || (e[19] = [
|
|
719
755
|
n("span", { class: "iconfont" }, "", -1)
|
|
720
756
|
]), 2)
|
|
721
757
|
]),
|
|
@@ -727,11 +763,11 @@ function ut(a, e, t, r, i, o) {
|
|
|
727
763
|
content: "Grid",
|
|
728
764
|
"show-after": 1e3
|
|
729
765
|
}, {
|
|
730
|
-
default:
|
|
766
|
+
default: H(() => [
|
|
731
767
|
n("div", {
|
|
732
|
-
class:
|
|
768
|
+
class: D(i.showCoord ? "menu-icon active" : "menu-icon"),
|
|
733
769
|
onClick: e[3] || (e[3] = (...c) => o.handleCoordToggle && o.handleCoordToggle(...c))
|
|
734
|
-
}, e[
|
|
770
|
+
}, e[20] || (e[20] = [
|
|
735
771
|
n("span", { class: "iconfont" }, "", -1)
|
|
736
772
|
]), 2)
|
|
737
773
|
]),
|
|
@@ -743,11 +779,11 @@ function ut(a, e, t, r, i, o) {
|
|
|
743
779
|
content: "3D",
|
|
744
780
|
"show-after": 1e3
|
|
745
781
|
}, {
|
|
746
|
-
default:
|
|
782
|
+
default: H(() => [
|
|
747
783
|
n("div", {
|
|
748
|
-
class:
|
|
784
|
+
class: D(i.show3d ? "menu-icon active" : "menu-icon"),
|
|
749
785
|
onClick: e[4] || (e[4] = (...c) => o.handle3DToggle && o.handle3DToggle(...c))
|
|
750
|
-
}, e[
|
|
786
|
+
}, e[21] || (e[21] = [
|
|
751
787
|
n("span", { class: "iconfont" }, "", -1)
|
|
752
788
|
]), 2)
|
|
753
789
|
]),
|
|
@@ -755,127 +791,174 @@ function ut(a, e, t, r, i, o) {
|
|
|
755
791
|
})
|
|
756
792
|
])
|
|
757
793
|
], 4),
|
|
758
|
-
o.hasCollectedLayers ? (
|
|
794
|
+
o.hasCollectedLayers ? (L(), x("div", {
|
|
759
795
|
key: 0,
|
|
760
|
-
class:
|
|
761
|
-
style:
|
|
796
|
+
class: "active-layers",
|
|
797
|
+
style: Z({ right: i.right + "px", bottom: "100px" })
|
|
762
798
|
}, [
|
|
763
|
-
n("div",
|
|
764
|
-
(
|
|
765
|
-
|
|
766
|
-
class:
|
|
767
|
-
|
|
799
|
+
n("div", et, [
|
|
800
|
+
e[22] || (e[22] = n("div", { style: { "margin-left": "5px" } }, "My Favorites", -1)),
|
|
801
|
+
n("div", {
|
|
802
|
+
class: "switch flex-center",
|
|
803
|
+
style: { "font-size": "28px", "margin-right": "0" },
|
|
804
|
+
onClick: e[5] || (e[5] = (...c) => o.toggleAutoActive && o.toggleAutoActive(...c))
|
|
768
805
|
}, [
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
], 10, et))), 128))
|
|
806
|
+
i.autoActive ? (L(), x("i", tt, "")) : (L(), x("i", at, ""))
|
|
807
|
+
])
|
|
772
808
|
]),
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
809
|
+
(L(!0), x(Ie, null, Ae(i.layers.weather.filter((c) => c.collected), (c) => (L(), x("div", {
|
|
810
|
+
key: c.key,
|
|
811
|
+
class: D(o.computeLayerClass(c, i.activeWeatherLayers))
|
|
812
|
+
}, [
|
|
813
|
+
n("div", {
|
|
814
|
+
class: "checkbox",
|
|
815
|
+
onClick: (d) => o.handleWeatherLayerPick(c)
|
|
816
|
+
}, null, 8, it),
|
|
817
|
+
n("span", {
|
|
818
|
+
class: "name",
|
|
819
|
+
onClick: (d) => o.handleWeatherLayerPick(c)
|
|
820
|
+
}, S(c.name), 9, rt),
|
|
821
|
+
c.key === "wind" && i.activeWeatherLayers.some((d) => d.key === c.key) ? (L(), x("div", ot, [
|
|
822
|
+
n("i", {
|
|
823
|
+
class: D(["iconfont sub-layer-icon", t.showWindParticle ? "active" : ""]),
|
|
824
|
+
onClick: e[6] || (e[6] = (d) => o.handleToggleWindParticle())
|
|
825
|
+
}, "", 2),
|
|
826
|
+
n("i", {
|
|
827
|
+
class: D(["iconfont sub-layer-icon", t.showWindFeather ? "active" : ""]),
|
|
828
|
+
onClick: e[7] || (e[7] = (d) => o.handleToggleWindFeather())
|
|
829
|
+
}, "", 2)
|
|
830
|
+
])) : M("", !0),
|
|
831
|
+
c.key === "current" && i.activeWeatherLayers.some((d) => d.key === c.key) ? (L(), x("div", st, [
|
|
832
|
+
n("i", {
|
|
833
|
+
class: D(["iconfont sub-layer-icon", t.showCurrentParticle ? "active" : ""]),
|
|
834
|
+
onClick: e[8] || (e[8] = (d) => o.handleToggleCurrentParticle())
|
|
835
|
+
}, "", 2),
|
|
836
|
+
n("i", {
|
|
837
|
+
class: D(["iconfont sub-layer-icon", t.showCurrentIsoband ? "active" : ""]),
|
|
838
|
+
onClick: e[9] || (e[9] = (d) => o.handleToggleCurrentIsoband())
|
|
839
|
+
}, "", 2)
|
|
840
|
+
])) : M("", !0)
|
|
841
|
+
], 2))), 128))
|
|
842
|
+
], 4)) : M("", !0),
|
|
782
843
|
n("div", {
|
|
783
844
|
class: "available-layers flex-center",
|
|
784
|
-
style:
|
|
845
|
+
style: Z({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
|
|
785
846
|
}, [
|
|
786
847
|
n("div", {
|
|
787
|
-
class:
|
|
848
|
+
class: D(["list-box", t.layerToggle ? "right-bar" : ""])
|
|
788
849
|
}, [
|
|
789
|
-
n("div",
|
|
790
|
-
e[
|
|
850
|
+
n("div", nt, [
|
|
851
|
+
e[23] || (e[23] = n("div", null, "Layers", -1)),
|
|
791
852
|
n("div", {
|
|
792
853
|
class: "iconfont close-btn",
|
|
793
|
-
onClick: e[
|
|
854
|
+
onClick: e[10] || (e[10] = (...c) => o.handleMenuToggle && o.handleMenuToggle(...c))
|
|
794
855
|
}, "")
|
|
795
856
|
]),
|
|
796
|
-
k(
|
|
797
|
-
default:
|
|
798
|
-
n("div",
|
|
799
|
-
n("div",
|
|
800
|
-
|
|
801
|
-
}, [
|
|
802
|
-
e[18] || (e[18] = n("div", null, "Weather Layers", -1)),
|
|
857
|
+
k(p, { style: { flex: "1" } }, {
|
|
858
|
+
default: H(() => [
|
|
859
|
+
n("div", lt, [
|
|
860
|
+
n("div", ct, [
|
|
861
|
+
e[24] || (e[24] = n("div", null, "Weather Layers", -1)),
|
|
803
862
|
n("div", {
|
|
804
863
|
class: "switch flex-center",
|
|
805
864
|
style: { "margin-right": "0" },
|
|
806
|
-
onClick: e[
|
|
807
|
-
},
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
(_(!0), C(_e, null, Se(i.layers.weather, (c) => (_(), C(_e, {
|
|
865
|
+
onClick: e[11] || (e[11] = (...c) => o.toggleAutoActive && o.toggleAutoActive(...c))
|
|
866
|
+
}, [
|
|
867
|
+
i.autoActive ? (L(), x("i", ht, "")) : (L(), x("i", dt, ""))
|
|
868
|
+
])
|
|
869
|
+
]),
|
|
870
|
+
n("div", pt, [
|
|
871
|
+
(L(!0), x(Ie, null, Ae(i.layers.weather, (c) => (L(), x(Ie, {
|
|
814
872
|
key: c.key
|
|
815
873
|
}, [
|
|
816
|
-
c.hide ?
|
|
874
|
+
c.hide ? M("", !0) : (L(), x("div", {
|
|
817
875
|
key: 0,
|
|
818
|
-
class:
|
|
876
|
+
class: D(o.computeLayerClass(c, i.activeWeatherLayers))
|
|
819
877
|
}, [
|
|
878
|
+
n("div", mt, [
|
|
879
|
+
n("div", {
|
|
880
|
+
class: "checkbox",
|
|
881
|
+
onClick: (d) => o.handleWeatherLayerPick(c)
|
|
882
|
+
}, null, 8, ut),
|
|
883
|
+
n("span", {
|
|
884
|
+
class: "name",
|
|
885
|
+
onClick: (d) => o.handleWeatherLayerPick(c)
|
|
886
|
+
}, S(c.name), 9, yt),
|
|
887
|
+
c.key === "wind" && i.activeWeatherLayers.some((d) => d.key === c.key) ? (L(), x("div", ft, [
|
|
888
|
+
n("i", {
|
|
889
|
+
class: D(["iconfont sub-layer-icon", t.showWindParticle ? "active" : ""]),
|
|
890
|
+
onClick: e[12] || (e[12] = (d) => o.handleToggleWindParticle())
|
|
891
|
+
}, "", 2),
|
|
892
|
+
n("i", {
|
|
893
|
+
class: D(["iconfont sub-layer-icon", t.showWindFeather ? "active" : ""]),
|
|
894
|
+
onClick: e[13] || (e[13] = (d) => o.handleToggleWindFeather())
|
|
895
|
+
}, "", 2)
|
|
896
|
+
])) : M("", !0),
|
|
897
|
+
c.key === "current" && i.activeWeatherLayers.some((d) => d.key === c.key) ? (L(), x("div", gt, [
|
|
898
|
+
n("i", {
|
|
899
|
+
class: D(["iconfont sub-layer-icon", t.showCurrentParticle ? "active" : ""]),
|
|
900
|
+
onClick: e[14] || (e[14] = (d) => o.handleToggleCurrentParticle())
|
|
901
|
+
}, "", 2),
|
|
902
|
+
n("i", {
|
|
903
|
+
class: D(["iconfont sub-layer-icon", t.showCurrentIsoband ? "active" : ""]),
|
|
904
|
+
onClick: e[15] || (e[15] = (d) => o.handleToggleCurrentIsoband())
|
|
905
|
+
}, "", 2)
|
|
906
|
+
])) : M("", !0)
|
|
907
|
+
]),
|
|
820
908
|
n("div", {
|
|
821
|
-
|
|
822
|
-
onClick: (p) => o.handleWeatherLayerPick(c)
|
|
823
|
-
}, [
|
|
824
|
-
e[19] || (e[19] = n("div", { class: "checkbox" }, null, -1)),
|
|
825
|
-
n("span", null, S(c.name), 1)
|
|
826
|
-
], 8, rt),
|
|
827
|
-
n("div", {
|
|
828
|
-
onClick: (p) => o.handleWeatherLayerCollect(c)
|
|
909
|
+
onClick: (d) => o.handleWeatherLayerCollect(c)
|
|
829
910
|
}, [
|
|
830
|
-
c.collected ? (
|
|
831
|
-
], 8,
|
|
911
|
+
c.collected ? (L(), x("i", vt, "")) : (L(), x("i", wt, ""))
|
|
912
|
+
], 8, bt)
|
|
832
913
|
], 2))
|
|
833
914
|
], 64))), 128)),
|
|
834
|
-
e[
|
|
915
|
+
e[25] || (e[25] = n("div", { class: "tip flex-start" }, [
|
|
835
916
|
n("i", {
|
|
836
|
-
class: "iconfont bookmark",
|
|
917
|
+
class: "iconfont bookmark-icon",
|
|
837
918
|
style: { "align-self": "flex-start", padding: "5px 5px 0 0" }
|
|
838
919
|
}, ""),
|
|
839
|
-
n("div", null, "
|
|
920
|
+
n("div", null, "You can add the layers to your favorites. (Max 6)")
|
|
840
921
|
], -1))
|
|
841
922
|
])
|
|
842
923
|
]),
|
|
843
|
-
n("div",
|
|
844
|
-
e[
|
|
845
|
-
n("div",
|
|
846
|
-
(
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
n("
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
924
|
+
n("div", Lt, [
|
|
925
|
+
e[26] || (e[26] = n("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
926
|
+
n("div", xt, [
|
|
927
|
+
(L(!0), x(Ie, null, Ae(i.layers.other, (c) => {
|
|
928
|
+
var d;
|
|
929
|
+
return L(), x("div", {
|
|
930
|
+
key: c.key,
|
|
931
|
+
class: D(["layer flex-between", o.computeLayerClass(c, i.activeOtherLayers)]),
|
|
932
|
+
onClick: (f) => o.handleOtherLayerPick(c)
|
|
933
|
+
}, [
|
|
934
|
+
n("div", Ct, [
|
|
935
|
+
n("div", kt, [
|
|
936
|
+
(d = o.computeLayerClass(c, i.activeOtherLayers)) != null && d.includes("active") ? (L(), x("i", St, "")) : (L(), x("i", Pt, ""))
|
|
937
|
+
]),
|
|
938
|
+
n("span", null, S(c.name), 1)
|
|
939
|
+
])
|
|
940
|
+
], 10, _t);
|
|
941
|
+
}), 128))
|
|
859
942
|
])
|
|
860
943
|
]),
|
|
861
|
-
n("div",
|
|
862
|
-
e[
|
|
863
|
-
n("div",
|
|
944
|
+
n("div", zt, [
|
|
945
|
+
e[29] || (e[29] = n("span", { class: "layers-title" }, "Forecast Model", -1)),
|
|
946
|
+
n("div", Tt, [
|
|
864
947
|
k(h, {
|
|
865
948
|
modelValue: i.source,
|
|
866
|
-
"onUpdate:modelValue": e[
|
|
949
|
+
"onUpdate:modelValue": e[16] || (e[16] = (c) => i.source = c),
|
|
867
950
|
class: "layer-radio flex-col-center-start"
|
|
868
951
|
}, {
|
|
869
|
-
default:
|
|
952
|
+
default: H(() => [
|
|
870
953
|
k(l, { value: "GFS" }, {
|
|
871
|
-
default:
|
|
872
|
-
|
|
954
|
+
default: H(() => e[27] || (e[27] = [
|
|
955
|
+
De("GFS")
|
|
873
956
|
])),
|
|
874
957
|
_: 1
|
|
875
958
|
}),
|
|
876
959
|
k(l, { value: "CMEMS" }, {
|
|
877
|
-
default:
|
|
878
|
-
|
|
960
|
+
default: H(() => e[28] || (e[28] = [
|
|
961
|
+
De("CMEMS")
|
|
879
962
|
])),
|
|
880
963
|
_: 1
|
|
881
964
|
})
|
|
@@ -891,8 +974,8 @@ function ut(a, e, t, r, i, o) {
|
|
|
891
974
|
], 4)
|
|
892
975
|
]);
|
|
893
976
|
}
|
|
894
|
-
const
|
|
895
|
-
const
|
|
977
|
+
const Rt = /* @__PURE__ */ T(Ye, [["render", It]]);
|
|
978
|
+
const Et = {
|
|
896
979
|
name: "IdmWindBarb",
|
|
897
980
|
props: {
|
|
898
981
|
map: {
|
|
@@ -910,7 +993,11 @@ const ft = {
|
|
|
910
993
|
mapProjection: {
|
|
911
994
|
type: String
|
|
912
995
|
},
|
|
913
|
-
|
|
996
|
+
showWindFeather: {
|
|
997
|
+
type: Boolean,
|
|
998
|
+
default: !1
|
|
999
|
+
},
|
|
1000
|
+
showWindParticle: {
|
|
914
1001
|
type: Boolean,
|
|
915
1002
|
default: !1
|
|
916
1003
|
},
|
|
@@ -923,9 +1010,7 @@ const ft = {
|
|
|
923
1010
|
return {
|
|
924
1011
|
source: "wind-barb-source",
|
|
925
1012
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
926
|
-
empty:
|
|
927
|
-
showFeather: localStorage.getItem("windFeatherCache") === "true" || !1,
|
|
928
|
-
windFeatherCache: "windFeatherCache",
|
|
1013
|
+
empty: C.featureCollection([]),
|
|
929
1014
|
right: 10,
|
|
930
1015
|
bottom: 125,
|
|
931
1016
|
windBarbLoaded: !1
|
|
@@ -935,32 +1020,35 @@ const ft = {
|
|
|
935
1020
|
"wind.version": {
|
|
936
1021
|
handler() {
|
|
937
1022
|
var a;
|
|
938
|
-
(a = this.wind) != null && a.active && this.
|
|
1023
|
+
(a = this.wind) != null && a.active && this.showWindFeather ? this.handleRender() : this.handleClear();
|
|
939
1024
|
},
|
|
940
1025
|
deep: !0
|
|
941
1026
|
},
|
|
942
|
-
|
|
943
|
-
handler() {
|
|
944
|
-
},
|
|
945
|
-
immediate: !0
|
|
946
|
-
},
|
|
947
|
-
showFeather: {
|
|
1027
|
+
showWindParticle: {
|
|
948
1028
|
handler() {
|
|
949
|
-
|
|
950
|
-
}
|
|
951
|
-
immediate:
|
|
1029
|
+
this.handleParticle();
|
|
1030
|
+
}
|
|
1031
|
+
// immediate: true,
|
|
952
1032
|
},
|
|
953
|
-
|
|
1033
|
+
showWindFeather: {
|
|
954
1034
|
handler() {
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
immediate: !0
|
|
1035
|
+
this.handleToggle();
|
|
1036
|
+
}
|
|
1037
|
+
// immediate: true,
|
|
959
1038
|
}
|
|
1039
|
+
// toggleVersion: {
|
|
1040
|
+
// handler() {
|
|
1041
|
+
// this.right = (document.getElementsByClassName('right-bar')[0]?.clientWidth || 0) + 10
|
|
1042
|
+
// this.bottom = this.current?.active
|
|
1043
|
+
// ? (document.getElementsByClassName('active-layers')[0]?.clientHeight || 0) + 148
|
|
1044
|
+
// : (document.getElementsByClassName('active-layers')[0]?.clientHeight || 0) + 110
|
|
1045
|
+
// },
|
|
1046
|
+
// immediate: true,
|
|
1047
|
+
// },
|
|
960
1048
|
},
|
|
961
1049
|
methods: {
|
|
962
1050
|
handleParticle() {
|
|
963
|
-
this.$emit("particle", { particle:
|
|
1051
|
+
this.$emit("particle", { particle: this.showWindParticle, key: "wind", weight: 1 });
|
|
964
1052
|
},
|
|
965
1053
|
handleRender() {
|
|
966
1054
|
var a, e, t, r;
|
|
@@ -976,22 +1064,22 @@ const ft = {
|
|
|
976
1064
|
else {
|
|
977
1065
|
this.map.addSource(this.source, { type: "geojson", data: l });
|
|
978
1066
|
for (let h = 0; h < (this.barbs ?? []).length - 1; h++) {
|
|
979
|
-
const
|
|
1067
|
+
const p = (this.barbs ?? [])[h] || 0, c = (this.barbs ?? [])[h + 1] || 0, d = p < 10 ? `00${p}kts` : p < 100 ? `0${p}kts` : `${p}kts`;
|
|
980
1068
|
this.map.addLayer(
|
|
981
1069
|
{
|
|
982
|
-
id:
|
|
1070
|
+
id: d,
|
|
983
1071
|
type: "symbol",
|
|
984
1072
|
filter: [
|
|
985
1073
|
"all",
|
|
986
1074
|
// @ts-ignore
|
|
987
|
-
[">=", "spd",
|
|
1075
|
+
[">=", "spd", p],
|
|
988
1076
|
// @ts-ignore
|
|
989
1077
|
["<", "spd", c]
|
|
990
1078
|
],
|
|
991
1079
|
source: this.source,
|
|
992
1080
|
layout: {
|
|
993
1081
|
"symbol-placement": "point",
|
|
994
|
-
"icon-image":
|
|
1082
|
+
"icon-image": d,
|
|
995
1083
|
// mapbox sprite
|
|
996
1084
|
"icon-size": 0.14,
|
|
997
1085
|
"icon-offset": [0, -20],
|
|
@@ -1023,7 +1111,7 @@ const ft = {
|
|
|
1023
1111
|
else
|
|
1024
1112
|
for (const a of this.barbs ?? []) {
|
|
1025
1113
|
const e = a < 10 ? `00${a}kts` : a < 100 ? `0${a}kts` : `${a}kts`;
|
|
1026
|
-
this.map.getLayer(e) && this.map.setLayoutProperty(e, "visibility", this.
|
|
1114
|
+
this.map.getLayer(e) && this.map.setLayoutProperty(e, "visibility", this.showWindFeather ? "visible" : "none");
|
|
1027
1115
|
}
|
|
1028
1116
|
},
|
|
1029
1117
|
handleClear() {
|
|
@@ -1034,45 +1122,24 @@ const ft = {
|
|
|
1034
1122
|
this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
|
|
1035
1123
|
}
|
|
1036
1124
|
}
|
|
1037
|
-
},
|
|
1038
|
-
function
|
|
1125
|
+
}, At = { key: 0 };
|
|
1126
|
+
function Dt(a, e, t, r, i, o) {
|
|
1039
1127
|
var s;
|
|
1040
|
-
return (s = t.wind) != null && s.active ? (
|
|
1041
|
-
n("div", {
|
|
1042
|
-
class: "flex-center wind-tool-bars",
|
|
1043
|
-
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
|
|
1044
|
-
}, [
|
|
1045
|
-
t.mapProjection === "mercator" ? (_(), C("div", {
|
|
1046
|
-
key: 0,
|
|
1047
|
-
class: W(["item-bar flex-start", t.showParticle ? "active" : "inactive"]),
|
|
1048
|
-
onClick: e[0] || (e[0] = (...l) => o.handleParticle && o.handleParticle(...l))
|
|
1049
|
-
}, e[2] || (e[2] = [
|
|
1050
|
-
n("div", { class: "checkbox" }, null, -1),
|
|
1051
|
-
n("span", null, "Wind Particles", -1)
|
|
1052
|
-
]), 2)) : B("", !0),
|
|
1053
|
-
n("div", {
|
|
1054
|
-
class: W(["item-bar flex-start", i.showFeather ? "active" : "inactive"]),
|
|
1055
|
-
onClick: e[1] || (e[1] = (l) => i.showFeather = !i.showFeather)
|
|
1056
|
-
}, e[3] || (e[3] = [
|
|
1057
|
-
n("div", { class: "checkbox" }, null, -1),
|
|
1058
|
-
n("span", null, "Wind Feather", -1)
|
|
1059
|
-
]), 2)
|
|
1060
|
-
], 4)
|
|
1061
|
-
])) : B("", !0);
|
|
1128
|
+
return (s = t.wind) != null && s.active ? (L(), x("div", At)) : M("", !0);
|
|
1062
1129
|
}
|
|
1063
|
-
const
|
|
1064
|
-
class
|
|
1130
|
+
const Wt = /* @__PURE__ */ T(Et, [["render", Dt]]);
|
|
1131
|
+
class Be {
|
|
1065
1132
|
constructor(e) {
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
this.map = e, this.mercator = new
|
|
1133
|
+
E(this, "map");
|
|
1134
|
+
E(this, "mercator");
|
|
1135
|
+
E(this, "rampColorLayer");
|
|
1136
|
+
E(this, "rampColorSource");
|
|
1137
|
+
E(this, "particleLayer");
|
|
1138
|
+
E(this, "particleSource");
|
|
1139
|
+
E(this, "rampColorCanvas");
|
|
1140
|
+
E(this, "particleCanvas");
|
|
1141
|
+
E(this, "ratio");
|
|
1142
|
+
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;
|
|
1076
1143
|
}
|
|
1077
1144
|
/**
|
|
1078
1145
|
* 转换为[-180, 180]的经度,且包含转换次数
|
|
@@ -1106,8 +1173,8 @@ class Re {
|
|
|
1106
1173
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
1107
1174
|
*/
|
|
1108
1175
|
getBoundPixel() {
|
|
1109
|
-
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]), [
|
|
1110
|
-
return [
|
|
1176
|
+
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]), [p, c] = this.mercator.px([o, r[1]], t), [d, f] = this.mercator.px([l, i[1]], t), m = Math.round(this.mercator.size * Math.pow(2, t) * (s + h));
|
|
1177
|
+
return [d, f, p + m, c];
|
|
1111
1178
|
}
|
|
1112
1179
|
/**
|
|
1113
1180
|
* [视窗边界像素宽度]
|
|
@@ -1124,11 +1191,11 @@ class Re {
|
|
|
1124
1191
|
getWorldCopy(e, t) {
|
|
1125
1192
|
const r = 2 ** t, [i, o, s, l] = e.map((c) => ~~(c / (r * 256))), h = [];
|
|
1126
1193
|
for (let c = l; c <= o; c++)
|
|
1127
|
-
for (let
|
|
1128
|
-
h.push([
|
|
1194
|
+
for (let d = i; d <= s; d++)
|
|
1195
|
+
h.push([d, c]);
|
|
1129
1196
|
return h.map((c) => {
|
|
1130
|
-
const
|
|
1131
|
-
return [c[0] *
|
|
1197
|
+
const d = 2 ** t * 256;
|
|
1198
|
+
return [c[0] * d, c[1] * d, d];
|
|
1132
1199
|
});
|
|
1133
1200
|
}
|
|
1134
1201
|
resize() {
|
|
@@ -1210,13 +1277,13 @@ class fe {
|
|
|
1210
1277
|
if (i) {
|
|
1211
1278
|
const o = { program: i }, s = e.getProgramParameter(i, e.ACTIVE_ATTRIBUTES);
|
|
1212
1279
|
for (let h = 0; h < s; h++) {
|
|
1213
|
-
const
|
|
1214
|
-
o[
|
|
1280
|
+
const p = e.getActiveAttrib(i, h);
|
|
1281
|
+
o[p.name] = e.getAttribLocation(i, p.name);
|
|
1215
1282
|
}
|
|
1216
1283
|
const l = e.getProgramParameter(i, e.ACTIVE_UNIFORMS);
|
|
1217
1284
|
for (let h = 0; h < l; h++) {
|
|
1218
|
-
const
|
|
1219
|
-
o[
|
|
1285
|
+
const p = e.getActiveUniform(i, h);
|
|
1286
|
+
o[p.name] = e.getUniformLocation(i, p.name);
|
|
1220
1287
|
}
|
|
1221
1288
|
return o;
|
|
1222
1289
|
}
|
|
@@ -1231,8 +1298,8 @@ class fe {
|
|
|
1231
1298
|
const l = s.getContext("2d");
|
|
1232
1299
|
if (l && e) {
|
|
1233
1300
|
const h = l == null ? void 0 : l.createLinearGradient(0, 0, 256, 0);
|
|
1234
|
-
return t.forEach(([
|
|
1235
|
-
h.addColorStop(
|
|
1301
|
+
return t.forEach(([p, c]) => {
|
|
1302
|
+
h.addColorStop(p, c);
|
|
1236
1303
|
}), l.fillStyle = h, l.fillRect(0, 0, 256, 1), {
|
|
1237
1304
|
canvas: s,
|
|
1238
1305
|
texture: this.createTexture(
|
|
@@ -1254,8 +1321,8 @@ class fe {
|
|
|
1254
1321
|
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);
|
|
1255
1322
|
for (let c = 0; c < i; c++)
|
|
1256
1323
|
h[c] = c;
|
|
1257
|
-
const
|
|
1258
|
-
return { resolution: r, total: i, texture0: s, texture1: l, indexBuffer:
|
|
1324
|
+
const p = this.createDataBuffer(e, "array", h);
|
|
1325
|
+
return { resolution: r, total: i, texture0: s, texture1: l, indexBuffer: p };
|
|
1259
1326
|
}
|
|
1260
1327
|
bind(e, t, r) {
|
|
1261
1328
|
const i = this.createProgram(e, t, r);
|
|
@@ -1270,23 +1337,23 @@ class fe {
|
|
|
1270
1337
|
return {};
|
|
1271
1338
|
}
|
|
1272
1339
|
bindParticle(e, t, r, i, o, s) {
|
|
1273
|
-
const l = this.createProgramWrapper(e, t, r), h = this.createProgramWrapper(e, i, o),
|
|
1274
|
-
return { particle: l, screen: h, update:
|
|
1340
|
+
const l = this.createProgramWrapper(e, t, r), h = this.createProgramWrapper(e, i, o), p = this.createProgramWrapper(e, i, s), c = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), d = e.createFramebuffer();
|
|
1341
|
+
return { particle: l, screen: h, update: p, quadBuffer: c, frameBuffer: d };
|
|
1275
1342
|
}
|
|
1276
1343
|
draw(e, t, r, i, o, s, l) {
|
|
1277
|
-
var h,
|
|
1344
|
+
var h, p;
|
|
1278
1345
|
if (t && r) {
|
|
1279
|
-
e.resize(), t == null || t.viewport(0, 0, (h = t == null ? void 0 : t.canvas) == null ? void 0 : h.width, (
|
|
1346
|
+
e.resize(), t == null || t.viewport(0, 0, (h = t == null ? void 0 : t.canvas) == null ? void 0 : h.width, (p = t == null ? void 0 : t.canvas) == null ? void 0 : p.height), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT);
|
|
1280
1347
|
try {
|
|
1281
|
-
const c = t.getUniformLocation(r, "u_resolution"),
|
|
1282
|
-
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(
|
|
1348
|
+
const c = t.getUniformLocation(r, "u_resolution"), d = t.getUniformLocation(r, "u_image"), f = t.getUniformLocation(r, "u_color");
|
|
1349
|
+
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(d, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, o), t.uniform1i(f, 1), l != null && l.uvRange && (l != null && l.sRange)) {
|
|
1283
1350
|
const u = t.getUniformLocation(r, "u_range_u_v"), v = t.getUniformLocation(r, "u_range_s");
|
|
1284
1351
|
t.uniform2f(u, l.uvRange[0], l.uvRange[1]), t.uniform2f(v, l.sRange[0], l.sRange[1]);
|
|
1285
1352
|
}
|
|
1286
1353
|
const m = e.getBoundPixel(), b = e.map.getZoom() + 1, y = e.getWorldCopy(m, b);
|
|
1287
1354
|
for (const u of y) {
|
|
1288
|
-
const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio,
|
|
1289
|
-
t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER,
|
|
1355
|
+
const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio, _ = u[2] * e.ratio, [z, w, A, j] = [v, _ + v, g, _ + g], O = new Float32Array([z, A, w, A, z, j, z, j, w, A, w, j]);
|
|
1356
|
+
t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER, O, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
1290
1357
|
}
|
|
1291
1358
|
} catch (c) {
|
|
1292
1359
|
console.log(`render failed...${c}`);
|
|
@@ -1334,10 +1401,10 @@ class fe {
|
|
|
1334
1401
|
});
|
|
1335
1402
|
}
|
|
1336
1403
|
}
|
|
1337
|
-
class
|
|
1404
|
+
class B {
|
|
1338
1405
|
}
|
|
1339
1406
|
// 顶点渲染
|
|
1340
|
-
|
|
1407
|
+
E(B, "vertexSchema", `
|
|
1341
1408
|
//canvas 坐标系上的坐标 (x, y)
|
|
1342
1409
|
attribute vec2 a_position; //像素坐标
|
|
1343
1410
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -1352,7 +1419,7 @@ R(N, "vertexSchema", `
|
|
|
1352
1419
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
1353
1420
|
v_texCoord = a_texCoord;
|
|
1354
1421
|
}`), // 类如风、流等u v双变量片元渲染
|
|
1355
|
-
|
|
1422
|
+
E(B, "uvFragmentSchema", `
|
|
1356
1423
|
precision mediump float;
|
|
1357
1424
|
uniform sampler2D u_image;
|
|
1358
1425
|
uniform vec2 u_range_u_v;
|
|
@@ -1371,7 +1438,7 @@ R(N, "uvFragmentSchema", `
|
|
|
1371
1438
|
|
|
1372
1439
|
gl_FragColor = color;
|
|
1373
1440
|
}`), // 类如浪、气压等单变量片元渲染
|
|
1374
|
-
|
|
1441
|
+
E(B, "fragmentSchema", `
|
|
1375
1442
|
precision mediump float;
|
|
1376
1443
|
uniform sampler2D u_image; // 灰度
|
|
1377
1444
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -1382,9 +1449,9 @@ R(N, "fragmentSchema", `
|
|
|
1382
1449
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
1383
1450
|
gl_FragColor = color;
|
|
1384
1451
|
}`);
|
|
1385
|
-
class
|
|
1452
|
+
class U {
|
|
1386
1453
|
}
|
|
1387
|
-
|
|
1454
|
+
E(U, "vertexSchema", `
|
|
1388
1455
|
precision mediump float;
|
|
1389
1456
|
|
|
1390
1457
|
attribute float a_index; // 索引
|
|
@@ -1408,7 +1475,7 @@ R(V, "vertexSchema", `
|
|
|
1408
1475
|
gl_PointSize = 1.0;
|
|
1409
1476
|
// gl_PointSize = u_point;
|
|
1410
1477
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
1411
|
-
}`),
|
|
1478
|
+
}`), E(U, "fragmentSchema", `
|
|
1412
1479
|
precision mediump float;
|
|
1413
1480
|
|
|
1414
1481
|
uniform sampler2D u_factor;
|
|
@@ -1430,7 +1497,7 @@ R(V, "vertexSchema", `
|
|
|
1430
1497
|
|
|
1431
1498
|
float f = 1.0 - uv.b;
|
|
1432
1499
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
1433
|
-
}`),
|
|
1500
|
+
}`), E(U, "quadVertSchema", `
|
|
1434
1501
|
precision mediump float;
|
|
1435
1502
|
|
|
1436
1503
|
attribute vec2 a_pos;
|
|
@@ -1440,7 +1507,7 @@ R(V, "vertexSchema", `
|
|
|
1440
1507
|
void main() {
|
|
1441
1508
|
v_tex_pos = a_pos;
|
|
1442
1509
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
1443
|
-
}`),
|
|
1510
|
+
}`), E(U, "screenFragmentSchema", `
|
|
1444
1511
|
precision mediump float;
|
|
1445
1512
|
|
|
1446
1513
|
uniform sampler2D u_screen;
|
|
@@ -1452,7 +1519,7 @@ R(V, "vertexSchema", `
|
|
|
1452
1519
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
1453
1520
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
1454
1521
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
1455
|
-
}`),
|
|
1522
|
+
}`), E(U, "updateFragmentSchema", `
|
|
1456
1523
|
precision mediump float;
|
|
1457
1524
|
|
|
1458
1525
|
uniform sampler2D u_particles;
|
|
@@ -1531,14 +1598,14 @@ R(V, "vertexSchema", `
|
|
|
1531
1598
|
fract(pos * 255.0),
|
|
1532
1599
|
floor(pos * 255.0) / 255.0);
|
|
1533
1600
|
}`);
|
|
1534
|
-
class
|
|
1601
|
+
class Mt {
|
|
1535
1602
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1603
|
+
E(this, "token");
|
|
1604
|
+
E(this, "mapboxCustomer");
|
|
1605
|
+
E(this, "i4");
|
|
1606
|
+
E(this, "hi");
|
|
1607
|
+
E(this, "td");
|
|
1608
|
+
E(this, "windy");
|
|
1542
1609
|
this.token = e, this.mapboxCustomer = {
|
|
1543
1610
|
source: this.initialOnlineStyle().sources.composite,
|
|
1544
1611
|
layers: {
|
|
@@ -3135,14 +3202,14 @@ class wt {
|
|
|
3135
3202
|
};
|
|
3136
3203
|
}
|
|
3137
3204
|
}
|
|
3138
|
-
const
|
|
3205
|
+
const jt = {
|
|
3139
3206
|
name: "IdmWindParticle",
|
|
3140
3207
|
props: {
|
|
3141
3208
|
factor: {
|
|
3142
3209
|
type: Object
|
|
3143
3210
|
},
|
|
3144
3211
|
viewport: {
|
|
3145
|
-
type:
|
|
3212
|
+
type: Be
|
|
3146
3213
|
},
|
|
3147
3214
|
bottom: {
|
|
3148
3215
|
type: String,
|
|
@@ -3249,7 +3316,7 @@ const Lt = {
|
|
|
3249
3316
|
[1, "rgb(91, 136, 161)"]
|
|
3250
3317
|
];
|
|
3251
3318
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3252
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3319
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.uvFragmentSchema);
|
|
3253
3320
|
this.program = e, this.aPositionBuffer = t;
|
|
3254
3321
|
}
|
|
3255
3322
|
this.handleParticleSetup();
|
|
@@ -3263,11 +3330,11 @@ const Lt = {
|
|
|
3263
3330
|
];
|
|
3264
3331
|
this.wrapper = this.webgl.bindParticle(
|
|
3265
3332
|
this.particleContext,
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3333
|
+
U.vertexSchema,
|
|
3334
|
+
U.fragmentSchema,
|
|
3335
|
+
U.quadVertSchema,
|
|
3336
|
+
U.screenFragmentSchema,
|
|
3337
|
+
U.updateFragmentSchema
|
|
3271
3338
|
), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
|
|
3272
3339
|
}
|
|
3273
3340
|
},
|
|
@@ -3297,13 +3364,13 @@ const Lt = {
|
|
|
3297
3364
|
});
|
|
3298
3365
|
}
|
|
3299
3366
|
}
|
|
3300
|
-
},
|
|
3301
|
-
function
|
|
3367
|
+
}, Ot = { key: 0 };
|
|
3368
|
+
function Bt(a, e, t, r, i, o) {
|
|
3302
3369
|
var s;
|
|
3303
|
-
return (s = t.factor) != null && s.active ? (
|
|
3370
|
+
return (s = t.factor) != null && s.active ? (L(), x("div", Ot, [
|
|
3304
3371
|
n("div", {
|
|
3305
3372
|
class: "legend-bars flex-center",
|
|
3306
|
-
style:
|
|
3373
|
+
style: Z([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3307
3374
|
}, e[0] || (e[0] = [
|
|
3308
3375
|
n("span", null, "kts", -1),
|
|
3309
3376
|
n("span", null, "0", -1),
|
|
@@ -3314,10 +3381,10 @@ function _t(a, e, t, r, i, o) {
|
|
|
3314
3381
|
n("span", null, "40", -1),
|
|
3315
3382
|
n("span", null, "60", -1)
|
|
3316
3383
|
]), 4)
|
|
3317
|
-
])) :
|
|
3384
|
+
])) : M("", !0);
|
|
3318
3385
|
}
|
|
3319
|
-
const
|
|
3320
|
-
const
|
|
3386
|
+
const Nt = /* @__PURE__ */ T(jt, [["render", Bt], ["__scopeId", "data-v-24e5434b"]]);
|
|
3387
|
+
const Ft = {
|
|
3321
3388
|
name: "IdmCurrent",
|
|
3322
3389
|
props: {
|
|
3323
3390
|
map: {
|
|
@@ -3332,7 +3399,11 @@ const kt = {
|
|
|
3332
3399
|
mapProjection: {
|
|
3333
3400
|
type: String
|
|
3334
3401
|
},
|
|
3335
|
-
|
|
3402
|
+
showCurrentParticle: {
|
|
3403
|
+
type: Boolean,
|
|
3404
|
+
default: !1
|
|
3405
|
+
},
|
|
3406
|
+
showCurrentIsoband: {
|
|
3336
3407
|
type: Boolean,
|
|
3337
3408
|
default: !1
|
|
3338
3409
|
},
|
|
@@ -3344,16 +3415,14 @@ const kt = {
|
|
|
3344
3415
|
type: Number
|
|
3345
3416
|
}
|
|
3346
3417
|
},
|
|
3347
|
-
emits: ["particle", "
|
|
3418
|
+
emits: ["particle", "handleToggleVersion"],
|
|
3348
3419
|
data() {
|
|
3349
3420
|
return {
|
|
3350
3421
|
source: "current-source",
|
|
3351
3422
|
directionLayer: "current-direction-layer",
|
|
3352
3423
|
speedLayer: "current-speed-layer",
|
|
3353
3424
|
speedLabelLayer: "current-speed-label-layer",
|
|
3354
|
-
empty:
|
|
3355
|
-
showJson: localStorage.getItem("currentJsonCache") === "true" || !1,
|
|
3356
|
-
currentJsonCache: "currentJsonCache",
|
|
3425
|
+
empty: C.featureCollection([]),
|
|
3357
3426
|
right: 10,
|
|
3358
3427
|
bottom: 95
|
|
3359
3428
|
};
|
|
@@ -3366,28 +3435,29 @@ const kt = {
|
|
|
3366
3435
|
},
|
|
3367
3436
|
deep: !0
|
|
3368
3437
|
},
|
|
3369
|
-
|
|
3370
|
-
handler() {
|
|
3371
|
-
},
|
|
3372
|
-
immediate: !0
|
|
3373
|
-
},
|
|
3374
|
-
showJson: {
|
|
3438
|
+
showCurrentParticle: {
|
|
3375
3439
|
handler() {
|
|
3376
|
-
this.
|
|
3377
|
-
}
|
|
3378
|
-
immediate:
|
|
3440
|
+
this.handleParticle();
|
|
3441
|
+
}
|
|
3442
|
+
// immediate: true,
|
|
3379
3443
|
},
|
|
3380
|
-
|
|
3444
|
+
showCurrentIsoband: {
|
|
3381
3445
|
handler() {
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
immediate: !0
|
|
3446
|
+
this.handleToggle();
|
|
3447
|
+
}
|
|
3448
|
+
// immediate: true,
|
|
3386
3449
|
}
|
|
3450
|
+
// toggleVersion: {
|
|
3451
|
+
// handler() {
|
|
3452
|
+
// this.right = (document.getElementsByClassName('right-bar')[0]?.clientWidth || 0) + 10
|
|
3453
|
+
// this.bottom = (document.getElementsByClassName('active-layers')[0]?.clientHeight || 0) + 110
|
|
3454
|
+
// },
|
|
3455
|
+
// immediate: true,
|
|
3456
|
+
// },
|
|
3387
3457
|
},
|
|
3388
3458
|
methods: {
|
|
3389
|
-
handleParticle(
|
|
3390
|
-
this.$emit("particle", { particle:
|
|
3459
|
+
handleParticle() {
|
|
3460
|
+
this.$emit("particle", { particle: this.showCurrentParticle, key: "current", weight: 96 });
|
|
3391
3461
|
},
|
|
3392
3462
|
handleRender() {
|
|
3393
3463
|
var a, e;
|
|
@@ -3461,47 +3531,26 @@ const kt = {
|
|
|
3461
3531
|
}
|
|
3462
3532
|
},
|
|
3463
3533
|
handleToggle() {
|
|
3464
|
-
this.map.getLayer(this.speedLayer) && this.map.setLayoutProperty(this.speedLayer, "visibility", this.
|
|
3534
|
+
this.map.getLayer(this.speedLayer) && this.map.setLayoutProperty(this.speedLayer, "visibility", this.showCurrentIsoband ? "visible" : "none"), this.map.getLayer(this.speedLabelLayer) && this.map.setLayoutProperty(this.speedLabelLayer, "visibility", this.showCurrentIsoband ? "visible" : "none"), this.map.getLayer(this.directionLayer) && this.map.setLayoutProperty(this.directionLayer, "visibility", this.showCurrentIsoband ? "visible" : "none");
|
|
3465
3535
|
},
|
|
3466
3536
|
handleClear() {
|
|
3467
3537
|
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);
|
|
3468
3538
|
}
|
|
3469
3539
|
}
|
|
3470
|
-
},
|
|
3471
|
-
function
|
|
3540
|
+
}, $t = { key: 0 };
|
|
3541
|
+
function Vt(a, e, t, r, i, o) {
|
|
3472
3542
|
var s;
|
|
3473
|
-
return (s = t.current) != null && s.active ? (
|
|
3474
|
-
n("div", {
|
|
3475
|
-
class: "flex-center current-tool-bars",
|
|
3476
|
-
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
|
|
3477
|
-
}, [
|
|
3478
|
-
t.mapProjection === "mercator" ? (_(), C("div", {
|
|
3479
|
-
key: 0,
|
|
3480
|
-
class: W(["flex-start item-bar", t.showParticle ? "active" : "inactive"]),
|
|
3481
|
-
onClick: e[0] || (e[0] = (l) => o.handleParticle(!t.showParticle))
|
|
3482
|
-
}, e[2] || (e[2] = [
|
|
3483
|
-
n("div", { class: "checkbox" }, null, -1),
|
|
3484
|
-
n("span", null, "Current Particles", -1)
|
|
3485
|
-
]), 2)) : B("", !0),
|
|
3486
|
-
n("div", {
|
|
3487
|
-
class: W(["flex-start item-bar", i.showJson ? "active" : "inactive"]),
|
|
3488
|
-
onClick: e[1] || (e[1] = (l) => i.showJson = !i.showJson)
|
|
3489
|
-
}, e[3] || (e[3] = [
|
|
3490
|
-
n("div", { class: "checkbox" }, null, -1),
|
|
3491
|
-
n("span", null, "Current Isoband", -1)
|
|
3492
|
-
]), 2)
|
|
3493
|
-
], 4)
|
|
3494
|
-
])) : B("", !0);
|
|
3543
|
+
return (s = t.current) != null && s.active ? (L(), x("div", $t)) : M("", !0);
|
|
3495
3544
|
}
|
|
3496
|
-
const
|
|
3497
|
-
const
|
|
3545
|
+
const Ut = /* @__PURE__ */ T(Ft, [["render", Vt]]);
|
|
3546
|
+
const Zt = {
|
|
3498
3547
|
name: "IdmCurrentParticle",
|
|
3499
3548
|
props: {
|
|
3500
3549
|
factor: {
|
|
3501
3550
|
type: Object
|
|
3502
3551
|
},
|
|
3503
3552
|
viewport: {
|
|
3504
|
-
type:
|
|
3553
|
+
type: Be
|
|
3505
3554
|
},
|
|
3506
3555
|
bottom: {
|
|
3507
3556
|
type: String,
|
|
@@ -3599,7 +3648,7 @@ const Tt = {
|
|
|
3599
3648
|
[1, "rgb(195,194,194)"]
|
|
3600
3649
|
];
|
|
3601
3650
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3602
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3651
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.uvFragmentSchema);
|
|
3603
3652
|
this.program = e, this.aPositionBuffer = t;
|
|
3604
3653
|
}
|
|
3605
3654
|
this.handleParticleSetup();
|
|
@@ -3613,11 +3662,11 @@ const Tt = {
|
|
|
3613
3662
|
];
|
|
3614
3663
|
this.wrapper = this.webgl.bindParticle(
|
|
3615
3664
|
this.particleContext,
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3665
|
+
U.vertexSchema,
|
|
3666
|
+
U.fragmentSchema,
|
|
3667
|
+
U.quadVertSchema,
|
|
3668
|
+
U.screenFragmentSchema,
|
|
3669
|
+
U.updateFragmentSchema
|
|
3621
3670
|
), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = {
|
|
3622
3671
|
...this.wrapper,
|
|
3623
3672
|
...this.webgl.setupParticle(this.particleContext, 12e3),
|
|
@@ -3651,13 +3700,13 @@ const Tt = {
|
|
|
3651
3700
|
});
|
|
3652
3701
|
}
|
|
3653
3702
|
}
|
|
3654
|
-
},
|
|
3655
|
-
function
|
|
3703
|
+
}, Ht = { key: 0 };
|
|
3704
|
+
function Gt(a, e, t, r, i, o) {
|
|
3656
3705
|
var s;
|
|
3657
|
-
return (s = t.factor) != null && s.active ? (
|
|
3706
|
+
return (s = t.factor) != null && s.active ? (L(), x("div", Ht, [
|
|
3658
3707
|
n("div", {
|
|
3659
3708
|
class: "legend-bars flex-center",
|
|
3660
|
-
style:
|
|
3709
|
+
style: Z([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3661
3710
|
}, e[0] || (e[0] = [
|
|
3662
3711
|
n("span", null, "kts", -1),
|
|
3663
3712
|
n("span", null, "0", -1),
|
|
@@ -3667,9 +3716,9 @@ function It(a, e, t, r, i, o) {
|
|
|
3667
3716
|
n("span", null, "2", -1),
|
|
3668
3717
|
n("span", null, "3.2", -1)
|
|
3669
3718
|
]), 4)
|
|
3670
|
-
])) :
|
|
3719
|
+
])) : M("", !0);
|
|
3671
3720
|
}
|
|
3672
|
-
const
|
|
3721
|
+
const Xt = /* @__PURE__ */ T(Zt, [["render", Gt], ["__scopeId", "data-v-6d4fd206"]]), Jt = {
|
|
3673
3722
|
name: "IdmSigWave",
|
|
3674
3723
|
props: {
|
|
3675
3724
|
map: {
|
|
@@ -3690,7 +3739,7 @@ const Rt = /* @__PURE__ */ T(Tt, [["render", It], ["__scopeId", "data-v-6d4fd206
|
|
|
3690
3739
|
source: "sig-wave-source",
|
|
3691
3740
|
heightLayer: "sig-wave-height-layer",
|
|
3692
3741
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
3693
|
-
empty:
|
|
3742
|
+
empty: C.featureCollection([])
|
|
3694
3743
|
};
|
|
3695
3744
|
},
|
|
3696
3745
|
watch: {
|
|
@@ -3728,9 +3777,9 @@ const Rt = /* @__PURE__ */ T(Tt, [["render", It], ["__scopeId", "data-v-6d4fd206
|
|
|
3728
3777
|
"fill-color": [
|
|
3729
3778
|
"step",
|
|
3730
3779
|
["get", "val"],
|
|
3731
|
-
"rgba(186,247,
|
|
3780
|
+
"rgba(186,247,199,0.4)",
|
|
3732
3781
|
3,
|
|
3733
|
-
"rgba(
|
|
3782
|
+
"rgba(186,247,199,0.7)",
|
|
3734
3783
|
4,
|
|
3735
3784
|
"rgba(101,252,149,0.9)",
|
|
3736
3785
|
5,
|
|
@@ -3788,10 +3837,10 @@ const Rt = /* @__PURE__ */ T(Tt, [["render", It], ["__scopeId", "data-v-6d4fd206
|
|
|
3788
3837
|
}
|
|
3789
3838
|
}
|
|
3790
3839
|
};
|
|
3791
|
-
function
|
|
3792
|
-
return
|
|
3840
|
+
function Yt(a, e, t, r, i, o) {
|
|
3841
|
+
return L(), x("div");
|
|
3793
3842
|
}
|
|
3794
|
-
const
|
|
3843
|
+
const qt = /* @__PURE__ */ T(Jt, [["render", Yt]]), Qt = {
|
|
3795
3844
|
name: "IdmSwell",
|
|
3796
3845
|
props: {
|
|
3797
3846
|
map: {
|
|
@@ -3813,7 +3862,7 @@ const Mt = /* @__PURE__ */ T(At, [["render", Dt]]), Wt = {
|
|
|
3813
3862
|
directionLayer: "swell-direction-layer",
|
|
3814
3863
|
heightLayer: "swell-height-layer",
|
|
3815
3864
|
heightLabelLayer: "swell-height-label-layer",
|
|
3816
|
-
empty:
|
|
3865
|
+
empty: C.featureCollection([])
|
|
3817
3866
|
};
|
|
3818
3867
|
},
|
|
3819
3868
|
watch: {
|
|
@@ -3946,10 +3995,10 @@ const Mt = /* @__PURE__ */ T(At, [["render", Dt]]), Wt = {
|
|
|
3946
3995
|
}
|
|
3947
3996
|
}
|
|
3948
3997
|
};
|
|
3949
|
-
function
|
|
3950
|
-
return
|
|
3998
|
+
function Kt(a, e, t, r, i, o) {
|
|
3999
|
+
return L(), x("div");
|
|
3951
4000
|
}
|
|
3952
|
-
const
|
|
4001
|
+
const ea = /* @__PURE__ */ T(Qt, [["render", Kt]]), ta = {
|
|
3953
4002
|
name: "IdmPrmsl",
|
|
3954
4003
|
props: {
|
|
3955
4004
|
map: {
|
|
@@ -3974,7 +4023,7 @@ const Bt = /* @__PURE__ */ T(Wt, [["render", jt]]), Nt = {
|
|
|
3974
4023
|
layer: "prmsl-layer",
|
|
3975
4024
|
labelLayer: "prmsl-label-layer",
|
|
3976
4025
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
3977
|
-
empty:
|
|
4026
|
+
empty: C.featureCollection([])
|
|
3978
4027
|
};
|
|
3979
4028
|
},
|
|
3980
4029
|
watch: {
|
|
@@ -4086,10 +4135,10 @@ const Bt = /* @__PURE__ */ T(Wt, [["render", jt]]), Nt = {
|
|
|
4086
4135
|
}
|
|
4087
4136
|
}
|
|
4088
4137
|
};
|
|
4089
|
-
function
|
|
4090
|
-
return
|
|
4138
|
+
function aa(a, e, t, r, i, o) {
|
|
4139
|
+
return L(), x("div");
|
|
4091
4140
|
}
|
|
4092
|
-
const
|
|
4141
|
+
const ia = /* @__PURE__ */ T(ta, [["render", aa]]), ra = {
|
|
4093
4142
|
name: "IdmIceberg",
|
|
4094
4143
|
props: {
|
|
4095
4144
|
map: {
|
|
@@ -4106,7 +4155,7 @@ const Ft = /* @__PURE__ */ T(Nt, [["render", Ot]]), $t = {
|
|
|
4106
4155
|
return {
|
|
4107
4156
|
source: "iceberg-source",
|
|
4108
4157
|
layer: "iceberg-layer",
|
|
4109
|
-
empty:
|
|
4158
|
+
empty: C.featureCollection([])
|
|
4110
4159
|
};
|
|
4111
4160
|
},
|
|
4112
4161
|
watch: {
|
|
@@ -4146,11 +4195,11 @@ const Ft = /* @__PURE__ */ T(Nt, [["render", Ot]]), $t = {
|
|
|
4146
4195
|
}
|
|
4147
4196
|
}
|
|
4148
4197
|
};
|
|
4149
|
-
function
|
|
4150
|
-
return
|
|
4198
|
+
function oa(a, e, t, r, i, o) {
|
|
4199
|
+
return L(), x("div");
|
|
4151
4200
|
}
|
|
4152
|
-
const
|
|
4153
|
-
const
|
|
4201
|
+
const sa = /* @__PURE__ */ T(ra, [["render", oa]]);
|
|
4202
|
+
const na = {
|
|
4154
4203
|
name: "IdmTropicals",
|
|
4155
4204
|
props: {
|
|
4156
4205
|
map: {
|
|
@@ -4170,7 +4219,7 @@ const Zt = {
|
|
|
4170
4219
|
emits: ["tropical", "tropicalProbability"],
|
|
4171
4220
|
data() {
|
|
4172
4221
|
return {
|
|
4173
|
-
helper:
|
|
4222
|
+
helper: Re,
|
|
4174
4223
|
source: "tropicals-source",
|
|
4175
4224
|
clusterSource: "tropicals-cluster-source",
|
|
4176
4225
|
historyLayer: "tropicals-history-layer",
|
|
@@ -4188,9 +4237,9 @@ const Zt = {
|
|
|
4188
4237
|
showTropicals: !1,
|
|
4189
4238
|
activeTropicals: void 0,
|
|
4190
4239
|
activeTropicalsMarker: void 0,
|
|
4191
|
-
empty:
|
|
4240
|
+
empty: C.featureCollection([]),
|
|
4192
4241
|
circleSource: "circle-source",
|
|
4193
|
-
circleSourceData:
|
|
4242
|
+
circleSourceData: C.featureCollection([]),
|
|
4194
4243
|
circleLayer: "tropical-circle-layer"
|
|
4195
4244
|
};
|
|
4196
4245
|
},
|
|
@@ -4198,7 +4247,7 @@ const Zt = {
|
|
|
4198
4247
|
computeTime() {
|
|
4199
4248
|
return function(a) {
|
|
4200
4249
|
if (a) {
|
|
4201
|
-
const e =
|
|
4250
|
+
const e = G(a).utc().utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
4202
4251
|
return `${e.format("MMM-DD,HHmm")}[ UTC ${t} ] ( ${e == null ? void 0 : e.fromNow()} )`;
|
|
4203
4252
|
}
|
|
4204
4253
|
return "-";
|
|
@@ -4235,29 +4284,29 @@ const Zt = {
|
|
|
4235
4284
|
methods: {
|
|
4236
4285
|
handleRefresh() {
|
|
4237
4286
|
var r, i;
|
|
4238
|
-
const a = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e =
|
|
4287
|
+
const a = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = G().utc().hour(), t = [];
|
|
4239
4288
|
a.forEach((o) => {
|
|
4240
4289
|
var s, l, h;
|
|
4241
4290
|
(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);
|
|
4242
4291
|
}), t.forEach((o) => {
|
|
4243
|
-
var
|
|
4292
|
+
var p;
|
|
4244
4293
|
let s = 0, l;
|
|
4245
4294
|
const h = a.filter((c) => {
|
|
4246
|
-
var
|
|
4247
|
-
return ((f = (
|
|
4295
|
+
var d, f;
|
|
4296
|
+
return ((f = (d = c.properties) == null ? void 0 : d.category) == null ? void 0 : f.split("-")[0]) === o;
|
|
4248
4297
|
});
|
|
4249
|
-
(
|
|
4250
|
-
var
|
|
4251
|
-
return ((
|
|
4252
|
-
})[0]) == null ||
|
|
4298
|
+
(p = h.filter((c) => {
|
|
4299
|
+
var d, f;
|
|
4300
|
+
return ((d = c.geometry) == null ? void 0 : d.type) === "LineString" && ((f = c.properties) == null ? void 0 : f.type) === "forecast";
|
|
4301
|
+
})[0]) == null || p.properties.model, h.forEach((c, d) => {
|
|
4253
4302
|
var f, m, b, y, u, v;
|
|
4254
|
-
((f = c.geometry) == null ? void 0 : f.type) === "Point" && ((m = c.properties) == null ? void 0 : m.type) === "history" && (s =
|
|
4255
|
-
}), h.map((c,
|
|
4303
|
+
((f = c.geometry) == null ? void 0 : f.type) === "Point" && ((m = c.properties) == null ? void 0 : m.type) === "history" && (s = d, l = l === void 0 ? d : l), ((b = c.geometry) == null ? void 0 : b.type) === "Point" && ((y = c.properties) == null ? void 0 : y.type) === "forecast" && l === void 0 && (l = d), ((u = c.geometry) == null ? void 0 : u.type) === "LineString" && ((v = c.properties) == null || v.type);
|
|
4304
|
+
}), h.map((c, d) => {
|
|
4256
4305
|
var f, m, b, y, u, v, g;
|
|
4257
|
-
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 =
|
|
4258
|
-
c.properties.format =
|
|
4259
|
-
const
|
|
4260
|
-
c.properties.showHistoryLabel =
|
|
4306
|
+
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 = G(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") {
|
|
4307
|
+
c.properties.format = G(c.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
4308
|
+
const _ = G((g = c.properties) == null ? void 0 : g.date).utc().format("HHmm") === G().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
|
|
4309
|
+
c.properties.showHistoryLabel = _ || d === s, c.properties.showNameLabel = d === s, c.properties.name = o;
|
|
4261
4310
|
}
|
|
4262
4311
|
return c;
|
|
4263
4312
|
});
|
|
@@ -4294,16 +4343,16 @@ const Zt = {
|
|
|
4294
4343
|
));
|
|
4295
4344
|
},
|
|
4296
4345
|
handleRender() {
|
|
4297
|
-
var a, e, t, r, i, o, s, l, h,
|
|
4346
|
+
var a, e, t, r, i, o, s, l, h, p;
|
|
4298
4347
|
if (!this.map)
|
|
4299
4348
|
setTimeout(() => {
|
|
4300
4349
|
this.handleRender();
|
|
4301
4350
|
}, 500);
|
|
4302
4351
|
else {
|
|
4303
4352
|
if (this.tropicals) {
|
|
4304
|
-
const
|
|
4353
|
+
const d = (/* @__PURE__ */ new Date()).valueOf();
|
|
4305
4354
|
let f = 0, m = 0;
|
|
4306
|
-
(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() - (
|
|
4355
|
+
(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() - (d + f), console.log("[tropicals] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.source, {
|
|
4307
4356
|
type: "geojson",
|
|
4308
4357
|
data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
|
|
4309
4358
|
}), this.map.addLayer({
|
|
@@ -4400,9 +4449,9 @@ const Zt = {
|
|
|
4400
4449
|
],
|
|
4401
4450
|
"text-halo-width": 4
|
|
4402
4451
|
}
|
|
4403
|
-
}), m = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
4452
|
+
}), m = (/* @__PURE__ */ new Date()).valueOf() - (d + 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() - (d + f), console.log("[tropical] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.clusterSource, {
|
|
4404
4453
|
type: "geojson",
|
|
4405
|
-
data: (h = this.tropicals) != null && h.active ? (
|
|
4454
|
+
data: (h = this.tropicals) != null && h.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
4406
4455
|
// cluster: true,
|
|
4407
4456
|
// clusterRadius: 10, // 聚合半径
|
|
4408
4457
|
}), this.map.addLayer({
|
|
@@ -4462,7 +4511,7 @@ const Zt = {
|
|
|
4462
4511
|
source: this.clusterSource,
|
|
4463
4512
|
filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "showHistoryLabel", !0], ["!=", "disabled", !0]],
|
|
4464
4513
|
paint: {
|
|
4465
|
-
"circle-radius":
|
|
4514
|
+
"circle-radius": 7,
|
|
4466
4515
|
"circle-color": "#fff"
|
|
4467
4516
|
}
|
|
4468
4517
|
}), this.map.addLayer({
|
|
@@ -4471,7 +4520,7 @@ const Zt = {
|
|
|
4471
4520
|
source: this.clusterSource,
|
|
4472
4521
|
filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "showHistoryLabel", !0], ["!=", "disabled", !0]],
|
|
4473
4522
|
paint: {
|
|
4474
|
-
"circle-radius":
|
|
4523
|
+
"circle-radius": 5,
|
|
4475
4524
|
"circle-color": "rgba(0,0,0,0.7)"
|
|
4476
4525
|
}
|
|
4477
4526
|
}), this.map.addLayer({
|
|
@@ -4480,7 +4529,7 @@ const Zt = {
|
|
|
4480
4529
|
source: this.clusterSource,
|
|
4481
4530
|
filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "showHistoryLabel", !0], ["!=", "disabled", !0]],
|
|
4482
4531
|
paint: {
|
|
4483
|
-
"circle-radius":
|
|
4532
|
+
"circle-radius": 3,
|
|
4484
4533
|
"circle-color": "#fff"
|
|
4485
4534
|
}
|
|
4486
4535
|
}), this.map.addLayer({
|
|
@@ -4517,11 +4566,11 @@ const Zt = {
|
|
|
4517
4566
|
"text-halo-color": "#0033ff",
|
|
4518
4567
|
"text-halo-width": 4
|
|
4519
4568
|
}
|
|
4520
|
-
}), m = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
4569
|
+
}), m = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m));
|
|
4521
4570
|
}
|
|
4522
4571
|
this.handleDrawCircle();
|
|
4523
|
-
const c =
|
|
4524
|
-
this.interpolateData = JSON.parse(JSON.stringify(c)), this.interpolateData.filter((
|
|
4572
|
+
const c = Ne.interpolate(this.tropicals, 1);
|
|
4573
|
+
this.interpolateData = JSON.parse(JSON.stringify(c)), this.interpolateData.filter((d) => d.properties.name === "kristy" && d.properties.model === "ecmwf"), this.handleDateChange();
|
|
4525
4574
|
}
|
|
4526
4575
|
},
|
|
4527
4576
|
handleClear() {
|
|
@@ -4529,11 +4578,11 @@ const Zt = {
|
|
|
4529
4578
|
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));
|
|
4530
4579
|
},
|
|
4531
4580
|
handleDateChange() {
|
|
4532
|
-
var a, e, t, r, i, o, s, l, h,
|
|
4533
|
-
if ((a = this.interpolateMarkers) == null || a.forEach((
|
|
4534
|
-
const
|
|
4535
|
-
me.forEach((
|
|
4536
|
-
q.features.push(
|
|
4581
|
+
var a, e, t, r, i, o, s, l, h, p, c, d, f, m, b, y, u, v, g, _, z, w, A, j, O, N, F, X, se, ne, le, ce, he, de, pe, te;
|
|
4582
|
+
if ((a = this.interpolateMarkers) == null || a.forEach((J) => J == null ? void 0 : J.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
4583
|
+
const J = G(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), Y = this.interpolateData.filter((I) => I.properties.date === J.format() && !I.properties.disabled), me = this.handleComputePolygons(Y), q = C.featureCollection([...Y]);
|
|
4584
|
+
me.forEach((I) => {
|
|
4585
|
+
q.features.push(I);
|
|
4537
4586
|
}), (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, {
|
|
4538
4587
|
type: "geojson",
|
|
4539
4588
|
data: q
|
|
@@ -4548,10 +4597,10 @@ const Zt = {
|
|
|
4548
4597
|
"line-width": 1
|
|
4549
4598
|
}
|
|
4550
4599
|
})), this.interpolateMarkers = [];
|
|
4551
|
-
for (const
|
|
4552
|
-
if (!
|
|
4600
|
+
for (const I of Y)
|
|
4601
|
+
if (!I.properties.disabled) {
|
|
4553
4602
|
let $ = "#f44336";
|
|
4554
|
-
((l = (s =
|
|
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" : ((j = (A = I.properties) == null ? void 0 : A.wind) == null ? void 0 : j.spd) >= 41.5 && ((N = (O = I.properties) == null ? void 0 : O.wind) == null ? void 0 : N.spd) < 51 ? $ = "#f903d0" : ((X = (F = I.properties) == null ? void 0 : F.wind) == null ? void 0 : X.spd) >= 51 ? $ = "#8702f9" : $ = "#f44336";
|
|
4555
4604
|
const ue = `<svg t="1719918955501"
|
|
4556
4605
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
4557
4606
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -4567,16 +4616,16 @@ const Zt = {
|
|
|
4567
4616
|
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"
|
|
4568
4617
|
fill="#ffffff" p-id="18386"></path>
|
|
4569
4618
|
</svg>`, Q = document.createElement("div");
|
|
4570
|
-
Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${
|
|
4571
|
-
const ye = new ee.Marker(Q).setLngLat(
|
|
4572
|
-
if (this.interpolateMarkers.push(ye), (se =
|
|
4573
|
-
const ae = { radius: 100, coordinates:
|
|
4619
|
+
Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${I.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ue}</div>`;
|
|
4620
|
+
const ye = new ee.Marker(Q).setLngLat(I.geometry.coordinates).addTo(this.map);
|
|
4621
|
+
if (this.interpolateMarkers.push(ye), (se = I.properties) != null && se.showCircle) {
|
|
4622
|
+
const ae = { radius: 100, coordinates: I.geometry.coordinates }, ie = { radius: 200, coordinates: I.geometry.coordinates }, re = { radius: 500, coordinates: I.geometry.coordinates };
|
|
4574
4623
|
(ne = this.circleSourceData) == null || ne.features.push(
|
|
4575
|
-
|
|
4624
|
+
C.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4576
4625
|
), (le = this.circleSourceData) == null || le.features.push(
|
|
4577
|
-
|
|
4626
|
+
C.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4578
4627
|
), (ce = this.circleSourceData) == null || ce.features.push(
|
|
4579
|
-
|
|
4628
|
+
C.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4580
4629
|
);
|
|
4581
4630
|
}
|
|
4582
4631
|
(de = (he = this.map) == null ? void 0 : he.getSource(this.circleSource)) == null || de.setData(this.circleSourceData);
|
|
@@ -4585,7 +4634,7 @@ const Zt = {
|
|
|
4585
4634
|
(pe = this.map) != null && pe.getSource(this.interpolateSource) && ((te = this.map) == null || te.getSource(this.interpolateSource).setData(this.empty));
|
|
4586
4635
|
},
|
|
4587
4636
|
handleClick(a) {
|
|
4588
|
-
var o, s, l, h,
|
|
4637
|
+
var o, s, l, h, p, c, d, f;
|
|
4589
4638
|
const e = a.features[0], t = (s = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : s.features.filter(
|
|
4590
4639
|
(m) => {
|
|
4591
4640
|
var b;
|
|
@@ -4603,10 +4652,10 @@ const Zt = {
|
|
|
4603
4652
|
}
|
|
4604
4653
|
);
|
|
4605
4654
|
this.activeTropicals = {
|
|
4606
|
-
name: (
|
|
4655
|
+
name: (p = e == null ? void 0 : e.properties) == null ? void 0 : p.name,
|
|
4607
4656
|
forecasts: t.map((m) => m.properties),
|
|
4608
4657
|
history: (c = r[0]) == null ? void 0 : c.properties,
|
|
4609
|
-
showCircle: (f = (
|
|
4658
|
+
showCircle: (f = (d = t[0]) == null ? void 0 : d.properties) == null ? void 0 : f.showCircle
|
|
4610
4659
|
}, this.showTropicals = !0;
|
|
4611
4660
|
const i = document.getElementById("active-tropical");
|
|
4612
4661
|
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);
|
|
@@ -4615,11 +4664,11 @@ const Zt = {
|
|
|
4615
4664
|
var r, i, o, s, l, h;
|
|
4616
4665
|
a.disabled = !a.disabled;
|
|
4617
4666
|
const e = `${a.name}-${a.model}`, t = (i = (r = this.map) == null ? void 0 : r.getSource(this.source)._data) == null ? void 0 : i.features;
|
|
4618
|
-
t.forEach((
|
|
4619
|
-
|
|
4620
|
-
}), this.interpolateData.forEach((
|
|
4621
|
-
|
|
4622
|
-
}), (s = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || s.setData(
|
|
4667
|
+
t.forEach((p) => {
|
|
4668
|
+
p.properties.category === e && (p.properties.disabled = a.disabled);
|
|
4669
|
+
}), this.interpolateData.forEach((p) => {
|
|
4670
|
+
p.properties.category === e && (p.properties.disabled = a.disabled);
|
|
4671
|
+
}), (s = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || s.setData(C.featureCollection(t)), (h = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || h.setData(C.featureCollection(t)), this.handleDateChange();
|
|
4623
4672
|
},
|
|
4624
4673
|
handleStrikeProbability(a) {
|
|
4625
4674
|
this.$emit("tropicalProbability", a);
|
|
@@ -4676,92 +4725,92 @@ const Zt = {
|
|
|
4676
4725
|
let h;
|
|
4677
4726
|
switch (s) {
|
|
4678
4727
|
case "ne":
|
|
4679
|
-
h =
|
|
4728
|
+
h = C.lineArc(a, l * 1.852, 0, 90, { steps: l > 0 ? 64 : 1 });
|
|
4680
4729
|
break;
|
|
4681
4730
|
case "se":
|
|
4682
|
-
h =
|
|
4731
|
+
h = C.lineArc(a, l * 1.852, 90, 180, { steps: l > 0 ? 64 : 1 });
|
|
4683
4732
|
break;
|
|
4684
4733
|
case "sw":
|
|
4685
|
-
h =
|
|
4734
|
+
h = C.lineArc(a, l * 1.852, 180, 270, { steps: l > 0 ? 64 : 1 });
|
|
4686
4735
|
break;
|
|
4687
4736
|
case "nw":
|
|
4688
|
-
h =
|
|
4737
|
+
h = C.lineArc(a, l * 1.852, 270, 360, { steps: l > 0 ? 64 : 1 });
|
|
4689
4738
|
break;
|
|
4690
4739
|
}
|
|
4691
4740
|
r.push(...(o = h == null ? void 0 : h.geometry) == null ? void 0 : o.coordinates);
|
|
4692
4741
|
}
|
|
4693
|
-
const i =
|
|
4694
|
-
return
|
|
4742
|
+
const i = C.lineString(r);
|
|
4743
|
+
return C.lineToPolygon(i, { properties: t });
|
|
4695
4744
|
}
|
|
4696
4745
|
}
|
|
4697
|
-
},
|
|
4746
|
+
}, la = {
|
|
4698
4747
|
id: "active-tropical",
|
|
4699
4748
|
class: "active-tropical"
|
|
4700
|
-
},
|
|
4749
|
+
}, ca = { class: "header-box" }, ha = { class: "main" }, da = { key: 0 }, pa = { class: "sub" }, ma = {
|
|
4701
4750
|
id: "meteoBox",
|
|
4702
4751
|
class: "main-box"
|
|
4703
|
-
},
|
|
4752
|
+
}, ua = { class: "content" }, ya = { class: "row" }, fa = {
|
|
4704
4753
|
class: "col col-left",
|
|
4705
4754
|
style: { "justify-content": "flex-start" }
|
|
4706
|
-
},
|
|
4755
|
+
}, ga = {
|
|
4707
4756
|
class: "col col-right",
|
|
4708
4757
|
style: { "justify-content": "flex-start" }
|
|
4709
|
-
},
|
|
4758
|
+
}, ba = { class: "row" }, va = {
|
|
4710
4759
|
class: "col col-24",
|
|
4711
4760
|
style: { "justify-content": "flex-start" }
|
|
4712
|
-
},
|
|
4713
|
-
function
|
|
4714
|
-
var s, l, h,
|
|
4715
|
-
return
|
|
4716
|
-
n("div",
|
|
4761
|
+
}, wa = { class: "forecast-models" }, La = ["onClick"], xa = { class: "more" };
|
|
4762
|
+
function _a(a, e, t, r, i, o) {
|
|
4763
|
+
var s, l, h, p, c, d, f, m, b, y, u, v, g, _, z;
|
|
4764
|
+
return We((L(), x("div", la, [
|
|
4765
|
+
n("div", ca, [
|
|
4717
4766
|
n("div", {
|
|
4718
4767
|
class: "iconfont close-btn",
|
|
4719
4768
|
onClick: e[0] || (e[0] = (w) => i.showTropicals = !1)
|
|
4720
4769
|
}, ""),
|
|
4721
|
-
n("div",
|
|
4722
|
-
(l = (s = i.activeTropicals) == null ? void 0 : s.history) != null && l.level ? (
|
|
4723
|
-
|
|
4770
|
+
n("div", ha, [
|
|
4771
|
+
(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
|
+
De(S((c = i.activeTropicals) == null ? void 0 : c.name), 1)
|
|
4724
4773
|
]),
|
|
4725
|
-
n("div",
|
|
4774
|
+
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)
|
|
4726
4775
|
]),
|
|
4727
|
-
n("div",
|
|
4728
|
-
n("div",
|
|
4729
|
-
n("div",
|
|
4730
|
-
n("div",
|
|
4776
|
+
n("div", ma, [
|
|
4777
|
+
n("div", ua, [
|
|
4778
|
+
n("div", ya, [
|
|
4779
|
+
n("div", fa, [
|
|
4731
4780
|
e[2] || (e[2] = n("label", null, "Wind speed : ", -1)),
|
|
4732
4781
|
n("span", null, S(((v = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
|
|
4733
4782
|
]),
|
|
4734
|
-
n("div",
|
|
4783
|
+
n("div", ga, [
|
|
4735
4784
|
e[3] || (e[3] = n("label", null, "Pressure : ", -1)),
|
|
4736
|
-
n("span", null, S(((
|
|
4785
|
+
n("span", null, S(((_ = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : _.pressure) || "-") + "[hPa]", 1)
|
|
4737
4786
|
])
|
|
4738
4787
|
]),
|
|
4739
|
-
n("div",
|
|
4740
|
-
n("div",
|
|
4788
|
+
n("div", ba, [
|
|
4789
|
+
n("div", va, [
|
|
4741
4790
|
e[4] || (e[4] = n("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
4742
|
-
n("div",
|
|
4743
|
-
(
|
|
4744
|
-
var
|
|
4745
|
-
return
|
|
4791
|
+
n("div", wa, [
|
|
4792
|
+
(L(!0), x(Ie, null, Ae((z = i.activeTropicals) == null ? void 0 : z.forecasts, (w, A) => {
|
|
4793
|
+
var j, O, N, F;
|
|
4794
|
+
return L(), x("div", {
|
|
4746
4795
|
key: A,
|
|
4747
|
-
class:
|
|
4796
|
+
class: D([
|
|
4748
4797
|
"model",
|
|
4749
4798
|
w.disabled ? "" : "active",
|
|
4750
|
-
A > 0 && A < ((
|
|
4799
|
+
A > 0 && A < ((O = (j = i.activeTropicals) == null ? void 0 : j.forecasts) == null ? void 0 : O.length) - 1 && ((F = (N = i.activeTropicals) == null ? void 0 : N.forecasts) == null ? void 0 : F.length) > 2 ? "center-child" : ""
|
|
4751
4800
|
]),
|
|
4752
|
-
onClick: (
|
|
4801
|
+
onClick: (X) => o.handleForecastToggle(w)
|
|
4753
4802
|
}, [
|
|
4754
4803
|
n("span", {
|
|
4755
|
-
class:
|
|
4804
|
+
class: D(w.model)
|
|
4756
4805
|
}, S(w.model), 3)
|
|
4757
|
-
], 10,
|
|
4806
|
+
], 10, La);
|
|
4758
4807
|
}), 128))
|
|
4759
4808
|
])
|
|
4760
4809
|
])
|
|
4761
4810
|
]),
|
|
4762
|
-
e[5] || (e[5] = Ze('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-
|
|
4811
|
+
e[5] || (e[5] = Ze('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-726fd7f6></div><div class="row" style="padding:2px 10px;" data-v-726fd7f6><div class="legend" data-v-726fd7f6><div class="icon td" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>TD</div></div><div class="legend" data-v-726fd7f6><div class="icon ts" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>TS</div></div><div class="legend" data-v-726fd7f6><div class="icon sts" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>STS</div></div><div class="legend" data-v-726fd7f6><div class="icon ty" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>TY</div></div><div class="legend" data-v-726fd7f6><div class="icon sty" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>STY</div></div><div class="legend" data-v-726fd7f6><div class="icon supper-ty" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-726fd7f6><div class="legend" data-v-726fd7f6><div class="icon history" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>History</div></div><div class="legend" data-v-726fd7f6><div class="icon r7" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>35kts Radii</div></div><div class="legend" data-v-726fd7f6><div class="icon r10" data-v-726fd7f6></div><div class="label" data-v-726fd7f6>50kts Radii</div></div></div>', 3))
|
|
4763
4812
|
]),
|
|
4764
|
-
n("div",
|
|
4813
|
+
n("div", xa, [
|
|
4765
4814
|
n("div", {
|
|
4766
4815
|
class: "button",
|
|
4767
4816
|
onClick: e[1] || (e[1] = (w) => o.handleStrikeProbability(i.activeTropicals))
|
|
@@ -4769,11 +4818,11 @@ function na(a, e, t, r, i, o) {
|
|
|
4769
4818
|
])
|
|
4770
4819
|
])
|
|
4771
4820
|
], 512)), [
|
|
4772
|
-
[
|
|
4821
|
+
[Me, i.showTropicals && !a.$attrs.hideTropicalsLegend]
|
|
4773
4822
|
]);
|
|
4774
4823
|
}
|
|
4775
|
-
const Fe = /* @__PURE__ */ T(
|
|
4776
|
-
const
|
|
4824
|
+
const Fe = /* @__PURE__ */ T(na, [["render", _a], ["__scopeId", "data-v-726fd7f6"]]);
|
|
4825
|
+
const Ca = {
|
|
4777
4826
|
name: "IdmPrecip3h",
|
|
4778
4827
|
props: {
|
|
4779
4828
|
factor: {
|
|
@@ -4861,7 +4910,7 @@ const la = {
|
|
|
4861
4910
|
[1, "rgba(197,5,58,0.8)"]
|
|
4862
4911
|
];
|
|
4863
4912
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4864
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4913
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.fragmentSchema);
|
|
4865
4914
|
this.program = e, this.aPositionBuffer = t;
|
|
4866
4915
|
}
|
|
4867
4916
|
},
|
|
@@ -4874,13 +4923,13 @@ const la = {
|
|
|
4874
4923
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4875
4924
|
}
|
|
4876
4925
|
}
|
|
4877
|
-
},
|
|
4878
|
-
function
|
|
4926
|
+
}, ka = { key: 0 };
|
|
4927
|
+
function Sa(a, e, t, r, i, o) {
|
|
4879
4928
|
var s;
|
|
4880
|
-
return (s = t.factor) != null && s.active ? (
|
|
4929
|
+
return (s = t.factor) != null && s.active ? (L(), x("div", ka, [
|
|
4881
4930
|
n("div", {
|
|
4882
4931
|
class: "legend-bars flex-center",
|
|
4883
|
-
style:
|
|
4932
|
+
style: Z([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4884
4933
|
}, e[0] || (e[0] = [
|
|
4885
4934
|
n("span", null, "mm", -1),
|
|
4886
4935
|
n("span", null, "1.5", -1),
|
|
@@ -4891,10 +4940,10 @@ function ha(a, e, t, r, i, o) {
|
|
|
4891
4940
|
n("span", null, "20", -1),
|
|
4892
4941
|
n("span", null, "30", -1)
|
|
4893
4942
|
]), 4)
|
|
4894
|
-
])) :
|
|
4943
|
+
])) : M("", !0);
|
|
4895
4944
|
}
|
|
4896
|
-
const
|
|
4897
|
-
const
|
|
4945
|
+
const Pa = /* @__PURE__ */ T(Ca, [["render", Sa], ["__scopeId", "data-v-9708a7a3"]]);
|
|
4946
|
+
const za = {
|
|
4898
4947
|
name: "IdmVisibility",
|
|
4899
4948
|
props: {
|
|
4900
4949
|
factor: {
|
|
@@ -4975,7 +5024,7 @@ const pa = {
|
|
|
4975
5024
|
[1, "rgba(144,144,144,0)"]
|
|
4976
5025
|
];
|
|
4977
5026
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4978
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
5027
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.fragmentSchema);
|
|
4979
5028
|
this.program = e, this.aPositionBuffer = t;
|
|
4980
5029
|
}
|
|
4981
5030
|
},
|
|
@@ -4988,13 +5037,13 @@ const pa = {
|
|
|
4988
5037
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4989
5038
|
}
|
|
4990
5039
|
}
|
|
4991
|
-
},
|
|
4992
|
-
function
|
|
5040
|
+
}, Ta = { key: 0 };
|
|
5041
|
+
function Ia(a, e, t, r, i, o) {
|
|
4993
5042
|
var s;
|
|
4994
|
-
return (s = t.factor) != null && s.active ? (
|
|
5043
|
+
return (s = t.factor) != null && s.active ? (L(), x("div", Ta, [
|
|
4995
5044
|
n("div", {
|
|
4996
5045
|
class: "legend-bars flex-center",
|
|
4997
|
-
style:
|
|
5046
|
+
style: Z([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
4998
5047
|
}, e[0] || (e[0] = [
|
|
4999
5048
|
n("span", null, "nm", -1),
|
|
5000
5049
|
n("span", null, "0", -1),
|
|
@@ -5003,10 +5052,10 @@ function ua(a, e, t, r, i, o) {
|
|
|
5003
5052
|
n("span", null, "3", -1),
|
|
5004
5053
|
n("span", null, "9", -1)
|
|
5005
5054
|
]), 4)
|
|
5006
|
-
])) :
|
|
5055
|
+
])) : M("", !0);
|
|
5007
5056
|
}
|
|
5008
|
-
const
|
|
5009
|
-
const
|
|
5057
|
+
const Ra = /* @__PURE__ */ T(za, [["render", Ia], ["__scopeId", "data-v-f7b2fb08"]]);
|
|
5058
|
+
const Ea = {
|
|
5010
5059
|
name: "IdmWaterTemp",
|
|
5011
5060
|
props: {
|
|
5012
5061
|
factor: {
|
|
@@ -5095,7 +5144,7 @@ const fa = {
|
|
|
5095
5144
|
//
|
|
5096
5145
|
];
|
|
5097
5146
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
5098
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
5147
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.fragmentSchema);
|
|
5099
5148
|
this.program = e, this.aPositionBuffer = t;
|
|
5100
5149
|
}
|
|
5101
5150
|
},
|
|
@@ -5108,13 +5157,13 @@ const fa = {
|
|
|
5108
5157
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
5109
5158
|
}
|
|
5110
5159
|
}
|
|
5111
|
-
},
|
|
5112
|
-
function
|
|
5160
|
+
}, Aa = { key: 0 };
|
|
5161
|
+
function Da(a, e, t, r, i, o) {
|
|
5113
5162
|
var s;
|
|
5114
|
-
return (s = t.factor) != null && s.active ? (
|
|
5163
|
+
return (s = t.factor) != null && s.active ? (L(), x("div", Aa, [
|
|
5115
5164
|
n("div", {
|
|
5116
5165
|
class: "legend-bars flex-center",
|
|
5117
|
-
style:
|
|
5166
|
+
style: Z([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
5118
5167
|
}, e[0] || (e[0] = [
|
|
5119
5168
|
n("span", null, "°C", -1),
|
|
5120
5169
|
n("span", null, "0", -1),
|
|
@@ -5123,10 +5172,10 @@ function ba(a, e, t, r, i, o) {
|
|
|
5123
5172
|
n("span", null, "30", -1),
|
|
5124
5173
|
n("span", null, "40", -1)
|
|
5125
5174
|
]), 4)
|
|
5126
|
-
])) :
|
|
5175
|
+
])) : M("", !0);
|
|
5127
5176
|
}
|
|
5128
|
-
const
|
|
5129
|
-
const
|
|
5177
|
+
const Wa = /* @__PURE__ */ T(Ea, [["render", Da], ["__scopeId", "data-v-7521f582"]]);
|
|
5178
|
+
const Ma = {
|
|
5130
5179
|
name: "IdmTemp",
|
|
5131
5180
|
props: {
|
|
5132
5181
|
factor: {
|
|
@@ -5218,7 +5267,7 @@ const wa = {
|
|
|
5218
5267
|
[1, "rgb(138, 43, 10)"]
|
|
5219
5268
|
];
|
|
5220
5269
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
5221
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
5270
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.fragmentSchema);
|
|
5222
5271
|
this.program = e, this.aPositionBuffer = t;
|
|
5223
5272
|
}
|
|
5224
5273
|
},
|
|
@@ -5231,13 +5280,13 @@ const wa = {
|
|
|
5231
5280
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
5232
5281
|
}
|
|
5233
5282
|
}
|
|
5234
|
-
},
|
|
5235
|
-
function
|
|
5283
|
+
}, ja = { key: 0 };
|
|
5284
|
+
function Oa(a, e, t, r, i, o) {
|
|
5236
5285
|
var s;
|
|
5237
|
-
return (s = t.factor) != null && s.active ? (
|
|
5286
|
+
return (s = t.factor) != null && s.active ? (L(), x("div", ja, [
|
|
5238
5287
|
n("div", {
|
|
5239
5288
|
class: "legend-bars flex-center",
|
|
5240
|
-
style:
|
|
5289
|
+
style: Z([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
5241
5290
|
}, e[0] || (e[0] = [
|
|
5242
5291
|
n("span", null, "°C", -1),
|
|
5243
5292
|
n("span", null, "-20", -1),
|
|
@@ -5248,10 +5297,10 @@ function xa(a, e, t, r, i, o) {
|
|
|
5248
5297
|
n("span", null, "30", -1),
|
|
5249
5298
|
n("span", null, "40", -1)
|
|
5250
5299
|
]), 4)
|
|
5251
|
-
])) :
|
|
5300
|
+
])) : M("", !0);
|
|
5252
5301
|
}
|
|
5253
|
-
const
|
|
5254
|
-
const
|
|
5302
|
+
const Ba = /* @__PURE__ */ T(Ma, [["render", Oa], ["__scopeId", "data-v-25daaa82"]]);
|
|
5303
|
+
const Na = {
|
|
5255
5304
|
name: "IdmArctic",
|
|
5256
5305
|
props: {
|
|
5257
5306
|
factor: {
|
|
@@ -5334,7 +5383,7 @@ const Ca = {
|
|
|
5334
5383
|
// 2m
|
|
5335
5384
|
];
|
|
5336
5385
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
5337
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
5386
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, B.vertexSchema, B.fragmentSchema);
|
|
5338
5387
|
this.program = e, this.aPositionBuffer = t;
|
|
5339
5388
|
}
|
|
5340
5389
|
},
|
|
@@ -5347,13 +5396,13 @@ const Ca = {
|
|
|
5347
5396
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
5348
5397
|
}
|
|
5349
5398
|
}
|
|
5350
|
-
},
|
|
5351
|
-
function
|
|
5399
|
+
}, Fa = { key: 0 };
|
|
5400
|
+
function $a(a, e, t, r, i, o) {
|
|
5352
5401
|
var s;
|
|
5353
|
-
return (s = t.factor) != null && s.active ? (
|
|
5402
|
+
return (s = t.factor) != null && s.active ? (L(), x("div", Fa, [
|
|
5354
5403
|
n("div", {
|
|
5355
5404
|
class: "legend-bars flex-center",
|
|
5356
|
-
style:
|
|
5405
|
+
style: Z([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
5357
5406
|
}, e[0] || (e[0] = [
|
|
5358
5407
|
n("span", null, "m", -1),
|
|
5359
5408
|
n("span", null, "0", -1),
|
|
@@ -5362,11 +5411,28 @@ function Sa(a, e, t, r, i, o) {
|
|
|
5362
5411
|
n("span", null, "1.5", -1),
|
|
5363
5412
|
n("span", null, "2", -1)
|
|
5364
5413
|
]), 4)
|
|
5365
|
-
])) :
|
|
5414
|
+
])) : M("", !0);
|
|
5366
5415
|
}
|
|
5367
|
-
const
|
|
5368
|
-
|
|
5416
|
+
const Va = /* @__PURE__ */ T(Na, [["render", $a], ["__scopeId", "data-v-5bb73794"]]);
|
|
5417
|
+
/*! Element Plus Icons Vue v2.3.1 */
|
|
5418
|
+
var Ua = /* @__PURE__ */ He({
|
|
5419
|
+
name: "LocationFilled",
|
|
5420
|
+
__name: "location-filled",
|
|
5421
|
+
setup(a) {
|
|
5422
|
+
return (e, t) => (L(), x("svg", {
|
|
5423
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5424
|
+
viewBox: "0 0 1024 1024"
|
|
5425
|
+
}, [
|
|
5426
|
+
n("path", {
|
|
5427
|
+
fill: "currentColor",
|
|
5428
|
+
d: "M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"
|
|
5429
|
+
})
|
|
5430
|
+
]));
|
|
5431
|
+
}
|
|
5432
|
+
}), Za = Ua;
|
|
5433
|
+
const Ha = {
|
|
5369
5434
|
name: "IdmPoint",
|
|
5435
|
+
components: { LocationFilled: Za },
|
|
5370
5436
|
emits: ["point", "more"],
|
|
5371
5437
|
props: {
|
|
5372
5438
|
map: {
|
|
@@ -5385,9 +5451,9 @@ const za = {
|
|
|
5385
5451
|
},
|
|
5386
5452
|
data() {
|
|
5387
5453
|
return {
|
|
5388
|
-
showMeteo: !
|
|
5454
|
+
showMeteo: !0,
|
|
5389
5455
|
meteoMarker: void 0,
|
|
5390
|
-
helper:
|
|
5456
|
+
helper: Re
|
|
5391
5457
|
};
|
|
5392
5458
|
},
|
|
5393
5459
|
watch: {
|
|
@@ -5411,33 +5477,32 @@ const za = {
|
|
|
5411
5477
|
computed: {
|
|
5412
5478
|
computeTime() {
|
|
5413
5479
|
return function(a) {
|
|
5414
|
-
|
|
5415
|
-
const e = Z(a).utc().utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
5416
|
-
return `${e.format("MMM-DD,HHmm")} ( UTC ${t} )`;
|
|
5417
|
-
}
|
|
5418
|
-
return "-";
|
|
5480
|
+
return a ? `${G(a).utc().utcOffset(this.timeZone).format("MMM-DD,HHmm")}` : "-";
|
|
5419
5481
|
};
|
|
5420
5482
|
},
|
|
5483
|
+
computeTimeZone() {
|
|
5484
|
+
return `(UTC ${this.timeZone < 0 ? this.timeZone : "+" + this.timeZone})`;
|
|
5485
|
+
},
|
|
5421
5486
|
computeLat() {
|
|
5422
5487
|
return function(a, e = 4) {
|
|
5423
|
-
return
|
|
5488
|
+
return W.lat2pretty(a, e).pretty;
|
|
5424
5489
|
};
|
|
5425
5490
|
},
|
|
5426
5491
|
computeLng() {
|
|
5427
5492
|
return function(a, e = 4) {
|
|
5428
|
-
return
|
|
5493
|
+
return W.lng2pretty(a, e).pretty;
|
|
5429
5494
|
};
|
|
5430
5495
|
},
|
|
5431
5496
|
roundPrecision() {
|
|
5432
5497
|
return function(a, e = 4) {
|
|
5433
|
-
return isNaN(a) ? "-" :
|
|
5498
|
+
return isNaN(a) ? "-" : W.roundPrecision(a, e);
|
|
5434
5499
|
};
|
|
5435
5500
|
}
|
|
5436
5501
|
},
|
|
5437
5502
|
methods: {
|
|
5438
5503
|
handleBind() {
|
|
5439
5504
|
var a, e;
|
|
5440
|
-
this.show ? (a = this.map) == null || a.on("click", this.handleClick) : ((e = this.map) == null || e.off("click", this.handleClick), this.showMeteo = !1);
|
|
5505
|
+
this.show ? ((a = this.map) == null || a.on("click", this.handleClick), this.map.getCanvas().style.cursor = "pointer") : ((e = this.map) == null || e.off("click", this.handleClick), this.map.getCanvas().style.cursor = "grab", this.showMeteo = !1);
|
|
5441
5506
|
},
|
|
5442
5507
|
handleClick(a) {
|
|
5443
5508
|
a.originalEvent.stopPropagation();
|
|
@@ -5452,67 +5517,95 @@ const za = {
|
|
|
5452
5517
|
}
|
|
5453
5518
|
}
|
|
5454
5519
|
}
|
|
5455
|
-
},
|
|
5520
|
+
}, Ga = {
|
|
5456
5521
|
id: "point-meteo",
|
|
5457
5522
|
class: "point-meteo"
|
|
5458
|
-
},
|
|
5459
|
-
function
|
|
5460
|
-
var
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5523
|
+
}, Xa = { class: "meteo-box" }, Ja = { 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
|
+
function yi(a, e, t, r, i, o) {
|
|
5525
|
+
var h, p, c, d, f, m, b, y, u, v, g, _, z, w, A, j, O, N, F, X, se, ne, le, ce, he, de, pe, te, J, Y, me, q, I, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe, _e, Ce, ke, Se, Pe, ze, Te;
|
|
5526
|
+
const s = P("LocationFilled"), l = P("ElIcon");
|
|
5527
|
+
return We((L(), x("div", Ga, [
|
|
5528
|
+
n("div", Xa, [
|
|
5529
|
+
n("div", Ja, [
|
|
5530
|
+
n("div", Ya, [
|
|
5531
|
+
k(l, { size: "22" }, {
|
|
5532
|
+
default: H(() => [
|
|
5533
|
+
k(s)
|
|
5534
|
+
]),
|
|
5535
|
+
_: 1
|
|
5536
|
+
}),
|
|
5537
|
+
n("div", qa, S(o.computeLat((h = t.meteo) == null ? void 0 : h.lat)) + "," + S(o.computeLng((p = t.meteo) == null ? void 0 : p.lng)), 1)
|
|
5538
|
+
]),
|
|
5464
5539
|
n("div", {
|
|
5465
5540
|
class: "iconfont close",
|
|
5466
|
-
onClick: e[0] || (e[0] = (
|
|
5467
|
-
}, "")
|
|
5468
|
-
n("div", Ra, S(o.computeLat((s = t.meteo) == null ? void 0 : s.lat)) + "," + S(o.computeLng((l = t.meteo) == null ? void 0 : l.lng)), 1),
|
|
5469
|
-
n("div", Aa, S(o.computeTime((h = t.meteo) == null ? void 0 : h.utc)), 1)
|
|
5541
|
+
onClick: e[0] || (e[0] = (je) => i.showMeteo = !1)
|
|
5542
|
+
}, "")
|
|
5470
5543
|
]),
|
|
5471
|
-
n("div",
|
|
5472
|
-
n("div",
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5544
|
+
n("div", Qa, [
|
|
5545
|
+
n("div", Ka, [
|
|
5546
|
+
n("div", ei, [
|
|
5547
|
+
e[4] || (e[4] = n("div", {
|
|
5548
|
+
class: "iconfont icon",
|
|
5549
|
+
style: { "margin-right": "5px" }
|
|
5550
|
+
}, "", -1)),
|
|
5551
|
+
n("div", ti, [
|
|
5552
|
+
n("span", null, [
|
|
5553
|
+
De(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
|
+
e[1] || (e[1] = n("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
5555
|
+
])
|
|
5556
|
+
]),
|
|
5557
|
+
n("div", ai, [
|
|
5558
|
+
n("div", ii, [
|
|
5559
|
+
e[2] || (e[2] = n("span", null, "Precip: ", -1)),
|
|
5560
|
+
n("span", null, S(o.roundPrecision((u = (y = t.meteo) == null ? void 0 : y.precip) == null ? void 0 : u.inter6h, 2)) + " mm", 1)
|
|
5561
|
+
]),
|
|
5562
|
+
n("div", ri, [
|
|
5563
|
+
e[3] || (e[3] = n("span", null, "Visibility: ", -1)),
|
|
5564
|
+
n("span", null, S(o.roundPrecision(((v = t.meteo) == null ? void 0 : v.visibility) / 1852, 0)) + " nm", 1)
|
|
5565
|
+
])
|
|
5566
|
+
])
|
|
5567
|
+
]),
|
|
5568
|
+
n("div", oi, [
|
|
5569
|
+
n("div", si, S(o.computeTime((g = t.meteo) == null ? void 0 : g.utc)), 1),
|
|
5570
|
+
n("div", ni, S(o.computeTimeZone), 1)
|
|
5571
|
+
])
|
|
5479
5572
|
]),
|
|
5480
|
-
n("div",
|
|
5481
|
-
e[
|
|
5482
|
-
n("span", null, S(((
|
|
5573
|
+
n("div", li, [
|
|
5574
|
+
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((A = (w = t.meteo) == null ? void 0 : w.wind) == null ? void 0 : A.kts, 1)) + "[kts]/" + S((O = (j = t.meteo) == null ? void 0 : j.wind) == null ? void 0 : O.scale) + "[BF]/" + S(o.roundPrecision((F = (N = t.meteo) == null ? void 0 : N.gusts) == null ? void 0 : F.kts, 1)) + "[kts]", 1)
|
|
5483
5576
|
]),
|
|
5484
|
-
n("div",
|
|
5485
|
-
e[
|
|
5486
|
-
n("span", null, S(((
|
|
5577
|
+
n("div", ci, [
|
|
5578
|
+
e[6] || (e[6] = n("label", null, "Wind.Wave", -1)),
|
|
5579
|
+
n("span", null, S(((ne = (se = (X = t.meteo) == null ? void 0 : X.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)
|
|
5487
5580
|
]),
|
|
5488
|
-
n("div",
|
|
5489
|
-
e[
|
|
5490
|
-
n("span", null, S(((
|
|
5581
|
+
n("div", hi, [
|
|
5582
|
+
e[7] || (e[7] = n("label", null, "Swell", -1)),
|
|
5583
|
+
n("span", null, S(((me = (Y = (J = t.meteo) == null ? void 0 : J.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)
|
|
5491
5584
|
]),
|
|
5492
|
-
n("div",
|
|
5493
|
-
e[
|
|
5494
|
-
n("span", null, S(o.roundPrecision((ve = (be = t.meteo) == null ? void 0 : be.
|
|
5585
|
+
n("div", di, [
|
|
5586
|
+
e[8] || (e[8] = n("label", null, "Sig.Wave", -1)),
|
|
5587
|
+
n("span", null, S(((re = (ie = (ae = t.meteo) == null ? void 0 : ae.wave) == null ? void 0 : ie.sig) == null ? void 0 : re.direction) || "-") + "/" + S(o.roundPrecision((we = (ve = (be = t.meteo) == null ? void 0 : be.wave) == null ? void 0 : ve.sig) == null ? void 0 : we.height, 1)) + "[m]/" + S(o.roundPrecision((_e = (xe = (Le = t.meteo) == null ? void 0 : Le.wave) == null ? void 0 : xe.sig) == null ? void 0 : _e.period, 1)) + "[s]", 1)
|
|
5495
5588
|
]),
|
|
5496
|
-
n("div",
|
|
5497
|
-
e[
|
|
5498
|
-
n("span", null, S(o.roundPrecision(((
|
|
5589
|
+
n("div", pi, [
|
|
5590
|
+
e[9] || (e[9] = n("label", null, "Current", -1)),
|
|
5591
|
+
n("span", null, S(((ke = (Ce = t.meteo) == null ? void 0 : Ce.current) == null ? void 0 : ke.direction) || "-") + "/" + S(o.roundPrecision((Pe = (Se = t.meteo) == null ? void 0 : Se.current) == null ? void 0 : Pe.kts, 2)) + "[kts]", 1)
|
|
5499
5592
|
]),
|
|
5500
|
-
n("div",
|
|
5501
|
-
e[
|
|
5502
|
-
n("span", null, S(o.roundPrecision((
|
|
5593
|
+
n("div", mi, [
|
|
5594
|
+
e[10] || (e[10] = n("label", null, "Temp", -1)),
|
|
5595
|
+
n("span", null, S(o.roundPrecision((ze = t.meteo) == null ? void 0 : ze.temp, 0)) + "[°C]", 1)
|
|
5503
5596
|
]),
|
|
5504
|
-
n("div",
|
|
5505
|
-
e[
|
|
5506
|
-
n("span", null, S(o.roundPrecision((
|
|
5597
|
+
n("div", ui, [
|
|
5598
|
+
e[11] || (e[11] = n("label", null, "Water Temp", -1)),
|
|
5599
|
+
n("span", null, S(o.roundPrecision((Te = t.meteo) == null ? void 0 : Te.waterTemp, 2)) + "[°C]", 1)
|
|
5507
5600
|
])
|
|
5508
5601
|
]),
|
|
5509
|
-
|
|
5602
|
+
M("", !0)
|
|
5510
5603
|
])
|
|
5511
5604
|
], 512)), [
|
|
5512
|
-
[
|
|
5605
|
+
[Me, i.showMeteo]
|
|
5513
5606
|
]);
|
|
5514
5607
|
}
|
|
5515
|
-
const
|
|
5608
|
+
const fi = /* @__PURE__ */ T(Ha, [["render", yi], ["__scopeId", "data-v-77ef2fb7"]]), gi = {
|
|
5516
5609
|
name: "IdmWarZone",
|
|
5517
5610
|
props: {
|
|
5518
5611
|
map: {
|
|
@@ -5602,10 +5695,10 @@ const Za = /* @__PURE__ */ T(za, [["render", Ua], ["__scopeId", "data-v-efcf572f
|
|
|
5602
5695
|
}
|
|
5603
5696
|
}
|
|
5604
5697
|
};
|
|
5605
|
-
function
|
|
5606
|
-
return
|
|
5698
|
+
function bi(a, e, t, r, i, o) {
|
|
5699
|
+
return L(), x("div");
|
|
5607
5700
|
}
|
|
5608
|
-
const
|
|
5701
|
+
const vi = /* @__PURE__ */ T(gi, [["render", bi]]), wi = {
|
|
5609
5702
|
name: "IdmGmdssArea",
|
|
5610
5703
|
props: {
|
|
5611
5704
|
map: {
|
|
@@ -5725,10 +5818,10 @@ const Ja = /* @__PURE__ */ T(Ha, [["render", Ga]]), Xa = {
|
|
|
5725
5818
|
}
|
|
5726
5819
|
}
|
|
5727
5820
|
};
|
|
5728
|
-
function
|
|
5729
|
-
return
|
|
5821
|
+
function Li(a, e, t, r, i, o) {
|
|
5822
|
+
return L(), x("div");
|
|
5730
5823
|
}
|
|
5731
|
-
const
|
|
5824
|
+
const xi = /* @__PURE__ */ T(wi, [["render", Li]]), _i = {
|
|
5732
5825
|
name: "IdmEcaZone",
|
|
5733
5826
|
props: {
|
|
5734
5827
|
map: {
|
|
@@ -5816,11 +5909,11 @@ const qa = /* @__PURE__ */ T(Xa, [["render", Ya]]), Qa = {
|
|
|
5816
5909
|
}
|
|
5817
5910
|
}
|
|
5818
5911
|
};
|
|
5819
|
-
function
|
|
5820
|
-
return
|
|
5912
|
+
function Ci(a, e, t, r, i, o) {
|
|
5913
|
+
return L(), x("div");
|
|
5821
5914
|
}
|
|
5822
|
-
const
|
|
5823
|
-
const
|
|
5915
|
+
const ki = /* @__PURE__ */ T(_i, [["render", Ci]]);
|
|
5916
|
+
const Si = {
|
|
5824
5917
|
name: "IdmAlertZone",
|
|
5825
5918
|
props: {
|
|
5826
5919
|
map: {
|
|
@@ -5950,10 +6043,10 @@ const ti = {
|
|
|
5950
6043
|
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);
|
|
5951
6044
|
}
|
|
5952
6045
|
}
|
|
5953
|
-
},
|
|
5954
|
-
function
|
|
6046
|
+
}, Pi = { id: "idm-gl3-zone-info" }, zi = ["innerHTML"];
|
|
6047
|
+
function Ti(a, e, t, r, i, o) {
|
|
5955
6048
|
var s;
|
|
5956
|
-
return
|
|
6049
|
+
return We((L(), x("div", Pi, [
|
|
5957
6050
|
n("div", {
|
|
5958
6051
|
class: "iconfont close",
|
|
5959
6052
|
onClick: e[0] || (e[0] = (l) => i.showZone = !1)
|
|
@@ -5961,13 +6054,13 @@ function ri(a, e, t, r, i, o) {
|
|
|
5961
6054
|
n("div", {
|
|
5962
6055
|
class: "rich-context",
|
|
5963
6056
|
innerHTML: (s = i.form) == null ? void 0 : s.name
|
|
5964
|
-
}, null, 8,
|
|
6057
|
+
}, null, 8, zi)
|
|
5965
6058
|
], 512)), [
|
|
5966
|
-
[
|
|
6059
|
+
[Me, i.showZone]
|
|
5967
6060
|
]);
|
|
5968
6061
|
}
|
|
5969
|
-
const
|
|
5970
|
-
const
|
|
6062
|
+
const Ii = /* @__PURE__ */ T(Si, [["render", Ti]]);
|
|
6063
|
+
const Ri = {
|
|
5971
6064
|
name: "IdmPort",
|
|
5972
6065
|
props: {
|
|
5973
6066
|
map: {
|
|
@@ -5993,12 +6086,12 @@ const si = {
|
|
|
5993
6086
|
computed: {
|
|
5994
6087
|
computeLat() {
|
|
5995
6088
|
return function(a) {
|
|
5996
|
-
return
|
|
6089
|
+
return W.lat2pretty(a, 4).pretty;
|
|
5997
6090
|
};
|
|
5998
6091
|
},
|
|
5999
6092
|
computeLng() {
|
|
6000
6093
|
return function(a) {
|
|
6001
|
-
return
|
|
6094
|
+
return W.lng2pretty(a, 4).pretty;
|
|
6002
6095
|
};
|
|
6003
6096
|
}
|
|
6004
6097
|
},
|
|
@@ -6059,41 +6152,41 @@ const si = {
|
|
|
6059
6152
|
this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
6060
6153
|
}
|
|
6061
6154
|
}
|
|
6062
|
-
},
|
|
6155
|
+
}, Ei = { id: "port-info" }, Ai = { class: "port-box" }, Di = { class: "flex-start" }, Wi = { class: "flex-start" }, Mi = { class: "flex-start" }, ji = {
|
|
6063
6156
|
class: "flex-start",
|
|
6064
6157
|
style: { "align-items": "flex-start" }
|
|
6065
6158
|
};
|
|
6066
|
-
function
|
|
6067
|
-
return
|
|
6159
|
+
function Oi(a, e, t, r, i, o) {
|
|
6160
|
+
return We((L(), x("div", Ei, [
|
|
6068
6161
|
n("div", {
|
|
6069
6162
|
class: "close iconfont",
|
|
6070
6163
|
onClick: e[0] || (e[0] = (s) => i.showPort = !1)
|
|
6071
6164
|
}, ""),
|
|
6072
|
-
n("div",
|
|
6073
|
-
n("div",
|
|
6165
|
+
n("div", Ai, [
|
|
6166
|
+
n("div", Di, [
|
|
6074
6167
|
e[2] || (e[2] = n("label", null, "Name : ", -1)),
|
|
6075
6168
|
n("span", {
|
|
6076
6169
|
onClick: e[1] || (e[1] = (...s) => o.handleEmit && o.handleEmit(...s))
|
|
6077
6170
|
}, S(i.form.name), 1)
|
|
6078
6171
|
]),
|
|
6079
|
-
n("div",
|
|
6172
|
+
n("div", Wi, [
|
|
6080
6173
|
e[3] || (e[3] = n("label", null, "Position : ", -1)),
|
|
6081
6174
|
n("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
|
|
6082
6175
|
]),
|
|
6083
|
-
n("div",
|
|
6176
|
+
n("div", Mi, [
|
|
6084
6177
|
e[4] || (e[4] = n("label", null, "LoCode : ", -1)),
|
|
6085
6178
|
n("span", null, S(i.form.loCode || "-"), 1)
|
|
6086
6179
|
]),
|
|
6087
|
-
n("div",
|
|
6180
|
+
n("div", ji, [
|
|
6088
6181
|
e[5] || (e[5] = n("label", null, "Region : ", -1)),
|
|
6089
6182
|
n("span", null, S(i.form.zoneName || "-"), 1)
|
|
6090
6183
|
])
|
|
6091
6184
|
])
|
|
6092
6185
|
], 512)), [
|
|
6093
|
-
[
|
|
6186
|
+
[Me, i.showPort]
|
|
6094
6187
|
]);
|
|
6095
6188
|
}
|
|
6096
|
-
const
|
|
6189
|
+
const Bi = /* @__PURE__ */ T(Ri, [["render", Oi], ["__scopeId", "data-v-c07e4c45"]]), Ni = {
|
|
6097
6190
|
name: "IdmLoadLine",
|
|
6098
6191
|
props: {
|
|
6099
6192
|
map: {
|
|
@@ -6163,10 +6256,10 @@ const ui = /* @__PURE__ */ T(si, [["render", mi], ["__scopeId", "data-v-c07e4c45
|
|
|
6163
6256
|
}
|
|
6164
6257
|
}
|
|
6165
6258
|
};
|
|
6166
|
-
function
|
|
6167
|
-
return
|
|
6259
|
+
function Fi(a, e, t, r, i, o) {
|
|
6260
|
+
return L(), x("div");
|
|
6168
6261
|
}
|
|
6169
|
-
const
|
|
6262
|
+
const $i = /* @__PURE__ */ T(Ni, [["render", Fi]]), Vi = {
|
|
6170
6263
|
name: "IdmTimezone",
|
|
6171
6264
|
props: {
|
|
6172
6265
|
map: {
|
|
@@ -6331,10 +6424,10 @@ const gi = /* @__PURE__ */ T(yi, [["render", fi]]), bi = {
|
|
|
6331
6424
|
}
|
|
6332
6425
|
}
|
|
6333
6426
|
};
|
|
6334
|
-
function
|
|
6335
|
-
return
|
|
6427
|
+
function Ui(a, e, t, r, i, o) {
|
|
6428
|
+
return L(), x("div");
|
|
6336
6429
|
}
|
|
6337
|
-
const
|
|
6430
|
+
const Zi = /* @__PURE__ */ T(Vi, [["render", Ui]]), Hi = {
|
|
6338
6431
|
name: "IdmVoluntaryReportingArea",
|
|
6339
6432
|
props: {
|
|
6340
6433
|
map: {
|
|
@@ -6422,10 +6515,10 @@ const wi = /* @__PURE__ */ T(bi, [["render", vi]]), Li = {
|
|
|
6422
6515
|
}
|
|
6423
6516
|
}
|
|
6424
6517
|
};
|
|
6425
|
-
function
|
|
6426
|
-
return
|
|
6518
|
+
function Gi(a, e, t, r, i, o) {
|
|
6519
|
+
return L(), x("div");
|
|
6427
6520
|
}
|
|
6428
|
-
const
|
|
6521
|
+
const Xi = /* @__PURE__ */ T(Hi, [["render", Gi]]), Ji = {
|
|
6429
6522
|
name: "IdmSpecialArea",
|
|
6430
6523
|
props: {
|
|
6431
6524
|
map: {
|
|
@@ -6455,7 +6548,7 @@ const _i = /* @__PURE__ */ T(Li, [["render", xi]]), Ci = {
|
|
|
6455
6548
|
methods: {
|
|
6456
6549
|
handleRender() {
|
|
6457
6550
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
|
|
6458
|
-
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) =>
|
|
6551
|
+
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => W.convertToMonotonicLng2(e));
|
|
6459
6552
|
}), this.map.addSource(this.source, {
|
|
6460
6553
|
type: "geojson",
|
|
6461
6554
|
data: this.area
|
|
@@ -6515,10 +6608,10 @@ const _i = /* @__PURE__ */ T(Li, [["render", xi]]), Ci = {
|
|
|
6515
6608
|
}
|
|
6516
6609
|
}
|
|
6517
6610
|
};
|
|
6518
|
-
function
|
|
6519
|
-
return
|
|
6611
|
+
function Yi(a, e, t, r, i, o) {
|
|
6612
|
+
return L(), x("div");
|
|
6520
6613
|
}
|
|
6521
|
-
const
|
|
6614
|
+
const qi = /* @__PURE__ */ T(Ji, [["render", Yi]]), Qi = {
|
|
6522
6615
|
name: "IdmTerminator",
|
|
6523
6616
|
props: {
|
|
6524
6617
|
map: {
|
|
@@ -6567,11 +6660,11 @@ const Si = /* @__PURE__ */ T(Ci, [["render", ki]]), Pi = {
|
|
|
6567
6660
|
}
|
|
6568
6661
|
}
|
|
6569
6662
|
};
|
|
6570
|
-
function
|
|
6571
|
-
return
|
|
6663
|
+
function Ki(a, e, t, r, i, o) {
|
|
6664
|
+
return L(), x("div");
|
|
6572
6665
|
}
|
|
6573
|
-
const
|
|
6574
|
-
const
|
|
6666
|
+
const er = /* @__PURE__ */ T(Qi, [["render", Ki]]);
|
|
6667
|
+
const tr = {
|
|
6575
6668
|
name: "IdmLatLng",
|
|
6576
6669
|
props: {
|
|
6577
6670
|
map: {
|
|
@@ -6629,7 +6722,7 @@ const Ei = {
|
|
|
6629
6722
|
this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
6630
6723
|
},
|
|
6631
6724
|
handleMouseMove(a) {
|
|
6632
|
-
const e = a.lngLat, t =
|
|
6725
|
+
const e = a.lngLat, t = W.lng2pretty(e.lng, 2), r = W.lat2pretty(e.lat, 2);
|
|
6633
6726
|
this.lngLat = { lng: t, lat: r };
|
|
6634
6727
|
},
|
|
6635
6728
|
handleComputeLatLngs() {
|
|
@@ -6678,7 +6771,7 @@ const Ei = {
|
|
|
6678
6771
|
handleZoomEnd() {
|
|
6679
6772
|
var e;
|
|
6680
6773
|
const a = this.handleComputeLatLngs();
|
|
6681
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
6774
|
+
(e = this.map) == null || e.getSource(this.source).setData(C.featureCollection(a));
|
|
6682
6775
|
},
|
|
6683
6776
|
handleRender() {
|
|
6684
6777
|
if (this.map) {
|
|
@@ -6727,18 +6820,18 @@ const Ei = {
|
|
|
6727
6820
|
}
|
|
6728
6821
|
}
|
|
6729
6822
|
};
|
|
6730
|
-
function
|
|
6731
|
-
return i.lngLat ? (
|
|
6823
|
+
function ar(a, e, t, r, i, o) {
|
|
6824
|
+
return i.lngLat ? (L(), x("div", {
|
|
6732
6825
|
key: 0,
|
|
6733
6826
|
class: "lat-lng-tip",
|
|
6734
|
-
style:
|
|
6827
|
+
style: Z({ right: i.right + "px", bottom: t.bottom })
|
|
6735
6828
|
}, [
|
|
6736
6829
|
n("span", null, S(i.lngLat.lat.pretty), 1),
|
|
6737
6830
|
e[0] || (e[0] = n("span", null, ", ", -1)),
|
|
6738
6831
|
n("span", null, S(i.lngLat.lng.pretty), 1)
|
|
6739
|
-
], 4)) :
|
|
6832
|
+
], 4)) : M("", !0);
|
|
6740
6833
|
}
|
|
6741
|
-
const $e = /* @__PURE__ */ T(
|
|
6834
|
+
const $e = /* @__PURE__ */ T(tr, [["render", ar], ["__scopeId", "data-v-73241fe7"]]), ir = {
|
|
6742
6835
|
name: "IdmMeasure",
|
|
6743
6836
|
props: {
|
|
6744
6837
|
map: {
|
|
@@ -6779,11 +6872,11 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
|
|
|
6779
6872
|
},
|
|
6780
6873
|
methods: {
|
|
6781
6874
|
handleBind() {
|
|
6782
|
-
var a, e, t, r, i, o, s, l, h,
|
|
6875
|
+
var a, e, t, r, i, o, s, l, h, p;
|
|
6783
6876
|
if (this.show)
|
|
6784
6877
|
(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");
|
|
6785
6878
|
else {
|
|
6786
|
-
(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), (
|
|
6879
|
+
(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), (p = this.map) == null || p.off("contextmenu", this.handleContextmenu);
|
|
6787
6880
|
for (const c of this.geojson)
|
|
6788
6881
|
this.handleClear(c, !0);
|
|
6789
6882
|
this.geojson = [], this.map && (this.map.getCanvas().style.cursor = "grab");
|
|
@@ -6797,7 +6890,7 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
|
|
|
6797
6890
|
}
|
|
6798
6891
|
},
|
|
6799
6892
|
handleDrag(a) {
|
|
6800
|
-
var t, r, i, o, s, l, h,
|
|
6893
|
+
var t, r, i, o, s, l, h, p, c, d;
|
|
6801
6894
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
6802
6895
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6803
6896
|
const f = this.geojson.filter((u) => u.id === e.split("-")[0])[0];
|
|
@@ -6816,13 +6909,13 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
|
|
|
6816
6909
|
this.handleTmpPointUpdate(
|
|
6817
6910
|
f,
|
|
6818
6911
|
y[b - 1],
|
|
6819
|
-
{ lng: (
|
|
6912
|
+
{ lng: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lng, lat: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lat, properties: y[b].properties },
|
|
6820
6913
|
b === y.length - 1 ? void 0 : y[b + 1]
|
|
6821
6914
|
);
|
|
6822
6915
|
}
|
|
6823
6916
|
},
|
|
6824
6917
|
handleDragEnd(a) {
|
|
6825
|
-
var t, r, i, o, s, l, h,
|
|
6918
|
+
var t, r, i, o, s, l, h, p, c, d;
|
|
6826
6919
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
6827
6920
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6828
6921
|
const f = this.geojson.filter((y) => y.id === e.split("-")[0])[0];
|
|
@@ -6831,7 +6924,7 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
|
|
|
6831
6924
|
return ((u = y._element) == null ? void 0 : u.id) === e;
|
|
6832
6925
|
})[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]);
|
|
6833
6926
|
const b = f.features.filter((y) => y.geometry.type === "Point" && y.properties.id == e.split("-")[1])[0];
|
|
6834
|
-
b.geometry.coordinates = [(
|
|
6927
|
+
b.geometry.coordinates = [(p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lng, (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lat], f.features = f.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(f);
|
|
6835
6928
|
}
|
|
6836
6929
|
},
|
|
6837
6930
|
handleContextmenu(a) {
|
|
@@ -6840,9 +6933,9 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
|
|
|
6840
6933
|
const e = (o = (i = (r = a.originalEvent) == null ? void 0 : r.target) == null ? void 0 : i.parentElement) == null ? void 0 : o.id;
|
|
6841
6934
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6842
6935
|
const l = this.geojson.filter((h) => h.id === e.split("-")[0])[0].features.filter((h) => h.geometry.type === "Point");
|
|
6843
|
-
if (l.length > 2 && l.filter((
|
|
6844
|
-
const
|
|
6845
|
-
|
|
6936
|
+
if (l.length > 2 && l.filter((p) => p.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
6937
|
+
const p = document.createElement("div");
|
|
6938
|
+
p.className = "point-contextmenu-marker", p.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ee.Marker(p).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
|
|
6846
6939
|
}
|
|
6847
6940
|
}
|
|
6848
6941
|
},
|
|
@@ -6851,15 +6944,15 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
|
|
|
6851
6944
|
(t = this.contextmenu) == null || t.remove();
|
|
6852
6945
|
const e = a.originalEvent.target.className;
|
|
6853
6946
|
if (e === "marker-close") {
|
|
6854
|
-
const l = (i = (r = a.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, h = this.geojson.filter((
|
|
6855
|
-
h && this.handleClear(h, !0), this.geojson = this.geojson.filter((
|
|
6947
|
+
const l = (i = (r = a.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, h = this.geojson.filter((p) => p.id === l)[0];
|
|
6948
|
+
h && this.handleClear(h, !0), this.geojson = this.geojson.filter((p) => p.id !== l);
|
|
6856
6949
|
} else if (e === "del-point") {
|
|
6857
|
-
const l = (s = (o = a.originalEvent.target.id) == null ? void 0 : o.replace("del-", "")) == null ? void 0 : s.split("-"), h = this.geojson.filter((
|
|
6858
|
-
h.features = h.features.filter((
|
|
6950
|
+
const l = (s = (o = a.originalEvent.target.id) == null ? void 0 : o.replace("del-", "")) == null ? void 0 : s.split("-"), h = this.geojson.filter((p) => p.id === l[0])[0];
|
|
6951
|
+
h.features = h.features.filter((p) => p.geometry.type === "Point" && p.properties.id !== l[1]), this.handlePointUpdate(h);
|
|
6859
6952
|
} else if (e !== "marker-label") {
|
|
6860
6953
|
let l = this.geojson.at(-1);
|
|
6861
|
-
l || (l =
|
|
6862
|
-
const h =
|
|
6954
|
+
l || (l = C.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(l)), l.features = l.features.filter((p) => p.geometry.type === "Point");
|
|
6955
|
+
const h = C.feature(
|
|
6863
6956
|
{
|
|
6864
6957
|
type: "Point",
|
|
6865
6958
|
coordinates: [a.lngLat.lng, a.lngLat.lat]
|
|
@@ -6878,34 +6971,34 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
|
|
|
6878
6971
|
let t = 0;
|
|
6879
6972
|
const r = [];
|
|
6880
6973
|
for (let i = 1; i < e.length; i++) {
|
|
6881
|
-
const o = e[i - 1], s = e[i], l = o.properties, h = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] },
|
|
6882
|
-
t =
|
|
6974
|
+
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 = W.roundPrecision(t + c, 2);
|
|
6883
6976
|
let f;
|
|
6884
|
-
l.mode === "RL" ? f =
|
|
6885
|
-
const m =
|
|
6886
|
-
m.properties.dist = c, m.properties.bearing =
|
|
6977
|
+
l.mode === "RL" ? f = W.convertToMonotonicLng([h, p]) : f = W.convertToMonotonicLng(K.interpolateCoordinates(h, p, 200));
|
|
6978
|
+
const m = C.lineString(f.map((b) => [b.lng, b.lat]));
|
|
6979
|
+
m.properties.dist = c, m.properties.bearing = d, m.properties.total = t, r.push(m);
|
|
6887
6980
|
}
|
|
6888
6981
|
e.push(...r), a.total = t;
|
|
6889
6982
|
}
|
|
6890
6983
|
return this.handleRender(a), a;
|
|
6891
6984
|
},
|
|
6892
6985
|
handleTmpPointUpdate(a, e, t, r) {
|
|
6893
|
-
const i =
|
|
6986
|
+
const i = C.featureCollection([]);
|
|
6894
6987
|
let o, s;
|
|
6895
6988
|
if (e) {
|
|
6896
|
-
const h = e.properties,
|
|
6897
|
-
o = K.calculateDistance(
|
|
6898
|
-
let
|
|
6899
|
-
h.mode === "RL" ?
|
|
6900
|
-
const f =
|
|
6989
|
+
const h = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, c = { lng: t.lng, lat: t.lat };
|
|
6990
|
+
o = K.calculateDistance(p, c, h.mode === "RL", 2), s = K.calculateBearing(p, c, h.mode === "RL", 2);
|
|
6991
|
+
let d;
|
|
6992
|
+
h.mode === "RL" ? d = W.convertToMonotonicLng([p, c]) : d = W.convertToMonotonicLng(K.interpolateCoordinates(p, c, 200));
|
|
6993
|
+
const f = C.lineString(d.map((m) => [m.lng, m.lat]));
|
|
6901
6994
|
f.properties.dist = o, f.properties.bearing = s, i.features.push(f);
|
|
6902
6995
|
}
|
|
6903
6996
|
if (r) {
|
|
6904
|
-
const h = t.properties,
|
|
6905
|
-
o = K.calculateDistance(
|
|
6906
|
-
let
|
|
6907
|
-
h.mode === "RL" ?
|
|
6908
|
-
const f =
|
|
6997
|
+
const h = t.properties, p = t, c = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
6998
|
+
o = K.calculateDistance(p, c, h.mode === "RL", 2), s = K.calculateBearing(p, c, h.mode === "RL", 2);
|
|
6999
|
+
let d;
|
|
7000
|
+
h.mode === "RL" ? d = W.convertToMonotonicLng([p, c]) : d = W.convertToMonotonicLng(K.interpolateCoordinates(p, c, 200));
|
|
7001
|
+
const f = C.lineString(d.map((m) => [m.lng, m.lat]));
|
|
6909
7002
|
f.properties.dist = o, f.properties.bearing = s, i.features.push(f);
|
|
6910
7003
|
}
|
|
6911
7004
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
@@ -6946,7 +7039,7 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
|
|
|
6946
7039
|
}
|
|
6947
7040
|
});
|
|
6948
7041
|
let l;
|
|
6949
|
-
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Tol distance: <b>${
|
|
7042
|
+
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Tol distance: <b>${W.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)
|
|
6950
7043
|
this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
6951
7044
|
else {
|
|
6952
7045
|
const h = document.createElement("div");
|
|
@@ -6956,14 +7049,14 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
|
|
|
6956
7049
|
handleMove(a) {
|
|
6957
7050
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
6958
7051
|
let e = this.geojson.at(-1);
|
|
6959
|
-
e || (e =
|
|
7052
|
+
e || (e = C.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
6960
7053
|
const t = e.features.filter((r) => r.geometry.type === "Point");
|
|
6961
7054
|
t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
|
|
6962
7055
|
},
|
|
6963
7056
|
handleDblClick(a) {
|
|
6964
7057
|
a.preventDefault();
|
|
6965
7058
|
let e = this.geojson.at(-1);
|
|
6966
|
-
e.closed = !0, this.handleRender(e), e =
|
|
7059
|
+
e.closed = !0, this.handleRender(e), e = C.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
|
|
6967
7060
|
},
|
|
6968
7061
|
handleRender(a) {
|
|
6969
7062
|
var e;
|
|
@@ -7012,25 +7105,25 @@ const $e = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-73241fe7
|
|
|
7012
7105
|
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];
|
|
7013
7106
|
}
|
|
7014
7107
|
if (a.closed) {
|
|
7015
|
-
const s = o.at(-1), h = a.features.filter((c) => c.geometry.type === "LineString").at(-1),
|
|
7016
|
-
|
|
7108
|
+
const s = o.at(-1), h = a.features.filter((c) => c.geometry.type === "LineString").at(-1), p = document.createElement("div");
|
|
7109
|
+
p.className = "point-summary-marker", p.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(p).setOffset([60, 0]).setLngLat(s.geometry.coordinates).addTo(this.map);
|
|
7017
7110
|
}
|
|
7018
7111
|
}
|
|
7019
7112
|
},
|
|
7020
7113
|
handleClear(a, e = !0) {
|
|
7021
|
-
var o, s, l, h,
|
|
7114
|
+
var o, s, l, h, p, c, d, f, m;
|
|
7022
7115
|
const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
|
|
7023
|
-
(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), (
|
|
7116
|
+
(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), (p = this.closeMarkers[a.id]) == null || p.remove(), this.closeMarkers[a.id] = void 0, (c = this.pointMarkers[a.id]) == null || c.forEach((b) => {
|
|
7024
7117
|
b == null || b.remove();
|
|
7025
|
-
}), this.pointMarkers[a.id] = [], (
|
|
7118
|
+
}), this.pointMarkers[a.id] = [], (d = this.tipMarker) == null || d.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);
|
|
7026
7119
|
}
|
|
7027
7120
|
}
|
|
7028
7121
|
};
|
|
7029
|
-
function
|
|
7030
|
-
return
|
|
7122
|
+
function rr(a, e, t, r, i, o) {
|
|
7123
|
+
return L(), x("div");
|
|
7031
7124
|
}
|
|
7032
|
-
const
|
|
7033
|
-
const
|
|
7125
|
+
const or = /* @__PURE__ */ T(ir, [["render", rr]]);
|
|
7126
|
+
const sr = {
|
|
7034
7127
|
name: "IdmENC",
|
|
7035
7128
|
props: {
|
|
7036
7129
|
map: {
|
|
@@ -7045,7 +7138,7 @@ const Mi = {
|
|
|
7045
7138
|
},
|
|
7046
7139
|
bottom: {
|
|
7047
7140
|
type: String,
|
|
7048
|
-
default: "
|
|
7141
|
+
default: "280px"
|
|
7049
7142
|
},
|
|
7050
7143
|
token: {
|
|
7051
7144
|
type: String,
|
|
@@ -7061,8 +7154,8 @@ const Mi = {
|
|
|
7061
7154
|
emits: ["enc"],
|
|
7062
7155
|
data() {
|
|
7063
7156
|
return {
|
|
7064
|
-
helper:
|
|
7065
|
-
vendor: this.$attrs.permission &
|
|
7157
|
+
helper: Re,
|
|
7158
|
+
vendor: this.$attrs.permission & Re.LEVEL.Supper ? "hi" : "i4",
|
|
7066
7159
|
right: 10
|
|
7067
7160
|
};
|
|
7068
7161
|
},
|
|
@@ -7082,24 +7175,24 @@ const Mi = {
|
|
|
7082
7175
|
}
|
|
7083
7176
|
},
|
|
7084
7177
|
methods: {}
|
|
7085
|
-
},
|
|
7086
|
-
function
|
|
7178
|
+
}, nr = { key: 0 }, lr = { class: "bar-item" };
|
|
7179
|
+
function cr(a, e, t, r, i, o) {
|
|
7087
7180
|
const s = P("ElTooltip");
|
|
7088
|
-
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (
|
|
7181
|
+
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (L(), x("div", nr, [
|
|
7089
7182
|
n("div", {
|
|
7090
7183
|
class: "menu-bar-box",
|
|
7091
|
-
style:
|
|
7184
|
+
style: Z({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
7092
7185
|
}, [
|
|
7093
|
-
n("div",
|
|
7186
|
+
n("div", lr, [
|
|
7094
7187
|
k(s, {
|
|
7095
7188
|
placement: "left",
|
|
7096
7189
|
effect: "light",
|
|
7097
7190
|
content: "Hifleet",
|
|
7098
7191
|
"show-after": 1e3
|
|
7099
7192
|
}, {
|
|
7100
|
-
default:
|
|
7193
|
+
default: H(() => [
|
|
7101
7194
|
n("div", {
|
|
7102
|
-
class:
|
|
7195
|
+
class: D(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
7103
7196
|
onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
|
|
7104
7197
|
}, e[2] || (e[2] = [
|
|
7105
7198
|
n("span", { class: "iconfont" }, "HI", -1)
|
|
@@ -7113,9 +7206,9 @@ function Bi(a, e, t, r, i, o) {
|
|
|
7113
7206
|
content: "I4insight",
|
|
7114
7207
|
"show-after": 1e3
|
|
7115
7208
|
}, {
|
|
7116
|
-
default:
|
|
7209
|
+
default: H(() => [
|
|
7117
7210
|
n("div", {
|
|
7118
|
-
class:
|
|
7211
|
+
class: D(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
7119
7212
|
onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
|
|
7120
7213
|
}, e[3] || (e[3] = [
|
|
7121
7214
|
n("span", { class: "iconfont" }, "I4", -1)
|
|
@@ -7125,42 +7218,42 @@ function Bi(a, e, t, r, i, o) {
|
|
|
7125
7218
|
})
|
|
7126
7219
|
])
|
|
7127
7220
|
], 4)
|
|
7128
|
-
])) :
|
|
7221
|
+
])) : M("", !0);
|
|
7129
7222
|
}
|
|
7130
|
-
const
|
|
7131
|
-
const
|
|
7223
|
+
const hr = /* @__PURE__ */ T(sr, [["render", cr], ["__scopeId", "data-v-150235f7"]]);
|
|
7224
|
+
const dr = {
|
|
7132
7225
|
name: "IdmGLV2",
|
|
7133
7226
|
components: {
|
|
7134
|
-
IdmGlLayer:
|
|
7135
|
-
IdmWindBarb:
|
|
7136
|
-
IdmWindParticle:
|
|
7137
|
-
IdmCurrents:
|
|
7138
|
-
IdmCurrentParticle:
|
|
7139
|
-
IdmSigWave:
|
|
7140
|
-
IdmSwell:
|
|
7141
|
-
IdmPrmsl:
|
|
7227
|
+
IdmGlLayer: Rt,
|
|
7228
|
+
IdmWindBarb: Wt,
|
|
7229
|
+
IdmWindParticle: Nt,
|
|
7230
|
+
IdmCurrents: Ut,
|
|
7231
|
+
IdmCurrentParticle: Xt,
|
|
7232
|
+
IdmSigWave: qt,
|
|
7233
|
+
IdmSwell: ea,
|
|
7234
|
+
IdmPrmsl: ia,
|
|
7142
7235
|
// IdmIceEdge,
|
|
7143
|
-
IdmIceberg:
|
|
7236
|
+
IdmIceberg: sa,
|
|
7144
7237
|
IdmTropicals: Fe,
|
|
7145
|
-
IdmPrecip3h:
|
|
7146
|
-
IdmVisibility:
|
|
7147
|
-
IdmWaterTemp:
|
|
7148
|
-
IdmTemp:
|
|
7149
|
-
IdmArctic:
|
|
7150
|
-
IdmWarZone:
|
|
7151
|
-
IdmGmdssArea:
|
|
7152
|
-
IdmEcaZone:
|
|
7153
|
-
IdmAlertZone:
|
|
7154
|
-
IdmPort:
|
|
7155
|
-
IdmLoadLine:
|
|
7156
|
-
IdmTimezone:
|
|
7157
|
-
IdmVRA:
|
|
7158
|
-
IdmSpecialArea:
|
|
7159
|
-
IdmTerminator:
|
|
7238
|
+
IdmPrecip3h: Pa,
|
|
7239
|
+
IdmVisibility: Ra,
|
|
7240
|
+
IdmWaterTemp: Wa,
|
|
7241
|
+
IdmTemp: Ba,
|
|
7242
|
+
IdmArctic: Va,
|
|
7243
|
+
IdmWarZone: vi,
|
|
7244
|
+
IdmGmdssArea: xi,
|
|
7245
|
+
IdmEcaZone: ki,
|
|
7246
|
+
IdmAlertZone: Ii,
|
|
7247
|
+
IdmPort: Bi,
|
|
7248
|
+
IdmLoadLine: $i,
|
|
7249
|
+
IdmTimezone: Zi,
|
|
7250
|
+
IdmVRA: Xi,
|
|
7251
|
+
IdmSpecialArea: qi,
|
|
7252
|
+
IdmTerminator: er,
|
|
7160
7253
|
IdmLatLng: $e,
|
|
7161
|
-
IdmMeasure:
|
|
7162
|
-
IdmPoint:
|
|
7163
|
-
IdmENC:
|
|
7254
|
+
IdmMeasure: or,
|
|
7255
|
+
IdmPoint: fi,
|
|
7256
|
+
IdmENC: hr
|
|
7164
7257
|
},
|
|
7165
7258
|
props: {
|
|
7166
7259
|
map: {
|
|
@@ -7195,7 +7288,7 @@ const Oi = {
|
|
|
7195
7288
|
show3d: !1,
|
|
7196
7289
|
meteo: void 0,
|
|
7197
7290
|
source: "",
|
|
7198
|
-
gateway: "https://
|
|
7291
|
+
gateway: "https://cbe4test.idmwx.com",
|
|
7199
7292
|
mapProjection: "mercator",
|
|
7200
7293
|
zoom: 6,
|
|
7201
7294
|
viewport: void 0,
|
|
@@ -7207,15 +7300,14 @@ const Oi = {
|
|
|
7207
7300
|
showCurrentIsoband: !1,
|
|
7208
7301
|
showCurrentParticle: !1,
|
|
7209
7302
|
enc: "",
|
|
7210
|
-
// enc: 'i4',
|
|
7211
7303
|
defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
|
|
7212
|
-
helper: new
|
|
7304
|
+
helper: new Mt()
|
|
7213
7305
|
};
|
|
7214
7306
|
},
|
|
7215
7307
|
watch: {
|
|
7216
7308
|
ts: {
|
|
7217
7309
|
handler(a, e) {
|
|
7218
|
-
a && e &&
|
|
7310
|
+
a && e && G(a).utc().format("yyyy-MM-DD HH") !== G(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
7219
7311
|
this.handleDateChange({ tropicals: !1 });
|
|
7220
7312
|
});
|
|
7221
7313
|
},
|
|
@@ -7223,22 +7315,22 @@ const Oi = {
|
|
|
7223
7315
|
},
|
|
7224
7316
|
map: {
|
|
7225
7317
|
handler() {
|
|
7226
|
-
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new
|
|
7318
|
+
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Be(this.map), this.handleRampColorInitial());
|
|
7227
7319
|
},
|
|
7228
7320
|
immediate: !0
|
|
7229
7321
|
},
|
|
7230
7322
|
enc: {
|
|
7231
7323
|
handler(a, e) {
|
|
7232
|
-
var t, r, i, o, s, l, h,
|
|
7233
|
-
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"), (
|
|
7324
|
+
var t, r, i, o, s, l, h, p;
|
|
7325
|
+
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"), (p = (h = this.map) == null ? void 0 : h.getLayer("hi")) == null || p.setLayoutProperty("visibility", "none"));
|
|
7234
7326
|
}
|
|
7235
7327
|
},
|
|
7236
7328
|
activeWeatherLayers: {
|
|
7237
7329
|
handler() {
|
|
7238
|
-
var a, e, t, r, i, o, s, l, h,
|
|
7330
|
+
var a, e, t, r, i, o, s, l, h, p, c, d, f, m, b, y, u, v;
|
|
7239
7331
|
if (!this.map)
|
|
7240
7332
|
return !1;
|
|
7241
|
-
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((
|
|
7333
|
+
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((p = this.viewport) == null ? void 0 : p.particleLayer) && ((d = this.map) != null && d.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);
|
|
7242
7334
|
},
|
|
7243
7335
|
immediate: !0
|
|
7244
7336
|
}
|
|
@@ -7285,13 +7377,13 @@ const Oi = {
|
|
|
7285
7377
|
},
|
|
7286
7378
|
methods: {
|
|
7287
7379
|
async fetchWeatherLayers(a = { tropicals: !1 }) {
|
|
7288
|
-
var i, o, s, l, h,
|
|
7380
|
+
var i, o, s, l, h, p, c, d;
|
|
7289
7381
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
7290
7382
|
let t = 0, r = 0;
|
|
7291
7383
|
if (this.map) {
|
|
7292
7384
|
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}`;
|
|
7293
|
-
if (this.
|
|
7294
|
-
const y =
|
|
7385
|
+
if (this.particleFactor) {
|
|
7386
|
+
const y = Ee.WEATHER_LAYERS.find((u) => {
|
|
7295
7387
|
var v;
|
|
7296
7388
|
return ((v = u.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
|
|
7297
7389
|
});
|
|
@@ -7306,9 +7398,9 @@ const Oi = {
|
|
|
7306
7398
|
}
|
|
7307
7399
|
});
|
|
7308
7400
|
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) {
|
|
7309
|
-
const g = (l = v == null ? void 0 : v.data) == null ? void 0 : l.data,
|
|
7401
|
+
const g = (l = v == null ? void 0 : v.data) == null ? void 0 : l.data, _ = [];
|
|
7310
7402
|
for (const w in g)
|
|
7311
|
-
w === "ice-edge" && (g[w] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), w !== "tropicals" &&
|
|
7403
|
+
w === "ice-edge" && (g[w] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), w !== "tropicals" && _.push(
|
|
7312
7404
|
oe.get(g[w], {
|
|
7313
7405
|
headers: {
|
|
7314
7406
|
Authorization: this.token || this.defaultMeteoToken,
|
|
@@ -7319,13 +7411,13 @@ const Oi = {
|
|
|
7319
7411
|
console.log(`[${w}] fetch layer error: ${A}`);
|
|
7320
7412
|
})
|
|
7321
7413
|
);
|
|
7322
|
-
const z = await Promise.all(
|
|
7414
|
+
const z = await Promise.all(_);
|
|
7323
7415
|
this.weatherLayers = {}, z.map((w) => {
|
|
7324
|
-
var
|
|
7325
|
-
const A = ((
|
|
7326
|
-
|
|
7416
|
+
var O, N, F, X;
|
|
7417
|
+
const A = ((O = w == null ? void 0 : w.data) == null ? void 0 : O.data) || (w == null ? void 0 : w.data), j = (F = (N = w == null ? void 0 : w.config) == null ? void 0 : N.headers) == null ? void 0 : F.key;
|
|
7418
|
+
j && A && (this.weatherLayers[j] = {
|
|
7327
7419
|
raw: A,
|
|
7328
|
-
type: ((
|
|
7420
|
+
type: ((X = w == null ? void 0 : w.config) == null ? void 0 : X.responseType) === "blob" ? "image" : "json",
|
|
7329
7421
|
etime: this.ts
|
|
7330
7422
|
});
|
|
7331
7423
|
}), g.tropicals && oe.get(g.tropicals, {
|
|
@@ -7334,9 +7426,9 @@ const Oi = {
|
|
|
7334
7426
|
key: "tropicals"
|
|
7335
7427
|
}
|
|
7336
7428
|
}).then((w) => {
|
|
7337
|
-
var
|
|
7338
|
-
const A =
|
|
7339
|
-
this.weatherLayers[
|
|
7429
|
+
var O, N, F;
|
|
7430
|
+
const A = Ne.convert2Geojson(((O = w == null ? void 0 : w.data) == null ? void 0 : O.data) || (w == null ? void 0 : w.data)), j = (F = (N = w == null ? void 0 : w.config) == null ? void 0 : N.headers) == null ? void 0 : F.key;
|
|
7431
|
+
this.weatherLayers[j] = {
|
|
7340
7432
|
data: A,
|
|
7341
7433
|
active: !0,
|
|
7342
7434
|
cached: !1,
|
|
@@ -7347,20 +7439,20 @@ const Oi = {
|
|
|
7347
7439
|
});
|
|
7348
7440
|
}
|
|
7349
7441
|
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"]) {
|
|
7350
|
-
const g = (h = this.weatherLayers["swell-direction"]) == null ? void 0 : h.raw,
|
|
7442
|
+
const g = (h = this.weatherLayers["swell-direction"]) == null ? void 0 : h.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
|
|
7351
7443
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
7352
7444
|
type: "json",
|
|
7353
7445
|
direction: g,
|
|
7354
|
-
height: { raw:
|
|
7446
|
+
height: { raw: _ },
|
|
7355
7447
|
etime: this.ts
|
|
7356
7448
|
};
|
|
7357
7449
|
}
|
|
7358
7450
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
7359
|
-
const g = (c = this.weatherLayers["current-direction"]) == null ? void 0 : c.raw,
|
|
7451
|
+
const g = (c = this.weatherLayers["current-direction"]) == null ? void 0 : c.raw, _ = (d = this.weatherLayers["current-speed"]) == null ? void 0 : d.raw;
|
|
7360
7452
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
7361
7453
|
type: "json",
|
|
7362
7454
|
direction: g,
|
|
7363
|
-
speed: { raw:
|
|
7455
|
+
speed: { raw: _ },
|
|
7364
7456
|
etime: this.ts
|
|
7365
7457
|
};
|
|
7366
7458
|
}
|
|
@@ -7385,20 +7477,20 @@ const Oi = {
|
|
|
7385
7477
|
}
|
|
7386
7478
|
});
|
|
7387
7479
|
if (((e = l == null ? void 0 : l.data) == null ? void 0 : e.code) === 0) {
|
|
7388
|
-
const h = (t = l == null ? void 0 : l.data) == null ? void 0 : t.data,
|
|
7389
|
-
for (const
|
|
7390
|
-
|
|
7391
|
-
oe.get(h[
|
|
7480
|
+
const h = (t = l == null ? void 0 : l.data) == null ? void 0 : t.data, p = [];
|
|
7481
|
+
for (const d in h)
|
|
7482
|
+
p.push(
|
|
7483
|
+
oe.get(h[d], {
|
|
7392
7484
|
headers: {
|
|
7393
7485
|
Authorization: this.token || this.defaultMeteoToken,
|
|
7394
|
-
key:
|
|
7486
|
+
key: d
|
|
7395
7487
|
}
|
|
7396
7488
|
})
|
|
7397
7489
|
);
|
|
7398
|
-
const c = await Promise.all(
|
|
7399
|
-
this.otherLayers = { enc: s }, c.map((
|
|
7490
|
+
const c = await Promise.all(p);
|
|
7491
|
+
this.otherLayers = { enc: s }, c.map((d) => {
|
|
7400
7492
|
var b, y, u;
|
|
7401
|
-
const f = ((b =
|
|
7493
|
+
const f = ((b = d == null ? void 0 : d.data) == null ? void 0 : b.data) || (d == null ? void 0 : d.data), m = (u = (y = d == null ? void 0 : d.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
|
|
7402
7494
|
this.otherLayers[m] = f;
|
|
7403
7495
|
});
|
|
7404
7496
|
}
|
|
@@ -7409,19 +7501,19 @@ const Oi = {
|
|
|
7409
7501
|
}
|
|
7410
7502
|
});
|
|
7411
7503
|
if (((r = l == null ? void 0 : l.data) == null ? void 0 : r.code) === 0) {
|
|
7412
|
-
const h = (i = l == null ? void 0 : l.data) == null ? void 0 : i.data,
|
|
7413
|
-
for (const
|
|
7414
|
-
|
|
7415
|
-
oe.get(h[
|
|
7504
|
+
const h = (i = l == null ? void 0 : l.data) == null ? void 0 : i.data, p = [];
|
|
7505
|
+
for (const d in h)
|
|
7506
|
+
p.push(
|
|
7507
|
+
oe.get(h[d], {
|
|
7416
7508
|
headers: {
|
|
7417
7509
|
Authorization: this.token || this.defaultMeteoToken,
|
|
7418
|
-
key:
|
|
7510
|
+
key: d
|
|
7419
7511
|
}
|
|
7420
7512
|
})
|
|
7421
7513
|
);
|
|
7422
|
-
(await Promise.all(
|
|
7514
|
+
(await Promise.all(p)).map((d) => {
|
|
7423
7515
|
var b, y, u;
|
|
7424
|
-
const f = ((b =
|
|
7516
|
+
const f = ((b = d == null ? void 0 : d.data) == null ? void 0 : b.data) || (d == null ? void 0 : d.data), m = (u = (y = d == null ? void 0 : d.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
|
|
7425
7517
|
this.otherLayers[m] = f;
|
|
7426
7518
|
});
|
|
7427
7519
|
}
|
|
@@ -7436,14 +7528,14 @@ const Oi = {
|
|
|
7436
7528
|
handleRampColorState() {
|
|
7437
7529
|
var a;
|
|
7438
7530
|
if (this.showRampColor = !1, this.showWindParticle = !1, this.showCurrentParticle = !1, (a = this.particleFactor) != null && a.particle)
|
|
7439
|
-
this.showRampColor = !0, this.
|
|
7531
|
+
this.showRampColor = !0, this.particleFactor.key === "wind" && (this.showWindParticle = !0), this.particleFactor.key === "current" && (this.showCurrentParticle = !0);
|
|
7440
7532
|
else
|
|
7441
7533
|
for (const e of this.activeWeatherLayers)
|
|
7442
7534
|
["png", "jpg"].includes(e.type) && (this.showRampColor = !0);
|
|
7443
7535
|
this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
|
|
7444
7536
|
},
|
|
7445
7537
|
handleRampColorInitial() {
|
|
7446
|
-
var a, e, t, r, i, o, s, l, h,
|
|
7538
|
+
var a, e, t, r, i, o, s, l, h, p, c, d;
|
|
7447
7539
|
this.viewport.map.getSource((a = this.viewport) == null ? void 0 : a.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
7448
7540
|
type: "canvas",
|
|
7449
7541
|
canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
|
|
@@ -7464,11 +7556,11 @@ const Oi = {
|
|
|
7464
7556
|
canvas: (h = this.viewport) == null ? void 0 : h.particleCanvas,
|
|
7465
7557
|
animate: !0,
|
|
7466
7558
|
coordinates: this.viewport.getBoundLngLat()
|
|
7467
|
-
}), this.viewport.map.getLayer((
|
|
7559
|
+
}), this.viewport.map.getLayer((p = this.viewport) == null ? void 0 : p.particleLayer) || this.viewport.map.addLayer(
|
|
7468
7560
|
{
|
|
7469
7561
|
type: "raster",
|
|
7470
7562
|
id: (c = this.viewport) == null ? void 0 : c.particleLayer,
|
|
7471
|
-
source: (
|
|
7563
|
+
source: (d = this.viewport) == null ? void 0 : d.particleSource,
|
|
7472
7564
|
layout: {
|
|
7473
7565
|
visibility: "none"
|
|
7474
7566
|
}
|
|
@@ -7477,10 +7569,10 @@ const Oi = {
|
|
|
7477
7569
|
);
|
|
7478
7570
|
},
|
|
7479
7571
|
handleDragEndWithZoom4Json() {
|
|
7480
|
-
var
|
|
7572
|
+
var p, c, d, f;
|
|
7481
7573
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
7482
7574
|
let e = 0, t = 0;
|
|
7483
|
-
const r = (
|
|
7575
|
+
const r = (p = this.map) == null ? void 0 : p.getBounds(), i = this.map.getZoom(), o = W.convertToStdLng(r._sw.lng), s = W.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), h = Math.ceil(r._ne.lat);
|
|
7484
7576
|
for (const m in this.weatherLayers)
|
|
7485
7577
|
if (this.weatherLayers[m].active && this.weatherLayers[m].type === "json") {
|
|
7486
7578
|
this.weatherLayers[m].active = !1, this.weatherLayers[m].version = Math.random() + 1;
|
|
@@ -7490,21 +7582,21 @@ const Oi = {
|
|
|
7490
7582
|
for (const u in y)
|
|
7491
7583
|
if (u > l && u < h && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7492
7584
|
const v = y[u].lng;
|
|
7493
|
-
o > s ? v.forEach((g,
|
|
7585
|
+
o > s ? v.forEach((g, _) => {
|
|
7494
7586
|
var z;
|
|
7495
7587
|
if ((g >= o && g <= 180 || g >= -180 && g <= s) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7496
|
-
const w =
|
|
7497
|
-
val: y[u].val[
|
|
7498
|
-
spd: (z = y[u].spd) == null ? void 0 : z[
|
|
7588
|
+
const w = C.point([g, u], {
|
|
7589
|
+
val: y[u].val[_],
|
|
7590
|
+
spd: (z = y[u].spd) == null ? void 0 : z[_]
|
|
7499
7591
|
});
|
|
7500
7592
|
b.push(w);
|
|
7501
7593
|
}
|
|
7502
|
-
}) : v.forEach((g,
|
|
7594
|
+
}) : v.forEach((g, _) => {
|
|
7503
7595
|
var z;
|
|
7504
7596
|
if (g >= o && g <= s && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7505
|
-
const w =
|
|
7506
|
-
val: y[u].val[
|
|
7507
|
-
spd: (z = y[u].spd) == null ? void 0 : z[
|
|
7597
|
+
const w = C.point([g, u], {
|
|
7598
|
+
val: y[u].val[_],
|
|
7599
|
+
spd: (z = y[u].spd) == null ? void 0 : z[_]
|
|
7508
7600
|
});
|
|
7509
7601
|
b.push(w);
|
|
7510
7602
|
}
|
|
@@ -7515,15 +7607,15 @@ const Oi = {
|
|
|
7515
7607
|
if (u) {
|
|
7516
7608
|
if (!u.data) {
|
|
7517
7609
|
const v = [];
|
|
7518
|
-
for (const g in (
|
|
7519
|
-
const
|
|
7520
|
-
for (const z of
|
|
7610
|
+
for (const g in (d = u.raw) == null ? void 0 : d.LineString) {
|
|
7611
|
+
const _ = u.raw.LineString[g];
|
|
7612
|
+
for (const z of _)
|
|
7521
7613
|
v.push(
|
|
7522
|
-
|
|
7614
|
+
C.lineString(z, {
|
|
7523
7615
|
val: Number(g)
|
|
7524
7616
|
})
|
|
7525
7617
|
);
|
|
7526
|
-
u.data =
|
|
7618
|
+
u.data = C.featureCollection(v);
|
|
7527
7619
|
}
|
|
7528
7620
|
}
|
|
7529
7621
|
if (u.data) {
|
|
@@ -7538,16 +7630,16 @@ const Oi = {
|
|
|
7538
7630
|
if (u) {
|
|
7539
7631
|
if (!u.data) {
|
|
7540
7632
|
const g = [];
|
|
7541
|
-
for (const
|
|
7542
|
-
const z = u.raw.Polygon[
|
|
7633
|
+
for (const _ in (f = u.raw) == null ? void 0 : f.Polygon) {
|
|
7634
|
+
const z = u.raw.Polygon[_];
|
|
7543
7635
|
for (const w of z)
|
|
7544
7636
|
g.push(
|
|
7545
|
-
|
|
7546
|
-
val: Number(
|
|
7637
|
+
C.polygon(w, {
|
|
7638
|
+
val: Number(_)
|
|
7547
7639
|
})
|
|
7548
7640
|
);
|
|
7549
7641
|
}
|
|
7550
|
-
u.data =
|
|
7642
|
+
u.data = C.featureCollection(g);
|
|
7551
7643
|
}
|
|
7552
7644
|
const v = i < this.zoom ? u.data.features.filter((g) => g.properties.val > 0.5) : u.data.features;
|
|
7553
7645
|
b = b.concat(v), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("speed elapsed: ", t, ", total: ", e += t);
|
|
@@ -7558,19 +7650,19 @@ const Oi = {
|
|
|
7558
7650
|
for (const u in y)
|
|
7559
7651
|
if (u > l && u < h && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7560
7652
|
const v = y[u].lng;
|
|
7561
|
-
o > s ? v.forEach((g,
|
|
7653
|
+
o > s ? v.forEach((g, _) => {
|
|
7562
7654
|
if ((g >= o && g <= 180 || g >= -180 && g <= s) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7563
|
-
const z =
|
|
7564
|
-
val: y[u].val[
|
|
7565
|
-
spd: y[u].spd[
|
|
7655
|
+
const z = C.point([g, u], {
|
|
7656
|
+
val: y[u].val[_],
|
|
7657
|
+
spd: y[u].spd[_]
|
|
7566
7658
|
});
|
|
7567
7659
|
b.push(z);
|
|
7568
7660
|
}
|
|
7569
|
-
}) : v.forEach((g,
|
|
7661
|
+
}) : v.forEach((g, _) => {
|
|
7570
7662
|
if (g >= o && g <= s && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7571
|
-
const z =
|
|
7572
|
-
val: y[u].val[
|
|
7573
|
-
spd: y[u].spd[
|
|
7663
|
+
const z = C.point([g, u], {
|
|
7664
|
+
val: y[u].val[_],
|
|
7665
|
+
spd: y[u].spd[_]
|
|
7574
7666
|
});
|
|
7575
7667
|
b.push(z);
|
|
7576
7668
|
}
|
|
@@ -7586,18 +7678,18 @@ const Oi = {
|
|
|
7586
7678
|
const u = [];
|
|
7587
7679
|
for (const v in y.Polygon) {
|
|
7588
7680
|
const g = y.Polygon[v];
|
|
7589
|
-
for (const
|
|
7681
|
+
for (const _ of g)
|
|
7590
7682
|
u.push(
|
|
7591
|
-
|
|
7683
|
+
C.polygon(_, {
|
|
7592
7684
|
val: Number(v)
|
|
7593
7685
|
})
|
|
7594
7686
|
);
|
|
7595
7687
|
}
|
|
7596
7688
|
for (const v in y.Point) {
|
|
7597
7689
|
const g = y.Point[v];
|
|
7598
|
-
for (const
|
|
7690
|
+
for (const _ of g)
|
|
7599
7691
|
u.push(
|
|
7600
|
-
...
|
|
7692
|
+
...C.points(_, {
|
|
7601
7693
|
val: Number(v)
|
|
7602
7694
|
}).features
|
|
7603
7695
|
);
|
|
@@ -7615,19 +7707,19 @@ const Oi = {
|
|
|
7615
7707
|
const u = [];
|
|
7616
7708
|
for (const v in y.LineString) {
|
|
7617
7709
|
const g = y.LineString[v];
|
|
7618
|
-
for (const
|
|
7710
|
+
for (const _ of g)
|
|
7619
7711
|
u.push(
|
|
7620
|
-
|
|
7712
|
+
C.lineString(_, {
|
|
7621
7713
|
val: Number(v)
|
|
7622
7714
|
})
|
|
7623
7715
|
);
|
|
7624
7716
|
}
|
|
7625
7717
|
for (const v in y.Point)
|
|
7626
|
-
y.Point[v].lng.forEach((g,
|
|
7627
|
-
g =
|
|
7628
|
-
|
|
7629
|
-
val: y.Point[v].val[
|
|
7630
|
-
type: y.Point[v].type[
|
|
7718
|
+
y.Point[v].lng.forEach((g, _) => {
|
|
7719
|
+
g = W.convertToStdLng(g), u.push(
|
|
7720
|
+
C.point([g, v], {
|
|
7721
|
+
val: y.Point[v].val[_],
|
|
7722
|
+
type: y.Point[v].type[_]
|
|
7631
7723
|
})
|
|
7632
7724
|
);
|
|
7633
7725
|
});
|
|
@@ -7644,9 +7736,9 @@ const Oi = {
|
|
|
7644
7736
|
const u = [];
|
|
7645
7737
|
for (const v in y.LineString) {
|
|
7646
7738
|
const g = y.LineString[v];
|
|
7647
|
-
for (const
|
|
7739
|
+
for (const _ of g)
|
|
7648
7740
|
u.push(
|
|
7649
|
-
|
|
7741
|
+
C.lineString(_, {
|
|
7650
7742
|
val: Number(v)
|
|
7651
7743
|
})
|
|
7652
7744
|
);
|
|
@@ -7656,7 +7748,7 @@ const Oi = {
|
|
|
7656
7748
|
}
|
|
7657
7749
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e);
|
|
7658
7750
|
}
|
|
7659
|
-
console.log(m, " elapsed: ", t, ", total: ", e += t), b.length && (this.weatherLayers[m].data =
|
|
7751
|
+
console.log(m, " elapsed: ", t, ", total: ", e += t), b.length && (this.weatherLayers[m].data = C.featureCollection(b)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
|
|
7660
7752
|
}
|
|
7661
7753
|
},
|
|
7662
7754
|
handleDragEndWithZoom4Image() {
|
|
@@ -7664,14 +7756,14 @@ const Oi = {
|
|
|
7664
7756
|
this.weatherLayers[a].active && this.weatherLayers[a].type === "image" && (this.weatherLayers[a].active = !0, this.weatherLayers[a].version = Math.random() + 1);
|
|
7665
7757
|
},
|
|
7666
7758
|
handleBboxClip(a, e) {
|
|
7667
|
-
const t = [], r =
|
|
7759
|
+
const t = [], r = W.convertToStdLng(e._sw.lng), i = W.convertToStdLng(e._ne.lng);
|
|
7668
7760
|
return a.features.forEach((o) => {
|
|
7669
7761
|
if (o.geometry.type !== "Point")
|
|
7670
7762
|
if (r > i) {
|
|
7671
|
-
let s = [r, e._sw.lat, 180, e._ne.lat], l =
|
|
7672
|
-
l.geometry.coordinates.length && t.push(l), s = [-180, e._sw.lat, i, e._ne.lat], l =
|
|
7763
|
+
let s = [r, e._sw.lat, 180, e._ne.lat], l = C.bboxClip(o, s);
|
|
7764
|
+
l.geometry.coordinates.length && t.push(l), s = [-180, e._sw.lat, i, e._ne.lat], l = C.bboxClip(o, s), l.geometry.coordinates.length && t.push(l);
|
|
7673
7765
|
} else {
|
|
7674
|
-
const s = [r, e._sw.lat, i, e._ne.lat], l =
|
|
7766
|
+
const s = [r, e._sw.lat, i, e._ne.lat], l = C.bboxClip(o, s);
|
|
7675
7767
|
l.geometry.coordinates.length && t.push(l);
|
|
7676
7768
|
}
|
|
7677
7769
|
else
|
|
@@ -7689,18 +7781,14 @@ const Oi = {
|
|
|
7689
7781
|
this.handleBeforeLayerToggle();
|
|
7690
7782
|
},
|
|
7691
7783
|
handleBeforeLayerToggle() {
|
|
7692
|
-
var a, e, t, r, i, o, s, l, h,
|
|
7693
|
-
(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 || (
|
|
7784
|
+
var a, e, t, r, i, o, s, l, h, p, c, d, f;
|
|
7785
|
+
(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 || (p = this.otherLayers) != null && p.enc || (c = this.otherLayers) != null && c["voluntary-reporting-area"] || (d = this.otherLayers) != null && d["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
7694
7786
|
},
|
|
7695
7787
|
handleDateChange(a = { tropicals: !1 }) {
|
|
7696
7788
|
this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
|
|
7697
7789
|
},
|
|
7698
7790
|
handleWeatherLayerChange(a, e) {
|
|
7699
|
-
|
|
7700
|
-
setTimeout(() => {
|
|
7701
|
-
this.handleWeatherLayerChange(a, e);
|
|
7702
|
-
}, 500);
|
|
7703
|
-
else {
|
|
7791
|
+
this.showWindParticle = !1, this.showCurrentParticle = !1, this.map ? setTimeout(() => {
|
|
7704
7792
|
this.activeWeatherLayers = a;
|
|
7705
7793
|
const t = this.activeWeatherLayers.some(
|
|
7706
7794
|
(o) => {
|
|
@@ -7709,11 +7797,13 @@ const Oi = {
|
|
|
7709
7797
|
}
|
|
7710
7798
|
), r = this.activeWeatherLayers.some((o) => ["png", "jpg"].includes(o.type));
|
|
7711
7799
|
t && !r ? (this.activeWeatherLayers.forEach((o) => {
|
|
7712
|
-
|
|
7800
|
+
o.key === "wind" && o.particle && (this.particleFactor = o, this.showWindParticle = !0), o.key === "current" && o.particle && (this.particleFactor = o, this.showCurrentParticle = !0);
|
|
7713
7801
|
}), this.particleFactor.particle = !0) : r && this.particleFactor && (this.particleFactor.particle = !1);
|
|
7714
7802
|
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);
|
|
7715
7803
|
this.weatherWeight !== i || this.source !== e ? (this.source = e, this.weatherWeight = i, this.fetchWeatherLayers({ tropicals: !1 })) : this.handleWeatherLayerToggle();
|
|
7716
|
-
}
|
|
7804
|
+
}, 100) : setTimeout(() => {
|
|
7805
|
+
this.handleWeatherLayerChange(a, e);
|
|
7806
|
+
}, 500);
|
|
7717
7807
|
},
|
|
7718
7808
|
handleOtherLayerChange(a) {
|
|
7719
7809
|
if (!this.map)
|
|
@@ -7726,26 +7816,25 @@ const Oi = {
|
|
|
7726
7816
|
}
|
|
7727
7817
|
},
|
|
7728
7818
|
async handlePointChange(a) {
|
|
7729
|
-
|
|
7819
|
+
var i, o;
|
|
7820
|
+
const e = this.ts ? G(this.ts) : G(), t = {
|
|
7730
7821
|
lat: a.lat,
|
|
7731
7822
|
lng: a.lng,
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
}, r = await oe.get(`${this.gateway}/api/arc/meteo/query`, {
|
|
7736
|
-
params: t,
|
|
7823
|
+
datetime: e.utc().format(),
|
|
7824
|
+
forecastDays: 7
|
|
7825
|
+
}, r = await oe.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, t, {
|
|
7737
7826
|
headers: {
|
|
7738
7827
|
Authorization: this.token || this.defaultMeteoToken
|
|
7739
7828
|
}
|
|
7740
7829
|
});
|
|
7741
|
-
(r == null ? void 0 : r.
|
|
7742
|
-
...r == null ? void 0 : r.data,
|
|
7830
|
+
((i = r == null ? void 0 : r.data) == null ? void 0 : i.code) === 0 && (this.meteo = {
|
|
7831
|
+
...(o = r == null ? void 0 : r.data) == null ? void 0 : o.data,
|
|
7743
7832
|
...a
|
|
7744
7833
|
});
|
|
7745
7834
|
},
|
|
7746
7835
|
handle3dToggle(a) {
|
|
7747
|
-
var e, t, r, i, o, s, l, h,
|
|
7748
|
-
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((
|
|
7836
|
+
var e, t, r, i, o, s, l, h, p, c, d, f, m, b, y, u, v, g, _, z;
|
|
7837
|
+
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)));
|
|
7749
7838
|
},
|
|
7750
7839
|
handleParticle(a) {
|
|
7751
7840
|
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.forEach((r) => {
|
|
@@ -7761,15 +7850,15 @@ const Oi = {
|
|
|
7761
7850
|
this.$emit("toggleVersion", Math.random());
|
|
7762
7851
|
}
|
|
7763
7852
|
}
|
|
7764
|
-
},
|
|
7853
|
+
}, pr = {
|
|
7765
7854
|
key: 0,
|
|
7766
7855
|
className: "map-gl-home"
|
|
7767
7856
|
};
|
|
7768
|
-
function
|
|
7769
|
-
var te,
|
|
7770
|
-
const s = P("IdmGlLayer"), l = P("IdmENC"), h = P("IdmSigWave"),
|
|
7771
|
-
return t.map ? (
|
|
7772
|
-
k(s,
|
|
7857
|
+
function mr(a, e, t, r, i, o) {
|
|
7858
|
+
var te, J, Y, me, q, I, $, ue, Q, ye, ae, ie, re, be, ve, we, Le, xe, _e, Ce, ke, Se, Pe, ze, Te, je;
|
|
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"), A = P("IdmWarZone"), j = P("IdmGmdssArea"), O = P("IdmEcaZone"), N = P("IdmAlertZone"), F = P("IdmPort"), X = P("IdmLoadLine"), se = P("IdmTimezone"), ne = P("IdmVRA"), le = P("IdmSpecialArea"), ce = P("IdmTerminator"), he = P("IdmLatLng"), de = P("IdmMeasure"), pe = P("IdmPoint");
|
|
7860
|
+
return t.map ? (L(), x("div", pr, [
|
|
7861
|
+
k(s, R({
|
|
7773
7862
|
ref: "layer",
|
|
7774
7863
|
map: t.map,
|
|
7775
7864
|
"toggle-version": t.toggleVersion,
|
|
@@ -7781,70 +7870,74 @@ function $i(a, e, t, r, i, o) {
|
|
|
7781
7870
|
}, a.$attrs, {
|
|
7782
7871
|
onWeather: o.handleWeatherLayerChange,
|
|
7783
7872
|
onOther: o.handleOtherLayerChange,
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7873
|
+
onToggleWindParticle: e[0] || (e[0] = (V) => i.showWindParticle = V),
|
|
7874
|
+
onToggleWindFeather: e[1] || (e[1] = (V) => i.showWindFeather = V),
|
|
7875
|
+
onToggleCurrentParticle: e[2] || (e[2] = (V) => i.showCurrentParticle = V),
|
|
7876
|
+
onToggleCurrentIsoband: e[3] || (e[3] = (V) => i.showCurrentIsoband = V),
|
|
7877
|
+
onCoordinate: e[4] || (e[4] = (V) => i.showCoord = V),
|
|
7878
|
+
onMeasure: e[5] || (e[5] = (V) => i.showMeasure = V),
|
|
7879
|
+
onPoint: e[6] || (e[6] = (V) => i.showPoint = V),
|
|
7787
7880
|
on3d: o.handle3dToggle,
|
|
7788
7881
|
onHandleToggleVersion: o.handleToggleVersion
|
|
7789
7882
|
}), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
7790
|
-
k(l,
|
|
7883
|
+
k(l, R({
|
|
7791
7884
|
map: t.map,
|
|
7792
7885
|
token: t.token,
|
|
7793
7886
|
enabled: (te = i.otherLayers) == null ? void 0 : te.enc,
|
|
7794
7887
|
"toggle-version": t.toggleVersion
|
|
7795
7888
|
}, a.$attrs, {
|
|
7796
|
-
onEnc: e[
|
|
7889
|
+
onEnc: e[7] || (e[7] = (V) => i.enc = V)
|
|
7797
7890
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
7798
|
-
k(h,
|
|
7891
|
+
k(h, R({
|
|
7799
7892
|
map: t.map,
|
|
7800
|
-
"sig-wave": (
|
|
7893
|
+
"sig-wave": (J = i.weatherLayers) == null ? void 0 : J["sig-wave-height"],
|
|
7801
7894
|
"before-layer": t.beforeLayer,
|
|
7802
7895
|
activeWeatherLayers: i.activeWeatherLayers
|
|
7803
7896
|
}, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "activeWeatherLayers"]),
|
|
7804
|
-
k(
|
|
7897
|
+
k(p, R({
|
|
7805
7898
|
map: t.map,
|
|
7806
7899
|
swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
|
|
7807
7900
|
"before-layer": t.beforeLayer,
|
|
7808
7901
|
activeWeatherLayers: i.activeWeatherLayers
|
|
7809
7902
|
}, a.$attrs), null, 16, ["map", "swell", "before-layer", "activeWeatherLayers"]),
|
|
7810
|
-
k(c,
|
|
7903
|
+
k(c, R({
|
|
7811
7904
|
map: t.map,
|
|
7812
7905
|
prmsl: (me = i.weatherLayers) == null ? void 0 : me.prmsl,
|
|
7813
7906
|
"before-layer": t.beforeLayer,
|
|
7814
7907
|
"active-weather-layers": i.activeWeatherLayers
|
|
7815
7908
|
}, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
7816
|
-
k(
|
|
7909
|
+
k(d, R({
|
|
7817
7910
|
map: t.map,
|
|
7818
7911
|
iceberg: (q = i.weatherLayers) == null ? void 0 : q.iceberg,
|
|
7819
7912
|
"before-layer": t.beforeLayer
|
|
7820
7913
|
}, a.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
7821
|
-
k(f,
|
|
7914
|
+
k(f, R({
|
|
7822
7915
|
map: t.map,
|
|
7823
7916
|
date: t.ts,
|
|
7824
|
-
tropicals: (
|
|
7917
|
+
tropicals: (I = i.weatherLayers) == null ? void 0 : I.tropicals,
|
|
7825
7918
|
"before-layer": t.beforeLayer
|
|
7826
7919
|
}, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
7827
|
-
k(m,
|
|
7920
|
+
k(m, R({
|
|
7828
7921
|
map: t.map,
|
|
7829
7922
|
"map-projection": i.mapProjection,
|
|
7830
7923
|
current: ($ = i.weatherLayers) == null ? void 0 : $.current,
|
|
7831
7924
|
"before-layer": t.beforeLayer,
|
|
7832
|
-
|
|
7925
|
+
showCurrentIsoband: i.showCurrentIsoband,
|
|
7926
|
+
showCurrentParticle: i.showCurrentParticle,
|
|
7833
7927
|
"margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
|
|
7834
7928
|
"toggle-version": t.toggleVersion,
|
|
7835
7929
|
"weather-layers": i.weatherLayers
|
|
7836
7930
|
}, a.$attrs, {
|
|
7837
|
-
onShowCurrentIsoband: e[4] || (e[4] = (J) => i.showCurrentIsoband = J),
|
|
7838
7931
|
onParticle: o.handleParticle,
|
|
7839
7932
|
onHandleToggleVersion: o.handleToggleVersion
|
|
7840
|
-
}), null, 16, ["map", "map-projection", "current", "before-layer", "
|
|
7841
|
-
k(b,
|
|
7933
|
+
}), null, 16, ["map", "map-projection", "current", "before-layer", "showCurrentIsoband", "showCurrentParticle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
7934
|
+
k(b, R({
|
|
7842
7935
|
viewport: i.viewport,
|
|
7843
7936
|
factor: (ue = i.weatherLayers) == null ? void 0 : ue["current-particle"],
|
|
7844
7937
|
"before-layer": t.beforeLayer,
|
|
7845
7938
|
"toggle-version": t.toggleVersion
|
|
7846
7939
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7847
|
-
k(y,
|
|
7940
|
+
k(y, R({
|
|
7848
7941
|
ref: "windBarb",
|
|
7849
7942
|
map: t.map,
|
|
7850
7943
|
"map-projection": i.mapProjection,
|
|
@@ -7852,127 +7945,127 @@ function $i(a, e, t, r, i, o) {
|
|
|
7852
7945
|
current: (ye = i.weatherLayers) == null ? void 0 : ye.current,
|
|
7853
7946
|
"before-layer": t.beforeLayer,
|
|
7854
7947
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
7855
|
-
|
|
7948
|
+
showWindFeather: i.showWindFeather,
|
|
7949
|
+
showWindParticle: i.showWindParticle
|
|
7856
7950
|
}, a.$attrs, {
|
|
7857
7951
|
"toggle-version": t.toggleVersion,
|
|
7858
7952
|
"weather-layers": i.weatherLayers,
|
|
7859
|
-
onParticle: o.handleParticle
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
k(u, I({
|
|
7953
|
+
onParticle: o.handleParticle
|
|
7954
|
+
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "showWindFeather", "showWindParticle", "toggle-version", "weather-layers", "onParticle"]),
|
|
7955
|
+
k(u, R({
|
|
7863
7956
|
viewport: i.viewport,
|
|
7864
7957
|
factor: (ae = i.weatherLayers) == null ? void 0 : ae["wind-particle"],
|
|
7865
7958
|
"before-layer": t.beforeLayer,
|
|
7866
7959
|
"toggle-version": t.toggleVersion
|
|
7867
7960
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7868
|
-
k(v,
|
|
7961
|
+
k(v, R({
|
|
7869
7962
|
viewport: i.viewport,
|
|
7870
7963
|
factor: (ie = i.weatherLayers) == null ? void 0 : ie.precip3h,
|
|
7871
7964
|
"before-layer": t.beforeLayer,
|
|
7872
7965
|
"toggle-version": t.toggleVersion
|
|
7873
7966
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7874
|
-
k(g,
|
|
7967
|
+
k(g, R({
|
|
7875
7968
|
viewport: i.viewport,
|
|
7876
7969
|
factor: (re = i.weatherLayers) == null ? void 0 : re.visibility,
|
|
7877
7970
|
"before-layer": t.beforeLayer,
|
|
7878
7971
|
"toggle-version": t.toggleVersion
|
|
7879
7972
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7880
|
-
k(
|
|
7973
|
+
k(_, R({
|
|
7881
7974
|
viewport: i.viewport,
|
|
7882
7975
|
factor: (be = i.weatherLayers) == null ? void 0 : be["water-temp"],
|
|
7883
7976
|
"before-layer": t.beforeLayer,
|
|
7884
7977
|
"toggle-version": t.toggleVersion
|
|
7885
7978
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7886
|
-
k(z,
|
|
7979
|
+
k(z, R({
|
|
7887
7980
|
viewport: i.viewport,
|
|
7888
7981
|
factor: (ve = i.weatherLayers) == null ? void 0 : ve.temp,
|
|
7889
7982
|
"before-layer": t.beforeLayer,
|
|
7890
7983
|
"toggle-version": t.toggleVersion
|
|
7891
7984
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7892
|
-
k(w,
|
|
7985
|
+
k(w, R({
|
|
7893
7986
|
viewport: i.viewport,
|
|
7894
7987
|
factor: (we = i.weatherLayers) == null ? void 0 : we.arctic,
|
|
7895
7988
|
"before-layer": t.beforeLayer,
|
|
7896
7989
|
"toggle-version": t.toggleVersion
|
|
7897
7990
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7898
|
-
k(A,
|
|
7991
|
+
k(A, R({
|
|
7899
7992
|
map: t.map,
|
|
7900
7993
|
zone: (Le = i.otherLayers) == null ? void 0 : Le["war-zones"],
|
|
7901
7994
|
"before-layer": t.beforeLayer
|
|
7902
7995
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7903
|
-
k(
|
|
7996
|
+
k(j, R({
|
|
7904
7997
|
map: t.map,
|
|
7905
7998
|
area: (xe = i.otherLayers) == null ? void 0 : xe["gmdss-areas"],
|
|
7906
7999
|
"before-layer": t.beforeLayer
|
|
7907
8000
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7908
|
-
k(
|
|
8001
|
+
k(O, R({
|
|
7909
8002
|
map: t.map,
|
|
7910
|
-
zone: (
|
|
8003
|
+
zone: (_e = i.otherLayers) == null ? void 0 : _e["eca-zones"],
|
|
7911
8004
|
"before-layer": t.beforeLayer
|
|
7912
8005
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7913
|
-
k(
|
|
8006
|
+
k(N, R({
|
|
7914
8007
|
map: t.map,
|
|
7915
|
-
zone: (
|
|
8008
|
+
zone: (Ce = i.otherLayers) == null ? void 0 : Ce["alert-zones"],
|
|
7916
8009
|
"before-layer": t.beforeLayer
|
|
7917
8010
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7918
|
-
k(F,
|
|
8011
|
+
k(F, R({
|
|
7919
8012
|
map: t.map,
|
|
7920
|
-
port: (
|
|
8013
|
+
port: (ke = i.otherLayers) == null ? void 0 : ke.ports,
|
|
7921
8014
|
"before-layer": t.beforeLayer
|
|
7922
8015
|
}, a.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
7923
|
-
k(
|
|
8016
|
+
k(X, R({
|
|
7924
8017
|
map: t.map,
|
|
7925
|
-
line: (
|
|
8018
|
+
line: (Se = i.otherLayers) == null ? void 0 : Se["load-lines"],
|
|
7926
8019
|
"before-layer": t.beforeLayer
|
|
7927
8020
|
}, a.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
7928
|
-
k(se,
|
|
8021
|
+
k(se, R({
|
|
7929
8022
|
map: t.map,
|
|
7930
|
-
zone: (
|
|
8023
|
+
zone: (Pe = i.otherLayers) == null ? void 0 : Pe["time-zones"],
|
|
7931
8024
|
"before-layer": t.beforeLayer
|
|
7932
8025
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7933
|
-
k(ne,
|
|
8026
|
+
k(ne, R({
|
|
7934
8027
|
map: t.map,
|
|
7935
|
-
area: (
|
|
8028
|
+
area: (ze = i.otherLayers) == null ? void 0 : ze["voluntary-reporting-area"],
|
|
7936
8029
|
"before-layer": t.beforeLayer
|
|
7937
8030
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7938
|
-
k(le,
|
|
8031
|
+
k(le, R({
|
|
7939
8032
|
map: t.map,
|
|
7940
|
-
area: (
|
|
8033
|
+
area: (Te = i.otherLayers) == null ? void 0 : Te["special-area"],
|
|
7941
8034
|
"before-layer": t.beforeLayer
|
|
7942
8035
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7943
|
-
k(ce,
|
|
8036
|
+
k(ce, R({
|
|
7944
8037
|
map: t.map,
|
|
7945
|
-
area: (
|
|
8038
|
+
area: (je = i.otherLayers) == null ? void 0 : je["day-night"]
|
|
7946
8039
|
}, a.$attrs), null, 16, ["map", "area"]),
|
|
7947
|
-
k(he,
|
|
8040
|
+
k(he, R({
|
|
7948
8041
|
map: t.map,
|
|
7949
8042
|
show: i.showCoord,
|
|
7950
8043
|
"toggle-version": t.toggleVersion
|
|
7951
8044
|
}, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
7952
|
-
k(de,
|
|
8045
|
+
k(de, R({
|
|
7953
8046
|
map: t.map,
|
|
7954
8047
|
show: i.showMeasure
|
|
7955
8048
|
}, a.$attrs), null, 16, ["map", "show"]),
|
|
7956
|
-
k(pe,
|
|
8049
|
+
k(pe, R({
|
|
7957
8050
|
map: t.map,
|
|
7958
8051
|
show: i.showPoint,
|
|
7959
8052
|
meteo: i.meteo
|
|
7960
8053
|
}, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
|
|
7961
|
-
])) :
|
|
8054
|
+
])) : M("", !0);
|
|
7962
8055
|
}
|
|
7963
|
-
const
|
|
8056
|
+
const ur = /* @__PURE__ */ T(dr, [["render", mr]]), xr = {
|
|
7964
8057
|
install(a) {
|
|
7965
|
-
a.component("MapboxGL",
|
|
8058
|
+
a.component("MapboxGL", ur), a.component("TropicalGL", Fe), a.component("LatLngGL", $e);
|
|
7966
8059
|
}
|
|
7967
8060
|
};
|
|
7968
8061
|
export {
|
|
7969
8062
|
$e as LatLngGL,
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
8063
|
+
ur as MapboxGL,
|
|
8064
|
+
xr as MapboxGLPlugin,
|
|
8065
|
+
Mt as MapboxHelper,
|
|
8066
|
+
U as ParticleSchema,
|
|
7974
8067
|
Fe as TropicalGL,
|
|
7975
|
-
|
|
8068
|
+
Be as Viewport,
|
|
7976
8069
|
fe as WebGL,
|
|
7977
|
-
|
|
8070
|
+
B as WebGLSchema
|
|
7978
8071
|
};
|