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