@idmwx/idmui-gl4 0.6.1 → 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 +452 -428
- package/dist/index.umd.cjs +4 -4
- package/dist/mapbox/src/components/measure/index.vue.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,9 +2,9 @@ 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 eo, createElementVNode as l, vShow as to, toDisplayString as w, normalizeStyle 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
6
|
import ke from "mapbox-gl";
|
|
7
|
-
import { LngLatHelper as
|
|
7
|
+
import { LngLatHelper as oe, TropicalHelper as Ao, LaneHelper as Fe } from "@idm-plugin/geo";
|
|
8
8
|
import * as j from "@turf/turf";
|
|
9
9
|
import { LayerHelper as Jt, CompanyHelper as No } from "@idm-plugin/tag-nop";
|
|
10
10
|
import O from "moment";
|
|
@@ -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
|
},
|
|
@@ -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: {
|
|
@@ -1304,7 +1304,7 @@ const ja = {
|
|
|
1304
1304
|
},
|
|
1305
1305
|
"lngLat.e": {
|
|
1306
1306
|
handler(o) {
|
|
1307
|
-
this.lngLat.lng =
|
|
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
1308
|
},
|
|
1309
1309
|
immediate: !0
|
|
1310
1310
|
}
|
|
@@ -1422,7 +1422,7 @@ function Fa(o, e, t, i, a, r) {
|
|
|
1422
1422
|
var s, c, n;
|
|
1423
1423
|
return y(), T("div", {
|
|
1424
1424
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
1425
|
-
style:
|
|
1425
|
+
style: ae({ right: a.right + "px" })
|
|
1426
1426
|
}, [
|
|
1427
1427
|
l("div", null, w((s = a.lngLat) == null ? void 0 : s.lat), 1),
|
|
1428
1428
|
l("div", null, w((c = a.lngLat) == null ? void 0 : c.lng), 1),
|
|
@@ -1443,7 +1443,7 @@ const Na = {
|
|
|
1443
1443
|
IdmVRA: _a,
|
|
1444
1444
|
IdmSpecialArea: La,
|
|
1445
1445
|
IdmTerminator: Sa,
|
|
1446
|
-
IdmWorld12nm:
|
|
1446
|
+
IdmWorld12nm: Ia,
|
|
1447
1447
|
IdmWorldMarine: Da,
|
|
1448
1448
|
IdmChinaRoute: Ea,
|
|
1449
1449
|
IdmLatLng: Oo
|
|
@@ -1601,9 +1601,9 @@ const Na = {
|
|
|
1601
1601
|
})
|
|
1602
1602
|
);
|
|
1603
1603
|
(await Promise.all(p)).map((m) => {
|
|
1604
|
-
var b, S,
|
|
1605
|
-
const f = ((b = m == null ? void 0 : m.data) == null ? void 0 : b.data) || (m == null ? void 0 : m.data),
|
|
1606
|
-
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;
|
|
1607
1607
|
});
|
|
1608
1608
|
}
|
|
1609
1609
|
} else if (o.dayNight && e & 1024) {
|
|
@@ -1624,9 +1624,9 @@ const Na = {
|
|
|
1624
1624
|
})
|
|
1625
1625
|
);
|
|
1626
1626
|
(await Promise.all(p)).map((m) => {
|
|
1627
|
-
var b, S,
|
|
1628
|
-
const f = ((b = m == null ? void 0 : m.data) == null ? void 0 : b.data) || (m == null ? void 0 : m.data),
|
|
1629
|
-
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;
|
|
1630
1630
|
});
|
|
1631
1631
|
}
|
|
1632
1632
|
}
|
|
@@ -1658,18 +1658,18 @@ const Na = {
|
|
|
1658
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" };
|
|
1659
1659
|
function oi(o, e, t, i, a, r) {
|
|
1660
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"),
|
|
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");
|
|
1662
1662
|
return y(), T("div", Ha, [
|
|
1663
1663
|
l("div", {
|
|
1664
1664
|
class: "menu-bar-box transition px-1 rounded",
|
|
1665
|
-
style:
|
|
1665
|
+
style: ae({ top: t.top + 10 + "px", right: a.right + "px" })
|
|
1666
1666
|
}, [
|
|
1667
1667
|
h(c, {
|
|
1668
1668
|
text: o.$t("layer.mapLayers"),
|
|
1669
1669
|
location: "left"
|
|
1670
1670
|
}, {
|
|
1671
|
-
activator: g(({ props:
|
|
1672
|
-
h(s, E(
|
|
1671
|
+
activator: g(({ props: R }) => [
|
|
1672
|
+
h(s, E(R, {
|
|
1673
1673
|
"min-width": "32",
|
|
1674
1674
|
width: "32",
|
|
1675
1675
|
height: "32",
|
|
@@ -1688,7 +1688,7 @@ function oi(o, e, t, i, a, r) {
|
|
|
1688
1688
|
], 4),
|
|
1689
1689
|
l("div", {
|
|
1690
1690
|
class: Ne(["available-layers transition", a.toggle ? "right-bar" : ""]),
|
|
1691
|
-
style:
|
|
1691
|
+
style: ae({ top: t.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
1692
1692
|
}, [
|
|
1693
1693
|
l("div", Wa, [
|
|
1694
1694
|
l("div", Ga, w(o.$t("layer.layers")), 1),
|
|
@@ -1732,26 +1732,26 @@ function oi(o, e, t, i, a, r) {
|
|
|
1732
1732
|
h(m, null, {
|
|
1733
1733
|
default: g(() => [
|
|
1734
1734
|
l("div", Va, [
|
|
1735
|
-
(y(!0), T(_e, null, Le(a.mapFeathers, (
|
|
1736
|
-
key:
|
|
1735
|
+
(y(!0), T(_e, null, Le(a.mapFeathers, (R) => (y(), T("div", {
|
|
1736
|
+
key: R.value,
|
|
1737
1737
|
class: "mb-2 feather-item",
|
|
1738
|
-
onClick: (le) => r.handleToggleMapFeather(
|
|
1738
|
+
onClick: (le) => r.handleToggleMapFeather(R)
|
|
1739
1739
|
}, [
|
|
1740
1740
|
l("div", {
|
|
1741
|
-
class: Ne([a.mapFeather ===
|
|
1741
|
+
class: Ne([a.mapFeather === R.value ? "active" : "", "img-box"])
|
|
1742
1742
|
}, [
|
|
1743
|
-
|
|
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))
|
|
1744
1744
|
], 2),
|
|
1745
|
-
l("div", Qa, w(o.$t(`layer.${
|
|
1745
|
+
l("div", Qa, w(o.$t(`layer.${R.locale}`)), 1)
|
|
1746
1746
|
], 8, Ya))), 128))
|
|
1747
1747
|
]),
|
|
1748
1748
|
l("div", Ja, [
|
|
1749
|
-
(y(!0), T(_e, null, Le(a.tagLayers.filter((
|
|
1750
|
-
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,
|
|
1751
1751
|
modelValue: a.checkList,
|
|
1752
1752
|
"onUpdate:modelValue": e[0] || (e[0] = (le) => a.checkList = le),
|
|
1753
|
-
value:
|
|
1754
|
-
label: o.$t(`layer.${
|
|
1753
|
+
value: R.key,
|
|
1754
|
+
label: o.$t(`layer.${R.locale}`),
|
|
1755
1755
|
color: "primary",
|
|
1756
1756
|
density: "compact",
|
|
1757
1757
|
style: { height: "36px" },
|
|
@@ -1787,12 +1787,12 @@ function oi(o, e, t, i, a, r) {
|
|
|
1787
1787
|
h(m, null, {
|
|
1788
1788
|
default: g(() => [
|
|
1789
1789
|
l("div", $a, [
|
|
1790
|
-
(y(!0), T(_e, null, Le(a.tagLayers.filter((
|
|
1791
|
-
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,
|
|
1792
1792
|
modelValue: a.checkList,
|
|
1793
1793
|
"onUpdate:modelValue": e[1] || (e[1] = (le) => a.checkList = le),
|
|
1794
|
-
value:
|
|
1795
|
-
label: o.$t(`layer.${
|
|
1794
|
+
value: R.key,
|
|
1795
|
+
label: o.$t(`layer.${R.locale}`),
|
|
1796
1796
|
color: "primary",
|
|
1797
1797
|
density: "compact",
|
|
1798
1798
|
style: { height: "36px" },
|
|
@@ -1828,12 +1828,12 @@ function oi(o, e, t, i, a, r) {
|
|
|
1828
1828
|
h(m, null, {
|
|
1829
1829
|
default: g(() => [
|
|
1830
1830
|
l("div", ei, [
|
|
1831
|
-
(y(!0), T(_e, null, Le(a.tagLayers.filter((
|
|
1832
|
-
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,
|
|
1833
1833
|
modelValue: a.checkList,
|
|
1834
1834
|
"onUpdate:modelValue": e[2] || (e[2] = (le) => a.checkList = le),
|
|
1835
|
-
value:
|
|
1836
|
-
label: o.$t(`layer.${
|
|
1835
|
+
value: R.key,
|
|
1836
|
+
label: o.$t(`layer.${R.locale}`),
|
|
1837
1837
|
color: "primary",
|
|
1838
1838
|
density: "compact",
|
|
1839
1839
|
style: { height: "36px" },
|
|
@@ -1871,7 +1871,7 @@ function oi(o, e, t, i, a, r) {
|
|
|
1871
1871
|
l("div", ti, [
|
|
1872
1872
|
h(d, {
|
|
1873
1873
|
modelValue: a.followList,
|
|
1874
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
1874
|
+
"onUpdate:modelValue": e[3] || (e[3] = (R) => a.followList = R),
|
|
1875
1875
|
value: "ports",
|
|
1876
1876
|
label: o.$t("layer.ports"),
|
|
1877
1877
|
color: "primary",
|
|
@@ -1882,7 +1882,7 @@ function oi(o, e, t, i, a, r) {
|
|
|
1882
1882
|
}, null, 8, ["modelValue", "label"]),
|
|
1883
1883
|
h(d, {
|
|
1884
1884
|
modelValue: a.followList,
|
|
1885
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
1885
|
+
"onUpdate:modelValue": e[4] || (e[4] = (R) => a.followList = R),
|
|
1886
1886
|
value: "locations",
|
|
1887
1887
|
label: o.$t("layer.locations"),
|
|
1888
1888
|
color: "primary",
|
|
@@ -1900,7 +1900,7 @@ function oi(o, e, t, i, a, r) {
|
|
|
1900
1900
|
})
|
|
1901
1901
|
])
|
|
1902
1902
|
], 6),
|
|
1903
|
-
t.map ? (y(), U(
|
|
1903
|
+
t.map ? (y(), U(v, E({
|
|
1904
1904
|
key: 0,
|
|
1905
1905
|
map: t.map,
|
|
1906
1906
|
token: t.token,
|
|
@@ -1918,7 +1918,7 @@ function oi(o, e, t, i, a, r) {
|
|
|
1918
1918
|
token: t.token,
|
|
1919
1919
|
show: a.checkList.includes("chinaRoute")
|
|
1920
1920
|
}, o.$attrs), null, 16, ["map", "token", "show"])) : F("", !0),
|
|
1921
|
-
t.map ? (y(), U(
|
|
1921
|
+
t.map ? (y(), U(L, E({
|
|
1922
1922
|
key: 3,
|
|
1923
1923
|
map: t.map,
|
|
1924
1924
|
zone: (V = a.otherLayers) == null ? void 0 : V["war-zones"]
|
|
@@ -1933,13 +1933,13 @@ function oi(o, e, t, i, a, r) {
|
|
|
1933
1933
|
map: t.map,
|
|
1934
1934
|
zone: ($ = a.otherLayers) == null ? void 0 : $["eca-zones"]
|
|
1935
1935
|
}, o.$attrs), null, 16, ["map", "zone"])) : F("", !0),
|
|
1936
|
-
t.map ? (y(), U(
|
|
1936
|
+
t.map ? (y(), U(P, E({
|
|
1937
1937
|
key: 6,
|
|
1938
1938
|
map: t.map,
|
|
1939
1939
|
zone: (ee = a.otherLayers) == null ? void 0 : ee["alert-zones"],
|
|
1940
1940
|
"before-layer": "empty-layer-3"
|
|
1941
1941
|
}, o.$attrs), null, 16, ["map", "zone"])) : F("", !0),
|
|
1942
|
-
t.map ? (y(), U(
|
|
1942
|
+
t.map ? (y(), U(_, E({
|
|
1943
1943
|
key: 7,
|
|
1944
1944
|
map: t.map,
|
|
1945
1945
|
port: (Q = a.otherLayers) == null ? void 0 : Q.ports,
|
|
@@ -1950,7 +1950,7 @@ function oi(o, e, t, i, a, r) {
|
|
|
1950
1950
|
map: t.map,
|
|
1951
1951
|
line: (ne = a.otherLayers) == null ? void 0 : ne["load-lines"]
|
|
1952
1952
|
}, o.$attrs), null, 16, ["map", "line"])) : F("", !0),
|
|
1953
|
-
t.map ? (y(), U(
|
|
1953
|
+
t.map ? (y(), U(C, E({
|
|
1954
1954
|
key: 9,
|
|
1955
1955
|
map: t.map,
|
|
1956
1956
|
zone: (he = a.otherLayers) == null ? void 0 : he["time-zones"]
|
|
@@ -1960,7 +1960,7 @@ function oi(o, e, t, i, a, r) {
|
|
|
1960
1960
|
map: t.map,
|
|
1961
1961
|
area: (de = a.otherLayers) == null ? void 0 : de["voluntary-reporting-area"]
|
|
1962
1962
|
}, o.$attrs), null, 16, ["map", "area"])) : F("", !0),
|
|
1963
|
-
t.map ? (y(), U(
|
|
1963
|
+
t.map ? (y(), U(I, E({
|
|
1964
1964
|
key: 11,
|
|
1965
1965
|
map: t.map,
|
|
1966
1966
|
area: (ce = a.otherLayers) == null ? void 0 : ce["special-area"]
|
|
@@ -2029,8 +2029,8 @@ class ao {
|
|
|
2029
2029
|
const e = (b = this.map) == null ? void 0 : b.getBounds();
|
|
2030
2030
|
if (!e)
|
|
2031
2031
|
return [];
|
|
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),
|
|
2033
|
-
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];
|
|
2034
2034
|
}
|
|
2035
2035
|
/**
|
|
2036
2036
|
* [视窗边界像素宽度]
|
|
@@ -2213,10 +2213,10 @@ class je {
|
|
|
2213
2213
|
sRange: t.getUniformLocation(i, "u_range_s")
|
|
2214
2214
|
};
|
|
2215
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);
|
|
2216
|
-
const m = e.getBoundPixel(), f = e.map.getZoom() + 1,
|
|
2217
|
-
for (const b of
|
|
2218
|
-
const S = (b[0] - m[0]) * e.ratio,
|
|
2219
|
-
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);
|
|
2220
2220
|
}
|
|
2221
2221
|
} catch (d) {
|
|
2222
2222
|
console.log(`render failed...${d}`);
|
|
@@ -2778,7 +2778,7 @@ function ci(o, e, t, i, a, r) {
|
|
|
2778
2778
|
return (s = t.factor) != null && s.active ? (y(), T("div", ni, [
|
|
2779
2779
|
l("div", {
|
|
2780
2780
|
class: "legend-bars-gl4 wind",
|
|
2781
|
-
style:
|
|
2781
|
+
style: ae({ right: a.right + "px" })
|
|
2782
2782
|
}, e[0] || (e[0] = [
|
|
2783
2783
|
l("span", null, "kts", -1),
|
|
2784
2784
|
l("span", null, "0", -1),
|
|
@@ -3130,7 +3130,7 @@ function fi(o, e, t, i, a, r) {
|
|
|
3130
3130
|
return (s = t.factor) != null && s.active ? (y(), T("div", gi, [
|
|
3131
3131
|
l("div", {
|
|
3132
3132
|
class: "legend-bars-gl4 current",
|
|
3133
|
-
style:
|
|
3133
|
+
style: ae({ right: a.right + "px" })
|
|
3134
3134
|
}, e[0] || (e[0] = [
|
|
3135
3135
|
l("span", null, "kts", -1),
|
|
3136
3136
|
l("span", null, "0", -1),
|
|
@@ -3258,7 +3258,7 @@ function xi(o, e, t, i, a, r) {
|
|
|
3258
3258
|
return (s = t.factor) != null && s.active ? (y(), T("div", wi, [
|
|
3259
3259
|
l("div", {
|
|
3260
3260
|
class: "legend-bars-gl4 sig-wave",
|
|
3261
|
-
style:
|
|
3261
|
+
style: ae({ right: a.right + "px" })
|
|
3262
3262
|
}, e[0] || (e[0] = [
|
|
3263
3263
|
l("span", null, "m", -1),
|
|
3264
3264
|
l("span", null, "0.5", -1),
|
|
@@ -3691,7 +3691,7 @@ function Ti(o, e, t, i, a, r) {
|
|
|
3691
3691
|
return (n = t.prmsl) != null && n.active ? (y(), T("div", Mi, [
|
|
3692
3692
|
l("div", {
|
|
3693
3693
|
class: "menu-bar-box pa-1 rounded",
|
|
3694
|
-
style:
|
|
3694
|
+
style: ae({ right: a.right + "px" })
|
|
3695
3695
|
}, [
|
|
3696
3696
|
h(c, {
|
|
3697
3697
|
text: "Map Layers",
|
|
@@ -3718,8 +3718,8 @@ function Ti(o, e, t, i, a, r) {
|
|
|
3718
3718
|
], 4)
|
|
3719
3719
|
])) : F("", !0);
|
|
3720
3720
|
}
|
|
3721
|
-
const
|
|
3722
|
-
const
|
|
3721
|
+
const Ii = /* @__PURE__ */ q(Si, [["render", Ti]]);
|
|
3722
|
+
const Ri = {
|
|
3723
3723
|
name: "IdmIceEdge",
|
|
3724
3724
|
props: {
|
|
3725
3725
|
factor: {
|
|
@@ -3826,7 +3826,7 @@ function Di(o, e, t, i, a, r) {
|
|
|
3826
3826
|
return (s = t.factor) != null && s.active ? (y(), T("div", Ai, [
|
|
3827
3827
|
l("div", {
|
|
3828
3828
|
class: "legend-bars-gl4 ice-edge",
|
|
3829
|
-
style:
|
|
3829
|
+
style: ae({ right: a.right + "px" })
|
|
3830
3830
|
}, e[0] || (e[0] = [
|
|
3831
3831
|
l("span", { style: { color: "rgba(var(--v-theme-black), 0.7)" } }, "%", -1),
|
|
3832
3832
|
l("span", null, null, -1),
|
|
@@ -3843,7 +3843,7 @@ function Di(o, e, t, i, a, r) {
|
|
|
3843
3843
|
]), 4)
|
|
3844
3844
|
])) : F("", !0);
|
|
3845
3845
|
}
|
|
3846
|
-
const Oi = /* @__PURE__ */ q(
|
|
3846
|
+
const Oi = /* @__PURE__ */ q(Ri, [["render", Di]]);
|
|
3847
3847
|
const Bi = {
|
|
3848
3848
|
name: "IdmCover",
|
|
3849
3849
|
props: {
|
|
@@ -3942,7 +3942,7 @@ function ji(o, e, t, i, a, r) {
|
|
|
3942
3942
|
return (s = t.factor) != null && s.active ? (y(), T("div", Ei, [
|
|
3943
3943
|
l("div", {
|
|
3944
3944
|
class: "legend-bars-gl4 ice-cover",
|
|
3945
|
-
style:
|
|
3945
|
+
style: ae({ right: a.right + "px" })
|
|
3946
3946
|
}, e[0] || (e[0] = [
|
|
3947
3947
|
l("span", null, "%", -1),
|
|
3948
3948
|
l("span", null, "20", -1),
|
|
@@ -4060,7 +4060,7 @@ function Wi(o, e, t, i, a, r) {
|
|
|
4060
4060
|
return (s = t.factor) != null && s.active ? (y(), T("div", Hi, [
|
|
4061
4061
|
l("div", {
|
|
4062
4062
|
class: "legend-bars-gl4 ice-thickness",
|
|
4063
|
-
style:
|
|
4063
|
+
style: ae({ right: a.right + "px" })
|
|
4064
4064
|
}, e[0] || (e[0] = [
|
|
4065
4065
|
l("span", null, "m", -1),
|
|
4066
4066
|
l("span", null, "0", -1),
|
|
@@ -4180,7 +4180,7 @@ function Yi(o, e, t, i, a, r) {
|
|
|
4180
4180
|
return (s = t.factor) != null && s.active ? (y(), T("div", Vi, [
|
|
4181
4181
|
l("div", {
|
|
4182
4182
|
class: "legend-bars-gl4 precip3h",
|
|
4183
|
-
style:
|
|
4183
|
+
style: ae({ right: a.right + "px" })
|
|
4184
4184
|
}, e[0] || (e[0] = [
|
|
4185
4185
|
l("span", null, "mm", -1),
|
|
4186
4186
|
l("span", null, "1.5", -1),
|
|
@@ -4291,7 +4291,7 @@ function Ki(o, e, t, i, a, r) {
|
|
|
4291
4291
|
return (s = t.factor) != null && s.active ? (y(), T("div", qi, [
|
|
4292
4292
|
l("div", {
|
|
4293
4293
|
class: "legend-bars-gl4 visibility",
|
|
4294
|
-
style:
|
|
4294
|
+
style: ae({ right: a.right + "px" })
|
|
4295
4295
|
}, e[0] || (e[0] = [
|
|
4296
4296
|
l("span", null, "nm", -1),
|
|
4297
4297
|
l("span", null, "0", -1),
|
|
@@ -4403,7 +4403,7 @@ function er(o, e, t, i, a, r) {
|
|
|
4403
4403
|
return (s = t.factor) != null && s.active ? (y(), T("div", $i, [
|
|
4404
4404
|
l("div", {
|
|
4405
4405
|
class: "legend-bars-gl4 water-temp",
|
|
4406
|
-
style:
|
|
4406
|
+
style: ae({ right: a.right + "px" })
|
|
4407
4407
|
}, e[0] || (e[0] = [
|
|
4408
4408
|
l("span", null, "°C", -1),
|
|
4409
4409
|
l("span", null, "0", -1),
|
|
@@ -4526,7 +4526,7 @@ function ir(o, e, t, i, a, r) {
|
|
|
4526
4526
|
return (s = t.factor) != null && s.active ? (y(), T("div", ar, [
|
|
4527
4527
|
l("div", {
|
|
4528
4528
|
class: "legend-bars-gl4 temp",
|
|
4529
|
-
style:
|
|
4529
|
+
style: ae({ right: a.right + "px" })
|
|
4530
4530
|
}, e[0] || (e[0] = [
|
|
4531
4531
|
l("span", null, "°C", -1),
|
|
4532
4532
|
l("span", null, "-20", -1),
|
|
@@ -4550,7 +4550,7 @@ const lr = {
|
|
|
4550
4550
|
IdmWave: vi,
|
|
4551
4551
|
IdmSigWaveHeight: zi,
|
|
4552
4552
|
IdmSwell: Ci,
|
|
4553
|
-
IdmPrmsl:
|
|
4553
|
+
IdmPrmsl: Ii,
|
|
4554
4554
|
IdmIceEdge: Oi,
|
|
4555
4555
|
IdmIceCover: Fi,
|
|
4556
4556
|
IdmIceThickness: Gi,
|
|
@@ -4802,19 +4802,19 @@ const lr = {
|
|
|
4802
4802
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
4803
4803
|
let t = 0, i = 0;
|
|
4804
4804
|
if (this.map) {
|
|
4805
|
-
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}`;
|
|
4806
4806
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
4807
|
-
const
|
|
4807
|
+
const L = Jt.WEATHER_LAYERS.find((B) => {
|
|
4808
4808
|
var M;
|
|
4809
4809
|
return ((M = B.peer) == null ? void 0 : M.weight) === this.particleFactor.weight;
|
|
4810
4810
|
});
|
|
4811
|
-
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;
|
|
4812
4812
|
}
|
|
4813
4813
|
if (this.weatherWeight > 0) {
|
|
4814
|
-
let
|
|
4815
|
-
if (
|
|
4814
|
+
let L = this.weatherWeight;
|
|
4815
|
+
if (L > 0) {
|
|
4816
4816
|
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], M = await Be.get(
|
|
4817
|
-
`${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}`,
|
|
4818
4818
|
{
|
|
4819
4819
|
headers: {
|
|
4820
4820
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -4822,46 +4822,46 @@ const lr = {
|
|
|
4822
4822
|
}
|
|
4823
4823
|
);
|
|
4824
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) {
|
|
4825
|
-
const
|
|
4826
|
-
for (const
|
|
4827
|
-
|
|
4828
|
-
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], {
|
|
4829
4829
|
headers: {
|
|
4830
4830
|
Authorization: this.token || this.defaultMeteoToken,
|
|
4831
|
-
key:
|
|
4831
|
+
key: C
|
|
4832
4832
|
},
|
|
4833
|
-
responseType: /\.(jpg|png)$/.test(
|
|
4833
|
+
responseType: /\.(jpg|png)$/.test(P[C]) ? "blob" : "json"
|
|
4834
4834
|
}).catch((x) => {
|
|
4835
|
-
console.log(`[${
|
|
4835
|
+
console.log(`[${C}] fetch layer error: ${x}`);
|
|
4836
4836
|
})
|
|
4837
4837
|
);
|
|
4838
|
-
const z = await Promise.all(
|
|
4839
|
-
this.weatherLayers = {}, z.map((
|
|
4838
|
+
const z = await Promise.all(_);
|
|
4839
|
+
this.weatherLayers = {}, z.map((C) => {
|
|
4840
4840
|
var W, X, V, Y;
|
|
4841
|
-
const x = ((W =
|
|
4842
|
-
let
|
|
4843
|
-
|
|
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
4844
|
raw: x,
|
|
4845
|
-
type: ((Y =
|
|
4845
|
+
type: ((Y = C == null ? void 0 : C.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
|
|
4846
4846
|
etime: M.data.etime
|
|
4847
4847
|
});
|
|
4848
4848
|
});
|
|
4849
4849
|
}
|
|
4850
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"]) {
|
|
4851
|
-
const
|
|
4851
|
+
const P = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, _ = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
4852
4852
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
4853
4853
|
type: "json",
|
|
4854
|
-
direction:
|
|
4855
|
-
height: { raw:
|
|
4854
|
+
direction: P,
|
|
4855
|
+
height: { raw: _ },
|
|
4856
4856
|
etime: M.data.etime
|
|
4857
4857
|
};
|
|
4858
4858
|
}
|
|
4859
4859
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
4860
|
-
const
|
|
4860
|
+
const P = (m = this.weatherLayers["current-direction"]) == null ? void 0 : m.raw, _ = (f = this.weatherLayers["current-speed"]) == null ? void 0 : f.raw;
|
|
4861
4861
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
4862
4862
|
type: "json",
|
|
4863
|
-
direction:
|
|
4864
|
-
speed: { raw:
|
|
4863
|
+
direction: P,
|
|
4864
|
+
speed: { raw: _ },
|
|
4865
4865
|
etime: M.data.etime
|
|
4866
4866
|
};
|
|
4867
4867
|
}
|
|
@@ -4924,244 +4924,244 @@ const lr = {
|
|
|
4924
4924
|
);
|
|
4925
4925
|
},
|
|
4926
4926
|
handleDrawWeather4Json() {
|
|
4927
|
-
var p, d, m, f,
|
|
4927
|
+
var p, d, m, f, v, b, S;
|
|
4928
4928
|
const o = (/* @__PURE__ */ new Date()).valueOf();
|
|
4929
4929
|
let e = 0, t = 0;
|
|
4930
|
-
const i = (p = this.map) == null ? void 0 : p.getBounds(), a = (d = this.map) == null ? void 0 : d.getZoom(), r =
|
|
4931
|
-
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) {
|
|
4932
4932
|
let B = !1;
|
|
4933
|
-
if (this.weatherLayers[
|
|
4933
|
+
if (this.weatherLayers[L].active && this.weatherLayers[L].type === "json") {
|
|
4934
4934
|
let M = [];
|
|
4935
|
-
if (
|
|
4935
|
+
if (L === "swell") {
|
|
4936
4936
|
B = !0;
|
|
4937
|
-
const
|
|
4938
|
-
for (const z in
|
|
4937
|
+
const P = ((m = this.weatherLayers[L]) == null ? void 0 : m.direction) || {};
|
|
4938
|
+
for (const z in P)
|
|
4939
4939
|
if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
4940
|
-
const
|
|
4941
|
-
r > s ?
|
|
4940
|
+
const C = P[z].lng;
|
|
4941
|
+
r > s ? C.forEach((x, I) => {
|
|
4942
4942
|
var W, X, V, Y, $, ee;
|
|
4943
4943
|
if (a < 2) {
|
|
4944
4944
|
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
4945
4945
|
const Q = j.point([x, z], {
|
|
4946
|
-
val: ((W =
|
|
4947
|
-
spd: (V =
|
|
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]
|
|
4948
4948
|
});
|
|
4949
4949
|
M.push(Q);
|
|
4950
4950
|
}
|
|
4951
4951
|
} else if ((x >= r && x <= 180 || x >= -180 && x <= s) && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
4952
4952
|
const Q = j.point([x, z], {
|
|
4953
|
-
val: ((Y =
|
|
4954
|
-
spd: (ee =
|
|
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]
|
|
4955
4955
|
});
|
|
4956
4956
|
M.push(Q);
|
|
4957
4957
|
}
|
|
4958
|
-
}) :
|
|
4958
|
+
}) : C.forEach((x, I) => {
|
|
4959
4959
|
var W, X, V, Y, $, ee;
|
|
4960
4960
|
if (r < 2) {
|
|
4961
4961
|
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
4962
4962
|
const Q = j.point([x, z], {
|
|
4963
|
-
val: ((W =
|
|
4964
|
-
spd: (V =
|
|
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]
|
|
4965
4965
|
});
|
|
4966
4966
|
M.push(Q);
|
|
4967
4967
|
}
|
|
4968
4968
|
} else if (x >= r && x <= s && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
4969
4969
|
const Q = j.point([x, z], {
|
|
4970
|
-
val: ((Y =
|
|
4971
|
-
spd: (ee =
|
|
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]
|
|
4972
4972
|
});
|
|
4973
4973
|
M.push(Q);
|
|
4974
4974
|
}
|
|
4975
4975
|
});
|
|
4976
4976
|
}
|
|
4977
4977
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("swell direction elapsed: ", t, ", total: ", e += t);
|
|
4978
|
-
const
|
|
4979
|
-
if (
|
|
4980
|
-
if (!
|
|
4978
|
+
const _ = this.weatherLayers[L].height;
|
|
4979
|
+
if (_) {
|
|
4980
|
+
if (!_.data) {
|
|
4981
4981
|
const z = [];
|
|
4982
|
-
for (const
|
|
4983
|
-
const x =
|
|
4984
|
-
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)
|
|
4985
4985
|
z.push(
|
|
4986
|
-
j.lineString(
|
|
4987
|
-
val: Number(
|
|
4986
|
+
j.lineString(I, {
|
|
4987
|
+
val: Number(C)
|
|
4988
4988
|
})
|
|
4989
4989
|
);
|
|
4990
|
-
|
|
4990
|
+
_.data = j.featureCollection(z);
|
|
4991
4991
|
}
|
|
4992
4992
|
}
|
|
4993
|
-
if (
|
|
4994
|
-
const z = this.handleBboxClip(
|
|
4993
|
+
if (_.data) {
|
|
4994
|
+
const z = this.handleBboxClip(_.data, i);
|
|
4995
4995
|
M = M.concat(z);
|
|
4996
4996
|
}
|
|
4997
4997
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
|
|
4998
4998
|
}
|
|
4999
|
-
} else if (
|
|
4999
|
+
} else if (L === "current") {
|
|
5000
5000
|
B = !0;
|
|
5001
|
-
const
|
|
5002
|
-
for (const z in
|
|
5001
|
+
const P = ((v = this.weatherLayers[L]) == null ? void 0 : v.direction) || {};
|
|
5002
|
+
for (const z in P)
|
|
5003
5003
|
if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5004
|
-
const
|
|
5005
|
-
r > s ?
|
|
5004
|
+
const C = P[z].lng;
|
|
5005
|
+
r > s ? C.forEach((x, I) => {
|
|
5006
5006
|
var W, X, V, Y, $, ee;
|
|
5007
5007
|
if (a < 2) {
|
|
5008
5008
|
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
5009
5009
|
const Q = j.point([x, z], {
|
|
5010
|
-
val: ((W =
|
|
5011
|
-
spd: (V =
|
|
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]
|
|
5012
5012
|
});
|
|
5013
5013
|
M.push(Q);
|
|
5014
5014
|
}
|
|
5015
5015
|
} else if ((x >= r && x <= 180 || x >= -180 && x <= s) && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5016
5016
|
const Q = j.point([x, z], {
|
|
5017
|
-
val: ((Y =
|
|
5018
|
-
spd: (ee =
|
|
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]
|
|
5019
5019
|
});
|
|
5020
5020
|
M.push(Q);
|
|
5021
5021
|
}
|
|
5022
|
-
}) :
|
|
5022
|
+
}) : C.forEach((x, I) => {
|
|
5023
5023
|
var W, X, V, Y, $, ee;
|
|
5024
5024
|
if (r < 2) {
|
|
5025
5025
|
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
5026
5026
|
const Q = j.point([x, z], {
|
|
5027
|
-
val: ((W =
|
|
5028
|
-
spd: (V =
|
|
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]
|
|
5029
5029
|
});
|
|
5030
5030
|
M.push(Q);
|
|
5031
5031
|
}
|
|
5032
5032
|
} else if (x >= r && x <= s && (!(a <= this.zoom) || x % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5033
5033
|
const Q = j.point([x, z], {
|
|
5034
|
-
val: ((Y =
|
|
5035
|
-
spd: (ee =
|
|
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]
|
|
5036
5036
|
});
|
|
5037
5037
|
M.push(Q);
|
|
5038
5038
|
}
|
|
5039
5039
|
});
|
|
5040
5040
|
}
|
|
5041
5041
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("current direction elapsed: ", t, ", total: ", e += t);
|
|
5042
|
-
const
|
|
5043
|
-
if (
|
|
5044
|
-
if (!
|
|
5045
|
-
const
|
|
5046
|
-
for (const x in (b =
|
|
5047
|
-
const
|
|
5048
|
-
for (const W of
|
|
5049
|
-
|
|
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
5050
|
j.polygon(W, {
|
|
5051
5051
|
val: Number(x)
|
|
5052
5052
|
})
|
|
5053
5053
|
);
|
|
5054
5054
|
}
|
|
5055
|
-
|
|
5055
|
+
_.data = j.featureCollection(C);
|
|
5056
5056
|
}
|
|
5057
|
-
const z = a < this.zoom ?
|
|
5057
|
+
const z = a < this.zoom ? _.data.features.filter((C) => C.properties.val > 0.5) : _.data.features;
|
|
5058
5058
|
M = M.concat(z), t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
|
|
5059
5059
|
}
|
|
5060
|
-
} else if (
|
|
5060
|
+
} else if (L === "wind") {
|
|
5061
5061
|
B = !0;
|
|
5062
|
-
const
|
|
5063
|
-
for (const
|
|
5064
|
-
if (
|
|
5065
|
-
const z =
|
|
5066
|
-
r > s ? z.forEach((
|
|
5067
|
-
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;
|
|
5068
5068
|
if (a < 2) {
|
|
5069
|
-
if ((
|
|
5070
|
-
const Y = j.point([
|
|
5071
|
-
dir: ((
|
|
5072
|
-
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]
|
|
5073
5073
|
});
|
|
5074
5074
|
M.push(Y);
|
|
5075
5075
|
}
|
|
5076
|
-
} else if ((
|
|
5077
|
-
const Y = j.point([
|
|
5078
|
-
dir: ((X =
|
|
5079
|
-
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]
|
|
5080
5080
|
});
|
|
5081
5081
|
M.push(Y);
|
|
5082
5082
|
}
|
|
5083
|
-
}) : z.forEach((
|
|
5084
|
-
var
|
|
5083
|
+
}) : z.forEach((C, x) => {
|
|
5084
|
+
var I, W, X, V;
|
|
5085
5085
|
if (a < 2) {
|
|
5086
|
-
if ((
|
|
5087
|
-
const Y = j.point([
|
|
5088
|
-
dir: ((
|
|
5089
|
-
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]
|
|
5090
5090
|
});
|
|
5091
5091
|
M.push(Y);
|
|
5092
5092
|
}
|
|
5093
|
-
} else if (
|
|
5094
|
-
const Y = j.point([
|
|
5095
|
-
dir: ((X =
|
|
5096
|
-
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]
|
|
5097
5097
|
});
|
|
5098
5098
|
M.push(Y);
|
|
5099
5099
|
}
|
|
5100
5100
|
});
|
|
5101
5101
|
}
|
|
5102
5102
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
|
|
5103
|
-
} else if (
|
|
5104
|
-
if (this.weatherLayers[
|
|
5105
|
-
M = this.weatherLayers[
|
|
5103
|
+
} else if (L === "sig-wave-height") {
|
|
5104
|
+
if (this.weatherLayers[L].data)
|
|
5105
|
+
M = this.weatherLayers[L].data;
|
|
5106
5106
|
else {
|
|
5107
5107
|
B = !0;
|
|
5108
|
-
const
|
|
5109
|
-
if (
|
|
5110
|
-
const
|
|
5111
|
-
for (const z in
|
|
5112
|
-
const
|
|
5113
|
-
for (const x of
|
|
5114
|
-
|
|
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
5115
|
j.polygon(x, {
|
|
5116
5116
|
val: Number(z)
|
|
5117
5117
|
})
|
|
5118
5118
|
);
|
|
5119
5119
|
}
|
|
5120
|
-
for (const z in
|
|
5121
|
-
const
|
|
5122
|
-
for (let x = 0; x < ((S =
|
|
5123
|
-
|
|
5124
|
-
j.point([
|
|
5125
|
-
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])
|
|
5126
5126
|
})
|
|
5127
5127
|
);
|
|
5128
5128
|
}
|
|
5129
|
-
M = M.concat(
|
|
5129
|
+
M = M.concat(_);
|
|
5130
5130
|
}
|
|
5131
5131
|
}
|
|
5132
5132
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("sig-wave-height elapsed: ", t, ", total: ", e += t);
|
|
5133
|
-
} else if (
|
|
5134
|
-
if (this.weatherLayers[
|
|
5135
|
-
M = this.weatherLayers[
|
|
5133
|
+
} else if (L === "prmsl") {
|
|
5134
|
+
if (this.weatherLayers[L].data)
|
|
5135
|
+
M = this.weatherLayers[L].data;
|
|
5136
5136
|
else {
|
|
5137
5137
|
B = !0;
|
|
5138
|
-
const
|
|
5139
|
-
if (
|
|
5140
|
-
const
|
|
5141
|
-
for (const z in
|
|
5142
|
-
const
|
|
5143
|
-
for (const x of
|
|
5144
|
-
|
|
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
5145
|
j.lineString(x, {
|
|
5146
5146
|
val: Number(z)
|
|
5147
5147
|
})
|
|
5148
5148
|
);
|
|
5149
5149
|
}
|
|
5150
|
-
for (const z in
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
j.point([
|
|
5154
|
-
val:
|
|
5155
|
-
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]
|
|
5156
5156
|
})
|
|
5157
5157
|
);
|
|
5158
5158
|
});
|
|
5159
|
-
M = M.concat(
|
|
5159
|
+
M = M.concat(_);
|
|
5160
5160
|
}
|
|
5161
5161
|
}
|
|
5162
5162
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
5163
5163
|
}
|
|
5164
|
-
M.length && (this.weatherLayers[
|
|
5164
|
+
M.length && (this.weatherLayers[L].data = j.featureCollection(M)), B && (this.weatherLayers[L].version = Math.random() + 1);
|
|
5165
5165
|
}
|
|
5166
5166
|
}
|
|
5167
5167
|
},
|
|
@@ -5171,7 +5171,7 @@ const lr = {
|
|
|
5171
5171
|
this.handleDrawWeather4Json();
|
|
5172
5172
|
},
|
|
5173
5173
|
handleBboxClip(o, e) {
|
|
5174
|
-
const t = [], i =
|
|
5174
|
+
const t = [], i = oe.convertToStdLng(e._sw.lng), a = oe.convertToStdLng(e._ne.lng);
|
|
5175
5175
|
return o.features.forEach((r) => {
|
|
5176
5176
|
if (r.geometry.type !== "Point")
|
|
5177
5177
|
if (i > a) {
|
|
@@ -5201,14 +5201,14 @@ const lr = {
|
|
|
5201
5201
|
}, vr = {
|
|
5202
5202
|
key: 1,
|
|
5203
5203
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
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" },
|
|
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
5205
|
function Nr(o, e, t, i, a, r) {
|
|
5206
|
-
var de, ce, K,
|
|
5207
|
-
const s = k("VBtn"), c = k("VTooltip"), n = k("VCol"), p = k("VRow"), d = k("VCardText"), m = k("VDivider"), f = k("VCard"),
|
|
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");
|
|
5208
5208
|
return y(), T("div", sr, [
|
|
5209
5209
|
l("div", {
|
|
5210
5210
|
class: "menu-bar-box transition pa-1",
|
|
5211
|
-
style:
|
|
5211
|
+
style: ae({ top: t.top + 94 + "px", right: a.right + "px" })
|
|
5212
5212
|
}, [
|
|
5213
5213
|
h(c, {
|
|
5214
5214
|
text: o.$t("weather.weatherLayers"),
|
|
@@ -5235,7 +5235,7 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5235
5235
|
r.showTipMenu ? (y(), T("div", nr, [
|
|
5236
5236
|
l("div", {
|
|
5237
5237
|
class: "menu-bar-box pa-1 rounded",
|
|
5238
|
-
style:
|
|
5238
|
+
style: ae({ right: a.right + "px" })
|
|
5239
5239
|
}, [
|
|
5240
5240
|
h(c, {
|
|
5241
5241
|
text: "Legend",
|
|
@@ -5264,7 +5264,7 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5264
5264
|
width: "435",
|
|
5265
5265
|
elevation: "16",
|
|
5266
5266
|
class: "card-info d-flex justify-center align-start",
|
|
5267
|
-
style:
|
|
5267
|
+
style: ae({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
|
|
5268
5268
|
}, {
|
|
5269
5269
|
default: g(() => [
|
|
5270
5270
|
h(d, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
@@ -5281,7 +5281,7 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5281
5281
|
l("div", cr, [
|
|
5282
5282
|
l("i", {
|
|
5283
5283
|
class: Ne(["iconfont", r.barbsIconName[te]]),
|
|
5284
|
-
style:
|
|
5284
|
+
style: ae({ color: t.theme === "dark" ? "#fff" : "#000" })
|
|
5285
5285
|
}, null, 6),
|
|
5286
5286
|
l("span", mr, w(Number(H) < 10 ? `00${H}kts` : Number(H) < 100 ? `0${H}kts` : `${H}kts`), 1)
|
|
5287
5287
|
])
|
|
@@ -5313,7 +5313,7 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5313
5313
|
l("div", hr, [
|
|
5314
5314
|
te === 0 ? (y(), T("div", dr)) : (y(), T("div", {
|
|
5315
5315
|
key: 1,
|
|
5316
|
-
style:
|
|
5316
|
+
style: ae({ width: "24px", height: "12px", background: H.color })
|
|
5317
5317
|
}, null, 4)),
|
|
5318
5318
|
l("div", pr, w(H.label), 1)
|
|
5319
5319
|
])
|
|
@@ -5346,7 +5346,7 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5346
5346
|
l("div", gr, [
|
|
5347
5347
|
l("i", {
|
|
5348
5348
|
class: "iconfont icon-direction-arrow opacity-80",
|
|
5349
|
-
style:
|
|
5349
|
+
style: ae({ fontSize: 48 * H.size + "px" })
|
|
5350
5350
|
}, null, 4)
|
|
5351
5351
|
]),
|
|
5352
5352
|
l("div", fr, w(H.label), 1)
|
|
@@ -5367,12 +5367,12 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5367
5367
|
])) : F("", !0),
|
|
5368
5368
|
l("div", {
|
|
5369
5369
|
class: Ne(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
|
|
5370
|
-
style:
|
|
5370
|
+
style: ae({ top: t.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
5371
5371
|
}, [
|
|
5372
5372
|
l("div", br, [
|
|
5373
5373
|
l("div", yr, [
|
|
5374
5374
|
l("div", wr, w(o.$t("weather.weather")), 1),
|
|
5375
|
-
h(
|
|
5375
|
+
h(v, {
|
|
5376
5376
|
modelValue: a.autoActive,
|
|
5377
5377
|
"onUpdate:modelValue": e[1] || (e[1] = (H) => a.autoActive = H),
|
|
5378
5378
|
class: "small-switch",
|
|
@@ -5422,7 +5422,7 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5422
5422
|
}),
|
|
5423
5423
|
h(d, { class: "py-2" }, {
|
|
5424
5424
|
default: g(() => [
|
|
5425
|
-
(y(!0), T(_e, null, Le(a.tagLayers.filter((H) => H.overlays), (H) => (y(), U(
|
|
5425
|
+
(y(!0), T(_e, null, Le(a.tagLayers.filter((H) => H.overlays), (H) => (y(), U(L, {
|
|
5426
5426
|
key: H.key,
|
|
5427
5427
|
modelValue: a.checkList,
|
|
5428
5428
|
"onUpdate:modelValue": e[2] || (e[2] = (te) => a.checkList = te),
|
|
@@ -5480,7 +5480,7 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5480
5480
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
5481
5481
|
a.renderKey === "wind-particle" && H.key === "wind-particle" ? (y(), T("div", xr, [
|
|
5482
5482
|
l("span", null, w(o.$t("weather.particle")), 1),
|
|
5483
|
-
h(
|
|
5483
|
+
h(v, {
|
|
5484
5484
|
modelValue: a.showWindParticle,
|
|
5485
5485
|
"onUpdate:modelValue": e[4] || (e[4] = (te) => a.showWindParticle = te),
|
|
5486
5486
|
label: "",
|
|
@@ -5494,7 +5494,7 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5494
5494
|
])) : F("", !0),
|
|
5495
5495
|
a.renderKey === "current-particle" && H.key === "current-particle" ? (y(), T("div", vr, [
|
|
5496
5496
|
e[13] || (e[13] = l("span", null, "Particle", -1)),
|
|
5497
|
-
h(
|
|
5497
|
+
h(v, {
|
|
5498
5498
|
modelValue: a.showCurrentParticle,
|
|
5499
5499
|
"onUpdate:modelValue": e[5] || (e[5] = (te) => a.showCurrentParticle = te),
|
|
5500
5500
|
label: "",
|
|
@@ -5577,10 +5577,10 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5577
5577
|
}),
|
|
5578
5578
|
h(d, { class: "" }, {
|
|
5579
5579
|
default: g(() => {
|
|
5580
|
-
var H, te, Ee, Pe, me, pe, N, ve, J,
|
|
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;
|
|
5581
5581
|
return [
|
|
5582
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((
|
|
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
5584
|
l("div", zr, w(o.$t("weather.source")) + ": NOAA", 1),
|
|
5585
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
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),
|
|
@@ -5589,14 +5589,14 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5589
5589
|
h(m),
|
|
5590
5590
|
l("div", Mr, w(o.$t("weather.wave")), 1),
|
|
5591
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",
|
|
5593
|
-
l("div",
|
|
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
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
5595
|
l("div", Dr, w(o.$t("weather.source")) + ": ECMWF", 1),
|
|
5596
|
-
l("div", Or, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((
|
|
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),
|
|
5597
5597
|
h(m),
|
|
5598
5598
|
l("div", Br, w(o.$t("weather.currents")), 1),
|
|
5599
|
-
l("div", Er, w((Ot = (Dt = (At = (
|
|
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
5600
|
l("div", jr, w(o.$t("weather.source")) + ": ECMWF", 1),
|
|
5601
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)
|
|
5602
5602
|
];
|
|
@@ -5608,7 +5608,7 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5608
5608
|
})
|
|
5609
5609
|
], 2)
|
|
5610
5610
|
], 6),
|
|
5611
|
-
t.map ? (y(), U(
|
|
5611
|
+
t.map ? (y(), U(P, E({
|
|
5612
5612
|
key: 1,
|
|
5613
5613
|
ref: "windBarb",
|
|
5614
5614
|
map: t.map,
|
|
@@ -5617,7 +5617,7 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5617
5617
|
wind: (de = a.weatherLayers) == null ? void 0 : de.wind,
|
|
5618
5618
|
"menu-toggle": t.menuToggle
|
|
5619
5619
|
}, o.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : F("", !0),
|
|
5620
|
-
t.map ? (y(), U(
|
|
5620
|
+
t.map ? (y(), U(_, E({
|
|
5621
5621
|
key: 2,
|
|
5622
5622
|
map: t.map,
|
|
5623
5623
|
"before-layer": "empty-layer-2",
|
|
@@ -5633,11 +5633,11 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5633
5633
|
current: (K = a.weatherLayers) == null ? void 0 : K.current,
|
|
5634
5634
|
"menu-toggle": t.menuToggle
|
|
5635
5635
|
}, o.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : F("", !0),
|
|
5636
|
-
t.map ? (y(), U(
|
|
5636
|
+
t.map ? (y(), U(C, E({
|
|
5637
5637
|
key: 4,
|
|
5638
5638
|
map: t.map,
|
|
5639
5639
|
"before-layer": "empty-layer-2",
|
|
5640
|
-
prmsl: (
|
|
5640
|
+
prmsl: (R = a.weatherLayers) == null ? void 0 : R.prmsl,
|
|
5641
5641
|
"menu-toggle": t.menuToggle,
|
|
5642
5642
|
"active-weather-layers": a.activeWeatherLayers
|
|
5643
5643
|
}, o.$attrs), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers"])) : F("", !0),
|
|
@@ -5647,7 +5647,7 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5647
5647
|
factor: (le = a.weatherLayers) == null ? void 0 : le["wind-particle"],
|
|
5648
5648
|
"menu-toggle": t.menuToggle
|
|
5649
5649
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5650
|
-
t.map ? (y(), U(
|
|
5650
|
+
t.map ? (y(), U(I, E({
|
|
5651
5651
|
key: 6,
|
|
5652
5652
|
viewport: a.viewport,
|
|
5653
5653
|
factor: (ge = a.weatherLayers) == null ? void 0 : ge["current-particle"],
|
|
@@ -5693,13 +5693,13 @@ function Nr(o, e, t, i, a, r) {
|
|
|
5693
5693
|
t.map ? (y(), U(Q, E({
|
|
5694
5694
|
key: 13,
|
|
5695
5695
|
viewport: a.viewport,
|
|
5696
|
-
factor: (
|
|
5696
|
+
factor: (Ie = a.weatherLayers) == null ? void 0 : Ie.visibility,
|
|
5697
5697
|
"menu-toggle": t.menuToggle
|
|
5698
5698
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5699
5699
|
t.map ? (y(), U(ne, E({
|
|
5700
5700
|
key: 14,
|
|
5701
5701
|
viewport: a.viewport,
|
|
5702
|
-
factor: (
|
|
5702
|
+
factor: (Re = a.weatherLayers) == null ? void 0 : Re["water-temp"],
|
|
5703
5703
|
"menu-toggle": t.menuToggle
|
|
5704
5704
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5705
5705
|
t.map ? (y(), U(he, E({
|
|
@@ -6028,11 +6028,11 @@ class Do {
|
|
|
6028
6028
|
const a = e.toLowerCase().split(","), r = [], s = [];
|
|
6029
6029
|
for (const c of a) {
|
|
6030
6030
|
let n = Kt.find((d) => {
|
|
6031
|
-
var m, f,
|
|
6032
|
-
return ((m = d.models) == null ? void 0 : m.includes(c)) || ((f = d.alias) == null ? void 0 : f.toLowerCase()) === c || ((
|
|
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
6033
|
}), p = Qt.find((d) => {
|
|
6034
|
-
var m, f,
|
|
6035
|
-
return ((m = d.models) == null ? void 0 : m.includes(c)) || ((f = d.alias) == null ? void 0 : f.toLowerCase()) === c || ((
|
|
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;
|
|
6036
6036
|
});
|
|
6037
6037
|
n = n || Kt.find((d) => {
|
|
6038
6038
|
var m, f;
|
|
@@ -6057,9 +6057,9 @@ class Do {
|
|
|
6057
6057
|
}), a;
|
|
6058
6058
|
}
|
|
6059
6059
|
static pickHourly(e, t) {
|
|
6060
|
-
var i, a, r, s, c, n, p, d, m, f,
|
|
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"),
|
|
6062
|
-
if (me.isBetween(J,
|
|
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
6063
|
const D = me.utc().diff(J, "h", !1);
|
|
6064
6064
|
let ue, Ce;
|
|
6065
6065
|
if (pe) {
|
|
@@ -6071,23 +6071,23 @@ class Do {
|
|
|
6071
6071
|
for (let ze = D - (D - 1) % 6; ze <= D; ze++)
|
|
6072
6072
|
Oe += (f = G == null ? void 0 : G.precipitation) == null ? void 0 : f.at(ze);
|
|
6073
6073
|
ue = {
|
|
6074
|
-
temp: (
|
|
6074
|
+
temp: (v = G == null ? void 0 : G.temperature_2m) == null ? void 0 : v.at(D),
|
|
6075
6075
|
apparentTemp: (b = G == null ? void 0 : G.apparent_temperature) == null ? void 0 : b.at(D),
|
|
6076
6076
|
rh: (S = G == null ? void 0 : G.relative_humidity_2m) == null ? void 0 : S.at(D),
|
|
6077
|
-
dp: (
|
|
6077
|
+
dp: (L = G == null ? void 0 : G.dew_point_2m) == null ? void 0 : L.at(D),
|
|
6078
6078
|
precip: {
|
|
6079
6079
|
probability: (B = G == null ? void 0 : G.precipitation_probability) == null ? void 0 : B.at(D),
|
|
6080
6080
|
sum: (M = G == null ? void 0 : G.precipitation) == null ? void 0 : M.at(D),
|
|
6081
6081
|
sum3Hours: Math.round(De * 100) / 100,
|
|
6082
6082
|
sum6Hours: Math.round(Oe * 100) / 100
|
|
6083
6083
|
},
|
|
6084
|
-
pmsl: (
|
|
6085
|
-
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),
|
|
6086
6086
|
code: (z = G == null ? void 0 : G.weather_code) == null ? void 0 : z.at(D),
|
|
6087
|
-
visibility: this.m2nm((
|
|
6087
|
+
visibility: this.m2nm((C = G == null ? void 0 : G.visibility) == null ? void 0 : C.at(D)),
|
|
6088
6088
|
wind: {
|
|
6089
6089
|
speed: (x = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : x.at(D),
|
|
6090
|
-
kts: (
|
|
6090
|
+
kts: (I = G == null ? void 0 : G.wind_speed_10m) == null ? void 0 : I.at(D),
|
|
6091
6091
|
degree: (W = G == null ? void 0 : G.wind_direction_10m) == null ? void 0 : W.at(D),
|
|
6092
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,
|
|
6093
6093
|
gusts: (Y = G == null ? void 0 : G.wind_gusts_10m) == null ? void 0 : Y.at(D)
|
|
@@ -6117,7 +6117,7 @@ class Do {
|
|
|
6117
6117
|
swell: {
|
|
6118
6118
|
height: (ce = A == null ? void 0 : A.swell_wave_height) == null ? void 0 : ce.at(D),
|
|
6119
6119
|
degree: (K = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : K.at(D),
|
|
6120
|
-
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,
|
|
6121
6121
|
period: (ge = A == null ? void 0 : A.swell_wave_period) == null ? void 0 : ge.at(D),
|
|
6122
6122
|
peakPeriod: (fe = A == null ? void 0 : A.swell_wave_peak_period) == null ? void 0 : fe.at(D)
|
|
6123
6123
|
},
|
|
@@ -6126,11 +6126,11 @@ class Do {
|
|
|
6126
6126
|
degree: (xe = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : xe.at(D),
|
|
6127
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,
|
|
6128
6128
|
period: (Te = A == null ? void 0 : A.wind_wave_period) == null ? void 0 : Te.at(D),
|
|
6129
|
-
peakPeriod: (
|
|
6129
|
+
peakPeriod: (Ie = A == null ? void 0 : A.wind_wave_peak_period) == null ? void 0 : Ie.at(D)
|
|
6130
6130
|
}
|
|
6131
6131
|
},
|
|
6132
6132
|
current: {
|
|
6133
|
-
speed: (
|
|
6133
|
+
speed: (Re = A == null ? void 0 : A.ocean_current_velocity) == null ? void 0 : Re.at(D),
|
|
6134
6134
|
kts: (be = A == null ? void 0 : A.ocean_current_velocity) == null ? void 0 : be.at(D),
|
|
6135
6135
|
degree: (H = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : H.at(D),
|
|
6136
6136
|
bearing: ((te = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : te.at(D)) ?? null
|
|
@@ -6166,11 +6166,11 @@ class Do {
|
|
|
6166
6166
|
};
|
|
6167
6167
|
}
|
|
6168
6168
|
static pickDaily(e, t) {
|
|
6169
|
-
var i, a, r, s, c, n, p, d, m, f,
|
|
6170
|
-
const
|
|
6171
|
-
if (
|
|
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
6172
|
let me, pe;
|
|
6173
|
-
const N =
|
|
6173
|
+
const N = Re.diff(te, "d", !1);
|
|
6174
6174
|
if (be)
|
|
6175
6175
|
for (const ve of be) {
|
|
6176
6176
|
const J = ve.daily;
|
|
@@ -6182,32 +6182,32 @@ class Do {
|
|
|
6182
6182
|
mean: (f = J.temperature_2m_mean) == null ? void 0 : f.at(N)
|
|
6183
6183
|
},
|
|
6184
6184
|
apparentTemp: {
|
|
6185
|
-
max: (
|
|
6185
|
+
max: (v = J.apparent_temperature_max) == null ? void 0 : v.at(N),
|
|
6186
6186
|
min: (b = J.apparent_temperature_min) == null ? void 0 : b.at(N)
|
|
6187
6187
|
},
|
|
6188
6188
|
precip: {
|
|
6189
6189
|
sum: (S = J.precipitation_sum) == null ? void 0 : S.at(N),
|
|
6190
|
-
rainSum: (
|
|
6190
|
+
rainSum: (L = J.rain_sum) == null ? void 0 : L.at(N),
|
|
6191
6191
|
snowfallSum: (B = J.snowfall_sum) == null ? void 0 : B.at(N),
|
|
6192
6192
|
showersSum: (M = J.showers_sum) == null ? void 0 : M.at(N),
|
|
6193
|
-
hours: (
|
|
6194
|
-
probability: (
|
|
6193
|
+
hours: (P = J.precipitation_hours) == null ? void 0 : P.at(N),
|
|
6194
|
+
probability: (_ = J.precipitation_probability_max) == null ? void 0 : _.at(N)
|
|
6195
6195
|
},
|
|
6196
6196
|
rh: {
|
|
6197
6197
|
max: (z = J.relative_humidity_2m_max) == null ? void 0 : z.at(N),
|
|
6198
|
-
min: (
|
|
6198
|
+
min: (C = J.relative_humidity_2m_min) == null ? void 0 : C.at(N),
|
|
6199
6199
|
mean: (x = J.relative_humidity_2m_mean) == null ? void 0 : x.at(N)
|
|
6200
6200
|
},
|
|
6201
6201
|
wind: {
|
|
6202
|
-
speed: (
|
|
6202
|
+
speed: (I = J.wind_speed_10m_max) == null ? void 0 : I.at(N),
|
|
6203
6203
|
kts: (W = J.wind_speed_10m_max) == null ? void 0 : W.at(N),
|
|
6204
6204
|
degree: (X = J.wind_direction_10m_dominant) == null ? void 0 : X.at(N),
|
|
6205
6205
|
gusts: (V = J.wind_gusts_10m_max) == null ? void 0 : V.at(N),
|
|
6206
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
|
|
6207
6207
|
}
|
|
6208
6208
|
};
|
|
6209
|
-
const { name:
|
|
6210
|
-
me.name =
|
|
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
6211
|
utc: te.add(N, "d").utc().format(),
|
|
6212
6212
|
model: ve.model,
|
|
6213
6213
|
weather: { ...me }
|
|
@@ -6216,29 +6216,29 @@ class Do {
|
|
|
6216
6216
|
if (H) {
|
|
6217
6217
|
let ve = 0;
|
|
6218
6218
|
for (const J of H) {
|
|
6219
|
-
const
|
|
6219
|
+
const ie = J.daily;
|
|
6220
6220
|
pe = {
|
|
6221
6221
|
wave: {
|
|
6222
6222
|
sig: {
|
|
6223
|
-
height: (ee =
|
|
6224
|
-
degree: (Q =
|
|
6225
|
-
period: (ne =
|
|
6226
|
-
bearing: ((he =
|
|
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
|
|
6227
6227
|
},
|
|
6228
6228
|
swell: {
|
|
6229
|
-
height: (ce =
|
|
6230
|
-
degree: (K =
|
|
6231
|
-
period: (
|
|
6232
|
-
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),
|
|
6233
6233
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
6234
|
-
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
|
|
6235
6235
|
},
|
|
6236
6236
|
wd: {
|
|
6237
|
-
height: (we =
|
|
6238
|
-
degree: (xe =
|
|
6239
|
-
period: (Se =
|
|
6240
|
-
peakPeriod: (Me =
|
|
6241
|
-
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
|
|
6242
6242
|
}
|
|
6243
6243
|
}
|
|
6244
6244
|
}, pe.wave = this.parseWave(pe.wave, me == null ? void 0 : me.wind), Object.assign(Pe[ve], pe), ve++;
|
|
@@ -6799,8 +6799,8 @@ const Wr = {
|
|
|
6799
6799
|
},
|
|
6800
6800
|
responseType: /\.(jpg|png)$/.test(p.tropicals) ? "blob" : "json"
|
|
6801
6801
|
}).then((d) => {
|
|
6802
|
-
var
|
|
6803
|
-
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));
|
|
6804
6804
|
((S = (b = d == null ? void 0 : d.config) == null ? void 0 : b.headers) == null ? void 0 : S.key) && m && (this.tropicals = {
|
|
6805
6805
|
data: m,
|
|
6806
6806
|
active: !0,
|
|
@@ -6849,8 +6849,8 @@ const Wr = {
|
|
|
6849
6849
|
else {
|
|
6850
6850
|
if (this.tropicals) {
|
|
6851
6851
|
const m = (/* @__PURE__ */ new Date()).valueOf();
|
|
6852
|
-
let f = 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),
|
|
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, {
|
|
6854
6854
|
type: "geojson",
|
|
6855
6855
|
data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
|
|
6856
6856
|
}), this.map.addLayer({
|
|
@@ -6947,7 +6947,7 @@ const Wr = {
|
|
|
6947
6947
|
],
|
|
6948
6948
|
"text-halo-width": 4
|
|
6949
6949
|
}
|
|
6950
|
-
}),
|
|
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, {
|
|
6951
6951
|
type: "geojson",
|
|
6952
6952
|
data: (n = this.tropicals) != null && n.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
6953
6953
|
// cluster: true,
|
|
@@ -7064,7 +7064,7 @@ const Wr = {
|
|
|
7064
7064
|
"text-halo-color": "#0033ff",
|
|
7065
7065
|
"text-halo-width": 4
|
|
7066
7066
|
}
|
|
7067
|
-
}),
|
|
7067
|
+
}), v = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropical] add elapsed: ", v, ", total: ", f += v));
|
|
7068
7068
|
}
|
|
7069
7069
|
this.handleDrawCircle();
|
|
7070
7070
|
const d = Ao.interpolate(this.tropicals, 1);
|
|
@@ -7089,7 +7089,7 @@ const Wr = {
|
|
|
7089
7089
|
), this.showTropicalsInfo = !1, (t = this.activeTropicalsMarker) == null || t.remove(), this.activeTropicalsMarker = void 0;
|
|
7090
7090
|
},
|
|
7091
7091
|
handleDateChange() {
|
|
7092
|
-
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;
|
|
7093
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) {
|
|
7094
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]);
|
|
7095
7095
|
de.forEach((K) => {
|
|
@@ -7110,15 +7110,15 @@ const Wr = {
|
|
|
7110
7110
|
})), this.interpolateMarkers = [];
|
|
7111
7111
|
for (const K of he)
|
|
7112
7112
|
if (!K.properties.disabled) {
|
|
7113
|
-
let
|
|
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) ?
|
|
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";
|
|
7115
7115
|
const le = `<svg t="1719918955501"
|
|
7116
7116
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
7117
7117
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
7118
7118
|
<path
|
|
7119
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"
|
|
7120
|
-
fill="${
|
|
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="${
|
|
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}"
|
|
7122
7122
|
p-id="18384"></path>
|
|
7123
7123
|
<path
|
|
7124
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"
|
|
@@ -7137,19 +7137,19 @@ const Wr = {
|
|
|
7137
7137
|
handleClick(o) {
|
|
7138
7138
|
var r, s, c, n, p, d, m, f;
|
|
7139
7139
|
const e = o.features[0], t = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
|
|
7140
|
-
(
|
|
7140
|
+
(v) => {
|
|
7141
7141
|
var b;
|
|
7142
|
-
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);
|
|
7143
7143
|
}
|
|
7144
7144
|
), i = (n = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : n.features.filter(
|
|
7145
|
-
(
|
|
7145
|
+
(v) => {
|
|
7146
7146
|
var b;
|
|
7147
|
-
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);
|
|
7148
7148
|
}
|
|
7149
7149
|
);
|
|
7150
7150
|
this.activeTropicals = {
|
|
7151
7151
|
name: (p = e == null ? void 0 : e.properties) == null ? void 0 : p.name,
|
|
7152
|
-
forecasts: t.map((
|
|
7152
|
+
forecasts: t.map((v) => v.properties),
|
|
7153
7153
|
history: (d = i[0]) == null ? void 0 : d.properties,
|
|
7154
7154
|
showCircle: (f = (m = t[0]) == null ? void 0 : m.properties) == null ? void 0 : f.showCircle
|
|
7155
7155
|
}, this.showTropicalsInfo = !0;
|
|
@@ -7245,14 +7245,14 @@ function ol(o, e, t, i, a, r) {
|
|
|
7245
7245
|
return y(), T("div", Gr, [
|
|
7246
7246
|
l("div", {
|
|
7247
7247
|
class: "menu-bar-box transition pa-1",
|
|
7248
|
-
style:
|
|
7248
|
+
style: ae({ top: t.top + 134 + "px", right: a.right + "px" })
|
|
7249
7249
|
}, [
|
|
7250
7250
|
h(c, {
|
|
7251
7251
|
text: o.$t("tropical.tropicals"),
|
|
7252
7252
|
location: "left"
|
|
7253
7253
|
}, {
|
|
7254
|
-
activator: g(({ props:
|
|
7255
|
-
h(s, E(
|
|
7254
|
+
activator: g(({ props: v }) => [
|
|
7255
|
+
h(s, E(v, {
|
|
7256
7256
|
"min-width": "32",
|
|
7257
7257
|
width: "32",
|
|
7258
7258
|
height: "32",
|
|
@@ -7283,10 +7283,10 @@ function ol(o, e, t, i, a, r) {
|
|
|
7283
7283
|
style: { "font-size": "16px !important" }
|
|
7284
7284
|
}, {
|
|
7285
7285
|
default: g(() => {
|
|
7286
|
-
var
|
|
7286
|
+
var v, b, S, L, B;
|
|
7287
7287
|
return [
|
|
7288
7288
|
l("div", null, [
|
|
7289
|
-
(b = (
|
|
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
7290
|
Z(w((B = a.activeTropicals) == null ? void 0 : B.name), 1)
|
|
7291
7291
|
]),
|
|
7292
7292
|
h(s, {
|
|
@@ -7302,9 +7302,9 @@ function ol(o, e, t, i, a, r) {
|
|
|
7302
7302
|
}),
|
|
7303
7303
|
h(p, null, {
|
|
7304
7304
|
default: g(() => {
|
|
7305
|
-
var
|
|
7305
|
+
var v, b, S, L, B;
|
|
7306
7306
|
return [
|
|
7307
|
-
l("span", Vr, " Last update: " + w(r.computeTime(((b = (
|
|
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)
|
|
7308
7308
|
];
|
|
7309
7309
|
}),
|
|
7310
7310
|
_: 1
|
|
@@ -7314,13 +7314,13 @@ function ol(o, e, t, i, a, r) {
|
|
|
7314
7314
|
}),
|
|
7315
7315
|
h(m, { class: "main-box" }, {
|
|
7316
7316
|
default: g(() => {
|
|
7317
|
-
var
|
|
7317
|
+
var v, b, S, L, B, M, P, _, z;
|
|
7318
7318
|
return [
|
|
7319
7319
|
l("div", Yr, [
|
|
7320
7320
|
l("div", Zr, [
|
|
7321
7321
|
e[2] || (e[2] = l("label", null, "Wind speed : ", -1)),
|
|
7322
|
-
l("span", null, w(((b = (
|
|
7323
|
-
l("span", null, ", BF " + w(r.computeBF(((
|
|
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)
|
|
7324
7324
|
]),
|
|
7325
7325
|
l("div", Xr, [
|
|
7326
7326
|
e[3] || (e[3] = l("label", null, "Pressure : ", -1)),
|
|
@@ -7330,31 +7330,31 @@ function ol(o, e, t, i, a, r) {
|
|
|
7330
7330
|
l("div", qr, [
|
|
7331
7331
|
l("div", Kr, [
|
|
7332
7332
|
e[4] || (e[4] = l("label", null, "Move Speed: ", -1)),
|
|
7333
|
-
l("span", null, w((
|
|
7333
|
+
l("span", null, w((P = r.computeMovement(a.activeTropicals)) == null ? void 0 : P.kts) + " [kts]", 1)
|
|
7334
7334
|
]),
|
|
7335
7335
|
l("div", Qr, [
|
|
7336
7336
|
e[5] || (e[5] = l("label", null, "Move Dir: ", -1)),
|
|
7337
|
-
l("span", null, w((
|
|
7337
|
+
l("span", null, w((_ = r.computeMovement(a.activeTropicals)) == null ? void 0 : _.deg) + " [°]", 1)
|
|
7338
7338
|
])
|
|
7339
7339
|
]),
|
|
7340
7340
|
l("div", Jr, [
|
|
7341
7341
|
l("div", $r, [
|
|
7342
7342
|
e[6] || (e[6] = l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
7343
7343
|
l("div", el, [
|
|
7344
|
-
(y(!0), T(_e, null, Le((z = a.activeTropicals) == null ? void 0 : z.forecasts, (
|
|
7345
|
-
var
|
|
7344
|
+
(y(!0), T(_e, null, Le((z = a.activeTropicals) == null ? void 0 : z.forecasts, (C, x) => {
|
|
7345
|
+
var I, W, X, V;
|
|
7346
7346
|
return y(), T("div", {
|
|
7347
7347
|
key: x,
|
|
7348
7348
|
class: Ne([
|
|
7349
7349
|
"model",
|
|
7350
|
-
|
|
7351
|
-
x > 0 && x < ((W = (
|
|
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" : ""
|
|
7352
7352
|
]),
|
|
7353
|
-
onClick: (Y) => r.handleForecastToggle(
|
|
7353
|
+
onClick: (Y) => r.handleForecastToggle(C)
|
|
7354
7354
|
}, [
|
|
7355
7355
|
l("span", {
|
|
7356
|
-
class: Ne(
|
|
7357
|
-
}, w(
|
|
7356
|
+
class: Ne(C.model)
|
|
7357
|
+
}, w(C.model), 3)
|
|
7358
7358
|
], 10, tl);
|
|
7359
7359
|
}), 128))
|
|
7360
7360
|
])
|
|
@@ -7573,7 +7573,7 @@ const al = {
|
|
|
7573
7573
|
style: { height: "56px" }
|
|
7574
7574
|
};
|
|
7575
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"),
|
|
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
7577
|
return y(), T("div", il, [
|
|
7578
7578
|
h(s, {
|
|
7579
7579
|
text: "",
|
|
@@ -7616,8 +7616,8 @@ function nl(o, e, t, i, a, r) {
|
|
|
7616
7616
|
l("div", sl, w(a.currentTime), 1),
|
|
7617
7617
|
h(m, { class: "pa-0 flex-1-1-0" }, {
|
|
7618
7618
|
default: g(() => [
|
|
7619
|
-
(y(!0), T(_e, null, Le(r.hourOptions, (S,
|
|
7620
|
-
key:
|
|
7619
|
+
(y(!0), T(_e, null, Le(r.hourOptions, (S, L) => (y(), U(d, {
|
|
7620
|
+
key: L,
|
|
7621
7621
|
value: S,
|
|
7622
7622
|
color: "primary",
|
|
7623
7623
|
active: a.currentTime === S,
|
|
@@ -7646,7 +7646,7 @@ function nl(o, e, t, i, a, r) {
|
|
|
7646
7646
|
_: 1
|
|
7647
7647
|
}),
|
|
7648
7648
|
h(n),
|
|
7649
|
-
h(
|
|
7649
|
+
h(v, {
|
|
7650
7650
|
class: "justify-end pa-0 pr-4",
|
|
7651
7651
|
style: { height: "50px" }
|
|
7652
7652
|
}, {
|
|
@@ -7726,7 +7726,7 @@ const cl = {
|
|
|
7726
7726
|
type: String
|
|
7727
7727
|
}
|
|
7728
7728
|
},
|
|
7729
|
-
emits: ["meteoMore", "follow"],
|
|
7729
|
+
emits: ["meteoMore", "follow", "login"],
|
|
7730
7730
|
data() {
|
|
7731
7731
|
return {
|
|
7732
7732
|
right: 10,
|
|
@@ -7796,17 +7796,17 @@ const cl = {
|
|
|
7796
7796
|
},
|
|
7797
7797
|
computeLat() {
|
|
7798
7798
|
return function(o, e = 4) {
|
|
7799
|
-
return
|
|
7799
|
+
return oe.lat2pretty(o, e).pretty;
|
|
7800
7800
|
};
|
|
7801
7801
|
},
|
|
7802
7802
|
computeLng() {
|
|
7803
7803
|
return function(o, e = 4) {
|
|
7804
|
-
return
|
|
7804
|
+
return oe.lng2pretty(o, e).pretty;
|
|
7805
7805
|
};
|
|
7806
7806
|
},
|
|
7807
7807
|
roundPrecision() {
|
|
7808
7808
|
return function(o, e = 4) {
|
|
7809
|
-
return isNaN(o) ? "-" :
|
|
7809
|
+
return isNaN(o) ? "-" : oe.roundPrecision(o, e);
|
|
7810
7810
|
};
|
|
7811
7811
|
}
|
|
7812
7812
|
},
|
|
@@ -7854,7 +7854,7 @@ const cl = {
|
|
|
7854
7854
|
},
|
|
7855
7855
|
methods: {
|
|
7856
7856
|
handleMenuToggle() {
|
|
7857
|
-
this.isLogin
|
|
7857
|
+
this.isLogin ? (this.toggle = !this.toggle, this.showForm = !!this.toggle) : this.$emit("login");
|
|
7858
7858
|
},
|
|
7859
7859
|
submitForm() {
|
|
7860
7860
|
this.$refs.spotForm.validate().then(async (o) => {
|
|
@@ -7919,10 +7919,10 @@ const cl = {
|
|
|
7919
7919
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
|
|
7920
7920
|
},
|
|
7921
7921
|
initTableData(o) {
|
|
7922
|
-
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;
|
|
7923
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;
|
|
7924
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 = (
|
|
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;
|
|
7926
7926
|
},
|
|
7927
7927
|
handleBind() {
|
|
7928
7928
|
var o, e;
|
|
@@ -7932,7 +7932,7 @@ const cl = {
|
|
|
7932
7932
|
var t;
|
|
7933
7933
|
if (o.originalEvent.stopPropagation(), o.originalEvent.target.className === "mapboxgl-canvas") {
|
|
7934
7934
|
const i = o.lngLat;
|
|
7935
|
-
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 = {
|
|
7936
7936
|
lat: i.lat,
|
|
7937
7937
|
lng: i.lng
|
|
7938
7938
|
}, this.positionMarker)
|
|
@@ -7992,18 +7992,18 @@ const cl = {
|
|
|
7992
7992
|
"aria-hidden": "true"
|
|
7993
7993
|
}, _l = ["xlink:href"], kl = { class: "d-flex justify-start align-center" }, zl = { class: "mx-2" };
|
|
7994
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"),
|
|
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
7996
|
return y(), T("div", ml, [
|
|
7997
7997
|
l("div", {
|
|
7998
7998
|
class: "menu-bar-box transition pa-1",
|
|
7999
|
-
style:
|
|
7999
|
+
style: ae({ top: t.top + 174 + "px", right: a.right + "px" })
|
|
8000
8000
|
}, [
|
|
8001
8001
|
h(c, {
|
|
8002
8002
|
text: o.$t("spot.spotsMeteo"),
|
|
8003
8003
|
location: "left"
|
|
8004
8004
|
}, {
|
|
8005
|
-
activator: g(({ props:
|
|
8006
|
-
h(s, E(
|
|
8005
|
+
activator: g(({ props: _ }) => [
|
|
8006
|
+
h(s, E(_, {
|
|
8007
8007
|
"min-width": "32",
|
|
8008
8008
|
width: "32",
|
|
8009
8009
|
height: "32",
|
|
@@ -8023,7 +8023,7 @@ function Ll(o, e, t, i, a, r) {
|
|
|
8023
8023
|
a.showForm ? (y(), U(M, {
|
|
8024
8024
|
key: 0,
|
|
8025
8025
|
class: "spot-form-card",
|
|
8026
|
-
style:
|
|
8026
|
+
style: ae({ top: t.top + 174 + "px", right: a.right + 50 + "px" })
|
|
8027
8027
|
}, {
|
|
8028
8028
|
default: g(() => [
|
|
8029
8029
|
h(n, { class: "d-flex justify-space-between align-center" }, {
|
|
@@ -8054,7 +8054,7 @@ function Ll(o, e, t, i, a, r) {
|
|
|
8054
8054
|
h(p),
|
|
8055
8055
|
h(B, { class: "text-body-1 py-1" }, {
|
|
8056
8056
|
default: g(() => [
|
|
8057
|
-
h(
|
|
8057
|
+
h(L, {
|
|
8058
8058
|
ref: "spotForm",
|
|
8059
8059
|
autocomplete: "off",
|
|
8060
8060
|
class: "form-box",
|
|
@@ -8078,7 +8078,7 @@ function Ll(o, e, t, i, a, r) {
|
|
|
8078
8078
|
default: g(() => [
|
|
8079
8079
|
h(d, {
|
|
8080
8080
|
modelValue: a.form.lngDegree,
|
|
8081
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
8081
|
+
"onUpdate:modelValue": e[0] || (e[0] = (_) => a.form.lngDegree = _),
|
|
8082
8082
|
rules: a.formRules.lngDegree,
|
|
8083
8083
|
density: "compact",
|
|
8084
8084
|
variant: "outlined",
|
|
@@ -8097,7 +8097,7 @@ function Ll(o, e, t, i, a, r) {
|
|
|
8097
8097
|
default: g(() => [
|
|
8098
8098
|
h(d, {
|
|
8099
8099
|
modelValue: a.form.lngMinute,
|
|
8100
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
8100
|
+
"onUpdate:modelValue": e[1] || (e[1] = (_) => a.form.lngMinute = _),
|
|
8101
8101
|
rules: a.formRules.lngMinute,
|
|
8102
8102
|
label: "",
|
|
8103
8103
|
density: "compact",
|
|
@@ -8123,7 +8123,7 @@ function Ll(o, e, t, i, a, r) {
|
|
|
8123
8123
|
height: "32",
|
|
8124
8124
|
class: "",
|
|
8125
8125
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
8126
|
-
onClick: e[2] || (e[2] = (
|
|
8126
|
+
onClick: e[2] || (e[2] = (_) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
8127
8127
|
}, {
|
|
8128
8128
|
default: g(() => [
|
|
8129
8129
|
Z(w(a.form.lngDirection), 1)
|
|
@@ -8153,7 +8153,7 @@ function Ll(o, e, t, i, a, r) {
|
|
|
8153
8153
|
default: g(() => [
|
|
8154
8154
|
h(d, {
|
|
8155
8155
|
modelValue: a.form.latDegree,
|
|
8156
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
8156
|
+
"onUpdate:modelValue": e[3] || (e[3] = (_) => a.form.latDegree = _),
|
|
8157
8157
|
rules: a.formRules.latDegree,
|
|
8158
8158
|
label: "",
|
|
8159
8159
|
density: "compact",
|
|
@@ -8175,7 +8175,7 @@ function Ll(o, e, t, i, a, r) {
|
|
|
8175
8175
|
default: g(() => [
|
|
8176
8176
|
h(d, {
|
|
8177
8177
|
modelValue: a.form.latMinute,
|
|
8178
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
8178
|
+
"onUpdate:modelValue": e[4] || (e[4] = (_) => a.form.latMinute = _),
|
|
8179
8179
|
rules: a.formRules.latMinute,
|
|
8180
8180
|
label: "",
|
|
8181
8181
|
density: "compact",
|
|
@@ -8201,7 +8201,7 @@ function Ll(o, e, t, i, a, r) {
|
|
|
8201
8201
|
height: "32",
|
|
8202
8202
|
class: "text-body-1",
|
|
8203
8203
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
8204
|
-
onClick: e[5] || (e[5] = (
|
|
8204
|
+
onClick: e[5] || (e[5] = (_) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
8205
8205
|
}, {
|
|
8206
8206
|
default: g(() => [
|
|
8207
8207
|
Z(w(a.form.latDirection), 1)
|
|
@@ -8229,11 +8229,11 @@ function Ll(o, e, t, i, a, r) {
|
|
|
8229
8229
|
class: "pa-0"
|
|
8230
8230
|
}, {
|
|
8231
8231
|
default: g(() => [
|
|
8232
|
-
h(
|
|
8232
|
+
h(v, E({
|
|
8233
8233
|
"date-time": a.form.dateTime,
|
|
8234
8234
|
"time-zone": t.timeZone
|
|
8235
8235
|
}, o.$attrs, {
|
|
8236
|
-
onDateTime: e[6] || (e[6] = (
|
|
8236
|
+
onDateTime: e[6] || (e[6] = (_) => a.form.dateTime = _)
|
|
8237
8237
|
}), null, 16, ["date-time", "time-zone"])
|
|
8238
8238
|
]),
|
|
8239
8239
|
_: 1
|
|
@@ -8258,7 +8258,7 @@ function Ll(o, e, t, i, a, r) {
|
|
|
8258
8258
|
default: g(() => [
|
|
8259
8259
|
h(b, {
|
|
8260
8260
|
modelValue: a.form.forecastModel,
|
|
8261
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
8261
|
+
"onUpdate:modelValue": e[7] || (e[7] = (_) => a.form.forecastModel = _),
|
|
8262
8262
|
class: "w-100",
|
|
8263
8263
|
rounded: "",
|
|
8264
8264
|
height: "30",
|
|
@@ -8352,11 +8352,11 @@ function Ll(o, e, t, i, a, r) {
|
|
|
8352
8352
|
default: g(() => [
|
|
8353
8353
|
h(n, { class: "d-flex justify-space-between align-center" }, {
|
|
8354
8354
|
default: g(() => {
|
|
8355
|
-
var
|
|
8355
|
+
var _, z;
|
|
8356
8356
|
return [
|
|
8357
8357
|
l("div", kl, [
|
|
8358
8358
|
e[23] || (e[23] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
8359
|
-
l("div", zl, w(r.computeLat((
|
|
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)
|
|
8360
8360
|
]),
|
|
8361
8361
|
h(s, {
|
|
8362
8362
|
icon: "",
|
|
@@ -8398,9 +8398,9 @@ function Ll(o, e, t, i, a, r) {
|
|
|
8398
8398
|
class: "pa-2 px-0"
|
|
8399
8399
|
}, {
|
|
8400
8400
|
default: g(() => {
|
|
8401
|
-
var
|
|
8401
|
+
var _;
|
|
8402
8402
|
return [
|
|
8403
|
-
Z(w(r.computedTzTime((
|
|
8403
|
+
Z(w(r.computedTzTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
|
|
8404
8404
|
];
|
|
8405
8405
|
}),
|
|
8406
8406
|
_: 1
|
|
@@ -8425,9 +8425,9 @@ function Ll(o, e, t, i, a, r) {
|
|
|
8425
8425
|
class: "pa-2 px-0"
|
|
8426
8426
|
}, {
|
|
8427
8427
|
default: g(() => {
|
|
8428
|
-
var
|
|
8428
|
+
var _;
|
|
8429
8429
|
return [
|
|
8430
|
-
Z(w(r.computedLocalTime((
|
|
8430
|
+
Z(w(r.computedLocalTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
|
|
8431
8431
|
];
|
|
8432
8432
|
}),
|
|
8433
8433
|
_: 1
|
|
@@ -8577,7 +8577,7 @@ function Ll(o, e, t, i, a, r) {
|
|
|
8577
8577
|
onClick: r.handleFollow
|
|
8578
8578
|
}, {
|
|
8579
8579
|
prepend: g(() => [
|
|
8580
|
-
h(
|
|
8580
|
+
h(P, { color: "warning" })
|
|
8581
8581
|
]),
|
|
8582
8582
|
default: g(() => [
|
|
8583
8583
|
e[33] || (e[33] = Z(" Follow", -1))
|
|
@@ -8634,6 +8634,7 @@ const Cl = {
|
|
|
8634
8634
|
source: "measure-source",
|
|
8635
8635
|
layer: "measure-layer",
|
|
8636
8636
|
labelLayer: "measure-label-layer",
|
|
8637
|
+
sumLayer: "measure-suml-layer",
|
|
8637
8638
|
tmpSource: "measure-tmp-source",
|
|
8638
8639
|
tmpLayer: "measure-tmp-layer",
|
|
8639
8640
|
tmpLabelLayer: "measure-tmp-label-layer",
|
|
@@ -8641,7 +8642,8 @@ const Cl = {
|
|
|
8641
8642
|
pointMarkers: {},
|
|
8642
8643
|
tipMarker: void 0,
|
|
8643
8644
|
contextmenu: void 0,
|
|
8644
|
-
navigation: "RL"
|
|
8645
|
+
navigation: "RL",
|
|
8646
|
+
currentLineIndex: 1
|
|
8645
8647
|
};
|
|
8646
8648
|
},
|
|
8647
8649
|
watch: {
|
|
@@ -8699,19 +8701,19 @@ const Cl = {
|
|
|
8699
8701
|
var t, i, a, r, s, c, n, p, d, m;
|
|
8700
8702
|
const e = (i = (t = o.target) == null ? void 0 : t._element) == null ? void 0 : i.id;
|
|
8701
8703
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8702
|
-
const f = this.geojson.filter((
|
|
8703
|
-
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) => {
|
|
8704
8706
|
var B;
|
|
8705
|
-
return ((B =
|
|
8707
|
+
return ((B = L._element) == null ? void 0 : B.id) === e;
|
|
8706
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]);
|
|
8707
8709
|
let b;
|
|
8708
|
-
f.features.forEach((
|
|
8709
|
-
if (
|
|
8710
|
+
f.features.forEach((L, B) => {
|
|
8711
|
+
if (L.geometry.type === "Point" && L.properties.id === e.split("-")[1]) {
|
|
8710
8712
|
b = B;
|
|
8711
8713
|
return;
|
|
8712
8714
|
}
|
|
8713
8715
|
});
|
|
8714
|
-
const S = f.features.filter((
|
|
8716
|
+
const S = f.features.filter((L) => L.geometry.type === "Point");
|
|
8715
8717
|
this.handleTmpPointUpdate(
|
|
8716
8718
|
f,
|
|
8717
8719
|
S[b - 1],
|
|
@@ -8726,8 +8728,8 @@ const Cl = {
|
|
|
8726
8728
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8727
8729
|
const f = this.geojson.filter((S) => S.id === e.split("-")[0])[0];
|
|
8728
8730
|
this.pointMarkers[f.id].filter((S) => {
|
|
8729
|
-
var
|
|
8730
|
-
return ((
|
|
8731
|
+
var L;
|
|
8732
|
+
return ((L = S._element) == null ? void 0 : L.id) === e;
|
|
8731
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]);
|
|
8732
8734
|
const b = f.features.filter((S) => S.geometry.type === "Point" && S.properties.id === e.split("-")[1])[0];
|
|
8733
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);
|
|
@@ -8765,7 +8767,8 @@ const Cl = {
|
|
|
8765
8767
|
},
|
|
8766
8768
|
{
|
|
8767
8769
|
id: (/* @__PURE__ */ new Date()).getTime().toString(),
|
|
8768
|
-
mode: this.navigation
|
|
8770
|
+
mode: this.navigation,
|
|
8771
|
+
sumLabel: "Start"
|
|
8769
8772
|
}
|
|
8770
8773
|
);
|
|
8771
8774
|
n.features.push(p), this.handlePointUpdate(n);
|
|
@@ -8778,11 +8781,13 @@ const Cl = {
|
|
|
8778
8781
|
const i = [];
|
|
8779
8782
|
for (let a = 1; a < e.length; a++) {
|
|
8780
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);
|
|
8781
|
-
t =
|
|
8784
|
+
t = oe.roundPrecision(t + d, 4);
|
|
8782
8785
|
let f;
|
|
8783
|
-
c.mode === "RL" ? f =
|
|
8784
|
-
const
|
|
8785
|
-
|
|
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";
|
|
8786
8791
|
}
|
|
8787
8792
|
e.push(...i), o.total = t;
|
|
8788
8793
|
}
|
|
@@ -8795,16 +8800,16 @@ const Cl = {
|
|
|
8795
8800
|
const n = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: t.lng, lat: t.lat };
|
|
8796
8801
|
r = Fe.calculateDistance(p, d, n.mode === "RL", 4), s = Fe.calculateBearing(p, d, n.mode === "RL", 2);
|
|
8797
8802
|
let m;
|
|
8798
|
-
n.mode === "RL" ? m =
|
|
8799
|
-
const f = j.lineString(m.map((
|
|
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]));
|
|
8800
8805
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
8801
8806
|
}
|
|
8802
8807
|
if (i) {
|
|
8803
8808
|
const n = t.properties, p = t, d = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
8804
8809
|
r = Fe.calculateDistance(p, d, n.mode === "RL", 4), s = Fe.calculateBearing(p, d, n.mode === "RL", 2);
|
|
8805
8810
|
let m;
|
|
8806
|
-
n.mode === "RL" ? m =
|
|
8807
|
-
const f = j.lineString(m.map((
|
|
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]));
|
|
8808
8813
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
8809
8814
|
}
|
|
8810
8815
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -8820,7 +8825,7 @@ const Cl = {
|
|
|
8820
8825
|
"line-join": "round"
|
|
8821
8826
|
},
|
|
8822
8827
|
paint: {
|
|
8823
|
-
"line-color": this.theme.current.value.colors
|
|
8828
|
+
"line-color": this.theme.current.value.colors["map-orange"],
|
|
8824
8829
|
"line-width": 2,
|
|
8825
8830
|
"line-opacity": 1,
|
|
8826
8831
|
"line-dasharray": [3, 2]
|
|
@@ -8832,24 +8837,25 @@ const Cl = {
|
|
|
8832
8837
|
filter: ["==", "$type", "LineString"],
|
|
8833
8838
|
layout: {
|
|
8834
8839
|
"symbol-placement": "line-center",
|
|
8835
|
-
"text-field":
|
|
8840
|
+
"text-field": "{dist} nm",
|
|
8836
8841
|
"text-rotation-alignment": "map",
|
|
8837
|
-
"text-size":
|
|
8842
|
+
"text-size": 10,
|
|
8843
|
+
"text-offset": [0, -1]
|
|
8838
8844
|
},
|
|
8839
8845
|
paint: {
|
|
8840
8846
|
"text-opacity": 1,
|
|
8841
|
-
"text-color": this.theme.current.value.colors
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
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,
|
|
8845
8851
|
}
|
|
8846
8852
|
});
|
|
8847
8853
|
let c;
|
|
8848
8854
|
if (i)
|
|
8849
8855
|
c = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
|
|
8850
8856
|
else {
|
|
8851
|
-
const n =
|
|
8852
|
-
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(
|
|
8853
8859
|
"measure.bearing"
|
|
8854
8860
|
)}: <b>${s}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
|
|
8855
8861
|
"measure.switchTips"
|
|
@@ -8872,12 +8878,12 @@ const Cl = {
|
|
|
8872
8878
|
handleDblClick(o) {
|
|
8873
8879
|
o.preventDefault();
|
|
8874
8880
|
let e = this.geojson.at(-1);
|
|
8875
|
-
e.closed = !0, this.handleRender(e), e = j.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e)
|
|
8881
|
+
e.closed = !0, this.handleRender(e), e = j.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
|
|
8876
8882
|
},
|
|
8877
8883
|
handleRender(o) {
|
|
8878
8884
|
var e;
|
|
8879
8885
|
if ((e = o == null ? void 0 : o.features) != null && e.length) {
|
|
8880
|
-
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}`;
|
|
8881
8887
|
this.map.getSource(t) ? this.map.getSource(t).setData(o) : this.map.addSource(t, {
|
|
8882
8888
|
type: "geojson",
|
|
8883
8889
|
data: o
|
|
@@ -8891,7 +8897,7 @@ const Cl = {
|
|
|
8891
8897
|
"line-join": "round"
|
|
8892
8898
|
},
|
|
8893
8899
|
paint: {
|
|
8894
|
-
"line-color": this.theme.current.value.colors
|
|
8900
|
+
"line-color": this.theme.current.value.colors["map-orange"],
|
|
8895
8901
|
"line-width": 2
|
|
8896
8902
|
}
|
|
8897
8903
|
}), this.map.addLayer({
|
|
@@ -8901,37 +8907,55 @@ const Cl = {
|
|
|
8901
8907
|
filter: ["==", "$type", "LineString"],
|
|
8902
8908
|
layout: {
|
|
8903
8909
|
"symbol-placement": "line-center",
|
|
8904
|
-
"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}",
|
|
8905
8929
|
"text-rotation-alignment": "map",
|
|
8906
|
-
"text-size": 12
|
|
8930
|
+
"text-size": 12,
|
|
8931
|
+
"text-offset": [0, 1.5]
|
|
8907
8932
|
},
|
|
8908
8933
|
paint: {
|
|
8909
8934
|
"text-opacity": 1,
|
|
8910
|
-
"text-color": this.theme.current.value.colors
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
"text-halo-blur": 0
|
|
8935
|
+
"text-color": this.theme.current.value.colors["on-surface"]
|
|
8936
|
+
// 'text-halo-width': 1,
|
|
8937
|
+
// 'text-halo-blur': 0,
|
|
8914
8938
|
}
|
|
8915
8939
|
});
|
|
8916
|
-
const
|
|
8917
|
-
for (const
|
|
8918
|
-
const
|
|
8919
|
-
|
|
8920
|
-
const
|
|
8921
|
-
|
|
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];
|
|
8922
8946
|
}
|
|
8923
8947
|
if (o.closed) {
|
|
8924
|
-
const
|
|
8925
|
-
|
|
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);
|
|
8926
8950
|
}
|
|
8927
8951
|
}
|
|
8928
8952
|
},
|
|
8929
8953
|
handleClear(o, e = !0) {
|
|
8930
|
-
var
|
|
8931
|
-
const t = `${o.id}-${this.source}`, i = `${o.id}-${this.layer}`, a = `${o.id}-${this.labelLayer}`;
|
|
8932
|
-
(
|
|
8933
|
-
|
|
8934
|
-
}), 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);
|
|
8935
8959
|
}
|
|
8936
8960
|
}
|
|
8937
8961
|
}, Sl = { class: "idm-gl4-measure" };
|
|
@@ -8940,7 +8964,7 @@ function Ml(o, e, t, i, a, r) {
|
|
|
8940
8964
|
return y(), T("div", Sl, [
|
|
8941
8965
|
l("div", {
|
|
8942
8966
|
class: "menu-bar-box transition pa-1",
|
|
8943
|
-
style:
|
|
8967
|
+
style: ae({ top: t.top + 214 + "px", right: a.right + "px" })
|
|
8944
8968
|
}, [
|
|
8945
8969
|
h(c, {
|
|
8946
8970
|
text: o.$t("measure.measure"),
|
|
@@ -8967,7 +8991,7 @@ function Ml(o, e, t, i, a, r) {
|
|
|
8967
8991
|
]);
|
|
8968
8992
|
}
|
|
8969
8993
|
const Tl = /* @__PURE__ */ q(Cl, [["render", Ml]]);
|
|
8970
|
-
const
|
|
8994
|
+
const Il = {
|
|
8971
8995
|
name: "IdmBottomBar",
|
|
8972
8996
|
components: { DateTimePicker: io },
|
|
8973
8997
|
props: {
|
|
@@ -9080,17 +9104,17 @@ const Rl = {
|
|
|
9080
9104
|
this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
|
|
9081
9105
|
}
|
|
9082
9106
|
}
|
|
9083
|
-
},
|
|
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 = {
|
|
9084
9108
|
key: 0,
|
|
9085
9109
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
9086
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" };
|
|
9087
9111
|
function Hl(o, e, t, i, a, r) {
|
|
9088
|
-
const s = k("DateTimePicker"), c = k("VListItemTitle"), n = k("VListItem"), p = k("VList"), d = k("VMenu"), m = k("VBtn"), f = k("VDivider"),
|
|
9089
|
-
return y(), T("div",
|
|
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, [
|
|
9090
9114
|
a.show ? (y(), T("div", {
|
|
9091
9115
|
key: 0,
|
|
9092
9116
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
9093
|
-
style:
|
|
9117
|
+
style: ae({ right: a.right + 146 + "px" })
|
|
9094
9118
|
}, [
|
|
9095
9119
|
l("div", Al, [
|
|
9096
9120
|
h(s, E({
|
|
@@ -9129,7 +9153,7 @@ function Hl(o, e, t, i, a, r) {
|
|
|
9129
9153
|
}, {
|
|
9130
9154
|
default: g(() => [
|
|
9131
9155
|
h(c, {
|
|
9132
|
-
onClick: (
|
|
9156
|
+
onClick: (L) => a.intervalHour = b
|
|
9133
9157
|
}, {
|
|
9134
9158
|
default: g(() => [
|
|
9135
9159
|
Z(w(b) + "h", 1)
|
|
@@ -9228,17 +9252,17 @@ function Hl(o, e, t, i, a, r) {
|
|
|
9228
9252
|
style: { height: "16px" }
|
|
9229
9253
|
}),
|
|
9230
9254
|
l("div", Ol, [
|
|
9231
|
-
h(
|
|
9255
|
+
h(v, {
|
|
9232
9256
|
text: o.$t("weather.windBarbs"),
|
|
9233
9257
|
location: "top"
|
|
9234
9258
|
}, {
|
|
9235
9259
|
activator: g(({ props: b }) => {
|
|
9236
|
-
var S,
|
|
9260
|
+
var S, L;
|
|
9237
9261
|
return [
|
|
9238
9262
|
h(m, E(b, {
|
|
9239
9263
|
class: "pa-1 d-flex",
|
|
9240
9264
|
color: (S = t.weatherCheckList) != null && S.includes("wind") ? "primary" : "",
|
|
9241
|
-
variant: (
|
|
9265
|
+
variant: (L = t.weatherCheckList) != null && L.includes("wind") ? "elevated" : "text",
|
|
9242
9266
|
height: "24",
|
|
9243
9267
|
width: "24",
|
|
9244
9268
|
"min-width": "24",
|
|
@@ -9254,17 +9278,17 @@ function Hl(o, e, t, i, a, r) {
|
|
|
9254
9278
|
}),
|
|
9255
9279
|
_: 1
|
|
9256
9280
|
}, 8, ["text"]),
|
|
9257
|
-
h(
|
|
9281
|
+
h(v, {
|
|
9258
9282
|
text: o.$t("weather.sigWaveHeight"),
|
|
9259
9283
|
location: "top"
|
|
9260
9284
|
}, {
|
|
9261
9285
|
activator: g(({ props: b }) => {
|
|
9262
|
-
var S,
|
|
9286
|
+
var S, L;
|
|
9263
9287
|
return [
|
|
9264
9288
|
h(m, E(b, {
|
|
9265
9289
|
class: "pa-1 d-flex",
|
|
9266
9290
|
color: (S = t.weatherCheckList) != null && S.includes("sig-wave-height") ? "primary" : "",
|
|
9267
|
-
variant: (
|
|
9291
|
+
variant: (L = t.weatherCheckList) != null && L.includes("sig-wave-height") ? "elevated" : "text",
|
|
9268
9292
|
height: "24",
|
|
9269
9293
|
width: "24",
|
|
9270
9294
|
"min-width": "24",
|
|
@@ -9279,17 +9303,17 @@ function Hl(o, e, t, i, a, r) {
|
|
|
9279
9303
|
}),
|
|
9280
9304
|
_: 1
|
|
9281
9305
|
}, 8, ["text"]),
|
|
9282
|
-
h(
|
|
9306
|
+
h(v, {
|
|
9283
9307
|
text: o.$t("weather.currentDirection"),
|
|
9284
9308
|
location: "top"
|
|
9285
9309
|
}, {
|
|
9286
9310
|
activator: g(({ props: b }) => {
|
|
9287
|
-
var S,
|
|
9311
|
+
var S, L;
|
|
9288
9312
|
return [
|
|
9289
9313
|
h(m, E(b, {
|
|
9290
9314
|
class: "pa-1 d-flex",
|
|
9291
9315
|
color: (S = t.weatherCheckList) != null && S.includes("current-direction") ? "primary" : "",
|
|
9292
|
-
variant: (
|
|
9316
|
+
variant: (L = t.weatherCheckList) != null && L.includes("current-direction") ? "elevated" : "text",
|
|
9293
9317
|
height: "24",
|
|
9294
9318
|
width: "24",
|
|
9295
9319
|
"min-width": "24",
|
|
@@ -9304,7 +9328,7 @@ function Hl(o, e, t, i, a, r) {
|
|
|
9304
9328
|
}),
|
|
9305
9329
|
_: 1
|
|
9306
9330
|
}, 8, ["text"]),
|
|
9307
|
-
h(
|
|
9331
|
+
h(v, {
|
|
9308
9332
|
text: o.$t("weather.weatherLayers"),
|
|
9309
9333
|
location: "top"
|
|
9310
9334
|
}, {
|
|
@@ -9362,7 +9386,7 @@ function Hl(o, e, t, i, a, r) {
|
|
|
9362
9386
|
], 4)) : F("", !0),
|
|
9363
9387
|
l("div", {
|
|
9364
9388
|
class: "timezone-box d-flex flex-column justify-space-between align-end",
|
|
9365
|
-
style:
|
|
9389
|
+
style: ae({ right: a.right + "px" })
|
|
9366
9390
|
}, [
|
|
9367
9391
|
a.showTimezone ? (y(), T("div", El, [
|
|
9368
9392
|
(y(!0), T(_e, null, Le(a.offsets, (b) => (y(), T("div", {
|
|
@@ -9390,7 +9414,7 @@ function Hl(o, e, t, i, a, r) {
|
|
|
9390
9414
|
], 4)
|
|
9391
9415
|
]);
|
|
9392
9416
|
}
|
|
9393
|
-
const Wl = /* @__PURE__ */ q(
|
|
9417
|
+
const Wl = /* @__PURE__ */ q(Il, [["render", Hl]]), Gl = {
|
|
9394
9418
|
name: "IdmGL4",
|
|
9395
9419
|
components: {
|
|
9396
9420
|
IdmOtherLayer: ai,
|
|
@@ -9497,7 +9521,7 @@ class Zl {
|
|
|
9497
9521
|
re(this, "hi");
|
|
9498
9522
|
re(this, "td");
|
|
9499
9523
|
re(this, "windy");
|
|
9500
|
-
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;
|
|
9501
9525
|
this.i4 = {
|
|
9502
9526
|
source: {
|
|
9503
9527
|
type: "raster",
|
|
@@ -71379,19 +71403,19 @@ class Zl {
|
|
|
71379
71403
|
(c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((u) => u.id === "empty-layer-1"),
|
|
71380
71404
|
(p = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : p.find((u) => u.id === "country-boundaries"),
|
|
71381
71405
|
(m = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : m.find((u) => u.id === "water-outline"),
|
|
71382
|
-
(
|
|
71406
|
+
(v = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : v.find((u) => u.id === "water-outline2"),
|
|
71383
71407
|
(S = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : S.find((u) => u.id === "empty-layer-2"),
|
|
71384
|
-
(B = (
|
|
71385
|
-
(
|
|
71386
|
-
(z = (
|
|
71387
|
-
(x = (
|
|
71388
|
-
(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"),
|
|
71389
71413
|
(V = (X = this.originStyle) == null ? void 0 : X.light.layers) == null ? void 0 : V.find((u) => u.id === "ne-10m-outline"),
|
|
71390
71414
|
($ = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : $.find((u) => u.id === "ne-10m-label"),
|
|
71391
71415
|
(Q = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : Q.find((u) => u.id === "china-route-line"),
|
|
71392
71416
|
(he = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : he.find((u) => u.id === "china-route-fill"),
|
|
71393
71417
|
(ce = (de = this.originStyle) == null ? void 0 : de.light.layers) == null ? void 0 : ce.find((u) => u.id === "china-route-label"),
|
|
71394
|
-
(
|
|
71418
|
+
(R = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : R.find((u) => u.id === "admin-0-boundary-bg"),
|
|
71395
71419
|
(ge = (le = this.originStyle) == null ? void 0 : le.light.layers) == null ? void 0 : ge.find((u) => u.id === "admin-0-boundary"),
|
|
71396
71420
|
(we = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : we.find((u) => u.id === "admin-0-boundary-disputed"),
|
|
71397
71421
|
(Se = (xe = this.originStyle) == null ? void 0 : xe.light.layers) == null ? void 0 : Se.find((u) => u.id === "country-label"),
|
|
@@ -71526,13 +71550,13 @@ class Zl {
|
|
|
71526
71550
|
protected: !1,
|
|
71527
71551
|
draft: !1,
|
|
71528
71552
|
layers: [
|
|
71529
|
-
(
|
|
71553
|
+
(Re = (Ie = this.originStyle) == null ? void 0 : Ie.dark.layers) == null ? void 0 : Re.find((u) => u.id === "land"),
|
|
71530
71554
|
(H = (be = this.originStyle) == null ? void 0 : be.dark.layers) == null ? void 0 : H.find((u) => u.id === "water"),
|
|
71531
71555
|
(Ee = (te = this.originStyle) == null ? void 0 : te.dark.layers) == null ? void 0 : Ee.find((u) => u.id === "empty-layer-1"),
|
|
71532
71556
|
(me = (Pe = this.originStyle) == null ? void 0 : Pe.dark.layers) == null ? void 0 : me.find((u) => u.id === "country-boundaries"),
|
|
71533
71557
|
(N = (pe = this.originStyle) == null ? void 0 : pe.dark.layers) == null ? void 0 : N.find((u) => u.id === "water-outline"),
|
|
71534
71558
|
(J = (ve = this.originStyle) == null ? void 0 : ve.dark.layers) == null ? void 0 : J.find((u) => u.id === "empty-layer-2"),
|
|
71535
|
-
(Ae = (
|
|
71559
|
+
(Ae = (ie = this.originStyle) == null ? void 0 : ie.dark.layers) == null ? void 0 : Ae.find((u) => u.id === "empty-layer-3"),
|
|
71536
71560
|
(ue = (D = this.originStyle) == null ? void 0 : D.dark.layers) == null ? void 0 : ue.find((u) => u.id === "empty-layer-4"),
|
|
71537
71561
|
(De = (Ce = this.originStyle) == null ? void 0 : Ce.dark.layers) == null ? void 0 : De.find((u) => u.id === "water-line-label"),
|
|
71538
71562
|
(A = (Oe = this.originStyle) == null ? void 0 : Oe.dark.layers) == null ? void 0 : A.find((u) => u.id === "water-point-label"),
|
|
@@ -71688,7 +71712,7 @@ class Zl {
|
|
|
71688
71712
|
(Pt = (Lt = this.originStyle) == null ? void 0 : Lt.satellite.layers) == null ? void 0 : Pt.find((u) => u.id === "world-12nm-v4-20231025"),
|
|
71689
71713
|
(St = (Ct = this.originStyle) == null ? void 0 : Ct.satellite.layers) == null ? void 0 : St.find((u) => u.id === "ne-10m-outline"),
|
|
71690
71714
|
(Tt = (Mt = this.originStyle) == null ? void 0 : Mt.satellite.layers) == null ? void 0 : Tt.find((u) => u.id === "ne-10m-label"),
|
|
71691
|
-
(
|
|
71715
|
+
(Rt = (It = this.originStyle) == null ? void 0 : It.satellite.layers) == null ? void 0 : Rt.find((u) => u.id === "china-route-line"),
|
|
71692
71716
|
(Dt = (At = this.originStyle) == null ? void 0 : At.satellite.layers) == null ? void 0 : Dt.find((u) => u.id === "china-route-fill"),
|
|
71693
71717
|
(Bt = (Ot = this.originStyle) == null ? void 0 : Ot.satellite.layers) == null ? void 0 : Bt.find((u) => u.id === "china-route-label"),
|
|
71694
71718
|
(jt = (Et = this.originStyle) == null ? void 0 : Et.satellite.layers) == null ? void 0 : jt.find((u) => u.id === "country-label"),
|
|
@@ -71744,7 +71768,7 @@ class Zl {
|
|
|
71744
71768
|
(Po = (Lo = this.originStyle) == null ? void 0 : Lo.light.layers) == null ? void 0 : Po.find((u) => u.id === "admin-0-boundary"),
|
|
71745
71769
|
(So = (Co = this.originStyle) == null ? void 0 : Co.light.layers) == null ? void 0 : So.find((u) => u.id === "admin-0-boundary-disputed"),
|
|
71746
71770
|
(To = (Mo = this.originStyle) == null ? void 0 : Mo.light.layers) == null ? void 0 : To.find((u) => u.id === "country-label"),
|
|
71747
|
-
(
|
|
71771
|
+
(Ro = (Io = this.originStyle) == null ? void 0 : Io.light.layers) == null ? void 0 : Ro.find((u) => u.id === "continent-label")
|
|
71748
71772
|
// this.originStyle?.light.layers?.find((l: { id: string }) => l.id === 'state-label'),
|
|
71749
71773
|
],
|
|
71750
71774
|
created: "2025-07-22T02:15:53.587Z",
|
|
@@ -71858,7 +71882,7 @@ function Jl(o, e, t, i, a, r) {
|
|
|
71858
71882
|
e[2] || (e[2] = l("div", { id: "map" }, null, -1)),
|
|
71859
71883
|
l("div", {
|
|
71860
71884
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
71861
|
-
style:
|
|
71885
|
+
style: ae({ top: t.top + 268 + "px", right: a.right + "px" })
|
|
71862
71886
|
}, [
|
|
71863
71887
|
l("div", Kl, [
|
|
71864
71888
|
h(s, {
|