@idmwx/idmui-gl4 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +971 -953
- package/dist/index.umd.cjs +5 -5
- package/dist/mapbox/src/components/measure/index.vue.d.ts +2 -0
- package/dist/mapbox/src/components/other/latLng.vue.d.ts +13 -1
- package/dist/mapbox/src/components/weather/index.vue.d.ts +10 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,15 +2,15 @@ var Eo = Object.defineProperty;
|
|
|
2
2
|
var jo = (o, e, t) => e in o ? Eo(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var re = (o, e, t) => (jo(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import Be from "axios";
|
|
5
|
-
import { openBlock as y, createElementBlock as T, withDirectives as
|
|
6
|
-
import
|
|
7
|
-
import { LngLatHelper as
|
|
8
|
-
import * as
|
|
9
|
-
import { LayerHelper as
|
|
5
|
+
import { openBlock as y, createElementBlock as T, withDirectives as eo, createElementVNode as l, vShow as to, toDisplayString as w, normalizeStyle as ae, resolveComponent as k, createVNode as h, withCtx as g, mergeProps as E, normalizeClass as Ne, createTextVNode as Z, Fragment as _e, renderList as Le, createBlock as U, createCommentVNode as F, withModifiers as Fo } from "vue";
|
|
6
|
+
import ke from "mapbox-gl";
|
|
7
|
+
import { LngLatHelper as oe, TropicalHelper as Ao, LaneHelper as Fe } from "@idm-plugin/geo";
|
|
8
|
+
import * as j from "@turf/turf";
|
|
9
|
+
import { LayerHelper as Jt, CompanyHelper as No } from "@idm-plugin/tag-nop";
|
|
10
10
|
import O from "moment";
|
|
11
11
|
import Ho from "@mapbox/sphericalmercator";
|
|
12
12
|
import { LayerHelper as Wo } from "@idm-plugin/tag";
|
|
13
|
-
import { Meteo2Assist as
|
|
13
|
+
import { Meteo2Assist as oo } from "@idm-plugin/meteo";
|
|
14
14
|
import { useTheme as Go } from "vuetify";
|
|
15
15
|
const q = (o, e) => {
|
|
16
16
|
const t = o.__vccOpts || o;
|
|
@@ -375,7 +375,7 @@ const $o = {
|
|
|
375
375
|
if (t) {
|
|
376
376
|
this.showZone = !0, this.form = { ...t.properties };
|
|
377
377
|
const a = document.getElementById("idm-gl4-zone-info");
|
|
378
|
-
this.marker ? this.marker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.marker = new
|
|
378
|
+
this.marker ? this.marker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.marker = new ke.Marker(a).setLngLat([o.lngLat.lng, o.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
|
|
379
379
|
}
|
|
380
380
|
},
|
|
381
381
|
handleRender() {
|
|
@@ -465,7 +465,7 @@ const $o = {
|
|
|
465
465
|
}, ea = { id: "idm-gl4-zone-info" }, ta = ["innerHTML"];
|
|
466
466
|
function oa(o, e, t, i, a, r) {
|
|
467
467
|
var s;
|
|
468
|
-
return
|
|
468
|
+
return eo((y(), T("div", ea, [
|
|
469
469
|
l("div", {
|
|
470
470
|
class: "iconfont close",
|
|
471
471
|
onClick: e[0] || (e[0] = (c) => a.showZone = !1)
|
|
@@ -475,7 +475,7 @@ function oa(o, e, t, i, a, r) {
|
|
|
475
475
|
innerHTML: (s = a.form) == null ? void 0 : s.name
|
|
476
476
|
}, null, 8, ta)
|
|
477
477
|
], 512)), [
|
|
478
|
-
[
|
|
478
|
+
[to, a.showZone]
|
|
479
479
|
]);
|
|
480
480
|
}
|
|
481
481
|
const aa = /* @__PURE__ */ q($o, [["render", oa]]);
|
|
@@ -508,12 +508,12 @@ const ia = {
|
|
|
508
508
|
computed: {
|
|
509
509
|
computeLat() {
|
|
510
510
|
return function(o) {
|
|
511
|
-
return
|
|
511
|
+
return oe.lat2pretty(o, 4).pretty;
|
|
512
512
|
};
|
|
513
513
|
},
|
|
514
514
|
computeLng() {
|
|
515
515
|
return function(o) {
|
|
516
|
-
return
|
|
516
|
+
return oe.lng2pretty(o, 4).pretty;
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
},
|
|
@@ -536,7 +536,7 @@ const ia = {
|
|
|
536
536
|
if (t) {
|
|
537
537
|
this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
|
|
538
538
|
const a = document.getElementById("port-info");
|
|
539
|
-
this.marker ? this.marker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.marker = new
|
|
539
|
+
this.marker ? this.marker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.marker = new ke.Marker(a).setLngLat([o.lngLat.lng, o.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
540
540
|
}
|
|
541
541
|
},
|
|
542
542
|
handleRender() {
|
|
@@ -583,7 +583,7 @@ const ia = {
|
|
|
583
583
|
style: { "align-items": "flex-start" }
|
|
584
584
|
}, ha = { class: "meteo-forecast flex-end" };
|
|
585
585
|
function da(o, e, t, i, a, r) {
|
|
586
|
-
return
|
|
586
|
+
return eo((y(), T("div", ra, [
|
|
587
587
|
l("div", {
|
|
588
588
|
class: "close iconfont",
|
|
589
589
|
onClick: e[0] || (e[0] = (s) => a.showPort = !1)
|
|
@@ -591,19 +591,19 @@ function da(o, e, t, i, a, r) {
|
|
|
591
591
|
l("div", la, [
|
|
592
592
|
l("div", sa, [
|
|
593
593
|
e[2] || (e[2] = l("label", null, "Name : ", -1)),
|
|
594
|
-
l("span", null,
|
|
594
|
+
l("span", null, w(a.form.name), 1)
|
|
595
595
|
]),
|
|
596
596
|
l("div", na, [
|
|
597
597
|
e[3] || (e[3] = l("label", null, "Position : ", -1)),
|
|
598
|
-
l("span", null,
|
|
598
|
+
l("span", null, w(r.computeLat(a.form.lat)) + ", " + w(r.computeLng(a.form.lng)), 1)
|
|
599
599
|
]),
|
|
600
600
|
l("div", ca, [
|
|
601
601
|
e[4] || (e[4] = l("label", null, "LoCode : ", -1)),
|
|
602
|
-
l("span", null,
|
|
602
|
+
l("span", null, w(a.form.loCode || "-"), 1)
|
|
603
603
|
]),
|
|
604
604
|
l("div", ma, [
|
|
605
605
|
e[5] || (e[5] = l("label", null, "Region : ", -1)),
|
|
606
|
-
l("span", null,
|
|
606
|
+
l("span", null, w(a.form.zoneName || "-"), 1)
|
|
607
607
|
]),
|
|
608
608
|
l("div", ha, [
|
|
609
609
|
l("span", {
|
|
@@ -612,7 +612,7 @@ function da(o, e, t, i, a, r) {
|
|
|
612
612
|
])
|
|
613
613
|
])
|
|
614
614
|
], 512)), [
|
|
615
|
-
[
|
|
615
|
+
[to, a.showPort]
|
|
616
616
|
]);
|
|
617
617
|
}
|
|
618
618
|
const pa = /* @__PURE__ */ q(ia, [["render", da], ["__scopeId", "data-v-474e9036"]]), ua = {
|
|
@@ -981,7 +981,7 @@ const _a = /* @__PURE__ */ q(xa, [["render", va]]), ka = {
|
|
|
981
981
|
methods: {
|
|
982
982
|
handleRender() {
|
|
983
983
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((o) => {
|
|
984
|
-
o.geometry.type === "Polygon" && o.geometry.coordinates.forEach((e) =>
|
|
984
|
+
o.geometry.type === "Polygon" && o.geometry.coordinates.forEach((e) => oe.convertToMonotonicLng2(e));
|
|
985
985
|
}), this.map.addSource(this.source, {
|
|
986
986
|
type: "geojson",
|
|
987
987
|
data: this.area
|
|
@@ -1165,8 +1165,8 @@ const Sa = /* @__PURE__ */ q(Pa, [["render", Ca]]), Ma = {
|
|
|
1165
1165
|
function Ta(o, e, t, i, a, r) {
|
|
1166
1166
|
return null;
|
|
1167
1167
|
}
|
|
1168
|
-
const
|
|
1169
|
-
const
|
|
1168
|
+
const Ia = /* @__PURE__ */ q(Ma, [["render", Ta]]);
|
|
1169
|
+
const Ra = {
|
|
1170
1170
|
name: "IdmWorldMarine",
|
|
1171
1171
|
props: {
|
|
1172
1172
|
map: {
|
|
@@ -1206,7 +1206,7 @@ const Ia = {
|
|
|
1206
1206
|
function Aa(o, e, t, i, a, r) {
|
|
1207
1207
|
return null;
|
|
1208
1208
|
}
|
|
1209
|
-
const Da = /* @__PURE__ */ q(
|
|
1209
|
+
const Da = /* @__PURE__ */ q(Ra, [["render", Aa]]), Oa = {
|
|
1210
1210
|
name: "IdmChinaRoute",
|
|
1211
1211
|
props: {
|
|
1212
1212
|
map: {
|
|
@@ -1269,7 +1269,7 @@ const ja = {
|
|
|
1269
1269
|
},
|
|
1270
1270
|
data() {
|
|
1271
1271
|
return {
|
|
1272
|
-
lngLat:
|
|
1272
|
+
lngLat: { e: { lng: 0, lat: 0 }, lng: 0, lat: 0, str: "" },
|
|
1273
1273
|
source: "idm-lat-lng-source",
|
|
1274
1274
|
layer: "idm-lat-lng-layer",
|
|
1275
1275
|
labelLayer: "idm-lat-lng-label-layer",
|
|
@@ -1301,6 +1301,12 @@ const ja = {
|
|
|
1301
1301
|
this.right = (((o = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : o.clientWidth) || 0) + 10;
|
|
1302
1302
|
},
|
|
1303
1303
|
immediate: !0
|
|
1304
|
+
},
|
|
1305
|
+
"lngLat.e": {
|
|
1306
|
+
handler(o) {
|
|
1307
|
+
this.lngLat.lng = oe.lng2pretty(o == null ? void 0 : o.lng, 2).pretty, this.lngLat.lat = oe.lat2pretty(o == null ? void 0 : o.lat, 2).pretty, this.lngLat.str = `[${o == null ? void 0 : o.lng.toFixed(4)}, ${o == null ? void 0 : o.lat.toFixed(4)}]`;
|
|
1308
|
+
},
|
|
1309
|
+
immediate: !0
|
|
1304
1310
|
}
|
|
1305
1311
|
},
|
|
1306
1312
|
methods: {
|
|
@@ -1309,8 +1315,7 @@ const ja = {
|
|
|
1309
1315
|
this.show ? ((o = this.map) == null || o.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
1310
1316
|
},
|
|
1311
1317
|
handleMouseMove(o) {
|
|
1312
|
-
|
|
1313
|
-
this.lngLat = { lng: t, lat: i, str: a };
|
|
1318
|
+
this.lngLat.e = o.lngLat;
|
|
1314
1319
|
},
|
|
1315
1320
|
handleComputeLatLngs() {
|
|
1316
1321
|
var i;
|
|
@@ -1357,7 +1362,7 @@ const ja = {
|
|
|
1357
1362
|
handleZoomEnd() {
|
|
1358
1363
|
var e;
|
|
1359
1364
|
const o = this.handleComputeLatLngs();
|
|
1360
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
1365
|
+
(e = this.map) == null || e.getSource(this.source).setData(j.featureCollection(o));
|
|
1361
1366
|
},
|
|
1362
1367
|
handleRender() {
|
|
1363
1368
|
if (this.handleClear(), this.map) {
|
|
@@ -1414,14 +1419,14 @@ const ja = {
|
|
|
1414
1419
|
}
|
|
1415
1420
|
};
|
|
1416
1421
|
function Fa(o, e, t, i, a, r) {
|
|
1417
|
-
var s, c, n
|
|
1422
|
+
var s, c, n;
|
|
1418
1423
|
return y(), T("div", {
|
|
1419
1424
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
1420
|
-
style:
|
|
1425
|
+
style: ae({ right: a.right + "px" })
|
|
1421
1426
|
}, [
|
|
1422
|
-
l("div", null,
|
|
1423
|
-
l("div", null,
|
|
1424
|
-
l("div", null,
|
|
1427
|
+
l("div", null, w((s = a.lngLat) == null ? void 0 : s.lat), 1),
|
|
1428
|
+
l("div", null, w((c = a.lngLat) == null ? void 0 : c.lng), 1),
|
|
1429
|
+
l("div", null, w((n = a.lngLat) == null ? void 0 : n.str), 1)
|
|
1425
1430
|
], 4);
|
|
1426
1431
|
}
|
|
1427
1432
|
const Oo = /* @__PURE__ */ q(ja, [["render", Fa]]);
|
|
@@ -1438,7 +1443,7 @@ const Na = {
|
|
|
1438
1443
|
IdmVRA: _a,
|
|
1439
1444
|
IdmSpecialArea: La,
|
|
1440
1445
|
IdmTerminator: Sa,
|
|
1441
|
-
IdmWorld12nm:
|
|
1446
|
+
IdmWorld12nm: Ia,
|
|
1442
1447
|
IdmWorldMarine: Da,
|
|
1443
1448
|
IdmChinaRoute: Ea,
|
|
1444
1449
|
IdmLatLng: Oo
|
|
@@ -1488,7 +1493,7 @@ const Na = {
|
|
|
1488
1493
|
right: 10,
|
|
1489
1494
|
toggle: !1,
|
|
1490
1495
|
mapFeather: localStorage.getItem("mapFeathersCacheGL4") || "light",
|
|
1491
|
-
tagLayers: [...
|
|
1496
|
+
tagLayers: [...Jt.OTHER_LAYERS.filter((o) => o.enabled)],
|
|
1492
1497
|
layerWeight: 0,
|
|
1493
1498
|
otherLayers: {},
|
|
1494
1499
|
activeOtherLayers: [],
|
|
@@ -1596,9 +1601,9 @@ const Na = {
|
|
|
1596
1601
|
})
|
|
1597
1602
|
);
|
|
1598
1603
|
(await Promise.all(p)).map((m) => {
|
|
1599
|
-
var b, S,
|
|
1600
|
-
const f = ((b = m == null ? void 0 : m.data) == null ? void 0 : b.data) || (m == null ? void 0 : m.data),
|
|
1601
|
-
this.otherLayers[
|
|
1604
|
+
var b, S, L;
|
|
1605
|
+
const f = ((b = m == null ? void 0 : m.data) == null ? void 0 : b.data) || (m == null ? void 0 : m.data), v = (L = (S = m == null ? void 0 : m.config) == null ? void 0 : S.headers) == null ? void 0 : L.key;
|
|
1606
|
+
this.otherLayers[v] = f;
|
|
1602
1607
|
});
|
|
1603
1608
|
}
|
|
1604
1609
|
} else if (o.dayNight && e & 1024) {
|
|
@@ -1619,9 +1624,9 @@ const Na = {
|
|
|
1619
1624
|
})
|
|
1620
1625
|
);
|
|
1621
1626
|
(await Promise.all(p)).map((m) => {
|
|
1622
|
-
var b, S,
|
|
1623
|
-
const f = ((b = m == null ? void 0 : m.data) == null ? void 0 : b.data) || (m == null ? void 0 : m.data),
|
|
1624
|
-
this.otherLayers[
|
|
1627
|
+
var b, S, L;
|
|
1628
|
+
const f = ((b = m == null ? void 0 : m.data) == null ? void 0 : b.data) || (m == null ? void 0 : m.data), v = (L = (S = m == null ? void 0 : m.config) == null ? void 0 : S.headers) == null ? void 0 : L.key;
|
|
1629
|
+
this.otherLayers[v] = f;
|
|
1625
1630
|
});
|
|
1626
1631
|
}
|
|
1627
1632
|
}
|
|
@@ -1652,19 +1657,19 @@ const Na = {
|
|
|
1652
1657
|
class: "border rounded-sm"
|
|
1653
1658
|
}, Qa = { class: "text-body-2 text-center pt-1" }, Ja = { class: "layers-body" }, $a = { class: "layers-body" }, ei = { class: "layers-body" }, ti = { class: "layers-body" };
|
|
1654
1659
|
function oi(o, e, t, i, a, r) {
|
|
1655
|
-
var V, Y, $, ee, Q, ne,
|
|
1656
|
-
const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"), p = k("VCardItem"), d = k("VCheckbox"), m = k("VCardText"), f = k("VCard"),
|
|
1660
|
+
var V, Y, $, ee, Q, ne, he, de, ce, K;
|
|
1661
|
+
const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"), p = k("VCardItem"), d = k("VCheckbox"), m = k("VCardText"), f = k("VCard"), v = k("IdmWorld12nm"), b = k("IdmWorldMarine"), S = k("IdmChinaRoute"), L = k("IdmWarZone"), B = k("IdmGmdssArea"), M = k("IdmEcaZone"), P = k("IdmAlertZone"), _ = k("IdmPort"), z = k("IdmLoadLine"), C = k("IdmTimezone"), x = k("IdmVRA"), I = k("IdmSpecialArea"), W = k("IdmTerminator"), X = k("IdmLatLng");
|
|
1657
1662
|
return y(), T("div", Ha, [
|
|
1658
1663
|
l("div", {
|
|
1659
1664
|
class: "menu-bar-box transition px-1 rounded",
|
|
1660
|
-
style:
|
|
1665
|
+
style: ae({ top: t.top + 10 + "px", right: a.right + "px" })
|
|
1661
1666
|
}, [
|
|
1662
1667
|
h(c, {
|
|
1663
1668
|
text: o.$t("layer.mapLayers"),
|
|
1664
1669
|
location: "left"
|
|
1665
1670
|
}, {
|
|
1666
|
-
activator: g(({ props:
|
|
1667
|
-
h(s, E(
|
|
1671
|
+
activator: g(({ props: R }) => [
|
|
1672
|
+
h(s, E(R, {
|
|
1668
1673
|
"min-width": "32",
|
|
1669
1674
|
width: "32",
|
|
1670
1675
|
height: "32",
|
|
@@ -1683,10 +1688,10 @@ function oi(o, e, t, i, a, r) {
|
|
|
1683
1688
|
], 4),
|
|
1684
1689
|
l("div", {
|
|
1685
1690
|
class: Ne(["available-layers transition", a.toggle ? "right-bar" : ""]),
|
|
1686
|
-
style:
|
|
1691
|
+
style: ae({ top: t.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
1687
1692
|
}, [
|
|
1688
1693
|
l("div", Wa, [
|
|
1689
|
-
l("div", Ga,
|
|
1694
|
+
l("div", Ga, w(o.$t("layer.layers")), 1),
|
|
1690
1695
|
h(s, {
|
|
1691
1696
|
icon: "",
|
|
1692
1697
|
density: "comfortable",
|
|
@@ -1717,7 +1722,7 @@ function oi(o, e, t, i, a, r) {
|
|
|
1717
1722
|
style: { "font-size": "16px !important" }
|
|
1718
1723
|
}, {
|
|
1719
1724
|
default: g(() => [
|
|
1720
|
-
Z(
|
|
1725
|
+
Z(w(o.$t("layer.mapFeathers")), 1)
|
|
1721
1726
|
]),
|
|
1722
1727
|
_: 1
|
|
1723
1728
|
})
|
|
@@ -1727,26 +1732,26 @@ function oi(o, e, t, i, a, r) {
|
|
|
1727
1732
|
h(m, null, {
|
|
1728
1733
|
default: g(() => [
|
|
1729
1734
|
l("div", Va, [
|
|
1730
|
-
(y(!0), T(
|
|
1731
|
-
key:
|
|
1735
|
+
(y(!0), T(_e, null, Le(a.mapFeathers, (R) => (y(), T("div", {
|
|
1736
|
+
key: R.value,
|
|
1732
1737
|
class: "mb-2 feather-item",
|
|
1733
|
-
onClick: (le) => r.handleToggleMapFeather(
|
|
1738
|
+
onClick: (le) => r.handleToggleMapFeather(R)
|
|
1734
1739
|
}, [
|
|
1735
1740
|
l("div", {
|
|
1736
|
-
class: Ne([a.mapFeather ===
|
|
1741
|
+
class: Ne([a.mapFeather === R.value ? "active" : "", "img-box"])
|
|
1737
1742
|
}, [
|
|
1738
|
-
|
|
1743
|
+
R.value === "dark" ? (y(), T("img", Za)) : R.value === "nautical" ? (y(), T("img", Xa)) : R.value === "satellite" ? (y(), T("img", qa)) : (y(), T("img", Ka))
|
|
1739
1744
|
], 2),
|
|
1740
|
-
l("div", Qa,
|
|
1745
|
+
l("div", Qa, w(o.$t(`layer.${R.locale}`)), 1)
|
|
1741
1746
|
], 8, Ya))), 128))
|
|
1742
1747
|
]),
|
|
1743
1748
|
l("div", Ja, [
|
|
1744
|
-
(y(!0), T(
|
|
1745
|
-
key:
|
|
1749
|
+
(y(!0), T(_e, null, Le(a.tagLayers.filter((R) => ["graticule", "day-night", "time-zones"].includes(R.key)), (R) => (y(), U(d, {
|
|
1750
|
+
key: R.key,
|
|
1746
1751
|
modelValue: a.checkList,
|
|
1747
1752
|
"onUpdate:modelValue": e[0] || (e[0] = (le) => a.checkList = le),
|
|
1748
|
-
value:
|
|
1749
|
-
label: o.$t(`layer.${
|
|
1753
|
+
value: R.key,
|
|
1754
|
+
label: o.$t(`layer.${R.locale}`),
|
|
1750
1755
|
color: "primary",
|
|
1751
1756
|
density: "compact",
|
|
1752
1757
|
style: { height: "36px" },
|
|
@@ -1772,7 +1777,7 @@ function oi(o, e, t, i, a, r) {
|
|
|
1772
1777
|
style: { "font-size": "16px !important" }
|
|
1773
1778
|
}, {
|
|
1774
1779
|
default: g(() => [
|
|
1775
|
-
Z(
|
|
1780
|
+
Z(w(o.$t("layer.pointsOfInteresting")), 1)
|
|
1776
1781
|
]),
|
|
1777
1782
|
_: 1
|
|
1778
1783
|
})
|
|
@@ -1782,12 +1787,12 @@ function oi(o, e, t, i, a, r) {
|
|
|
1782
1787
|
h(m, null, {
|
|
1783
1788
|
default: g(() => [
|
|
1784
1789
|
l("div", $a, [
|
|
1785
|
-
(y(!0), T(
|
|
1786
|
-
key:
|
|
1790
|
+
(y(!0), T(_e, null, Le(a.tagLayers.filter((R) => ["ports", "nav-warnings", "tidal-stations"].includes(R.key)), (R) => (y(), U(d, {
|
|
1791
|
+
key: R.key,
|
|
1787
1792
|
modelValue: a.checkList,
|
|
1788
1793
|
"onUpdate:modelValue": e[1] || (e[1] = (le) => a.checkList = le),
|
|
1789
|
-
value:
|
|
1790
|
-
label: o.$t(`layer.${
|
|
1794
|
+
value: R.key,
|
|
1795
|
+
label: o.$t(`layer.${R.locale}`),
|
|
1791
1796
|
color: "primary",
|
|
1792
1797
|
density: "compact",
|
|
1793
1798
|
style: { height: "36px" },
|
|
@@ -1813,7 +1818,7 @@ function oi(o, e, t, i, a, r) {
|
|
|
1813
1818
|
style: { "font-size": "16px !important" }
|
|
1814
1819
|
}, {
|
|
1815
1820
|
default: g(() => [
|
|
1816
|
-
Z(
|
|
1821
|
+
Z(w(o.$t("layer.otherLayers")), 1)
|
|
1817
1822
|
]),
|
|
1818
1823
|
_: 1
|
|
1819
1824
|
})
|
|
@@ -1823,12 +1828,12 @@ function oi(o, e, t, i, a, r) {
|
|
|
1823
1828
|
h(m, null, {
|
|
1824
1829
|
default: g(() => [
|
|
1825
1830
|
l("div", ei, [
|
|
1826
|
-
(y(!0), T(
|
|
1827
|
-
key:
|
|
1831
|
+
(y(!0), T(_e, null, Le(a.tagLayers.filter((R) => !["graticule", "day-night", "time-zones", "ports", "nav-warnings", "tidal-stations"].includes(R.key)), (R) => (y(), U(d, {
|
|
1832
|
+
key: R.key,
|
|
1828
1833
|
modelValue: a.checkList,
|
|
1829
1834
|
"onUpdate:modelValue": e[2] || (e[2] = (le) => a.checkList = le),
|
|
1830
|
-
value:
|
|
1831
|
-
label: o.$t(`layer.${
|
|
1835
|
+
value: R.key,
|
|
1836
|
+
label: o.$t(`layer.${R.locale}`),
|
|
1832
1837
|
color: "primary",
|
|
1833
1838
|
density: "compact",
|
|
1834
1839
|
style: { height: "36px" },
|
|
@@ -1854,7 +1859,7 @@ function oi(o, e, t, i, a, r) {
|
|
|
1854
1859
|
style: { "font-size": "16px !important" }
|
|
1855
1860
|
}, {
|
|
1856
1861
|
default: g(() => [
|
|
1857
|
-
Z(
|
|
1862
|
+
Z(w(o.$t("layer.myFollows")), 1)
|
|
1858
1863
|
]),
|
|
1859
1864
|
_: 1
|
|
1860
1865
|
})
|
|
@@ -1866,7 +1871,7 @@ function oi(o, e, t, i, a, r) {
|
|
|
1866
1871
|
l("div", ti, [
|
|
1867
1872
|
h(d, {
|
|
1868
1873
|
modelValue: a.followList,
|
|
1869
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
1874
|
+
"onUpdate:modelValue": e[3] || (e[3] = (R) => a.followList = R),
|
|
1870
1875
|
value: "ports",
|
|
1871
1876
|
label: o.$t("layer.ports"),
|
|
1872
1877
|
color: "primary",
|
|
@@ -1877,7 +1882,7 @@ function oi(o, e, t, i, a, r) {
|
|
|
1877
1882
|
}, null, 8, ["modelValue", "label"]),
|
|
1878
1883
|
h(d, {
|
|
1879
1884
|
modelValue: a.followList,
|
|
1880
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
1885
|
+
"onUpdate:modelValue": e[4] || (e[4] = (R) => a.followList = R),
|
|
1881
1886
|
value: "locations",
|
|
1882
1887
|
label: o.$t("layer.locations"),
|
|
1883
1888
|
color: "primary",
|
|
@@ -1895,86 +1900,86 @@ function oi(o, e, t, i, a, r) {
|
|
|
1895
1900
|
})
|
|
1896
1901
|
])
|
|
1897
1902
|
], 6),
|
|
1898
|
-
t.map ? (y(), U(
|
|
1903
|
+
t.map ? (y(), U(v, E({
|
|
1899
1904
|
key: 0,
|
|
1900
1905
|
map: t.map,
|
|
1901
1906
|
token: t.token,
|
|
1902
1907
|
show: a.checkList.includes("world12nm")
|
|
1903
|
-
}, o.$attrs), null, 16, ["map", "token", "show"])) :
|
|
1908
|
+
}, o.$attrs), null, 16, ["map", "token", "show"])) : F("", !0),
|
|
1904
1909
|
t.map ? (y(), U(b, E({
|
|
1905
1910
|
key: 1,
|
|
1906
1911
|
map: t.map,
|
|
1907
1912
|
token: t.token,
|
|
1908
1913
|
show: a.checkList.includes("worldMarine")
|
|
1909
|
-
}, o.$attrs), null, 16, ["map", "token", "show"])) :
|
|
1914
|
+
}, o.$attrs), null, 16, ["map", "token", "show"])) : F("", !0),
|
|
1910
1915
|
t.map ? (y(), U(S, E({
|
|
1911
1916
|
key: 2,
|
|
1912
1917
|
map: t.map,
|
|
1913
1918
|
token: t.token,
|
|
1914
1919
|
show: a.checkList.includes("chinaRoute")
|
|
1915
|
-
}, o.$attrs), null, 16, ["map", "token", "show"])) :
|
|
1916
|
-
t.map ? (y(), U(
|
|
1920
|
+
}, o.$attrs), null, 16, ["map", "token", "show"])) : F("", !0),
|
|
1921
|
+
t.map ? (y(), U(L, E({
|
|
1917
1922
|
key: 3,
|
|
1918
1923
|
map: t.map,
|
|
1919
1924
|
zone: (V = a.otherLayers) == null ? void 0 : V["war-zones"]
|
|
1920
|
-
}, o.$attrs), null, 16, ["map", "zone"])) :
|
|
1925
|
+
}, o.$attrs), null, 16, ["map", "zone"])) : F("", !0),
|
|
1921
1926
|
t.map ? (y(), U(B, E({
|
|
1922
1927
|
key: 4,
|
|
1923
1928
|
map: t.map,
|
|
1924
1929
|
area: (Y = a.otherLayers) == null ? void 0 : Y["gmdss-areas"]
|
|
1925
|
-
}, o.$attrs), null, 16, ["map", "area"])) :
|
|
1930
|
+
}, o.$attrs), null, 16, ["map", "area"])) : F("", !0),
|
|
1926
1931
|
t.map ? (y(), U(M, E({
|
|
1927
1932
|
key: 5,
|
|
1928
1933
|
map: t.map,
|
|
1929
1934
|
zone: ($ = a.otherLayers) == null ? void 0 : $["eca-zones"]
|
|
1930
|
-
}, o.$attrs), null, 16, ["map", "zone"])) :
|
|
1931
|
-
t.map ? (y(), U(
|
|
1935
|
+
}, o.$attrs), null, 16, ["map", "zone"])) : F("", !0),
|
|
1936
|
+
t.map ? (y(), U(P, E({
|
|
1932
1937
|
key: 6,
|
|
1933
1938
|
map: t.map,
|
|
1934
1939
|
zone: (ee = a.otherLayers) == null ? void 0 : ee["alert-zones"],
|
|
1935
1940
|
"before-layer": "empty-layer-3"
|
|
1936
|
-
}, o.$attrs), null, 16, ["map", "zone"])) :
|
|
1937
|
-
t.map ? (y(), U(
|
|
1941
|
+
}, o.$attrs), null, 16, ["map", "zone"])) : F("", !0),
|
|
1942
|
+
t.map ? (y(), U(_, E({
|
|
1938
1943
|
key: 7,
|
|
1939
1944
|
map: t.map,
|
|
1940
1945
|
port: (Q = a.otherLayers) == null ? void 0 : Q.ports,
|
|
1941
1946
|
"forecast-model": t.forecastModel
|
|
1942
|
-
}, o.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "port", "forecast-model"])) :
|
|
1947
|
+
}, o.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "port", "forecast-model"])) : F("", !0),
|
|
1943
1948
|
t.map ? (y(), U(z, E({
|
|
1944
1949
|
key: 8,
|
|
1945
1950
|
map: t.map,
|
|
1946
1951
|
line: (ne = a.otherLayers) == null ? void 0 : ne["load-lines"]
|
|
1947
|
-
}, o.$attrs), null, 16, ["map", "line"])) :
|
|
1948
|
-
t.map ? (y(), U(
|
|
1952
|
+
}, o.$attrs), null, 16, ["map", "line"])) : F("", !0),
|
|
1953
|
+
t.map ? (y(), U(C, E({
|
|
1949
1954
|
key: 9,
|
|
1950
1955
|
map: t.map,
|
|
1951
|
-
zone: (
|
|
1952
|
-
}, o.$attrs), null, 16, ["map", "zone"])) :
|
|
1953
|
-
t.map ? (y(), U(
|
|
1956
|
+
zone: (he = a.otherLayers) == null ? void 0 : he["time-zones"]
|
|
1957
|
+
}, o.$attrs), null, 16, ["map", "zone"])) : F("", !0),
|
|
1958
|
+
t.map ? (y(), U(x, E({
|
|
1954
1959
|
key: 10,
|
|
1955
1960
|
map: t.map,
|
|
1956
1961
|
area: (de = a.otherLayers) == null ? void 0 : de["voluntary-reporting-area"]
|
|
1957
|
-
}, o.$attrs), null, 16, ["map", "area"])) :
|
|
1958
|
-
t.map ? (y(), U(
|
|
1962
|
+
}, o.$attrs), null, 16, ["map", "area"])) : F("", !0),
|
|
1963
|
+
t.map ? (y(), U(I, E({
|
|
1959
1964
|
key: 11,
|
|
1960
1965
|
map: t.map,
|
|
1961
|
-
area: (
|
|
1962
|
-
}, o.$attrs), null, 16, ["map", "area"])) :
|
|
1966
|
+
area: (ce = a.otherLayers) == null ? void 0 : ce["special-area"]
|
|
1967
|
+
}, o.$attrs), null, 16, ["map", "area"])) : F("", !0),
|
|
1963
1968
|
t.map ? (y(), U(W, E({
|
|
1964
1969
|
key: 12,
|
|
1965
1970
|
map: t.map,
|
|
1966
1971
|
area: (K = a.otherLayers) == null ? void 0 : K["day-night"]
|
|
1967
|
-
}, o.$attrs), null, 16, ["map", "area"])) :
|
|
1972
|
+
}, o.$attrs), null, 16, ["map", "area"])) : F("", !0),
|
|
1968
1973
|
t.map ? (y(), U(X, E({
|
|
1969
1974
|
key: 13,
|
|
1970
1975
|
map: t.map,
|
|
1971
1976
|
"menu-toggle": t.menuToggle,
|
|
1972
1977
|
show: a.checkList.includes("graticule")
|
|
1973
|
-
}, o.$attrs), null, 16, ["map", "menu-toggle", "show"])) :
|
|
1978
|
+
}, o.$attrs), null, 16, ["map", "menu-toggle", "show"])) : F("", !0)
|
|
1974
1979
|
]);
|
|
1975
1980
|
}
|
|
1976
1981
|
const ai = /* @__PURE__ */ q(Na, [["render", oi]]);
|
|
1977
|
-
class
|
|
1982
|
+
class ao {
|
|
1978
1983
|
constructor(e) {
|
|
1979
1984
|
re(this, "map");
|
|
1980
1985
|
re(this, "mercator");
|
|
@@ -2024,8 +2029,8 @@ class oo {
|
|
|
2024
2029
|
const e = (b = this.map) == null ? void 0 : b.getBounds();
|
|
2025
2030
|
if (!e)
|
|
2026
2031
|
return [];
|
|
2027
|
-
const t = ((S = this.map) == null ? void 0 : S.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]), [p, d] = this.mercator.px([r, i[1]], t), [m, f] = this.mercator.px([c, a[1]], t),
|
|
2028
|
-
return [m, f, p +
|
|
2032
|
+
const t = ((S = this.map) == null ? void 0 : S.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]), [p, d] = this.mercator.px([r, i[1]], t), [m, f] = this.mercator.px([c, a[1]], t), v = Math.round(this.mercator.size * Math.pow(2, t) * (s + n));
|
|
2033
|
+
return [m, f, p + v, d];
|
|
2029
2034
|
}
|
|
2030
2035
|
/**
|
|
2031
2036
|
* [视窗边界像素宽度]
|
|
@@ -2208,10 +2213,10 @@ class je {
|
|
|
2208
2213
|
sRange: t.getUniformLocation(i, "u_range_s")
|
|
2209
2214
|
};
|
|
2210
2215
|
d.resolution && t.uniform2f(d.resolution, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, a), d.image && t.uniform1i(d.image, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, r), d.color && t.uniform1i(d.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (d.uvRange && t.uniform2f(d.uvRange, c.uvRange[0], c.uvRange[1]), d.sRange && t.uniform2f(d.sRange, c.sRange[0], c.sRange[1])), d.scale && t.uniform1f(d.scale, (c == null ? void 0 : c.scale) || 1);
|
|
2211
|
-
const m = e.getBoundPixel(), f = e.map.getZoom() + 1,
|
|
2212
|
-
for (const b of
|
|
2213
|
-
const S = (b[0] - m[0]) * e.ratio,
|
|
2214
|
-
t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER,
|
|
2216
|
+
const m = e.getBoundPixel(), f = e.map.getZoom() + 1, v = e.getWorldCopy(m, f);
|
|
2217
|
+
for (const b of v) {
|
|
2218
|
+
const S = (b[0] - m[0]) * e.ratio, L = (b[1] - m[3]) * e.ratio, B = b[2] * e.ratio, [M, P, _, z] = [S, B + S, L, B + L], C = new Float32Array([M, _, P, _, M, z, M, z, P, _, P, z]);
|
|
2219
|
+
t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER, C, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
2215
2220
|
}
|
|
2216
2221
|
} catch (d) {
|
|
2217
2222
|
console.log(`render failed...${d}`);
|
|
@@ -2308,9 +2313,9 @@ re(se, "fragmentSchema", `
|
|
|
2308
2313
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
2309
2314
|
gl_FragColor = color;
|
|
2310
2315
|
}`);
|
|
2311
|
-
class
|
|
2316
|
+
class ye {
|
|
2312
2317
|
}
|
|
2313
|
-
re(
|
|
2318
|
+
re(ye, "vertexSchema", `
|
|
2314
2319
|
precision mediump float;
|
|
2315
2320
|
|
|
2316
2321
|
attribute float a_index; // 索引
|
|
@@ -2334,7 +2339,7 @@ re(be, "vertexSchema", `
|
|
|
2334
2339
|
gl_PointSize = 1.0;
|
|
2335
2340
|
// gl_PointSize = u_point;
|
|
2336
2341
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
2337
|
-
}`), re(
|
|
2342
|
+
}`), re(ye, "fragmentSchema", `
|
|
2338
2343
|
precision mediump float;
|
|
2339
2344
|
|
|
2340
2345
|
uniform sampler2D u_factor;
|
|
@@ -2356,7 +2361,7 @@ re(be, "vertexSchema", `
|
|
|
2356
2361
|
|
|
2357
2362
|
float f = 1.0 - uv.b;
|
|
2358
2363
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
2359
|
-
}`), re(
|
|
2364
|
+
}`), re(ye, "quadVertSchema", `
|
|
2360
2365
|
precision mediump float;
|
|
2361
2366
|
|
|
2362
2367
|
attribute vec2 a_pos;
|
|
@@ -2366,7 +2371,7 @@ re(be, "vertexSchema", `
|
|
|
2366
2371
|
void main() {
|
|
2367
2372
|
v_tex_pos = a_pos;
|
|
2368
2373
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
2369
|
-
}`), re(
|
|
2374
|
+
}`), re(ye, "screenFragmentSchema", `
|
|
2370
2375
|
precision mediump float;
|
|
2371
2376
|
|
|
2372
2377
|
uniform sampler2D u_screen;
|
|
@@ -2378,7 +2383,7 @@ re(be, "vertexSchema", `
|
|
|
2378
2383
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
2379
2384
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
2380
2385
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
2381
|
-
}`), re(
|
|
2386
|
+
}`), re(ye, "updateFragmentSchema", `
|
|
2382
2387
|
precision mediump float;
|
|
2383
2388
|
|
|
2384
2389
|
uniform sampler2D u_particles;
|
|
@@ -2489,7 +2494,7 @@ const ii = {
|
|
|
2489
2494
|
showCaption: !1,
|
|
2490
2495
|
source: "wind-barb-source",
|
|
2491
2496
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
2492
|
-
empty:
|
|
2497
|
+
empty: j.featureCollection([]),
|
|
2493
2498
|
right: 10,
|
|
2494
2499
|
bottom: 125,
|
|
2495
2500
|
windBarbLoaded: !1
|
|
@@ -2608,7 +2613,7 @@ const si = {
|
|
|
2608
2613
|
type: Object
|
|
2609
2614
|
},
|
|
2610
2615
|
viewport: {
|
|
2611
|
-
type:
|
|
2616
|
+
type: ao
|
|
2612
2617
|
},
|
|
2613
2618
|
menuToggle: {
|
|
2614
2619
|
type: Object
|
|
@@ -2725,11 +2730,11 @@ const si = {
|
|
|
2725
2730
|
];
|
|
2726
2731
|
this.wrapper = this.webgl.bindParticle(
|
|
2727
2732
|
this.particleContext,
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
+
ye.vertexSchema,
|
|
2734
|
+
ye.fragmentSchema,
|
|
2735
|
+
ye.quadVertSchema,
|
|
2736
|
+
ye.screenFragmentSchema,
|
|
2737
|
+
ye.updateFragmentSchema
|
|
2733
2738
|
), this.wrapper.color = this.webgl.setup(this.particleContext, o, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
|
|
2734
2739
|
}
|
|
2735
2740
|
},
|
|
@@ -2773,7 +2778,7 @@ function ci(o, e, t, i, a, r) {
|
|
|
2773
2778
|
return (s = t.factor) != null && s.active ? (y(), T("div", ni, [
|
|
2774
2779
|
l("div", {
|
|
2775
2780
|
class: "legend-bars-gl4 wind",
|
|
2776
|
-
style:
|
|
2781
|
+
style: ae({ right: a.right + "px" })
|
|
2777
2782
|
}, e[0] || (e[0] = [
|
|
2778
2783
|
l("span", null, "kts", -1),
|
|
2779
2784
|
l("span", null, "0", -1),
|
|
@@ -2784,7 +2789,7 @@ function ci(o, e, t, i, a, r) {
|
|
|
2784
2789
|
l("span", null, "40", -1),
|
|
2785
2790
|
l("span", null, "60", -1)
|
|
2786
2791
|
]), 4)
|
|
2787
|
-
])) :
|
|
2792
|
+
])) : F("", !0);
|
|
2788
2793
|
}
|
|
2789
2794
|
const mi = /* @__PURE__ */ q(si, [["render", ci]]), hi = {
|
|
2790
2795
|
name: "IdmCurrent",
|
|
@@ -2818,7 +2823,7 @@ const mi = /* @__PURE__ */ q(si, [["render", ci]]), hi = {
|
|
|
2818
2823
|
directionLayer: "current-direction-layer",
|
|
2819
2824
|
speedLayer: "current-speed-layer",
|
|
2820
2825
|
speedLabelLayer: "current-speed-label-layer",
|
|
2821
|
-
empty:
|
|
2826
|
+
empty: j.featureCollection([])
|
|
2822
2827
|
};
|
|
2823
2828
|
},
|
|
2824
2829
|
computed: {
|
|
@@ -2963,7 +2968,7 @@ const ui = {
|
|
|
2963
2968
|
type: Object
|
|
2964
2969
|
},
|
|
2965
2970
|
viewport: {
|
|
2966
|
-
type:
|
|
2971
|
+
type: ao
|
|
2967
2972
|
},
|
|
2968
2973
|
menuToggle: {
|
|
2969
2974
|
type: Object
|
|
@@ -3073,11 +3078,11 @@ const ui = {
|
|
|
3073
3078
|
];
|
|
3074
3079
|
this.wrapper = this.webgl.bindParticle(
|
|
3075
3080
|
this.particleContext,
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
+
ye.vertexSchema,
|
|
3082
|
+
ye.fragmentSchema,
|
|
3083
|
+
ye.quadVertSchema,
|
|
3084
|
+
ye.screenFragmentSchema,
|
|
3085
|
+
ye.updateFragmentSchema
|
|
3081
3086
|
), this.wrapper.color = this.webgl.setup(this.particleContext, o, !0, 16, 16), this.wrapper = {
|
|
3082
3087
|
...this.wrapper,
|
|
3083
3088
|
...this.webgl.setupParticle(this.particleContext, 9e3),
|
|
@@ -3125,7 +3130,7 @@ function fi(o, e, t, i, a, r) {
|
|
|
3125
3130
|
return (s = t.factor) != null && s.active ? (y(), T("div", gi, [
|
|
3126
3131
|
l("div", {
|
|
3127
3132
|
class: "legend-bars-gl4 current",
|
|
3128
|
-
style:
|
|
3133
|
+
style: ae({ right: a.right + "px" })
|
|
3129
3134
|
}, e[0] || (e[0] = [
|
|
3130
3135
|
l("span", null, "kts", -1),
|
|
3131
3136
|
l("span", null, "0", -1),
|
|
@@ -3135,7 +3140,7 @@ function fi(o, e, t, i, a, r) {
|
|
|
3135
3140
|
l("span", null, "2", -1),
|
|
3136
3141
|
l("span", null, "3.2", -1)
|
|
3137
3142
|
]), 4)
|
|
3138
|
-
])) :
|
|
3143
|
+
])) : F("", !0);
|
|
3139
3144
|
}
|
|
3140
3145
|
const bi = /* @__PURE__ */ q(ui, [["render", fi]]);
|
|
3141
3146
|
const yi = {
|
|
@@ -3253,7 +3258,7 @@ function xi(o, e, t, i, a, r) {
|
|
|
3253
3258
|
return (s = t.factor) != null && s.active ? (y(), T("div", wi, [
|
|
3254
3259
|
l("div", {
|
|
3255
3260
|
class: "legend-bars-gl4 sig-wave",
|
|
3256
|
-
style:
|
|
3261
|
+
style: ae({ right: a.right + "px" })
|
|
3257
3262
|
}, e[0] || (e[0] = [
|
|
3258
3263
|
l("span", null, "m", -1),
|
|
3259
3264
|
l("span", null, "0.5", -1),
|
|
@@ -3263,7 +3268,7 @@ function xi(o, e, t, i, a, r) {
|
|
|
3263
3268
|
l("span", null, "6", -1),
|
|
3264
3269
|
l("span", null, "9", -1)
|
|
3265
3270
|
]), 4)
|
|
3266
|
-
])) :
|
|
3271
|
+
])) : F("", !0);
|
|
3267
3272
|
}
|
|
3268
3273
|
const vi = /* @__PURE__ */ q(yi, [["render", xi], ["__scopeId", "data-v-79ce70e2"]]), _i = {
|
|
3269
3274
|
name: "IdmSigWave",
|
|
@@ -3289,7 +3294,7 @@ const vi = /* @__PURE__ */ q(yi, [["render", xi], ["__scopeId", "data-v-79ce70e2
|
|
|
3289
3294
|
source: "sig-wave-height-source",
|
|
3290
3295
|
heightLayer: "sig-wave-height-layer",
|
|
3291
3296
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
3292
|
-
empty:
|
|
3297
|
+
empty: j.featureCollection([])
|
|
3293
3298
|
};
|
|
3294
3299
|
},
|
|
3295
3300
|
watch: {
|
|
@@ -3418,7 +3423,7 @@ const zi = /* @__PURE__ */ q(_i, [["render", ki]]), Li = {
|
|
|
3418
3423
|
directionLayer: "swell-direction-layer",
|
|
3419
3424
|
heightLayer: "swell-height-layer",
|
|
3420
3425
|
heightLabelLayer: "swell-height-label-layer",
|
|
3421
|
-
empty:
|
|
3426
|
+
empty: j.featureCollection([])
|
|
3422
3427
|
};
|
|
3423
3428
|
},
|
|
3424
3429
|
watch: {
|
|
@@ -3577,7 +3582,7 @@ const Ci = /* @__PURE__ */ q(Li, [["render", Pi]]), Si = {
|
|
|
3577
3582
|
layer: "prmsl-layer",
|
|
3578
3583
|
labelLayer: "prmsl-label-layer",
|
|
3579
3584
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
3580
|
-
empty:
|
|
3585
|
+
empty: j.featureCollection([])
|
|
3581
3586
|
};
|
|
3582
3587
|
},
|
|
3583
3588
|
watch: {
|
|
@@ -3686,7 +3691,7 @@ function Ti(o, e, t, i, a, r) {
|
|
|
3686
3691
|
return (n = t.prmsl) != null && n.active ? (y(), T("div", Mi, [
|
|
3687
3692
|
l("div", {
|
|
3688
3693
|
class: "menu-bar-box pa-1 rounded",
|
|
3689
|
-
style:
|
|
3694
|
+
style: ae({ right: a.right + "px" })
|
|
3690
3695
|
}, [
|
|
3691
3696
|
h(c, {
|
|
3692
3697
|
text: "Map Layers",
|
|
@@ -3711,10 +3716,10 @@ function Ti(o, e, t, i, a, r) {
|
|
|
3711
3716
|
_: 1
|
|
3712
3717
|
})
|
|
3713
3718
|
], 4)
|
|
3714
|
-
])) :
|
|
3719
|
+
])) : F("", !0);
|
|
3715
3720
|
}
|
|
3716
|
-
const
|
|
3717
|
-
const
|
|
3721
|
+
const Ii = /* @__PURE__ */ q(Si, [["render", Ti]]);
|
|
3722
|
+
const Ri = {
|
|
3718
3723
|
name: "IdmIceEdge",
|
|
3719
3724
|
props: {
|
|
3720
3725
|
factor: {
|
|
@@ -3821,7 +3826,7 @@ function Di(o, e, t, i, a, r) {
|
|
|
3821
3826
|
return (s = t.factor) != null && s.active ? (y(), T("div", Ai, [
|
|
3822
3827
|
l("div", {
|
|
3823
3828
|
class: "legend-bars-gl4 ice-edge",
|
|
3824
|
-
style:
|
|
3829
|
+
style: ae({ right: a.right + "px" })
|
|
3825
3830
|
}, e[0] || (e[0] = [
|
|
3826
3831
|
l("span", { style: { color: "rgba(var(--v-theme-black), 0.7)" } }, "%", -1),
|
|
3827
3832
|
l("span", null, null, -1),
|
|
@@ -3836,9 +3841,9 @@ function Di(o, e, t, i, a, r) {
|
|
|
3836
3841
|
l("span", null, "90", -1),
|
|
3837
3842
|
l("span", null, null, -1)
|
|
3838
3843
|
]), 4)
|
|
3839
|
-
])) :
|
|
3844
|
+
])) : F("", !0);
|
|
3840
3845
|
}
|
|
3841
|
-
const Oi = /* @__PURE__ */ q(
|
|
3846
|
+
const Oi = /* @__PURE__ */ q(Ri, [["render", Di]]);
|
|
3842
3847
|
const Bi = {
|
|
3843
3848
|
name: "IdmCover",
|
|
3844
3849
|
props: {
|
|
@@ -3937,7 +3942,7 @@ function ji(o, e, t, i, a, r) {
|
|
|
3937
3942
|
return (s = t.factor) != null && s.active ? (y(), T("div", Ei, [
|
|
3938
3943
|
l("div", {
|
|
3939
3944
|
class: "legend-bars-gl4 ice-cover",
|
|
3940
|
-
style:
|
|
3945
|
+
style: ae({ right: a.right + "px" })
|
|
3941
3946
|
}, e[0] || (e[0] = [
|
|
3942
3947
|
l("span", null, "%", -1),
|
|
3943
3948
|
l("span", null, "20", -1),
|
|
@@ -3946,7 +3951,7 @@ function ji(o, e, t, i, a, r) {
|
|
|
3946
3951
|
l("span", null, "80", -1),
|
|
3947
3952
|
l("span", null, "100", -1)
|
|
3948
3953
|
]), 4)
|
|
3949
|
-
])) :
|
|
3954
|
+
])) : F("", !0);
|
|
3950
3955
|
}
|
|
3951
3956
|
const Fi = /* @__PURE__ */ q(Bi, [["render", ji], ["__scopeId", "data-v-9696d73b"]]);
|
|
3952
3957
|
const Ni = {
|
|
@@ -4055,7 +4060,7 @@ function Wi(o, e, t, i, a, r) {
|
|
|
4055
4060
|
return (s = t.factor) != null && s.active ? (y(), T("div", Hi, [
|
|
4056
4061
|
l("div", {
|
|
4057
4062
|
class: "legend-bars-gl4 ice-thickness",
|
|
4058
|
-
style:
|
|
4063
|
+
style: ae({ right: a.right + "px" })
|
|
4059
4064
|
}, e[0] || (e[0] = [
|
|
4060
4065
|
l("span", null, "m", -1),
|
|
4061
4066
|
l("span", null, "0", -1),
|
|
@@ -4065,7 +4070,7 @@ function Wi(o, e, t, i, a, r) {
|
|
|
4065
4070
|
l("span", null, "2", -1),
|
|
4066
4071
|
l("span", null, "3", -1)
|
|
4067
4072
|
]), 4)
|
|
4068
|
-
])) :
|
|
4073
|
+
])) : F("", !0);
|
|
4069
4074
|
}
|
|
4070
4075
|
const Gi = /* @__PURE__ */ q(Ni, [["render", Wi]]);
|
|
4071
4076
|
const Ui = {
|
|
@@ -4175,7 +4180,7 @@ function Yi(o, e, t, i, a, r) {
|
|
|
4175
4180
|
return (s = t.factor) != null && s.active ? (y(), T("div", Vi, [
|
|
4176
4181
|
l("div", {
|
|
4177
4182
|
class: "legend-bars-gl4 precip3h",
|
|
4178
|
-
style:
|
|
4183
|
+
style: ae({ right: a.right + "px" })
|
|
4179
4184
|
}, e[0] || (e[0] = [
|
|
4180
4185
|
l("span", null, "mm", -1),
|
|
4181
4186
|
l("span", null, "1.5", -1),
|
|
@@ -4186,7 +4191,7 @@ function Yi(o, e, t, i, a, r) {
|
|
|
4186
4191
|
l("span", null, "20", -1),
|
|
4187
4192
|
l("span", null, "30", -1)
|
|
4188
4193
|
]), 4)
|
|
4189
|
-
])) :
|
|
4194
|
+
])) : F("", !0);
|
|
4190
4195
|
}
|
|
4191
4196
|
const Zi = /* @__PURE__ */ q(Ui, [["render", Yi]]);
|
|
4192
4197
|
const Xi = {
|
|
@@ -4286,7 +4291,7 @@ function Ki(o, e, t, i, a, r) {
|
|
|
4286
4291
|
return (s = t.factor) != null && s.active ? (y(), T("div", qi, [
|
|
4287
4292
|
l("div", {
|
|
4288
4293
|
class: "legend-bars-gl4 visibility",
|
|
4289
|
-
style:
|
|
4294
|
+
style: ae({ right: a.right + "px" })
|
|
4290
4295
|
}, e[0] || (e[0] = [
|
|
4291
4296
|
l("span", null, "nm", -1),
|
|
4292
4297
|
l("span", null, "0", -1),
|
|
@@ -4295,7 +4300,7 @@ function Ki(o, e, t, i, a, r) {
|
|
|
4295
4300
|
l("span", null, "3", -1),
|
|
4296
4301
|
l("span", null, "9", -1)
|
|
4297
4302
|
]), 4)
|
|
4298
|
-
])) :
|
|
4303
|
+
])) : F("", !0);
|
|
4299
4304
|
}
|
|
4300
4305
|
const Qi = /* @__PURE__ */ q(Xi, [["render", Ki]]);
|
|
4301
4306
|
const Ji = {
|
|
@@ -4398,7 +4403,7 @@ function er(o, e, t, i, a, r) {
|
|
|
4398
4403
|
return (s = t.factor) != null && s.active ? (y(), T("div", $i, [
|
|
4399
4404
|
l("div", {
|
|
4400
4405
|
class: "legend-bars-gl4 water-temp",
|
|
4401
|
-
style:
|
|
4406
|
+
style: ae({ right: a.right + "px" })
|
|
4402
4407
|
}, e[0] || (e[0] = [
|
|
4403
4408
|
l("span", null, "°C", -1),
|
|
4404
4409
|
l("span", null, "0", -1),
|
|
@@ -4407,7 +4412,7 @@ function er(o, e, t, i, a, r) {
|
|
|
4407
4412
|
l("span", null, "30", -1),
|
|
4408
4413
|
l("span", null, "40", -1)
|
|
4409
4414
|
]), 4)
|
|
4410
|
-
])) :
|
|
4415
|
+
])) : F("", !0);
|
|
4411
4416
|
}
|
|
4412
4417
|
const tr = /* @__PURE__ */ q(Ji, [["render", er]]);
|
|
4413
4418
|
const or = {
|
|
@@ -4521,7 +4526,7 @@ function ir(o, e, t, i, a, r) {
|
|
|
4521
4526
|
return (s = t.factor) != null && s.active ? (y(), T("div", ar, [
|
|
4522
4527
|
l("div", {
|
|
4523
4528
|
class: "legend-bars-gl4 temp",
|
|
4524
|
-
style:
|
|
4529
|
+
style: ae({ right: a.right + "px" })
|
|
4525
4530
|
}, e[0] || (e[0] = [
|
|
4526
4531
|
l("span", null, "°C", -1),
|
|
4527
4532
|
l("span", null, "-20", -1),
|
|
@@ -4532,7 +4537,7 @@ function ir(o, e, t, i, a, r) {
|
|
|
4532
4537
|
l("span", null, "30", -1),
|
|
4533
4538
|
l("span", null, "40", -1)
|
|
4534
4539
|
]), 4)
|
|
4535
|
-
])) :
|
|
4540
|
+
])) : F("", !0);
|
|
4536
4541
|
}
|
|
4537
4542
|
const rr = /* @__PURE__ */ q(or, [["render", ir]]);
|
|
4538
4543
|
const lr = {
|
|
@@ -4545,7 +4550,7 @@ const lr = {
|
|
|
4545
4550
|
IdmWave: vi,
|
|
4546
4551
|
IdmSigWaveHeight: zi,
|
|
4547
4552
|
IdmSwell: Ci,
|
|
4548
|
-
IdmPrmsl:
|
|
4553
|
+
IdmPrmsl: Ii,
|
|
4549
4554
|
IdmIceEdge: Oi,
|
|
4550
4555
|
IdmIceCover: Fi,
|
|
4551
4556
|
IdmIceThickness: Gi,
|
|
@@ -4569,8 +4574,7 @@ const lr = {
|
|
|
4569
4574
|
type: String
|
|
4570
4575
|
},
|
|
4571
4576
|
gateway: {
|
|
4572
|
-
type: String
|
|
4573
|
-
default: "aa"
|
|
4577
|
+
type: String
|
|
4574
4578
|
},
|
|
4575
4579
|
assistGateway: {
|
|
4576
4580
|
type: Array,
|
|
@@ -4606,9 +4610,10 @@ const lr = {
|
|
|
4606
4610
|
right: 10,
|
|
4607
4611
|
toggle: !1,
|
|
4608
4612
|
autoActive: !0,
|
|
4609
|
-
allLayers: [...
|
|
4610
|
-
tagLayers: [...
|
|
4613
|
+
allLayers: [...Jt.WEATHER_LAYERS],
|
|
4614
|
+
tagLayers: [...Jt.WEATHER_LAYERS.filter((o) => !o.hide)],
|
|
4611
4615
|
checkList: [],
|
|
4616
|
+
renderKey: "",
|
|
4612
4617
|
iceToggleValue: void 0,
|
|
4613
4618
|
weatherLayers: {},
|
|
4614
4619
|
activeWeatherLayers: [],
|
|
@@ -4688,7 +4693,7 @@ const lr = {
|
|
|
4688
4693
|
watch: {
|
|
4689
4694
|
"menuToggle.v": {
|
|
4690
4695
|
handler() {
|
|
4691
|
-
this.toggle = this.menuToggle.weatherLayers, this.$nextTick(() => {
|
|
4696
|
+
this.toggle = this.menuToggle.weatherLayers, this.menuToggle.weatherLayers && (this.autoActive = !0), this.$nextTick(() => {
|
|
4692
4697
|
var o;
|
|
4693
4698
|
this.right = (((o = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : o.clientWidth) || 0) + 10;
|
|
4694
4699
|
});
|
|
@@ -4701,7 +4706,7 @@ const lr = {
|
|
|
4701
4706
|
},
|
|
4702
4707
|
map: {
|
|
4703
4708
|
handler() {
|
|
4704
|
-
this.map && (this.map.on("move", this.handleMove4Weather), this.viewport = new
|
|
4709
|
+
this.map && (this.map.on("move", this.handleMove4Weather), this.viewport = new ao(this.map), this.handleRampColorInitial(), this.handleWeatherLayerChange());
|
|
4705
4710
|
},
|
|
4706
4711
|
immediate: !0
|
|
4707
4712
|
},
|
|
@@ -4713,6 +4718,11 @@ const lr = {
|
|
|
4713
4718
|
},
|
|
4714
4719
|
immediate: !0
|
|
4715
4720
|
},
|
|
4721
|
+
renderKey: {
|
|
4722
|
+
handler(o, e) {
|
|
4723
|
+
o && o !== e && (this.checkList = [o]);
|
|
4724
|
+
}
|
|
4725
|
+
},
|
|
4716
4726
|
checkList: {
|
|
4717
4727
|
handler(o, e) {
|
|
4718
4728
|
this.handleCheckListChange(o, e), this.$emit("weatherCheckList", o);
|
|
@@ -4742,6 +4752,7 @@ const lr = {
|
|
|
4742
4752
|
},
|
|
4743
4753
|
isLogin: {
|
|
4744
4754
|
handler(o) {
|
|
4755
|
+
o ? (this.fetchModels(), this.fetchWeatherLayers()) : this.models = {};
|
|
4745
4756
|
},
|
|
4746
4757
|
immediate: !0
|
|
4747
4758
|
}
|
|
@@ -4762,10 +4773,10 @@ const lr = {
|
|
|
4762
4773
|
const o = localStorage.getItem(this.cache.versionKey);
|
|
4763
4774
|
this.cache.v !== o && (localStorage.removeItem(this.cache.autoActiveKey), localStorage.removeItem(this.cache.checkListKey), localStorage.setItem(this.cache.versionKey, this.cache.v));
|
|
4764
4775
|
let e = localStorage.getItem(this.cache.autoActiveKey);
|
|
4765
|
-
this.autoActive = e !== "false", localStorage.setItem(this.cache.autoActiveKey, this.autoActive), e = localStorage.getItem(this.cache.checkListKey), this.checkList = JSON.parse(e || "[]"), localStorage.setItem(this.cache.checkListKey, JSON.stringify(this.checkList));
|
|
4776
|
+
this.autoActive = e !== "false", localStorage.setItem(this.cache.autoActiveKey, this.autoActive), e = localStorage.getItem(this.cache.checkListKey), this.checkList = JSON.parse(e || "[]"), this.checkList.find((t) => this.rendersKeys.includes(t)) && (this.renderKey = this.checkList.find((t) => this.rendersKeys.includes(t))), localStorage.setItem(this.cache.checkListKey, JSON.stringify(this.checkList));
|
|
4766
4777
|
},
|
|
4767
4778
|
handleMenuToggle() {
|
|
4768
|
-
this.$emit("menuToggle", "weatherLayers")
|
|
4779
|
+
this.$emit("menuToggle", "weatherLayers");
|
|
4769
4780
|
},
|
|
4770
4781
|
handleFastWeatherToggle(o) {
|
|
4771
4782
|
let e = [];
|
|
@@ -4775,7 +4786,7 @@ const lr = {
|
|
|
4775
4786
|
if (this.arraysEqual(o, e))
|
|
4776
4787
|
return !1;
|
|
4777
4788
|
const t = [...new Set(o)], i = t == null ? void 0 : t.filter((r) => !(e != null && e.includes(r)))[0], a = e == null ? void 0 : e.filter((r) => !(t != null && t.includes(r)))[0];
|
|
4778
|
-
i && (i === "ice-cover" || i === "ice-thickness" || i === "ice-forecast" ? (this.checkList = ["ice-forecast", this.iceToggleValue || "ice-cover"], this.iceToggleValue = this.iceToggleValue || "ice-cover") : this.rendersKeys.includes(i) ? this.checkList = [i] : this.checkList = t.filter((r) => !this.rendersKeys.includes(r))), a && (a === "ice-forecast" ? (this.checkList = t.filter((r) => !["ice-cover", "ice-thickness", "ice-forecast"].includes(r)), this.iceToggleValue = void 0) : this.checkList = t), this.checkList.includes("wind-particle") && (this.showWindParticle = !0), this.checkList.includes("current-particle") && (this.showCurrentParticle = !0), localStorage.setItem(this.cache.checkListKey, JSON.stringify(t)), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((r) => t.includes(r.key)) : [], this.handleWeatherLayerChange();
|
|
4789
|
+
i && (i === "ice-cover" || i === "ice-thickness" || i === "ice-forecast" ? (this.checkList = ["ice-forecast", this.iceToggleValue || "ice-cover"], this.iceToggleValue = this.iceToggleValue || "ice-cover") : this.rendersKeys.includes(i) ? this.checkList = [i] : (this.checkList = t.filter((r) => !this.rendersKeys.includes(r)), this.renderKey = void 0)), a && (a === "ice-forecast" ? (this.checkList = t.filter((r) => !["ice-cover", "ice-thickness", "ice-forecast"].includes(r)), this.iceToggleValue = void 0) : this.checkList = t), this.checkList.includes("wind-particle") && (this.showWindParticle = !0), this.checkList.includes("current-particle") && (this.showCurrentParticle = !0), localStorage.setItem(this.cache.checkListKey, JSON.stringify(t)), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((r) => t.includes(r.key)) : [], this.handleWeatherLayerChange();
|
|
4779
4790
|
},
|
|
4780
4791
|
async fetchModels() {
|
|
4781
4792
|
this.models = {};
|
|
@@ -4791,19 +4802,19 @@ const lr = {
|
|
|
4791
4802
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
4792
4803
|
let t = 0, i = 0;
|
|
4793
4804
|
if (this.map) {
|
|
4794
|
-
const
|
|
4805
|
+
const v = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, b = (r = this.map) == null ? void 0 : r.getBounds(), S = `${b._sw.lng},${b._sw.lat},${b._ne.lng},${b._ne.lat}`;
|
|
4795
4806
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
4796
|
-
const
|
|
4807
|
+
const L = Jt.WEATHER_LAYERS.find((B) => {
|
|
4797
4808
|
var M;
|
|
4798
4809
|
return ((M = B.peer) == null ? void 0 : M.weight) === this.particleFactor.weight;
|
|
4799
4810
|
});
|
|
4800
|
-
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight &
|
|
4811
|
+
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & L.weight ? this.weatherWeight : this.weatherWeight + L.weight : this.weatherWeight = this.weatherWeight & L.weight ? this.weatherWeight - L.weight : this.weatherWeight;
|
|
4801
4812
|
}
|
|
4802
4813
|
if (this.weatherWeight > 0) {
|
|
4803
|
-
let
|
|
4804
|
-
if (
|
|
4814
|
+
let L = this.weatherWeight;
|
|
4815
|
+
if (L > 0) {
|
|
4805
4816
|
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], M = await Be.get(
|
|
4806
|
-
`${B}/api/arc/weather/layers2/links?l=${
|
|
4817
|
+
`${B}/api/arc/weather/layers2/links?l=${L}&v=${this.forecastModel}&z=${v}&bbox=${S}&t=${this.realTime}`,
|
|
4807
4818
|
{
|
|
4808
4819
|
headers: {
|
|
4809
4820
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -4811,46 +4822,46 @@ const lr = {
|
|
|
4811
4822
|
}
|
|
4812
4823
|
);
|
|
4813
4824
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", i, ", total: ", t += i), ((c = M == null ? void 0 : M.data) == null ? void 0 : c.code) === 0) {
|
|
4814
|
-
const
|
|
4815
|
-
for (const
|
|
4816
|
-
|
|
4817
|
-
Be.get(
|
|
4825
|
+
const P = (n = M == null ? void 0 : M.data) == null ? void 0 : n.data, _ = [];
|
|
4826
|
+
for (const C in P)
|
|
4827
|
+
_.push(
|
|
4828
|
+
Be.get(P[C], {
|
|
4818
4829
|
headers: {
|
|
4819
4830
|
Authorization: this.token || this.defaultMeteoToken,
|
|
4820
|
-
key:
|
|
4831
|
+
key: C
|
|
4821
4832
|
},
|
|
4822
|
-
responseType: /\.(jpg|png)$/.test(
|
|
4823
|
-
}).catch((
|
|
4824
|
-
console.log(`[${
|
|
4833
|
+
responseType: /\.(jpg|png)$/.test(P[C]) ? "blob" : "json"
|
|
4834
|
+
}).catch((x) => {
|
|
4835
|
+
console.log(`[${C}] fetch layer error: ${x}`);
|
|
4825
4836
|
})
|
|
4826
4837
|
);
|
|
4827
|
-
const z = await Promise.all(
|
|
4828
|
-
this.weatherLayers = {}, z.map((
|
|
4838
|
+
const z = await Promise.all(_);
|
|
4839
|
+
this.weatherLayers = {}, z.map((C) => {
|
|
4829
4840
|
var W, X, V, Y;
|
|
4830
|
-
const
|
|
4831
|
-
let
|
|
4832
|
-
|
|
4833
|
-
raw:
|
|
4834
|
-
type: ((Y =
|
|
4841
|
+
const x = ((W = C == null ? void 0 : C.data) == null ? void 0 : W.data) || (C == null ? void 0 : C.data);
|
|
4842
|
+
let I = (V = (X = C == null ? void 0 : C.config) == null ? void 0 : X.headers) == null ? void 0 : V.key;
|
|
4843
|
+
I && x && (this.weatherLayers[I] = {
|
|
4844
|
+
raw: x,
|
|
4845
|
+
type: ((Y = C == null ? void 0 : C.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
|
|
4835
4846
|
etime: M.data.etime
|
|
4836
4847
|
});
|
|
4837
4848
|
});
|
|
4838
4849
|
}
|
|
4839
4850
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather layers elapsed: ", i, ", total: ", t += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
4840
|
-
const
|
|
4851
|
+
const P = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, _ = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
4841
4852
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
4842
4853
|
type: "json",
|
|
4843
|
-
direction:
|
|
4844
|
-
height: { raw:
|
|
4854
|
+
direction: P,
|
|
4855
|
+
height: { raw: _ },
|
|
4845
4856
|
etime: M.data.etime
|
|
4846
4857
|
};
|
|
4847
4858
|
}
|
|
4848
4859
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
4849
|
-
const
|
|
4860
|
+
const P = (m = this.weatherLayers["current-direction"]) == null ? void 0 : m.raw, _ = (f = this.weatherLayers["current-speed"]) == null ? void 0 : f.raw;
|
|
4850
4861
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
4851
4862
|
type: "json",
|
|
4852
|
-
direction:
|
|
4853
|
-
speed: { raw:
|
|
4863
|
+
direction: P,
|
|
4864
|
+
speed: { raw: _ },
|
|
4854
4865
|
etime: M.data.etime
|
|
4855
4866
|
};
|
|
4856
4867
|
}
|
|
@@ -4913,244 +4924,244 @@ const lr = {
|
|
|
4913
4924
|
);
|
|
4914
4925
|
},
|
|
4915
4926
|
handleDrawWeather4Json() {
|
|
4916
|
-
var p, d, m, f,
|
|
4927
|
+
var p, d, m, f, v, b, S;
|
|
4917
4928
|
const o = (/* @__PURE__ */ new Date()).valueOf();
|
|
4918
4929
|
let e = 0, t = 0;
|
|
4919
|
-
const i = (p = this.map) == null ? void 0 : p.getBounds(), a = (d = this.map) == null ? void 0 : d.getZoom(), r =
|
|
4920
|
-
for (const
|
|
4930
|
+
const i = (p = this.map) == null ? void 0 : p.getBounds(), a = (d = this.map) == null ? void 0 : d.getZoom(), r = oe.convertToStdLng(i._sw.lng), s = oe.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
|
|
4931
|
+
for (const L in this.weatherLayers) {
|
|
4921
4932
|
let B = !1;
|
|
4922
|
-
if (this.weatherLayers[
|
|
4933
|
+
if (this.weatherLayers[L].active && this.weatherLayers[L].type === "json") {
|
|
4923
4934
|
let M = [];
|
|
4924
|
-
if (
|
|
4935
|
+
if (L === "swell") {
|
|
4925
4936
|
B = !0;
|
|
4926
|
-
const
|
|
4927
|
-
for (const z in
|
|
4937
|
+
const P = ((m = this.weatherLayers[L]) == null ? void 0 : m.direction) || {};
|
|
4938
|
+
for (const z in P)
|
|
4928
4939
|
if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
4929
|
-
const
|
|
4930
|
-
r > s ?
|
|
4940
|
+
const C = P[z].lng;
|
|
4941
|
+
r > s ? C.forEach((x, I) => {
|
|
4931
4942
|
var W, X, V, Y, $, ee;
|
|
4932
4943
|
if (a < 2) {
|
|
4933
|
-
if ((
|
|
4934
|
-
const Q =
|
|
4935
|
-
val: ((W =
|
|
4936
|
-
spd: (V =
|
|
4944
|
+
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
4945
|
+
const Q = j.point([x, z], {
|
|
4946
|
+
val: ((W = P[z].val) == null ? void 0 : W[I]) || ((X = P[z].dir) == null ? void 0 : X[I]),
|
|
4947
|
+
spd: (V = P[z].spd) == null ? void 0 : V[I]
|
|
4937
4948
|
});
|
|
4938
4949
|
M.push(Q);
|
|
4939
4950
|
}
|
|
4940
|
-
} else if ((
|
|
4941
|
-
const Q =
|
|
4942
|
-
val: ((Y =
|
|
4943
|
-
spd: (ee =
|
|
4951
|
+
} else if ((x >= r && x <= 180 || x >= -180 && x <= s) && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
4952
|
+
const Q = j.point([x, z], {
|
|
4953
|
+
val: ((Y = P[z].val) == null ? void 0 : Y[I]) || (($ = P[z].dir) == null ? void 0 : $[I]),
|
|
4954
|
+
spd: (ee = P[z].spd) == null ? void 0 : ee[I]
|
|
4944
4955
|
});
|
|
4945
4956
|
M.push(Q);
|
|
4946
4957
|
}
|
|
4947
|
-
}) :
|
|
4958
|
+
}) : C.forEach((x, I) => {
|
|
4948
4959
|
var W, X, V, Y, $, ee;
|
|
4949
4960
|
if (r < 2) {
|
|
4950
|
-
if ((
|
|
4951
|
-
const Q =
|
|
4952
|
-
val: ((W =
|
|
4953
|
-
spd: (V =
|
|
4961
|
+
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
4962
|
+
const Q = j.point([x, z], {
|
|
4963
|
+
val: ((W = P[z].val) == null ? void 0 : W[I]) || ((X = P[z].dir) == null ? void 0 : X[I]),
|
|
4964
|
+
spd: (V = P[z].spd) == null ? void 0 : V[I]
|
|
4954
4965
|
});
|
|
4955
4966
|
M.push(Q);
|
|
4956
4967
|
}
|
|
4957
|
-
} else if (
|
|
4958
|
-
const Q =
|
|
4959
|
-
val: ((Y =
|
|
4960
|
-
spd: (ee =
|
|
4968
|
+
} else if (x >= r && x <= s && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
4969
|
+
const Q = j.point([x, z], {
|
|
4970
|
+
val: ((Y = P[z].val) == null ? void 0 : Y[I]) || (($ = P[z].dir) == null ? void 0 : $[I]),
|
|
4971
|
+
spd: (ee = P[z].spd) == null ? void 0 : ee[I]
|
|
4961
4972
|
});
|
|
4962
4973
|
M.push(Q);
|
|
4963
4974
|
}
|
|
4964
4975
|
});
|
|
4965
4976
|
}
|
|
4966
4977
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("swell direction elapsed: ", t, ", total: ", e += t);
|
|
4967
|
-
const
|
|
4968
|
-
if (
|
|
4969
|
-
if (!
|
|
4978
|
+
const _ = this.weatherLayers[L].height;
|
|
4979
|
+
if (_) {
|
|
4980
|
+
if (!_.data) {
|
|
4970
4981
|
const z = [];
|
|
4971
|
-
for (const
|
|
4972
|
-
const
|
|
4973
|
-
for (const
|
|
4982
|
+
for (const C in (f = _.raw) == null ? void 0 : f.LineString) {
|
|
4983
|
+
const x = _.raw.LineString[C];
|
|
4984
|
+
for (const I of x)
|
|
4974
4985
|
z.push(
|
|
4975
|
-
|
|
4976
|
-
val: Number(
|
|
4986
|
+
j.lineString(I, {
|
|
4987
|
+
val: Number(C)
|
|
4977
4988
|
})
|
|
4978
4989
|
);
|
|
4979
|
-
|
|
4990
|
+
_.data = j.featureCollection(z);
|
|
4980
4991
|
}
|
|
4981
4992
|
}
|
|
4982
|
-
if (
|
|
4983
|
-
const z = this.handleBboxClip(
|
|
4993
|
+
if (_.data) {
|
|
4994
|
+
const z = this.handleBboxClip(_.data, i);
|
|
4984
4995
|
M = M.concat(z);
|
|
4985
4996
|
}
|
|
4986
4997
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
|
|
4987
4998
|
}
|
|
4988
|
-
} else if (
|
|
4999
|
+
} else if (L === "current") {
|
|
4989
5000
|
B = !0;
|
|
4990
|
-
const
|
|
4991
|
-
for (const z in
|
|
5001
|
+
const P = ((v = this.weatherLayers[L]) == null ? void 0 : v.direction) || {};
|
|
5002
|
+
for (const z in P)
|
|
4992
5003
|
if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
4993
|
-
const
|
|
4994
|
-
r > s ?
|
|
5004
|
+
const C = P[z].lng;
|
|
5005
|
+
r > s ? C.forEach((x, I) => {
|
|
4995
5006
|
var W, X, V, Y, $, ee;
|
|
4996
5007
|
if (a < 2) {
|
|
4997
|
-
if ((
|
|
4998
|
-
const Q =
|
|
4999
|
-
val: ((W =
|
|
5000
|
-
spd: (V =
|
|
5008
|
+
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
5009
|
+
const Q = j.point([x, z], {
|
|
5010
|
+
val: ((W = P[z].val) == null ? void 0 : W[I]) || ((X = P[z].dir) == null ? void 0 : X[I]),
|
|
5011
|
+
spd: (V = P[z].spd) == null ? void 0 : V[I]
|
|
5001
5012
|
});
|
|
5002
5013
|
M.push(Q);
|
|
5003
5014
|
}
|
|
5004
|
-
} else if ((
|
|
5005
|
-
const Q =
|
|
5006
|
-
val: ((Y =
|
|
5007
|
-
spd: (ee =
|
|
5015
|
+
} else if ((x >= r && x <= 180 || x >= -180 && x <= s) && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5016
|
+
const Q = j.point([x, z], {
|
|
5017
|
+
val: ((Y = P[z].val) == null ? void 0 : Y[I]) || (($ = P[z].dir) == null ? void 0 : $[I]),
|
|
5018
|
+
spd: (ee = P[z].spd) == null ? void 0 : ee[I]
|
|
5008
5019
|
});
|
|
5009
5020
|
M.push(Q);
|
|
5010
5021
|
}
|
|
5011
|
-
}) :
|
|
5022
|
+
}) : C.forEach((x, I) => {
|
|
5012
5023
|
var W, X, V, Y, $, ee;
|
|
5013
5024
|
if (r < 2) {
|
|
5014
|
-
if ((
|
|
5015
|
-
const Q =
|
|
5016
|
-
val: ((W =
|
|
5017
|
-
spd: (V =
|
|
5025
|
+
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
5026
|
+
const Q = j.point([x, z], {
|
|
5027
|
+
val: ((W = P[z].val) == null ? void 0 : W[I]) || ((X = P[z].dir) == null ? void 0 : X[I]),
|
|
5028
|
+
spd: (V = P[z].spd) == null ? void 0 : V[I]
|
|
5018
5029
|
});
|
|
5019
5030
|
M.push(Q);
|
|
5020
5031
|
}
|
|
5021
|
-
} else if (
|
|
5022
|
-
const Q =
|
|
5023
|
-
val: ((Y =
|
|
5024
|
-
spd: (ee =
|
|
5032
|
+
} else if (x >= r && x <= s && (!(a <= this.zoom) || x % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5033
|
+
const Q = j.point([x, z], {
|
|
5034
|
+
val: ((Y = P[z].val) == null ? void 0 : Y[I]) || (($ = P[z].dir) == null ? void 0 : $[I]),
|
|
5035
|
+
spd: (ee = P[z].spd) == null ? void 0 : ee[I]
|
|
5025
5036
|
});
|
|
5026
5037
|
M.push(Q);
|
|
5027
5038
|
}
|
|
5028
5039
|
});
|
|
5029
5040
|
}
|
|
5030
5041
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("current direction elapsed: ", t, ", total: ", e += t);
|
|
5031
|
-
const
|
|
5032
|
-
if (
|
|
5033
|
-
if (!
|
|
5034
|
-
const
|
|
5035
|
-
for (const
|
|
5036
|
-
const
|
|
5037
|
-
for (const W of
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
val: Number(
|
|
5042
|
+
const _ = this.weatherLayers[L].speed;
|
|
5043
|
+
if (_) {
|
|
5044
|
+
if (!_.data) {
|
|
5045
|
+
const C = [];
|
|
5046
|
+
for (const x in (b = _.raw) == null ? void 0 : b.Polygon) {
|
|
5047
|
+
const I = _.raw.Polygon[x];
|
|
5048
|
+
for (const W of I)
|
|
5049
|
+
C.push(
|
|
5050
|
+
j.polygon(W, {
|
|
5051
|
+
val: Number(x)
|
|
5041
5052
|
})
|
|
5042
5053
|
);
|
|
5043
5054
|
}
|
|
5044
|
-
|
|
5055
|
+
_.data = j.featureCollection(C);
|
|
5045
5056
|
}
|
|
5046
|
-
const z = a < this.zoom ?
|
|
5057
|
+
const z = a < this.zoom ? _.data.features.filter((C) => C.properties.val > 0.5) : _.data.features;
|
|
5047
5058
|
M = M.concat(z), t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
|
|
5048
5059
|
}
|
|
5049
|
-
} else if (
|
|
5060
|
+
} else if (L === "wind") {
|
|
5050
5061
|
B = !0;
|
|
5051
|
-
const
|
|
5052
|
-
for (const
|
|
5053
|
-
if (
|
|
5054
|
-
const z =
|
|
5055
|
-
r > s ? z.forEach((
|
|
5056
|
-
var
|
|
5062
|
+
const P = this.weatherLayers.wind.raw;
|
|
5063
|
+
for (const _ in P)
|
|
5064
|
+
if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5065
|
+
const z = P[_].lng;
|
|
5066
|
+
r > s ? z.forEach((C, x) => {
|
|
5067
|
+
var I, W, X, V;
|
|
5057
5068
|
if (a < 2) {
|
|
5058
|
-
if ((
|
|
5059
|
-
const Y =
|
|
5060
|
-
dir: ((
|
|
5061
|
-
spd:
|
|
5069
|
+
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
5070
|
+
const Y = j.point([C, _], {
|
|
5071
|
+
dir: ((I = P[_].val) == null ? void 0 : I[x]) || ((W = P[_].dir) == null ? void 0 : W[x]),
|
|
5072
|
+
spd: P[_].spd[x]
|
|
5062
5073
|
});
|
|
5063
5074
|
M.push(Y);
|
|
5064
5075
|
}
|
|
5065
|
-
} else if ((
|
|
5066
|
-
const Y =
|
|
5067
|
-
dir: ((X =
|
|
5068
|
-
spd:
|
|
5076
|
+
} else if ((C >= r && C <= 180 || C >= -180 && C <= s) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5077
|
+
const Y = j.point([C, _], {
|
|
5078
|
+
dir: ((X = P[_].val) == null ? void 0 : X[x]) || ((V = P[_].dir) == null ? void 0 : V[x]),
|
|
5079
|
+
spd: P[_].spd[x]
|
|
5069
5080
|
});
|
|
5070
5081
|
M.push(Y);
|
|
5071
5082
|
}
|
|
5072
|
-
}) : z.forEach((
|
|
5073
|
-
var
|
|
5083
|
+
}) : z.forEach((C, x) => {
|
|
5084
|
+
var I, W, X, V;
|
|
5074
5085
|
if (a < 2) {
|
|
5075
|
-
if ((
|
|
5076
|
-
const Y =
|
|
5077
|
-
dir: ((
|
|
5078
|
-
spd:
|
|
5086
|
+
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
5087
|
+
const Y = j.point([C, _], {
|
|
5088
|
+
dir: ((I = P[_].val) == null ? void 0 : I[x]) || ((W = P[_].dir) == null ? void 0 : W[x]),
|
|
5089
|
+
spd: P[_].spd[x]
|
|
5079
5090
|
});
|
|
5080
5091
|
M.push(Y);
|
|
5081
5092
|
}
|
|
5082
|
-
} else if (
|
|
5083
|
-
const Y =
|
|
5084
|
-
dir: ((X =
|
|
5085
|
-
spd:
|
|
5093
|
+
} else if (C >= r && C <= s && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5094
|
+
const Y = j.point([C, _], {
|
|
5095
|
+
dir: ((X = P[_].val) == null ? void 0 : X[x]) || ((V = P[_].dir) == null ? void 0 : V[x]),
|
|
5096
|
+
spd: P[_].spd[x]
|
|
5086
5097
|
});
|
|
5087
5098
|
M.push(Y);
|
|
5088
5099
|
}
|
|
5089
5100
|
});
|
|
5090
5101
|
}
|
|
5091
5102
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
|
|
5092
|
-
} else if (
|
|
5093
|
-
if (this.weatherLayers[
|
|
5094
|
-
M = this.weatherLayers[
|
|
5103
|
+
} else if (L === "sig-wave-height") {
|
|
5104
|
+
if (this.weatherLayers[L].data)
|
|
5105
|
+
M = this.weatherLayers[L].data;
|
|
5095
5106
|
else {
|
|
5096
5107
|
B = !0;
|
|
5097
|
-
const
|
|
5098
|
-
if (
|
|
5099
|
-
const
|
|
5100
|
-
for (const z in
|
|
5101
|
-
const
|
|
5102
|
-
for (const
|
|
5103
|
-
|
|
5104
|
-
|
|
5108
|
+
const P = this.weatherLayers[L].raw;
|
|
5109
|
+
if (P) {
|
|
5110
|
+
const _ = [];
|
|
5111
|
+
for (const z in P.Polygon) {
|
|
5112
|
+
const C = P.Polygon[z];
|
|
5113
|
+
for (const x of C)
|
|
5114
|
+
_.push(
|
|
5115
|
+
j.polygon(x, {
|
|
5105
5116
|
val: Number(z)
|
|
5106
5117
|
})
|
|
5107
5118
|
);
|
|
5108
5119
|
}
|
|
5109
|
-
for (const z in
|
|
5110
|
-
const
|
|
5111
|
-
for (let
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
val: Number(
|
|
5120
|
+
for (const z in P.Point) {
|
|
5121
|
+
const C = P.Point[z];
|
|
5122
|
+
for (let x = 0; x < ((S = C.lng) == null ? void 0 : S.length); x++)
|
|
5123
|
+
_.push(
|
|
5124
|
+
j.point([C.lng[x], z], {
|
|
5125
|
+
val: Number(C.val[x])
|
|
5115
5126
|
})
|
|
5116
5127
|
);
|
|
5117
5128
|
}
|
|
5118
|
-
M = M.concat(
|
|
5129
|
+
M = M.concat(_);
|
|
5119
5130
|
}
|
|
5120
5131
|
}
|
|
5121
5132
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("sig-wave-height elapsed: ", t, ", total: ", e += t);
|
|
5122
|
-
} else if (
|
|
5123
|
-
if (this.weatherLayers[
|
|
5124
|
-
M = this.weatherLayers[
|
|
5133
|
+
} else if (L === "prmsl") {
|
|
5134
|
+
if (this.weatherLayers[L].data)
|
|
5135
|
+
M = this.weatherLayers[L].data;
|
|
5125
5136
|
else {
|
|
5126
5137
|
B = !0;
|
|
5127
|
-
const
|
|
5128
|
-
if (
|
|
5129
|
-
const
|
|
5130
|
-
for (const z in
|
|
5131
|
-
const
|
|
5132
|
-
for (const
|
|
5133
|
-
|
|
5134
|
-
|
|
5138
|
+
const P = this.weatherLayers[L].raw;
|
|
5139
|
+
if (P) {
|
|
5140
|
+
const _ = [];
|
|
5141
|
+
for (const z in P.LineString) {
|
|
5142
|
+
const C = P.LineString[z];
|
|
5143
|
+
for (const x of C)
|
|
5144
|
+
_.push(
|
|
5145
|
+
j.lineString(x, {
|
|
5135
5146
|
val: Number(z)
|
|
5136
5147
|
})
|
|
5137
5148
|
);
|
|
5138
5149
|
}
|
|
5139
|
-
for (const z in
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
val:
|
|
5144
|
-
type:
|
|
5150
|
+
for (const z in P.Point)
|
|
5151
|
+
P.Point[z].lng.forEach((C, x) => {
|
|
5152
|
+
C = oe.convertToStdLng(C), _.push(
|
|
5153
|
+
j.point([C, z], {
|
|
5154
|
+
val: P.Point[z].val[x],
|
|
5155
|
+
type: P.Point[z].type[x]
|
|
5145
5156
|
})
|
|
5146
5157
|
);
|
|
5147
5158
|
});
|
|
5148
|
-
M = M.concat(
|
|
5159
|
+
M = M.concat(_);
|
|
5149
5160
|
}
|
|
5150
5161
|
}
|
|
5151
5162
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
5152
5163
|
}
|
|
5153
|
-
M.length && (this.weatherLayers[
|
|
5164
|
+
M.length && (this.weatherLayers[L].data = j.featureCollection(M)), B && (this.weatherLayers[L].version = Math.random() + 1);
|
|
5154
5165
|
}
|
|
5155
5166
|
}
|
|
5156
5167
|
},
|
|
@@ -5160,14 +5171,14 @@ const lr = {
|
|
|
5160
5171
|
this.handleDrawWeather4Json();
|
|
5161
5172
|
},
|
|
5162
5173
|
handleBboxClip(o, e) {
|
|
5163
|
-
const t = [], i =
|
|
5174
|
+
const t = [], i = oe.convertToStdLng(e._sw.lng), a = oe.convertToStdLng(e._ne.lng);
|
|
5164
5175
|
return o.features.forEach((r) => {
|
|
5165
5176
|
if (r.geometry.type !== "Point")
|
|
5166
5177
|
if (i > a) {
|
|
5167
|
-
let s = [i, e._sw.lat, 180, e._ne.lat], c =
|
|
5168
|
-
c.geometry.coordinates.length && t.push(c), s = [-180, e._sw.lat, a, e._ne.lat], c =
|
|
5178
|
+
let s = [i, e._sw.lat, 180, e._ne.lat], c = j.bboxClip(r, s);
|
|
5179
|
+
c.geometry.coordinates.length && t.push(c), s = [-180, e._sw.lat, a, e._ne.lat], c = j.bboxClip(r, s), c.geometry.coordinates.length && t.push(c);
|
|
5169
5180
|
} else {
|
|
5170
|
-
const s = [i, e._sw.lat, a, e._ne.lat], c =
|
|
5181
|
+
const s = [i, e._sw.lat, a, e._ne.lat], c = j.bboxClip(r, s);
|
|
5171
5182
|
c.geometry.coordinates.length && t.push(c);
|
|
5172
5183
|
}
|
|
5173
5184
|
else
|
|
@@ -5184,31 +5195,31 @@ const lr = {
|
|
|
5184
5195
|
}, pr = { class: "text-caption px-2" }, ur = { class: "d-flex flex-row justify-start align-center" }, gr = {
|
|
5185
5196
|
class: "d-flex flex-row justify-center align-center",
|
|
5186
5197
|
style: { width: "48px" }
|
|
5187
|
-
}, fr = { class: "text-caption px-2" }, br = { class: "header-box d-flex justify-space-between align-center pl-4 pr-4" }, yr = { class: "d-flex justify-start align-center ga-3" }, wr = { class: "text-h5 font-weight-medium" }, xr = {
|
|
5198
|
+
}, fr = { class: "text-caption px-2" }, br = { class: "header-box d-flex justify-space-between align-center pl-4 pr-4" }, yr = { class: "d-flex justify-start align-center ga-3" }, wr = { class: "text-h5 font-weight-medium" }, xr = {
|
|
5188
5199
|
key: 0,
|
|
5189
5200
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
5190
|
-
},
|
|
5201
|
+
}, vr = {
|
|
5191
5202
|
key: 1,
|
|
5192
5203
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
5193
|
-
},
|
|
5194
|
-
function
|
|
5195
|
-
var
|
|
5196
|
-
const s = k("VBtn"), c = k("VTooltip"), n = k("VCol"), p = k("VRow"), d = k("VCardText"), m = k("VDivider"), f = k("VCard"),
|
|
5204
|
+
}, _r = { class: "text-body-1 py-2" }, kr = { class: "text-body-1 font-weight-medium" }, zr = { class: "text-body-2 opacity-70" }, Lr = { class: "text-body-2 opacity-70 mb-3" }, Pr = { class: "text-body-1 font-weight-medium" }, Cr = { class: "text-body-2 opacity-70" }, Sr = { class: "text-body-2 opacity-70 mb-3" }, Mr = { class: "text-body-1 py-2" }, Tr = { class: "text-body-1 font-weight-medium" }, Ir = { class: "text-body-2 opacity-70" }, Rr = { class: "text-body-2 opacity-70 mb-3" }, Ar = { class: "text-body-1 font-weight-medium" }, Dr = { class: "text-body-2 opacity-70" }, Or = { class: "text-body-2 opacity-70 mb-3" }, Br = { class: "text-body-1 py-2" }, Er = { class: "text-body-1 font-weight-medium" }, jr = { class: "text-body-2 opacity-70" }, Fr = { class: "text-body-2 opacity-70 mb-3" };
|
|
5205
|
+
function Nr(o, e, t, i, a, r) {
|
|
5206
|
+
var de, ce, K, R, le, ge, fe, we, xe, Se, Me, Te, Ie, Re, be;
|
|
5207
|
+
const s = k("VBtn"), c = k("VTooltip"), n = k("VCol"), p = k("VRow"), d = k("VCardText"), m = k("VDivider"), f = k("VCard"), v = k("VSwitch"), b = k("VCardTitle"), S = k("VCardItem"), L = k("VCheckbox"), B = k("v-radio"), M = k("VBtnToggle"), P = k("IdmWindBarb"), _ = k("IdmSigWaveHeight"), z = k("IdmCurrentDirection"), C = k("IdmPrmsl"), x = k("IdmWindParticle"), I = k("IdmCurrentParticle"), W = k("IdmWave"), X = k("IdmSwell"), V = k("IdmIceEdge"), Y = k("IdmIceCover"), $ = k("IdmIceThickness"), ee = k("IdmPrecip3h"), Q = k("IdmVisibility"), ne = k("IdmWaterTemp"), he = k("IdmTemp");
|
|
5197
5208
|
return y(), T("div", sr, [
|
|
5198
5209
|
l("div", {
|
|
5199
5210
|
class: "menu-bar-box transition pa-1",
|
|
5200
|
-
style:
|
|
5211
|
+
style: ae({ top: t.top + 94 + "px", right: a.right + "px" })
|
|
5201
5212
|
}, [
|
|
5202
5213
|
h(c, {
|
|
5203
5214
|
text: o.$t("weather.weatherLayers"),
|
|
5204
5215
|
location: "left"
|
|
5205
5216
|
}, {
|
|
5206
|
-
activator: g(({ props:
|
|
5207
|
-
h(s, E(
|
|
5217
|
+
activator: g(({ props: H }) => [
|
|
5218
|
+
h(s, E(H, {
|
|
5208
5219
|
"min-width": "32",
|
|
5209
5220
|
width: "32",
|
|
5210
5221
|
height: "32",
|
|
5211
|
-
class: ["text-none pa-0", a.
|
|
5222
|
+
class: ["text-none pa-0", a.autoActive ? "bg-primary active-border" : ""],
|
|
5212
5223
|
onClick: r.handleMenuToggle
|
|
5213
5224
|
}), {
|
|
5214
5225
|
default: g(() => e[7] || (e[7] = [
|
|
@@ -5224,14 +5235,14 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5224
5235
|
r.showTipMenu ? (y(), T("div", nr, [
|
|
5225
5236
|
l("div", {
|
|
5226
5237
|
class: "menu-bar-box pa-1 rounded",
|
|
5227
|
-
style:
|
|
5238
|
+
style: ae({ right: a.right + "px" })
|
|
5228
5239
|
}, [
|
|
5229
5240
|
h(c, {
|
|
5230
5241
|
text: "Legend",
|
|
5231
5242
|
location: "left"
|
|
5232
5243
|
}, {
|
|
5233
|
-
activator: g(({ props:
|
|
5234
|
-
h(s, E(
|
|
5244
|
+
activator: g(({ props: H }) => [
|
|
5245
|
+
h(s, E(H, {
|
|
5235
5246
|
"min-width": "32",
|
|
5236
5247
|
width: "32",
|
|
5237
5248
|
height: "32",
|
|
@@ -5253,7 +5264,7 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5253
5264
|
width: "435",
|
|
5254
5265
|
elevation: "16",
|
|
5255
5266
|
class: "card-info d-flex justify-center align-start",
|
|
5256
|
-
style:
|
|
5267
|
+
style: ae({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
|
|
5257
5268
|
}, {
|
|
5258
5269
|
default: g(() => [
|
|
5259
5270
|
h(d, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
@@ -5261,8 +5272,8 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5261
5272
|
e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
5262
5273
|
h(p, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
5263
5274
|
default: g(() => [
|
|
5264
|
-
(y(!0), T(
|
|
5265
|
-
key:
|
|
5275
|
+
(y(!0), T(_e, null, Le(a.legend.barbs, (H, te) => (y(), U(n, {
|
|
5276
|
+
key: H,
|
|
5266
5277
|
cols: "6",
|
|
5267
5278
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
5268
5279
|
}, {
|
|
@@ -5270,9 +5281,9 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5270
5281
|
l("div", cr, [
|
|
5271
5282
|
l("i", {
|
|
5272
5283
|
class: Ne(["iconfont", r.barbsIconName[te]]),
|
|
5273
|
-
style:
|
|
5284
|
+
style: ae({ color: t.theme === "dark" ? "#fff" : "#000" })
|
|
5274
5285
|
}, null, 6),
|
|
5275
|
-
l("span", mr,
|
|
5286
|
+
l("span", mr, w(Number(H) < 10 ? `00${H}kts` : Number(H) < 100 ? `0${H}kts` : `${H}kts`), 1)
|
|
5276
5287
|
])
|
|
5277
5288
|
]),
|
|
5278
5289
|
_: 2
|
|
@@ -5293,7 +5304,7 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5293
5304
|
style: { width: "100px" }
|
|
5294
5305
|
}, {
|
|
5295
5306
|
default: g(() => [
|
|
5296
|
-
(y(!0), T(
|
|
5307
|
+
(y(!0), T(_e, null, Le(a.legend.sigWaveHeight, (H, te) => (y(), U(n, {
|
|
5297
5308
|
key: te,
|
|
5298
5309
|
cols: "12",
|
|
5299
5310
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
@@ -5302,9 +5313,9 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5302
5313
|
l("div", hr, [
|
|
5303
5314
|
te === 0 ? (y(), T("div", dr)) : (y(), T("div", {
|
|
5304
5315
|
key: 1,
|
|
5305
|
-
style:
|
|
5316
|
+
style: ae({ width: "24px", height: "12px", background: H.color })
|
|
5306
5317
|
}, null, 4)),
|
|
5307
|
-
l("div", pr,
|
|
5318
|
+
l("div", pr, w(H.label), 1)
|
|
5308
5319
|
])
|
|
5309
5320
|
]),
|
|
5310
5321
|
_: 2
|
|
@@ -5325,7 +5336,7 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5325
5336
|
style: { width: "110px" }
|
|
5326
5337
|
}, {
|
|
5327
5338
|
default: g(() => [
|
|
5328
|
-
(y(!0), T(
|
|
5339
|
+
(y(!0), T(_e, null, Le(a.legend.current, (H, te) => (y(), U(n, {
|
|
5329
5340
|
key: te,
|
|
5330
5341
|
cols: "12",
|
|
5331
5342
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
@@ -5335,10 +5346,10 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5335
5346
|
l("div", gr, [
|
|
5336
5347
|
l("i", {
|
|
5337
5348
|
class: "iconfont icon-direction-arrow opacity-80",
|
|
5338
|
-
style:
|
|
5349
|
+
style: ae({ fontSize: 48 * H.size + "px" })
|
|
5339
5350
|
}, null, 4)
|
|
5340
5351
|
]),
|
|
5341
|
-
l("div", fr,
|
|
5352
|
+
l("div", fr, w(H.label), 1)
|
|
5342
5353
|
])
|
|
5343
5354
|
]),
|
|
5344
5355
|
_: 2
|
|
@@ -5352,18 +5363,18 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5352
5363
|
})
|
|
5353
5364
|
]),
|
|
5354
5365
|
_: 1
|
|
5355
|
-
}, 8, ["style"])) :
|
|
5356
|
-
])) :
|
|
5366
|
+
}, 8, ["style"])) : F("", !0)
|
|
5367
|
+
])) : F("", !0),
|
|
5357
5368
|
l("div", {
|
|
5358
5369
|
class: Ne(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
|
|
5359
|
-
style:
|
|
5370
|
+
style: ae({ top: t.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
5360
5371
|
}, [
|
|
5361
5372
|
l("div", br, [
|
|
5362
5373
|
l("div", yr, [
|
|
5363
|
-
l("div", wr,
|
|
5364
|
-
h(
|
|
5374
|
+
l("div", wr, w(o.$t("weather.weather")), 1),
|
|
5375
|
+
h(v, {
|
|
5365
5376
|
modelValue: a.autoActive,
|
|
5366
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
5377
|
+
"onUpdate:modelValue": e[1] || (e[1] = (H) => a.autoActive = H),
|
|
5367
5378
|
class: "small-switch",
|
|
5368
5379
|
color: "primary",
|
|
5369
5380
|
inset: "",
|
|
@@ -5402,30 +5413,28 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5402
5413
|
style: { "font-size": "16px !important" }
|
|
5403
5414
|
}, {
|
|
5404
5415
|
default: g(() => [
|
|
5405
|
-
Z(
|
|
5416
|
+
Z(w(o.$t("weather.overlays")), 1)
|
|
5406
5417
|
]),
|
|
5407
5418
|
_: 1
|
|
5408
5419
|
})
|
|
5409
5420
|
]),
|
|
5410
5421
|
_: 1
|
|
5411
5422
|
}),
|
|
5412
|
-
h(d,
|
|
5423
|
+
h(d, { class: "py-2" }, {
|
|
5413
5424
|
default: g(() => [
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
}, null, 8, ["modelValue", "value", "label", "disabled"]))), 128))
|
|
5428
|
-
])
|
|
5425
|
+
(y(!0), T(_e, null, Le(a.tagLayers.filter((H) => H.overlays), (H) => (y(), U(L, {
|
|
5426
|
+
key: H.key,
|
|
5427
|
+
modelValue: a.checkList,
|
|
5428
|
+
"onUpdate:modelValue": e[2] || (e[2] = (te) => a.checkList = te),
|
|
5429
|
+
value: H.key,
|
|
5430
|
+
label: o.$t(`weather.${H.locale}`),
|
|
5431
|
+
disabled: !a.autoActive,
|
|
5432
|
+
color: "primary",
|
|
5433
|
+
density: "compact",
|
|
5434
|
+
style: { height: "36px" },
|
|
5435
|
+
class: "flex-1-0-100 text-body-2",
|
|
5436
|
+
"hide-details": ""
|
|
5437
|
+
}, null, 8, ["modelValue", "value", "label", "disabled"]))), 128))
|
|
5429
5438
|
]),
|
|
5430
5439
|
_: 1
|
|
5431
5440
|
})
|
|
@@ -5444,102 +5453,103 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5444
5453
|
style: { "font-size": "16px !important" }
|
|
5445
5454
|
}, {
|
|
5446
5455
|
default: g(() => [
|
|
5447
|
-
Z(
|
|
5456
|
+
Z(w(o.$t("weather.renders")), 1)
|
|
5448
5457
|
]),
|
|
5449
5458
|
_: 1
|
|
5450
5459
|
})
|
|
5451
5460
|
]),
|
|
5452
5461
|
_: 1
|
|
5453
5462
|
}),
|
|
5454
|
-
h(d,
|
|
5463
|
+
h(d, { class: "py-2" }, {
|
|
5455
5464
|
default: g(() => [
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5465
|
+
(y(!0), T(_e, null, Le(a.tagLayers.filter((H) => !H.overlays && H.key !== "ice-thickness"), (H) => (y(), T(_e, {
|
|
5466
|
+
key: H.key
|
|
5467
|
+
}, [
|
|
5468
|
+
h(B, {
|
|
5469
|
+
modelValue: a.renderKey,
|
|
5470
|
+
"onUpdate:modelValue": e[3] || (e[3] = (te) => a.renderKey = te),
|
|
5471
|
+
label: o.$t(`weather.${H.locale}`),
|
|
5472
|
+
value: H.key,
|
|
5473
|
+
disabled: !a.autoActive,
|
|
5474
|
+
color: "primary",
|
|
5475
|
+
density: "compact",
|
|
5476
|
+
style: { height: "36px" },
|
|
5477
|
+
class: "text-body-2 py-1",
|
|
5478
|
+
"hide-details": "",
|
|
5479
|
+
onClick: (te) => a.renderKey = H.key
|
|
5480
|
+
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
5481
|
+
a.renderKey === "wind-particle" && H.key === "wind-particle" ? (y(), T("div", xr, [
|
|
5482
|
+
l("span", null, w(o.$t("weather.particle")), 1),
|
|
5483
|
+
h(v, {
|
|
5484
|
+
modelValue: a.showWindParticle,
|
|
5485
|
+
"onUpdate:modelValue": e[4] || (e[4] = (te) => a.showWindParticle = te),
|
|
5486
|
+
label: "",
|
|
5487
|
+
class: "small-switch",
|
|
5466
5488
|
color: "primary",
|
|
5467
5489
|
density: "compact",
|
|
5468
|
-
|
|
5469
|
-
|
|
5490
|
+
inset: "",
|
|
5491
|
+
style: { "font-size": "14px" },
|
|
5470
5492
|
"hide-details": ""
|
|
5471
|
-
}, null, 8, ["modelValue"
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5493
|
+
}, null, 8, ["modelValue"])
|
|
5494
|
+
])) : F("", !0),
|
|
5495
|
+
a.renderKey === "current-particle" && H.key === "current-particle" ? (y(), T("div", vr, [
|
|
5496
|
+
e[13] || (e[13] = l("span", null, "Particle", -1)),
|
|
5497
|
+
h(v, {
|
|
5498
|
+
modelValue: a.showCurrentParticle,
|
|
5499
|
+
"onUpdate:modelValue": e[5] || (e[5] = (te) => a.showCurrentParticle = te),
|
|
5500
|
+
label: "",
|
|
5501
|
+
class: "small-switch",
|
|
5502
|
+
color: "primary",
|
|
5503
|
+
inset: "",
|
|
5504
|
+
density: "compact",
|
|
5505
|
+
height: "20",
|
|
5506
|
+
"hide-details": ""
|
|
5507
|
+
}, null, 8, ["modelValue"])
|
|
5508
|
+
])) : F("", !0),
|
|
5509
|
+
a.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (y(), U(M, {
|
|
5510
|
+
key: 2,
|
|
5511
|
+
modelValue: a.iceToggleValue,
|
|
5512
|
+
"onUpdate:modelValue": e[6] || (e[6] = (te) => a.iceToggleValue = te),
|
|
5513
|
+
class: "ml-7",
|
|
5514
|
+
rounded: "0",
|
|
5515
|
+
height: "30",
|
|
5516
|
+
density: "compact",
|
|
5517
|
+
group: "",
|
|
5518
|
+
disabled: !a.autoActive
|
|
5519
|
+
}, {
|
|
5520
|
+
default: g(() => [
|
|
5521
|
+
h(s, {
|
|
5480
5522
|
density: "compact",
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5523
|
+
height: "30",
|
|
5524
|
+
value: "ice-cover",
|
|
5525
|
+
class: "text-none px-2",
|
|
5526
|
+
color: a.iceToggleValue === "ice-cover" ? "primary" : "",
|
|
5527
|
+
"base-color": "grey-lighten-1",
|
|
5528
|
+
disabled: !a.autoActive
|
|
5529
|
+
}, {
|
|
5530
|
+
default: g(() => [
|
|
5531
|
+
Z(w(o.$t("weather.coverage")), 1)
|
|
5532
|
+
]),
|
|
5533
|
+
_: 1
|
|
5534
|
+
}, 8, ["color", "disabled"]),
|
|
5535
|
+
h(s, {
|
|
5493
5536
|
density: "compact",
|
|
5494
|
-
height: "
|
|
5495
|
-
"
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
h(s, {
|
|
5511
|
-
density: "compact",
|
|
5512
|
-
height: "30",
|
|
5513
|
-
value: "ice-cover",
|
|
5514
|
-
class: "text-none px-2",
|
|
5515
|
-
color: a.iceToggleValue === "ice-cover" ? "primary" : "",
|
|
5516
|
-
"base-color": "grey-lighten-1",
|
|
5517
|
-
disabled: !a.autoActive
|
|
5518
|
-
}, {
|
|
5519
|
-
default: g(() => [
|
|
5520
|
-
Z(x(o.$t("weather.coverage")), 1)
|
|
5521
|
-
]),
|
|
5522
|
-
_: 1
|
|
5523
|
-
}, 8, ["color", "disabled"]),
|
|
5524
|
-
h(s, {
|
|
5525
|
-
density: "compact",
|
|
5526
|
-
height: "30",
|
|
5527
|
-
class: "text-none px-2",
|
|
5528
|
-
color: a.iceToggleValue === "ice-thickness" ? "primary" : "",
|
|
5529
|
-
"base-color": "grey-lighten-1",
|
|
5530
|
-
disabled: !a.autoActive,
|
|
5531
|
-
value: "ice-thickness"
|
|
5532
|
-
}, {
|
|
5533
|
-
default: g(() => [
|
|
5534
|
-
Z(x(o.$t("weather.thickness")), 1)
|
|
5535
|
-
]),
|
|
5536
|
-
_: 1
|
|
5537
|
-
}, 8, ["color", "disabled"])
|
|
5538
|
-
]),
|
|
5539
|
-
_: 1
|
|
5540
|
-
}, 8, ["modelValue", "disabled"])) : N("", !0)
|
|
5541
|
-
], 64))), 128))
|
|
5542
|
-
])
|
|
5537
|
+
height: "30",
|
|
5538
|
+
class: "text-none px-2",
|
|
5539
|
+
color: a.iceToggleValue === "ice-thickness" ? "primary" : "",
|
|
5540
|
+
"base-color": "grey-lighten-1",
|
|
5541
|
+
disabled: !a.autoActive,
|
|
5542
|
+
value: "ice-thickness"
|
|
5543
|
+
}, {
|
|
5544
|
+
default: g(() => [
|
|
5545
|
+
Z(w(o.$t("weather.thickness")), 1)
|
|
5546
|
+
]),
|
|
5547
|
+
_: 1
|
|
5548
|
+
}, 8, ["color", "disabled"])
|
|
5549
|
+
]),
|
|
5550
|
+
_: 1
|
|
5551
|
+
}, 8, ["modelValue", "disabled"])) : F("", !0)
|
|
5552
|
+
], 64))), 128))
|
|
5543
5553
|
]),
|
|
5544
5554
|
_: 1
|
|
5545
5555
|
})
|
|
@@ -5558,7 +5568,7 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5558
5568
|
style: { "font-size": "16px !important" }
|
|
5559
5569
|
}, {
|
|
5560
5570
|
default: g(() => [
|
|
5561
|
-
Z(
|
|
5571
|
+
Z(w(o.$t("weather.forecastModel")), 1)
|
|
5562
5572
|
]),
|
|
5563
5573
|
_: 1
|
|
5564
5574
|
})
|
|
@@ -5567,28 +5577,28 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5567
5577
|
}),
|
|
5568
5578
|
h(d, { class: "" }, {
|
|
5569
5579
|
default: g(() => {
|
|
5570
|
-
var
|
|
5580
|
+
var H, te, Ee, Pe, me, pe, N, ve, J, ie, Ae, D, ue, Ce, De, Oe, A, G, He, We, Ge, ze, Ue, Ve, Ye, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, bt, yt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, Rt, At, Dt, Ot, Bt, Et, jt, Ft, Nt, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt;
|
|
5571
5581
|
return [
|
|
5572
|
-
l("div",
|
|
5573
|
-
l("div",
|
|
5574
|
-
l("div",
|
|
5575
|
-
l("div",
|
|
5576
|
-
l("div",
|
|
5577
|
-
l("div",
|
|
5578
|
-
l("div",
|
|
5582
|
+
l("div", _r, w(o.$t("weather.atmospheric")), 1),
|
|
5583
|
+
l("div", kr, w((Ee = (te = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : te.NOAA) == null ? void 0 : Ee.source) + " " + w((pe = (me = (Pe = a.models) == null ? void 0 : Pe.weather) == null ? void 0 : me.NOAA) == null ? void 0 : pe.spatialResolution) + w(o.$t("units.km")) + " " + w((ie = (J = (ve = (N = a.models) == null ? void 0 : N.weather) == null ? void 0 : ve.NOAA) == null ? void 0 : J.meta) == null ? void 0 : ie.days) + w(o.$t("units.days")), 1),
|
|
5584
|
+
l("div", zr, w(o.$t("weather.source")) + ": NOAA", 1),
|
|
5585
|
+
l("div", Lr, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((Ce = (ue = (D = (Ae = a.models) == null ? void 0 : Ae.weather) == null ? void 0 : D.NOAA) == null ? void 0 : ue.meta) == null ? void 0 : Ce.initialisationTime)), 1),
|
|
5586
|
+
l("div", Pr, w((A = (Oe = (De = a.models) == null ? void 0 : De.weather) == null ? void 0 : Oe.ECMWF) == null ? void 0 : A.source) + " " + w((We = (He = (G = a.models) == null ? void 0 : G.weather) == null ? void 0 : He.ECMWF) == null ? void 0 : We.spatialResolution) + w(o.$t("units.km")) + " " + w((Ve = (Ue = (ze = (Ge = a.models) == null ? void 0 : Ge.weather) == null ? void 0 : ze.ECMWF) == null ? void 0 : Ue.meta) == null ? void 0 : Ve.days) + w(o.$t("units.days")), 1),
|
|
5587
|
+
l("div", Cr, w(o.$t("weather.source")) + ": ECMWF", 1),
|
|
5588
|
+
l("div", Sr, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((qe = (Xe = (Ze = (Ye = a.models) == null ? void 0 : Ye.weather) == null ? void 0 : Ze.ECMWF) == null ? void 0 : Xe.meta) == null ? void 0 : qe.initialisationTime)), 1),
|
|
5579
5589
|
h(m),
|
|
5580
|
-
l("div",
|
|
5581
|
-
l("div",
|
|
5582
|
-
l("div",
|
|
5583
|
-
l("div",
|
|
5584
|
-
l("div",
|
|
5585
|
-
l("div",
|
|
5586
|
-
l("div",
|
|
5590
|
+
l("div", Mr, w(o.$t("weather.wave")), 1),
|
|
5591
|
+
l("div", Tr, w(($e = (Je = (Qe = (Ke = a.models) == null ? void 0 : Ke.marine) == null ? void 0 : Qe.wave) == null ? void 0 : Je.NOAA) == null ? void 0 : $e.source) + " " + w((at = (ot = (tt = (et = a.models) == null ? void 0 : et.marine) == null ? void 0 : tt.wave) == null ? void 0 : ot.NOAA) == null ? void 0 : at.spatialResolution) + w(o.$t("units.km")) + " " + w((nt = (st = (lt = (rt = (it = a.models) == null ? void 0 : it.marine) == null ? void 0 : rt.wave) == null ? void 0 : lt.NOAA) == null ? void 0 : st.meta) == null ? void 0 : nt.days) + w(o.$t("units.days")), 1),
|
|
5592
|
+
l("div", Ir, w(o.$t("weather.source")) + ": NOAA", 1),
|
|
5593
|
+
l("div", Rr, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((pt = (dt = (ht = (mt = (ct = a.models) == null ? void 0 : ct.marine) == null ? void 0 : mt.wave) == null ? void 0 : ht.NOAA) == null ? void 0 : dt.meta) == null ? void 0 : pt.initialisationTime)), 1),
|
|
5594
|
+
l("div", Ar, w((bt = (ft = (gt = (ut = a.models) == null ? void 0 : ut.marine) == null ? void 0 : gt.wave) == null ? void 0 : ft.ECMWF) == null ? void 0 : bt.source) + " " + w((vt = (xt = (wt = (yt = a.models) == null ? void 0 : yt.marine) == null ? void 0 : wt.wave) == null ? void 0 : xt.ECMWF) == null ? void 0 : vt.spatialResolution) + w(o.$t("units.km")) + " " + w((Pt = (Lt = (zt = (kt = (_t = a.models) == null ? void 0 : _t.marine) == null ? void 0 : kt.wave) == null ? void 0 : zt.ECMWF) == null ? void 0 : Lt.meta) == null ? void 0 : Pt.days) + w(o.$t("units.days")), 1),
|
|
5595
|
+
l("div", Dr, w(o.$t("weather.source")) + ": ECMWF", 1),
|
|
5596
|
+
l("div", Or, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((It = (Tt = (Mt = (St = (Ct = a.models) == null ? void 0 : Ct.marine) == null ? void 0 : St.wave) == null ? void 0 : Mt.ECMWF) == null ? void 0 : Tt.meta) == null ? void 0 : It.initialisationTime)), 1),
|
|
5587
5597
|
h(m),
|
|
5588
|
-
l("div",
|
|
5589
|
-
l("div",
|
|
5590
|
-
l("div",
|
|
5591
|
-
l("div",
|
|
5598
|
+
l("div", Br, w(o.$t("weather.currents")), 1),
|
|
5599
|
+
l("div", Er, w((Ot = (Dt = (At = (Rt = a.models) == null ? void 0 : Rt.marine) == null ? void 0 : At.current) == null ? void 0 : Dt.ECMWF) == null ? void 0 : Ot.source) + " " + w((Ft = (jt = (Et = (Bt = a.models) == null ? void 0 : Bt.marine) == null ? void 0 : Et.current) == null ? void 0 : jt.ECMWF) == null ? void 0 : Ft.spatialResolution) + w(o.$t("units.km")) + " " + w((Ut = (Gt = (Wt = (Ht = (Nt = a.models) == null ? void 0 : Nt.marine) == null ? void 0 : Ht.current) == null ? void 0 : Wt.ECMWF) == null ? void 0 : Gt.meta) == null ? void 0 : Ut.days) + w(o.$t("units.days")), 1),
|
|
5600
|
+
l("div", jr, w(o.$t("weather.source")) + ": ECMWF", 1),
|
|
5601
|
+
l("div", Fr, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((qt = (Xt = (Zt = (Yt = (Vt = a.models) == null ? void 0 : Vt.marine) == null ? void 0 : Yt.current) == null ? void 0 : Zt.ECMWF) == null ? void 0 : Xt.meta) == null ? void 0 : qt.initialisationTime)), 1)
|
|
5592
5602
|
];
|
|
5593
5603
|
}),
|
|
5594
5604
|
_: 1
|
|
@@ -5598,109 +5608,109 @@ function Wr(o, e, t, i, a, r) {
|
|
|
5598
5608
|
})
|
|
5599
5609
|
], 2)
|
|
5600
5610
|
], 6),
|
|
5601
|
-
t.map ? (y(), U(
|
|
5611
|
+
t.map ? (y(), U(P, E({
|
|
5602
5612
|
key: 1,
|
|
5603
5613
|
ref: "windBarb",
|
|
5604
5614
|
map: t.map,
|
|
5605
5615
|
"map-feather": t.mapFeather,
|
|
5606
5616
|
"before-layer": "empty-layer-2",
|
|
5607
|
-
wind: (
|
|
5617
|
+
wind: (de = a.weatherLayers) == null ? void 0 : de.wind,
|
|
5608
5618
|
"menu-toggle": t.menuToggle
|
|
5609
|
-
}, o.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) :
|
|
5610
|
-
t.map ? (y(), U(
|
|
5619
|
+
}, o.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : F("", !0),
|
|
5620
|
+
t.map ? (y(), U(_, E({
|
|
5611
5621
|
key: 2,
|
|
5612
5622
|
map: t.map,
|
|
5613
5623
|
"before-layer": "empty-layer-2",
|
|
5614
|
-
"sig-wave-height": (
|
|
5624
|
+
"sig-wave-height": (ce = a.weatherLayers) == null ? void 0 : ce["sig-wave-height"],
|
|
5615
5625
|
"menu-toggle": t.menuToggle,
|
|
5616
5626
|
"active-weather-layers": a.activeWeatherLayers
|
|
5617
|
-
}, o.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) :
|
|
5618
|
-
t.map ? (y(), U(
|
|
5627
|
+
}, o.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : F("", !0),
|
|
5628
|
+
t.map ? (y(), U(z, E({
|
|
5619
5629
|
key: 3,
|
|
5620
5630
|
map: t.map,
|
|
5621
5631
|
"map-feather": t.mapFeather,
|
|
5622
5632
|
"before-layer": "empty-layer-2",
|
|
5623
|
-
current: (
|
|
5633
|
+
current: (K = a.weatherLayers) == null ? void 0 : K.current,
|
|
5624
5634
|
"menu-toggle": t.menuToggle
|
|
5625
|
-
}, o.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) :
|
|
5626
|
-
t.map ? (y(), U(
|
|
5635
|
+
}, o.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : F("", !0),
|
|
5636
|
+
t.map ? (y(), U(C, E({
|
|
5627
5637
|
key: 4,
|
|
5628
5638
|
map: t.map,
|
|
5629
5639
|
"before-layer": "empty-layer-2",
|
|
5630
|
-
prmsl: (
|
|
5640
|
+
prmsl: (R = a.weatherLayers) == null ? void 0 : R.prmsl,
|
|
5631
5641
|
"menu-toggle": t.menuToggle,
|
|
5632
5642
|
"active-weather-layers": a.activeWeatherLayers
|
|
5633
|
-
}, o.$attrs), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers"])) :
|
|
5634
|
-
t.map ? (y(), U(
|
|
5643
|
+
}, o.$attrs), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers"])) : F("", !0),
|
|
5644
|
+
t.map ? (y(), U(x, E({
|
|
5635
5645
|
key: 5,
|
|
5636
5646
|
viewport: a.viewport,
|
|
5637
|
-
factor: (
|
|
5647
|
+
factor: (le = a.weatherLayers) == null ? void 0 : le["wind-particle"],
|
|
5638
5648
|
"menu-toggle": t.menuToggle
|
|
5639
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5640
|
-
t.map ? (y(), U(
|
|
5649
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5650
|
+
t.map ? (y(), U(I, E({
|
|
5641
5651
|
key: 6,
|
|
5642
5652
|
viewport: a.viewport,
|
|
5643
|
-
factor: (
|
|
5653
|
+
factor: (ge = a.weatherLayers) == null ? void 0 : ge["current-particle"],
|
|
5644
5654
|
"menu-toggle": t.menuToggle
|
|
5645
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5646
|
-
t.map ? (y(), U(
|
|
5655
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5656
|
+
t.map ? (y(), U(W, E({
|
|
5647
5657
|
key: 7,
|
|
5648
5658
|
viewport: a.viewport,
|
|
5649
|
-
factor: (
|
|
5659
|
+
factor: (fe = a.weatherLayers) == null ? void 0 : fe["sig-wave"],
|
|
5650
5660
|
"menu-toggle": t.menuToggle
|
|
5651
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5652
|
-
t.map ? (y(), U(
|
|
5661
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5662
|
+
t.map ? (y(), U(X, E({
|
|
5653
5663
|
key: 8,
|
|
5654
5664
|
map: t.map,
|
|
5655
|
-
swell: (
|
|
5665
|
+
swell: (we = a.weatherLayers) == null ? void 0 : we.swell,
|
|
5656
5666
|
"menu-toggle": t.menuToggle,
|
|
5657
5667
|
"active-weather-layers": a.activeWeatherLayers
|
|
5658
|
-
}, o.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) :
|
|
5659
|
-
t.map ? (y(), U(
|
|
5668
|
+
}, o.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) : F("", !0),
|
|
5669
|
+
t.map ? (y(), U(V, E({
|
|
5660
5670
|
key: 9,
|
|
5661
5671
|
viewport: a.viewport,
|
|
5662
|
-
factor: (
|
|
5672
|
+
factor: (xe = a.weatherLayers) == null ? void 0 : xe["ice-edge"],
|
|
5663
5673
|
"menu-toggle": t.menuToggle
|
|
5664
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5665
|
-
t.map ? (y(), U(
|
|
5674
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5675
|
+
t.map ? (y(), U(Y, E({
|
|
5666
5676
|
key: 10,
|
|
5667
5677
|
viewport: a.viewport,
|
|
5668
|
-
factor: (
|
|
5678
|
+
factor: (Se = a.weatherLayers) == null ? void 0 : Se["ice-cover"],
|
|
5669
5679
|
"menu-toggle": t.menuToggle
|
|
5670
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5671
|
-
t.map ? (y(), U(
|
|
5680
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5681
|
+
t.map ? (y(), U($, E({
|
|
5672
5682
|
key: 11,
|
|
5673
5683
|
viewport: a.viewport,
|
|
5674
|
-
factor: (
|
|
5684
|
+
factor: (Me = a.weatherLayers) == null ? void 0 : Me["ice-thickness"],
|
|
5675
5685
|
"menu-toggle": t.menuToggle
|
|
5676
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5677
|
-
t.map ? (y(), U(
|
|
5686
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5687
|
+
t.map ? (y(), U(ee, E({
|
|
5678
5688
|
key: 12,
|
|
5679
5689
|
viewport: a.viewport,
|
|
5680
|
-
factor: (
|
|
5690
|
+
factor: (Te = a.weatherLayers) == null ? void 0 : Te.precip3h,
|
|
5681
5691
|
"menu-toggle": t.menuToggle
|
|
5682
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5683
|
-
t.map ? (y(), U(
|
|
5692
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5693
|
+
t.map ? (y(), U(Q, E({
|
|
5684
5694
|
key: 13,
|
|
5685
5695
|
viewport: a.viewport,
|
|
5686
|
-
factor: (
|
|
5696
|
+
factor: (Ie = a.weatherLayers) == null ? void 0 : Ie.visibility,
|
|
5687
5697
|
"menu-toggle": t.menuToggle
|
|
5688
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5689
|
-
t.map ? (y(), U(
|
|
5698
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5699
|
+
t.map ? (y(), U(ne, E({
|
|
5690
5700
|
key: 14,
|
|
5691
5701
|
viewport: a.viewport,
|
|
5692
5702
|
factor: (Re = a.weatherLayers) == null ? void 0 : Re["water-temp"],
|
|
5693
5703
|
"menu-toggle": t.menuToggle
|
|
5694
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5695
|
-
t.map ? (y(), U(
|
|
5704
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5705
|
+
t.map ? (y(), U(he, E({
|
|
5696
5706
|
key: 15,
|
|
5697
5707
|
viewport: a.viewport,
|
|
5698
|
-
factor: (
|
|
5708
|
+
factor: (be = a.weatherLayers) == null ? void 0 : be.temp,
|
|
5699
5709
|
"menu-toggle": t.menuToggle
|
|
5700
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5710
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0)
|
|
5701
5711
|
]);
|
|
5702
5712
|
}
|
|
5703
|
-
const
|
|
5713
|
+
const Hr = /* @__PURE__ */ q(lr, [["render", Nr]]), Kt = [
|
|
5704
5714
|
{
|
|
5705
5715
|
rank: 0,
|
|
5706
5716
|
name: "Best Match",
|
|
@@ -5859,7 +5869,7 @@ const Gr = /* @__PURE__ */ q(lr, [["render", Wr]]), qt = [
|
|
|
5859
5869
|
categories: "bom_access_global",
|
|
5860
5870
|
variables: "temperature_2m,relative_humidity_2m,dew_point_2m,apparent_temperature,precipitation_probability,precipitation,rain,showers,snowfall_water_equivalent,snowfall,frozen_precipitation_percent,pressure_msl,cloud_cover,visibility,wind_speed_10m,wind_u_component_10m,wind_v_component_10m,wind_direction_10m,wind_gusts_10m,cape,lifted_index,weather_code"
|
|
5861
5871
|
}
|
|
5862
|
-
],
|
|
5872
|
+
], Qt = [
|
|
5863
5873
|
{
|
|
5864
5874
|
rank: 0,
|
|
5865
5875
|
name: "Best Match",
|
|
@@ -5980,10 +5990,10 @@ const Gr = /* @__PURE__ */ q(lr, [["render", Wr]]), qt = [
|
|
|
5980
5990
|
];
|
|
5981
5991
|
class Do {
|
|
5982
5992
|
static standardWeatherModels() {
|
|
5983
|
-
return
|
|
5993
|
+
return Kt.filter((e) => !e.disabled && e.alias);
|
|
5984
5994
|
}
|
|
5985
5995
|
static standardMarineModels() {
|
|
5986
|
-
return
|
|
5996
|
+
return Qt.filter((e) => !e.disabled && e.alias);
|
|
5987
5997
|
}
|
|
5988
5998
|
/**
|
|
5989
5999
|
* 可视化图层模式
|
|
@@ -6017,20 +6027,20 @@ class Do {
|
|
|
6017
6027
|
e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
|
|
6018
6028
|
const a = e.toLowerCase().split(","), r = [], s = [];
|
|
6019
6029
|
for (const c of a) {
|
|
6020
|
-
let n =
|
|
6021
|
-
var m, f,
|
|
6022
|
-
return ((m = d.models) == null ? void 0 : m.includes(c)) || ((f = d.alias) == null ? void 0 : f.toLowerCase()) === c || ((
|
|
6023
|
-
}), p =
|
|
6024
|
-
var m, f,
|
|
6025
|
-
return ((m = d.models) == null ? void 0 : m.includes(c)) || ((f = d.alias) == null ? void 0 : f.toLowerCase()) === c || ((
|
|
6030
|
+
let n = Kt.find((d) => {
|
|
6031
|
+
var m, f, v;
|
|
6032
|
+
return ((m = d.models) == null ? void 0 : m.includes(c)) || ((f = d.alias) == null ? void 0 : f.toLowerCase()) === c || ((v = d.name) == null ? void 0 : v.toLowerCase()) === c;
|
|
6033
|
+
}), p = Qt.find((d) => {
|
|
6034
|
+
var m, f, v;
|
|
6035
|
+
return ((m = d.models) == null ? void 0 : m.includes(c)) || ((f = d.alias) == null ? void 0 : f.toLowerCase()) === c || ((v = d.name) == null ? void 0 : v.toLowerCase()) === c;
|
|
6026
6036
|
});
|
|
6027
|
-
n = n ||
|
|
6037
|
+
n = n || Kt.find((d) => {
|
|
6028
6038
|
var m, f;
|
|
6029
6039
|
return ((m = d.alias) == null ? void 0 : m.toLowerCase()) === ((f = p == null ? void 0 : p.alias) == null ? void 0 : f.toLowerCase());
|
|
6030
|
-
}), p = p ||
|
|
6040
|
+
}), p = p || Qt.find((d) => {
|
|
6031
6041
|
var m, f;
|
|
6032
6042
|
return ((m = d.alias) == null ? void 0 : m.toLowerCase()) === ((f = n == null ? void 0 : n.alias) == null ? void 0 : f.toLowerCase());
|
|
6033
|
-
}), n = n ||
|
|
6043
|
+
}), n = n || Kt[0], p = p || Qt[0], r.push((t = n.models) != null && t.includes(c) ? c : n.model), s.push((i = p.models) != null && i.includes(c) ? c : p.model);
|
|
6034
6044
|
}
|
|
6035
6045
|
return {
|
|
6036
6046
|
weatherModels: r.join(","),
|
|
@@ -6039,7 +6049,7 @@ class Do {
|
|
|
6039
6049
|
}
|
|
6040
6050
|
static autoPickSubCategories(e) {
|
|
6041
6051
|
e = e.toUpperCase();
|
|
6042
|
-
const t =
|
|
6052
|
+
const t = Kt.filter((r) => r.alias === e), i = Qt.filter((r) => r.alias === e), a = [];
|
|
6043
6053
|
return t.forEach((r) => {
|
|
6044
6054
|
r.categories && a.push(...r.categories.split(","));
|
|
6045
6055
|
}), i.forEach((r) => {
|
|
@@ -6047,37 +6057,37 @@ class Do {
|
|
|
6047
6057
|
}), a;
|
|
6048
6058
|
}
|
|
6049
6059
|
static pickHourly(e, t) {
|
|
6050
|
-
var i, a, r, s, c, n, p, d, m, f,
|
|
6051
|
-
const
|
|
6052
|
-
if (
|
|
6053
|
-
const D =
|
|
6060
|
+
var i, a, r, s, c, n, p, d, m, f, v, b, S, L, B, M, P, _, z, C, x, I, W, X, V, Y, $, ee, Q, ne, he, de, ce, K, R, le, ge, fe, we, xe, Se, Me, Te, Ie, Re, be, H, te, Ee, Pe;
|
|
6061
|
+
const me = typeof t == "string" ? O(t) : t, pe = e == null ? void 0 : e.weather, N = e == null ? void 0 : e.marine, ve = O((a = (i = pe == null ? void 0 : pe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = ve.clone().add((c = (s = (r = pe == null ? void 0 : pe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), ie = ve.clone().add((d = (p = (n = pe == null ? void 0 : pe[0]) == null ? void 0 : n.hourly) == null ? void 0 : p.time) == null ? void 0 : d.at(-1), "h"), Ae = [];
|
|
6062
|
+
if (me.isBetween(J, ie, "millisecond", "[]")) {
|
|
6063
|
+
const D = me.utc().diff(J, "h", !1);
|
|
6054
6064
|
let ue, Ce;
|
|
6055
6065
|
if (pe) {
|
|
6056
6066
|
let De = 0, Oe = 0;
|
|
6057
6067
|
for (const A of pe) {
|
|
6058
6068
|
const G = A == null ? void 0 : A.hourly;
|
|
6059
|
-
for (let
|
|
6060
|
-
De += (m = G == null ? void 0 : G.precipitation) == null ? void 0 : m.at(
|
|
6061
|
-
for (let
|
|
6062
|
-
Oe += (f = G == null ? void 0 : G.precipitation) == null ? void 0 : f.at(
|
|
6069
|
+
for (let ze = D - (D - 1) % 3; ze <= D; ze++)
|
|
6070
|
+
De += (m = G == null ? void 0 : G.precipitation) == null ? void 0 : m.at(ze);
|
|
6071
|
+
for (let ze = D - (D - 1) % 6; ze <= D; ze++)
|
|
6072
|
+
Oe += (f = G == null ? void 0 : G.precipitation) == null ? void 0 : f.at(ze);
|
|
6063
6073
|
ue = {
|
|
6064
|
-
temp: (
|
|
6074
|
+
temp: (v = G == null ? void 0 : G.temperature_2m) == null ? void 0 : v.at(D),
|
|
6065
6075
|
apparentTemp: (b = G == null ? void 0 : G.apparent_temperature) == null ? void 0 : b.at(D),
|
|
6066
6076
|
rh: (S = G == null ? void 0 : G.relative_humidity_2m) == null ? void 0 : S.at(D),
|
|
6067
|
-
dp: (
|
|
6077
|
+
dp: (L = G == null ? void 0 : G.dew_point_2m) == null ? void 0 : L.at(D),
|
|
6068
6078
|
precip: {
|
|
6069
6079
|
probability: (B = G == null ? void 0 : G.precipitation_probability) == null ? void 0 : B.at(D),
|
|
6070
6080
|
sum: (M = G == null ? void 0 : G.precipitation) == null ? void 0 : M.at(D),
|
|
6071
6081
|
sum3Hours: Math.round(De * 100) / 100,
|
|
6072
6082
|
sum6Hours: Math.round(Oe * 100) / 100
|
|
6073
6083
|
},
|
|
6074
|
-
pmsl: (
|
|
6075
|
-
psurf: (
|
|
6084
|
+
pmsl: (P = G == null ? void 0 : G.pressure_msl) == null ? void 0 : P.at(D),
|
|
6085
|
+
psurf: (_ = G == null ? void 0 : G.surface_pressure) == null ? void 0 : _.at(D),
|
|
6076
6086
|
code: (z = G == null ? void 0 : G.weather_code) == null ? void 0 : z.at(D),
|
|
6077
|
-
visibility: this.m2nm((
|
|
6087
|
+
visibility: this.m2nm((C = G == null ? void 0 : G.visibility) == null ? void 0 : C.at(D)),
|
|
6078
6088
|
wind: {
|
|
6079
|
-
speed: (
|
|
6080
|
-
kts: (
|
|
6089
|
+
speed: (x = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : x.at(D),
|
|
6090
|
+
kts: (I = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : I.at(D),
|
|
6081
6091
|
degree: (W = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : W.at(D),
|
|
6082
6092
|
bearing: ((X = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : X.at(D)) !== null ? (((V = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : V.at(D)) + 180) % 360 : null,
|
|
6083
6093
|
gusts: (Y = G == null ? void 0 : G.wind_gusts_10m) == null ? void 0 : Y.at(D)
|
|
@@ -6092,38 +6102,38 @@ class Do {
|
|
|
6092
6102
|
});
|
|
6093
6103
|
}
|
|
6094
6104
|
}
|
|
6095
|
-
if (
|
|
6105
|
+
if (N) {
|
|
6096
6106
|
let De = 0;
|
|
6097
|
-
for (const Oe of
|
|
6107
|
+
for (const Oe of N) {
|
|
6098
6108
|
const A = Oe == null ? void 0 : Oe.hourly;
|
|
6099
6109
|
Ce = {
|
|
6100
6110
|
wave: {
|
|
6101
6111
|
sig: {
|
|
6102
6112
|
height: (ee = A == null ? void 0 : A.wave_height) == null ? void 0 : ee.at(D),
|
|
6103
6113
|
degree: (Q = A == null ? void 0 : A.wave_direction) == null ? void 0 : Q.at(D),
|
|
6104
|
-
bearing: ((ne = A == null ? void 0 : A.wave_direction) == null ? void 0 : ne.at(D)) !== null ? (((
|
|
6114
|
+
bearing: ((ne = A == null ? void 0 : A.wave_direction) == null ? void 0 : ne.at(D)) !== null ? (((he = A == null ? void 0 : A.wave_direction) == null ? void 0 : he.at(D)) + 180) % 360 : null,
|
|
6105
6115
|
period: (de = A == null ? void 0 : A.wave_period) == null ? void 0 : de.at(D)
|
|
6106
6116
|
},
|
|
6107
6117
|
swell: {
|
|
6108
|
-
height: (
|
|
6118
|
+
height: (ce = A == null ? void 0 : A.swell_wave_height) == null ? void 0 : ce.at(D),
|
|
6109
6119
|
degree: (K = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : K.at(D),
|
|
6110
|
-
bearing: ((
|
|
6120
|
+
bearing: ((R = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : R.at(D)) !== null ? (((le = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : le.at(D)) + 180) % 360 : null,
|
|
6111
6121
|
period: (ge = A == null ? void 0 : A.swell_wave_period) == null ? void 0 : ge.at(D),
|
|
6112
6122
|
peakPeriod: (fe = A == null ? void 0 : A.swell_wave_peak_period) == null ? void 0 : fe.at(D)
|
|
6113
6123
|
},
|
|
6114
6124
|
wd: {
|
|
6115
|
-
height: (
|
|
6116
|
-
degree: (
|
|
6125
|
+
height: (we = A == null ? void 0 : A.wind_wave_height) == null ? void 0 : we.at(D),
|
|
6126
|
+
degree: (xe = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : xe.at(D),
|
|
6117
6127
|
bearing: ((Se = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : Se.at(D)) !== null ? (((Me = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : Me.at(D)) + 180) % 360 : null,
|
|
6118
6128
|
period: (Te = A == null ? void 0 : A.wind_wave_period) == null ? void 0 : Te.at(D),
|
|
6119
|
-
peakPeriod: (
|
|
6129
|
+
peakPeriod: (Ie = A == null ? void 0 : A.wind_wave_peak_period) == null ? void 0 : Ie.at(D)
|
|
6120
6130
|
}
|
|
6121
6131
|
},
|
|
6122
6132
|
current: {
|
|
6123
|
-
speed: (
|
|
6124
|
-
kts: (
|
|
6125
|
-
degree: (
|
|
6126
|
-
bearing: ((
|
|
6133
|
+
speed: (Re = A == null ? void 0 : A.ocean_current_velocity) == null ? void 0 : Re.at(D),
|
|
6134
|
+
kts: (be = A == null ? void 0 : A.ocean_current_velocity) == null ? void 0 : be.at(D),
|
|
6135
|
+
degree: (H = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : H.at(D),
|
|
6136
|
+
bearing: ((te = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : te.at(D)) ?? null
|
|
6127
6137
|
},
|
|
6128
6138
|
sst: (Ee = A == null ? void 0 : A.sea_surface_temperature) == null ? void 0 : Ee.at(D),
|
|
6129
6139
|
height: (Pe = A == null ? void 0 : A.sea_level_height_msl) == null ? void 0 : Pe.at(D)
|
|
@@ -6156,82 +6166,82 @@ class Do {
|
|
|
6156
6166
|
};
|
|
6157
6167
|
}
|
|
6158
6168
|
static pickDaily(e, t) {
|
|
6159
|
-
var i, a, r, s, c, n, p, d, m, f,
|
|
6160
|
-
const
|
|
6161
|
-
if (
|
|
6162
|
-
let
|
|
6163
|
-
const
|
|
6164
|
-
if (
|
|
6165
|
-
for (const
|
|
6166
|
-
const J =
|
|
6167
|
-
|
|
6168
|
-
code: (p = J.weather_code) == null ? void 0 : p.at(
|
|
6169
|
+
var i, a, r, s, c, n, p, d, m, f, v, b, S, L, B, M, P, _, z, C, x, I, W, X, V, Y, $, ee, Q, ne, he, de, ce, K, R, le, ge, fe, we, xe, Se, Me, Te, Ie;
|
|
6170
|
+
const Re = typeof t == "string" ? O(t) : t, be = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = O((r = (a = (i = be == null ? void 0 : be[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Ee = O((n = (c = (s = be == null ? void 0 : be[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Pe = [];
|
|
6171
|
+
if (Re.isBetween(te, Ee, "millisecond", "[]")) {
|
|
6172
|
+
let me, pe;
|
|
6173
|
+
const N = Re.diff(te, "d", !1);
|
|
6174
|
+
if (be)
|
|
6175
|
+
for (const ve of be) {
|
|
6176
|
+
const J = ve.daily;
|
|
6177
|
+
me = {
|
|
6178
|
+
code: (p = J.weather_code) == null ? void 0 : p.at(N),
|
|
6169
6179
|
temp: {
|
|
6170
|
-
max: (d = J.temperature_2m_max) == null ? void 0 : d.at(
|
|
6171
|
-
min: (m = J.temperature_2m_min) == null ? void 0 : m.at(
|
|
6172
|
-
mean: (f = J.temperature_2m_mean) == null ? void 0 : f.at(
|
|
6180
|
+
max: (d = J.temperature_2m_max) == null ? void 0 : d.at(N),
|
|
6181
|
+
min: (m = J.temperature_2m_min) == null ? void 0 : m.at(N),
|
|
6182
|
+
mean: (f = J.temperature_2m_mean) == null ? void 0 : f.at(N)
|
|
6173
6183
|
},
|
|
6174
6184
|
apparentTemp: {
|
|
6175
|
-
max: (
|
|
6176
|
-
min: (b = J.apparent_temperature_min) == null ? void 0 : b.at(
|
|
6185
|
+
max: (v = J.apparent_temperature_max) == null ? void 0 : v.at(N),
|
|
6186
|
+
min: (b = J.apparent_temperature_min) == null ? void 0 : b.at(N)
|
|
6177
6187
|
},
|
|
6178
6188
|
precip: {
|
|
6179
|
-
sum: (S = J.precipitation_sum) == null ? void 0 : S.at(
|
|
6180
|
-
rainSum: (
|
|
6181
|
-
snowfallSum: (B = J.snowfall_sum) == null ? void 0 : B.at(
|
|
6182
|
-
showersSum: (M = J.showers_sum) == null ? void 0 : M.at(
|
|
6183
|
-
hours: (
|
|
6184
|
-
probability: (
|
|
6189
|
+
sum: (S = J.precipitation_sum) == null ? void 0 : S.at(N),
|
|
6190
|
+
rainSum: (L = J.rain_sum) == null ? void 0 : L.at(N),
|
|
6191
|
+
snowfallSum: (B = J.snowfall_sum) == null ? void 0 : B.at(N),
|
|
6192
|
+
showersSum: (M = J.showers_sum) == null ? void 0 : M.at(N),
|
|
6193
|
+
hours: (P = J.precipitation_hours) == null ? void 0 : P.at(N),
|
|
6194
|
+
probability: (_ = J.precipitation_probability_max) == null ? void 0 : _.at(N)
|
|
6185
6195
|
},
|
|
6186
6196
|
rh: {
|
|
6187
|
-
max: (z = J.relative_humidity_2m_max) == null ? void 0 : z.at(
|
|
6188
|
-
min: (
|
|
6189
|
-
mean: (
|
|
6197
|
+
max: (z = J.relative_humidity_2m_max) == null ? void 0 : z.at(N),
|
|
6198
|
+
min: (C = J.relative_humidity_2m_min) == null ? void 0 : C.at(N),
|
|
6199
|
+
mean: (x = J.relative_humidity_2m_mean) == null ? void 0 : x.at(N)
|
|
6190
6200
|
},
|
|
6191
6201
|
wind: {
|
|
6192
|
-
speed: (
|
|
6193
|
-
kts: (W = J.wind_speed_10m_max) == null ? void 0 : W.at(
|
|
6194
|
-
degree: (X = J.wind_direction_10m_dominant) == null ? void 0 : X.at(
|
|
6195
|
-
gusts: (V = J.wind_gusts_10m_max) == null ? void 0 : V.at(
|
|
6196
|
-
bearing: ((Y = J.wind_direction_10m_dominant) == null ? void 0 : Y.at(
|
|
6202
|
+
speed: (I = J.wind_speed_10m_max) == null ? void 0 : I.at(N),
|
|
6203
|
+
kts: (W = J.wind_speed_10m_max) == null ? void 0 : W.at(N),
|
|
6204
|
+
degree: (X = J.wind_direction_10m_dominant) == null ? void 0 : X.at(N),
|
|
6205
|
+
gusts: (V = J.wind_gusts_10m_max) == null ? void 0 : V.at(N),
|
|
6206
|
+
bearing: ((Y = J.wind_direction_10m_dominant) == null ? void 0 : Y.at(N)) !== null ? ((($ = J.wind_direction_10m_dominant) == null ? void 0 : $.at(N)) + 180) % 360 : null
|
|
6197
6207
|
}
|
|
6198
6208
|
};
|
|
6199
|
-
const { name:
|
|
6200
|
-
|
|
6201
|
-
utc:
|
|
6202
|
-
model:
|
|
6203
|
-
weather: { ...
|
|
6209
|
+
const { name: ie, url: Ae, bg: D } = this.parseWeatherCode(me.code, !0);
|
|
6210
|
+
me.name = ie, me.url = Ae, me.bg = D, me.wind.scale = this.beaufort(this.kts2ms(me.wind.kts)), me.wind.direction = this.degree2Direction(me.wind.degree), Pe.push({
|
|
6211
|
+
utc: te.add(N, "d").utc().format(),
|
|
6212
|
+
model: ve.model,
|
|
6213
|
+
weather: { ...me }
|
|
6204
6214
|
});
|
|
6205
6215
|
}
|
|
6206
|
-
if (
|
|
6207
|
-
let
|
|
6208
|
-
for (const J of
|
|
6209
|
-
const
|
|
6216
|
+
if (H) {
|
|
6217
|
+
let ve = 0;
|
|
6218
|
+
for (const J of H) {
|
|
6219
|
+
const ie = J.daily;
|
|
6210
6220
|
pe = {
|
|
6211
6221
|
wave: {
|
|
6212
6222
|
sig: {
|
|
6213
|
-
height: (ee =
|
|
6214
|
-
degree: (Q =
|
|
6215
|
-
period: (ne =
|
|
6216
|
-
bearing: ((
|
|
6223
|
+
height: (ee = ie.wave_height_max) == null ? void 0 : ee.at(N),
|
|
6224
|
+
degree: (Q = ie.wave_direction_dominant) == null ? void 0 : Q.at(N),
|
|
6225
|
+
period: (ne = ie.wave_period_max) == null ? void 0 : ne.at(N),
|
|
6226
|
+
bearing: ((he = ie.wave_direction_dominant) == null ? void 0 : he.at(N)) !== null ? (((de = ie.wave_direction_dominant) == null ? void 0 : de.at(N)) + 180) % 360 : null
|
|
6217
6227
|
},
|
|
6218
6228
|
swell: {
|
|
6219
|
-
height: (
|
|
6220
|
-
degree: (K =
|
|
6221
|
-
period: (
|
|
6222
|
-
peakPeriod: (le =
|
|
6229
|
+
height: (ce = ie.swell_wave_height_max) == null ? void 0 : ce.at(N),
|
|
6230
|
+
degree: (K = ie.swell_wave_direction_dominant) == null ? void 0 : K.at(N),
|
|
6231
|
+
period: (R = ie.swell_wave_period_max) == null ? void 0 : R.at(N),
|
|
6232
|
+
peakPeriod: (le = ie.swell_wave_peak_period_max) == null ? void 0 : le.at(N),
|
|
6223
6233
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
6224
|
-
bearing: ((ge =
|
|
6234
|
+
bearing: ((ge = ie.swell_wave_direction_dominant) == null ? void 0 : ge.at(N)) !== null ? ((fe = ie.swell_wave_direction_dominant) == null ? void 0 : fe.at(N)) % 360 : null
|
|
6225
6235
|
},
|
|
6226
6236
|
wd: {
|
|
6227
|
-
height: (
|
|
6228
|
-
degree: (
|
|
6229
|
-
period: (Se =
|
|
6230
|
-
peakPeriod: (Me =
|
|
6231
|
-
bearing: ((Te =
|
|
6237
|
+
height: (we = ie.wind_wave_height_max) == null ? void 0 : we.at(N),
|
|
6238
|
+
degree: (xe = ie.wind_wave_direction_dominant) == null ? void 0 : xe.at(N),
|
|
6239
|
+
period: (Se = ie.wind_wave_period_max) == null ? void 0 : Se.at(N),
|
|
6240
|
+
peakPeriod: (Me = ie.wind_wave_peak_period_max) == null ? void 0 : Me.at(N),
|
|
6241
|
+
bearing: ((Te = ie.wind_wave_direction_dominant) == null ? void 0 : Te.at(N)) !== null ? (((Ie = ie.wind_wave_direction_dominant) == null ? void 0 : Ie.at(N)) + 180) % 360 : null
|
|
6232
6242
|
}
|
|
6233
6243
|
}
|
|
6234
|
-
}, pe.wave = this.parseWave(pe.wave,
|
|
6244
|
+
}, pe.wave = this.parseWave(pe.wave, me == null ? void 0 : me.wind), Object.assign(Pe[ve], pe), ve++;
|
|
6235
6245
|
}
|
|
6236
6246
|
}
|
|
6237
6247
|
}
|
|
@@ -6636,7 +6646,7 @@ class Do {
|
|
|
6636
6646
|
return isNaN(e) || e <= 0.1 ? t = "Calm" : e <= 0.5 ? t = "Smooth" : e <= 1.25 ? t = "Slight" : e <= 2.5 ? t = "Moderate" : e <= 4 ? t = "Rough" : e <= 6 ? t = "VeryRough" : e <= 9 ? t = "High" : e <= 14 ? t = "VeryHigh" : t = "Precipitous", t;
|
|
6637
6647
|
}
|
|
6638
6648
|
}
|
|
6639
|
-
const
|
|
6649
|
+
const Wr = {
|
|
6640
6650
|
name: "IdmTropicals",
|
|
6641
6651
|
props: {
|
|
6642
6652
|
map: {
|
|
@@ -6700,9 +6710,9 @@ const Ur = {
|
|
|
6700
6710
|
showTropicalsInfo: !1,
|
|
6701
6711
|
activeTropicals: void 0,
|
|
6702
6712
|
activeTropicalsMarker: void 0,
|
|
6703
|
-
empty:
|
|
6713
|
+
empty: j.featureCollection([]),
|
|
6704
6714
|
circleSource: "circle-source",
|
|
6705
|
-
circleSourceData:
|
|
6715
|
+
circleSourceData: j.featureCollection([]),
|
|
6706
6716
|
circleLayer: "tropical-circle-layer"
|
|
6707
6717
|
};
|
|
6708
6718
|
},
|
|
@@ -6773,7 +6783,7 @@ const Ur = {
|
|
|
6773
6783
|
async fetchTropicals() {
|
|
6774
6784
|
var a, r, s;
|
|
6775
6785
|
const o = (/* @__PURE__ */ new Date()).valueOf();
|
|
6776
|
-
let e = 0, t = 0, i = (a =
|
|
6786
|
+
let e = 0, t = 0, i = (a = Jt.WEATHER_LAYERS.find((c) => c.key === "tropicals")) == null ? void 0 : a.weight;
|
|
6777
6787
|
if (i > 0) {
|
|
6778
6788
|
const c = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], n = await Be.get(`${c}/api/arc/weather/layers2/links?l=${i}&v=${this.forecastModel}&t=${this.realTime}`, {
|
|
6779
6789
|
headers: {
|
|
@@ -6789,8 +6799,8 @@ const Ur = {
|
|
|
6789
6799
|
},
|
|
6790
6800
|
responseType: /\.(jpg|png)$/.test(p.tropicals) ? "blob" : "json"
|
|
6791
6801
|
}).then((d) => {
|
|
6792
|
-
var
|
|
6793
|
-
const m = Ao.convert2Geojson(((
|
|
6802
|
+
var v, b, S;
|
|
6803
|
+
const m = Ao.convert2Geojson(((v = d == null ? void 0 : d.data) == null ? void 0 : v.data) || (d == null ? void 0 : d.data));
|
|
6794
6804
|
((S = (b = d == null ? void 0 : d.config) == null ? void 0 : b.headers) == null ? void 0 : S.key) && m && (this.tropicals = {
|
|
6795
6805
|
data: m,
|
|
6796
6806
|
active: !0,
|
|
@@ -6839,8 +6849,8 @@ const Ur = {
|
|
|
6839
6849
|
else {
|
|
6840
6850
|
if (this.tropicals) {
|
|
6841
6851
|
const m = (/* @__PURE__ */ new Date()).valueOf();
|
|
6842
|
-
let f = 0,
|
|
6843
|
-
(o = this.map) != null && o.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty),
|
|
6852
|
+
let f = 0, v = 0;
|
|
6853
|
+
(o = this.map) != null && o.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropicals] update elapsed: ", v, ", total: ", f += v)) : (this.map.addSource(this.source, {
|
|
6844
6854
|
type: "geojson",
|
|
6845
6855
|
data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
|
|
6846
6856
|
}), this.map.addLayer({
|
|
@@ -6937,7 +6947,7 @@ const Ur = {
|
|
|
6937
6947
|
],
|
|
6938
6948
|
"text-halo-width": 4
|
|
6939
6949
|
}
|
|
6940
|
-
}),
|
|
6950
|
+
}), v = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropical] add elapsed: ", v, ", total: ", f += v)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropical] update elapsed: ", v, ", total: ", f += v)) : (this.map.addSource(this.clusterSource, {
|
|
6941
6951
|
type: "geojson",
|
|
6942
6952
|
data: (n = this.tropicals) != null && n.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
6943
6953
|
// cluster: true,
|
|
@@ -7054,7 +7064,7 @@ const Ur = {
|
|
|
7054
7064
|
"text-halo-color": "#0033ff",
|
|
7055
7065
|
"text-halo-width": 4
|
|
7056
7066
|
}
|
|
7057
|
-
}),
|
|
7067
|
+
}), v = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropical] add elapsed: ", v, ", total: ", f += v));
|
|
7058
7068
|
}
|
|
7059
7069
|
this.handleDrawCircle();
|
|
7060
7070
|
const d = Ao.interpolate(this.tropicals, 1);
|
|
@@ -7079,14 +7089,14 @@ const Ur = {
|
|
|
7079
7089
|
), this.showTropicalsInfo = !1, (t = this.activeTropicalsMarker) == null || t.remove(), this.activeTropicalsMarker = void 0;
|
|
7080
7090
|
},
|
|
7081
7091
|
handleDateChange() {
|
|
7082
|
-
var o, e, t, i, a, r, s, c, n, p, d, m, f,
|
|
7092
|
+
var o, e, t, i, a, r, s, c, n, p, d, m, f, v, b, S, L, B, M, P, _, z, C, x, I, W, X, V, Y, $, ee, Q;
|
|
7083
7093
|
if ((o = this.interpolateMarkers) == null || o.forEach((ne) => ne == null ? void 0 : ne.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
7084
|
-
const ne = O(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }),
|
|
7094
|
+
const ne = O(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), he = this.interpolateData.filter((K) => K.properties.date === ne.format() && !K.properties.disabled), de = this.handleComputePolygons(he), ce = j.featureCollection([...he]);
|
|
7085
7095
|
de.forEach((K) => {
|
|
7086
|
-
|
|
7087
|
-
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(
|
|
7096
|
+
ce.features.push(K);
|
|
7097
|
+
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(ce) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
7088
7098
|
type: "geojson",
|
|
7089
|
-
data:
|
|
7099
|
+
data: ce
|
|
7090
7100
|
}), (r = this.map) == null || r.addLayer({
|
|
7091
7101
|
id: this.interpolateLineLayer,
|
|
7092
7102
|
type: "line",
|
|
@@ -7098,17 +7108,17 @@ const Ur = {
|
|
|
7098
7108
|
"line-width": 1
|
|
7099
7109
|
}
|
|
7100
7110
|
})), this.interpolateMarkers = [];
|
|
7101
|
-
for (const K of
|
|
7111
|
+
for (const K of he)
|
|
7102
7112
|
if (!K.properties.disabled) {
|
|
7103
|
-
let
|
|
7104
|
-
((c = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((p = (n = K.properties) == null ? void 0 : n.wind) != null && p.kts) ?
|
|
7113
|
+
let R = "#f44336";
|
|
7114
|
+
((c = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((p = (n = K.properties) == null ? void 0 : n.wind) != null && p.kts) ? R = "#03f869" : ((m = (d = K.properties) == null ? void 0 : d.wind) == null ? void 0 : m.kts) >= 32 && ((v = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : v.kts) < 47 ? R = "#f2f202" : ((S = (b = K.properties) == null ? void 0 : b.wind) == null ? void 0 : S.kts) >= 47 && ((B = (L = K.properties) == null ? void 0 : L.wind) == null ? void 0 : B.kts) < 63 ? R = "#ff9100" : ((P = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : P.kts) >= 63 && ((z = (_ = K.properties) == null ? void 0 : _.wind) == null ? void 0 : z.kts) < 79 ? R = "#f44336" : ((x = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : x.kts) >= 79 && ((W = (I = K.properties) == null ? void 0 : I.wind) == null ? void 0 : W.kts) < 94 ? R = "#f903d0" : ((V = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : V.kts) >= 94 ? R = "#8702f9" : R = "#f44336";
|
|
7105
7115
|
const le = `<svg t="1719918955501"
|
|
7106
7116
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
7107
7117
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
7108
7118
|
<path
|
|
7109
7119
|
d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
|
|
7110
|
-
fill="${
|
|
7111
|
-
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${
|
|
7120
|
+
fill="${R}" p-id="18383"></path>
|
|
7121
|
+
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${R}"
|
|
7112
7122
|
p-id="18384"></path>
|
|
7113
7123
|
<path
|
|
7114
7124
|
d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
|
|
@@ -7118,7 +7128,7 @@ const Ur = {
|
|
|
7118
7128
|
fill="#ffffff" p-id="18386"></path>
|
|
7119
7129
|
</svg>`, ge = document.createElement("div");
|
|
7120
7130
|
ge.className = "idm-tropical-gl4-hourly-marker", ge.innerHTML = `<div class="${K.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${le}</div>`;
|
|
7121
|
-
const fe = new
|
|
7131
|
+
const fe = new ke.Marker(ge).setLngLat(K.geometry.coordinates).addTo(this.map);
|
|
7122
7132
|
this.interpolateMarkers.push(fe), ($ = (Y = this.map) == null ? void 0 : Y.getSource(this.circleSource)) == null || $.setData(this.circleSourceData);
|
|
7123
7133
|
}
|
|
7124
7134
|
} else
|
|
@@ -7127,24 +7137,24 @@ const Ur = {
|
|
|
7127
7137
|
handleClick(o) {
|
|
7128
7138
|
var r, s, c, n, p, d, m, f;
|
|
7129
7139
|
const e = o.features[0], t = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
|
|
7130
|
-
(
|
|
7140
|
+
(v) => {
|
|
7131
7141
|
var b;
|
|
7132
|
-
return
|
|
7142
|
+
return v.geometry.type === "LineString" && v.properties.type === "forecast" && v.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
|
|
7133
7143
|
}
|
|
7134
7144
|
), i = (n = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : n.features.filter(
|
|
7135
|
-
(
|
|
7145
|
+
(v) => {
|
|
7136
7146
|
var b;
|
|
7137
|
-
return
|
|
7147
|
+
return v.geometry.type === "LineString" && v.properties.type === "history" && v.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
|
|
7138
7148
|
}
|
|
7139
7149
|
);
|
|
7140
7150
|
this.activeTropicals = {
|
|
7141
7151
|
name: (p = e == null ? void 0 : e.properties) == null ? void 0 : p.name,
|
|
7142
|
-
forecasts: t.map((
|
|
7152
|
+
forecasts: t.map((v) => v.properties),
|
|
7143
7153
|
history: (d = i[0]) == null ? void 0 : d.properties,
|
|
7144
7154
|
showCircle: (f = (m = t[0]) == null ? void 0 : m.properties) == null ? void 0 : f.showCircle
|
|
7145
7155
|
}, this.showTropicalsInfo = !0;
|
|
7146
7156
|
const a = document.getElementById("idm-tropical-gl4-info");
|
|
7147
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.activeTropicalsMarker = new
|
|
7157
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([o.lngLat.lng, o.lngLat.lat]) : this.activeTropicalsMarker = new ke.Marker(a).setLngLat([o.lngLat.lng, o.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
7148
7158
|
},
|
|
7149
7159
|
handleForecastToggle(o) {
|
|
7150
7160
|
var i, a, r, s, c, n;
|
|
@@ -7154,7 +7164,7 @@ const Ur = {
|
|
|
7154
7164
|
p.properties.category === e && (p.properties.disabled = o.disabled);
|
|
7155
7165
|
}), this.interpolateData.forEach((p) => {
|
|
7156
7166
|
p.properties.category === e && (p.properties.disabled = o.disabled);
|
|
7157
|
-
}), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(
|
|
7167
|
+
}), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(j.featureCollection(t)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(j.featureCollection(t)), this.handleDateChange();
|
|
7158
7168
|
},
|
|
7159
7169
|
handleStrikeProbability(o) {
|
|
7160
7170
|
this.$emit("tropicalProbability", index);
|
|
@@ -7211,38 +7221,38 @@ const Ur = {
|
|
|
7211
7221
|
let n;
|
|
7212
7222
|
switch (s) {
|
|
7213
7223
|
case "ne":
|
|
7214
|
-
n =
|
|
7224
|
+
n = j.lineArc(o, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7215
7225
|
break;
|
|
7216
7226
|
case "se":
|
|
7217
|
-
n =
|
|
7227
|
+
n = j.lineArc(o, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7218
7228
|
break;
|
|
7219
7229
|
case "sw":
|
|
7220
|
-
n =
|
|
7230
|
+
n = j.lineArc(o, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7221
7231
|
break;
|
|
7222
7232
|
case "nw":
|
|
7223
|
-
n =
|
|
7233
|
+
n = j.lineArc(o, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7224
7234
|
break;
|
|
7225
7235
|
}
|
|
7226
7236
|
i.push(...(r = n == null ? void 0 : n.geometry) == null ? void 0 : r.coordinates);
|
|
7227
7237
|
}
|
|
7228
|
-
const a =
|
|
7229
|
-
return
|
|
7238
|
+
const a = j.lineString(i);
|
|
7239
|
+
return j.lineToPolygon(a, { properties: t });
|
|
7230
7240
|
}
|
|
7231
7241
|
}
|
|
7232
|
-
},
|
|
7233
|
-
function
|
|
7242
|
+
}, Gr = { class: "idm-tropical-gl4" }, Ur = { key: 0 }, Vr = { class: "text-body-2 opacity-50" }, Yr = { class: "pa-1 d-flex justify-space-between align-center" }, Zr = { class: "col col-left justify-start" }, Xr = { class: "col col-right justify-start" }, qr = { class: "px-1 py-2 d-flex justify-space-between align-center" }, Kr = { class: "d-flex justify-space-between align-center col-left justify-start" }, Qr = { class: "d-flex justify-space-between align-center col-right" }, Jr = { class: "pa-1 d-flex justify-space-between align-center" }, $r = { class: "d-flex justify-space-between align-center flex-1-1-100" }, el = { class: "d-flex justify-end align-center flex-1-1-0 flex-wrap" }, tl = ["onClick"];
|
|
7243
|
+
function ol(o, e, t, i, a, r) {
|
|
7234
7244
|
const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"), p = k("VCardSubtitle"), d = k("VCardItem"), m = k("VCardText"), f = k("VCard");
|
|
7235
|
-
return y(), T("div",
|
|
7245
|
+
return y(), T("div", Gr, [
|
|
7236
7246
|
l("div", {
|
|
7237
7247
|
class: "menu-bar-box transition pa-1",
|
|
7238
|
-
style:
|
|
7248
|
+
style: ae({ top: t.top + 134 + "px", right: a.right + "px" })
|
|
7239
7249
|
}, [
|
|
7240
7250
|
h(c, {
|
|
7241
7251
|
text: o.$t("tropical.tropicals"),
|
|
7242
7252
|
location: "left"
|
|
7243
7253
|
}, {
|
|
7244
|
-
activator: g(({ props:
|
|
7245
|
-
h(s, E(
|
|
7254
|
+
activator: g(({ props: v }) => [
|
|
7255
|
+
h(s, E(v, {
|
|
7246
7256
|
"min-width": "32",
|
|
7247
7257
|
width: "32",
|
|
7248
7258
|
height: "32",
|
|
@@ -7259,7 +7269,7 @@ function il(o, e, t, i, a, r) {
|
|
|
7259
7269
|
_: 1
|
|
7260
7270
|
}, 8, ["text"])
|
|
7261
7271
|
], 4),
|
|
7262
|
-
|
|
7272
|
+
eo(h(f, {
|
|
7263
7273
|
id: "idm-tropical-gl4-info",
|
|
7264
7274
|
class: "idm-tropical-gl4-info my-4",
|
|
7265
7275
|
width: "400",
|
|
@@ -7273,11 +7283,11 @@ function il(o, e, t, i, a, r) {
|
|
|
7273
7283
|
style: { "font-size": "16px !important" }
|
|
7274
7284
|
}, {
|
|
7275
7285
|
default: g(() => {
|
|
7276
|
-
var
|
|
7286
|
+
var v, b, S, L, B;
|
|
7277
7287
|
return [
|
|
7278
7288
|
l("div", null, [
|
|
7279
|
-
(b = (
|
|
7280
|
-
Z(
|
|
7289
|
+
(b = (v = a.activeTropicals) == null ? void 0 : v.history) != null && b.level ? (y(), T("span", Ur, w((L = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : L.level) + " , ", 1)) : F("", !0),
|
|
7290
|
+
Z(w((B = a.activeTropicals) == null ? void 0 : B.name), 1)
|
|
7281
7291
|
]),
|
|
7282
7292
|
h(s, {
|
|
7283
7293
|
icon: "$close",
|
|
@@ -7292,9 +7302,9 @@ function il(o, e, t, i, a, r) {
|
|
|
7292
7302
|
}),
|
|
7293
7303
|
h(p, null, {
|
|
7294
7304
|
default: g(() => {
|
|
7295
|
-
var
|
|
7305
|
+
var v, b, S, L, B;
|
|
7296
7306
|
return [
|
|
7297
|
-
l("span",
|
|
7307
|
+
l("span", Vr, " Last update: " + w(r.computeTime(((b = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : b.updated) || ((B = (L = (S = a.activeTropicals) == null ? void 0 : S.forecasts) == null ? void 0 : L.filter((M) => !M.disabled)[0]) == null ? void 0 : B.date))), 1)
|
|
7298
7308
|
];
|
|
7299
7309
|
}),
|
|
7300
7310
|
_: 1
|
|
@@ -7304,48 +7314,48 @@ function il(o, e, t, i, a, r) {
|
|
|
7304
7314
|
}),
|
|
7305
7315
|
h(m, { class: "main-box" }, {
|
|
7306
7316
|
default: g(() => {
|
|
7307
|
-
var
|
|
7317
|
+
var v, b, S, L, B, M, P, _, z;
|
|
7308
7318
|
return [
|
|
7309
|
-
l("div",
|
|
7310
|
-
l("div",
|
|
7319
|
+
l("div", Yr, [
|
|
7320
|
+
l("div", Zr, [
|
|
7311
7321
|
e[2] || (e[2] = l("label", null, "Wind speed : ", -1)),
|
|
7312
|
-
l("span", null,
|
|
7313
|
-
l("span", null, ", BF " +
|
|
7322
|
+
l("span", null, w(((b = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : b.kts) || "-") + " [kts]", 1),
|
|
7323
|
+
l("span", null, ", BF " + w(r.computeBF(((L = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : L.kts) || 0)), 1)
|
|
7314
7324
|
]),
|
|
7315
|
-
l("div",
|
|
7325
|
+
l("div", Xr, [
|
|
7316
7326
|
e[3] || (e[3] = l("label", null, "Pressure : ", -1)),
|
|
7317
|
-
l("span", null,
|
|
7327
|
+
l("span", null, w(((M = (B = a.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : M.pressure) || "-") + " [hPa]", 1)
|
|
7318
7328
|
])
|
|
7319
7329
|
]),
|
|
7320
|
-
l("div",
|
|
7321
|
-
l("div",
|
|
7330
|
+
l("div", qr, [
|
|
7331
|
+
l("div", Kr, [
|
|
7322
7332
|
e[4] || (e[4] = l("label", null, "Move Speed: ", -1)),
|
|
7323
|
-
l("span", null,
|
|
7333
|
+
l("span", null, w((P = r.computeMovement(a.activeTropicals)) == null ? void 0 : P.kts) + " [kts]", 1)
|
|
7324
7334
|
]),
|
|
7325
|
-
l("div",
|
|
7335
|
+
l("div", Qr, [
|
|
7326
7336
|
e[5] || (e[5] = l("label", null, "Move Dir: ", -1)),
|
|
7327
|
-
l("span", null,
|
|
7337
|
+
l("span", null, w((_ = r.computeMovement(a.activeTropicals)) == null ? void 0 : _.deg) + " [°]", 1)
|
|
7328
7338
|
])
|
|
7329
7339
|
]),
|
|
7330
|
-
l("div",
|
|
7331
|
-
l("div",
|
|
7340
|
+
l("div", Jr, [
|
|
7341
|
+
l("div", $r, [
|
|
7332
7342
|
e[6] || (e[6] = l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
7333
|
-
l("div",
|
|
7334
|
-
(y(!0), T(
|
|
7335
|
-
var
|
|
7343
|
+
l("div", el, [
|
|
7344
|
+
(y(!0), T(_e, null, Le((z = a.activeTropicals) == null ? void 0 : z.forecasts, (C, x) => {
|
|
7345
|
+
var I, W, X, V;
|
|
7336
7346
|
return y(), T("div", {
|
|
7337
|
-
key:
|
|
7347
|
+
key: x,
|
|
7338
7348
|
class: Ne([
|
|
7339
7349
|
"model",
|
|
7340
|
-
|
|
7341
|
-
|
|
7350
|
+
C.disabled ? "" : "active",
|
|
7351
|
+
x > 0 && x < ((W = (I = a.activeTropicals) == null ? void 0 : I.forecasts) == null ? void 0 : W.length) - 1 && ((V = (X = a.activeTropicals) == null ? void 0 : X.forecasts) == null ? void 0 : V.length) > 2 ? "center-child" : ""
|
|
7342
7352
|
]),
|
|
7343
|
-
onClick: (Y) => r.handleForecastToggle(
|
|
7353
|
+
onClick: (Y) => r.handleForecastToggle(C)
|
|
7344
7354
|
}, [
|
|
7345
7355
|
l("span", {
|
|
7346
|
-
class: Ne(
|
|
7347
|
-
},
|
|
7348
|
-
], 10,
|
|
7356
|
+
class: Ne(C.model)
|
|
7357
|
+
}, w(C.model), 3)
|
|
7358
|
+
], 10, tl);
|
|
7349
7359
|
}), 128))
|
|
7350
7360
|
])
|
|
7351
7361
|
])
|
|
@@ -7398,12 +7408,12 @@ function il(o, e, t, i, a, r) {
|
|
|
7398
7408
|
]),
|
|
7399
7409
|
_: 1
|
|
7400
7410
|
}, 512), [
|
|
7401
|
-
[
|
|
7411
|
+
[to, a.showTropicalsInfo && !o.$attrs.hideTropicalsLegend]
|
|
7402
7412
|
])
|
|
7403
7413
|
]);
|
|
7404
7414
|
}
|
|
7405
|
-
const Bo = /* @__PURE__ */ q(
|
|
7406
|
-
const
|
|
7415
|
+
const Bo = /* @__PURE__ */ q(Wr, [["render", ol]]);
|
|
7416
|
+
const al = {
|
|
7407
7417
|
name: "DateTimePicker",
|
|
7408
7418
|
props: {
|
|
7409
7419
|
locale: {
|
|
@@ -7552,19 +7562,19 @@ const rl = {
|
|
|
7552
7562
|
this.currentDate = o.clone().format("YYYY-MM-DD"), this.currentTime = o.clone().format("HH:00");
|
|
7553
7563
|
}
|
|
7554
7564
|
}
|
|
7555
|
-
},
|
|
7565
|
+
}, il = { class: "idm-gl4-timepicker" }, rl = {
|
|
7556
7566
|
class: "pa-0",
|
|
7557
7567
|
style: { width: "250px" }
|
|
7558
|
-
},
|
|
7568
|
+
}, ll = {
|
|
7559
7569
|
class: "h-100 pa-0 d-flex flex-column justify-start align-center",
|
|
7560
7570
|
style: { width: "100px" }
|
|
7561
|
-
},
|
|
7571
|
+
}, sl = {
|
|
7562
7572
|
class: "d-flex justify-center align-center text-body-2",
|
|
7563
7573
|
style: { height: "56px" }
|
|
7564
7574
|
};
|
|
7565
|
-
function
|
|
7566
|
-
const s = k("VBtn"), c = k("VDatePicker"), n = k("VDivider"), p = k("VListItemTitle"), d = k("VListItem"), m = k("VList"), f = k("VCardText"),
|
|
7567
|
-
return y(), T("div",
|
|
7575
|
+
function nl(o, e, t, i, a, r) {
|
|
7576
|
+
const s = k("VBtn"), c = k("VDatePicker"), n = k("VDivider"), p = k("VListItemTitle"), d = k("VListItem"), m = k("VList"), f = k("VCardText"), v = k("VCardActions"), b = k("VCard");
|
|
7577
|
+
return y(), T("div", il, [
|
|
7568
7578
|
h(s, {
|
|
7569
7579
|
text: "",
|
|
7570
7580
|
height: "30",
|
|
@@ -7572,7 +7582,7 @@ function ml(o, e, t, i, a, r) {
|
|
|
7572
7582
|
onClick: r.handleOpenDatePicker
|
|
7573
7583
|
}, {
|
|
7574
7584
|
default: g(() => [
|
|
7575
|
-
Z(
|
|
7585
|
+
Z(w(a.currentDateTime) + " | UTC " + w(t.timeZone < 0 ? t.timeZone : "+" + t.timeZone), 1)
|
|
7576
7586
|
]),
|
|
7577
7587
|
_: 1
|
|
7578
7588
|
}, 8, ["onClick"]),
|
|
@@ -7583,7 +7593,7 @@ function ml(o, e, t, i, a, r) {
|
|
|
7583
7593
|
default: g(() => [
|
|
7584
7594
|
h(f, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
7585
7595
|
default: g(() => [
|
|
7586
|
-
l("div",
|
|
7596
|
+
l("div", rl, [
|
|
7587
7597
|
h(c, {
|
|
7588
7598
|
modelValue: a.currentDate,
|
|
7589
7599
|
"onUpdate:modelValue": e[0] || (e[0] = (S) => a.currentDate = S),
|
|
@@ -7602,12 +7612,12 @@ function ml(o, e, t, i, a, r) {
|
|
|
7602
7612
|
class: "h-100",
|
|
7603
7613
|
vertical: ""
|
|
7604
7614
|
}),
|
|
7605
|
-
l("div",
|
|
7606
|
-
l("div",
|
|
7615
|
+
l("div", ll, [
|
|
7616
|
+
l("div", sl, w(a.currentTime), 1),
|
|
7607
7617
|
h(m, { class: "pa-0 flex-1-1-0" }, {
|
|
7608
7618
|
default: g(() => [
|
|
7609
|
-
(y(!0), T(
|
|
7610
|
-
key:
|
|
7619
|
+
(y(!0), T(_e, null, Le(r.hourOptions, (S, L) => (y(), U(d, {
|
|
7620
|
+
key: L,
|
|
7611
7621
|
value: S,
|
|
7612
7622
|
color: "primary",
|
|
7613
7623
|
active: a.currentTime === S,
|
|
@@ -7621,7 +7631,7 @@ function ml(o, e, t, i, a, r) {
|
|
|
7621
7631
|
onClick: (B) => a.currentTime = S
|
|
7622
7632
|
}, {
|
|
7623
7633
|
default: g(() => [
|
|
7624
|
-
Z(
|
|
7634
|
+
Z(w(S), 1)
|
|
7625
7635
|
]),
|
|
7626
7636
|
_: 2
|
|
7627
7637
|
}, 1032, ["onClick"])
|
|
@@ -7636,7 +7646,7 @@ function ml(o, e, t, i, a, r) {
|
|
|
7636
7646
|
_: 1
|
|
7637
7647
|
}),
|
|
7638
7648
|
h(n),
|
|
7639
|
-
h(
|
|
7649
|
+
h(v, {
|
|
7640
7650
|
class: "justify-end pa-0 pr-4",
|
|
7641
7651
|
style: { height: "50px" }
|
|
7642
7652
|
}, {
|
|
@@ -7671,14 +7681,14 @@ function ml(o, e, t, i, a, r) {
|
|
|
7671
7681
|
})
|
|
7672
7682
|
]),
|
|
7673
7683
|
_: 1
|
|
7674
|
-
})) :
|
|
7684
|
+
})) : F("", !0)
|
|
7675
7685
|
]);
|
|
7676
7686
|
}
|
|
7677
|
-
const
|
|
7678
|
-
const
|
|
7687
|
+
const io = /* @__PURE__ */ q(al, [["render", nl]]);
|
|
7688
|
+
const cl = {
|
|
7679
7689
|
name: "IdmPoint",
|
|
7680
7690
|
components: {
|
|
7681
|
-
DateTimePicker:
|
|
7691
|
+
DateTimePicker: io
|
|
7682
7692
|
},
|
|
7683
7693
|
props: {
|
|
7684
7694
|
isLogin: {
|
|
@@ -7716,7 +7726,7 @@ const hl = {
|
|
|
7716
7726
|
type: String
|
|
7717
7727
|
}
|
|
7718
7728
|
},
|
|
7719
|
-
emits: ["meteoMore", "follow"],
|
|
7729
|
+
emits: ["meteoMore", "follow", "login"],
|
|
7720
7730
|
data() {
|
|
7721
7731
|
return {
|
|
7722
7732
|
right: 10,
|
|
@@ -7786,17 +7796,17 @@ const hl = {
|
|
|
7786
7796
|
},
|
|
7787
7797
|
computeLat() {
|
|
7788
7798
|
return function(o, e = 4) {
|
|
7789
|
-
return
|
|
7799
|
+
return oe.lat2pretty(o, e).pretty;
|
|
7790
7800
|
};
|
|
7791
7801
|
},
|
|
7792
7802
|
computeLng() {
|
|
7793
7803
|
return function(o, e = 4) {
|
|
7794
|
-
return
|
|
7804
|
+
return oe.lng2pretty(o, e).pretty;
|
|
7795
7805
|
};
|
|
7796
7806
|
},
|
|
7797
7807
|
roundPrecision() {
|
|
7798
7808
|
return function(o, e = 4) {
|
|
7799
|
-
return isNaN(o) ? "-" :
|
|
7809
|
+
return isNaN(o) ? "-" : oe.roundPrecision(o, e);
|
|
7800
7810
|
};
|
|
7801
7811
|
}
|
|
7802
7812
|
},
|
|
@@ -7844,7 +7854,7 @@ const hl = {
|
|
|
7844
7854
|
},
|
|
7845
7855
|
methods: {
|
|
7846
7856
|
handleMenuToggle() {
|
|
7847
|
-
this.isLogin
|
|
7857
|
+
this.isLogin ? (this.toggle = !this.toggle, this.showForm = !!this.toggle) : this.$emit("login");
|
|
7848
7858
|
},
|
|
7849
7859
|
submitForm() {
|
|
7850
7860
|
this.$refs.spotForm.validate().then(async (o) => {
|
|
@@ -7876,7 +7886,7 @@ const hl = {
|
|
|
7876
7886
|
},
|
|
7877
7887
|
async fetchMeteoData(o) {
|
|
7878
7888
|
this.loading = !0, this.meteoData = [];
|
|
7879
|
-
const { weatherModels: e, marineModels: t } =
|
|
7889
|
+
const { weatherModels: e, marineModels: t } = oo.autoPickMeteoModel(o.forecastModel);
|
|
7880
7890
|
let i = {
|
|
7881
7891
|
lat: o.lat,
|
|
7882
7892
|
lng: o.lng,
|
|
@@ -7893,7 +7903,7 @@ const hl = {
|
|
|
7893
7903
|
},
|
|
7894
7904
|
async fetchHistoryData(o) {
|
|
7895
7905
|
this.loading = !0, this.meteoData = [];
|
|
7896
|
-
const { weatherModels: e, marineModels: t } =
|
|
7906
|
+
const { weatherModels: e, marineModels: t } = oo.autoPickMeteoModel(o.forecastModel), i = {
|
|
7897
7907
|
lat: o.lat,
|
|
7898
7908
|
lng: o.lng,
|
|
7899
7909
|
datetime: O(o.dateTime).utc().format(),
|
|
@@ -7909,10 +7919,10 @@ const hl = {
|
|
|
7909
7919
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
|
|
7910
7920
|
},
|
|
7911
7921
|
initTableData(o) {
|
|
7912
|
-
var t, i, a, r, s, c, n, p, d, m, f,
|
|
7922
|
+
var t, i, a, r, s, c, n, p, d, m, f, v, b, S, L, B, M, P, _, z, C, x, I, W, X, V, Y, $, ee, Q, ne, he, de, ce, K, R, le, ge, fe, we, xe;
|
|
7913
7923
|
this.currentHourData = {}, this.positionGmt = (i = (t = o == null ? void 0 : o.weather) == null ? void 0 : t[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = o == null ? void 0 : o.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
|
|
7914
|
-
const e = ((s =
|
|
7915
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((p = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : p.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((m = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : m.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((b = (
|
|
7924
|
+
const e = ((s = oo.pickHourly(o, O(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
7925
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((p = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : p.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((m = (d = e == null ? void 0 : e.weather) == null ? void 0 : d.precip) == null ? void 0 : m.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((b = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : b.kts, 1) ?? "-", this.currentHourData.windDir = (L = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : L.direction, this.currentHourData.windLevel = this.roundPrecision((M = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((_ = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((C = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (I = (x = e == null ? void 0 : e.wave) == null ? void 0 : x.sig) == null ? void 0 : I.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (W = e == null ? void 0 : e.wave) == null ? void 0 : W.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((ne = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((de = (he = e == null ? void 0 : e.wave) == null ? void 0 : he.swell) == null ? void 0 : de.height, 1) ?? "-", this.currentHourData.swellDir = (K = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : K.direction, this.currentHourData.swellPeriod = this.roundPrecision((le = (R = e == null ? void 0 : e.wave) == null ? void 0 : R.swell) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (fe = e == null ? void 0 : e.current) == null ? void 0 : fe.direction, this.currentHourData.currentSpeed = this.roundPrecision((we = e == null ? void 0 : e.current) == null ? void 0 : we.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;
|
|
7916
7926
|
},
|
|
7917
7927
|
handleBind() {
|
|
7918
7928
|
var o, e;
|
|
@@ -7922,14 +7932,14 @@ const hl = {
|
|
|
7922
7932
|
var t;
|
|
7923
7933
|
if (o.originalEvent.stopPropagation(), o.originalEvent.target.className === "mapboxgl-canvas") {
|
|
7924
7934
|
const i = o.lngLat;
|
|
7925
|
-
if (this.form.latDegree = Number(
|
|
7935
|
+
if (this.form.latDegree = Number(oe.lat2pretty(i.lat).degree), this.form.latMinute = Number(oe.lat2pretty(i.lat).minute), this.form.latDirection = oe.lat2pretty(i.lat).direction, this.form.lngDegree = Number(oe.lng2pretty(i.lng).degree), this.form.lngMinute = Number(oe.lng2pretty(i.lng).minute), this.form.lngDirection = oe.lng2pretty(i.lng).direction, this.point = {
|
|
7926
7936
|
lat: i.lat,
|
|
7927
7937
|
lng: i.lng
|
|
7928
7938
|
}, this.positionMarker)
|
|
7929
7939
|
(t = this.positionMarker) == null || t.setLngLat([this.point.lng, this.point.lat]);
|
|
7930
7940
|
else {
|
|
7931
7941
|
const a = document.createElement("div");
|
|
7932
|
-
a.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>', a.firstChild.style.height = "28px", a.firstChild.style.width = "28px", this.positionMarker = new
|
|
7942
|
+
a.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>', a.firstChild.style.height = "28px", a.firstChild.style.width = "28px", this.positionMarker = new ke.Marker(a).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -14]).addTo(this.map);
|
|
7933
7943
|
}
|
|
7934
7944
|
} else
|
|
7935
7945
|
return !1;
|
|
@@ -7946,13 +7956,13 @@ const hl = {
|
|
|
7946
7956
|
(e = this.meteoMarker) == null || e.setLngLat([this.point.lng, this.point.lat]);
|
|
7947
7957
|
else {
|
|
7948
7958
|
const i = document.createElement("div");
|
|
7949
|
-
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 = "28px", i.firstChild.style.width = "28px", this.meteoMarker = new
|
|
7959
|
+
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 = "28px", i.firstChild.style.width = "28px", this.meteoMarker = new ke.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -14]).addTo(this.map);
|
|
7950
7960
|
}
|
|
7951
7961
|
if (this.meteoInfoMarker)
|
|
7952
7962
|
(t = this.meteoInfoMarker) == null || t.setLngLat([this.point.lng, this.point.lat]);
|
|
7953
7963
|
else {
|
|
7954
7964
|
const i = document.getElementById("idm-gl4-spot-meteo");
|
|
7955
|
-
this.meteoInfoMarker = new
|
|
7965
|
+
this.meteoInfoMarker = new ke.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -200]).addTo(this.map);
|
|
7956
7966
|
}
|
|
7957
7967
|
}
|
|
7958
7968
|
});
|
|
@@ -7968,32 +7978,32 @@ const hl = {
|
|
|
7968
7978
|
this.$emit("follow", "point", this.point);
|
|
7969
7979
|
}
|
|
7970
7980
|
}
|
|
7971
|
-
},
|
|
7981
|
+
}, ml = { class: "idm-gl4-spot" }, hl = { class: "d-flex justify-start align-center ga-1 mb-1" }, dl = {
|
|
7972
7982
|
class: "multi-color-icon",
|
|
7973
7983
|
"aria-hidden": "true"
|
|
7974
|
-
},
|
|
7984
|
+
}, pl = ["xlink:href"], ul = { class: "d-flex justify-start align-center ga-1 mb-1" }, gl = {
|
|
7975
7985
|
class: "multi-color-icon",
|
|
7976
7986
|
"aria-hidden": "true"
|
|
7977
|
-
},
|
|
7987
|
+
}, fl = ["xlink:href"], bl = { class: "d-flex justify-start align-center ga-1 mb-1" }, yl = {
|
|
7978
7988
|
class: "multi-color-icon",
|
|
7979
7989
|
"aria-hidden": "true"
|
|
7980
|
-
},
|
|
7990
|
+
}, wl = ["xlink:href"], xl = { class: "d-flex justify-start align-center ga-1 mb-1" }, vl = {
|
|
7981
7991
|
class: "multi-color-icon",
|
|
7982
7992
|
"aria-hidden": "true"
|
|
7983
|
-
},
|
|
7984
|
-
function
|
|
7985
|
-
const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"), p = k("VDivider"), d = k("VTextField"), m = k("VCol"), f = k("VRow"),
|
|
7986
|
-
return y(), T("div",
|
|
7993
|
+
}, _l = ["xlink:href"], kl = { class: "d-flex justify-start align-center" }, zl = { class: "mx-2" };
|
|
7994
|
+
function Ll(o, e, t, i, a, r) {
|
|
7995
|
+
const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"), p = k("VDivider"), d = k("VTextField"), m = k("VCol"), f = k("VRow"), v = k("DateTimePicker"), b = k("VBtnToggle"), S = k("VCardActions"), L = k("VForm"), B = k("VCardText"), M = k("VCard"), P = k("VIcon");
|
|
7996
|
+
return y(), T("div", ml, [
|
|
7987
7997
|
l("div", {
|
|
7988
7998
|
class: "menu-bar-box transition pa-1",
|
|
7989
|
-
style:
|
|
7999
|
+
style: ae({ top: t.top + 174 + "px", right: a.right + "px" })
|
|
7990
8000
|
}, [
|
|
7991
8001
|
h(c, {
|
|
7992
8002
|
text: o.$t("spot.spotsMeteo"),
|
|
7993
8003
|
location: "left"
|
|
7994
8004
|
}, {
|
|
7995
|
-
activator: g(({ props:
|
|
7996
|
-
h(s, E(
|
|
8005
|
+
activator: g(({ props: _ }) => [
|
|
8006
|
+
h(s, E(_, {
|
|
7997
8007
|
"min-width": "32",
|
|
7998
8008
|
width: "32",
|
|
7999
8009
|
height: "32",
|
|
@@ -8013,7 +8023,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8013
8023
|
a.showForm ? (y(), U(M, {
|
|
8014
8024
|
key: 0,
|
|
8015
8025
|
class: "spot-form-card",
|
|
8016
|
-
style:
|
|
8026
|
+
style: ae({ top: t.top + 174 + "px", right: a.right + 50 + "px" })
|
|
8017
8027
|
}, {
|
|
8018
8028
|
default: g(() => [
|
|
8019
8029
|
h(n, { class: "d-flex justify-space-between align-center" }, {
|
|
@@ -8044,18 +8054,18 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8044
8054
|
h(p),
|
|
8045
8055
|
h(B, { class: "text-body-1 py-1" }, {
|
|
8046
8056
|
default: g(() => [
|
|
8047
|
-
h(
|
|
8057
|
+
h(L, {
|
|
8048
8058
|
ref: "spotForm",
|
|
8049
8059
|
autocomplete: "off",
|
|
8050
8060
|
class: "form-box",
|
|
8051
8061
|
onSubmit: Fo(r.submitForm, ["prevent"])
|
|
8052
8062
|
}, {
|
|
8053
8063
|
default: g(() => [
|
|
8054
|
-
l("div",
|
|
8055
|
-
(y(), T("svg",
|
|
8064
|
+
l("div", hl, [
|
|
8065
|
+
(y(), T("svg", dl, [
|
|
8056
8066
|
l("use", {
|
|
8057
8067
|
"xlink:href": `#icon-lng-${t.theme}`
|
|
8058
|
-
}, null, 8,
|
|
8068
|
+
}, null, 8, pl)
|
|
8059
8069
|
])),
|
|
8060
8070
|
e[11] || (e[11] = l("div", null, "Lng", -1))
|
|
8061
8071
|
]),
|
|
@@ -8068,7 +8078,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8068
8078
|
default: g(() => [
|
|
8069
8079
|
h(d, {
|
|
8070
8080
|
modelValue: a.form.lngDegree,
|
|
8071
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
8081
|
+
"onUpdate:modelValue": e[0] || (e[0] = (_) => a.form.lngDegree = _),
|
|
8072
8082
|
rules: a.formRules.lngDegree,
|
|
8073
8083
|
density: "compact",
|
|
8074
8084
|
variant: "outlined",
|
|
@@ -8087,7 +8097,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8087
8097
|
default: g(() => [
|
|
8088
8098
|
h(d, {
|
|
8089
8099
|
modelValue: a.form.lngMinute,
|
|
8090
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
8100
|
+
"onUpdate:modelValue": e[1] || (e[1] = (_) => a.form.lngMinute = _),
|
|
8091
8101
|
rules: a.formRules.lngMinute,
|
|
8092
8102
|
label: "",
|
|
8093
8103
|
density: "compact",
|
|
@@ -8113,10 +8123,10 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8113
8123
|
height: "32",
|
|
8114
8124
|
class: "",
|
|
8115
8125
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
8116
|
-
onClick: e[2] || (e[2] = (
|
|
8126
|
+
onClick: e[2] || (e[2] = (_) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
8117
8127
|
}, {
|
|
8118
8128
|
default: g(() => [
|
|
8119
|
-
Z(
|
|
8129
|
+
Z(w(a.form.lngDirection), 1)
|
|
8120
8130
|
]),
|
|
8121
8131
|
_: 1
|
|
8122
8132
|
})
|
|
@@ -8126,11 +8136,11 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8126
8136
|
]),
|
|
8127
8137
|
_: 1
|
|
8128
8138
|
}),
|
|
8129
|
-
l("div",
|
|
8130
|
-
(y(), T("svg",
|
|
8139
|
+
l("div", ul, [
|
|
8140
|
+
(y(), T("svg", gl, [
|
|
8131
8141
|
l("use", {
|
|
8132
8142
|
"xlink:href": `#icon-lng-${t.theme}`
|
|
8133
|
-
}, null, 8,
|
|
8143
|
+
}, null, 8, fl)
|
|
8134
8144
|
])),
|
|
8135
8145
|
e[14] || (e[14] = l("div", null, "Lat", -1))
|
|
8136
8146
|
]),
|
|
@@ -8143,7 +8153,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8143
8153
|
default: g(() => [
|
|
8144
8154
|
h(d, {
|
|
8145
8155
|
modelValue: a.form.latDegree,
|
|
8146
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
8156
|
+
"onUpdate:modelValue": e[3] || (e[3] = (_) => a.form.latDegree = _),
|
|
8147
8157
|
rules: a.formRules.latDegree,
|
|
8148
8158
|
label: "",
|
|
8149
8159
|
density: "compact",
|
|
@@ -8165,7 +8175,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8165
8175
|
default: g(() => [
|
|
8166
8176
|
h(d, {
|
|
8167
8177
|
modelValue: a.form.latMinute,
|
|
8168
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
8178
|
+
"onUpdate:modelValue": e[4] || (e[4] = (_) => a.form.latMinute = _),
|
|
8169
8179
|
rules: a.formRules.latMinute,
|
|
8170
8180
|
label: "",
|
|
8171
8181
|
density: "compact",
|
|
@@ -8191,10 +8201,10 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8191
8201
|
height: "32",
|
|
8192
8202
|
class: "text-body-1",
|
|
8193
8203
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
8194
|
-
onClick: e[5] || (e[5] = (
|
|
8204
|
+
onClick: e[5] || (e[5] = (_) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
8195
8205
|
}, {
|
|
8196
8206
|
default: g(() => [
|
|
8197
|
-
Z(
|
|
8207
|
+
Z(w(a.form.latDirection), 1)
|
|
8198
8208
|
]),
|
|
8199
8209
|
_: 1
|
|
8200
8210
|
})
|
|
@@ -8204,11 +8214,11 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8204
8214
|
]),
|
|
8205
8215
|
_: 1
|
|
8206
8216
|
}),
|
|
8207
|
-
l("div",
|
|
8208
|
-
(y(), T("svg",
|
|
8217
|
+
l("div", bl, [
|
|
8218
|
+
(y(), T("svg", yl, [
|
|
8209
8219
|
l("use", {
|
|
8210
8220
|
"xlink:href": `#icon-a-DateTime-${t.theme}`
|
|
8211
|
-
}, null, 8,
|
|
8221
|
+
}, null, 8, wl)
|
|
8212
8222
|
])),
|
|
8213
8223
|
e[17] || (e[17] = l("div", null, "Date Time", -1))
|
|
8214
8224
|
]),
|
|
@@ -8219,11 +8229,11 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8219
8229
|
class: "pa-0"
|
|
8220
8230
|
}, {
|
|
8221
8231
|
default: g(() => [
|
|
8222
|
-
h(
|
|
8232
|
+
h(v, E({
|
|
8223
8233
|
"date-time": a.form.dateTime,
|
|
8224
8234
|
"time-zone": t.timeZone
|
|
8225
8235
|
}, o.$attrs, {
|
|
8226
|
-
onDateTime: e[6] || (e[6] = (
|
|
8236
|
+
onDateTime: e[6] || (e[6] = (_) => a.form.dateTime = _)
|
|
8227
8237
|
}), null, 16, ["date-time", "time-zone"])
|
|
8228
8238
|
]),
|
|
8229
8239
|
_: 1
|
|
@@ -8231,11 +8241,11 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8231
8241
|
]),
|
|
8232
8242
|
_: 1
|
|
8233
8243
|
}),
|
|
8234
|
-
l("div",
|
|
8235
|
-
(y(), T("svg",
|
|
8244
|
+
l("div", xl, [
|
|
8245
|
+
(y(), T("svg", vl, [
|
|
8236
8246
|
l("use", {
|
|
8237
8247
|
"xlink:href": `#icon-a-ForecastModel-${t.theme}`
|
|
8238
|
-
}, null, 8,
|
|
8248
|
+
}, null, 8, _l)
|
|
8239
8249
|
])),
|
|
8240
8250
|
e[18] || (e[18] = l("div", null, "Forecast Model", -1))
|
|
8241
8251
|
]),
|
|
@@ -8248,7 +8258,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8248
8258
|
default: g(() => [
|
|
8249
8259
|
h(b, {
|
|
8250
8260
|
modelValue: a.form.forecastModel,
|
|
8251
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
8261
|
+
"onUpdate:modelValue": e[7] || (e[7] = (_) => a.form.forecastModel = _),
|
|
8252
8262
|
class: "w-100",
|
|
8253
8263
|
rounded: "",
|
|
8254
8264
|
height: "30",
|
|
@@ -8333,8 +8343,8 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8333
8343
|
})
|
|
8334
8344
|
]),
|
|
8335
8345
|
_: 1
|
|
8336
|
-
}, 8, ["style"])) :
|
|
8337
|
-
|
|
8346
|
+
}, 8, ["style"])) : F("", !0),
|
|
8347
|
+
eo(h(M, {
|
|
8338
8348
|
id: "idm-gl4-spot-meteo",
|
|
8339
8349
|
class: "spot-meteo",
|
|
8340
8350
|
style: { width: "490px", "z-index": "9" }
|
|
@@ -8342,11 +8352,11 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8342
8352
|
default: g(() => [
|
|
8343
8353
|
h(n, { class: "d-flex justify-space-between align-center" }, {
|
|
8344
8354
|
default: g(() => {
|
|
8345
|
-
var
|
|
8355
|
+
var _, z;
|
|
8346
8356
|
return [
|
|
8347
|
-
l("div",
|
|
8357
|
+
l("div", kl, [
|
|
8348
8358
|
e[23] || (e[23] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
8349
|
-
l("div",
|
|
8359
|
+
l("div", zl, w(r.computeLat((_ = a.currentHourData) == null ? void 0 : _.lat)) + "," + w(r.computeLng((z = a.currentHourData) == null ? void 0 : z.lng)), 1)
|
|
8350
8360
|
]),
|
|
8351
8361
|
h(s, {
|
|
8352
8362
|
icon: "",
|
|
@@ -8388,9 +8398,9 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8388
8398
|
class: "pa-2 px-0"
|
|
8389
8399
|
}, {
|
|
8390
8400
|
default: g(() => {
|
|
8391
|
-
var
|
|
8401
|
+
var _;
|
|
8392
8402
|
return [
|
|
8393
|
-
Z(
|
|
8403
|
+
Z(w(r.computedTzTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
|
|
8394
8404
|
];
|
|
8395
8405
|
}),
|
|
8396
8406
|
_: 1
|
|
@@ -8415,9 +8425,9 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8415
8425
|
class: "pa-2 px-0"
|
|
8416
8426
|
}, {
|
|
8417
8427
|
default: g(() => {
|
|
8418
|
-
var
|
|
8428
|
+
var _;
|
|
8419
8429
|
return [
|
|
8420
|
-
Z(
|
|
8430
|
+
Z(w(r.computedLocalTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
|
|
8421
8431
|
];
|
|
8422
8432
|
}),
|
|
8423
8433
|
_: 1
|
|
@@ -8442,7 +8452,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8442
8452
|
class: "pa-2 px-0 text-left"
|
|
8443
8453
|
}, {
|
|
8444
8454
|
default: g(() => [
|
|
8445
|
-
Z(
|
|
8455
|
+
Z(w(a.currentHourData.windDir) + " / " + w(a.currentHourData.windSpeed) + "kts / BF" + w(a.currentHourData.windLevel), 1)
|
|
8446
8456
|
]),
|
|
8447
8457
|
_: 1
|
|
8448
8458
|
}),
|
|
@@ -8461,7 +8471,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8461
8471
|
class: "pa-2 px-0 text-left"
|
|
8462
8472
|
}, {
|
|
8463
8473
|
default: g(() => [
|
|
8464
|
-
Z(
|
|
8474
|
+
Z(w(a.currentHourData.sigwaveDir) + " / " + w(a.currentHourData.sigwaveHeight) + "m / " + w(a.currentHourData.sigwavePeriod) + "s", 1)
|
|
8465
8475
|
]),
|
|
8466
8476
|
_: 1
|
|
8467
8477
|
})
|
|
@@ -8485,7 +8495,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8485
8495
|
class: "pa-2 px-0 text-left"
|
|
8486
8496
|
}, {
|
|
8487
8497
|
default: g(() => [
|
|
8488
|
-
Z(
|
|
8498
|
+
Z(w(a.currentHourData.windwaveDir) + " / " + w(a.currentHourData.windwaveHeight) + "m / " + w(a.currentHourData.windwavePeriod) + "s", 1)
|
|
8489
8499
|
]),
|
|
8490
8500
|
_: 1
|
|
8491
8501
|
}),
|
|
@@ -8504,7 +8514,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8504
8514
|
class: "pa-2 px-0 text-left"
|
|
8505
8515
|
}, {
|
|
8506
8516
|
default: g(() => [
|
|
8507
|
-
Z(
|
|
8517
|
+
Z(w(a.currentHourData.swellDir) + " / " + w(a.currentHourData.swellHeight) + "m / " + w(a.currentHourData.swellPeriod) + "s", 1)
|
|
8508
8518
|
]),
|
|
8509
8519
|
_: 1
|
|
8510
8520
|
})
|
|
@@ -8528,7 +8538,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8528
8538
|
class: "pa-2 px-0 text-left"
|
|
8529
8539
|
}, {
|
|
8530
8540
|
default: g(() => [
|
|
8531
|
-
Z(
|
|
8541
|
+
Z(w(a.currentHourData.currentDir) + " / " + w(a.currentHourData.currentSpeed) + "kts", 1)
|
|
8532
8542
|
]),
|
|
8533
8543
|
_: 1
|
|
8534
8544
|
}),
|
|
@@ -8547,7 +8557,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8547
8557
|
class: "pa-2 px-0 text-left"
|
|
8548
8558
|
}, {
|
|
8549
8559
|
default: g(() => [
|
|
8550
|
-
Z(
|
|
8560
|
+
Z(w(a.currentHourData.visibility) + " nm", 1)
|
|
8551
8561
|
]),
|
|
8552
8562
|
_: 1
|
|
8553
8563
|
})
|
|
@@ -8567,7 +8577,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8567
8577
|
onClick: r.handleFollow
|
|
8568
8578
|
}, {
|
|
8569
8579
|
prepend: g(() => [
|
|
8570
|
-
h(
|
|
8580
|
+
h(P, { color: "warning" })
|
|
8571
8581
|
]),
|
|
8572
8582
|
default: g(() => [
|
|
8573
8583
|
e[33] || (e[33] = Z(" Follow", -1))
|
|
@@ -8593,12 +8603,12 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8593
8603
|
]),
|
|
8594
8604
|
_: 1
|
|
8595
8605
|
}, 512), [
|
|
8596
|
-
[
|
|
8606
|
+
[to, a.showMeteo]
|
|
8597
8607
|
])
|
|
8598
8608
|
]);
|
|
8599
8609
|
}
|
|
8600
|
-
const
|
|
8601
|
-
const
|
|
8610
|
+
const Pl = /* @__PURE__ */ q(cl, [["render", Ll]]);
|
|
8611
|
+
const Cl = {
|
|
8602
8612
|
name: "IdmMeasure",
|
|
8603
8613
|
props: {
|
|
8604
8614
|
map: {
|
|
@@ -8624,6 +8634,7 @@ const Ml = {
|
|
|
8624
8634
|
source: "measure-source",
|
|
8625
8635
|
layer: "measure-layer",
|
|
8626
8636
|
labelLayer: "measure-label-layer",
|
|
8637
|
+
sumLayer: "measure-suml-layer",
|
|
8627
8638
|
tmpSource: "measure-tmp-source",
|
|
8628
8639
|
tmpLayer: "measure-tmp-layer",
|
|
8629
8640
|
tmpLabelLayer: "measure-tmp-label-layer",
|
|
@@ -8631,7 +8642,8 @@ const Ml = {
|
|
|
8631
8642
|
pointMarkers: {},
|
|
8632
8643
|
tipMarker: void 0,
|
|
8633
8644
|
contextmenu: void 0,
|
|
8634
|
-
navigation: "RL"
|
|
8645
|
+
navigation: "RL",
|
|
8646
|
+
currentLineIndex: 1
|
|
8635
8647
|
};
|
|
8636
8648
|
},
|
|
8637
8649
|
watch: {
|
|
@@ -8652,7 +8664,7 @@ const Ml = {
|
|
|
8652
8664
|
else {
|
|
8653
8665
|
(o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (t = this.map) == null || t.off("dblclick", this.handleDblClick), this.map && (this.map.getCanvas().style.cursor = "grab");
|
|
8654
8666
|
let i = this.geojson.find((a) => !a.closed);
|
|
8655
|
-
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i =
|
|
8667
|
+
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i = j.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
|
|
8656
8668
|
}
|
|
8657
8669
|
},
|
|
8658
8670
|
immediate: !0
|
|
@@ -8689,19 +8701,19 @@ const Ml = {
|
|
|
8689
8701
|
var t, i, a, r, s, c, n, p, d, m;
|
|
8690
8702
|
const e = (i = (t = o.target) == null ? void 0 : t._element) == null ? void 0 : i.id;
|
|
8691
8703
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8692
|
-
const f = this.geojson.filter((
|
|
8693
|
-
this.pointMarkers[f.id].filter((
|
|
8704
|
+
const f = this.geojson.filter((L) => L.id === e.split("-")[0])[0];
|
|
8705
|
+
this.pointMarkers[f.id].filter((L) => {
|
|
8694
8706
|
var B;
|
|
8695
|
-
return ((B =
|
|
8707
|
+
return ((B = L._element) == null ? void 0 : B.id) === e;
|
|
8696
8708
|
})[0].setLngLat([(r = (a = o.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = o.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
8697
8709
|
let b;
|
|
8698
|
-
f.features.forEach((
|
|
8699
|
-
if (
|
|
8710
|
+
f.features.forEach((L, B) => {
|
|
8711
|
+
if (L.geometry.type === "Point" && L.properties.id === e.split("-")[1]) {
|
|
8700
8712
|
b = B;
|
|
8701
8713
|
return;
|
|
8702
8714
|
}
|
|
8703
8715
|
});
|
|
8704
|
-
const S = f.features.filter((
|
|
8716
|
+
const S = f.features.filter((L) => L.geometry.type === "Point");
|
|
8705
8717
|
this.handleTmpPointUpdate(
|
|
8706
8718
|
f,
|
|
8707
8719
|
S[b - 1],
|
|
@@ -8716,8 +8728,8 @@ const Ml = {
|
|
|
8716
8728
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8717
8729
|
const f = this.geojson.filter((S) => S.id === e.split("-")[0])[0];
|
|
8718
8730
|
this.pointMarkers[f.id].filter((S) => {
|
|
8719
|
-
var
|
|
8720
|
-
return ((
|
|
8731
|
+
var L;
|
|
8732
|
+
return ((L = S._element) == null ? void 0 : L.id) === e;
|
|
8721
8733
|
})[0].setLngLat([(r = (a = o.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = o.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
|
|
8722
8734
|
const b = f.features.filter((S) => S.geometry.type === "Point" && S.properties.id === e.split("-")[1])[0];
|
|
8723
8735
|
b.geometry.coordinates = [(p = (n = o.target) == null ? void 0 : n._lngLat) == null ? void 0 : p.lng, (m = (d = o.target) == null ? void 0 : d._lngLat) == null ? void 0 : m.lat], f.features = f.features.filter((S) => S.geometry.type === "Point"), this.handlePointUpdate(f);
|
|
@@ -8731,7 +8743,7 @@ const Ml = {
|
|
|
8731
8743
|
const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
|
|
8732
8744
|
if (c.length > 2 && c.filter((p) => p.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
8733
8745
|
const p = document.createElement("div");
|
|
8734
|
-
p.className = "idm-gl4-measure-contextmenu-marker", p.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new
|
|
8746
|
+
p.className = "idm-gl4-measure-contextmenu-marker", p.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ke.Marker(p).setOffset([24, 0]).setLngLat([o.lngLat.lng, o.lngLat.lat]).addTo(this.map);
|
|
8735
8747
|
}
|
|
8736
8748
|
}
|
|
8737
8749
|
},
|
|
@@ -8747,15 +8759,16 @@ const Ml = {
|
|
|
8747
8759
|
p.features = p.features.filter((d) => d.geometry.type === "Point" && d.properties.id !== n[1]), this.handlePointUpdate(p);
|
|
8748
8760
|
} else if (e !== "marker-label" && this.toggle) {
|
|
8749
8761
|
let n = this.geojson.at(-1);
|
|
8750
|
-
n || (n =
|
|
8751
|
-
const p =
|
|
8762
|
+
n || (n = j.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((d) => d.geometry.type === "Point");
|
|
8763
|
+
const p = j.feature(
|
|
8752
8764
|
{
|
|
8753
8765
|
type: "Point",
|
|
8754
8766
|
coordinates: [o.lngLat.lng, o.lngLat.lat]
|
|
8755
8767
|
},
|
|
8756
8768
|
{
|
|
8757
8769
|
id: (/* @__PURE__ */ new Date()).getTime().toString(),
|
|
8758
|
-
mode: this.navigation
|
|
8770
|
+
mode: this.navigation,
|
|
8771
|
+
sumLabel: "Start"
|
|
8759
8772
|
}
|
|
8760
8773
|
);
|
|
8761
8774
|
n.features.push(p), this.handlePointUpdate(n);
|
|
@@ -8768,33 +8781,35 @@ const Ml = {
|
|
|
8768
8781
|
const i = [];
|
|
8769
8782
|
for (let a = 1; a < e.length; a++) {
|
|
8770
8783
|
const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, p = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = Fe.calculateDistance(n, p, c.mode === "RL", 4), m = Fe.calculateBearing(n, p, c.mode === "RL", 2);
|
|
8771
|
-
t =
|
|
8784
|
+
t = oe.roundPrecision(t + d, 4);
|
|
8772
8785
|
let f;
|
|
8773
|
-
c.mode === "RL" ? f =
|
|
8774
|
-
const
|
|
8775
|
-
|
|
8786
|
+
c.mode === "RL" ? f = oe.convertToMonotonicLng([n, p]) : f = oe.convertToMonotonicLng(Fe.interpolateCoordinates(n, p, 200));
|
|
8787
|
+
const v = j.lineString(f.map((S) => [S.lng, S.lat]));
|
|
8788
|
+
v.properties.dist = d, v.properties.bearing = m, v.properties.total = t, v.properties.name = "Line " + this.currentLineIndex, i.push(v);
|
|
8789
|
+
const b = e[a];
|
|
8790
|
+
b.properties.totalDist = oe.roundPrecision((c.totalDist ? c.totalDist : 0) + d, 4), b.properties.sumLabel = b.properties.totalDist + " nm";
|
|
8776
8791
|
}
|
|
8777
8792
|
e.push(...i), o.total = t;
|
|
8778
8793
|
}
|
|
8779
8794
|
return this.handleRender(o), o;
|
|
8780
8795
|
},
|
|
8781
8796
|
handleTmpPointUpdate(o, e, t, i) {
|
|
8782
|
-
const a =
|
|
8797
|
+
const a = j.featureCollection([]);
|
|
8783
8798
|
let r, s;
|
|
8784
8799
|
if (e) {
|
|
8785
8800
|
const n = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: t.lng, lat: t.lat };
|
|
8786
8801
|
r = Fe.calculateDistance(p, d, n.mode === "RL", 4), s = Fe.calculateBearing(p, d, n.mode === "RL", 2);
|
|
8787
8802
|
let m;
|
|
8788
|
-
n.mode === "RL" ? m =
|
|
8789
|
-
const f =
|
|
8803
|
+
n.mode === "RL" ? m = oe.convertToMonotonicLng([p, d]) : m = oe.convertToMonotonicLng(Fe.interpolateCoordinates(p, d, 200));
|
|
8804
|
+
const f = j.lineString(m.map((v) => [v.lng, v.lat]));
|
|
8790
8805
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
8791
8806
|
}
|
|
8792
8807
|
if (i) {
|
|
8793
8808
|
const n = t.properties, p = t, d = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
8794
8809
|
r = Fe.calculateDistance(p, d, n.mode === "RL", 4), s = Fe.calculateBearing(p, d, n.mode === "RL", 2);
|
|
8795
8810
|
let m;
|
|
8796
|
-
n.mode === "RL" ? m =
|
|
8797
|
-
const f =
|
|
8811
|
+
n.mode === "RL" ? m = oe.convertToMonotonicLng([p, d]) : m = oe.convertToMonotonicLng(Fe.interpolateCoordinates(p, d, 200));
|
|
8812
|
+
const f = j.lineString(m.map((v) => [v.lng, v.lat]));
|
|
8798
8813
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
8799
8814
|
}
|
|
8800
8815
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -8810,7 +8825,7 @@ const Ml = {
|
|
|
8810
8825
|
"line-join": "round"
|
|
8811
8826
|
},
|
|
8812
8827
|
paint: {
|
|
8813
|
-
"line-color": this.theme.current.value.colors
|
|
8828
|
+
"line-color": this.theme.current.value.colors["map-orange"],
|
|
8814
8829
|
"line-width": 2,
|
|
8815
8830
|
"line-opacity": 1,
|
|
8816
8831
|
"line-dasharray": [3, 2]
|
|
@@ -8822,24 +8837,25 @@ const Ml = {
|
|
|
8822
8837
|
filter: ["==", "$type", "LineString"],
|
|
8823
8838
|
layout: {
|
|
8824
8839
|
"symbol-placement": "line-center",
|
|
8825
|
-
"text-field":
|
|
8840
|
+
"text-field": "{dist} nm",
|
|
8826
8841
|
"text-rotation-alignment": "map",
|
|
8827
|
-
"text-size":
|
|
8842
|
+
"text-size": 10,
|
|
8843
|
+
"text-offset": [0, -1]
|
|
8828
8844
|
},
|
|
8829
8845
|
paint: {
|
|
8830
8846
|
"text-opacity": 1,
|
|
8831
|
-
"text-color": this.theme.current.value.colors
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
|
|
8847
|
+
"text-color": this.theme.current.value.colors["on-surface"]
|
|
8848
|
+
// 'text-halo-color': this.theme.current.value.colors['map-orange'],
|
|
8849
|
+
// 'text-halo-width': 4,
|
|
8850
|
+
// 'text-halo-blur': 0,
|
|
8835
8851
|
}
|
|
8836
8852
|
});
|
|
8837
8853
|
let c;
|
|
8838
8854
|
if (i)
|
|
8839
8855
|
c = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
|
|
8840
8856
|
else {
|
|
8841
|
-
const n =
|
|
8842
|
-
c = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${n}</b
|
|
8857
|
+
const n = oe.roundPrecision((o.total ?? 0) + r, 1);
|
|
8858
|
+
c = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${n}</b>nm, ${this.$t(
|
|
8843
8859
|
"measure.bearing"
|
|
8844
8860
|
)}: <b>${s}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
|
|
8845
8861
|
"measure.switchTips"
|
|
@@ -8849,25 +8865,25 @@ const Ml = {
|
|
|
8849
8865
|
this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
8850
8866
|
else {
|
|
8851
8867
|
const n = document.createElement("div");
|
|
8852
|
-
n.className = "idm-gl4-measure-tip-marker", n.innerHTML = c, this.tipMarker = new
|
|
8868
|
+
n.className = "idm-gl4-measure-tip-marker", n.innerHTML = c, this.tipMarker = new ke.Marker(n).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
|
|
8853
8869
|
}
|
|
8854
8870
|
},
|
|
8855
8871
|
handleMove(o) {
|
|
8856
8872
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
8857
8873
|
let e = this.geojson.at(-1);
|
|
8858
|
-
e || (e =
|
|
8874
|
+
e || (e = j.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
8859
8875
|
const t = e.features.filter((i) => i.geometry.type === "Point");
|
|
8860
8876
|
t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: o.lngLat.lng, lat: o.lngLat.lat });
|
|
8861
8877
|
},
|
|
8862
8878
|
handleDblClick(o) {
|
|
8863
8879
|
o.preventDefault();
|
|
8864
8880
|
let e = this.geojson.at(-1);
|
|
8865
|
-
e.closed = !0, this.handleRender(e), e =
|
|
8881
|
+
e.closed = !0, this.handleRender(e), e = j.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
|
|
8866
8882
|
},
|
|
8867
8883
|
handleRender(o) {
|
|
8868
8884
|
var e;
|
|
8869
8885
|
if ((e = o == null ? void 0 : o.features) != null && e.length) {
|
|
8870
|
-
const t = `${o.id}-${this.source}`, i = `${o.id}-${this.layer}`, a = `${o.id}-${this.labelLayer}`;
|
|
8886
|
+
const t = `${o.id}-${this.source}`, i = `${o.id}-${this.layer}`, a = `${o.id}-${this.labelLayer}`, r = `${o.id}-${this.sumLayer}`;
|
|
8871
8887
|
this.map.getSource(t) ? this.map.getSource(t).setData(o) : this.map.addSource(t, {
|
|
8872
8888
|
type: "geojson",
|
|
8873
8889
|
data: o
|
|
@@ -8881,7 +8897,7 @@ const Ml = {
|
|
|
8881
8897
|
"line-join": "round"
|
|
8882
8898
|
},
|
|
8883
8899
|
paint: {
|
|
8884
|
-
"line-color": this.theme.current.value.colors
|
|
8900
|
+
"line-color": this.theme.current.value.colors["map-orange"],
|
|
8885
8901
|
"line-width": 2
|
|
8886
8902
|
}
|
|
8887
8903
|
}), this.map.addLayer({
|
|
@@ -8891,46 +8907,64 @@ const Ml = {
|
|
|
8891
8907
|
filter: ["==", "$type", "LineString"],
|
|
8892
8908
|
layout: {
|
|
8893
8909
|
"symbol-placement": "line-center",
|
|
8894
|
-
"text-field":
|
|
8910
|
+
"text-field": "{dist} nm",
|
|
8911
|
+
"text-rotation-alignment": "map",
|
|
8912
|
+
"text-size": 10,
|
|
8913
|
+
"text-offset": [0, -1]
|
|
8914
|
+
},
|
|
8915
|
+
paint: {
|
|
8916
|
+
"text-opacity": 1,
|
|
8917
|
+
"text-color": this.theme.current.value.colors["on-surface"]
|
|
8918
|
+
// 'text-halo-color': this.theme.current.value.colors['map-orange'],
|
|
8919
|
+
// 'text-halo-width': 4,
|
|
8920
|
+
// 'text-halo-blur': 0,
|
|
8921
|
+
}
|
|
8922
|
+
}), this.map.addLayer({
|
|
8923
|
+
id: r,
|
|
8924
|
+
type: "symbol",
|
|
8925
|
+
source: t,
|
|
8926
|
+
filter: ["==", "$type", "Point"],
|
|
8927
|
+
layout: {
|
|
8928
|
+
"text-field": "{sumLabel}",
|
|
8895
8929
|
"text-rotation-alignment": "map",
|
|
8896
|
-
"text-size": 12
|
|
8930
|
+
"text-size": 12,
|
|
8931
|
+
"text-offset": [0, 1.5]
|
|
8897
8932
|
},
|
|
8898
8933
|
paint: {
|
|
8899
8934
|
"text-opacity": 1,
|
|
8900
|
-
"text-color": this.theme.current.value.colors
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
"text-halo-blur": 0
|
|
8935
|
+
"text-color": this.theme.current.value.colors["on-surface"]
|
|
8936
|
+
// 'text-halo-width': 1,
|
|
8937
|
+
// 'text-halo-blur': 0,
|
|
8904
8938
|
}
|
|
8905
8939
|
});
|
|
8906
|
-
const
|
|
8907
|
-
for (const
|
|
8908
|
-
const
|
|
8909
|
-
|
|
8910
|
-
const
|
|
8911
|
-
|
|
8940
|
+
const s = o.features.filter((c) => c.geometry.type === "Point");
|
|
8941
|
+
for (const c of s) {
|
|
8942
|
+
const n = document.createElement("div");
|
|
8943
|
+
n.id = `${o.id}-${c.properties.id}`, n.className = `${o.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
|
|
8944
|
+
const p = new ke.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
8945
|
+
p.on("drag", this.handleDrag), p.on("dragend", this.handleDragEnd), this.pointMarkers[o.id] ? this.pointMarkers[o.id].push(p) : this.pointMarkers[o.id] = [p];
|
|
8912
8946
|
}
|
|
8913
8947
|
if (o.closed) {
|
|
8914
|
-
const
|
|
8915
|
-
|
|
8948
|
+
const c = s.at(-1), p = o.features.filter((m) => m.geometry.type === "LineString").at(-1), d = document.createElement("div");
|
|
8949
|
+
d.className = "idm-gl4-measure-summary-marker", d.innerHTML = `<div id="${o.id}" class="marker-close">×</div><div class="marker-label">${p.properties.name}</div>`, this.closeMarkers[o.id] = new ke.Marker(d).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
8916
8950
|
}
|
|
8917
8951
|
}
|
|
8918
8952
|
},
|
|
8919
8953
|
handleClear(o, e = !0) {
|
|
8920
|
-
var
|
|
8921
|
-
const t = `${o.id}-${this.source}`, i = `${o.id}-${this.layer}`, a = `${o.id}-${this.labelLayer}`;
|
|
8922
|
-
(
|
|
8923
|
-
|
|
8924
|
-
}), this.pointMarkers[o.id] = [], (
|
|
8954
|
+
var s, c, n, p, d, m, f, v, b, S;
|
|
8955
|
+
const t = `${o.id}-${this.source}`, i = `${o.id}-${this.layer}`, a = `${o.id}-${this.labelLayer}`, r = `${o.id}-${this.sumLayer}`;
|
|
8956
|
+
(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), (p = this.map) != null && p.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (d = this.map) != null && d.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (m = this.closeMarkers[o.id]) == null || m.remove(), this.closeMarkers[o.id] = void 0, (f = this.pointMarkers[o.id]) == null || f.forEach((L) => {
|
|
8957
|
+
L == null || L.remove();
|
|
8958
|
+
}), this.pointMarkers[o.id] = [], (v = this.tipMarker) == null || v.remove(), this.tipMarker = void 0, e && ((b = this.map) != null && b.getSource(t)) && this.map.removeSource(t), e && ((S = this.map) != null && S.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
8925
8959
|
}
|
|
8926
8960
|
}
|
|
8927
|
-
},
|
|
8928
|
-
function
|
|
8961
|
+
}, Sl = { class: "idm-gl4-measure" };
|
|
8962
|
+
function Ml(o, e, t, i, a, r) {
|
|
8929
8963
|
const s = k("VBtn"), c = k("VTooltip");
|
|
8930
|
-
return y(), T("div",
|
|
8964
|
+
return y(), T("div", Sl, [
|
|
8931
8965
|
l("div", {
|
|
8932
8966
|
class: "menu-bar-box transition pa-1",
|
|
8933
|
-
style:
|
|
8967
|
+
style: ae({ top: t.top + 214 + "px", right: a.right + "px" })
|
|
8934
8968
|
}, [
|
|
8935
8969
|
h(c, {
|
|
8936
8970
|
text: o.$t("measure.measure"),
|
|
@@ -8956,10 +8990,10 @@ function Rl(o, e, t, i, a, r) {
|
|
|
8956
8990
|
], 4)
|
|
8957
8991
|
]);
|
|
8958
8992
|
}
|
|
8959
|
-
const
|
|
8960
|
-
const
|
|
8993
|
+
const Tl = /* @__PURE__ */ q(Cl, [["render", Ml]]);
|
|
8994
|
+
const Il = {
|
|
8961
8995
|
name: "IdmBottomBar",
|
|
8962
|
-
components: { DateTimePicker:
|
|
8996
|
+
components: { DateTimePicker: io },
|
|
8963
8997
|
props: {
|
|
8964
8998
|
menuToggle: {
|
|
8965
8999
|
type: Object,
|
|
@@ -9070,19 +9104,19 @@ const Al = {
|
|
|
9070
9104
|
this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
|
|
9071
9105
|
}
|
|
9072
9106
|
}
|
|
9073
|
-
},
|
|
9107
|
+
}, Rl = { class: "idm-bottom-bar-gl4" }, Al = { class: "date-box d-flex ga-2 mr-2" }, Dl = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, Ol = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, Bl = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, El = {
|
|
9074
9108
|
key: 0,
|
|
9075
9109
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
9076
|
-
},
|
|
9077
|
-
function
|
|
9078
|
-
const s = k("DateTimePicker"), c = k("VListItemTitle"), n = k("VListItem"), p = k("VList"), d = k("VMenu"), m = k("VBtn"), f = k("VDivider"),
|
|
9079
|
-
return y(), T("div",
|
|
9110
|
+
}, jl = ["onClick"], Fl = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Nl = { class: "text-body-2" };
|
|
9111
|
+
function Hl(o, e, t, i, a, r) {
|
|
9112
|
+
const s = k("DateTimePicker"), c = k("VListItemTitle"), n = k("VListItem"), p = k("VList"), d = k("VMenu"), m = k("VBtn"), f = k("VDivider"), v = k("VTooltip");
|
|
9113
|
+
return y(), T("div", Rl, [
|
|
9080
9114
|
a.show ? (y(), T("div", {
|
|
9081
9115
|
key: 0,
|
|
9082
9116
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
9083
|
-
style:
|
|
9117
|
+
style: ae({ right: a.right + 146 + "px" })
|
|
9084
9118
|
}, [
|
|
9085
|
-
l("div",
|
|
9119
|
+
l("div", Al, [
|
|
9086
9120
|
h(s, E({
|
|
9087
9121
|
"date-time": a.currentDateTimeZ,
|
|
9088
9122
|
"time-zone": a.timeZone,
|
|
@@ -9100,12 +9134,12 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9100
9134
|
"min-width": "30"
|
|
9101
9135
|
}, {
|
|
9102
9136
|
default: g(() => [
|
|
9103
|
-
Z(
|
|
9137
|
+
Z(w(a.intervalHour) + " h ", 1),
|
|
9104
9138
|
h(d, { activator: "parent" }, {
|
|
9105
9139
|
default: g(() => [
|
|
9106
9140
|
h(p, { class: "pa-1" }, {
|
|
9107
9141
|
default: g(() => [
|
|
9108
|
-
(y(!0), T(
|
|
9142
|
+
(y(!0), T(_e, null, Le(a.intervalOptions, (b, S) => (y(), U(n, {
|
|
9109
9143
|
key: S,
|
|
9110
9144
|
value: b,
|
|
9111
9145
|
variant: a.intervalHour === b ? "tonal" : "text",
|
|
@@ -9119,10 +9153,10 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9119
9153
|
}, {
|
|
9120
9154
|
default: g(() => [
|
|
9121
9155
|
h(c, {
|
|
9122
|
-
onClick: (
|
|
9156
|
+
onClick: (L) => a.intervalHour = b
|
|
9123
9157
|
}, {
|
|
9124
9158
|
default: g(() => [
|
|
9125
|
-
Z(
|
|
9159
|
+
Z(w(b) + "h", 1)
|
|
9126
9160
|
]),
|
|
9127
9161
|
_: 2
|
|
9128
9162
|
}, 1032, ["onClick"])
|
|
@@ -9144,7 +9178,7 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9144
9178
|
class: "mx-2 my-3",
|
|
9145
9179
|
style: { height: "16px" }
|
|
9146
9180
|
}),
|
|
9147
|
-
l("div",
|
|
9181
|
+
l("div", Dl, [
|
|
9148
9182
|
h(m, {
|
|
9149
9183
|
icon: "",
|
|
9150
9184
|
size: "small",
|
|
@@ -9152,11 +9186,11 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9152
9186
|
variant: "text",
|
|
9153
9187
|
onClick: r.handleReset
|
|
9154
9188
|
}, {
|
|
9155
|
-
default: g(() => e[
|
|
9189
|
+
default: g(() => e[9] || (e[9] = [
|
|
9156
9190
|
l("i", { class: "iconfont icon-Reset" }, null, -1)
|
|
9157
9191
|
])),
|
|
9158
9192
|
_: 1,
|
|
9159
|
-
__: [
|
|
9193
|
+
__: [9]
|
|
9160
9194
|
}, 8, ["onClick"]),
|
|
9161
9195
|
h(m, {
|
|
9162
9196
|
icon: "",
|
|
@@ -9165,11 +9199,11 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9165
9199
|
variant: "text",
|
|
9166
9200
|
onClick: r.handleBackward
|
|
9167
9201
|
}, {
|
|
9168
|
-
default: g(() => e[
|
|
9202
|
+
default: g(() => e[10] || (e[10] = [
|
|
9169
9203
|
l("i", { class: "iconfont icon-Backward" }, null, -1)
|
|
9170
9204
|
])),
|
|
9171
9205
|
_: 1,
|
|
9172
|
-
__: [
|
|
9206
|
+
__: [10]
|
|
9173
9207
|
}, 8, ["onClick"]),
|
|
9174
9208
|
a.paused ? (y(), U(m, {
|
|
9175
9209
|
key: 0,
|
|
@@ -9179,11 +9213,11 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9179
9213
|
variant: "text",
|
|
9180
9214
|
onClick: r.handlePlay
|
|
9181
9215
|
}, {
|
|
9182
|
-
default: g(() => e[
|
|
9216
|
+
default: g(() => e[11] || (e[11] = [
|
|
9183
9217
|
l("i", { class: "iconfont icon-Play" }, null, -1)
|
|
9184
9218
|
])),
|
|
9185
9219
|
_: 1,
|
|
9186
|
-
__: [
|
|
9220
|
+
__: [11]
|
|
9187
9221
|
}, 8, ["onClick"])) : (y(), U(m, {
|
|
9188
9222
|
key: 1,
|
|
9189
9223
|
icon: "",
|
|
@@ -9192,11 +9226,11 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9192
9226
|
variant: "text",
|
|
9193
9227
|
onClick: r.handlePause
|
|
9194
9228
|
}, {
|
|
9195
|
-
default: g(() => e[
|
|
9229
|
+
default: g(() => e[12] || (e[12] = [
|
|
9196
9230
|
l("i", { class: "iconfont icon-Pause" }, null, -1)
|
|
9197
9231
|
])),
|
|
9198
9232
|
_: 1,
|
|
9199
|
-
__: [
|
|
9233
|
+
__: [12]
|
|
9200
9234
|
}, 8, ["onClick"])),
|
|
9201
9235
|
h(m, {
|
|
9202
9236
|
icon: "",
|
|
@@ -9205,11 +9239,11 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9205
9239
|
variant: "text",
|
|
9206
9240
|
onClick: r.handleForward
|
|
9207
9241
|
}, {
|
|
9208
|
-
default: g(() => e[
|
|
9242
|
+
default: g(() => e[13] || (e[13] = [
|
|
9209
9243
|
l("i", { class: "iconfont icon-Forward" }, null, -1)
|
|
9210
9244
|
])),
|
|
9211
9245
|
_: 1,
|
|
9212
|
-
__: [
|
|
9246
|
+
__: [13]
|
|
9213
9247
|
}, 8, ["onClick"])
|
|
9214
9248
|
]),
|
|
9215
9249
|
h(f, {
|
|
@@ -9217,44 +9251,44 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9217
9251
|
class: "mx-2 my-3",
|
|
9218
9252
|
style: { height: "16px" }
|
|
9219
9253
|
}),
|
|
9220
|
-
l("div",
|
|
9221
|
-
h(
|
|
9254
|
+
l("div", Ol, [
|
|
9255
|
+
h(v, {
|
|
9222
9256
|
text: o.$t("weather.windBarbs"),
|
|
9223
9257
|
location: "top"
|
|
9224
9258
|
}, {
|
|
9225
9259
|
activator: g(({ props: b }) => {
|
|
9226
|
-
var S,
|
|
9260
|
+
var S, L;
|
|
9227
9261
|
return [
|
|
9228
9262
|
h(m, E(b, {
|
|
9229
9263
|
class: "pa-1 d-flex",
|
|
9230
9264
|
color: (S = t.weatherCheckList) != null && S.includes("wind") ? "primary" : "",
|
|
9231
|
-
variant: (
|
|
9265
|
+
variant: (L = t.weatherCheckList) != null && L.includes("wind") ? "elevated" : "text",
|
|
9232
9266
|
height: "24",
|
|
9233
9267
|
width: "24",
|
|
9234
9268
|
"min-width": "24",
|
|
9235
9269
|
onClick: e[3] || (e[3] = (B) => r.handleClickFastWeather("wind"))
|
|
9236
9270
|
}), {
|
|
9237
|
-
default: g(() => e[
|
|
9271
|
+
default: g(() => e[14] || (e[14] = [
|
|
9238
9272
|
l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
|
|
9239
9273
|
])),
|
|
9240
9274
|
_: 2,
|
|
9241
|
-
__: [
|
|
9275
|
+
__: [14]
|
|
9242
9276
|
}, 1040, ["color", "variant"])
|
|
9243
9277
|
];
|
|
9244
9278
|
}),
|
|
9245
9279
|
_: 1
|
|
9246
9280
|
}, 8, ["text"]),
|
|
9247
|
-
h(
|
|
9281
|
+
h(v, {
|
|
9248
9282
|
text: o.$t("weather.sigWaveHeight"),
|
|
9249
9283
|
location: "top"
|
|
9250
9284
|
}, {
|
|
9251
9285
|
activator: g(({ props: b }) => {
|
|
9252
|
-
var S,
|
|
9286
|
+
var S, L;
|
|
9253
9287
|
return [
|
|
9254
9288
|
h(m, E(b, {
|
|
9255
9289
|
class: "pa-1 d-flex",
|
|
9256
9290
|
color: (S = t.weatherCheckList) != null && S.includes("sig-wave-height") ? "primary" : "",
|
|
9257
|
-
variant: (
|
|
9291
|
+
variant: (L = t.weatherCheckList) != null && L.includes("sig-wave-height") ? "elevated" : "text",
|
|
9258
9292
|
height: "24",
|
|
9259
9293
|
width: "24",
|
|
9260
9294
|
"min-width": "24",
|
|
@@ -9269,17 +9303,17 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9269
9303
|
}),
|
|
9270
9304
|
_: 1
|
|
9271
9305
|
}, 8, ["text"]),
|
|
9272
|
-
h(
|
|
9306
|
+
h(v, {
|
|
9273
9307
|
text: o.$t("weather.currentDirection"),
|
|
9274
9308
|
location: "top"
|
|
9275
9309
|
}, {
|
|
9276
9310
|
activator: g(({ props: b }) => {
|
|
9277
|
-
var S,
|
|
9311
|
+
var S, L;
|
|
9278
9312
|
return [
|
|
9279
9313
|
h(m, E(b, {
|
|
9280
9314
|
class: "pa-1 d-flex",
|
|
9281
9315
|
color: (S = t.weatherCheckList) != null && S.includes("current-direction") ? "primary" : "",
|
|
9282
|
-
variant: (
|
|
9316
|
+
variant: (L = t.weatherCheckList) != null && L.includes("current-direction") ? "elevated" : "text",
|
|
9283
9317
|
height: "24",
|
|
9284
9318
|
width: "24",
|
|
9285
9319
|
"min-width": "24",
|
|
@@ -9294,7 +9328,7 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9294
9328
|
}),
|
|
9295
9329
|
_: 1
|
|
9296
9330
|
}, 8, ["text"]),
|
|
9297
|
-
h(
|
|
9331
|
+
h(v, {
|
|
9298
9332
|
text: o.$t("weather.weatherLayers"),
|
|
9299
9333
|
location: "top"
|
|
9300
9334
|
}, {
|
|
@@ -9321,7 +9355,7 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9321
9355
|
class: "mx-2 mr-3 my-3",
|
|
9322
9356
|
style: { height: "16px" }
|
|
9323
9357
|
}),
|
|
9324
|
-
l("div",
|
|
9358
|
+
l("div", Bl, [
|
|
9325
9359
|
h(m, {
|
|
9326
9360
|
text: "",
|
|
9327
9361
|
height: "30",
|
|
@@ -9329,11 +9363,11 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9329
9363
|
color: a.source === "GFS" ? "primary" : "",
|
|
9330
9364
|
onClick: e[6] || (e[6] = (b) => a.source = "GFS")
|
|
9331
9365
|
}, {
|
|
9332
|
-
default: g(() => e[
|
|
9366
|
+
default: g(() => e[15] || (e[15] = [
|
|
9333
9367
|
Z("NOAA", -1)
|
|
9334
9368
|
])),
|
|
9335
9369
|
_: 1,
|
|
9336
|
-
__: [
|
|
9370
|
+
__: [15]
|
|
9337
9371
|
}, 8, ["color"]),
|
|
9338
9372
|
h(m, {
|
|
9339
9373
|
text: "",
|
|
@@ -9342,69 +9376,53 @@ function Gl(o, e, t, i, a, r) {
|
|
|
9342
9376
|
color: a.source === "ECMWF" ? "primary" : "",
|
|
9343
9377
|
onClick: e[7] || (e[7] = (b) => a.source = "ECMWF")
|
|
9344
9378
|
}, {
|
|
9345
|
-
default: g(() => e[
|
|
9379
|
+
default: g(() => e[16] || (e[16] = [
|
|
9346
9380
|
Z("ECMWF", -1)
|
|
9347
9381
|
])),
|
|
9348
9382
|
_: 1,
|
|
9349
|
-
__: [
|
|
9350
|
-
}, 8, ["color"])
|
|
9351
|
-
h(m, {
|
|
9352
|
-
icon: "",
|
|
9353
|
-
size: "x-small",
|
|
9354
|
-
density: "comfortable",
|
|
9355
|
-
variant: "plain",
|
|
9356
|
-
onClick: e[8] || (e[8] = (b) => r.handleToggle(!1))
|
|
9357
|
-
}, {
|
|
9358
|
-
default: g(() => e[18] || (e[18] = [
|
|
9359
|
-
l("i", {
|
|
9360
|
-
class: "iconfont icon-close",
|
|
9361
|
-
style: { "font-size": "16px" }
|
|
9362
|
-
}, null, -1)
|
|
9363
|
-
])),
|
|
9364
|
-
_: 1,
|
|
9365
|
-
__: [18]
|
|
9366
|
-
})
|
|
9383
|
+
__: [16]
|
|
9384
|
+
}, 8, ["color"])
|
|
9367
9385
|
])
|
|
9368
|
-
], 4)) :
|
|
9386
|
+
], 4)) : F("", !0),
|
|
9369
9387
|
l("div", {
|
|
9370
9388
|
class: "timezone-box d-flex flex-column justify-space-between align-end",
|
|
9371
|
-
style:
|
|
9389
|
+
style: ae({ right: a.right + "px" })
|
|
9372
9390
|
}, [
|
|
9373
|
-
a.showTimezone ? (y(), T("div",
|
|
9374
|
-
(y(!0), T(
|
|
9391
|
+
a.showTimezone ? (y(), T("div", El, [
|
|
9392
|
+
(y(!0), T(_e, null, Le(a.offsets, (b) => (y(), T("div", {
|
|
9375
9393
|
key: b,
|
|
9376
|
-
class: "item rounded text-body-2",
|
|
9394
|
+
class: "item rounded text-body-2 hover-active",
|
|
9377
9395
|
onClick: (S) => a.timeZone = b
|
|
9378
|
-
},
|
|
9379
|
-
])) :
|
|
9380
|
-
l("div",
|
|
9396
|
+
}, w(b < 0 ? b : "+" + b), 9, jl))), 128))
|
|
9397
|
+
])) : F("", !0),
|
|
9398
|
+
l("div", Fl, [
|
|
9381
9399
|
h(m, {
|
|
9382
9400
|
text: "",
|
|
9383
9401
|
variant: "flat",
|
|
9384
9402
|
height: "24",
|
|
9385
9403
|
class: "pa-1",
|
|
9386
9404
|
color: "primary",
|
|
9387
|
-
onClick: e[
|
|
9405
|
+
onClick: e[8] || (e[8] = (b) => a.showTimezone = !a.showTimezone)
|
|
9388
9406
|
}, {
|
|
9389
9407
|
default: g(() => [
|
|
9390
|
-
Z(" UTC " +
|
|
9408
|
+
Z(" UTC " + w(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
|
|
9391
9409
|
]),
|
|
9392
9410
|
_: 1
|
|
9393
9411
|
}),
|
|
9394
|
-
l("span",
|
|
9412
|
+
l("span", Nl, w(a.currentRealTime), 1)
|
|
9395
9413
|
])
|
|
9396
9414
|
], 4)
|
|
9397
9415
|
]);
|
|
9398
9416
|
}
|
|
9399
|
-
const
|
|
9417
|
+
const Wl = /* @__PURE__ */ q(Il, [["render", Hl]]), Gl = {
|
|
9400
9418
|
name: "IdmGL4",
|
|
9401
9419
|
components: {
|
|
9402
9420
|
IdmOtherLayer: ai,
|
|
9403
|
-
IdmWeatherLayer:
|
|
9421
|
+
IdmWeatherLayer: Hr,
|
|
9404
9422
|
IdmTropicals: Bo,
|
|
9405
|
-
IdmMeasure:
|
|
9406
|
-
IdmSpot:
|
|
9407
|
-
IdmBottomBar:
|
|
9423
|
+
IdmMeasure: Tl,
|
|
9424
|
+
IdmSpot: Pl,
|
|
9425
|
+
IdmBottomBar: Wl
|
|
9408
9426
|
},
|
|
9409
9427
|
props: {
|
|
9410
9428
|
map: {
|
|
@@ -9436,13 +9454,13 @@ const Ul = /* @__PURE__ */ q(Al, [["render", Gl]]), Vl = {
|
|
|
9436
9454
|
mounted() {
|
|
9437
9455
|
},
|
|
9438
9456
|
methods: {}
|
|
9439
|
-
},
|
|
9457
|
+
}, Ul = {
|
|
9440
9458
|
ref: "mapHomeGl4",
|
|
9441
9459
|
class: "map-gl4-home"
|
|
9442
9460
|
};
|
|
9443
|
-
function
|
|
9461
|
+
function Vl(o, e, t, i, a, r) {
|
|
9444
9462
|
const s = k("IdmOtherLayer"), c = k("IdmWeatherLayer"), n = k("IdmTropicals"), p = k("IdmMeasure"), d = k("IdmSpot"), m = k("IdmBottomBar");
|
|
9445
|
-
return y(), T("div",
|
|
9463
|
+
return y(), T("div", Ul, [
|
|
9446
9464
|
h(s, E({
|
|
9447
9465
|
ref: "idmOtherLayers",
|
|
9448
9466
|
token: t.token,
|
|
@@ -9494,8 +9512,8 @@ function Zl(o, e, t, i, a, r) {
|
|
|
9494
9512
|
}, o.$attrs), null, 16, ["forecast-model", "weatherCheckList"])
|
|
9495
9513
|
], 512);
|
|
9496
9514
|
}
|
|
9497
|
-
const
|
|
9498
|
-
class
|
|
9515
|
+
const Yl = /* @__PURE__ */ q(Gl, [["render", Vl]]);
|
|
9516
|
+
class Zl {
|
|
9499
9517
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
9500
9518
|
re(this, "originStyle");
|
|
9501
9519
|
re(this, "mapboxStyle");
|
|
@@ -9503,7 +9521,7 @@ class ql {
|
|
|
9503
9521
|
re(this, "hi");
|
|
9504
9522
|
re(this, "td");
|
|
9505
9523
|
re(this, "windy");
|
|
9506
|
-
var t, i, a, r, s, c, n, p, d, m, f,
|
|
9524
|
+
var t, i, a, r, s, c, n, p, d, m, f, v, b, S, L, B, M, P, _, z, C, x, I, W, X, V, Y, $, ee, Q, ne, he, de, ce, K, R, le, ge, fe, we, xe, Se, Me, Te, Ie, Re, be, H, te, Ee, Pe, me, pe, N, ve, J, ie, Ae, D, ue, Ce, De, Oe, A, G, He, We, Ge, ze, Ue, Ve, Ye, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, bt, yt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, Rt, At, Dt, Ot, Bt, Et, jt, Ft, Nt, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, ro, lo, so, no, co, mo, ho, po, uo, go, fo, bo, yo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Io, Ro;
|
|
9507
9525
|
this.i4 = {
|
|
9508
9526
|
source: {
|
|
9509
9527
|
type: "raster",
|
|
@@ -71385,22 +71403,22 @@ class ql {
|
|
|
71385
71403
|
(c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((u) => u.id === "empty-layer-1"),
|
|
71386
71404
|
(p = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : p.find((u) => u.id === "country-boundaries"),
|
|
71387
71405
|
(m = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : m.find((u) => u.id === "water-outline"),
|
|
71388
|
-
(
|
|
71406
|
+
(v = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : v.find((u) => u.id === "water-outline2"),
|
|
71389
71407
|
(S = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : S.find((u) => u.id === "empty-layer-2"),
|
|
71390
|
-
(B = (
|
|
71391
|
-
(
|
|
71392
|
-
(z = (
|
|
71393
|
-
(
|
|
71394
|
-
(W = (
|
|
71408
|
+
(B = (L = this.originStyle) == null ? void 0 : L.light.layers) == null ? void 0 : B.find((u) => u.id === "empty-layer-3"),
|
|
71409
|
+
(P = (M = this.originStyle) == null ? void 0 : M.light.layers) == null ? void 0 : P.find((u) => u.id === "empty-layer-4"),
|
|
71410
|
+
(z = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : z.find((u) => u.id === "water-line-label"),
|
|
71411
|
+
(x = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : x.find((u) => u.id === "water-point-label"),
|
|
71412
|
+
(W = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : W.find((u) => u.id === "world-12nm-v4-20231025"),
|
|
71395
71413
|
(V = (X = this.originStyle) == null ? void 0 : X.light.layers) == null ? void 0 : V.find((u) => u.id === "ne-10m-outline"),
|
|
71396
71414
|
($ = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : $.find((u) => u.id === "ne-10m-label"),
|
|
71397
71415
|
(Q = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : Q.find((u) => u.id === "china-route-line"),
|
|
71398
|
-
(
|
|
71399
|
-
(
|
|
71400
|
-
(
|
|
71416
|
+
(he = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : he.find((u) => u.id === "china-route-fill"),
|
|
71417
|
+
(ce = (de = this.originStyle) == null ? void 0 : de.light.layers) == null ? void 0 : ce.find((u) => u.id === "china-route-label"),
|
|
71418
|
+
(R = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : R.find((u) => u.id === "admin-0-boundary-bg"),
|
|
71401
71419
|
(ge = (le = this.originStyle) == null ? void 0 : le.light.layers) == null ? void 0 : ge.find((u) => u.id === "admin-0-boundary"),
|
|
71402
|
-
(
|
|
71403
|
-
(Se = (
|
|
71420
|
+
(we = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : we.find((u) => u.id === "admin-0-boundary-disputed"),
|
|
71421
|
+
(Se = (xe = this.originStyle) == null ? void 0 : xe.light.layers) == null ? void 0 : Se.find((u) => u.id === "country-label"),
|
|
71404
71422
|
(Te = (Me = this.originStyle) == null ? void 0 : Me.light.layers) == null ? void 0 : Te.find((u) => u.id === "continent-label")
|
|
71405
71423
|
// this.originStyle?.light.layers?.find((l: { id: string }) => l.id === 'state-label'),
|
|
71406
71424
|
]
|
|
@@ -71532,19 +71550,19 @@ class ql {
|
|
|
71532
71550
|
protected: !1,
|
|
71533
71551
|
draft: !1,
|
|
71534
71552
|
layers: [
|
|
71535
|
-
(
|
|
71536
|
-
(
|
|
71537
|
-
(Ee = (
|
|
71538
|
-
(
|
|
71539
|
-
(
|
|
71540
|
-
(J = (
|
|
71541
|
-
(Ae = (
|
|
71553
|
+
(Re = (Ie = this.originStyle) == null ? void 0 : Ie.dark.layers) == null ? void 0 : Re.find((u) => u.id === "land"),
|
|
71554
|
+
(H = (be = this.originStyle) == null ? void 0 : be.dark.layers) == null ? void 0 : H.find((u) => u.id === "water"),
|
|
71555
|
+
(Ee = (te = this.originStyle) == null ? void 0 : te.dark.layers) == null ? void 0 : Ee.find((u) => u.id === "empty-layer-1"),
|
|
71556
|
+
(me = (Pe = this.originStyle) == null ? void 0 : Pe.dark.layers) == null ? void 0 : me.find((u) => u.id === "country-boundaries"),
|
|
71557
|
+
(N = (pe = this.originStyle) == null ? void 0 : pe.dark.layers) == null ? void 0 : N.find((u) => u.id === "water-outline"),
|
|
71558
|
+
(J = (ve = this.originStyle) == null ? void 0 : ve.dark.layers) == null ? void 0 : J.find((u) => u.id === "empty-layer-2"),
|
|
71559
|
+
(Ae = (ie = this.originStyle) == null ? void 0 : ie.dark.layers) == null ? void 0 : Ae.find((u) => u.id === "empty-layer-3"),
|
|
71542
71560
|
(ue = (D = this.originStyle) == null ? void 0 : D.dark.layers) == null ? void 0 : ue.find((u) => u.id === "empty-layer-4"),
|
|
71543
71561
|
(De = (Ce = this.originStyle) == null ? void 0 : Ce.dark.layers) == null ? void 0 : De.find((u) => u.id === "water-line-label"),
|
|
71544
71562
|
(A = (Oe = this.originStyle) == null ? void 0 : Oe.dark.layers) == null ? void 0 : A.find((u) => u.id === "water-point-label"),
|
|
71545
71563
|
(He = (G = this.originStyle) == null ? void 0 : G.dark.layers) == null ? void 0 : He.find((u) => u.id === "world-12nm-v4-20231025"),
|
|
71546
71564
|
(Ge = (We = this.originStyle) == null ? void 0 : We.dark.layers) == null ? void 0 : Ge.find((u) => u.id === "ne-10m-outline"),
|
|
71547
|
-
(Ue = (
|
|
71565
|
+
(Ue = (ze = this.originStyle) == null ? void 0 : ze.dark.layers) == null ? void 0 : Ue.find((u) => u.id === "ne-10m-label"),
|
|
71548
71566
|
(Ye = (Ve = this.originStyle) == null ? void 0 : Ve.dark.layers) == null ? void 0 : Ye.find((u) => u.id === "china-route-line"),
|
|
71549
71567
|
(Xe = (Ze = this.originStyle) == null ? void 0 : Ze.dark.layers) == null ? void 0 : Xe.find((u) => u.id === "china-route-fill"),
|
|
71550
71568
|
(Ke = (qe = this.originStyle) == null ? void 0 : qe.dark.layers) == null ? void 0 : Ke.find((u) => u.id === "china-route-label"),
|
|
@@ -71694,7 +71712,7 @@ class ql {
|
|
|
71694
71712
|
(Pt = (Lt = this.originStyle) == null ? void 0 : Lt.satellite.layers) == null ? void 0 : Pt.find((u) => u.id === "world-12nm-v4-20231025"),
|
|
71695
71713
|
(St = (Ct = this.originStyle) == null ? void 0 : Ct.satellite.layers) == null ? void 0 : St.find((u) => u.id === "ne-10m-outline"),
|
|
71696
71714
|
(Tt = (Mt = this.originStyle) == null ? void 0 : Mt.satellite.layers) == null ? void 0 : Tt.find((u) => u.id === "ne-10m-label"),
|
|
71697
|
-
(
|
|
71715
|
+
(Rt = (It = this.originStyle) == null ? void 0 : It.satellite.layers) == null ? void 0 : Rt.find((u) => u.id === "china-route-line"),
|
|
71698
71716
|
(Dt = (At = this.originStyle) == null ? void 0 : At.satellite.layers) == null ? void 0 : Dt.find((u) => u.id === "china-route-fill"),
|
|
71699
71717
|
(Bt = (Ot = this.originStyle) == null ? void 0 : Ot.satellite.layers) == null ? void 0 : Bt.find((u) => u.id === "china-route-label"),
|
|
71700
71718
|
(jt = (Et = this.originStyle) == null ? void 0 : Et.satellite.layers) == null ? void 0 : jt.find((u) => u.id === "country-label"),
|
|
@@ -71735,7 +71753,7 @@ class ql {
|
|
|
71735
71753
|
(Ut = (Gt = this.originStyle) == null ? void 0 : Gt.nautical.layers) == null ? void 0 : Ut.find((u) => u.id === "empty-layer-1"),
|
|
71736
71754
|
(Yt = (Vt = this.originStyle) == null ? void 0 : Vt.nautical.layers) == null ? void 0 : Yt.find((u) => u.id === "country-boundaries"),
|
|
71737
71755
|
(Xt = (Zt = this.originStyle) == null ? void 0 : Zt.nautical.layers) == null ? void 0 : Xt.find((u) => u.id === "water-outline"),
|
|
71738
|
-
(ro = (
|
|
71756
|
+
(ro = (qt = this.originStyle) == null ? void 0 : qt.nautical.layers) == null ? void 0 : ro.find((u) => u.id === "empty-layer-2"),
|
|
71739
71757
|
(so = (lo = this.originStyle) == null ? void 0 : lo.nautical.layers) == null ? void 0 : so.find((u) => u.id === "empty-layer-3"),
|
|
71740
71758
|
(co = (no = this.originStyle) == null ? void 0 : no.nautical.layers) == null ? void 0 : co.find((u) => u.id === "empty-layer-4"),
|
|
71741
71759
|
(ho = (mo = this.originStyle) == null ? void 0 : mo.nautical.layers) == null ? void 0 : ho.find((u) => u.id === "world-12nm-v4-20231025"),
|
|
@@ -71750,7 +71768,7 @@ class ql {
|
|
|
71750
71768
|
(Po = (Lo = this.originStyle) == null ? void 0 : Lo.light.layers) == null ? void 0 : Po.find((u) => u.id === "admin-0-boundary"),
|
|
71751
71769
|
(So = (Co = this.originStyle) == null ? void 0 : Co.light.layers) == null ? void 0 : So.find((u) => u.id === "admin-0-boundary-disputed"),
|
|
71752
71770
|
(To = (Mo = this.originStyle) == null ? void 0 : Mo.light.layers) == null ? void 0 : To.find((u) => u.id === "country-label"),
|
|
71753
|
-
(
|
|
71771
|
+
(Ro = (Io = this.originStyle) == null ? void 0 : Io.light.layers) == null ? void 0 : Ro.find((u) => u.id === "continent-label")
|
|
71754
71772
|
// this.originStyle?.light.layers?.find((l: { id: string }) => l.id === 'state-label'),
|
|
71755
71773
|
],
|
|
71756
71774
|
created: "2025-07-22T02:15:53.587Z",
|
|
@@ -71764,7 +71782,7 @@ class ql {
|
|
|
71764
71782
|
};
|
|
71765
71783
|
}
|
|
71766
71784
|
}
|
|
71767
|
-
const
|
|
71785
|
+
const Xl = {
|
|
71768
71786
|
name: "MapInitial",
|
|
71769
71787
|
props: {
|
|
71770
71788
|
token: {
|
|
@@ -71817,8 +71835,8 @@ const Kl = {
|
|
|
71817
71835
|
methods: {
|
|
71818
71836
|
async initOnlineMap() {
|
|
71819
71837
|
var e;
|
|
71820
|
-
(e = this.map) == null || e.remove(), this.map = void 0, this.helper = new
|
|
71821
|
-
const o = new
|
|
71838
|
+
(e = this.map) == null || e.remove(), this.map = void 0, this.helper = new Zl(this.token), ke.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
71839
|
+
const o = new ke.Map({
|
|
71822
71840
|
container: "map",
|
|
71823
71841
|
// style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
|
|
71824
71842
|
// style: 'mapbox://styles/neatchenheng/cmdqwez32005b01re2w0k3zk4', // dark
|
|
@@ -71844,7 +71862,7 @@ const Kl = {
|
|
|
71844
71862
|
},
|
|
71845
71863
|
addScaleControl() {
|
|
71846
71864
|
var e;
|
|
71847
|
-
this.map.addControl(new
|
|
71865
|
+
this.map.addControl(new ke.ScaleControl({ maxWidth: 120, unit: "nautical" }), "bottom-left");
|
|
71848
71866
|
const o = (e = document.getElementsByClassName("mapboxgl-ctrl-scale")) == null ? void 0 : e[0];
|
|
71849
71867
|
o && (o.className = "mapboxgl-ctrl-scale " + this.mapFeather);
|
|
71850
71868
|
},
|
|
@@ -71857,16 +71875,16 @@ const Kl = {
|
|
|
71857
71875
|
this.zoom = this.zoom <= 2 ? 1 : this.zoom - 1, (o = this.map) == null || o.zoomOut(this.zoom);
|
|
71858
71876
|
}
|
|
71859
71877
|
}
|
|
71860
|
-
},
|
|
71861
|
-
function
|
|
71878
|
+
}, ql = { class: "mapbox-initial-gl4" }, Kl = { class: "v-btn--variant-elevated rounded" }, Ql = { class: "zoom" };
|
|
71879
|
+
function Jl(o, e, t, i, a, r) {
|
|
71862
71880
|
const s = k("VBtn");
|
|
71863
|
-
return y(), T("div",
|
|
71881
|
+
return y(), T("div", ql, [
|
|
71864
71882
|
e[2] || (e[2] = l("div", { id: "map" }, null, -1)),
|
|
71865
71883
|
l("div", {
|
|
71866
71884
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
71867
|
-
style:
|
|
71885
|
+
style: ae({ top: t.top + 268 + "px", right: a.right + "px" })
|
|
71868
71886
|
}, [
|
|
71869
|
-
l("div",
|
|
71887
|
+
l("div", Kl, [
|
|
71870
71888
|
h(s, {
|
|
71871
71889
|
"min-width": "32",
|
|
71872
71890
|
width: "32",
|
|
@@ -71880,7 +71898,7 @@ function es(o, e, t, i, a, r) {
|
|
|
71880
71898
|
_: 1,
|
|
71881
71899
|
__: [0]
|
|
71882
71900
|
}, 8, ["onClick"]),
|
|
71883
|
-
l("div",
|
|
71901
|
+
l("div", Ql, w(a.zoom), 1),
|
|
71884
71902
|
h(s, {
|
|
71885
71903
|
"min-width": "32",
|
|
71886
71904
|
width: "32",
|
|
@@ -71898,20 +71916,20 @@ function es(o, e, t, i, a, r) {
|
|
|
71898
71916
|
], 4)
|
|
71899
71917
|
]);
|
|
71900
71918
|
}
|
|
71901
|
-
const
|
|
71919
|
+
const $l = /* @__PURE__ */ q(Xl, [["render", Jl]]), hs = {
|
|
71902
71920
|
install(o) {
|
|
71903
|
-
o.component("MapInitial",
|
|
71921
|
+
o.component("MapInitial", $l), o.component("MapboxGL", Yl), o.component("TropicalGL", Bo), o.component("LatLngGL", Oo), o.component("DateTimePicker", io);
|
|
71904
71922
|
}
|
|
71905
71923
|
};
|
|
71906
71924
|
export {
|
|
71907
|
-
|
|
71925
|
+
io as DateTimePicker,
|
|
71908
71926
|
Oo as LatLngGL,
|
|
71909
|
-
|
|
71910
|
-
|
|
71911
|
-
|
|
71912
|
-
|
|
71927
|
+
$l as MapInitial,
|
|
71928
|
+
Yl as MapboxGL,
|
|
71929
|
+
hs as MapboxGLPlugin,
|
|
71930
|
+
ye as ParticleSchema,
|
|
71913
71931
|
Bo as TropicalGL,
|
|
71914
|
-
|
|
71932
|
+
ao as Viewport,
|
|
71915
71933
|
je as WebGL,
|
|
71916
71934
|
se as WebGLSchema
|
|
71917
71935
|
};
|