@idmwx/idmui-gl4 1.1.8 → 1.2.0
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 +541 -533
- package/dist/index.umd.cjs +8 -11
- package/dist/mapbox/src/components/other/alertZone.vue.d.ts +3 -1
- package/dist/mapbox/src/components/other/portDetail.vue.d.ts +2 -2
- package/dist/mapbox/src/components/spot/index.vue.d.ts +3 -4
- package/dist/mapbox/src/components/tropical/index.vue.d.ts +4 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var $a = (t, e, o) => e in t ? Xa(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var me = (t, e, o) => ($a(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Se from "axios";
|
|
5
5
|
import { useTheme as ze } from "vuetify";
|
|
6
|
-
import { openBlock as y, createElementBlock as S, resolveComponent as x,
|
|
6
|
+
import { openBlock as y, createElementBlock as S, resolveComponent as x, createBlock as D, withCtx as u, createVNode as d, withModifiers as ro, createElementVNode as l, createCommentVNode as O, normalizeClass as We, toDisplayString as h, createTextVNode as N, Fragment as be, renderList as we, withDirectives as Ne, vShow as Fe, mergeProps as B, normalizeStyle as ie } from "vue";
|
|
7
7
|
import ve from "mapbox-gl";
|
|
8
8
|
import { LngLatHelper as G, TropicalHelper as Va, LaneHelper as Ue } from "@idm-plugin/geo";
|
|
9
9
|
import M from "moment";
|
|
@@ -366,31 +366,34 @@ const mi = {
|
|
|
366
366
|
lineLayer: "alert-zone-line-layer",
|
|
367
367
|
lineLabelLayer: "alert-zone-line-label-layer",
|
|
368
368
|
pointLayer: "alert-zone-point-layer",
|
|
369
|
-
|
|
370
|
-
form: {}
|
|
369
|
+
showMakerInfo: !1,
|
|
370
|
+
form: {},
|
|
371
|
+
marker: null
|
|
371
372
|
};
|
|
372
373
|
},
|
|
373
374
|
watch: {
|
|
374
375
|
zone: {
|
|
375
376
|
handler() {
|
|
376
377
|
var t, e, o, i, a, r;
|
|
377
|
-
this.zone ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.pointLayer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.pointLayer], this.handleLeave)) : (this.handleClear(), (i = this.map) == null || i.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (a = this.map) == null || a.off("mousemove", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleHover), (r = this.map) == null || r.off("mouseleave", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleLeave));
|
|
378
|
+
this.zone ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleLeave)) : (this.handleClear(), (i = this.map) == null || i.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (a = this.map) == null || a.off("mousemove", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleHover), (r = this.map) == null || r.off("mouseleave", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleLeave));
|
|
378
379
|
},
|
|
379
380
|
immediate: !0
|
|
380
381
|
}
|
|
381
382
|
},
|
|
382
383
|
methods: {
|
|
383
384
|
handleClick(t) {
|
|
384
|
-
var i;
|
|
385
|
-
const e = t.features[0], o = (i = this.zone) == null ? void 0 : i.features.filter((
|
|
386
|
-
var
|
|
387
|
-
return
|
|
385
|
+
var i, a, r;
|
|
386
|
+
const e = t.features[0], o = (a = (i = this.zone) == null ? void 0 : i.features) == null ? void 0 : a.filter((s) => {
|
|
387
|
+
var c, n;
|
|
388
|
+
return ((c = s.properties) == null ? void 0 : c.id) === ((n = e == null ? void 0 : e.properties) == null ? void 0 : n.id);
|
|
388
389
|
})[0];
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
const
|
|
392
|
-
|
|
393
|
-
|
|
390
|
+
o && (this.showMakerInfo = !0, this.form = { ...o.properties }, (r = this.marker) == null || r.remove(), this.$nextTick(() => {
|
|
391
|
+
var n, g;
|
|
392
|
+
const s = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (g = s == null ? void 0 : s.children[1]) == null ? void 0 : g.children[0];
|
|
393
|
+
c && (c.onclick = () => {
|
|
394
|
+
this.handleRemoveMarker();
|
|
395
|
+
}), this.marker = new ve.Marker(s).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([230, 0]).addTo(this.map);
|
|
396
|
+
}));
|
|
394
397
|
},
|
|
395
398
|
handleRender() {
|
|
396
399
|
var t;
|
|
@@ -481,12 +484,17 @@ const mi = {
|
|
|
481
484
|
},
|
|
482
485
|
handleLeave() {
|
|
483
486
|
this.map.getCanvas().style.cursor = "grab";
|
|
487
|
+
},
|
|
488
|
+
handleRemoveMarker() {
|
|
489
|
+
var t;
|
|
490
|
+
this.showMakerInfo = !1, (t = this.marker) == null || t.remove();
|
|
484
491
|
}
|
|
485
492
|
}
|
|
486
493
|
}, di = ["innerHTML"];
|
|
487
494
|
function hi(t, e, o, i, a, r) {
|
|
488
495
|
const s = x("VBtn"), c = x("v-card-text"), n = x("v-card");
|
|
489
|
-
return
|
|
496
|
+
return a.showMakerInfo ? (y(), D(n, {
|
|
497
|
+
key: 0,
|
|
490
498
|
class: "scroll",
|
|
491
499
|
id: "idm-gl4-zone-info"
|
|
492
500
|
}, {
|
|
@@ -500,14 +508,14 @@ function hi(t, e, o, i, a, r) {
|
|
|
500
508
|
density: "compact",
|
|
501
509
|
variant: "plain",
|
|
502
510
|
class: "close",
|
|
503
|
-
onClick:
|
|
511
|
+
onClick: ro(r.handleRemoveMarker, ["stop"])
|
|
504
512
|
}, {
|
|
505
|
-
default: u(() => e[
|
|
513
|
+
default: u(() => e[0] || (e[0] = [
|
|
506
514
|
l("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
|
|
507
515
|
])),
|
|
508
516
|
_: 1,
|
|
509
|
-
__: [
|
|
510
|
-
}),
|
|
517
|
+
__: [0]
|
|
518
|
+
}, 8, ["onClick"]),
|
|
511
519
|
l("div", {
|
|
512
520
|
class: "rich-context",
|
|
513
521
|
innerHTML: (g = a.form) == null ? void 0 : g.name
|
|
@@ -518,9 +526,7 @@ function hi(t, e, o, i, a, r) {
|
|
|
518
526
|
})
|
|
519
527
|
]),
|
|
520
528
|
_: 1
|
|
521
|
-
}
|
|
522
|
-
[Fe, a.showZone]
|
|
523
|
-
]);
|
|
529
|
+
})) : O("", !0);
|
|
524
530
|
}
|
|
525
531
|
const pi = /* @__PURE__ */ Y(mi, [["render", hi]]);
|
|
526
532
|
const ui = {
|
|
@@ -1349,8 +1355,6 @@ const ui = {
|
|
|
1349
1355
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1350
1356
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1351
1357
|
],
|
|
1352
|
-
tideData: {},
|
|
1353
|
-
tideTableData: [],
|
|
1354
1358
|
currentIndex: 0,
|
|
1355
1359
|
loading: !1,
|
|
1356
1360
|
interval: 6,
|
|
@@ -1488,14 +1492,21 @@ const ui = {
|
|
|
1488
1492
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1489
1493
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1490
1494
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1491
|
-
var c, n, g, p, f, w,
|
|
1495
|
+
var c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe;
|
|
1492
1496
|
let r = {};
|
|
1493
1497
|
const s = ((c = oo.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
|
|
1494
|
-
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((
|
|
1498
|
+
r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((P = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : P.sum, 0) ?? "-", r.visibility = this.computeRoundPrecision((z = s == null ? void 0 : s.weather) == null ? void 0 : z.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((b = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : b.kts, 1) ?? "-", r.windDir = (I = (A = s == null ? void 0 : s.weather) == null ? void 0 : A.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((v = (C = s == null ? void 0 : s.weather) == null ? void 0 : C.wind) == null ? void 0 : v.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((T = (_ = s == null ? void 0 : s.weather) == null ? void 0 : _.wind) == null ? void 0 : T.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (k = s == null ? void 0 : s.wave) == null ? void 0 : k.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (K = (V = s == null ? void 0 : s.wave) == null ? void 0 : V.sig) == null ? void 0 : K.direction, r.sigwavePeriod = this.computeRoundPrecision((Z = (X = s == null ? void 0 : s.wave) == null ? void 0 : X.sig) == null ? void 0 : Z.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision(($ = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : $.height, 1) ?? "-", r.swellDir = (ue = (ae = s == null ? void 0 : s.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ce = s == null ? void 0 : s.current) == null ? void 0 : ce.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
1495
1499
|
});
|
|
1496
1500
|
},
|
|
1497
1501
|
handleTide() {
|
|
1498
|
-
this.showTideDetail = !0, this.showPortDetail = !1, this
|
|
1502
|
+
this.showTideDetail = !0, this.showPortDetail = !1, this.$nextTick(() => {
|
|
1503
|
+
Object.keys(this.tideData).length === 0 && this.fetchTidesData();
|
|
1504
|
+
const t = this.$refs.scrollDom;
|
|
1505
|
+
t && t.scrollTo({
|
|
1506
|
+
top: t.scrollHeight - t.clientHeight
|
|
1507
|
+
// behavior: 'smooth'
|
|
1508
|
+
});
|
|
1509
|
+
});
|
|
1499
1510
|
},
|
|
1500
1511
|
async fetchTidesData() {
|
|
1501
1512
|
var o, i, a, r;
|
|
@@ -1525,14 +1536,7 @@ const ui = {
|
|
|
1525
1536
|
height: []
|
|
1526
1537
|
}, (t = this.tideTableData) == null || t.forEach((e) => {
|
|
1527
1538
|
this.xDate.push(this.computeHourLT(e.date, this.port)), this.echartData.height.push([this.computeHourLT(e.date, this.port), e.height ?? void 0, "m"]);
|
|
1528
|
-
}), this
|
|
1529
|
-
this.initEchart();
|
|
1530
|
-
const e = this.$refs.scrollDom;
|
|
1531
|
-
e && e.scrollTo({
|
|
1532
|
-
top: e.scrollHeight - e.clientHeight
|
|
1533
|
-
// behavior: 'smooth'
|
|
1534
|
-
});
|
|
1535
|
-
});
|
|
1539
|
+
}), this.initEchart();
|
|
1536
1540
|
},
|
|
1537
1541
|
initEchart() {
|
|
1538
1542
|
io.dispose(this.$refs.tideEchart.style);
|
|
@@ -1677,18 +1681,18 @@ const ui = {
|
|
|
1677
1681
|
}, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
|
|
1678
1682
|
function yr(t, e, o, i, a, r) {
|
|
1679
1683
|
const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), g = x("VIcon"), p = x("VBtnToggle"), f = x("VCard");
|
|
1680
|
-
return y(),
|
|
1684
|
+
return y(), D(f, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
|
|
1681
1685
|
default: u(() => {
|
|
1682
|
-
var w,
|
|
1686
|
+
var w, P, z, L;
|
|
1683
1687
|
return [
|
|
1684
1688
|
d(c, { class: "w-100" }, {
|
|
1685
1689
|
default: u(() => {
|
|
1686
|
-
var b,
|
|
1690
|
+
var b, A, I, C, v;
|
|
1687
1691
|
return [
|
|
1688
1692
|
l("div", gi, [
|
|
1689
1693
|
l("div", fi, [
|
|
1690
1694
|
l("div", {
|
|
1691
|
-
class: We(["fi mr-2 rounded elevation-4", `fi-${(b = o.port) != null && b.cntLoCode ? (I = (
|
|
1695
|
+
class: We(["fi mr-2 rounded elevation-4", `fi-${(b = o.port) != null && b.cntLoCode ? (I = (A = o.port) == null ? void 0 : A.cntLoCode) == null ? void 0 : I.toLowerCase() : "xx"}`]),
|
|
1692
1696
|
style: { width: "36px", height: "24px" }
|
|
1693
1697
|
}, null, 2),
|
|
1694
1698
|
l("div", null, h((C = o.port) == null ? void 0 : C.name), 1)
|
|
@@ -1721,9 +1725,9 @@ function yr(t, e, o, i, a, r) {
|
|
|
1721
1725
|
d(n, { class: "w-100" }),
|
|
1722
1726
|
l("div", bi, [
|
|
1723
1727
|
o.followList.some((b) => {
|
|
1724
|
-
var
|
|
1725
|
-
return ((
|
|
1726
|
-
}) ? (y(),
|
|
1728
|
+
var A;
|
|
1729
|
+
return ((A = b.port) == null ? void 0 : A.id) === o.portId;
|
|
1730
|
+
}) ? (y(), D(s, {
|
|
1727
1731
|
key: 0,
|
|
1728
1732
|
class: "text-none text-body-1 rounded flex-1-1-0",
|
|
1729
1733
|
variant: "tonal",
|
|
@@ -1739,7 +1743,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1739
1743
|
N(" " + h(t.$t("actions.unfollow")), 1)
|
|
1740
1744
|
]),
|
|
1741
1745
|
_: 1
|
|
1742
|
-
}, 8, ["onClick"])) : (y(),
|
|
1746
|
+
}, 8, ["onClick"])) : (y(), D(s, {
|
|
1743
1747
|
key: 1,
|
|
1744
1748
|
class: "text-none text-body-1 rounded flex-1-1-0",
|
|
1745
1749
|
variant: "tonal",
|
|
@@ -1782,11 +1786,11 @@ function yr(t, e, o, i, a, r) {
|
|
|
1782
1786
|
l("div", Li, [
|
|
1783
1787
|
l("div", Pi, [
|
|
1784
1788
|
l("div", Ci, h(t.$t("port.region")), 1),
|
|
1785
|
-
l("div", Ti, h(((w = o.port) == null ? void 0 : w.region) ?? ((
|
|
1789
|
+
l("div", Ti, h(((w = o.port) == null ? void 0 : w.region) ?? ((P = o.port) == null ? void 0 : P.city) ?? "-"), 1)
|
|
1786
1790
|
]),
|
|
1787
1791
|
l("div", Si, [
|
|
1788
1792
|
l("div", Ii, h(t.$t("port.position")), 1),
|
|
1789
|
-
l("div", Mi, h(r.computeLng((
|
|
1793
|
+
l("div", Mi, h(r.computeLng((z = o.port) == null ? void 0 : z.lng) ?? "-") + " , " + h(r.computeLat((L = o.port) == null ? void 0 : L.lat) ?? "-"), 1)
|
|
1790
1794
|
]),
|
|
1791
1795
|
l("div", Ai, [
|
|
1792
1796
|
l("div", Di, h(t.$t("time.localTime")), 1),
|
|
@@ -1818,7 +1822,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1818
1822
|
rounded: "1"
|
|
1819
1823
|
}, {
|
|
1820
1824
|
default: u(() => [
|
|
1821
|
-
(y(!0), S(be, null, we(r.dateList, (b) => (y(),
|
|
1825
|
+
(y(!0), S(be, null, we(r.dateList, (b) => (y(), D(s, {
|
|
1822
1826
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
1823
1827
|
density: "compact",
|
|
1824
1828
|
color: "primary",
|
|
@@ -1886,14 +1890,14 @@ function yr(t, e, o, i, a, r) {
|
|
|
1886
1890
|
l("div", null, h(t.$t("tide.tideTimes")), 1)
|
|
1887
1891
|
]),
|
|
1888
1892
|
l("div", sr, [
|
|
1889
|
-
a.showTideDetail ? (y(),
|
|
1893
|
+
a.showTideDetail ? (y(), D(s, {
|
|
1890
1894
|
key: 0,
|
|
1891
1895
|
icon: "mdi-eye-off-outline",
|
|
1892
1896
|
density: "compact",
|
|
1893
1897
|
variant: "plain",
|
|
1894
1898
|
size: "small",
|
|
1895
1899
|
onClick: e[1] || (e[1] = (b) => a.showTideDetail = !1)
|
|
1896
|
-
})) : (y(),
|
|
1900
|
+
})) : (y(), D(s, {
|
|
1897
1901
|
key: 1,
|
|
1898
1902
|
icon: "mdi-eye-outline",
|
|
1899
1903
|
density: "compact",
|
|
@@ -1912,9 +1916,9 @@ function yr(t, e, o, i, a, r) {
|
|
|
1912
1916
|
l("th", hr, h(t.$t("time.time")) + " ( LT ) ", 1),
|
|
1913
1917
|
l("th", pr, h(t.$t("tide.height")) + " ( m )", 1)
|
|
1914
1918
|
]),
|
|
1915
|
-
(y(!0), S(be, null, we(a.tideTableData, (b,
|
|
1919
|
+
(y(!0), S(be, null, we(a.tideTableData, (b, A) => {
|
|
1916
1920
|
var I;
|
|
1917
|
-
return y(), S("tr", { key:
|
|
1921
|
+
return y(), S("tr", { key: A }, [
|
|
1918
1922
|
l("td", ur, h(t.$t(`tide.${(I = b == null ? void 0 : b.type) == null ? void 0 : I.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
|
|
1919
1923
|
l("td", gr, h(r.computeHourLT(b == null ? void 0 : b.date, o.port)), 1),
|
|
1920
1924
|
l("td", fr, h((b == null ? void 0 : b.height) ?? "-") + " m", 1)
|
|
@@ -1930,7 +1934,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1930
1934
|
_: 1
|
|
1931
1935
|
});
|
|
1932
1936
|
}
|
|
1933
|
-
const lo = /* @__PURE__ */ Y(ui, [["render", yr], ["__scopeId", "data-v-
|
|
1937
|
+
const lo = /* @__PURE__ */ Y(ui, [["render", yr], ["__scopeId", "data-v-6662019c"]]);
|
|
1934
1938
|
const br = {
|
|
1935
1939
|
name: "IdmPort",
|
|
1936
1940
|
components: {
|
|
@@ -2032,16 +2036,18 @@ const br = {
|
|
|
2032
2036
|
this.portId = e.properties.id, e.properties.id && (this.port = e.properties, this.port.lng = e.geometry.coordinates[0], this.port.lat = e.geometry.coordinates[1], this.port.forecastModel = this.forecastModel, this.showDetail = !0);
|
|
2033
2037
|
},
|
|
2034
2038
|
handleHover(t) {
|
|
2039
|
+
var i, a;
|
|
2035
2040
|
this.map.getCanvas().style.cursor = "pointer";
|
|
2036
2041
|
const e = t.features[0];
|
|
2037
2042
|
if (e.properties.id) {
|
|
2038
|
-
this.showInfo = !0, this.hoverPort = e.properties;
|
|
2039
|
-
const
|
|
2040
|
-
this.marker
|
|
2043
|
+
this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
|
|
2044
|
+
const r = (a = document.getElementById("idmPortInfo")) == null ? void 0 : a.cloneNode(!0);
|
|
2045
|
+
this.marker = new ve.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
|
|
2041
2046
|
}
|
|
2042
2047
|
},
|
|
2043
2048
|
handleLeave() {
|
|
2044
|
-
|
|
2049
|
+
var t;
|
|
2050
|
+
this.showInfo = !1, this.hoverPort = {}, (t = this.marker) == null || t.remove(), this.map.getCanvas().style.cursor = "grab";
|
|
2045
2051
|
},
|
|
2046
2052
|
handleCloseDetail() {
|
|
2047
2053
|
this.showDetail = !1;
|
|
@@ -2076,7 +2082,7 @@ function _r(t, e, o, i, a, r) {
|
|
|
2076
2082
|
}, 512), [
|
|
2077
2083
|
[Fe, a.showInfo]
|
|
2078
2084
|
]),
|
|
2079
|
-
a.showDetail ? (y(),
|
|
2085
|
+
a.showDetail ? (y(), D(n, B({
|
|
2080
2086
|
key: 0,
|
|
2081
2087
|
portId: a.portId,
|
|
2082
2088
|
port: a.port,
|
|
@@ -2086,7 +2092,7 @@ function _r(t, e, o, i, a, r) {
|
|
|
2086
2092
|
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : O("", !0)
|
|
2087
2093
|
]);
|
|
2088
2094
|
}
|
|
2089
|
-
const kr = /* @__PURE__ */ Y(br, [["render", _r], ["__scopeId", "data-v-
|
|
2095
|
+
const kr = /* @__PURE__ */ Y(br, [["render", _r], ["__scopeId", "data-v-c99525a1"]]), zr = {
|
|
2090
2096
|
name: "IdmLoadLine",
|
|
2091
2097
|
props: {
|
|
2092
2098
|
map: {
|
|
@@ -2970,17 +2976,17 @@ const Yr = {
|
|
|
2970
2976
|
}, Ll = { class: "px-1 text-center" }, Pl = { class: "px-1 text-center" }, Cl = { class: "px-1 text-center" };
|
|
2971
2977
|
function Tl(t, e, o, i, a, r) {
|
|
2972
2978
|
const s = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), g = x("VBtnToggle"), p = x("v-card");
|
|
2973
|
-
return y(),
|
|
2979
|
+
return y(), D(p, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
|
|
2974
2980
|
default: u(() => {
|
|
2975
|
-
var f, w,
|
|
2981
|
+
var f, w, P, z;
|
|
2976
2982
|
return [
|
|
2977
2983
|
d(c, { class: "w-100" }, {
|
|
2978
2984
|
default: u(() => {
|
|
2979
|
-
var
|
|
2985
|
+
var L;
|
|
2980
2986
|
return [
|
|
2981
2987
|
l("div", Kr, [
|
|
2982
2988
|
l("div", Xr, [
|
|
2983
|
-
l("div", null, h((
|
|
2989
|
+
l("div", null, h((L = o.station) == null ? void 0 : L.name), 1)
|
|
2984
2990
|
]),
|
|
2985
2991
|
d(s, {
|
|
2986
2992
|
icon: "",
|
|
@@ -3024,7 +3030,7 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3024
3030
|
]),
|
|
3025
3031
|
l("div", nl, [
|
|
3026
3032
|
l("div", cl, h(t.$t("tide.position")), 1),
|
|
3027
|
-
l("div", ml, h(r.computeLng((
|
|
3033
|
+
l("div", ml, h(r.computeLng((P = o.station) == null ? void 0 : P.lng) ?? "-") + " , " + h(r.computeLat((z = o.station) == null ? void 0 : z.lat) ?? "-"), 1)
|
|
3028
3034
|
]),
|
|
3029
3035
|
l("div", dl, [
|
|
3030
3036
|
l("div", hl, h(t.$t("time.localTime")), 1),
|
|
@@ -3047,7 +3053,7 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3047
3053
|
l("div", wl, [
|
|
3048
3054
|
d(g, {
|
|
3049
3055
|
modelValue: a.currentIndex,
|
|
3050
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
3056
|
+
"onUpdate:modelValue": e[0] || (e[0] = (L) => a.currentIndex = L),
|
|
3051
3057
|
class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
3052
3058
|
density: "compact",
|
|
3053
3059
|
group: "",
|
|
@@ -3056,15 +3062,15 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3056
3062
|
rounded: "1"
|
|
3057
3063
|
}, {
|
|
3058
3064
|
default: u(() => [
|
|
3059
|
-
(y(!0), S(be, null, we(r.dateList, (
|
|
3065
|
+
(y(!0), S(be, null, we(r.dateList, (L) => (y(), D(s, {
|
|
3060
3066
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
3061
3067
|
density: "compact",
|
|
3062
3068
|
color: "primary",
|
|
3063
3069
|
height: "26",
|
|
3064
|
-
value:
|
|
3070
|
+
value: L.index
|
|
3065
3071
|
}, {
|
|
3066
3072
|
default: u(() => [
|
|
3067
|
-
N(h(
|
|
3073
|
+
N(h(L.label), 1)
|
|
3068
3074
|
]),
|
|
3069
3075
|
_: 2
|
|
3070
3076
|
}, 1032, ["value"]))), 256))
|
|
@@ -3079,12 +3085,12 @@ function Tl(t, e, o, i, a, r) {
|
|
|
3079
3085
|
l("th", kl, h(t.$t("time.time")) + " ( LT )", 1),
|
|
3080
3086
|
l("th", zl, h(t.$t("tide.height")) + " ( m )", 1)
|
|
3081
3087
|
]),
|
|
3082
|
-
(y(!0), S(be, null, we(a.tideTableData, (
|
|
3083
|
-
var
|
|
3088
|
+
(y(!0), S(be, null, we(a.tideTableData, (L, b) => {
|
|
3089
|
+
var A;
|
|
3084
3090
|
return y(), S("tr", { key: b }, [
|
|
3085
|
-
l("td", Ll, h(t.$t(`tide.${(
|
|
3086
|
-
l("td", Pl, h(r.computeHourLT(
|
|
3087
|
-
l("td", Cl, h((
|
|
3091
|
+
l("td", Ll, h(t.$t(`tide.${(A = L == null ? void 0 : L.type) == null ? void 0 : A.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
|
|
3092
|
+
l("td", Pl, h(r.computeHourLT(L == null ? void 0 : L.date, o.station)), 1),
|
|
3093
|
+
l("td", Cl, h((L == null ? void 0 : L.height) ?? "-") + " m", 1)
|
|
3088
3094
|
]);
|
|
3089
3095
|
}), 128))
|
|
3090
3096
|
])
|
|
@@ -3168,16 +3174,18 @@ const Il = {
|
|
|
3168
3174
|
e.properties && (this.station = e.properties, this.station.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.station.lng = e.geometry.coordinates[0], this.station.lat = e.geometry.coordinates[1], this.showDetail = !0);
|
|
3169
3175
|
},
|
|
3170
3176
|
handleHover(t) {
|
|
3177
|
+
var o, i;
|
|
3171
3178
|
this.map.getCanvas().style.cursor = "pointer";
|
|
3172
3179
|
const e = t.features[0];
|
|
3173
3180
|
if (e.properties) {
|
|
3174
|
-
this.showInfo = !0, this.hoverStation = e.properties, this.hoverStation.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.hoverStation.lng = e.geometry.coordinates[0], this.hoverStation.lat = e.geometry.coordinates[1];
|
|
3175
|
-
const
|
|
3176
|
-
this.marker
|
|
3181
|
+
this.showInfo = !0, this.hoverStation = e.properties, this.hoverStation.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.hoverStation.lng = e.geometry.coordinates[0], this.hoverStation.lat = e.geometry.coordinates[1], (o = this.marker) == null || o.remove();
|
|
3182
|
+
const a = (i = document.getElementById("idmTidalInfo")) == null ? void 0 : i.cloneNode(!0);
|
|
3183
|
+
this.marker = new ve.Marker(a).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -60]).addTo(this.map);
|
|
3177
3184
|
}
|
|
3178
3185
|
},
|
|
3179
3186
|
handleLeave() {
|
|
3180
|
-
|
|
3187
|
+
var t;
|
|
3188
|
+
this.showInfo = !1, this.hoverStation = {}, (t = this.marker) == null || t.remove(), this.map.getCanvas().style.cursor = "grab";
|
|
3181
3189
|
},
|
|
3182
3190
|
handleCloseDetail() {
|
|
3183
3191
|
this.showDetail = !1;
|
|
@@ -3208,14 +3216,14 @@ function Ol(t, e, o, i, a, r) {
|
|
|
3208
3216
|
}, 512), [
|
|
3209
3217
|
[Fe, a.showInfo]
|
|
3210
3218
|
]),
|
|
3211
|
-
a.showDetail ? (y(),
|
|
3219
|
+
a.showDetail ? (y(), D(n, B({
|
|
3212
3220
|
key: 0,
|
|
3213
3221
|
station: a.station,
|
|
3214
3222
|
onClose: r.handleCloseDetail
|
|
3215
3223
|
}, t.$attrs), null, 16, ["station", "onClose"])) : O("", !0)
|
|
3216
3224
|
]);
|
|
3217
3225
|
}
|
|
3218
|
-
const Bl = /* @__PURE__ */ Y(Il, [["render", Ol], ["__scopeId", "data-v-
|
|
3226
|
+
const Bl = /* @__PURE__ */ Y(Il, [["render", Ol], ["__scopeId", "data-v-0d88b6ab"]]), El = {
|
|
3219
3227
|
name: "IdmIceAreas",
|
|
3220
3228
|
props: {
|
|
3221
3229
|
map: {
|
|
@@ -4338,16 +4346,18 @@ const Ul = {
|
|
|
4338
4346
|
this.portId = e.properties.id, e.properties.id && (this.port = e.properties, this.port.lng = e.geometry.coordinates[0], this.port.lat = e.geometry.coordinates[1], this.port.forecastModel = this.forecastModel, this.showDetail = !0);
|
|
4339
4347
|
},
|
|
4340
4348
|
handleHover(t) {
|
|
4349
|
+
var i, a;
|
|
4341
4350
|
this.map.getCanvas().style.cursor = "pointer";
|
|
4342
4351
|
const e = t.features[0];
|
|
4343
4352
|
if (e.properties.id) {
|
|
4344
|
-
this.showInfo = !0, this.hoverPort = e.properties;
|
|
4345
|
-
const
|
|
4346
|
-
this.marker
|
|
4353
|
+
this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
|
|
4354
|
+
const r = (a = document.getElementById("idmFollowPortInfo")) == null ? void 0 : a.cloneNode(!0);
|
|
4355
|
+
this.marker = new ve.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
|
|
4347
4356
|
}
|
|
4348
4357
|
},
|
|
4349
4358
|
handleLeave() {
|
|
4350
|
-
|
|
4359
|
+
var t;
|
|
4360
|
+
this.showInfo = !1, this.hoverPort = {}, (t = this.marker) == null || t.remove(), this.map.getCanvas().style.cursor = "grab";
|
|
4351
4361
|
},
|
|
4352
4362
|
handleCloseDetail() {
|
|
4353
4363
|
this.showDetail = !1;
|
|
@@ -4382,7 +4392,7 @@ function Zl(t, e, o, i, a, r) {
|
|
|
4382
4392
|
}, 512), [
|
|
4383
4393
|
[Fe, a.showInfo]
|
|
4384
4394
|
]),
|
|
4385
|
-
a.showDetail ? (y(),
|
|
4395
|
+
a.showDetail ? (y(), D(n, B({
|
|
4386
4396
|
key: 0,
|
|
4387
4397
|
portId: a.portId,
|
|
4388
4398
|
port: a.port,
|
|
@@ -4393,7 +4403,7 @@ function Zl(t, e, o, i, a, r) {
|
|
|
4393
4403
|
}, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : O("", !0)
|
|
4394
4404
|
]);
|
|
4395
4405
|
}
|
|
4396
|
-
const ql = /* @__PURE__ */ Y(Ul, [["render", Zl], ["__scopeId", "data-v-
|
|
4406
|
+
const ql = /* @__PURE__ */ Y(Ul, [["render", Zl], ["__scopeId", "data-v-3bd34216"]]);
|
|
4397
4407
|
const Yl = {
|
|
4398
4408
|
name: "IdmFollowPosition",
|
|
4399
4409
|
props: {
|
|
@@ -5286,27 +5296,29 @@ const Yl = {
|
|
|
5286
5296
|
const e = t.features[0];
|
|
5287
5297
|
if (e.properties) {
|
|
5288
5298
|
const f = e.properties;
|
|
5289
|
-
f.lng = e.geometry.coordinates[0], f.lat = e.geometry.coordinates[1]
|
|
5290
|
-
const w = M(),
|
|
5299
|
+
f.lng = e.geometry.coordinates[0], f.lat = e.geometry.coordinates[1];
|
|
5300
|
+
const w = M(), P = (o = M(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), z = {
|
|
5291
5301
|
lat: f.lat,
|
|
5292
5302
|
lng: f.lng,
|
|
5293
5303
|
datetime: this.realTime,
|
|
5294
5304
|
forecastModel: this.forecastModel
|
|
5295
5305
|
};
|
|
5296
|
-
|
|
5306
|
+
P >= 0 ? (s = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(z) : (p = (g = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : g.idmSpot) == null || p.fetchHistoryData(z);
|
|
5297
5307
|
}
|
|
5298
5308
|
},
|
|
5299
5309
|
handleHover(t) {
|
|
5310
|
+
var o;
|
|
5300
5311
|
this.map.getCanvas().style.cursor = "pointer";
|
|
5301
5312
|
const e = t.features[0];
|
|
5302
5313
|
if (e.properties.id) {
|
|
5303
|
-
this.showInfo = !0, this.position = e.properties;
|
|
5304
|
-
const
|
|
5305
|
-
this.marker
|
|
5314
|
+
this.showInfo = !0, this.position = e.properties, (o = this.marker) == null || o.remove();
|
|
5315
|
+
const i = document.getElementById("idmFollowPositionInfo").cloneNode(!0);
|
|
5316
|
+
this.marker = new ve.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
|
|
5306
5317
|
}
|
|
5307
5318
|
},
|
|
5308
5319
|
handleLeave() {
|
|
5309
|
-
|
|
5320
|
+
var t;
|
|
5321
|
+
this.showInfo = !1, (t = this.marker) == null || t.remove(), this.map.getCanvas().style.cursor = "grab";
|
|
5310
5322
|
}
|
|
5311
5323
|
}
|
|
5312
5324
|
}, Kl = { class: "position-box d-flex flex-column justify-center align-start ga-1" }, Xl = { class: "d-flex justify-start align-center text-label" }, $l = {
|
|
@@ -5315,7 +5327,7 @@ const Yl = {
|
|
|
5315
5327
|
};
|
|
5316
5328
|
function Ql(t, e, o, i, a, r) {
|
|
5317
5329
|
const s = x("v-card-text"), c = x("v-card");
|
|
5318
|
-
return Ne((y(),
|
|
5330
|
+
return Ne((y(), D(c, {
|
|
5319
5331
|
id: "idmFollowPositionInfo",
|
|
5320
5332
|
ref: "idmFollowPositionInfo"
|
|
5321
5333
|
}, {
|
|
@@ -5340,7 +5352,7 @@ function Ql(t, e, o, i, a, r) {
|
|
|
5340
5352
|
[Fe, a.showInfo]
|
|
5341
5353
|
]);
|
|
5342
5354
|
}
|
|
5343
|
-
const Jl = /* @__PURE__ */ Y(Yl, [["render", Ql], ["__scopeId", "data-v-
|
|
5355
|
+
const Jl = /* @__PURE__ */ Y(Yl, [["render", Ql], ["__scopeId", "data-v-d9f71632"]]);
|
|
5344
5356
|
const es = {
|
|
5345
5357
|
name: "IdmOtherLayerr",
|
|
5346
5358
|
components: {
|
|
@@ -5519,8 +5531,8 @@ const es = {
|
|
|
5519
5531
|
})
|
|
5520
5532
|
);
|
|
5521
5533
|
(await Promise.all(s)).map((n) => {
|
|
5522
|
-
var f, w,
|
|
5523
|
-
const g = ((f = n == null ? void 0 : n.data) == null ? void 0 : f.data) || (n == null ? void 0 : n.data), p = (
|
|
5534
|
+
var f, w, P;
|
|
5535
|
+
const g = ((f = n == null ? void 0 : n.data) == null ? void 0 : f.data) || (n == null ? void 0 : n.data), p = (P = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : P.key;
|
|
5524
5536
|
this.otherLayers[p] = g;
|
|
5525
5537
|
});
|
|
5526
5538
|
}
|
|
@@ -5559,7 +5571,7 @@ const es = {
|
|
|
5559
5571
|
}, ds = { class: "text-body-2 text-center pt-1" };
|
|
5560
5572
|
function hs(t, e, o, i, a, r) {
|
|
5561
5573
|
var Q, re, de, pe, se, $, ae, ue, ne;
|
|
5562
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"),
|
|
5574
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), P = x("IdmLatLng"), z = x("IdmTerminator"), L = x("IdmTimezone"), b = x("IdmPort"), A = x("IdmAlertZone"), I = x("IdmTideStations"), C = x("IdmEcaZone"), v = x("IdmWarZone"), _ = x("IdmGmdssArea"), T = x("IdmLoadLine"), k = x("IdmWorldMarine"), R = x("IdmVRA"), V = x("IdmSpecialArea"), K = x("IdmWorld12nm"), X = x("IdmChinaRoute"), Z = x("IdmIceAreas"), J = x("IdmFollowPort"), ee = x("IdmFollowPosition");
|
|
5563
5575
|
return y(), S("div", ts, [
|
|
5564
5576
|
l("div", {
|
|
5565
5577
|
class: "menu-bar-box transition px-1 rounded",
|
|
@@ -5643,7 +5655,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5643
5655
|
l("div", ds, h(t.$t(`layer.${F.locale}`)), 1)
|
|
5644
5656
|
], 8, ls))), 128))
|
|
5645
5657
|
]),
|
|
5646
|
-
(y(!0), S(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (y(),
|
|
5658
|
+
(y(!0), S(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (y(), D(p, {
|
|
5647
5659
|
key: F.key,
|
|
5648
5660
|
modelValue: a.checkList,
|
|
5649
5661
|
"onUpdate:modelValue": e[0] || (e[0] = (ce) => a.checkList = ce),
|
|
@@ -5682,7 +5694,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5682
5694
|
}),
|
|
5683
5695
|
d(f, { class: "py-2" }, {
|
|
5684
5696
|
default: u(() => [
|
|
5685
|
-
(y(!0), S(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(),
|
|
5697
|
+
(y(!0), S(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), D(p, {
|
|
5686
5698
|
key: F.key,
|
|
5687
5699
|
modelValue: a.checkList,
|
|
5688
5700
|
"onUpdate:modelValue": e[1] || (e[1] = (ce) => a.checkList = ce),
|
|
@@ -5721,7 +5733,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5721
5733
|
}),
|
|
5722
5734
|
d(f, { class: "py-2" }, {
|
|
5723
5735
|
default: u(() => [
|
|
5724
|
-
(y(!0), S(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(),
|
|
5736
|
+
(y(!0), S(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), D(p, {
|
|
5725
5737
|
key: F.key,
|
|
5726
5738
|
modelValue: a.checkList,
|
|
5727
5739
|
"onUpdate:modelValue": e[2] || (e[2] = (ce) => a.checkList = ce),
|
|
@@ -5790,23 +5802,23 @@ function hs(t, e, o, i, a, r) {
|
|
|
5790
5802
|
})
|
|
5791
5803
|
])
|
|
5792
5804
|
], 6),
|
|
5793
|
-
o.map ? (y(),
|
|
5805
|
+
o.map ? (y(), D(P, B({
|
|
5794
5806
|
key: 0,
|
|
5795
5807
|
map: o.map,
|
|
5796
5808
|
"menu-toggle": o.menuToggle,
|
|
5797
5809
|
show: a.checkList.includes("graticule")
|
|
5798
5810
|
}, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : O("", !0),
|
|
5799
|
-
o.map ? (y(),
|
|
5811
|
+
o.map ? (y(), D(z, B({
|
|
5800
5812
|
key: 1,
|
|
5801
5813
|
map: o.map,
|
|
5802
5814
|
area: (Q = a.otherLayers) == null ? void 0 : Q["day-night"]
|
|
5803
5815
|
}, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
|
|
5804
|
-
o.map ? (y(),
|
|
5816
|
+
o.map ? (y(), D(L, B({
|
|
5805
5817
|
key: 2,
|
|
5806
5818
|
map: o.map,
|
|
5807
5819
|
zone: (re = a.otherLayers) == null ? void 0 : re["time-zones"]
|
|
5808
5820
|
}, t.$attrs), null, 16, ["map", "zone"])) : O("", !0),
|
|
5809
|
-
o.map ? (y(),
|
|
5821
|
+
o.map ? (y(), D(b, B({
|
|
5810
5822
|
key: 3,
|
|
5811
5823
|
ref: "idmPorts",
|
|
5812
5824
|
map: o.map,
|
|
@@ -5816,7 +5828,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5816
5828
|
"forecast-model": o.forecastModel,
|
|
5817
5829
|
realTime: o.realTime
|
|
5818
5830
|
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "ports", "gateway", "token", "forecast-model", "realTime"])) : O("", !0),
|
|
5819
|
-
o.map ? (y(), A
|
|
5831
|
+
o.map ? (y(), D(A, B({
|
|
5820
5832
|
key: 4,
|
|
5821
5833
|
map: o.map,
|
|
5822
5834
|
zone: (pe = a.otherLayers) == null ? void 0 : pe["alert-zones"]
|
|
@@ -5824,7 +5836,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5824
5836
|
"before-layer": "empty-layer-3",
|
|
5825
5837
|
theme: o.theme
|
|
5826
5838
|
}), null, 16, ["map", "zone", "theme"])) : O("", !0),
|
|
5827
|
-
o.map ? (y(),
|
|
5839
|
+
o.map ? (y(), D(I, B({
|
|
5828
5840
|
key: 5,
|
|
5829
5841
|
ref: "idmIideStation",
|
|
5830
5842
|
map: o.map,
|
|
@@ -5836,60 +5848,60 @@ function hs(t, e, o, i, a, r) {
|
|
|
5836
5848
|
forecastModel: o.forecastModel,
|
|
5837
5849
|
"before-layer": "empty-layer-3"
|
|
5838
5850
|
}, t.$attrs), null, 16, ["map", "gateway", "token", "show", "theme", "realTime", "forecastModel"])) : O("", !0),
|
|
5839
|
-
o.map ? (y(),
|
|
5851
|
+
o.map ? (y(), D(C, B({
|
|
5840
5852
|
key: 6,
|
|
5841
5853
|
map: o.map,
|
|
5842
5854
|
zone: (se = a.otherLayers) == null ? void 0 : se["eca-zones"]
|
|
5843
5855
|
}, t.$attrs), null, 16, ["map", "zone"])) : O("", !0),
|
|
5844
|
-
o.map ? (y(),
|
|
5856
|
+
o.map ? (y(), D(v, B({
|
|
5845
5857
|
key: 7,
|
|
5846
5858
|
map: o.map,
|
|
5847
5859
|
zone: ($ = a.otherLayers) == null ? void 0 : $["war-zones"]
|
|
5848
5860
|
}, t.$attrs), null, 16, ["map", "zone"])) : O("", !0),
|
|
5849
|
-
o.map ? (y(),
|
|
5861
|
+
o.map ? (y(), D(_, B({
|
|
5850
5862
|
key: 8,
|
|
5851
5863
|
map: o.map,
|
|
5852
5864
|
area: (ae = a.otherLayers) == null ? void 0 : ae["gmdss-areas"]
|
|
5853
5865
|
}, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
|
|
5854
|
-
o.map ? (y(),
|
|
5866
|
+
o.map ? (y(), D(T, B({
|
|
5855
5867
|
key: 9,
|
|
5856
5868
|
map: o.map,
|
|
5857
5869
|
show: a.checkList.includes("load-lines")
|
|
5858
5870
|
}, t.$attrs), null, 16, ["map", "show"])) : O("", !0),
|
|
5859
|
-
o.map ? (y(),
|
|
5871
|
+
o.map ? (y(), D(k, B({
|
|
5860
5872
|
key: 10,
|
|
5861
5873
|
map: o.map,
|
|
5862
5874
|
token: o.token,
|
|
5863
5875
|
show: a.checkList.includes("worldMarine")
|
|
5864
5876
|
}, t.$attrs), null, 16, ["map", "token", "show"])) : O("", !0),
|
|
5865
|
-
o.map ? (y(),
|
|
5877
|
+
o.map ? (y(), D(R, B({
|
|
5866
5878
|
key: 11,
|
|
5867
5879
|
map: o.map,
|
|
5868
5880
|
area: (ue = a.otherLayers) == null ? void 0 : ue["voluntary-reporting-area"]
|
|
5869
5881
|
}, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
|
|
5870
|
-
o.map ? (y(),
|
|
5882
|
+
o.map ? (y(), D(V, B({
|
|
5871
5883
|
key: 12,
|
|
5872
5884
|
map: o.map,
|
|
5873
5885
|
area: (ne = a.otherLayers) == null ? void 0 : ne["special-area"]
|
|
5874
5886
|
}, t.$attrs), null, 16, ["map", "area"])) : O("", !0),
|
|
5875
|
-
o.map ? (y(),
|
|
5887
|
+
o.map ? (y(), D(K, B({
|
|
5876
5888
|
key: 13,
|
|
5877
5889
|
map: o.map,
|
|
5878
5890
|
token: o.token,
|
|
5879
5891
|
show: a.checkList.includes("world12nm")
|
|
5880
5892
|
}, t.$attrs), null, 16, ["map", "token", "show"])) : O("", !0),
|
|
5881
|
-
o.map ? (y(),
|
|
5893
|
+
o.map ? (y(), D(X, B({
|
|
5882
5894
|
key: 14,
|
|
5883
5895
|
map: o.map,
|
|
5884
5896
|
token: o.token,
|
|
5885
5897
|
show: a.checkList.includes("chinaRoute")
|
|
5886
5898
|
}, t.$attrs), null, 16, ["map", "token", "show"])) : O("", !0),
|
|
5887
|
-
o.map ? (y(),
|
|
5899
|
+
o.map ? (y(), D(Z, B({
|
|
5888
5900
|
key: 15,
|
|
5889
5901
|
map: o.map,
|
|
5890
5902
|
show: a.checkList.includes("ice-areas")
|
|
5891
5903
|
}, t.$attrs), null, 16, ["map", "show"])) : O("", !0),
|
|
5892
|
-
o.map ? (y(),
|
|
5904
|
+
o.map ? (y(), D(J, B({
|
|
5893
5905
|
key: 16,
|
|
5894
5906
|
ref: "idmFollowPort",
|
|
5895
5907
|
map: o.map,
|
|
@@ -5899,7 +5911,7 @@ function hs(t, e, o, i, a, r) {
|
|
|
5899
5911
|
"forecast-model": o.forecastModel,
|
|
5900
5912
|
realTime: o.realTime
|
|
5901
5913
|
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : O("", !0),
|
|
5902
|
-
o.map ? (y(),
|
|
5914
|
+
o.map ? (y(), D(ee, B({
|
|
5903
5915
|
key: 17,
|
|
5904
5916
|
ref: "idmFollowPosition",
|
|
5905
5917
|
map: o.map,
|
|
@@ -5956,12 +5968,12 @@ class so {
|
|
|
5956
5968
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
5957
5969
|
*/
|
|
5958
5970
|
getBoundPixel() {
|
|
5959
|
-
var
|
|
5960
|
-
const e = (
|
|
5971
|
+
var z, L;
|
|
5972
|
+
const e = (z = this.map) == null ? void 0 : z.getBounds();
|
|
5961
5973
|
if (!e)
|
|
5962
5974
|
return [];
|
|
5963
|
-
const o = ((
|
|
5964
|
-
return [f, w, g +
|
|
5975
|
+
const o = ((L = this.map) == null ? void 0 : L.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [g, p] = this.mercator.px([r, i[1]], o), [f, w] = this.mercator.px([c, a[1]], o), P = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
|
|
5976
|
+
return [f, w, g + P, p];
|
|
5965
5977
|
}
|
|
5966
5978
|
/**
|
|
5967
5979
|
* [视窗边界像素宽度]
|
|
@@ -6144,9 +6156,9 @@ class He {
|
|
|
6144
6156
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
6145
6157
|
};
|
|
6146
6158
|
p.resolution && o.uniform2f(p.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), p.image && o.uniform1i(p.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), p.color && o.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && o.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && o.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && o.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
|
|
6147
|
-
const f = e.getBoundPixel(), w = e.map.getZoom() + 1,
|
|
6148
|
-
for (const
|
|
6149
|
-
const
|
|
6159
|
+
const f = e.getBoundPixel(), w = e.map.getZoom() + 1, P = e.getWorldCopy(f, w);
|
|
6160
|
+
for (const z of P) {
|
|
6161
|
+
const L = (z[0] - f[0]) * e.ratio, b = (z[1] - f[3]) * e.ratio, A = z[2] * e.ratio, [I, C, v, _] = [L, A + L, b, A + b], T = new Float32Array([I, v, C, v, I, _, I, _, C, v, C, _]);
|
|
6150
6162
|
o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, T, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
6151
6163
|
}
|
|
6152
6164
|
} catch (p) {
|
|
@@ -8730,19 +8742,19 @@ const bn = {
|
|
|
8730
8742
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
8731
8743
|
let o = 0, i = 0;
|
|
8732
8744
|
if (this.map) {
|
|
8733
|
-
const
|
|
8745
|
+
const P = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, z = (r = this.map) == null ? void 0 : r.getBounds(), L = `${z._sw.lng},${z._sw.lat},${z._ne.lng},${z._ne.lat}`;
|
|
8734
8746
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
8735
|
-
const b = ao.WEATHER_LAYERS.find((
|
|
8747
|
+
const b = ao.WEATHER_LAYERS.find((A) => {
|
|
8736
8748
|
var I;
|
|
8737
|
-
return ((I =
|
|
8749
|
+
return ((I = A.peer) == null ? void 0 : I.weight) === this.particleFactor.weight;
|
|
8738
8750
|
});
|
|
8739
8751
|
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & b.weight ? this.weatherWeight : this.weatherWeight + b.weight : this.weatherWeight = this.weatherWeight & b.weight ? this.weatherWeight - b.weight : this.weatherWeight;
|
|
8740
8752
|
}
|
|
8741
8753
|
if (this.weatherWeight > 0) {
|
|
8742
8754
|
let b = this.weatherWeight;
|
|
8743
8755
|
if (b > 0) {
|
|
8744
|
-
const
|
|
8745
|
-
`${
|
|
8756
|
+
const A = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
|
|
8757
|
+
`${A}/api/arc/weather/layers2/links?l=${b}&v=${this.forecastModel}&z=${P}&bbox=${L}&t=${this.realTime}`,
|
|
8746
8758
|
{
|
|
8747
8759
|
headers: {
|
|
8748
8760
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -8759,17 +8771,17 @@ const bn = {
|
|
|
8759
8771
|
key: T
|
|
8760
8772
|
},
|
|
8761
8773
|
responseType: /\.(jpg|png)$/.test(C[T]) ? "blob" : "json"
|
|
8762
|
-
}).catch((
|
|
8763
|
-
console.log(`[${T}] fetch layer error: ${
|
|
8774
|
+
}).catch((k) => {
|
|
8775
|
+
console.log(`[${T}] fetch layer error: ${k}`);
|
|
8764
8776
|
})
|
|
8765
8777
|
);
|
|
8766
|
-
const
|
|
8767
|
-
this.weatherLayers = {},
|
|
8778
|
+
const _ = await Promise.all(v);
|
|
8779
|
+
this.weatherLayers = {}, _.map((T) => {
|
|
8768
8780
|
var V, K, X, Z;
|
|
8769
|
-
const
|
|
8781
|
+
const k = ((V = T == null ? void 0 : T.data) == null ? void 0 : V.data) || (T == null ? void 0 : T.data);
|
|
8770
8782
|
let R = (X = (K = T == null ? void 0 : T.config) == null ? void 0 : K.headers) == null ? void 0 : X.key;
|
|
8771
|
-
R &&
|
|
8772
|
-
raw:
|
|
8783
|
+
R && k && (this.weatherLayers[R] = {
|
|
8784
|
+
raw: k,
|
|
8773
8785
|
type: ((Z = T == null ? void 0 : T.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
|
|
8774
8786
|
etime: I.data.etime
|
|
8775
8787
|
});
|
|
@@ -8846,51 +8858,51 @@ const bn = {
|
|
|
8846
8858
|
);
|
|
8847
8859
|
},
|
|
8848
8860
|
handleDrawWeather4Json() {
|
|
8849
|
-
var g, p, f, w,
|
|
8861
|
+
var g, p, f, w, P, z, L;
|
|
8850
8862
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
8851
8863
|
let e = 0, o = 0;
|
|
8852
8864
|
const i = (g = this.map) == null ? void 0 : g.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = G.convertToStdLng(i._sw.lng), s = G.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
|
|
8853
8865
|
for (const b in this.weatherLayers) {
|
|
8854
|
-
let
|
|
8866
|
+
let A = !1;
|
|
8855
8867
|
if (this.weatherLayers[b].active && this.weatherLayers[b].type === "json") {
|
|
8856
8868
|
let I = [];
|
|
8857
8869
|
if (b === "swell") {
|
|
8858
|
-
|
|
8870
|
+
A = !0;
|
|
8859
8871
|
const C = ((f = this.weatherLayers[b]) == null ? void 0 : f.direction) || {};
|
|
8860
|
-
for (const
|
|
8861
|
-
if (
|
|
8862
|
-
const T = C[
|
|
8863
|
-
r > s ? T.forEach((
|
|
8872
|
+
for (const _ in C)
|
|
8873
|
+
if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8874
|
+
const T = C[_].lng;
|
|
8875
|
+
r > s ? T.forEach((k, R) => {
|
|
8864
8876
|
var V, K, X, Z, J, ee;
|
|
8865
8877
|
if (a < 2) {
|
|
8866
|
-
if ((
|
|
8867
|
-
const Q = H.point([
|
|
8868
|
-
val: ((V = C[
|
|
8869
|
-
spd: (X = C[
|
|
8878
|
+
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
8879
|
+
const Q = H.point([k, _], {
|
|
8880
|
+
val: ((V = C[_].val) == null ? void 0 : V[R]) || ((K = C[_].dir) == null ? void 0 : K[R]),
|
|
8881
|
+
spd: (X = C[_].spd) == null ? void 0 : X[R]
|
|
8870
8882
|
});
|
|
8871
8883
|
I.push(Q);
|
|
8872
8884
|
}
|
|
8873
|
-
} else if ((
|
|
8874
|
-
const Q = H.point([
|
|
8875
|
-
val: ((Z = C[
|
|
8876
|
-
spd: (ee = C[
|
|
8885
|
+
} else if ((k >= r && k <= 180 || k >= -180 && k <= s) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8886
|
+
const Q = H.point([k, _], {
|
|
8887
|
+
val: ((Z = C[_].val) == null ? void 0 : Z[R]) || ((J = C[_].dir) == null ? void 0 : J[R]),
|
|
8888
|
+
spd: (ee = C[_].spd) == null ? void 0 : ee[R]
|
|
8877
8889
|
});
|
|
8878
8890
|
I.push(Q);
|
|
8879
8891
|
}
|
|
8880
|
-
}) : T.forEach((
|
|
8892
|
+
}) : T.forEach((k, R) => {
|
|
8881
8893
|
var V, K, X, Z, J, ee;
|
|
8882
8894
|
if (r < 2) {
|
|
8883
|
-
if ((
|
|
8884
|
-
const Q = H.point([
|
|
8885
|
-
val: ((V = C[
|
|
8886
|
-
spd: (X = C[
|
|
8895
|
+
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
8896
|
+
const Q = H.point([k, _], {
|
|
8897
|
+
val: ((V = C[_].val) == null ? void 0 : V[R]) || ((K = C[_].dir) == null ? void 0 : K[R]),
|
|
8898
|
+
spd: (X = C[_].spd) == null ? void 0 : X[R]
|
|
8887
8899
|
});
|
|
8888
8900
|
I.push(Q);
|
|
8889
8901
|
}
|
|
8890
|
-
} else if (
|
|
8891
|
-
const Q = H.point([
|
|
8892
|
-
val: ((Z = C[
|
|
8893
|
-
spd: (ee = C[
|
|
8902
|
+
} else if (k >= r && k <= s && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8903
|
+
const Q = H.point([k, _], {
|
|
8904
|
+
val: ((Z = C[_].val) == null ? void 0 : Z[R]) || ((J = C[_].dir) == null ? void 0 : J[R]),
|
|
8905
|
+
spd: (ee = C[_].spd) == null ? void 0 : ee[R]
|
|
8894
8906
|
});
|
|
8895
8907
|
I.push(Q);
|
|
8896
8908
|
}
|
|
@@ -8900,61 +8912,61 @@ const bn = {
|
|
|
8900
8912
|
const v = this.weatherLayers[b].height;
|
|
8901
8913
|
if (v) {
|
|
8902
8914
|
if (!v.data) {
|
|
8903
|
-
const
|
|
8915
|
+
const _ = [];
|
|
8904
8916
|
for (const T in (w = v.raw) == null ? void 0 : w.LineString) {
|
|
8905
|
-
const
|
|
8906
|
-
for (const R of
|
|
8907
|
-
|
|
8917
|
+
const k = v.raw.LineString[T];
|
|
8918
|
+
for (const R of k)
|
|
8919
|
+
_.push(
|
|
8908
8920
|
H.lineString(R, {
|
|
8909
8921
|
val: Number(T)
|
|
8910
8922
|
})
|
|
8911
8923
|
);
|
|
8912
|
-
v.data = H.featureCollection(
|
|
8924
|
+
v.data = H.featureCollection(_);
|
|
8913
8925
|
}
|
|
8914
8926
|
}
|
|
8915
8927
|
if (v.data) {
|
|
8916
|
-
const
|
|
8917
|
-
I = I.concat(
|
|
8928
|
+
const _ = this.handleBboxClip(v.data, i);
|
|
8929
|
+
I = I.concat(_);
|
|
8918
8930
|
}
|
|
8919
8931
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
8920
8932
|
}
|
|
8921
8933
|
} else if (b === "current") {
|
|
8922
|
-
|
|
8923
|
-
const C = ((
|
|
8924
|
-
for (const
|
|
8925
|
-
if (
|
|
8926
|
-
const T = C[
|
|
8927
|
-
r > s ? T.forEach((
|
|
8934
|
+
A = !0;
|
|
8935
|
+
const C = ((P = this.weatherLayers[b]) == null ? void 0 : P.direction) || {};
|
|
8936
|
+
for (const _ in C)
|
|
8937
|
+
if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8938
|
+
const T = C[_].lng;
|
|
8939
|
+
r > s ? T.forEach((k, R) => {
|
|
8928
8940
|
var V, K, X, Z, J, ee;
|
|
8929
8941
|
if (a < 2) {
|
|
8930
|
-
if ((
|
|
8931
|
-
const Q = H.point([
|
|
8932
|
-
val: ((V = C[
|
|
8933
|
-
spd: (X = C[
|
|
8942
|
+
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
8943
|
+
const Q = H.point([k, _], {
|
|
8944
|
+
val: ((V = C[_].val) == null ? void 0 : V[R]) || ((K = C[_].dir) == null ? void 0 : K[R]),
|
|
8945
|
+
spd: (X = C[_].spd) == null ? void 0 : X[R]
|
|
8934
8946
|
});
|
|
8935
8947
|
I.push(Q);
|
|
8936
8948
|
}
|
|
8937
|
-
} else if ((
|
|
8938
|
-
const Q = H.point([
|
|
8939
|
-
val: ((Z = C[
|
|
8940
|
-
spd: (ee = C[
|
|
8949
|
+
} else if ((k >= r && k <= 180 || k >= -180 && k <= s) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8950
|
+
const Q = H.point([k, _], {
|
|
8951
|
+
val: ((Z = C[_].val) == null ? void 0 : Z[R]) || ((J = C[_].dir) == null ? void 0 : J[R]),
|
|
8952
|
+
spd: (ee = C[_].spd) == null ? void 0 : ee[R]
|
|
8941
8953
|
});
|
|
8942
8954
|
I.push(Q);
|
|
8943
8955
|
}
|
|
8944
|
-
}) : T.forEach((
|
|
8956
|
+
}) : T.forEach((k, R) => {
|
|
8945
8957
|
var V, K, X, Z, J, ee;
|
|
8946
8958
|
if (r < 2) {
|
|
8947
|
-
if ((
|
|
8948
|
-
const Q = H.point([
|
|
8949
|
-
val: ((V = C[
|
|
8950
|
-
spd: (X = C[
|
|
8959
|
+
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
8960
|
+
const Q = H.point([k, _], {
|
|
8961
|
+
val: ((V = C[_].val) == null ? void 0 : V[R]) || ((K = C[_].dir) == null ? void 0 : K[R]),
|
|
8962
|
+
spd: (X = C[_].spd) == null ? void 0 : X[R]
|
|
8951
8963
|
});
|
|
8952
8964
|
I.push(Q);
|
|
8953
8965
|
}
|
|
8954
|
-
} else if (
|
|
8955
|
-
const Q = H.point([
|
|
8956
|
-
val: ((Z = C[
|
|
8957
|
-
spd: (ee = C[
|
|
8966
|
+
} else if (k >= r && k <= s && (!(a <= this.zoom) || k % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8967
|
+
const Q = H.point([k, _], {
|
|
8968
|
+
val: ((Z = C[_].val) == null ? void 0 : Z[R]) || ((J = C[_].dir) == null ? void 0 : J[R]),
|
|
8969
|
+
spd: (ee = C[_].spd) == null ? void 0 : ee[R]
|
|
8958
8970
|
});
|
|
8959
8971
|
I.push(Q);
|
|
8960
8972
|
}
|
|
@@ -8965,57 +8977,57 @@ const bn = {
|
|
|
8965
8977
|
if (v) {
|
|
8966
8978
|
if (!v.data) {
|
|
8967
8979
|
const T = [];
|
|
8968
|
-
for (const
|
|
8969
|
-
const R = v.raw.Polygon[
|
|
8980
|
+
for (const k in (z = v.raw) == null ? void 0 : z.Polygon) {
|
|
8981
|
+
const R = v.raw.Polygon[k];
|
|
8970
8982
|
for (const V of R)
|
|
8971
8983
|
T.push(
|
|
8972
8984
|
H.polygon(V, {
|
|
8973
|
-
val: Number(
|
|
8985
|
+
val: Number(k)
|
|
8974
8986
|
})
|
|
8975
8987
|
);
|
|
8976
8988
|
}
|
|
8977
8989
|
v.data = H.featureCollection(T);
|
|
8978
8990
|
}
|
|
8979
|
-
const
|
|
8980
|
-
I = I.concat(
|
|
8991
|
+
const _ = a < this.zoom ? v.data.features.filter((T) => T.properties.val > 0.5) : v.data.features;
|
|
8992
|
+
I = I.concat(_), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
8981
8993
|
}
|
|
8982
8994
|
} else if (b === "wind") {
|
|
8983
|
-
|
|
8995
|
+
A = !0;
|
|
8984
8996
|
const C = this.weatherLayers.wind.raw;
|
|
8985
8997
|
for (const v in C)
|
|
8986
8998
|
if (v > c && v < n && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8987
|
-
const
|
|
8988
|
-
r > s ?
|
|
8999
|
+
const _ = C[v].lng;
|
|
9000
|
+
r > s ? _.forEach((T, k) => {
|
|
8989
9001
|
var R, V, K, X;
|
|
8990
9002
|
if (a < 2) {
|
|
8991
9003
|
if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
|
|
8992
9004
|
const Z = H.point([T, v], {
|
|
8993
|
-
dir: ((R = C[v].val) == null ? void 0 : R[
|
|
8994
|
-
spd: C[v].spd[
|
|
9005
|
+
dir: ((R = C[v].val) == null ? void 0 : R[k]) || ((V = C[v].dir) == null ? void 0 : V[k]),
|
|
9006
|
+
spd: C[v].spd[k]
|
|
8995
9007
|
});
|
|
8996
9008
|
I.push(Z);
|
|
8997
9009
|
}
|
|
8998
9010
|
} else if ((T >= r && T <= 180 || T >= -180 && T <= s) && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8999
9011
|
const Z = H.point([T, v], {
|
|
9000
|
-
dir: ((K = C[v].val) == null ? void 0 : K[
|
|
9001
|
-
spd: C[v].spd[
|
|
9012
|
+
dir: ((K = C[v].val) == null ? void 0 : K[k]) || ((X = C[v].dir) == null ? void 0 : X[k]),
|
|
9013
|
+
spd: C[v].spd[k]
|
|
9002
9014
|
});
|
|
9003
9015
|
I.push(Z);
|
|
9004
9016
|
}
|
|
9005
|
-
}) :
|
|
9017
|
+
}) : _.forEach((T, k) => {
|
|
9006
9018
|
var R, V, K, X;
|
|
9007
9019
|
if (a < 2) {
|
|
9008
9020
|
if ((T >= 0 && T <= 360 || T >= -360 && T <= 0) && T % 10 === 0) {
|
|
9009
9021
|
const Z = H.point([T, v], {
|
|
9010
|
-
dir: ((R = C[v].val) == null ? void 0 : R[
|
|
9011
|
-
spd: C[v].spd[
|
|
9022
|
+
dir: ((R = C[v].val) == null ? void 0 : R[k]) || ((V = C[v].dir) == null ? void 0 : V[k]),
|
|
9023
|
+
spd: C[v].spd[k]
|
|
9012
9024
|
});
|
|
9013
9025
|
I.push(Z);
|
|
9014
9026
|
}
|
|
9015
9027
|
} else if (T >= r && T <= s && (!(a <= this.zoom) || T % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
9016
9028
|
const Z = H.point([T, v], {
|
|
9017
|
-
dir: ((K = C[v].val) == null ? void 0 : K[
|
|
9018
|
-
spd: C[v].spd[
|
|
9029
|
+
dir: ((K = C[v].val) == null ? void 0 : K[k]) || ((X = C[v].dir) == null ? void 0 : X[k]),
|
|
9030
|
+
spd: C[v].spd[k]
|
|
9019
9031
|
});
|
|
9020
9032
|
I.push(Z);
|
|
9021
9033
|
}
|
|
@@ -9026,34 +9038,34 @@ const bn = {
|
|
|
9026
9038
|
if (this.weatherLayers[b].data)
|
|
9027
9039
|
I = this.weatherLayers[b].data;
|
|
9028
9040
|
else {
|
|
9029
|
-
|
|
9041
|
+
A = !0;
|
|
9030
9042
|
const C = this.weatherLayers[b].raw;
|
|
9031
9043
|
if (C) {
|
|
9032
9044
|
const v = [];
|
|
9033
|
-
for (const
|
|
9034
|
-
const T = C.Polygon[
|
|
9035
|
-
for (const
|
|
9045
|
+
for (const _ in C.Polygon) {
|
|
9046
|
+
const T = C.Polygon[_];
|
|
9047
|
+
for (const k of T)
|
|
9036
9048
|
v.push(
|
|
9037
|
-
H.polygon(
|
|
9038
|
-
val: Number(
|
|
9049
|
+
H.polygon(k, {
|
|
9050
|
+
val: Number(_)
|
|
9039
9051
|
})
|
|
9040
9052
|
);
|
|
9041
9053
|
}
|
|
9042
|
-
for (const
|
|
9043
|
-
const T = C.MultiPolygon[
|
|
9044
|
-
for (const
|
|
9054
|
+
for (const _ in C.MultiPolygon) {
|
|
9055
|
+
const T = C.MultiPolygon[_];
|
|
9056
|
+
for (const k of T)
|
|
9045
9057
|
v.push(
|
|
9046
|
-
H.multiPolygon(
|
|
9047
|
-
val: Number(
|
|
9058
|
+
H.multiPolygon(k, {
|
|
9059
|
+
val: Number(_)
|
|
9048
9060
|
})
|
|
9049
9061
|
);
|
|
9050
9062
|
}
|
|
9051
|
-
for (const
|
|
9052
|
-
const T = C.Point[
|
|
9053
|
-
for (let
|
|
9063
|
+
for (const _ in C.Point) {
|
|
9064
|
+
const T = C.Point[_];
|
|
9065
|
+
for (let k = 0; k < ((L = T.lng) == null ? void 0 : L.length); k++)
|
|
9054
9066
|
v.push(
|
|
9055
|
-
H.point([T.lng[
|
|
9056
|
-
val: Number(T.val[
|
|
9067
|
+
H.point([T.lng[k], _], {
|
|
9068
|
+
val: Number(T.val[k])
|
|
9057
9069
|
})
|
|
9058
9070
|
);
|
|
9059
9071
|
}
|
|
@@ -9065,25 +9077,25 @@ const bn = {
|
|
|
9065
9077
|
if (this.weatherLayers[b].data)
|
|
9066
9078
|
I = this.weatherLayers[b].data;
|
|
9067
9079
|
else {
|
|
9068
|
-
|
|
9080
|
+
A = !0;
|
|
9069
9081
|
const C = this.weatherLayers[b].raw;
|
|
9070
9082
|
if (C) {
|
|
9071
9083
|
const v = [];
|
|
9072
|
-
for (const
|
|
9073
|
-
const T = C.LineString[
|
|
9074
|
-
for (const
|
|
9084
|
+
for (const _ in C.LineString) {
|
|
9085
|
+
const T = C.LineString[_];
|
|
9086
|
+
for (const k of T)
|
|
9075
9087
|
v.push(
|
|
9076
|
-
H.lineString(
|
|
9077
|
-
val: Number(
|
|
9088
|
+
H.lineString(k, {
|
|
9089
|
+
val: Number(_)
|
|
9078
9090
|
})
|
|
9079
9091
|
);
|
|
9080
9092
|
}
|
|
9081
|
-
for (const
|
|
9082
|
-
C.Point[
|
|
9093
|
+
for (const _ in C.Point)
|
|
9094
|
+
C.Point[_].lng.forEach((T, k) => {
|
|
9083
9095
|
T = G.convertToStdLng(T), v.push(
|
|
9084
|
-
H.point([T,
|
|
9085
|
-
val: C.Point[
|
|
9086
|
-
type: C.Point[
|
|
9096
|
+
H.point([T, _], {
|
|
9097
|
+
val: C.Point[_].val[k],
|
|
9098
|
+
type: C.Point[_].type[k]
|
|
9087
9099
|
})
|
|
9088
9100
|
);
|
|
9089
9101
|
});
|
|
@@ -9092,7 +9104,7 @@ const bn = {
|
|
|
9092
9104
|
}
|
|
9093
9105
|
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
9094
9106
|
}
|
|
9095
|
-
I.length && (this.weatherLayers[b].data = H.featureCollection(I)),
|
|
9107
|
+
I.length && (this.weatherLayers[b].data = H.featureCollection(I)), A && (this.weatherLayers[b].version = Math.random() + 1);
|
|
9096
9108
|
}
|
|
9097
9109
|
}
|
|
9098
9110
|
},
|
|
@@ -9135,7 +9147,7 @@ const bn = {
|
|
|
9135
9147
|
}, Rn = { class: "text-body-1 py-2" }, On = { class: "text-body-1 font-weight-medium" }, Bn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label mb-3" }, jn = { class: "text-body-1 font-weight-medium" }, Nn = { class: "text-body-2 text-label" }, Fn = { class: "text-body-2 text-label mb-3" }, Hn = { class: "text-body-1 py-2" }, Un = { class: "text-body-1 font-weight-medium" }, Wn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label mb-3" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Yn = { class: "text-body-1 py-2" }, Kn = { class: "text-body-1 font-weight-medium" }, Xn = { class: "text-body-2 text-label" }, $n = { class: "text-body-2 text-label mb-3" };
|
|
9136
9148
|
function Qn(t, e, o, i, a, r) {
|
|
9137
9149
|
var pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e;
|
|
9138
|
-
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"),
|
|
9150
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), P = x("VSwitch"), z = x("VCardTitle"), L = x("VCardItem"), b = x("VCheckbox"), A = x("VRadio"), I = x("VBtnToggle"), C = x("IdmWindBarb"), v = x("IdmSigWaveHeight"), _ = x("IdmCurrentDirection"), T = x("IdmPrmsl"), k = x("IdmWindParticle"), R = x("IdmCurrentParticle"), V = x("IdmWave"), K = x("IdmSwell"), X = x("IdmIceEdge"), Z = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"), de = x("IdmTemp");
|
|
9139
9151
|
return y(), S("div", wn, [
|
|
9140
9152
|
l("div", {
|
|
9141
9153
|
class: "menu-bar-box transition pa-1",
|
|
@@ -9190,7 +9202,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9190
9202
|
_: 1
|
|
9191
9203
|
})
|
|
9192
9204
|
], 4),
|
|
9193
|
-
a.legendToggle ? (y(),
|
|
9205
|
+
a.legendToggle ? (y(), D(w, {
|
|
9194
9206
|
key: 0,
|
|
9195
9207
|
width: "435",
|
|
9196
9208
|
elevation: "16",
|
|
@@ -9203,7 +9215,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9203
9215
|
e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
9204
9216
|
d(g, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
9205
9217
|
default: u(() => [
|
|
9206
|
-
(y(!0), S(be, null, we(a.legend.barbs, (U, oe) => (y(),
|
|
9218
|
+
(y(!0), S(be, null, we(a.legend.barbs, (U, oe) => (y(), D(n, {
|
|
9207
9219
|
key: U,
|
|
9208
9220
|
cols: "6",
|
|
9209
9221
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
@@ -9235,7 +9247,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9235
9247
|
style: { width: "100px" }
|
|
9236
9248
|
}, {
|
|
9237
9249
|
default: u(() => [
|
|
9238
|
-
(y(!0), S(be, null, we(a.legend.sigWaveHeight, (U, oe) => (y(),
|
|
9250
|
+
(y(!0), S(be, null, we(a.legend.sigWaveHeight, (U, oe) => (y(), D(n, {
|
|
9239
9251
|
key: oe,
|
|
9240
9252
|
cols: "12",
|
|
9241
9253
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
@@ -9267,7 +9279,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9267
9279
|
style: { width: "110px" }
|
|
9268
9280
|
}, {
|
|
9269
9281
|
default: u(() => [
|
|
9270
|
-
(y(!0), S(be, null, we(a.legend.current, (U, oe) => (y(),
|
|
9282
|
+
(y(!0), S(be, null, we(a.legend.current, (U, oe) => (y(), D(n, {
|
|
9271
9283
|
key: oe,
|
|
9272
9284
|
cols: "12",
|
|
9273
9285
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
@@ -9303,7 +9315,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9303
9315
|
l("div", Sn, [
|
|
9304
9316
|
l("div", In, [
|
|
9305
9317
|
l("div", Mn, h(t.$t("weather.weather")), 1),
|
|
9306
|
-
d(
|
|
9318
|
+
d(P, {
|
|
9307
9319
|
modelValue: a.autoActive,
|
|
9308
9320
|
"onUpdate:modelValue": e[1] || (e[1] = (U) => a.autoActive = U),
|
|
9309
9321
|
class: "small-switch",
|
|
@@ -9334,9 +9346,9 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9334
9346
|
elevation: "0"
|
|
9335
9347
|
}, {
|
|
9336
9348
|
default: u(() => [
|
|
9337
|
-
d(
|
|
9349
|
+
d(L, { class: "border-b-thin" }, {
|
|
9338
9350
|
default: u(() => [
|
|
9339
|
-
d(
|
|
9351
|
+
d(z, {
|
|
9340
9352
|
class: "text-subtitle-1 font-weight-medium",
|
|
9341
9353
|
style: { "font-size": "16px !important" }
|
|
9342
9354
|
}, {
|
|
@@ -9350,7 +9362,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9350
9362
|
}),
|
|
9351
9363
|
d(p, { class: "py-2" }, {
|
|
9352
9364
|
default: u(() => [
|
|
9353
|
-
(y(!0), S(be, null, we(a.tagLayers.filter((U) => U.overlays), (U) => (y(),
|
|
9365
|
+
(y(!0), S(be, null, we(a.tagLayers.filter((U) => U.overlays), (U) => (y(), D(b, {
|
|
9354
9366
|
key: U.key,
|
|
9355
9367
|
modelValue: a.checkList,
|
|
9356
9368
|
"onUpdate:modelValue": e[2] || (e[2] = (oe) => a.checkList = oe),
|
|
@@ -9374,9 +9386,9 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9374
9386
|
elevation: "0"
|
|
9375
9387
|
}, {
|
|
9376
9388
|
default: u(() => [
|
|
9377
|
-
d(
|
|
9389
|
+
d(L, { class: "border-b-thin" }, {
|
|
9378
9390
|
default: u(() => [
|
|
9379
|
-
d(
|
|
9391
|
+
d(z, {
|
|
9380
9392
|
class: "text-subtitle-1 font-weight-medium",
|
|
9381
9393
|
style: { "font-size": "16px !important" }
|
|
9382
9394
|
}, {
|
|
@@ -9393,7 +9405,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9393
9405
|
(y(!0), S(be, null, we(a.tagLayers.filter((U) => !U.overlays && U.key !== "ice-thickness"), (U) => (y(), S(be, {
|
|
9394
9406
|
key: U.key
|
|
9395
9407
|
}, [
|
|
9396
|
-
d(
|
|
9408
|
+
d(A, {
|
|
9397
9409
|
modelValue: a.renderKey,
|
|
9398
9410
|
"onUpdate:modelValue": e[3] || (e[3] = (oe) => a.renderKey = oe),
|
|
9399
9411
|
label: t.$t(`weather.${U.locale}`),
|
|
@@ -9408,7 +9420,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9408
9420
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
9409
9421
|
a.renderKey === "wind-particle" && U.key === "wind-particle" ? (y(), S("div", An, [
|
|
9410
9422
|
l("span", null, h(t.$t("weather.particleAnimatiom")), 1),
|
|
9411
|
-
d(
|
|
9423
|
+
d(P, {
|
|
9412
9424
|
modelValue: a.showWindParticle,
|
|
9413
9425
|
"onUpdate:modelValue": e[4] || (e[4] = (oe) => a.showWindParticle = oe),
|
|
9414
9426
|
label: "",
|
|
@@ -9422,7 +9434,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9422
9434
|
])) : O("", !0),
|
|
9423
9435
|
a.renderKey === "current-particle" && U.key === "current-particle" ? (y(), S("div", Dn, [
|
|
9424
9436
|
l("span", null, h(t.$t("weather.particleAnimatiom")), 1),
|
|
9425
|
-
d(
|
|
9437
|
+
d(P, {
|
|
9426
9438
|
modelValue: a.showCurrentParticle,
|
|
9427
9439
|
"onUpdate:modelValue": e[5] || (e[5] = (oe) => a.showCurrentParticle = oe),
|
|
9428
9440
|
label: "",
|
|
@@ -9434,7 +9446,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9434
9446
|
"hide-details": ""
|
|
9435
9447
|
}, null, 8, ["modelValue"])
|
|
9436
9448
|
])) : O("", !0),
|
|
9437
|
-
a.renderKey === "ice-forecast" && U.key === "ice-forecast" ? (y(),
|
|
9449
|
+
a.renderKey === "ice-forecast" && U.key === "ice-forecast" ? (y(), D(I, {
|
|
9438
9450
|
key: 2,
|
|
9439
9451
|
modelValue: a.iceToggleValue,
|
|
9440
9452
|
"onUpdate:modelValue": e[6] || (e[6] = (oe) => a.iceToggleValue = oe),
|
|
@@ -9489,9 +9501,9 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9489
9501
|
elevation: "0"
|
|
9490
9502
|
}, {
|
|
9491
9503
|
default: u(() => [
|
|
9492
|
-
d(
|
|
9504
|
+
d(L, { class: "border-b-thin" }, {
|
|
9493
9505
|
default: u(() => [
|
|
9494
|
-
d(
|
|
9506
|
+
d(z, {
|
|
9495
9507
|
class: "text-subtitle-1 font-weight-medium",
|
|
9496
9508
|
style: { "font-size": "16px !important" }
|
|
9497
9509
|
}, {
|
|
@@ -9536,7 +9548,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9536
9548
|
})
|
|
9537
9549
|
], 2)
|
|
9538
9550
|
], 6),
|
|
9539
|
-
o.map ? (y(),
|
|
9551
|
+
o.map ? (y(), D(C, B({
|
|
9540
9552
|
key: 1,
|
|
9541
9553
|
ref: "windBarb",
|
|
9542
9554
|
map: o.map,
|
|
@@ -9545,7 +9557,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9545
9557
|
wind: (pe = a.weatherLayers) == null ? void 0 : pe.wind,
|
|
9546
9558
|
"menu-toggle": o.menuToggle
|
|
9547
9559
|
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : O("", !0),
|
|
9548
|
-
o.map ? (y(),
|
|
9560
|
+
o.map ? (y(), D(v, B({
|
|
9549
9561
|
key: 2,
|
|
9550
9562
|
map: o.map,
|
|
9551
9563
|
"before-layer": "empty-layer-2",
|
|
@@ -9553,7 +9565,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9553
9565
|
"menu-toggle": o.menuToggle,
|
|
9554
9566
|
"active-weather-layers": a.activeWeatherLayers
|
|
9555
9567
|
}, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : O("", !0),
|
|
9556
|
-
o.map ? (y(),
|
|
9568
|
+
o.map ? (y(), D(_, B({
|
|
9557
9569
|
key: 3,
|
|
9558
9570
|
map: o.map,
|
|
9559
9571
|
"map-feather": o.mapFeather,
|
|
@@ -9561,7 +9573,7 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9561
9573
|
current: ($ = a.weatherLayers) == null ? void 0 : $.current,
|
|
9562
9574
|
"menu-toggle": o.menuToggle
|
|
9563
9575
|
}, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : O("", !0),
|
|
9564
|
-
o.map ? (y(),
|
|
9576
|
+
o.map ? (y(), D(T, B({
|
|
9565
9577
|
key: 4,
|
|
9566
9578
|
map: o.map,
|
|
9567
9579
|
"before-layer": "empty-layer-2",
|
|
@@ -9569,68 +9581,68 @@ function Qn(t, e, o, i, a, r) {
|
|
|
9569
9581
|
"menu-toggle": o.menuToggle,
|
|
9570
9582
|
"active-weather-layers": a.activeWeatherLayers
|
|
9571
9583
|
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : O("", !0),
|
|
9572
|
-
o.map ? (y(),
|
|
9584
|
+
o.map ? (y(), D(k, B({
|
|
9573
9585
|
key: 5,
|
|
9574
9586
|
viewport: a.viewport,
|
|
9575
9587
|
factor: (ue = a.weatherLayers) == null ? void 0 : ue["wind-particle"],
|
|
9576
9588
|
"menu-toggle": o.menuToggle
|
|
9577
9589
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
9578
|
-
o.map ? (y(),
|
|
9590
|
+
o.map ? (y(), D(R, B({
|
|
9579
9591
|
key: 6,
|
|
9580
9592
|
viewport: a.viewport,
|
|
9581
9593
|
factor: (ne = a.weatherLayers) == null ? void 0 : ne["current-particle"],
|
|
9582
9594
|
"menu-toggle": o.menuToggle
|
|
9583
9595
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
9584
|
-
o.map ? (y(),
|
|
9596
|
+
o.map ? (y(), D(V, B({
|
|
9585
9597
|
key: 7,
|
|
9586
9598
|
viewport: a.viewport,
|
|
9587
9599
|
factor: (F = a.weatherLayers) == null ? void 0 : F["sig-wave"],
|
|
9588
9600
|
"menu-toggle": o.menuToggle
|
|
9589
9601
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
9590
|
-
o.map ? (y(),
|
|
9602
|
+
o.map ? (y(), D(K, B({
|
|
9591
9603
|
key: 8,
|
|
9592
9604
|
map: o.map,
|
|
9593
9605
|
swell: (ce = a.weatherLayers) == null ? void 0 : ce.swell,
|
|
9594
9606
|
"menu-toggle": o.menuToggle,
|
|
9595
9607
|
"active-weather-layers": a.activeWeatherLayers
|
|
9596
9608
|
}, t.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) : O("", !0),
|
|
9597
|
-
o.map ? (y(),
|
|
9609
|
+
o.map ? (y(), D(X, B({
|
|
9598
9610
|
key: 9,
|
|
9599
9611
|
viewport: a.viewport,
|
|
9600
9612
|
factor: (xe = a.weatherLayers) == null ? void 0 : xe["ice-edge"],
|
|
9601
9613
|
"menu-toggle": o.menuToggle
|
|
9602
9614
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
9603
|
-
o.map ? (y(),
|
|
9615
|
+
o.map ? (y(), D(Z, B({
|
|
9604
9616
|
key: 10,
|
|
9605
9617
|
viewport: a.viewport,
|
|
9606
9618
|
factor: (Le = a.weatherLayers) == null ? void 0 : Le["ice-cover"],
|
|
9607
9619
|
"menu-toggle": o.menuToggle
|
|
9608
9620
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
9609
|
-
o.map ? (y(),
|
|
9621
|
+
o.map ? (y(), D(J, B({
|
|
9610
9622
|
key: 11,
|
|
9611
9623
|
viewport: a.viewport,
|
|
9612
9624
|
factor: (Pe = a.weatherLayers) == null ? void 0 : Pe["ice-thickness"],
|
|
9613
9625
|
"menu-toggle": o.menuToggle
|
|
9614
9626
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
9615
|
-
o.map ? (y(),
|
|
9627
|
+
o.map ? (y(), D(ee, B({
|
|
9616
9628
|
key: 12,
|
|
9617
9629
|
viewport: a.viewport,
|
|
9618
9630
|
factor: (Ae = a.weatherLayers) == null ? void 0 : Ae.precip3h,
|
|
9619
9631
|
"menu-toggle": o.menuToggle
|
|
9620
9632
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
9621
|
-
o.map ? (y(),
|
|
9633
|
+
o.map ? (y(), D(Q, B({
|
|
9622
9634
|
key: 13,
|
|
9623
9635
|
viewport: a.viewport,
|
|
9624
9636
|
factor: (De = a.weatherLayers) == null ? void 0 : De.visibility,
|
|
9625
9637
|
"menu-toggle": o.menuToggle
|
|
9626
9638
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
9627
|
-
o.map ? (y(),
|
|
9639
|
+
o.map ? (y(), D(re, B({
|
|
9628
9640
|
key: 14,
|
|
9629
9641
|
viewport: a.viewport,
|
|
9630
9642
|
factor: (Re = a.weatherLayers) == null ? void 0 : Re["water-temp"],
|
|
9631
9643
|
"menu-toggle": o.menuToggle
|
|
9632
9644
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : O("", !0),
|
|
9633
|
-
o.map ? (y(),
|
|
9645
|
+
o.map ? (y(), D(de, B({
|
|
9634
9646
|
key: 15,
|
|
9635
9647
|
viewport: a.viewport,
|
|
9636
9648
|
factor: (_e = a.weatherLayers) == null ? void 0 : _e.temp,
|
|
@@ -9956,11 +9968,11 @@ class Za {
|
|
|
9956
9968
|
const a = e.toLowerCase().split(","), r = [], s = [];
|
|
9957
9969
|
for (const c of a) {
|
|
9958
9970
|
let n = eo.find((p) => {
|
|
9959
|
-
var f, w,
|
|
9960
|
-
return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((
|
|
9971
|
+
var f, w, P;
|
|
9972
|
+
return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((P = p.name) == null ? void 0 : P.toLowerCase()) === c;
|
|
9961
9973
|
}), g = to.find((p) => {
|
|
9962
|
-
var f, w,
|
|
9963
|
-
return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((
|
|
9974
|
+
var f, w, P;
|
|
9975
|
+
return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((P = p.name) == null ? void 0 : P.toLowerCase()) === c;
|
|
9964
9976
|
});
|
|
9965
9977
|
n = n || eo.find((p) => {
|
|
9966
9978
|
var f, w;
|
|
@@ -9985,7 +9997,7 @@ class Za {
|
|
|
9985
9997
|
}), a;
|
|
9986
9998
|
}
|
|
9987
9999
|
static pickHourly(e, o) {
|
|
9988
|
-
var i, a, r, s, c, n, g, p, f, w,
|
|
10000
|
+
var i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, oe, je, Ie;
|
|
9989
10001
|
const ge = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), te = Ce.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), le = Ce.clone().add((p = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
|
|
9990
10002
|
if (ge.isBetween(te, le, "millisecond", "[]")) {
|
|
9991
10003
|
const j = ge.utc().diff(te, "h", !1);
|
|
@@ -9999,22 +10011,22 @@ class Za {
|
|
|
9999
10011
|
for (let Te = j - (j - 1) % 6; Te <= j; Te++)
|
|
10000
10012
|
Ee += (w = q == null ? void 0 : q.precipitation) == null ? void 0 : w.at(Te);
|
|
10001
10013
|
ye = {
|
|
10002
|
-
temp: (
|
|
10003
|
-
apparentTemp: (
|
|
10004
|
-
rh: (
|
|
10014
|
+
temp: (P = q == null ? void 0 : q.temperature_2m) == null ? void 0 : P.at(j),
|
|
10015
|
+
apparentTemp: (z = q == null ? void 0 : q.apparent_temperature) == null ? void 0 : z.at(j),
|
|
10016
|
+
rh: (L = q == null ? void 0 : q.relative_humidity_2m) == null ? void 0 : L.at(j),
|
|
10005
10017
|
dp: (b = q == null ? void 0 : q.dew_point_2m) == null ? void 0 : b.at(j),
|
|
10006
10018
|
precip: {
|
|
10007
|
-
probability: (
|
|
10019
|
+
probability: (A = q == null ? void 0 : q.precipitation_probability) == null ? void 0 : A.at(j),
|
|
10008
10020
|
sum: (I = q == null ? void 0 : q.precipitation) == null ? void 0 : I.at(j),
|
|
10009
10021
|
sum3Hours: Math.round(Be * 100) / 100,
|
|
10010
10022
|
sum6Hours: Math.round(Ee * 100) / 100
|
|
10011
10023
|
},
|
|
10012
10024
|
pmsl: (C = q == null ? void 0 : q.pressure_msl) == null ? void 0 : C.at(j),
|
|
10013
10025
|
psurf: (v = q == null ? void 0 : q.surface_pressure) == null ? void 0 : v.at(j),
|
|
10014
|
-
code: (
|
|
10026
|
+
code: (_ = q == null ? void 0 : q.weather_code) == null ? void 0 : _.at(j),
|
|
10015
10027
|
visibility: this.m2nm((T = q == null ? void 0 : q.visibility) == null ? void 0 : T.at(j)),
|
|
10016
10028
|
wind: {
|
|
10017
|
-
speed: (
|
|
10029
|
+
speed: (k = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : k.at(j),
|
|
10018
10030
|
kts: (R = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : R.at(j),
|
|
10019
10031
|
degree: (V = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : V.at(j),
|
|
10020
10032
|
bearing: ((K = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : K.at(j)) !== null ? (((X = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : X.at(j)) + 180) % 360 : null,
|
|
@@ -10094,7 +10106,7 @@ class Za {
|
|
|
10094
10106
|
};
|
|
10095
10107
|
}
|
|
10096
10108
|
static pickDaily(e, o) {
|
|
10097
|
-
var i, a, r, s, c, n, g, p, f, w,
|
|
10109
|
+
var i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De;
|
|
10098
10110
|
const Re = typeof o == "string" ? M(o) : o, _e = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, oe = M((r = (a = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), je = M((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ie = [];
|
|
10099
10111
|
if (Re.isBetween(oe, je, "millisecond", "[]")) {
|
|
10100
10112
|
let ge, fe;
|
|
@@ -10110,21 +10122,21 @@ class Za {
|
|
|
10110
10122
|
mean: (w = te.temperature_2m_mean) == null ? void 0 : w.at(W)
|
|
10111
10123
|
},
|
|
10112
10124
|
apparentTemp: {
|
|
10113
|
-
max: (
|
|
10114
|
-
min: (
|
|
10125
|
+
max: (P = te.apparent_temperature_max) == null ? void 0 : P.at(W),
|
|
10126
|
+
min: (z = te.apparent_temperature_min) == null ? void 0 : z.at(W)
|
|
10115
10127
|
},
|
|
10116
10128
|
precip: {
|
|
10117
|
-
sum: (
|
|
10129
|
+
sum: (L = te.precipitation_sum) == null ? void 0 : L.at(W),
|
|
10118
10130
|
rainSum: (b = te.rain_sum) == null ? void 0 : b.at(W),
|
|
10119
|
-
snowfallSum: (
|
|
10131
|
+
snowfallSum: (A = te.snowfall_sum) == null ? void 0 : A.at(W),
|
|
10120
10132
|
showersSum: (I = te.showers_sum) == null ? void 0 : I.at(W),
|
|
10121
10133
|
hours: (C = te.precipitation_hours) == null ? void 0 : C.at(W),
|
|
10122
10134
|
probability: (v = te.precipitation_probability_max) == null ? void 0 : v.at(W)
|
|
10123
10135
|
},
|
|
10124
10136
|
rh: {
|
|
10125
|
-
max: (
|
|
10137
|
+
max: (_ = te.relative_humidity_2m_max) == null ? void 0 : _.at(W),
|
|
10126
10138
|
min: (T = te.relative_humidity_2m_min) == null ? void 0 : T.at(W),
|
|
10127
|
-
mean: (
|
|
10139
|
+
mean: (k = te.relative_humidity_2m_mean) == null ? void 0 : k.at(W)
|
|
10128
10140
|
},
|
|
10129
10141
|
wind: {
|
|
10130
10142
|
speed: (R = te.wind_speed_10m_max) == null ? void 0 : R.at(W),
|
|
@@ -10651,11 +10663,23 @@ const ec = {
|
|
|
10651
10663
|
};
|
|
10652
10664
|
},
|
|
10653
10665
|
computed: {
|
|
10666
|
+
hoverLayers() {
|
|
10667
|
+
return [
|
|
10668
|
+
this.forecastNameLayer,
|
|
10669
|
+
this.forecastLayer,
|
|
10670
|
+
this.historyLayer,
|
|
10671
|
+
this.forecastModelLayer,
|
|
10672
|
+
this.pointCircleLayer,
|
|
10673
|
+
this.pointLabelLayer,
|
|
10674
|
+
this.historyPointCircleLayer,
|
|
10675
|
+
this.historyPointLabelLayer
|
|
10676
|
+
];
|
|
10677
|
+
},
|
|
10654
10678
|
computeTime() {
|
|
10655
10679
|
return (t) => {
|
|
10656
10680
|
if (t) {
|
|
10657
10681
|
const e = M(t).utcOffset(this.timeZone), o = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
10658
|
-
return
|
|
10682
|
+
return `${e == null ? void 0 : e.format("MMM-DD/HHmm")} ( UTC${o} ) ${e == null ? void 0 : e.fromNow()} `;
|
|
10659
10683
|
}
|
|
10660
10684
|
return "-";
|
|
10661
10685
|
};
|
|
@@ -10703,8 +10727,8 @@ const ec = {
|
|
|
10703
10727
|
}
|
|
10704
10728
|
},
|
|
10705
10729
|
timeZone: {
|
|
10706
|
-
handler() {
|
|
10707
|
-
this.handleRefresh();
|
|
10730
|
+
handler(t, e) {
|
|
10731
|
+
t !== e && this.handleRefresh();
|
|
10708
10732
|
}
|
|
10709
10733
|
}
|
|
10710
10734
|
},
|
|
@@ -10734,16 +10758,16 @@ const ec = {
|
|
|
10734
10758
|
},
|
|
10735
10759
|
responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
|
|
10736
10760
|
}).then((p) => {
|
|
10737
|
-
var
|
|
10738
|
-
const f = Va.convert2Geojson(((
|
|
10739
|
-
((
|
|
10761
|
+
var P, z, L;
|
|
10762
|
+
const f = Va.convert2Geojson(((P = p == null ? void 0 : p.data) == null ? void 0 : P.data) || (p == null ? void 0 : p.data));
|
|
10763
|
+
((L = (z = p == null ? void 0 : p.config) == null ? void 0 : z.headers) == null ? void 0 : L.key) && f && (this.tropicals = {
|
|
10740
10764
|
data: f,
|
|
10741
10765
|
active: !0,
|
|
10742
10766
|
cached: !0,
|
|
10743
10767
|
type: "json",
|
|
10744
10768
|
etime: n.data.etime,
|
|
10745
10769
|
version: Math.random() + 1
|
|
10746
|
-
}
|
|
10770
|
+
});
|
|
10747
10771
|
}).catch((p) => {
|
|
10748
10772
|
console.log(`[${key}] fetch layer error: ${p}`);
|
|
10749
10773
|
});
|
|
@@ -10759,28 +10783,15 @@ const ec = {
|
|
|
10759
10783
|
}), this.handleInit();
|
|
10760
10784
|
},
|
|
10761
10785
|
handleInit() {
|
|
10762
|
-
var t, e, o, i, a, r, s, c, n, g;
|
|
10763
|
-
this.tropicals && (this.handleRender(), (t = this.map) == null || t.on(
|
|
10764
|
-
"click",
|
|
10765
|
-
[
|
|
10766
|
-
this.forecastNameLayer,
|
|
10767
|
-
this.forecastLayer,
|
|
10768
|
-
this.historyLayer,
|
|
10769
|
-
this.forecastModelLayer,
|
|
10770
|
-
this.pointCircleLayer,
|
|
10771
|
-
this.pointLabelLayer,
|
|
10772
|
-
this.historyPointCircleLayer,
|
|
10773
|
-
this.historyPointLabelLayer
|
|
10774
|
-
],
|
|
10775
|
-
this.handleClick
|
|
10776
|
-
)), ((i = (o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) == null ? void 0 : i.length) > 0 ? (s = (r = (a = this.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmBottomBar) == null || s.handleToggle("tropical", !0) : (g = (n = (c = this.$parent) == null ? void 0 : c.$refs) == null ? void 0 : n.idmBottomBar) == null || g.handleToggle("tropical", !1);
|
|
10786
|
+
var t, e, o, i, a, r, s, c, n, g, p, f;
|
|
10787
|
+
this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.hoverLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (f = (p = (g = this.$parent) == null ? void 0 : g.$refs) == null ? void 0 : p.idmBottomBar) == null || f.handleToggle("tropical", !1);
|
|
10777
10788
|
},
|
|
10778
10789
|
handleRender() {
|
|
10779
10790
|
var e, o, i, a, r, s, c, n, g, p;
|
|
10780
|
-
if (this.tropicals) {
|
|
10791
|
+
if (this.tropicals && this.map) {
|
|
10781
10792
|
const f = (/* @__PURE__ */ new Date()).valueOf();
|
|
10782
|
-
let w = 0,
|
|
10783
|
-
(e = this.map) != null && e.getSource(this.source) ? ((i = this.map) == null || i.getSource(this.source).setData((o = this.tropicals) != null && o.active ? this.tropicals.data : this.empty),
|
|
10793
|
+
let w = 0, P = 0;
|
|
10794
|
+
(e = this.map) != null && e.getSource(this.source) ? ((i = this.map) == null || i.getSource(this.source).setData((o = this.tropicals) != null && o.active ? this.tropicals.data : this.empty), P = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropicals] update elapsed: ", P, ", total: ", w += P)) : (this.map.addSource(this.source, {
|
|
10784
10795
|
type: "geojson",
|
|
10785
10796
|
data: (a = this.tropicals) != null && a.active ? (r = this.tropicals) == null ? void 0 : r.data : this.empty
|
|
10786
10797
|
}), this.map.addLayer({
|
|
@@ -10877,7 +10888,7 @@ const ec = {
|
|
|
10877
10888
|
],
|
|
10878
10889
|
"text-halo-width": 4
|
|
10879
10890
|
}
|
|
10880
|
-
}),
|
|
10891
|
+
}), P = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", P, ", total: ", w += P)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((n = this.map) == null || n.getSource(this.clusterSource).setData((c = this.tropicals) != null && c.active ? this.tropicals.data : this.empty), P = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] update elapsed: ", P, ", total: ", w += P)) : (this.map.addSource(this.clusterSource, {
|
|
10881
10892
|
type: "geojson",
|
|
10882
10893
|
data: (g = this.tropicals) != null && g.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
10883
10894
|
// cluster: true,
|
|
@@ -10993,31 +11004,18 @@ const ec = {
|
|
|
10993
11004
|
"text-halo-color": "#ffffff",
|
|
10994
11005
|
"text-halo-width": 1
|
|
10995
11006
|
}
|
|
10996
|
-
}),
|
|
11007
|
+
}), P = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", P, ", total: ", w += P));
|
|
10997
11008
|
}
|
|
10998
11009
|
this.handleDrawCircle();
|
|
10999
11010
|
const t = Va.interpolate(this.tropicals, 1);
|
|
11000
11011
|
this.interpolateData = JSON.parse(JSON.stringify(t)), this.handleDateChange();
|
|
11001
11012
|
},
|
|
11002
11013
|
handleClear() {
|
|
11003
|
-
var t, e;
|
|
11004
|
-
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), (t = this.interpolateMarkers) == null || t.forEach((
|
|
11005
|
-
"click",
|
|
11006
|
-
[
|
|
11007
|
-
this.forecastNameLayer,
|
|
11008
|
-
this.forecastLayer,
|
|
11009
|
-
this.historyLayer,
|
|
11010
|
-
this.forecastModelLayer,
|
|
11011
|
-
this.pointCircleLayer,
|
|
11012
|
-
this.pointLabelLayer,
|
|
11013
|
-
this.historyPointCircleLayer,
|
|
11014
|
-
this.historyPointLabelLayer
|
|
11015
|
-
],
|
|
11016
|
-
this.handleClick
|
|
11017
|
-
), this.showTropicalsInfo = !1;
|
|
11014
|
+
var t, e, o, i, a;
|
|
11015
|
+
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), (t = this.interpolateMarkers) == null || t.forEach((r) => r == null ? void 0 : r.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)), (e = this.map) == null || e.off("click", this.hoverLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.showTropicalsInfo = !1, (a = this.activeTropicalsMarker) == null || a.remove(), this.activeTropicalsMarker = void 0;
|
|
11018
11016
|
},
|
|
11019
11017
|
handleDateChange() {
|
|
11020
|
-
var t, e, o, i, a, r, s, c, n, g, p, f, w,
|
|
11018
|
+
var t, e, o, i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q;
|
|
11021
11019
|
if ((t = this.interpolateMarkers) == null || t.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
11022
11020
|
const re = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter(($) => $.properties.date === (re == null ? void 0 : re.format()) && !$.properties.disabled), pe = this.handleComputePolygons(de), se = H.featureCollection([...de]);
|
|
11023
11021
|
pe.forEach(($) => {
|
|
@@ -11039,7 +11037,7 @@ const ec = {
|
|
|
11039
11037
|
for (const $ of de)
|
|
11040
11038
|
if (!$.properties.disabled) {
|
|
11041
11039
|
let ae = "#f44336";
|
|
11042
|
-
((c = (s = $.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = $.properties) == null ? void 0 : n.wind) != null && g.kts) ? ae = "#03f869" : ((f = (p = $.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((
|
|
11040
|
+
((c = (s = $.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = $.properties) == null ? void 0 : n.wind) != null && g.kts) ? ae = "#03f869" : ((f = (p = $.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((P = (w = $.properties) == null ? void 0 : w.wind) == null ? void 0 : P.kts) < 47 ? ae = "#f2f202" : ((L = (z = $.properties) == null ? void 0 : z.wind) == null ? void 0 : L.kts) >= 47 && ((A = (b = $.properties) == null ? void 0 : b.wind) == null ? void 0 : A.kts) < 63 ? ae = "#ff9100" : ((C = (I = $.properties) == null ? void 0 : I.wind) == null ? void 0 : C.kts) >= 63 && ((_ = (v = $.properties) == null ? void 0 : v.wind) == null ? void 0 : _.kts) < 79 ? ae = "#f44336" : ((k = (T = $.properties) == null ? void 0 : T.wind) == null ? void 0 : k.kts) >= 79 && ((V = (R = $.properties) == null ? void 0 : R.wind) == null ? void 0 : V.kts) < 94 ? ae = "#f903d0" : ((X = (K = $.properties) == null ? void 0 : K.wind) == null ? void 0 : X.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
|
|
11043
11041
|
const ue = `<svg t="1719918955501"
|
|
11044
11042
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
11045
11043
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -11063,26 +11061,32 @@ const ec = {
|
|
|
11063
11061
|
(ee = this.map) != null && ee.getSource(this.interpolateSource) && ((Q = this.map) == null || Q.getSource(this.interpolateSource).setData(this.empty));
|
|
11064
11062
|
},
|
|
11065
11063
|
handleClick(t) {
|
|
11066
|
-
var r, s, c, n, g, p, f
|
|
11067
|
-
const e = t.features[0], o = (
|
|
11068
|
-
(
|
|
11069
|
-
var
|
|
11070
|
-
return
|
|
11064
|
+
var a, r, s, c, n, g, p, f;
|
|
11065
|
+
const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
|
|
11066
|
+
(w) => {
|
|
11067
|
+
var P;
|
|
11068
|
+
return w.geometry.type === "LineString" && w.properties.type === "forecast" && w.properties.name === ((P = e == null ? void 0 : e.properties) == null ? void 0 : P.name);
|
|
11071
11069
|
}
|
|
11072
|
-
), i = (
|
|
11073
|
-
(
|
|
11074
|
-
var
|
|
11075
|
-
return
|
|
11070
|
+
), i = (c = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : c.features.filter(
|
|
11071
|
+
(w) => {
|
|
11072
|
+
var P;
|
|
11073
|
+
return w.geometry.type === "LineString" && w.properties.type === "history" && w.properties.name === ((P = e == null ? void 0 : e.properties) == null ? void 0 : P.name);
|
|
11076
11074
|
}
|
|
11077
11075
|
);
|
|
11078
11076
|
this.activeTropicals = {
|
|
11079
|
-
name: (
|
|
11080
|
-
forecasts: o.map((
|
|
11081
|
-
history: (
|
|
11082
|
-
showCircle: (
|
|
11083
|
-
}, this.showTropicalsInfo = !0
|
|
11084
|
-
|
|
11085
|
-
|
|
11077
|
+
name: (n = e == null ? void 0 : e.properties) == null ? void 0 : n.name,
|
|
11078
|
+
forecasts: o.map((w) => w.properties),
|
|
11079
|
+
history: (g = i[0]) == null ? void 0 : g.properties,
|
|
11080
|
+
showCircle: (f = (p = o[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
|
|
11081
|
+
}, console.log(document.getElementById("idm-tropical-gl4-info").cloneNode(!0)), this.showTropicalsInfo = !0, this.$nextTick(() => {
|
|
11082
|
+
var z, L, b;
|
|
11083
|
+
(z = this.activeTropicalsMarker) == null || z.remove();
|
|
11084
|
+
const w = document.getElementById("idm-tropical-gl4-info").cloneNode(!0), P = (b = (L = w == null ? void 0 : w.children[0]) == null ? void 0 : L.children[1]) == null ? void 0 : b.children[1];
|
|
11085
|
+
P && (P.onclick = () => {
|
|
11086
|
+
var A;
|
|
11087
|
+
this.showTropicalsInfo = !1, (A = this.activeTropicalsMarker) == null || A.remove();
|
|
11088
|
+
}), this.activeTropicalsMarker = new ve.Marker(w).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
11089
|
+
});
|
|
11086
11090
|
},
|
|
11087
11091
|
handleForecastToggle(t) {
|
|
11088
11092
|
var i, a, r, s, c, n;
|
|
@@ -11168,6 +11172,12 @@ const ec = {
|
|
|
11168
11172
|
},
|
|
11169
11173
|
handleNotification(t) {
|
|
11170
11174
|
this.$emit("tropicalNotification", t);
|
|
11175
|
+
},
|
|
11176
|
+
handleHover() {
|
|
11177
|
+
this.map.getCanvas().style.cursor = "pointer";
|
|
11178
|
+
},
|
|
11179
|
+
handleLeave() {
|
|
11180
|
+
this.map.getCanvas().style.cursor = "grab";
|
|
11171
11181
|
}
|
|
11172
11182
|
}
|
|
11173
11183
|
}, tc = { class: "idm-tropical-gl4" }, oc = {
|
|
@@ -11220,11 +11230,11 @@ function Lc(t, e, o, i, a, r) {
|
|
|
11220
11230
|
default: u(() => [
|
|
11221
11231
|
d(n, null, {
|
|
11222
11232
|
default: u(() => {
|
|
11223
|
-
var w,
|
|
11233
|
+
var w, P, z, L, b, A, I, C, v, _;
|
|
11224
11234
|
return [
|
|
11225
11235
|
l("div", ac, [
|
|
11226
11236
|
l("span", ic, h((w = a.activeTropicals) == null ? void 0 : w.name), 1),
|
|
11227
|
-
(
|
|
11237
|
+
(z = (P = a.activeTropicals) == null ? void 0 : P.history) != null && z.level ? (y(), S("span", rc, ", " + h((b = (L = a.activeTropicals) == null ? void 0 : L.history) == null ? void 0 : b.level), 1)) : O("", !0)
|
|
11228
11238
|
]),
|
|
11229
11239
|
d(s, {
|
|
11230
11240
|
icon: "",
|
|
@@ -11241,7 +11251,7 @@ function Lc(t, e, o, i, a, r) {
|
|
|
11241
11251
|
}),
|
|
11242
11252
|
l("div", lc, [
|
|
11243
11253
|
l("span", sc, h(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
11244
|
-
l("span", null, h(r.computeTime(((I = (
|
|
11254
|
+
l("span", null, h(r.computeTime(((I = (A = a.activeTropicals) == null ? void 0 : A.history) == null ? void 0 : I.updated) || ((_ = (v = (C = a.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : v.filter((T) => !T.disabled)[0]) == null ? void 0 : _.date))), 1)
|
|
11245
11255
|
])
|
|
11246
11256
|
];
|
|
11247
11257
|
}),
|
|
@@ -11250,17 +11260,17 @@ function Lc(t, e, o, i, a, r) {
|
|
|
11250
11260
|
d(g),
|
|
11251
11261
|
d(n, { class: "text-body-1" }, {
|
|
11252
11262
|
default: u(() => {
|
|
11253
|
-
var w,
|
|
11263
|
+
var w, P, z, L, b, A, I, C, v;
|
|
11254
11264
|
return [
|
|
11255
11265
|
l("div", nc, [
|
|
11256
11266
|
l("div", cc, [
|
|
11257
11267
|
l("label", mc, h(t.$t("weather.windSpeed")) + " : ", 1),
|
|
11258
|
-
l("span", null, h(((
|
|
11259
|
-
l("span", null, ", BF " + h(r.computeBF(((
|
|
11268
|
+
l("span", null, h(((P = (w = a.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : P.kts) || "-") + " kts", 1),
|
|
11269
|
+
l("span", null, ", BF " + h(r.computeBF(((L = (z = a.activeTropicals) == null ? void 0 : z.history) == null ? void 0 : L.kts) || "-")), 1)
|
|
11260
11270
|
]),
|
|
11261
11271
|
l("div", dc, [
|
|
11262
11272
|
l("label", hc, h(t.$t("tropical.pressure")) + " : ", 1),
|
|
11263
|
-
l("span", null, h(((
|
|
11273
|
+
l("span", null, h(((A = (b = a.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : A.pressure) || "-") + " hPa", 1)
|
|
11264
11274
|
])
|
|
11265
11275
|
]),
|
|
11266
11276
|
l("div", pc, [
|
|
@@ -11276,16 +11286,16 @@ function Lc(t, e, o, i, a, r) {
|
|
|
11276
11286
|
l("div", bc, [
|
|
11277
11287
|
l("label", wc, h(t.$t("weather.forecastModels")) + " : ", 1),
|
|
11278
11288
|
l("div", xc, [
|
|
11279
|
-
(y(!0), S(be, null, we((v = a.activeTropicals) == null ? void 0 : v.forecasts, (
|
|
11289
|
+
(y(!0), S(be, null, we((v = a.activeTropicals) == null ? void 0 : v.forecasts, (_, T) => (y(), D(s, {
|
|
11280
11290
|
key: T,
|
|
11281
11291
|
density: "compact",
|
|
11282
|
-
variant:
|
|
11283
|
-
color:
|
|
11284
|
-
class: We(["model text-none text-body-1",
|
|
11285
|
-
onClick: (
|
|
11292
|
+
variant: _.disabled ? "outlined" : "flat",
|
|
11293
|
+
color: _.disabled ? "" : "primary",
|
|
11294
|
+
class: We(["model text-none text-body-1", _.disabled ? "" : "btn-border-2"]),
|
|
11295
|
+
onClick: (k) => r.handleForecastToggle(_)
|
|
11286
11296
|
}, {
|
|
11287
11297
|
default: u(() => [
|
|
11288
|
-
N(h(
|
|
11298
|
+
N(h(_.model), 1)
|
|
11289
11299
|
]),
|
|
11290
11300
|
_: 2
|
|
11291
11301
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -11315,7 +11325,7 @@ function Lc(t, e, o, i, a, r) {
|
|
|
11315
11325
|
_: 1
|
|
11316
11326
|
}, 8, ["color"]),
|
|
11317
11327
|
l("div", vc, [
|
|
11318
|
-
o.permission & a.helper.LEVEL.Supper ? (y(),
|
|
11328
|
+
o.permission & a.helper.LEVEL.Supper ? (y(), D(s, {
|
|
11319
11329
|
key: 0,
|
|
11320
11330
|
variant: "text",
|
|
11321
11331
|
density: "compact",
|
|
@@ -11569,7 +11579,7 @@ const Pc = {
|
|
|
11569
11579
|
style: { height: "56px" }
|
|
11570
11580
|
};
|
|
11571
11581
|
function Mc(t, e, o, i, a, r) {
|
|
11572
|
-
const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), f = x("VList"), w = x("VCardText"),
|
|
11582
|
+
const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), f = x("VList"), w = x("VCardText"), P = x("VCardActions"), z = x("VCard");
|
|
11573
11583
|
return y(), S("div", Cc, [
|
|
11574
11584
|
d(s, {
|
|
11575
11585
|
text: "",
|
|
@@ -11582,7 +11592,7 @@ function Mc(t, e, o, i, a, r) {
|
|
|
11582
11592
|
]),
|
|
11583
11593
|
_: 1
|
|
11584
11594
|
}, 8, ["onClick"]),
|
|
11585
|
-
a.showDatePicker ? (y(),
|
|
11595
|
+
a.showDatePicker ? (y(), D(z, {
|
|
11586
11596
|
key: 0,
|
|
11587
11597
|
class: "card-box d-flex flex-column"
|
|
11588
11598
|
}, {
|
|
@@ -11592,7 +11602,7 @@ function Mc(t, e, o, i, a, r) {
|
|
|
11592
11602
|
l("div", Tc, [
|
|
11593
11603
|
d(c, {
|
|
11594
11604
|
modelValue: a.currentDate,
|
|
11595
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
11605
|
+
"onUpdate:modelValue": e[0] || (e[0] = (L) => a.currentDate = L),
|
|
11596
11606
|
min: a.dateRange[0],
|
|
11597
11607
|
max: a.dateRange[1],
|
|
11598
11608
|
"mode-icon": () => r.currentYear,
|
|
@@ -11612,11 +11622,11 @@ function Mc(t, e, o, i, a, r) {
|
|
|
11612
11622
|
l("div", Ic, h(a.currentTime), 1),
|
|
11613
11623
|
d(f, { class: "pa-0 flex-1-1-0" }, {
|
|
11614
11624
|
default: u(() => [
|
|
11615
|
-
(y(!0), S(be, null, we(r.hourOptions, (
|
|
11625
|
+
(y(!0), S(be, null, we(r.hourOptions, (L, b) => (y(), D(p, {
|
|
11616
11626
|
key: b,
|
|
11617
|
-
value:
|
|
11627
|
+
value: L,
|
|
11618
11628
|
color: "primary",
|
|
11619
|
-
active: a.currentTime ===
|
|
11629
|
+
active: a.currentTime === L,
|
|
11620
11630
|
rounded: "",
|
|
11621
11631
|
height: "26",
|
|
11622
11632
|
"min-height": "26"
|
|
@@ -11624,10 +11634,10 @@ function Mc(t, e, o, i, a, r) {
|
|
|
11624
11634
|
default: u(() => [
|
|
11625
11635
|
d(g, {
|
|
11626
11636
|
class: "text-body-2 text-center",
|
|
11627
|
-
onClick: (
|
|
11637
|
+
onClick: (A) => a.currentTime = L
|
|
11628
11638
|
}, {
|
|
11629
11639
|
default: u(() => [
|
|
11630
|
-
N(h(
|
|
11640
|
+
N(h(L), 1)
|
|
11631
11641
|
]),
|
|
11632
11642
|
_: 2
|
|
11633
11643
|
}, 1032, ["onClick"])
|
|
@@ -11642,7 +11652,7 @@ function Mc(t, e, o, i, a, r) {
|
|
|
11642
11652
|
_: 1
|
|
11643
11653
|
}),
|
|
11644
11654
|
d(n),
|
|
11645
|
-
d(
|
|
11655
|
+
d(P, {
|
|
11646
11656
|
class: "justify-end pa-0 pr-4",
|
|
11647
11657
|
style: { height: "50px" }
|
|
11648
11658
|
}, {
|
|
@@ -11771,9 +11781,8 @@ const Ac = {
|
|
|
11771
11781
|
currentHourData: {},
|
|
11772
11782
|
positionOffset: void 0,
|
|
11773
11783
|
positionGmt: void 0,
|
|
11774
|
-
|
|
11775
|
-
meteoInfoMarker: void 0
|
|
11776
|
-
positionMarker: void 0
|
|
11784
|
+
positionMarker: void 0,
|
|
11785
|
+
meteoInfoMarker: void 0
|
|
11777
11786
|
};
|
|
11778
11787
|
},
|
|
11779
11788
|
computed: {
|
|
@@ -11863,7 +11872,7 @@ const Ac = {
|
|
|
11863
11872
|
},
|
|
11864
11873
|
submitForm() {
|
|
11865
11874
|
var t;
|
|
11866
|
-
this.showMeteo = !1, (t = this.
|
|
11875
|
+
this.showMeteo = !1, (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, this.$refs.spotForm.validate().then(async (e) => {
|
|
11867
11876
|
var o;
|
|
11868
11877
|
if (e != null && e.valid) {
|
|
11869
11878
|
this.form.lat = (Number(this.form.latDegree ?? 0) + Number(this.form.latMinute ?? 0) / 60) * (this.form.latDirection === "N" ? 1 : -1), this.form.lng = (Number(this.form.lngDegree ?? 0) + Number(this.form.lngMinute ?? 0) / 60) * (this.form.lngDirection === "E" ? 1 : -1), this.point = {
|
|
@@ -11891,11 +11900,10 @@ const Ac = {
|
|
|
11891
11900
|
};
|
|
11892
11901
|
},
|
|
11893
11902
|
handleCloseForm() {
|
|
11894
|
-
|
|
11895
|
-
this.showForm = !1, this.cancelForm(), !this.showForm && !this.showMeteo && (this.toggle = !1), (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0;
|
|
11903
|
+
this.showForm = !1, this.cancelForm(), !this.showForm && !this.showMeteo && (this.toggle = !1);
|
|
11896
11904
|
},
|
|
11897
11905
|
async fetchMeteoData(t) {
|
|
11898
|
-
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.
|
|
11906
|
+
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
|
|
11899
11907
|
const { weatherModels: e, marineModels: o } = oo.autoPickMeteoModel(t.forecastModel);
|
|
11900
11908
|
let i = {
|
|
11901
11909
|
lat: t.lat,
|
|
@@ -11912,7 +11920,7 @@ const Ac = {
|
|
|
11912
11920
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData)), this.loading = !1;
|
|
11913
11921
|
},
|
|
11914
11922
|
async fetchHistoryData(t) {
|
|
11915
|
-
this.loading = !0, this.showMeteo = !0, this.
|
|
11923
|
+
this.loading = !0, this.showMeteo = !0, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
|
|
11916
11924
|
const { weatherModels: e, marineModels: o } = oo.autoPickMeteoModel(t.forecastModel), i = {
|
|
11917
11925
|
lat: t.lat,
|
|
11918
11926
|
lng: t.lng,
|
|
@@ -11929,10 +11937,10 @@ const Ac = {
|
|
|
11929
11937
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData)), this.loading = !1;
|
|
11930
11938
|
},
|
|
11931
11939
|
initTableData(t) {
|
|
11932
|
-
var o, i, a, r, s, c, n, g, p, f, w,
|
|
11940
|
+
var o, i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe;
|
|
11933
11941
|
this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
|
|
11934
11942
|
const e = ((s = oo.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
11935
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((
|
|
11943
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((z = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : z.kts, 1) ?? "-", this.currentHourData.windDir = (b = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : b.direction, this.currentHourData.windLevel = this.roundPrecision((I = (A = e == null ? void 0 : e.weather) == null ? void 0 : A.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((T = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : T.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((K = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : K.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Z = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : Z.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = ($ = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : $.direction, this.currentHourData.swellPeriod = this.roundPrecision((ue = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.roundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
|
|
11936
11944
|
},
|
|
11937
11945
|
handleBind() {
|
|
11938
11946
|
var t, e;
|
|
@@ -11940,46 +11948,33 @@ const Ac = {
|
|
|
11940
11948
|
},
|
|
11941
11949
|
handleClick(t) {
|
|
11942
11950
|
if (t.originalEvent.stopPropagation(), t.originalEvent.target.className === "mapboxgl-canvas")
|
|
11943
|
-
this.
|
|
11951
|
+
this.handleGetPosition(t.lngLat), this.$nextTick(() => {
|
|
11944
11952
|
var o, i, a;
|
|
11945
11953
|
(a = (i = (o = this.$refs) == null ? void 0 : o.submitSpot) == null ? void 0 : i.$el) == null || a.click();
|
|
11946
11954
|
});
|
|
11947
11955
|
else
|
|
11948
11956
|
return !1;
|
|
11949
11957
|
},
|
|
11950
|
-
|
|
11951
|
-
var e
|
|
11952
|
-
|
|
11958
|
+
handleGetPosition(t) {
|
|
11959
|
+
var e;
|
|
11960
|
+
this.showMeteo = !1, (e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, this.form.latDegree = Number(G.lat2pretty(t.lat).degree), this.form.latMinute = Number(G.lat2pretty(t.lat).minute), this.form.latDirection = G.lat2pretty(t.lat).direction, this.form.lngDegree = Number(G.lng2pretty(t.lng).degree), this.form.lngMinute = Number(G.lng2pretty(t.lng).minute), this.form.lngDirection = G.lng2pretty(t.lng).direction, this.point = {
|
|
11953
11961
|
lat: t.lat,
|
|
11954
11962
|
lng: t.lng
|
|
11955
|
-
}
|
|
11956
|
-
(o = this.positionMarker) == null || o.setLngLat([this.point.lng, this.point.lat]);
|
|
11957
|
-
else {
|
|
11958
|
-
const i = document.createElement("div");
|
|
11959
|
-
i.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', i.firstChild.style.height = "32px", i.firstChild.style.width = "32px", this.positionMarker = new ve.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -16]).addTo(this.map);
|
|
11960
|
-
}
|
|
11963
|
+
};
|
|
11961
11964
|
},
|
|
11962
|
-
|
|
11965
|
+
handleDrawInfoMarker(t) {
|
|
11963
11966
|
t && (this.map.flyTo({
|
|
11964
11967
|
center: t,
|
|
11965
|
-
duration:
|
|
11968
|
+
duration: 300
|
|
11966
11969
|
}), this.$nextTick(() => {
|
|
11967
|
-
var
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
|
|
11971
|
-
|
|
11972
|
-
|
|
11973
|
-
|
|
11974
|
-
|
|
11975
|
-
</svg>`, this.meteoMarker = new ve.Marker(a).setLngLat(t).setOffset([0, -13]).addTo(this.map);
|
|
11976
|
-
}
|
|
11977
|
-
if (this.meteoInfoMarker)
|
|
11978
|
-
(i = this.meteoInfoMarker) == null || i.setLngLat(t);
|
|
11979
|
-
else {
|
|
11980
|
-
const a = document.getElementById("idm-gl4-spot-meteo");
|
|
11981
|
-
this.meteoInfoMarker = new ve.Marker(a).setLngLat(t).setOffset([0, -190]).addTo(this.map);
|
|
11982
|
-
}
|
|
11970
|
+
var a, r, s, c, n;
|
|
11971
|
+
(a = this.positionMarker) == null || a.remove();
|
|
11972
|
+
const e = (r = document.getElementById("idm-position-icon")) == null ? void 0 : r.cloneNode(!0);
|
|
11973
|
+
this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -13]).addTo(this.map), (s = this.meteoInfoMarker) == null || s.remove();
|
|
11974
|
+
const o = (c = document.getElementById("idm-gl4-spot-meteo")) == null ? void 0 : c.cloneNode(!0), i = (n = o == null ? void 0 : o.children[1]) == null ? void 0 : n.children[1];
|
|
11975
|
+
i && (i.onclick = () => {
|
|
11976
|
+
this.handleCloseMeteo();
|
|
11977
|
+
}), this.meteoInfoMarker = new ve.Marker(o).setLngLat(t).setOffset([0, -190]).addTo(this.map);
|
|
11983
11978
|
}));
|
|
11984
11979
|
},
|
|
11985
11980
|
handleMeteoMore() {
|
|
@@ -11987,7 +11982,7 @@ const Ac = {
|
|
|
11987
11982
|
},
|
|
11988
11983
|
handleCloseMeteo() {
|
|
11989
11984
|
var t, e;
|
|
11990
|
-
this.showMeteo = !1, (t = this.
|
|
11985
|
+
this.showMeteo = !1, (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, (e = this.meteoInfoMarker) == null || e.remove(), this.meteoInfoMarker = void 0, !this.showForm && !this.showMeteo && (this.toggle = !1);
|
|
11991
11986
|
},
|
|
11992
11987
|
handleFollow() {
|
|
11993
11988
|
this.$emit("follow", this.point);
|
|
@@ -12013,9 +12008,13 @@ const Ac = {
|
|
|
12013
12008
|
}, Gc = ["xlink:href"], Vc = { class: "d-flex justify-start align-center ga-1 mb-1" }, Zc = {
|
|
12014
12009
|
class: "multi-color-icon",
|
|
12015
12010
|
"aria-hidden": "true"
|
|
12016
|
-
}, qc = ["xlink:href"], Yc = { class: "d-flex justify-start align-center" }, Kc = { class: "mx-2" }
|
|
12017
|
-
|
|
12018
|
-
|
|
12011
|
+
}, qc = ["xlink:href"], Yc = { class: "d-flex justify-start align-center" }, Kc = { class: "mx-2" }, Xc = { id: "idm-position-icon" }, $c = {
|
|
12012
|
+
class: "multi-color-icon",
|
|
12013
|
+
style: { height: "26px", width: "26px" },
|
|
12014
|
+
"aria-hidden": "true"
|
|
12015
|
+
}, Qc = ["xlink:href"];
|
|
12016
|
+
function Jc(t, e, o, i, a, r) {
|
|
12017
|
+
const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), P = x("DateTimePicker"), z = x("VBtnToggle"), L = x("VCardActions"), b = x("VForm"), A = x("VCardText"), I = x("VCard"), C = x("VIcon");
|
|
12019
12018
|
return y(), S("div", Dc, [
|
|
12020
12019
|
l("div", {
|
|
12021
12020
|
class: "menu-bar-box transition pa-1",
|
|
@@ -12043,7 +12042,7 @@ function Xc(t, e, o, i, a, r) {
|
|
|
12043
12042
|
_: 1
|
|
12044
12043
|
}, 8, ["text"])
|
|
12045
12044
|
], 4),
|
|
12046
|
-
a.showForm ? (y(),
|
|
12045
|
+
a.showForm ? (y(), D(I, {
|
|
12047
12046
|
key: 0,
|
|
12048
12047
|
class: "spot-form-card",
|
|
12049
12048
|
style: ie({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
|
|
@@ -12071,7 +12070,7 @@ function Xc(t, e, o, i, a, r) {
|
|
|
12071
12070
|
_: 1
|
|
12072
12071
|
}),
|
|
12073
12072
|
d(g),
|
|
12074
|
-
d(
|
|
12073
|
+
d(A, { class: "text-body-1 py-1" }, {
|
|
12075
12074
|
default: u(() => [
|
|
12076
12075
|
d(b, {
|
|
12077
12076
|
ref: "spotForm",
|
|
@@ -12248,7 +12247,7 @@ function Xc(t, e, o, i, a, r) {
|
|
|
12248
12247
|
class: "pa-0"
|
|
12249
12248
|
}, {
|
|
12250
12249
|
default: u(() => [
|
|
12251
|
-
d(
|
|
12250
|
+
d(P, B({
|
|
12252
12251
|
"date-time": a.form.dateTime,
|
|
12253
12252
|
"time-zone": o.timeZone
|
|
12254
12253
|
}, t.$attrs, {
|
|
@@ -12275,7 +12274,7 @@ function Xc(t, e, o, i, a, r) {
|
|
|
12275
12274
|
class: "pa-0"
|
|
12276
12275
|
}, {
|
|
12277
12276
|
default: u(() => [
|
|
12278
|
-
d(
|
|
12277
|
+
d(z, {
|
|
12279
12278
|
modelValue: a.form.forecastModel,
|
|
12280
12279
|
"onUpdate:modelValue": e[7] || (e[7] = (v) => a.form.forecastModel = v),
|
|
12281
12280
|
class: "w-100",
|
|
@@ -12323,7 +12322,7 @@ function Xc(t, e, o, i, a, r) {
|
|
|
12323
12322
|
_: 1
|
|
12324
12323
|
}),
|
|
12325
12324
|
d(g),
|
|
12326
|
-
d(
|
|
12325
|
+
d(L, { class: "d-flex justify-end align-center ga-4" }, {
|
|
12327
12326
|
default: u(() => [
|
|
12328
12327
|
d(s, {
|
|
12329
12328
|
size: "small",
|
|
@@ -12370,11 +12369,11 @@ function Xc(t, e, o, i, a, r) {
|
|
|
12370
12369
|
default: u(() => [
|
|
12371
12370
|
d(n, { class: "d-flex justify-space-between align-center" }, {
|
|
12372
12371
|
default: u(() => {
|
|
12373
|
-
var v,
|
|
12372
|
+
var v, _, T, k;
|
|
12374
12373
|
return [
|
|
12375
12374
|
l("div", Yc, [
|
|
12376
12375
|
e[16] || (e[16] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
12377
|
-
l("div", Kc, h(r.computeLat(((v = a.form) == null ? void 0 : v.lat) || ((
|
|
12376
|
+
l("div", Kc, h(r.computeLat(((v = a.form) == null ? void 0 : v.lat) || ((_ = a.currentHourData) == null ? void 0 : _.lat))) + "," + h(r.computeLng(((T = a.form) == null ? void 0 : T.lng) || ((k = a.currentHourData) == null ? void 0 : k.lng))), 1)
|
|
12378
12377
|
]),
|
|
12379
12378
|
d(s, {
|
|
12380
12379
|
class: "mr-n2",
|
|
@@ -12397,7 +12396,7 @@ function Xc(t, e, o, i, a, r) {
|
|
|
12397
12396
|
_: 1
|
|
12398
12397
|
}),
|
|
12399
12398
|
d(g),
|
|
12400
|
-
d(
|
|
12399
|
+
d(A, { class: "text-body-1 ml-n8" }, {
|
|
12401
12400
|
default: u(() => [
|
|
12402
12401
|
d(w, null, {
|
|
12403
12402
|
default: u(() => [
|
|
@@ -12579,12 +12578,12 @@ function Xc(t, e, o, i, a, r) {
|
|
|
12579
12578
|
_: 1
|
|
12580
12579
|
}),
|
|
12581
12580
|
d(g),
|
|
12582
|
-
d(
|
|
12581
|
+
d(L, { class: "d-flex justify-space-between align-center" }, {
|
|
12583
12582
|
default: u(() => [
|
|
12584
12583
|
o.followList.some((v) => {
|
|
12585
|
-
var
|
|
12586
|
-
return ((
|
|
12587
|
-
}) ? (y(),
|
|
12584
|
+
var _, T;
|
|
12585
|
+
return ((_ = v == null ? void 0 : v.coordinate) == null ? void 0 : _.lng) === a.point.lng && ((T = v == null ? void 0 : v.coordinate) == null ? void 0 : T.lat) === a.point.lat;
|
|
12586
|
+
}) ? (y(), D(s, {
|
|
12588
12587
|
key: 0,
|
|
12589
12588
|
class: "text-none text-body-1",
|
|
12590
12589
|
variant: "text",
|
|
@@ -12600,7 +12599,7 @@ function Xc(t, e, o, i, a, r) {
|
|
|
12600
12599
|
N(" " + h(t.$t("actions.unfollow")), 1)
|
|
12601
12600
|
]),
|
|
12602
12601
|
_: 1
|
|
12603
|
-
}, 8, ["onClick"])) : (y(),
|
|
12602
|
+
}, 8, ["onClick"])) : (y(), D(s, {
|
|
12604
12603
|
key: 1,
|
|
12605
12604
|
class: "text-none text-body-1",
|
|
12606
12605
|
variant: "text",
|
|
@@ -12634,11 +12633,20 @@ function Xc(t, e, o, i, a, r) {
|
|
|
12634
12633
|
_: 1
|
|
12635
12634
|
}, 512), [
|
|
12636
12635
|
[Fe, a.showMeteo]
|
|
12636
|
+
]),
|
|
12637
|
+
Ne(l("div", Xc, [
|
|
12638
|
+
(y(), S("svg", $c, [
|
|
12639
|
+
l("use", {
|
|
12640
|
+
"xlink:href": `#icon-spot-${o.theme}`
|
|
12641
|
+
}, null, 8, Qc)
|
|
12642
|
+
]))
|
|
12643
|
+
], 512), [
|
|
12644
|
+
[Fe, a.showMeteo]
|
|
12637
12645
|
])
|
|
12638
12646
|
]);
|
|
12639
12647
|
}
|
|
12640
|
-
const
|
|
12641
|
-
const
|
|
12648
|
+
const em = /* @__PURE__ */ Y(Ac, [["render", Jc]]);
|
|
12649
|
+
const tm = {
|
|
12642
12650
|
name: "IdmMeasure",
|
|
12643
12651
|
props: {
|
|
12644
12652
|
map: {
|
|
@@ -12733,22 +12741,22 @@ const Qc = {
|
|
|
12733
12741
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12734
12742
|
const w = this.geojson.filter((b) => b.id === e.split("-")[0])[0];
|
|
12735
12743
|
this.pointMarkers[w.id].filter((b) => {
|
|
12736
|
-
var
|
|
12737
|
-
return ((
|
|
12744
|
+
var A;
|
|
12745
|
+
return ((A = b._element) == null ? void 0 : A.id) === e;
|
|
12738
12746
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
12739
|
-
let
|
|
12740
|
-
w.features.forEach((b,
|
|
12747
|
+
let z;
|
|
12748
|
+
w.features.forEach((b, A) => {
|
|
12741
12749
|
if (b.geometry.type === "Point" && b.properties.id === e.split("-")[1]) {
|
|
12742
|
-
|
|
12750
|
+
z = A;
|
|
12743
12751
|
return;
|
|
12744
12752
|
}
|
|
12745
12753
|
});
|
|
12746
|
-
const
|
|
12754
|
+
const L = w.features.filter((b) => b.geometry.type === "Point");
|
|
12747
12755
|
this.handleTmpPointUpdate(
|
|
12748
12756
|
w,
|
|
12749
|
-
|
|
12750
|
-
{ lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties:
|
|
12751
|
-
|
|
12757
|
+
L[z - 1],
|
|
12758
|
+
{ lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties: L[z].properties },
|
|
12759
|
+
z === L.length - 1 ? void 0 : L[z + 1]
|
|
12752
12760
|
);
|
|
12753
12761
|
}
|
|
12754
12762
|
},
|
|
@@ -12756,13 +12764,13 @@ const Qc = {
|
|
|
12756
12764
|
var o, i, a, r, s, c, n, g, p, f;
|
|
12757
12765
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
12758
12766
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12759
|
-
const w = this.geojson.filter((
|
|
12760
|
-
this.pointMarkers[w.id].filter((
|
|
12767
|
+
const w = this.geojson.filter((L) => L.id === e.split("-")[0])[0];
|
|
12768
|
+
this.pointMarkers[w.id].filter((L) => {
|
|
12761
12769
|
var b;
|
|
12762
|
-
return ((b =
|
|
12770
|
+
return ((b = L._element) == null ? void 0 : b.id) === e;
|
|
12763
12771
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
12764
|
-
const
|
|
12765
|
-
|
|
12772
|
+
const z = w.features.filter((L) => L.geometry.type === "Point" && L.properties.id === e.split("-")[1])[0];
|
|
12773
|
+
z.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat], w.features = w.features.filter((L) => L.geometry.type === "Point"), this.handlePointUpdate(w);
|
|
12766
12774
|
}
|
|
12767
12775
|
},
|
|
12768
12776
|
handleContextmenu(t) {
|
|
@@ -12814,10 +12822,10 @@ const Qc = {
|
|
|
12814
12822
|
o = G.roundPrecision(o + p, 4);
|
|
12815
12823
|
let w;
|
|
12816
12824
|
c.mode === "RL" ? w = G.convertToMonotonicLng([n, g]) : w = G.convertToMonotonicLng(Ue.interpolateCoordinates(n, g, 200));
|
|
12817
|
-
const
|
|
12818
|
-
|
|
12819
|
-
const
|
|
12820
|
-
|
|
12825
|
+
const P = H.lineString(w.map((L) => [L.lng, L.lat]));
|
|
12826
|
+
P.properties.dist = p, P.properties.bearing = f, P.properties.total = o, P.properties.name = "Line " + this.currentLineIndex, i.push(P);
|
|
12827
|
+
const z = e[a];
|
|
12828
|
+
z.properties.totalDist = G.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), z.properties.sumLabel = z.properties.totalDist + " nm";
|
|
12821
12829
|
}
|
|
12822
12830
|
e.push(...i), t.total = o;
|
|
12823
12831
|
}
|
|
@@ -12831,7 +12839,7 @@ const Qc = {
|
|
|
12831
12839
|
r = Ue.calculateDistance(g, p, n.mode === "RL", 4), s = Ue.calculateBearing(g, p, n.mode === "RL", 2);
|
|
12832
12840
|
let f;
|
|
12833
12841
|
n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Ue.interpolateCoordinates(g, p, 200));
|
|
12834
|
-
const w = H.lineString(f.map((
|
|
12842
|
+
const w = H.lineString(f.map((P) => [P.lng, P.lat]));
|
|
12835
12843
|
w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
|
|
12836
12844
|
}
|
|
12837
12845
|
if (i) {
|
|
@@ -12839,7 +12847,7 @@ const Qc = {
|
|
|
12839
12847
|
r = Ue.calculateDistance(g, p, n.mode === "RL", 4), s = Ue.calculateBearing(g, p, n.mode === "RL", 2);
|
|
12840
12848
|
let f;
|
|
12841
12849
|
n.mode === "RL" ? f = G.convertToMonotonicLng([g, p]) : f = G.convertToMonotonicLng(Ue.interpolateCoordinates(g, p, 200));
|
|
12842
|
-
const w = H.lineString(f.map((
|
|
12850
|
+
const w = H.lineString(f.map((P) => [P.lng, P.lat]));
|
|
12843
12851
|
w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
|
|
12844
12852
|
}
|
|
12845
12853
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -12981,17 +12989,17 @@ const Qc = {
|
|
|
12981
12989
|
}
|
|
12982
12990
|
},
|
|
12983
12991
|
handleClear(t, e = !0) {
|
|
12984
|
-
var s, c, n, g, p, f, w,
|
|
12992
|
+
var s, c, n, g, p, f, w, P, z, L;
|
|
12985
12993
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
12986
12994
|
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (f = this.closeMarkers[t.id]) == null || f.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((b) => {
|
|
12987
12995
|
b == null || b.remove();
|
|
12988
|
-
}), this.pointMarkers[t.id] = [], (
|
|
12996
|
+
}), this.pointMarkers[t.id] = [], (P = this.tipMarker) == null || P.remove(), this.tipMarker = void 0, e && ((z = this.map) != null && z.getSource(o)) && this.map.removeSource(o), e && ((L = this.map) != null && L.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
12989
12997
|
}
|
|
12990
12998
|
}
|
|
12991
|
-
},
|
|
12992
|
-
function
|
|
12999
|
+
}, om = { class: "idm-gl4-measure" };
|
|
13000
|
+
function am(t, e, o, i, a, r) {
|
|
12993
13001
|
const s = x("VBtn"), c = x("VTooltip");
|
|
12994
|
-
return y(), S("div",
|
|
13002
|
+
return y(), S("div", om, [
|
|
12995
13003
|
l("div", {
|
|
12996
13004
|
class: "menu-bar-box transition pa-1",
|
|
12997
13005
|
style: ie({ top: o.top + 214 + "px", right: a.right + "px" })
|
|
@@ -13020,8 +13028,8 @@ function em(t, e, o, i, a, r) {
|
|
|
13020
13028
|
], 4)
|
|
13021
13029
|
]);
|
|
13022
13030
|
}
|
|
13023
|
-
const
|
|
13024
|
-
const
|
|
13031
|
+
const im = /* @__PURE__ */ Y(tm, [["render", am]]);
|
|
13032
|
+
const rm = {
|
|
13025
13033
|
name: "IdmBottomBar",
|
|
13026
13034
|
components: { DateTimePicker: no },
|
|
13027
13035
|
props: {
|
|
@@ -13139,18 +13147,18 @@ const om = {
|
|
|
13139
13147
|
this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
|
|
13140
13148
|
}
|
|
13141
13149
|
}
|
|
13142
|
-
},
|
|
13150
|
+
}, lm = { class: "idm-bottom-bar-gl4" }, sm = { class: "date-box d-flex ga-2 mr-2" }, nm = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, cm = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, mm = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, dm = {
|
|
13143
13151
|
key: 0,
|
|
13144
13152
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
13145
|
-
},
|
|
13146
|
-
function
|
|
13147
|
-
const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"), f = x("VBtn"), w = x("VDivider"),
|
|
13148
|
-
return y(), S("div",
|
|
13153
|
+
}, hm = ["onClick"], pm = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, um = { class: "text-body-1" };
|
|
13154
|
+
function gm(t, e, o, i, a, r) {
|
|
13155
|
+
const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"), f = x("VBtn"), w = x("VDivider"), P = x("VTooltip");
|
|
13156
|
+
return y(), S("div", lm, [
|
|
13149
13157
|
l("div", {
|
|
13150
13158
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
13151
13159
|
style: ie({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
|
|
13152
13160
|
}, [
|
|
13153
|
-
l("div",
|
|
13161
|
+
l("div", sm, [
|
|
13154
13162
|
d(s, B({
|
|
13155
13163
|
ref: "dateTimePicker",
|
|
13156
13164
|
"date-time": a.currentDateTimeZ,
|
|
@@ -13158,9 +13166,9 @@ function hm(t, e, o, i, a, r) {
|
|
|
13158
13166
|
"day-about": a.dayAbout,
|
|
13159
13167
|
"interval-hour": a.intervalHour
|
|
13160
13168
|
}, t.$attrs, {
|
|
13161
|
-
onCurrentTimestamp: e[0] || (e[0] = (
|
|
13162
|
-
onCurrentRealTime: e[1] || (e[1] = (
|
|
13163
|
-
onTimestampRange: e[2] || (e[2] = (
|
|
13169
|
+
onCurrentTimestamp: e[0] || (e[0] = (z) => a.currentTimestamp = z),
|
|
13170
|
+
onCurrentRealTime: e[1] || (e[1] = (z) => a.currentRealTime = z),
|
|
13171
|
+
onTimestampRange: e[2] || (e[2] = (z) => a.timestampRange = z)
|
|
13164
13172
|
}), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
|
|
13165
13173
|
d(f, {
|
|
13166
13174
|
text: "",
|
|
@@ -13174,13 +13182,13 @@ function hm(t, e, o, i, a, r) {
|
|
|
13174
13182
|
default: u(() => [
|
|
13175
13183
|
d(g, { class: "pa-1" }, {
|
|
13176
13184
|
default: u(() => [
|
|
13177
|
-
(y(!0), S(be, null, we(a.intervalOptions, (
|
|
13178
|
-
key:
|
|
13179
|
-
value:
|
|
13180
|
-
variant: a.intervalHour ===
|
|
13185
|
+
(y(!0), S(be, null, we(a.intervalOptions, (z, L) => (y(), D(n, {
|
|
13186
|
+
key: L,
|
|
13187
|
+
value: z,
|
|
13188
|
+
variant: a.intervalHour === z ? "tonal" : "text",
|
|
13181
13189
|
color: "primary",
|
|
13182
13190
|
rounded: "",
|
|
13183
|
-
active: a.intervalHour ===
|
|
13191
|
+
active: a.intervalHour === z,
|
|
13184
13192
|
height: "30",
|
|
13185
13193
|
"min-height": "30",
|
|
13186
13194
|
"min-width": "30",
|
|
@@ -13188,10 +13196,10 @@ function hm(t, e, o, i, a, r) {
|
|
|
13188
13196
|
}, {
|
|
13189
13197
|
default: u(() => [
|
|
13190
13198
|
d(c, {
|
|
13191
|
-
onClick: (b) => a.intervalHour =
|
|
13199
|
+
onClick: (b) => a.intervalHour = z
|
|
13192
13200
|
}, {
|
|
13193
13201
|
default: u(() => [
|
|
13194
|
-
N(h(
|
|
13202
|
+
N(h(z) + "h", 1)
|
|
13195
13203
|
]),
|
|
13196
13204
|
_: 2
|
|
13197
13205
|
}, 1032, ["onClick"])
|
|
@@ -13213,7 +13221,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
13213
13221
|
class: "mx-2 my-3",
|
|
13214
13222
|
style: { height: "16px" }
|
|
13215
13223
|
}),
|
|
13216
|
-
l("div",
|
|
13224
|
+
l("div", nm, [
|
|
13217
13225
|
d(f, {
|
|
13218
13226
|
icon: "",
|
|
13219
13227
|
size: "small",
|
|
@@ -13240,7 +13248,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
13240
13248
|
_: 1,
|
|
13241
13249
|
__: [10]
|
|
13242
13250
|
}, 8, ["onClick"]),
|
|
13243
|
-
a.paused ? (y(),
|
|
13251
|
+
a.paused ? (y(), D(f, {
|
|
13244
13252
|
key: 0,
|
|
13245
13253
|
icon: "",
|
|
13246
13254
|
size: "small",
|
|
@@ -13253,7 +13261,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
13253
13261
|
])),
|
|
13254
13262
|
_: 1,
|
|
13255
13263
|
__: [11]
|
|
13256
|
-
}, 8, ["onClick"])) : (y(),
|
|
13264
|
+
}, 8, ["onClick"])) : (y(), D(f, {
|
|
13257
13265
|
key: 1,
|
|
13258
13266
|
icon: "",
|
|
13259
13267
|
size: "small",
|
|
@@ -13286,22 +13294,22 @@ function hm(t, e, o, i, a, r) {
|
|
|
13286
13294
|
class: "mx-2 my-3",
|
|
13287
13295
|
style: { height: "16px" }
|
|
13288
13296
|
}),
|
|
13289
|
-
l("div",
|
|
13290
|
-
d(
|
|
13297
|
+
l("div", cm, [
|
|
13298
|
+
d(P, {
|
|
13291
13299
|
text: t.$t("weather.windBarbs"),
|
|
13292
13300
|
location: "top"
|
|
13293
13301
|
}, {
|
|
13294
|
-
activator: u(({ props:
|
|
13295
|
-
var
|
|
13302
|
+
activator: u(({ props: z }) => {
|
|
13303
|
+
var L, b;
|
|
13296
13304
|
return [
|
|
13297
|
-
d(f, B(
|
|
13305
|
+
d(f, B(z, {
|
|
13298
13306
|
class: "pa-1 d-flex",
|
|
13299
|
-
color: (
|
|
13307
|
+
color: (L = o.weatherCheckList) != null && L.includes("wind") ? "primary" : "",
|
|
13300
13308
|
variant: (b = o.weatherCheckList) != null && b.includes("wind") ? "elevated" : "text",
|
|
13301
13309
|
height: "24",
|
|
13302
13310
|
width: "24",
|
|
13303
13311
|
"min-width": "24",
|
|
13304
|
-
onClick: e[3] || (e[3] = (
|
|
13312
|
+
onClick: e[3] || (e[3] = (A) => r.handleClickFastWeather("wind"))
|
|
13305
13313
|
}), {
|
|
13306
13314
|
default: u(() => e[14] || (e[14] = [
|
|
13307
13315
|
l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
@@ -13313,24 +13321,24 @@ function hm(t, e, o, i, a, r) {
|
|
|
13313
13321
|
}),
|
|
13314
13322
|
_: 1
|
|
13315
13323
|
}, 8, ["text"]),
|
|
13316
|
-
d(
|
|
13324
|
+
d(P, {
|
|
13317
13325
|
text: t.$t("weather.sigWaveHeight"),
|
|
13318
13326
|
location: "top"
|
|
13319
13327
|
}, {
|
|
13320
|
-
activator: u(({ props:
|
|
13321
|
-
var
|
|
13328
|
+
activator: u(({ props: z }) => {
|
|
13329
|
+
var L, b;
|
|
13322
13330
|
return [
|
|
13323
|
-
d(f, B(
|
|
13331
|
+
d(f, B(z, {
|
|
13324
13332
|
class: "pa-1 d-flex",
|
|
13325
|
-
color: (
|
|
13333
|
+
color: (L = o.weatherCheckList) != null && L.includes("sig-wave-height") ? "primary" : "",
|
|
13326
13334
|
variant: (b = o.weatherCheckList) != null && b.includes("sig-wave-height") ? "elevated" : "text",
|
|
13327
13335
|
height: "24",
|
|
13328
13336
|
width: "24",
|
|
13329
13337
|
"min-width": "24",
|
|
13330
|
-
onClick: e[4] || (e[4] = (
|
|
13338
|
+
onClick: e[4] || (e[4] = (A) => r.handleClickFastWeather("sig-wave-height"))
|
|
13331
13339
|
}), {
|
|
13332
13340
|
default: u(() => [
|
|
13333
|
-
l("i", B(
|
|
13341
|
+
l("i", B(z, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
13334
13342
|
]),
|
|
13335
13343
|
_: 2
|
|
13336
13344
|
}, 1040, ["color", "variant"])
|
|
@@ -13338,24 +13346,24 @@ function hm(t, e, o, i, a, r) {
|
|
|
13338
13346
|
}),
|
|
13339
13347
|
_: 1
|
|
13340
13348
|
}, 8, ["text"]),
|
|
13341
|
-
d(
|
|
13349
|
+
d(P, {
|
|
13342
13350
|
text: t.$t("weather.currentDirection"),
|
|
13343
13351
|
location: "top"
|
|
13344
13352
|
}, {
|
|
13345
|
-
activator: u(({ props:
|
|
13346
|
-
var
|
|
13353
|
+
activator: u(({ props: z }) => {
|
|
13354
|
+
var L, b;
|
|
13347
13355
|
return [
|
|
13348
|
-
d(f, B(
|
|
13356
|
+
d(f, B(z, {
|
|
13349
13357
|
class: "pa-1 d-flex",
|
|
13350
|
-
color: (
|
|
13358
|
+
color: (L = o.weatherCheckList) != null && L.includes("current-direction") ? "primary" : "",
|
|
13351
13359
|
variant: (b = o.weatherCheckList) != null && b.includes("current-direction") ? "elevated" : "text",
|
|
13352
13360
|
height: "24",
|
|
13353
13361
|
width: "24",
|
|
13354
13362
|
"min-width": "24",
|
|
13355
|
-
onClick: e[5] || (e[5] = (
|
|
13363
|
+
onClick: e[5] || (e[5] = (A) => r.handleClickFastWeather("current-direction"))
|
|
13356
13364
|
}), {
|
|
13357
13365
|
default: u(() => [
|
|
13358
|
-
l("i", B(
|
|
13366
|
+
l("i", B(z, { class: "iconfont icon-Current" }), null, 16)
|
|
13359
13367
|
]),
|
|
13360
13368
|
_: 2
|
|
13361
13369
|
}, 1040, ["color", "variant"])
|
|
@@ -13363,12 +13371,12 @@ function hm(t, e, o, i, a, r) {
|
|
|
13363
13371
|
}),
|
|
13364
13372
|
_: 1
|
|
13365
13373
|
}, 8, ["text"]),
|
|
13366
|
-
d(
|
|
13374
|
+
d(P, {
|
|
13367
13375
|
text: t.$t("weather.weatherLayers"),
|
|
13368
13376
|
location: "top"
|
|
13369
13377
|
}, {
|
|
13370
|
-
activator: u(({ props:
|
|
13371
|
-
d(f, B(
|
|
13378
|
+
activator: u(({ props: z }) => [
|
|
13379
|
+
d(f, B(z, {
|
|
13372
13380
|
class: "pa-1 d-flex",
|
|
13373
13381
|
variant: "text",
|
|
13374
13382
|
height: "24",
|
|
@@ -13377,7 +13385,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
13377
13385
|
onClick: r.handleClickFastMore
|
|
13378
13386
|
}), {
|
|
13379
13387
|
default: u(() => [
|
|
13380
|
-
l("i", B(
|
|
13388
|
+
l("i", B(z, { class: "iconfont icon-dots-align" }), null, 16)
|
|
13381
13389
|
]),
|
|
13382
13390
|
_: 2
|
|
13383
13391
|
}, 1040, ["onClick"])
|
|
@@ -13390,13 +13398,13 @@ function hm(t, e, o, i, a, r) {
|
|
|
13390
13398
|
class: "mx-2 mr-3 my-3",
|
|
13391
13399
|
style: { height: "16px" }
|
|
13392
13400
|
}),
|
|
13393
|
-
l("div",
|
|
13401
|
+
l("div", mm, [
|
|
13394
13402
|
d(f, {
|
|
13395
13403
|
text: "",
|
|
13396
13404
|
height: "30",
|
|
13397
13405
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
13398
13406
|
color: a.source === "GFS" ? "primary" : "",
|
|
13399
|
-
onClick: e[6] || (e[6] = (
|
|
13407
|
+
onClick: e[6] || (e[6] = (z) => a.source = "GFS")
|
|
13400
13408
|
}, {
|
|
13401
13409
|
default: u(() => e[15] || (e[15] = [
|
|
13402
13410
|
N("NOAA", -1)
|
|
@@ -13409,7 +13417,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
13409
13417
|
height: "30",
|
|
13410
13418
|
class: "px-2 elevation-0 text-body-1 btn-border-2",
|
|
13411
13419
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
13412
|
-
onClick: e[7] || (e[7] = (
|
|
13420
|
+
onClick: e[7] || (e[7] = (z) => a.source = "ECMWF")
|
|
13413
13421
|
}, {
|
|
13414
13422
|
default: u(() => e[16] || (e[16] = [
|
|
13415
13423
|
N("ECMWF", -1)
|
|
@@ -13423,41 +13431,41 @@ function hm(t, e, o, i, a, r) {
|
|
|
13423
13431
|
class: "timezone-box d-flex flex-column justify-space-between align-end",
|
|
13424
13432
|
style: ie({ right: a.right + "px" })
|
|
13425
13433
|
}, [
|
|
13426
|
-
a.showTimezone ? (y(), S("div",
|
|
13427
|
-
(y(!0), S(be, null, we(a.offsets, (
|
|
13428
|
-
key:
|
|
13434
|
+
a.showTimezone ? (y(), S("div", dm, [
|
|
13435
|
+
(y(!0), S(be, null, we(a.offsets, (z) => (y(), S("div", {
|
|
13436
|
+
key: z,
|
|
13429
13437
|
class: "item rounded text-body-2 hover-active",
|
|
13430
|
-
onClick: (
|
|
13431
|
-
}, h(
|
|
13438
|
+
onClick: (L) => a.timeZone = z
|
|
13439
|
+
}, h(z < 0 ? z : "+" + z), 9, hm))), 128))
|
|
13432
13440
|
])) : O("", !0),
|
|
13433
|
-
l("div",
|
|
13441
|
+
l("div", pm, [
|
|
13434
13442
|
d(f, {
|
|
13435
13443
|
text: "",
|
|
13436
13444
|
variant: "flat",
|
|
13437
13445
|
height: "28",
|
|
13438
13446
|
class: "pa-1 text-body-1",
|
|
13439
13447
|
color: "primary",
|
|
13440
|
-
onClick: e[8] || (e[8] = (
|
|
13448
|
+
onClick: e[8] || (e[8] = (z) => a.showTimezone = !a.showTimezone)
|
|
13441
13449
|
}, {
|
|
13442
13450
|
default: u(() => [
|
|
13443
13451
|
N(" UTC " + h(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
13444
13452
|
]),
|
|
13445
13453
|
_: 1
|
|
13446
13454
|
}),
|
|
13447
|
-
l("span",
|
|
13455
|
+
l("span", um, h(a.currentRealTime), 1)
|
|
13448
13456
|
])
|
|
13449
13457
|
], 4)
|
|
13450
13458
|
]);
|
|
13451
13459
|
}
|
|
13452
|
-
const
|
|
13460
|
+
const fm = /* @__PURE__ */ Y(rm, [["render", gm]]), ym = {
|
|
13453
13461
|
name: "IdmGL4",
|
|
13454
13462
|
components: {
|
|
13455
13463
|
IdmOtherLayer: ps,
|
|
13456
13464
|
IdmWeatherLayer: Jn,
|
|
13457
13465
|
IdmTropicals: Ka,
|
|
13458
|
-
IdmMeasure:
|
|
13459
|
-
IdmSpot:
|
|
13460
|
-
IdmBottomBar:
|
|
13466
|
+
IdmMeasure: im,
|
|
13467
|
+
IdmSpot: em,
|
|
13468
|
+
IdmBottomBar: fm
|
|
13461
13469
|
},
|
|
13462
13470
|
props: {
|
|
13463
13471
|
map: {
|
|
@@ -13509,13 +13517,13 @@ const pm = /* @__PURE__ */ Y(om, [["render", hm]]), um = {
|
|
|
13509
13517
|
}
|
|
13510
13518
|
},
|
|
13511
13519
|
methods: {}
|
|
13512
|
-
},
|
|
13520
|
+
}, bm = {
|
|
13513
13521
|
ref: "mapHomeGl4",
|
|
13514
13522
|
class: "map-gl4-home"
|
|
13515
13523
|
};
|
|
13516
|
-
function
|
|
13524
|
+
function wm(t, e, o, i, a, r) {
|
|
13517
13525
|
const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"), f = x("IdmBottomBar");
|
|
13518
|
-
return y(), S("div",
|
|
13526
|
+
return y(), S("div", bm, [
|
|
13519
13527
|
d(s, B({
|
|
13520
13528
|
ref: "idmOtherLayers",
|
|
13521
13529
|
token: o.token,
|
|
@@ -13580,8 +13588,8 @@ function fm(t, e, o, i, a, r) {
|
|
|
13580
13588
|
}, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])
|
|
13581
13589
|
], 512);
|
|
13582
13590
|
}
|
|
13583
|
-
const
|
|
13584
|
-
class
|
|
13591
|
+
const xm = /* @__PURE__ */ Y(ym, [["render", wm]]);
|
|
13592
|
+
class vm {
|
|
13585
13593
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
13586
13594
|
me(this, "originStyle");
|
|
13587
13595
|
me(this, "mapboxStyle");
|
|
@@ -13589,7 +13597,7 @@ class bm {
|
|
|
13589
13597
|
me(this, "hi");
|
|
13590
13598
|
me(this, "td");
|
|
13591
13599
|
me(this, "windy");
|
|
13592
|
-
var o, i, a, r, s, c, n, g, p, f, w,
|
|
13600
|
+
var o, i, a, r, s, c, n, g, p, f, w, P, z, L, b, A, I, C, v, _, T, k, R, V, K, X, Z, J, ee, Q, re, de, pe, se, $, ae, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, oe, je, Ie, ge, fe, W, Ce, te, le, Oe, j, ye, Me, Be, Ee, E, q, Ge, Ve, Ze, Te, qe, Ye, Ke, Xe, $e, Qe, Je, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Uo, Wo, Go, Vo, Zo, qo, Yo, Ko, Xo, $o, Qo, Jo, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ua, Wa, Ga;
|
|
13593
13601
|
this.i4 = {
|
|
13594
13602
|
source: {
|
|
13595
13603
|
type: "raster",
|
|
@@ -32170,12 +32178,12 @@ class bm {
|
|
|
32170
32178
|
(c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((m) => m.id === "ice-area-fill"),
|
|
32171
32179
|
(g = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : g.find((m) => m.id === "ice-area-line"),
|
|
32172
32180
|
(f = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : f.find((m) => m.id === "loadlines-label"),
|
|
32173
|
-
(
|
|
32174
|
-
(
|
|
32175
|
-
(
|
|
32181
|
+
(P = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : P.find((m) => m.id === "loadlines-fill"),
|
|
32182
|
+
(L = (z = this.originStyle) == null ? void 0 : z.light.layers) == null ? void 0 : L.find((m) => m.id === "empty-layer-0"),
|
|
32183
|
+
(A = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : A.find((m) => m.id === "empty-layer-1"),
|
|
32176
32184
|
(C = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : C.find((m) => m.id === "country-boundaries"),
|
|
32177
|
-
(
|
|
32178
|
-
(
|
|
32185
|
+
(_ = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : _.find((m) => m.id === "water-outline"),
|
|
32186
|
+
(k = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : k.find((m) => m.id === "water-outline2"),
|
|
32179
32187
|
(V = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : V.find((m) => m.id === "empty-layer-2"),
|
|
32180
32188
|
(X = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : X.find((m) => m.id === "water-line-label"),
|
|
32181
32189
|
(J = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : J.find((m) => m.id === "water-point-label"),
|
|
@@ -32340,7 +32348,7 @@ class bm {
|
|
|
32340
32348
|
};
|
|
32341
32349
|
}
|
|
32342
32350
|
}
|
|
32343
|
-
const
|
|
32351
|
+
const _m = {
|
|
32344
32352
|
name: "MapInitial",
|
|
32345
32353
|
props: {
|
|
32346
32354
|
token: {
|
|
@@ -32396,7 +32404,7 @@ const wm = {
|
|
|
32396
32404
|
methods: {
|
|
32397
32405
|
async initOnlineMap() {
|
|
32398
32406
|
var e;
|
|
32399
|
-
(e = this.map) == null || e.remove(), this.map = void 0, this.helper = new
|
|
32407
|
+
(e = this.map) == null || e.remove(), this.map = void 0, this.helper = new vm(this.token), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
32400
32408
|
const t = new ve.Map({
|
|
32401
32409
|
container: "map",
|
|
32402
32410
|
// style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
|
|
@@ -32436,16 +32444,16 @@ const wm = {
|
|
|
32436
32444
|
this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
|
|
32437
32445
|
}
|
|
32438
32446
|
}
|
|
32439
|
-
},
|
|
32440
|
-
function
|
|
32447
|
+
}, km = { class: "mapbox-initial-gl4" }, zm = { class: "v-btn--variant-elevated rounded" }, Lm = { class: "zoom" }, Pm = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-body-2 text-label" };
|
|
32448
|
+
function Cm(t, e, o, i, a, r) {
|
|
32441
32449
|
const s = x("VBtn");
|
|
32442
|
-
return y(), S("div",
|
|
32450
|
+
return y(), S("div", km, [
|
|
32443
32451
|
e[5] || (e[5] = l("div", { id: "map" }, null, -1)),
|
|
32444
32452
|
l("div", {
|
|
32445
32453
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
32446
32454
|
style: ie({ top: o.top + 268 + "px", right: a.right + "px" })
|
|
32447
32455
|
}, [
|
|
32448
|
-
l("div",
|
|
32456
|
+
l("div", zm, [
|
|
32449
32457
|
d(s, {
|
|
32450
32458
|
"min-width": "32",
|
|
32451
32459
|
width: "32",
|
|
@@ -32459,7 +32467,7 @@ function zm(t, e, o, i, a, r) {
|
|
|
32459
32467
|
_: 1,
|
|
32460
32468
|
__: [0]
|
|
32461
32469
|
}, 8, ["onClick"]),
|
|
32462
|
-
l("div",
|
|
32470
|
+
l("div", Lm, h(Math.floor(a.zoom)), 1),
|
|
32463
32471
|
d(s, {
|
|
32464
32472
|
"min-width": "32",
|
|
32465
32473
|
width: "32",
|
|
@@ -32475,7 +32483,7 @@ function zm(t, e, o, i, a, r) {
|
|
|
32475
32483
|
}, 8, ["onClick"])
|
|
32476
32484
|
])
|
|
32477
32485
|
], 4),
|
|
32478
|
-
l("div",
|
|
32486
|
+
l("div", Pm, [
|
|
32479
32487
|
e[2] || (e[2] = l("span", null, "© 2023", -1)),
|
|
32480
32488
|
l("span", null, "-" + h(r.computeYear), 1),
|
|
32481
32489
|
e[3] || (e[3] = l("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
|
|
@@ -32487,17 +32495,17 @@ function zm(t, e, o, i, a, r) {
|
|
|
32487
32495
|
])
|
|
32488
32496
|
]);
|
|
32489
32497
|
}
|
|
32490
|
-
const
|
|
32498
|
+
const Tm = /* @__PURE__ */ Y(_m, [["render", Cm]]), Fm = {
|
|
32491
32499
|
install(t) {
|
|
32492
|
-
t.component("MapInitial",
|
|
32500
|
+
t.component("MapInitial", Tm), t.component("MapboxGL", xm), t.component("TropicalGL", Ka), t.component("LatLngGL", Ya), t.component("DateTimePicker", no), t.component("PortDetail", lo);
|
|
32493
32501
|
}
|
|
32494
32502
|
};
|
|
32495
32503
|
export {
|
|
32496
32504
|
no as DateTimePicker,
|
|
32497
32505
|
Ya as LatLngGL,
|
|
32498
|
-
|
|
32499
|
-
|
|
32500
|
-
|
|
32506
|
+
Tm as MapInitial,
|
|
32507
|
+
xm as MapboxGL,
|
|
32508
|
+
Fm as MapboxGLPlugin,
|
|
32501
32509
|
ke as ParticleSchema,
|
|
32502
32510
|
lo as PortDetail,
|
|
32503
32511
|
Ka as TropicalGL,
|