@idmwx/idmui-gl4 0.5.0 → 0.5.1
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 +351 -348
- package/dist/index.umd.cjs +5 -5
- package/dist/mapbox/src/components/spot/index.vue.d.ts +27 -21
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var Vo = Object.defineProperty;
|
|
|
2
2
|
var Yo = (o, e, t) => e in o ? Vo(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var le = (o, e, t) => (Yo(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import Ie from "axios";
|
|
5
|
-
import { openBlock as y, createElementBlock as M, withDirectives as He, createElementVNode as l, vShow as Ge, toDisplayString as C, normalizeStyle as Q,
|
|
5
|
+
import { openBlock as y, createElementBlock as M, withDirectives as He, createElementVNode as l, vShow as Ge, toDisplayString as C, normalizeStyle as Q, resolveComponent as w, createVNode as h, withCtx as g, mergeProps as j, normalizeClass as je, createTextVNode as U, Fragment as fe, renderList as _e, createBlock as V, createCommentVNode as B, withModifiers as Zo } from "vue";
|
|
6
6
|
import Pe from "mapbox-gl";
|
|
7
7
|
import { LngLatHelper as ae, TropicalHelper as Ho, LaneHelper as Be } from "@idm-plugin/geo";
|
|
8
8
|
import * as F from "@turf/turf";
|
|
@@ -1368,37 +1368,43 @@ const Ya = {
|
|
|
1368
1368
|
type: "FeatureCollection",
|
|
1369
1369
|
features: o
|
|
1370
1370
|
}
|
|
1371
|
-
}), this.map.addLayer(
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1371
|
+
}), this.map.addLayer(
|
|
1372
|
+
{
|
|
1373
|
+
id: this.layer,
|
|
1374
|
+
type: "line",
|
|
1375
|
+
source: this.source,
|
|
1376
|
+
filter: ["==", "$type", "LineString"],
|
|
1377
|
+
layout: {
|
|
1378
|
+
"line-join": "round",
|
|
1379
|
+
"line-cap": "round"
|
|
1380
|
+
},
|
|
1381
|
+
paint: {
|
|
1382
|
+
"line-color": this.lineColor,
|
|
1383
|
+
"line-width": 1
|
|
1384
|
+
}
|
|
1379
1385
|
},
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1386
|
+
this.beforeLayer
|
|
1387
|
+
), this.map.addLayer(
|
|
1388
|
+
{
|
|
1389
|
+
id: this.labelLayer,
|
|
1390
|
+
type: "symbol",
|
|
1391
|
+
source: this.source,
|
|
1392
|
+
filter: ["==", "$type", "Point"],
|
|
1393
|
+
layout: {
|
|
1394
|
+
"symbol-placement": "point",
|
|
1395
|
+
"text-field": "{val}",
|
|
1396
|
+
"text-rotation-alignment": "viewport",
|
|
1397
|
+
"text-offset": [0, 1],
|
|
1398
|
+
"text-size": 10,
|
|
1399
|
+
"text-allow-overlap": !0
|
|
1400
|
+
},
|
|
1401
|
+
paint: {
|
|
1402
|
+
"text-opacity": 0.8,
|
|
1403
|
+
"text-color": this.lineColor
|
|
1404
|
+
}
|
|
1396
1405
|
},
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
"text-color": this.lineColor
|
|
1400
|
-
}
|
|
1401
|
-
}, this.beforeLayer);
|
|
1406
|
+
this.beforeLayer
|
|
1407
|
+
);
|
|
1402
1408
|
}
|
|
1403
1409
|
},
|
|
1404
1410
|
handleClear() {
|
|
@@ -1408,15 +1414,15 @@ const Ya = {
|
|
|
1408
1414
|
}
|
|
1409
1415
|
};
|
|
1410
1416
|
function Za(o, e, t, i, a, r) {
|
|
1411
|
-
|
|
1412
|
-
|
|
1417
|
+
var s, c, n, p, d;
|
|
1418
|
+
return y(), M("div", {
|
|
1413
1419
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
1414
1420
|
style: Q({ right: a.right + "px" })
|
|
1415
1421
|
}, [
|
|
1416
|
-
l("div", null, C(a.lngLat.lat.pretty), 1),
|
|
1417
|
-
l("div", null, C(a.lngLat.lng.pretty), 1),
|
|
1418
|
-
l("div", null, C(a.lngLat.str), 1)
|
|
1419
|
-
], 4)
|
|
1422
|
+
l("div", null, C((c = (s = a.lngLat) == null ? void 0 : s.lat) == null ? void 0 : c.pretty), 1),
|
|
1423
|
+
l("div", null, C((p = (n = a.lngLat) == null ? void 0 : n.lng) == null ? void 0 : p.pretty), 1),
|
|
1424
|
+
l("div", null, C((d = a.lngLat) == null ? void 0 : d.str), 1)
|
|
1425
|
+
], 4);
|
|
1420
1426
|
}
|
|
1421
1427
|
const Wo = /* @__PURE__ */ X(Ya, [["render", Za]]);
|
|
1422
1428
|
const Xa = {
|
|
@@ -1473,7 +1479,7 @@ const Xa = {
|
|
|
1473
1479
|
type: String
|
|
1474
1480
|
}
|
|
1475
1481
|
},
|
|
1476
|
-
emits: ["map", "other", "menuToggle", "mapFeather", "followLayerList"],
|
|
1482
|
+
emits: ["map", "other", "menuToggle", "mapFeather", "theme", "followLayerList"],
|
|
1477
1483
|
data() {
|
|
1478
1484
|
return {
|
|
1479
1485
|
right: 10,
|
|
@@ -1526,7 +1532,7 @@ const Xa = {
|
|
|
1526
1532
|
},
|
|
1527
1533
|
mapFeather: {
|
|
1528
1534
|
handler() {
|
|
1529
|
-
localStorage.setItem(this.cache.mapFeatherKey, this.mapFeather), this.$emit("mapFeather", this.mapFeather);
|
|
1535
|
+
localStorage.setItem(this.cache.mapFeatherKey, this.mapFeather), this.$emit("mapFeather", this.mapFeather), this.$emit("theme", ["light", "nautical"].includes(this.mapFeather) ? "light" : "dark");
|
|
1530
1536
|
},
|
|
1531
1537
|
immediate: !0
|
|
1532
1538
|
},
|
|
@@ -1570,9 +1576,9 @@ const Xa = {
|
|
|
1570
1576
|
}
|
|
1571
1577
|
});
|
|
1572
1578
|
if (((t = c == null ? void 0 : c.data) == null ? void 0 : t.code) === 0) {
|
|
1573
|
-
const n = (i = c == null ? void 0 : c.data) == null ? void 0 : i.data,
|
|
1579
|
+
const n = (i = c == null ? void 0 : c.data) == null ? void 0 : i.data, p = [];
|
|
1574
1580
|
for (const m in n)
|
|
1575
|
-
|
|
1581
|
+
p.push(
|
|
1576
1582
|
Ie.get(n[m], {
|
|
1577
1583
|
headers: {
|
|
1578
1584
|
Authorization: this.token || this.defaultMeteoToken,
|
|
@@ -1580,7 +1586,7 @@ const Xa = {
|
|
|
1580
1586
|
}
|
|
1581
1587
|
})
|
|
1582
1588
|
);
|
|
1583
|
-
(await Promise.all(
|
|
1589
|
+
(await Promise.all(p)).map((m) => {
|
|
1584
1590
|
var L, S, P;
|
|
1585
1591
|
const b = ((L = m == null ? void 0 : m.data) == null ? void 0 : L.data) || (m == null ? void 0 : m.data), f = (P = (S = m == null ? void 0 : m.config) == null ? void 0 : S.headers) == null ? void 0 : P.key;
|
|
1586
1592
|
this.otherLayers[f] = b;
|
|
@@ -1593,9 +1599,9 @@ const Xa = {
|
|
|
1593
1599
|
}
|
|
1594
1600
|
});
|
|
1595
1601
|
if (((a = c == null ? void 0 : c.data) == null ? void 0 : a.code) === 0) {
|
|
1596
|
-
const n = (r = c == null ? void 0 : c.data) == null ? void 0 : r.data,
|
|
1602
|
+
const n = (r = c == null ? void 0 : c.data) == null ? void 0 : r.data, p = [];
|
|
1597
1603
|
for (const m in n)
|
|
1598
|
-
|
|
1604
|
+
p.push(
|
|
1599
1605
|
Ie.get(n[m], {
|
|
1600
1606
|
headers: {
|
|
1601
1607
|
Authorization: this.token || this.defaultMeteoToken,
|
|
@@ -1603,7 +1609,7 @@ const Xa = {
|
|
|
1603
1609
|
}
|
|
1604
1610
|
})
|
|
1605
1611
|
);
|
|
1606
|
-
(await Promise.all(
|
|
1612
|
+
(await Promise.all(p)).map((m) => {
|
|
1607
1613
|
var L, S, P;
|
|
1608
1614
|
const b = ((L = m == null ? void 0 : m.data) == null ? void 0 : L.data) || (m == null ? void 0 : m.data), f = (P = (S = m == null ? void 0 : m.config) == null ? void 0 : S.headers) == null ? void 0 : P.key;
|
|
1609
1615
|
this.otherLayers[f] = b;
|
|
@@ -1638,7 +1644,7 @@ const Xa = {
|
|
|
1638
1644
|
}, ri = { class: "text-body-2 text-center pt-1" }, li = { class: "layers-body" }, si = { class: "layers-body" }, ni = { class: "layers-body" }, ci = { class: "layers-body" };
|
|
1639
1645
|
function mi(o, e, t, i, a, r) {
|
|
1640
1646
|
var G, W, $, ee, K, se, me, pe, he, q;
|
|
1641
|
-
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"),
|
|
1647
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), p = w("VCardItem"), d = w("VCheckbox"), m = w("VCardText"), b = w("VCard"), f = w("IdmWorld12nm"), L = w("IdmWorldMarine"), S = w("IdmChinaRoute"), P = w("IdmWarZone"), E = w("IdmGmdssArea"), T = w("IdmEcaZone"), k = w("IdmAlertZone"), v = w("IdmPort"), _ = w("IdmLoadLine"), z = w("IdmTimezone"), x = w("IdmVRA"), R = w("IdmSpecialArea"), H = w("IdmTerminator"), Y = w("IdmLatLng");
|
|
1642
1648
|
return y(), M("div", qa, [
|
|
1643
1649
|
l("div", {
|
|
1644
1650
|
class: "menu-bar-box transition px-1 rounded",
|
|
@@ -1646,8 +1652,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1646
1652
|
}, [
|
|
1647
1653
|
h(c, {
|
|
1648
1654
|
text: o.$t("layer.mapLayers"),
|
|
1649
|
-
location: "left"
|
|
1650
|
-
"open-delay": 1e3
|
|
1655
|
+
location: "left"
|
|
1651
1656
|
}, {
|
|
1652
1657
|
activator: g(({ props: I }) => [
|
|
1653
1658
|
h(s, j(I, {
|
|
@@ -1697,7 +1702,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1697
1702
|
elevation: "8"
|
|
1698
1703
|
}, {
|
|
1699
1704
|
default: g(() => [
|
|
1700
|
-
h(
|
|
1705
|
+
h(p, { class: "border-b-thin" }, {
|
|
1701
1706
|
default: g(() => [
|
|
1702
1707
|
h(n, {
|
|
1703
1708
|
class: "text-subtitle-1",
|
|
@@ -1752,7 +1757,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1752
1757
|
elevation: "8"
|
|
1753
1758
|
}, {
|
|
1754
1759
|
default: g(() => [
|
|
1755
|
-
h(
|
|
1760
|
+
h(p, { class: "border-b-thin" }, {
|
|
1756
1761
|
default: g(() => [
|
|
1757
1762
|
h(n, {
|
|
1758
1763
|
class: "text-subtitle-1",
|
|
@@ -1793,7 +1798,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1793
1798
|
elevation: "8"
|
|
1794
1799
|
}, {
|
|
1795
1800
|
default: g(() => [
|
|
1796
|
-
h(
|
|
1801
|
+
h(p, { class: "border-b-thin" }, {
|
|
1797
1802
|
default: g(() => [
|
|
1798
1803
|
h(n, {
|
|
1799
1804
|
class: "text-subtitle-1",
|
|
@@ -1834,7 +1839,7 @@ function mi(o, e, t, i, a, r) {
|
|
|
1834
1839
|
elevation: "8"
|
|
1835
1840
|
}, {
|
|
1836
1841
|
default: g(() => [
|
|
1837
|
-
h(
|
|
1842
|
+
h(p, { class: "border-b-thin" }, {
|
|
1838
1843
|
default: g(() => [
|
|
1839
1844
|
h(n, {
|
|
1840
1845
|
class: "text-subtitle-1",
|
|
@@ -1887,77 +1892,77 @@ function mi(o, e, t, i, a, r) {
|
|
|
1887
1892
|
map: t.map,
|
|
1888
1893
|
token: t.token,
|
|
1889
1894
|
show: a.checkList.includes("world12nm")
|
|
1890
|
-
}, o.$attrs), null, 16, ["map", "token", "show"])) :
|
|
1895
|
+
}, o.$attrs), null, 16, ["map", "token", "show"])) : B("", !0),
|
|
1891
1896
|
t.map ? (y(), V(L, j({
|
|
1892
1897
|
key: 1,
|
|
1893
1898
|
map: t.map,
|
|
1894
1899
|
token: t.token,
|
|
1895
1900
|
show: a.checkList.includes("worldMarine")
|
|
1896
|
-
}, o.$attrs), null, 16, ["map", "token", "show"])) :
|
|
1901
|
+
}, o.$attrs), null, 16, ["map", "token", "show"])) : B("", !0),
|
|
1897
1902
|
t.map ? (y(), V(S, j({
|
|
1898
1903
|
key: 2,
|
|
1899
1904
|
map: t.map,
|
|
1900
1905
|
token: t.token,
|
|
1901
1906
|
show: a.checkList.includes("chinaRoute")
|
|
1902
|
-
}, o.$attrs), null, 16, ["map", "token", "show"])) :
|
|
1907
|
+
}, o.$attrs), null, 16, ["map", "token", "show"])) : B("", !0),
|
|
1903
1908
|
t.map ? (y(), V(P, j({
|
|
1904
1909
|
key: 3,
|
|
1905
1910
|
map: t.map,
|
|
1906
1911
|
zone: (G = a.otherLayers) == null ? void 0 : G["war-zones"]
|
|
1907
|
-
}, o.$attrs), null, 16, ["map", "zone"])) :
|
|
1912
|
+
}, o.$attrs), null, 16, ["map", "zone"])) : B("", !0),
|
|
1908
1913
|
t.map ? (y(), V(E, j({
|
|
1909
1914
|
key: 4,
|
|
1910
1915
|
map: t.map,
|
|
1911
1916
|
area: (W = a.otherLayers) == null ? void 0 : W["gmdss-areas"]
|
|
1912
|
-
}, o.$attrs), null, 16, ["map", "area"])) :
|
|
1917
|
+
}, o.$attrs), null, 16, ["map", "area"])) : B("", !0),
|
|
1913
1918
|
t.map ? (y(), V(T, j({
|
|
1914
1919
|
key: 5,
|
|
1915
1920
|
map: t.map,
|
|
1916
1921
|
zone: ($ = a.otherLayers) == null ? void 0 : $["eca-zones"]
|
|
1917
|
-
}, o.$attrs), null, 16, ["map", "zone"])) :
|
|
1922
|
+
}, o.$attrs), null, 16, ["map", "zone"])) : B("", !0),
|
|
1918
1923
|
t.map ? (y(), V(k, j({
|
|
1919
1924
|
key: 6,
|
|
1920
1925
|
map: t.map,
|
|
1921
1926
|
zone: (ee = a.otherLayers) == null ? void 0 : ee["alert-zones"],
|
|
1922
1927
|
"before-layer": "empty-layer-3"
|
|
1923
|
-
}, o.$attrs), null, 16, ["map", "zone"])) :
|
|
1928
|
+
}, o.$attrs), null, 16, ["map", "zone"])) : B("", !0),
|
|
1924
1929
|
t.map ? (y(), V(v, j({
|
|
1925
1930
|
key: 7,
|
|
1926
1931
|
map: t.map,
|
|
1927
1932
|
port: (K = a.otherLayers) == null ? void 0 : K.ports,
|
|
1928
1933
|
"forecast-model": t.forecastModel
|
|
1929
|
-
}, o.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "port", "forecast-model"])) :
|
|
1934
|
+
}, o.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "port", "forecast-model"])) : B("", !0),
|
|
1930
1935
|
t.map ? (y(), V(_, j({
|
|
1931
1936
|
key: 8,
|
|
1932
1937
|
map: t.map,
|
|
1933
1938
|
line: (se = a.otherLayers) == null ? void 0 : se["load-lines"]
|
|
1934
|
-
}, o.$attrs), null, 16, ["map", "line"])) :
|
|
1939
|
+
}, o.$attrs), null, 16, ["map", "line"])) : B("", !0),
|
|
1935
1940
|
t.map ? (y(), V(z, j({
|
|
1936
1941
|
key: 9,
|
|
1937
1942
|
map: t.map,
|
|
1938
1943
|
zone: (me = a.otherLayers) == null ? void 0 : me["time-zones"]
|
|
1939
|
-
}, o.$attrs), null, 16, ["map", "zone"])) :
|
|
1944
|
+
}, o.$attrs), null, 16, ["map", "zone"])) : B("", !0),
|
|
1940
1945
|
t.map ? (y(), V(x, j({
|
|
1941
1946
|
key: 10,
|
|
1942
1947
|
map: t.map,
|
|
1943
1948
|
area: (pe = a.otherLayers) == null ? void 0 : pe["voluntary-reporting-area"]
|
|
1944
|
-
}, o.$attrs), null, 16, ["map", "area"])) :
|
|
1949
|
+
}, o.$attrs), null, 16, ["map", "area"])) : B("", !0),
|
|
1945
1950
|
t.map ? (y(), V(R, j({
|
|
1946
1951
|
key: 11,
|
|
1947
1952
|
map: t.map,
|
|
1948
1953
|
area: (he = a.otherLayers) == null ? void 0 : he["special-area"]
|
|
1949
|
-
}, o.$attrs), null, 16, ["map", "area"])) :
|
|
1954
|
+
}, o.$attrs), null, 16, ["map", "area"])) : B("", !0),
|
|
1950
1955
|
t.map ? (y(), V(H, j({
|
|
1951
1956
|
key: 12,
|
|
1952
1957
|
map: t.map,
|
|
1953
1958
|
area: (q = a.otherLayers) == null ? void 0 : q["day-night"]
|
|
1954
|
-
}, o.$attrs), null, 16, ["map", "area"])) :
|
|
1959
|
+
}, o.$attrs), null, 16, ["map", "area"])) : B("", !0),
|
|
1955
1960
|
t.map ? (y(), V(Y, j({
|
|
1956
1961
|
key: 13,
|
|
1957
1962
|
map: t.map,
|
|
1958
1963
|
"menu-toggle": t.menuToggle,
|
|
1959
1964
|
show: a.checkList.includes("graticule")
|
|
1960
|
-
}, o.$attrs), null, 16, ["map", "menu-toggle", "show"])) :
|
|
1965
|
+
}, o.$attrs), null, 16, ["map", "menu-toggle", "show"])) : B("", !0)
|
|
1961
1966
|
]);
|
|
1962
1967
|
}
|
|
1963
1968
|
const hi = /* @__PURE__ */ X(Xa, [["render", mi]]);
|
|
@@ -2011,8 +2016,8 @@ class Ke {
|
|
|
2011
2016
|
const e = (L = this.map) == null ? void 0 : L.getBounds();
|
|
2012
2017
|
if (!e)
|
|
2013
2018
|
return [];
|
|
2014
|
-
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]), [
|
|
2015
|
-
return [m, b,
|
|
2019
|
+
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, b] = this.mercator.px([c, a[1]], t), f = Math.round(this.mercator.size * Math.pow(2, t) * (s + n));
|
|
2020
|
+
return [m, b, p + f, d];
|
|
2016
2021
|
}
|
|
2017
2022
|
/**
|
|
2018
2023
|
* [视窗边界像素宽度]
|
|
@@ -2117,13 +2122,13 @@ class De {
|
|
|
2117
2122
|
if (a) {
|
|
2118
2123
|
const r = { program: a }, s = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
|
|
2119
2124
|
for (let n = 0; n < s; n++) {
|
|
2120
|
-
const
|
|
2121
|
-
r[
|
|
2125
|
+
const p = e.getActiveAttrib(a, n);
|
|
2126
|
+
r[p.name] = e.getAttribLocation(a, p.name);
|
|
2122
2127
|
}
|
|
2123
2128
|
const c = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
|
|
2124
2129
|
for (let n = 0; n < c; n++) {
|
|
2125
|
-
const
|
|
2126
|
-
r[
|
|
2130
|
+
const p = e.getActiveUniform(a, n);
|
|
2131
|
+
r[p.name] = e.getUniformLocation(a, p.name);
|
|
2127
2132
|
}
|
|
2128
2133
|
return r;
|
|
2129
2134
|
}
|
|
@@ -2138,8 +2143,8 @@ class De {
|
|
|
2138
2143
|
const c = s.getContext("2d");
|
|
2139
2144
|
if (c && e) {
|
|
2140
2145
|
const n = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
|
|
2141
|
-
return t.forEach(([
|
|
2142
|
-
n.addColorStop(
|
|
2146
|
+
return t.forEach(([p, d]) => {
|
|
2147
|
+
n.addColorStop(p, d);
|
|
2143
2148
|
}), c.fillStyle = n, c.fillRect(0, 0, 256, 1), {
|
|
2144
2149
|
canvas: s,
|
|
2145
2150
|
texture: this.createTexture(
|
|
@@ -2161,8 +2166,8 @@ class De {
|
|
|
2161
2166
|
const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), c = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), n = new Float32Array(a);
|
|
2162
2167
|
for (let d = 0; d < a; d++)
|
|
2163
2168
|
n[d] = d;
|
|
2164
|
-
const
|
|
2165
|
-
return { resolution: i, total: a, texture0: s, texture1: c, indexBuffer:
|
|
2169
|
+
const p = this.createDataBuffer(e, "array", n);
|
|
2170
|
+
return { resolution: i, total: a, texture0: s, texture1: c, indexBuffer: p };
|
|
2166
2171
|
}
|
|
2167
2172
|
bind(e, t, i) {
|
|
2168
2173
|
const a = this.createProgram(e, t, i);
|
|
@@ -2177,13 +2182,13 @@ class De {
|
|
|
2177
2182
|
return {};
|
|
2178
2183
|
}
|
|
2179
2184
|
bindParticle(e, t, i, a, r, s) {
|
|
2180
|
-
const c = this.createProgramWrapper(e, t, i), n = this.createProgramWrapper(e, a, r),
|
|
2181
|
-
return { particle: c, screen: n, update:
|
|
2185
|
+
const c = this.createProgramWrapper(e, t, i), n = this.createProgramWrapper(e, a, r), p = this.createProgramWrapper(e, a, s), d = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), m = e.createFramebuffer();
|
|
2186
|
+
return { particle: c, screen: n, update: p, quadBuffer: d, frameBuffer: m };
|
|
2182
2187
|
}
|
|
2183
2188
|
draw(e, t, i, a, r, s, c) {
|
|
2184
|
-
var n,
|
|
2189
|
+
var n, p;
|
|
2185
2190
|
if (t && i) {
|
|
2186
|
-
e.resize(), t == null || t.viewport(0, 0, (n = t == null ? void 0 : t.canvas) == null ? void 0 : n.width, (
|
|
2191
|
+
e.resize(), t == null || t.viewport(0, 0, (n = t == null ? void 0 : t.canvas) == null ? void 0 : n.width, (p = t == null ? void 0 : t.canvas) == null ? void 0 : p.height), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT);
|
|
2187
2192
|
try {
|
|
2188
2193
|
t.useProgram(i);
|
|
2189
2194
|
const d = {
|
|
@@ -2532,7 +2537,7 @@ const di = {
|
|
|
2532
2537
|
else {
|
|
2533
2538
|
this.map.addSource(this.source, { type: "geojson", data: c });
|
|
2534
2539
|
for (let n = 0; n < (this.barbs ?? []).length - 1; n++) {
|
|
2535
|
-
const
|
|
2540
|
+
const p = (this.barbs ?? [])[n] || 0, d = (this.barbs ?? [])[n + 1] || 0, m = p < 10 ? `00${p}kts` : p < 100 ? `0${p}kts` : `${p}kts`;
|
|
2536
2541
|
this.map.addLayer(
|
|
2537
2542
|
{
|
|
2538
2543
|
id: m,
|
|
@@ -2540,7 +2545,7 @@ const di = {
|
|
|
2540
2545
|
filter: [
|
|
2541
2546
|
"all",
|
|
2542
2547
|
// @ts-ignore
|
|
2543
|
-
[">=", "spd",
|
|
2548
|
+
[">=", "spd", p],
|
|
2544
2549
|
// @ts-ignore
|
|
2545
2550
|
["<", "spd", d]
|
|
2546
2551
|
],
|
|
@@ -2598,7 +2603,7 @@ const di = {
|
|
|
2598
2603
|
}, ui = { class: "d-flex flex-row justify-center align-center" }, gi = { class: "text-caption" };
|
|
2599
2604
|
function fi(o, e, t, i, a, r) {
|
|
2600
2605
|
var m;
|
|
2601
|
-
const s = w("v-btn"), c = w("v-col"), n = w("v-row"),
|
|
2606
|
+
const s = w("v-btn"), c = w("v-col"), n = w("v-row"), p = w("v-card-text"), d = w("v-card");
|
|
2602
2607
|
return (m = t.wind) != null && m.active ? (y(), M("div", pi, [
|
|
2603
2608
|
l("div", {
|
|
2604
2609
|
class: "menu-bar-box pa-1 rounded",
|
|
@@ -2626,7 +2631,7 @@ function fi(o, e, t, i, a, r) {
|
|
|
2626
2631
|
style: Q({ position: "absolute", top: "300px", right: a.right + 50 + "px" })
|
|
2627
2632
|
}, {
|
|
2628
2633
|
default: g(() => [
|
|
2629
|
-
h(
|
|
2634
|
+
h(p, { class: "pa-1 text-body-2 d-flex flex-column justify-center align-start opacity-80 z" }, {
|
|
2630
2635
|
default: g(() => [
|
|
2631
2636
|
e[1] || (e[1] = l("div", { class: "text-body-2 ma-1" }, "Wind Level", -1)),
|
|
2632
2637
|
h(n, { class: "ma-0" }, {
|
|
@@ -2659,7 +2664,7 @@ function fi(o, e, t, i, a, r) {
|
|
|
2659
2664
|
}, 8, ["style"]), [
|
|
2660
2665
|
[Ge, a.showCaption]
|
|
2661
2666
|
])
|
|
2662
|
-
])) :
|
|
2667
|
+
])) : B("", !0);
|
|
2663
2668
|
}
|
|
2664
2669
|
const bi = /* @__PURE__ */ X(di, [["render", fi]]);
|
|
2665
2670
|
const yi = {
|
|
@@ -2845,7 +2850,7 @@ function xi(o, e, t, i, a, r) {
|
|
|
2845
2850
|
l("span", null, "40", -1),
|
|
2846
2851
|
l("span", null, "60", -1)
|
|
2847
2852
|
]), 4)
|
|
2848
|
-
])) :
|
|
2853
|
+
])) : B("", !0);
|
|
2849
2854
|
}
|
|
2850
2855
|
const vi = /* @__PURE__ */ X(yi, [["render", xi]]), _i = {
|
|
2851
2856
|
name: "IdmCurrent",
|
|
@@ -2968,13 +2973,13 @@ const vi = /* @__PURE__ */ X(yi, [["render", xi]]), _i = {
|
|
|
2968
2973
|
const s = new Image(48, 48);
|
|
2969
2974
|
let c = '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>', n = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(c)));
|
|
2970
2975
|
s.src = n;
|
|
2971
|
-
const
|
|
2972
|
-
c = '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#f44336"></path></svg>', n = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(c))),
|
|
2973
|
-
const d = [s,
|
|
2976
|
+
const p = new Image(48, 48);
|
|
2977
|
+
c = '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#f44336"></path></svg>', n = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(c))), p.src = n;
|
|
2978
|
+
const d = [s, p];
|
|
2974
2979
|
let m = 0;
|
|
2975
2980
|
d.forEach((b) => {
|
|
2976
2981
|
b.onload = () => {
|
|
2977
|
-
m++, this.map.hasImage("currentDirIconWhite") || this.map.addImage("currentDirIconWhite", s), this.map.hasImage("currentDirIconRed") || this.map.addImage("currentDirIconRed",
|
|
2982
|
+
m++, this.map.hasImage("currentDirIconWhite") || this.map.addImage("currentDirIconWhite", s), this.map.hasImage("currentDirIconRed") || this.map.addImage("currentDirIconRed", p), m === 2 && this.map.addLayer(
|
|
2978
2983
|
{
|
|
2979
2984
|
id: this.directionLayer,
|
|
2980
2985
|
type: "symbol",
|
|
@@ -3031,7 +3036,7 @@ const vi = /* @__PURE__ */ X(yi, [["render", xi]]), _i = {
|
|
|
3031
3036
|
}, Pi = { class: "text-caption px-2" };
|
|
3032
3037
|
function Ci(o, e, t, i, a, r) {
|
|
3033
3038
|
var b;
|
|
3034
|
-
const s = w("v-btn"), c = w("v-tooltip"), n = w("v-col"),
|
|
3039
|
+
const s = w("v-btn"), c = w("v-tooltip"), n = w("v-col"), p = w("v-row"), d = w("v-card-text"), m = w("v-card");
|
|
3035
3040
|
return (b = t.current) != null && b.active ? (y(), M("div", ki, [
|
|
3036
3041
|
l("div", {
|
|
3037
3042
|
class: "menu-bar-box pa-1 rounded",
|
|
@@ -3071,7 +3076,7 @@ function Ci(o, e, t, i, a, r) {
|
|
|
3071
3076
|
h(d, { class: "pa-1 text-body-2 d-flex flex-column justify-center align-start opacity-80" }, {
|
|
3072
3077
|
default: g(() => [
|
|
3073
3078
|
e[1] || (e[1] = l("div", { class: "text-body-2 ma-1" }, "Current", -1)),
|
|
3074
|
-
h(
|
|
3079
|
+
h(p, { class: "ma-0" }, {
|
|
3075
3080
|
default: g(() => [
|
|
3076
3081
|
(y(!0), M(fe, null, _e(a.list, (f, L) => (y(), V(n, {
|
|
3077
3082
|
cols: "12",
|
|
@@ -3103,7 +3108,7 @@ function Ci(o, e, t, i, a, r) {
|
|
|
3103
3108
|
}, 8, ["style"]), [
|
|
3104
3109
|
[Ge, a.showCaption]
|
|
3105
3110
|
])
|
|
3106
|
-
])) :
|
|
3111
|
+
])) : B("", !0);
|
|
3107
3112
|
}
|
|
3108
3113
|
const Si = /* @__PURE__ */ X(_i, [["render", Ci]]);
|
|
3109
3114
|
const Mi = {
|
|
@@ -3285,7 +3290,7 @@ function Ri(o, e, t, i, a, r) {
|
|
|
3285
3290
|
l("span", null, "2", -1),
|
|
3286
3291
|
l("span", null, "3.2", -1)
|
|
3287
3292
|
]), 4)
|
|
3288
|
-
])) :
|
|
3293
|
+
])) : B("", !0);
|
|
3289
3294
|
}
|
|
3290
3295
|
const Ii = /* @__PURE__ */ X(Mi, [["render", Ri]]);
|
|
3291
3296
|
const Ai = {
|
|
@@ -3413,7 +3418,7 @@ function Oi(o, e, t, i, a, r) {
|
|
|
3413
3418
|
l("span", null, "6", -1),
|
|
3414
3419
|
l("span", null, "9", -1)
|
|
3415
3420
|
]), 4)
|
|
3416
|
-
])) :
|
|
3421
|
+
])) : B("", !0);
|
|
3417
3422
|
}
|
|
3418
3423
|
const Bi = /* @__PURE__ */ X(Ai, [["render", Oi], ["__scopeId", "data-v-79ce70e2"]]), ji = {
|
|
3419
3424
|
name: "IdmSigWave",
|
|
@@ -3548,13 +3553,7 @@ const Bi = /* @__PURE__ */ X(Ai, [["render", Oi], ["__scopeId", "data-v-79ce70e2
|
|
|
3548
3553
|
"text-size": 10
|
|
3549
3554
|
},
|
|
3550
3555
|
paint: {
|
|
3551
|
-
"text-color": [
|
|
3552
|
-
"step",
|
|
3553
|
-
["get", "val"],
|
|
3554
|
-
"rgba(0, 0, 0, 0.7)",
|
|
3555
|
-
9,
|
|
3556
|
-
"rgba(255,255,255,0.8)"
|
|
3557
|
-
]
|
|
3556
|
+
"text-color": ["step", ["get", "val"], "rgba(0, 0, 0, 0.7)", 9, "rgba(255,255,255,0.8)"]
|
|
3558
3557
|
}
|
|
3559
3558
|
},
|
|
3560
3559
|
this.beforeLayer
|
|
@@ -3574,7 +3573,7 @@ const Bi = /* @__PURE__ */ X(Ai, [["render", Oi], ["__scopeId", "data-v-79ce70e2
|
|
|
3574
3573
|
}, Hi = { class: "text-caption px-2" };
|
|
3575
3574
|
function Gi(o, e, t, i, a, r) {
|
|
3576
3575
|
var m;
|
|
3577
|
-
const s = w("
|
|
3576
|
+
const s = w("VBtn"), c = w("VCol"), n = w("VRow"), p = w("VCardText"), d = w("VCard");
|
|
3578
3577
|
return (m = t.sigWaveHeight) != null && m.active ? (y(), M("div", Ei, [
|
|
3579
3578
|
l("div", {
|
|
3580
3579
|
class: "menu-bar-box pa-1 rounded",
|
|
@@ -3602,14 +3601,14 @@ function Gi(o, e, t, i, a, r) {
|
|
|
3602
3601
|
style: Q({ position: "absolute", top: "240px", right: a.right + 50 + "px" })
|
|
3603
3602
|
}, {
|
|
3604
3603
|
default: g(() => [
|
|
3605
|
-
h(
|
|
3604
|
+
h(p, { class: "pa-1 text-body-2 d-flex flex-column justify-center align-start opacity-80" }, {
|
|
3606
3605
|
default: g(() => [
|
|
3607
3606
|
e[1] || (e[1] = l("div", { class: "text-body-2 ma-1" }, "Wave Height", -1)),
|
|
3608
3607
|
h(n, { class: "ma-0" }, {
|
|
3609
3608
|
default: g(() => [
|
|
3610
3609
|
(y(!0), M(fe, null, _e(a.list, (b, f) => (y(), V(c, {
|
|
3611
|
-
cols: "12",
|
|
3612
3610
|
key: f,
|
|
3611
|
+
cols: "12",
|
|
3613
3612
|
class: "d-flex flex-row justify-start align-center pa-1"
|
|
3614
3613
|
}, {
|
|
3615
3614
|
default: g(() => [
|
|
@@ -3635,7 +3634,7 @@ function Gi(o, e, t, i, a, r) {
|
|
|
3635
3634
|
}, 8, ["style"]), [
|
|
3636
3635
|
[Ge, a.showCaption]
|
|
3637
3636
|
])
|
|
3638
|
-
])) :
|
|
3637
|
+
])) : B("", !0);
|
|
3639
3638
|
}
|
|
3640
3639
|
const Wi = /* @__PURE__ */ X(ji, [["render", Gi]]), Ui = {
|
|
3641
3640
|
name: "IdmSwell",
|
|
@@ -3923,7 +3922,7 @@ const Yi = /* @__PURE__ */ X(Ui, [["render", Vi]]), Zi = {
|
|
|
3923
3922
|
};
|
|
3924
3923
|
function qi(o, e, t, i, a, r) {
|
|
3925
3924
|
var n;
|
|
3926
|
-
const s = w("
|
|
3925
|
+
const s = w("VBtn"), c = w("VTooltip");
|
|
3927
3926
|
return (n = t.prmsl) != null && n.active ? (y(), M("div", Xi, [
|
|
3928
3927
|
l("div", {
|
|
3929
3928
|
class: "menu-bar-box pa-1 rounded",
|
|
@@ -3931,11 +3930,10 @@ function qi(o, e, t, i, a, r) {
|
|
|
3931
3930
|
}, [
|
|
3932
3931
|
h(c, {
|
|
3933
3932
|
text: "Map Layers",
|
|
3934
|
-
location: "left"
|
|
3935
|
-
"open-delay": 1e3
|
|
3933
|
+
location: "left"
|
|
3936
3934
|
}, {
|
|
3937
|
-
activator: g(({ props:
|
|
3938
|
-
h(s, j(
|
|
3935
|
+
activator: g(({ props: p }) => [
|
|
3936
|
+
h(s, j(p, {
|
|
3939
3937
|
"min-width": "32",
|
|
3940
3938
|
width: "32",
|
|
3941
3939
|
height: "32",
|
|
@@ -3953,7 +3951,7 @@ function qi(o, e, t, i, a, r) {
|
|
|
3953
3951
|
_: 1
|
|
3954
3952
|
})
|
|
3955
3953
|
], 4)
|
|
3956
|
-
])) :
|
|
3954
|
+
])) : B("", !0);
|
|
3957
3955
|
}
|
|
3958
3956
|
const Ki = /* @__PURE__ */ X(Zi, [["render", qi]]);
|
|
3959
3957
|
const Ji = {
|
|
@@ -4078,7 +4076,7 @@ function $i(o, e, t, i, a, r) {
|
|
|
4078
4076
|
l("span", null, "90", -1),
|
|
4079
4077
|
l("span", null, null, -1)
|
|
4080
4078
|
]), 4)
|
|
4081
|
-
])) :
|
|
4079
|
+
])) : B("", !0);
|
|
4082
4080
|
}
|
|
4083
4081
|
const er = /* @__PURE__ */ X(Ji, [["render", $i]]);
|
|
4084
4082
|
const tr = {
|
|
@@ -4188,7 +4186,7 @@ function ar(o, e, t, i, a, r) {
|
|
|
4188
4186
|
l("span", null, "80", -1),
|
|
4189
4187
|
l("span", null, "100", -1)
|
|
4190
4188
|
]), 4)
|
|
4191
|
-
])) :
|
|
4189
|
+
])) : B("", !0);
|
|
4192
4190
|
}
|
|
4193
4191
|
const ir = /* @__PURE__ */ X(tr, [["render", ar], ["__scopeId", "data-v-9696d73b"]]);
|
|
4194
4192
|
const rr = {
|
|
@@ -4307,7 +4305,7 @@ function sr(o, e, t, i, a, r) {
|
|
|
4307
4305
|
l("span", null, "2", -1),
|
|
4308
4306
|
l("span", null, "3", -1)
|
|
4309
4307
|
]), 4)
|
|
4310
|
-
])) :
|
|
4308
|
+
])) : B("", !0);
|
|
4311
4309
|
}
|
|
4312
4310
|
const nr = /* @__PURE__ */ X(rr, [["render", sr]]);
|
|
4313
4311
|
const cr = {
|
|
@@ -4428,7 +4426,7 @@ function hr(o, e, t, i, a, r) {
|
|
|
4428
4426
|
l("span", null, "20", -1),
|
|
4429
4427
|
l("span", null, "30", -1)
|
|
4430
4428
|
]), 4)
|
|
4431
|
-
])) :
|
|
4429
|
+
])) : B("", !0);
|
|
4432
4430
|
}
|
|
4433
4431
|
const dr = /* @__PURE__ */ X(cr, [["render", hr]]);
|
|
4434
4432
|
const pr = {
|
|
@@ -4537,7 +4535,7 @@ function gr(o, e, t, i, a, r) {
|
|
|
4537
4535
|
l("span", null, "3", -1),
|
|
4538
4536
|
l("span", null, "9", -1)
|
|
4539
4537
|
]), 4)
|
|
4540
|
-
])) :
|
|
4538
|
+
])) : B("", !0);
|
|
4541
4539
|
}
|
|
4542
4540
|
const fr = /* @__PURE__ */ X(pr, [["render", gr]]);
|
|
4543
4541
|
const br = {
|
|
@@ -4649,7 +4647,7 @@ function wr(o, e, t, i, a, r) {
|
|
|
4649
4647
|
l("span", null, "30", -1),
|
|
4650
4648
|
l("span", null, "40", -1)
|
|
4651
4649
|
]), 4)
|
|
4652
|
-
])) :
|
|
4650
|
+
])) : B("", !0);
|
|
4653
4651
|
}
|
|
4654
4652
|
const xr = /* @__PURE__ */ X(br, [["render", wr]]);
|
|
4655
4653
|
const vr = {
|
|
@@ -4774,7 +4772,7 @@ function kr(o, e, t, i, a, r) {
|
|
|
4774
4772
|
l("span", null, "30", -1),
|
|
4775
4773
|
l("span", null, "40", -1)
|
|
4776
4774
|
]), 4)
|
|
4777
|
-
])) :
|
|
4775
|
+
])) : B("", !0);
|
|
4778
4776
|
}
|
|
4779
4777
|
const zr = /* @__PURE__ */ X(vr, [["render", kr]]);
|
|
4780
4778
|
const Lr = {
|
|
@@ -4987,7 +4985,7 @@ const Lr = {
|
|
|
4987
4985
|
(o == null ? void 0 : o.data.code) === 0 && (this.sourceList = o == null ? void 0 : o.data.data);
|
|
4988
4986
|
},
|
|
4989
4987
|
async fetchWeatherLayers(o = {}) {
|
|
4990
|
-
var a, r, s, c, n,
|
|
4988
|
+
var a, r, s, c, n, p, d, m, b;
|
|
4991
4989
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
4992
4990
|
let t = 0, i = 0;
|
|
4993
4991
|
if (this.map) {
|
|
@@ -5034,7 +5032,7 @@ const Lr = {
|
|
|
5034
5032
|
});
|
|
5035
5033
|
}
|
|
5036
5034
|
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"]) {
|
|
5037
|
-
const k = (
|
|
5035
|
+
const k = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, v = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
5038
5036
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
5039
5037
|
type: "json",
|
|
5040
5038
|
direction: k,
|
|
@@ -5076,7 +5074,7 @@ const Lr = {
|
|
|
5076
5074
|
}, 500);
|
|
5077
5075
|
},
|
|
5078
5076
|
handleRampColorInitial() {
|
|
5079
|
-
var o, e, t, i, a, r, s, c, n,
|
|
5077
|
+
var o, e, t, i, a, r, s, c, n, p, d, m;
|
|
5080
5078
|
this.viewport.map.getSource((o = this.viewport) == null ? void 0 : o.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
5081
5079
|
type: "canvas",
|
|
5082
5080
|
canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
|
|
@@ -5097,7 +5095,7 @@ const Lr = {
|
|
|
5097
5095
|
canvas: (n = this.viewport) == null ? void 0 : n.particleCanvas,
|
|
5098
5096
|
animate: !0,
|
|
5099
5097
|
coordinates: this.viewport.getBoundLngLat()
|
|
5100
|
-
}), this.viewport.map.getLayer((
|
|
5098
|
+
}), this.viewport.map.getLayer((p = this.viewport) == null ? void 0 : p.particleLayer) || this.viewport.map.addLayer(
|
|
5101
5099
|
{
|
|
5102
5100
|
type: "raster",
|
|
5103
5101
|
id: (d = this.viewport) == null ? void 0 : d.particleLayer,
|
|
@@ -5110,10 +5108,10 @@ const Lr = {
|
|
|
5110
5108
|
);
|
|
5111
5109
|
},
|
|
5112
5110
|
handleDrawWeather4Json() {
|
|
5113
|
-
var
|
|
5111
|
+
var p, d, m, b, f, L, S;
|
|
5114
5112
|
const o = (/* @__PURE__ */ new Date()).valueOf();
|
|
5115
5113
|
let e = 0, t = 0;
|
|
5116
|
-
const i = (
|
|
5114
|
+
const i = (p = this.map) == null ? void 0 : p.getBounds(), a = (d = this.map) == null ? void 0 : d.getZoom(), r = ae.convertToStdLng(i._sw.lng), s = ae.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
|
|
5117
5115
|
for (const P in this.weatherLayers) {
|
|
5118
5116
|
let E = !1;
|
|
5119
5117
|
if (this.weatherLayers[P].active && this.weatherLayers[P].type === "json") {
|
|
@@ -5384,7 +5382,7 @@ const Lr = {
|
|
|
5384
5382
|
}, Er = { class: "text-body-1 py-2" }, Fr = { class: "text-body-1 font-weight-medium" }, Nr = { class: "text-body-2 opacity-70" }, Hr = { class: "text-body-2 opacity-70 pb-1" };
|
|
5385
5383
|
function Gr(o, e, t, i, a, r) {
|
|
5386
5384
|
var K, se, me, pe, he, q, I, ne, ge, be, ke, ze, Se, Me, Te;
|
|
5387
|
-
const s = w("VBtn"), c = w("VTooltip"), n = w("VSwitch"),
|
|
5385
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VSwitch"), p = w("VCardTitle"), d = w("VCardItem"), m = w("VCheckbox"), b = w("VCardText"), f = w("VCard"), L = w("VBtnToggle"), S = w("VDivider"), P = w("IdmWindBarb"), E = w("IdmSigWaveHeight"), T = w("IdmCurrentDirection"), k = w("IdmPrmsl"), v = w("IdmWindParticle"), _ = w("IdmCurrentParticle"), z = w("IdmWave"), x = w("IdmSwell"), R = w("IdmIceEdge"), H = w("IdmIceCover"), Y = w("IdmIceThickness"), G = w("IdmPrecip3h"), W = w("IdmVisibility"), $ = w("IdmWaterTemp"), ee = w("IdmTemp");
|
|
5388
5386
|
return y(), M("div", Pr, [
|
|
5389
5387
|
l("div", {
|
|
5390
5388
|
class: "menu-bar-box transition pa-1",
|
|
@@ -5456,7 +5454,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5456
5454
|
default: g(() => [
|
|
5457
5455
|
h(d, { class: "border-b-thin" }, {
|
|
5458
5456
|
default: g(() => [
|
|
5459
|
-
h(
|
|
5457
|
+
h(p, {
|
|
5460
5458
|
class: "text-subtitle-1",
|
|
5461
5459
|
style: { "font-size": "16px !important" }
|
|
5462
5460
|
}, {
|
|
@@ -5498,7 +5496,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5498
5496
|
default: g(() => [
|
|
5499
5497
|
h(d, { class: "border-b-thin" }, {
|
|
5500
5498
|
default: g(() => [
|
|
5501
|
-
h(
|
|
5499
|
+
h(p, {
|
|
5502
5500
|
class: "text-subtitle-1",
|
|
5503
5501
|
style: { "font-size": "16px !important" }
|
|
5504
5502
|
}, {
|
|
@@ -5540,7 +5538,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5540
5538
|
style: { "font-size": "14px" },
|
|
5541
5539
|
"hide-details": ""
|
|
5542
5540
|
}, null, 8, ["modelValue"])
|
|
5543
|
-
])) :
|
|
5541
|
+
])) : B("", !0),
|
|
5544
5542
|
a.checkList.includes("current-particle") && te.key === "current-particle" ? (y(), M("div", Ar, [
|
|
5545
5543
|
e[9] || (e[9] = l("span", null, "Particle", -1)),
|
|
5546
5544
|
h(n, {
|
|
@@ -5553,7 +5551,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5553
5551
|
height: "20",
|
|
5554
5552
|
"hide-details": ""
|
|
5555
5553
|
}, null, 8, ["modelValue"])
|
|
5556
|
-
])) :
|
|
5554
|
+
])) : B("", !0),
|
|
5557
5555
|
a.checkList.includes("ice-forecast") && te.key === "ice-forecast" ? (y(), V(L, {
|
|
5558
5556
|
key: 2,
|
|
5559
5557
|
modelValue: a.iceToggleValue,
|
|
@@ -5596,7 +5594,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5596
5594
|
}, 8, ["color", "disabled"])
|
|
5597
5595
|
]),
|
|
5598
5596
|
_: 1
|
|
5599
|
-
}, 8, ["modelValue", "disabled"])) :
|
|
5597
|
+
}, 8, ["modelValue", "disabled"])) : B("", !0)
|
|
5600
5598
|
], 64))), 128))
|
|
5601
5599
|
])
|
|
5602
5600
|
]),
|
|
@@ -5612,7 +5610,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5612
5610
|
default: g(() => [
|
|
5613
5611
|
h(d, { class: "border-b-thin" }, {
|
|
5614
5612
|
default: g(() => [
|
|
5615
|
-
h(
|
|
5613
|
+
h(p, {
|
|
5616
5614
|
class: "text-subtitle-1",
|
|
5617
5615
|
style: { "font-size": "16px !important" }
|
|
5618
5616
|
}, {
|
|
@@ -5636,7 +5634,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5636
5634
|
}, [
|
|
5637
5635
|
l("div", Or, C(J.name) + " " + C(J.resolution) + C(o.$t("units.km")) + " " + C(J.length) + C(o.$t("units.days")), 1),
|
|
5638
5636
|
l("div", Br, C(o.$t("weather.source")) + ": " + C(J.provider), 1),
|
|
5639
|
-
(ie = (xe = (Ce = J == null ? void 0 : J.update) == null ? void 0 : Ce.default) == null ? void 0 : xe.meta) != null && ie.initialisationTime ? (y(), M("div", jr, C(o.$t("weather.lastUpdate")) + ": " + C(r.computeDateZ((Le = (N = (ue = J == null ? void 0 : J.update) == null ? void 0 : ue.default) == null ? void 0 : N.meta) == null ? void 0 : Le.initialisationTime)), 1)) :
|
|
5637
|
+
(ie = (xe = (Ce = J == null ? void 0 : J.update) == null ? void 0 : Ce.default) == null ? void 0 : xe.meta) != null && ie.initialisationTime ? (y(), M("div", jr, C(o.$t("weather.lastUpdate")) + ": " + C(r.computeDateZ((Le = (N = (ue = J == null ? void 0 : J.update) == null ? void 0 : ue.default) == null ? void 0 : N.meta) == null ? void 0 : Le.initialisationTime)), 1)) : B("", !0)
|
|
5640
5638
|
], 64);
|
|
5641
5639
|
}), 128)),
|
|
5642
5640
|
h(S),
|
|
@@ -5668,7 +5666,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5668
5666
|
"before-layer": "empty-layer-2",
|
|
5669
5667
|
wind: (K = a.weatherLayers) == null ? void 0 : K.wind,
|
|
5670
5668
|
"menu-toggle": t.menuToggle
|
|
5671
|
-
}, o.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) :
|
|
5669
|
+
}, o.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : B("", !0),
|
|
5672
5670
|
t.map ? (y(), V(E, j({
|
|
5673
5671
|
key: 1,
|
|
5674
5672
|
map: t.map,
|
|
@@ -5676,7 +5674,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5676
5674
|
"sig-wave-height": (se = a.weatherLayers) == null ? void 0 : se["sig-wave-height"],
|
|
5677
5675
|
"menu-toggle": t.menuToggle,
|
|
5678
5676
|
"active-weather-layers": a.activeWeatherLayers
|
|
5679
|
-
}, o.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) :
|
|
5677
|
+
}, o.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : B("", !0),
|
|
5680
5678
|
t.map ? (y(), V(T, j({
|
|
5681
5679
|
key: 2,
|
|
5682
5680
|
map: t.map,
|
|
@@ -5684,7 +5682,7 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5684
5682
|
"before-layer": "empty-layer-2",
|
|
5685
5683
|
current: (me = a.weatherLayers) == null ? void 0 : me.current,
|
|
5686
5684
|
"menu-toggle": t.menuToggle
|
|
5687
|
-
}, o.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) :
|
|
5685
|
+
}, o.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : B("", !0),
|
|
5688
5686
|
t.map ? (y(), V(k, j({
|
|
5689
5687
|
key: 3,
|
|
5690
5688
|
map: t.map,
|
|
@@ -5692,74 +5690,74 @@ function Gr(o, e, t, i, a, r) {
|
|
|
5692
5690
|
prmsl: (pe = a.weatherLayers) == null ? void 0 : pe.prmsl,
|
|
5693
5691
|
"menu-toggle": t.menuToggle,
|
|
5694
5692
|
"active-weather-layers": a.activeWeatherLayers
|
|
5695
|
-
}, o.$attrs), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers"])) :
|
|
5693
|
+
}, o.$attrs), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers"])) : B("", !0),
|
|
5696
5694
|
t.map ? (y(), V(v, j({
|
|
5697
5695
|
key: 4,
|
|
5698
5696
|
viewport: a.viewport,
|
|
5699
5697
|
factor: (he = a.weatherLayers) == null ? void 0 : he["wind-particle"],
|
|
5700
5698
|
"menu-toggle": t.menuToggle
|
|
5701
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5699
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
|
|
5702
5700
|
t.map ? (y(), V(_, j({
|
|
5703
5701
|
key: 5,
|
|
5704
5702
|
viewport: a.viewport,
|
|
5705
5703
|
factor: (q = a.weatherLayers) == null ? void 0 : q["current-particle"],
|
|
5706
5704
|
"menu-toggle": t.menuToggle
|
|
5707
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5705
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
|
|
5708
5706
|
t.map ? (y(), V(z, j({
|
|
5709
5707
|
key: 6,
|
|
5710
5708
|
viewport: a.viewport,
|
|
5711
5709
|
factor: (I = a.weatherLayers) == null ? void 0 : I["sig-wave"],
|
|
5712
5710
|
"menu-toggle": t.menuToggle
|
|
5713
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5711
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
|
|
5714
5712
|
t.map ? (y(), V(x, j({
|
|
5715
5713
|
key: 7,
|
|
5716
5714
|
map: t.map,
|
|
5717
5715
|
swell: (ne = a.weatherLayers) == null ? void 0 : ne.swell,
|
|
5718
5716
|
"menu-toggle": t.menuToggle,
|
|
5719
5717
|
"active-weather-layers": a.activeWeatherLayers
|
|
5720
|
-
}, o.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) :
|
|
5718
|
+
}, o.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) : B("", !0),
|
|
5721
5719
|
t.map ? (y(), V(R, j({
|
|
5722
5720
|
key: 8,
|
|
5723
5721
|
viewport: a.viewport,
|
|
5724
5722
|
factor: (ge = a.weatherLayers) == null ? void 0 : ge["ice-edge"],
|
|
5725
5723
|
"menu-toggle": t.menuToggle
|
|
5726
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5724
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
|
|
5727
5725
|
t.map ? (y(), V(H, j({
|
|
5728
5726
|
key: 9,
|
|
5729
5727
|
viewport: a.viewport,
|
|
5730
5728
|
factor: (be = a.weatherLayers) == null ? void 0 : be["ice-cover"],
|
|
5731
5729
|
"menu-toggle": t.menuToggle
|
|
5732
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5730
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
|
|
5733
5731
|
t.map ? (y(), V(Y, j({
|
|
5734
5732
|
key: 10,
|
|
5735
5733
|
viewport: a.viewport,
|
|
5736
5734
|
factor: (ke = a.weatherLayers) == null ? void 0 : ke["ice-thickness"],
|
|
5737
5735
|
"menu-toggle": t.menuToggle
|
|
5738
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5736
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
|
|
5739
5737
|
t.map ? (y(), V(G, j({
|
|
5740
5738
|
key: 11,
|
|
5741
5739
|
viewport: a.viewport,
|
|
5742
5740
|
factor: (ze = a.weatherLayers) == null ? void 0 : ze.precip3h,
|
|
5743
5741
|
"menu-toggle": t.menuToggle
|
|
5744
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5742
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
|
|
5745
5743
|
t.map ? (y(), V(W, j({
|
|
5746
5744
|
key: 12,
|
|
5747
5745
|
viewport: a.viewport,
|
|
5748
5746
|
factor: (Se = a.weatherLayers) == null ? void 0 : Se.visibility,
|
|
5749
5747
|
"menu-toggle": t.menuToggle
|
|
5750
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5748
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
|
|
5751
5749
|
t.map ? (y(), V($, j({
|
|
5752
5750
|
key: 13,
|
|
5753
5751
|
viewport: a.viewport,
|
|
5754
5752
|
factor: (Me = a.weatherLayers) == null ? void 0 : Me["water-temp"],
|
|
5755
5753
|
"menu-toggle": t.menuToggle
|
|
5756
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5754
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0),
|
|
5757
5755
|
t.map ? (y(), V(ee, j({
|
|
5758
5756
|
key: 14,
|
|
5759
5757
|
viewport: a.viewport,
|
|
5760
5758
|
factor: (Te = a.weatherLayers) == null ? void 0 : Te.temp,
|
|
5761
5759
|
"menu-toggle": t.menuToggle
|
|
5762
|
-
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) :
|
|
5760
|
+
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : B("", !0)
|
|
5763
5761
|
]);
|
|
5764
5762
|
}
|
|
5765
5763
|
const Wr = /* @__PURE__ */ X(Lr, [["render", Gr]]), We = [
|
|
@@ -6082,17 +6080,17 @@ class Go {
|
|
|
6082
6080
|
let n = We.find((d) => {
|
|
6083
6081
|
var m, b, f;
|
|
6084
6082
|
return ((m = d.models) == null ? void 0 : m.includes(c)) || ((b = d.alias) == null ? void 0 : b.toLowerCase()) === c || ((f = d.name) == null ? void 0 : f.toLowerCase()) === c;
|
|
6085
|
-
}),
|
|
6083
|
+
}), p = Ue.find((d) => {
|
|
6086
6084
|
var m, b, f;
|
|
6087
6085
|
return ((m = d.models) == null ? void 0 : m.includes(c)) || ((b = d.alias) == null ? void 0 : b.toLowerCase()) === c || ((f = d.name) == null ? void 0 : f.toLowerCase()) === c;
|
|
6088
6086
|
});
|
|
6089
6087
|
n = n || We.find((d) => {
|
|
6090
6088
|
var m, b;
|
|
6091
|
-
return ((m = d.alias) == null ? void 0 : m.toLowerCase()) === ((b =
|
|
6092
|
-
}),
|
|
6089
|
+
return ((m = d.alias) == null ? void 0 : m.toLowerCase()) === ((b = p == null ? void 0 : p.alias) == null ? void 0 : b.toLowerCase());
|
|
6090
|
+
}), p = p || Ue.find((d) => {
|
|
6093
6091
|
var m, b;
|
|
6094
6092
|
return ((m = d.alias) == null ? void 0 : m.toLowerCase()) === ((b = n == null ? void 0 : n.alias) == null ? void 0 : b.toLowerCase());
|
|
6095
|
-
}), n = n || We[0],
|
|
6093
|
+
}), n = n || We[0], p = p || Ue[0], r.push((t = n.models) != null && t.includes(c) ? c : n.model), s.push((i = p.models) != null && i.includes(c) ? c : p.model);
|
|
6096
6094
|
}
|
|
6097
6095
|
return {
|
|
6098
6096
|
weatherModels: r.join(","),
|
|
@@ -6109,46 +6107,46 @@ class Go {
|
|
|
6109
6107
|
}), a;
|
|
6110
6108
|
}
|
|
6111
6109
|
static pickHourly(e, t) {
|
|
6112
|
-
var i, a, r, s, c, n,
|
|
6113
|
-
const ie = typeof t == "string" ? D(t) : t, ue = e == null ? void 0 : e.weather, N = e == null ? void 0 : e.marine, Le = D((a = (i = ue == null ? void 0 : ue[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Le.clone().add((c = (s = (r = ue == null ? void 0 : ue[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), re = Le.clone().add((d = (
|
|
6110
|
+
var i, a, r, s, c, n, p, d, m, b, f, L, S, P, E, T, k, v, _, z, x, R, H, Y, G, W, $, ee, K, se, me, pe, he, q, I, ne, ge, be, ke, ze, Se, Me, Te, te, de, we, Re, J, Ce, xe;
|
|
6111
|
+
const ie = typeof t == "string" ? D(t) : t, ue = e == null ? void 0 : e.weather, N = e == null ? void 0 : e.marine, Le = D((a = (i = ue == null ? void 0 : ue[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Le.clone().add((c = (s = (r = ue == null ? void 0 : ue[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), re = Le.clone().add((d = (p = (n = ue == null ? void 0 : ue[0]) == null ? void 0 : n.hourly) == null ? void 0 : p.time) == null ? void 0 : d.at(-1), "h"), Ee = [];
|
|
6114
6112
|
if (ie.isBetween(oe, re, "millisecond", "[]")) {
|
|
6115
|
-
const
|
|
6113
|
+
const O = ie.utc().diff(oe, "h", !1);
|
|
6116
6114
|
let ye, Oe;
|
|
6117
6115
|
if (ue) {
|
|
6118
6116
|
let Fe = 0, Ne = 0;
|
|
6119
6117
|
for (const A of ue) {
|
|
6120
6118
|
const Z = A == null ? void 0 : A.hourly;
|
|
6121
|
-
for (let Ae =
|
|
6119
|
+
for (let Ae = O - (O - 1) % 3; Ae <= O; Ae++)
|
|
6122
6120
|
Fe += (m = Z == null ? void 0 : Z.precipitation) == null ? void 0 : m.at(Ae);
|
|
6123
|
-
for (let Ae =
|
|
6121
|
+
for (let Ae = O - (O - 1) % 6; Ae <= O; Ae++)
|
|
6124
6122
|
Ne += (b = Z == null ? void 0 : Z.precipitation) == null ? void 0 : b.at(Ae);
|
|
6125
6123
|
ye = {
|
|
6126
|
-
temp: (f = Z == null ? void 0 : Z.temperature_2m) == null ? void 0 : f.at(
|
|
6127
|
-
apparentTemp: (L = Z == null ? void 0 : Z.apparent_temperature) == null ? void 0 : L.at(
|
|
6128
|
-
rh: (S = Z == null ? void 0 : Z.relative_humidity_2m) == null ? void 0 : S.at(
|
|
6129
|
-
dp: (P = Z == null ? void 0 : Z.dew_point_2m) == null ? void 0 : P.at(
|
|
6124
|
+
temp: (f = Z == null ? void 0 : Z.temperature_2m) == null ? void 0 : f.at(O),
|
|
6125
|
+
apparentTemp: (L = Z == null ? void 0 : Z.apparent_temperature) == null ? void 0 : L.at(O),
|
|
6126
|
+
rh: (S = Z == null ? void 0 : Z.relative_humidity_2m) == null ? void 0 : S.at(O),
|
|
6127
|
+
dp: (P = Z == null ? void 0 : Z.dew_point_2m) == null ? void 0 : P.at(O),
|
|
6130
6128
|
precip: {
|
|
6131
|
-
probability: (E = Z == null ? void 0 : Z.precipitation_probability) == null ? void 0 : E.at(
|
|
6132
|
-
sum: (T = Z == null ? void 0 : Z.precipitation) == null ? void 0 : T.at(
|
|
6129
|
+
probability: (E = Z == null ? void 0 : Z.precipitation_probability) == null ? void 0 : E.at(O),
|
|
6130
|
+
sum: (T = Z == null ? void 0 : Z.precipitation) == null ? void 0 : T.at(O),
|
|
6133
6131
|
sum3Hours: Math.round(Fe * 100) / 100,
|
|
6134
6132
|
sum6Hours: Math.round(Ne * 100) / 100
|
|
6135
6133
|
},
|
|
6136
|
-
pmsl: (k = Z == null ? void 0 : Z.pressure_msl) == null ? void 0 : k.at(
|
|
6137
|
-
psurf: (v = Z == null ? void 0 : Z.surface_pressure) == null ? void 0 : v.at(
|
|
6138
|
-
code: (_ = Z == null ? void 0 : Z.weather_code) == null ? void 0 : _.at(
|
|
6139
|
-
visibility: this.m2nm((z = Z == null ? void 0 : Z.visibility) == null ? void 0 : z.at(
|
|
6134
|
+
pmsl: (k = Z == null ? void 0 : Z.pressure_msl) == null ? void 0 : k.at(O),
|
|
6135
|
+
psurf: (v = Z == null ? void 0 : Z.surface_pressure) == null ? void 0 : v.at(O),
|
|
6136
|
+
code: (_ = Z == null ? void 0 : Z.weather_code) == null ? void 0 : _.at(O),
|
|
6137
|
+
visibility: this.m2nm((z = Z == null ? void 0 : Z.visibility) == null ? void 0 : z.at(O)),
|
|
6140
6138
|
wind: {
|
|
6141
|
-
speed: (x = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : x.at(
|
|
6142
|
-
kts: (R = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : R.at(
|
|
6143
|
-
degree: (H = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : H.at(
|
|
6144
|
-
bearing: ((Y = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : Y.at(
|
|
6145
|
-
gusts: (W = Z == null ? void 0 : Z.wind_gusts_10m) == null ? void 0 : W.at(
|
|
6139
|
+
speed: (x = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : x.at(O),
|
|
6140
|
+
kts: (R = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : R.at(O),
|
|
6141
|
+
degree: (H = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : H.at(O),
|
|
6142
|
+
bearing: ((Y = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : Y.at(O)) !== null ? (((G = Z == null ? void 0 : Z.wind_direction_10m) == null ? void 0 : G.at(O)) + 180) % 360 : null,
|
|
6143
|
+
gusts: (W = Z == null ? void 0 : Z.wind_gusts_10m) == null ? void 0 : W.at(O)
|
|
6146
6144
|
},
|
|
6147
|
-
isDay: ($ = Z == null ? void 0 : Z.is_day) == null ? void 0 : $.at(
|
|
6145
|
+
isDay: ($ = Z == null ? void 0 : Z.is_day) == null ? void 0 : $.at(O)
|
|
6148
6146
|
};
|
|
6149
6147
|
const { name: Ye, url: Ze, bg: Xe } = this.parseWeatherCode(ye.code, ye.isDay);
|
|
6150
6148
|
ye.name = Ye, ye.url = Ze, ye.bg = Xe, ye.wind.scale = this.beaufort(this.kts2ms(ye.wind.kts)), ye.wind.direction = this.degree2Direction(ye.wind.degree), Ee.push({
|
|
6151
|
-
utc: oe.add(
|
|
6149
|
+
utc: oe.add(O, "h").format(),
|
|
6152
6150
|
model: A.model,
|
|
6153
6151
|
weather: { ...ye }
|
|
6154
6152
|
});
|
|
@@ -6161,34 +6159,34 @@ class Go {
|
|
|
6161
6159
|
Oe = {
|
|
6162
6160
|
wave: {
|
|
6163
6161
|
sig: {
|
|
6164
|
-
height: (ee = A == null ? void 0 : A.wave_height) == null ? void 0 : ee.at(
|
|
6165
|
-
degree: (K = A == null ? void 0 : A.wave_direction) == null ? void 0 : K.at(
|
|
6166
|
-
bearing: ((se = A == null ? void 0 : A.wave_direction) == null ? void 0 : se.at(
|
|
6167
|
-
period: (pe = A == null ? void 0 : A.wave_period) == null ? void 0 : pe.at(
|
|
6162
|
+
height: (ee = A == null ? void 0 : A.wave_height) == null ? void 0 : ee.at(O),
|
|
6163
|
+
degree: (K = A == null ? void 0 : A.wave_direction) == null ? void 0 : K.at(O),
|
|
6164
|
+
bearing: ((se = A == null ? void 0 : A.wave_direction) == null ? void 0 : se.at(O)) !== null ? (((me = A == null ? void 0 : A.wave_direction) == null ? void 0 : me.at(O)) + 180) % 360 : null,
|
|
6165
|
+
period: (pe = A == null ? void 0 : A.wave_period) == null ? void 0 : pe.at(O)
|
|
6168
6166
|
},
|
|
6169
6167
|
swell: {
|
|
6170
|
-
height: (he = A == null ? void 0 : A.swell_wave_height) == null ? void 0 : he.at(
|
|
6171
|
-
degree: (q = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : q.at(
|
|
6172
|
-
bearing: ((I = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : I.at(
|
|
6173
|
-
period: (ge = A == null ? void 0 : A.swell_wave_period) == null ? void 0 : ge.at(
|
|
6174
|
-
peakPeriod: (be = A == null ? void 0 : A.swell_wave_peak_period) == null ? void 0 : be.at(
|
|
6168
|
+
height: (he = A == null ? void 0 : A.swell_wave_height) == null ? void 0 : he.at(O),
|
|
6169
|
+
degree: (q = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : q.at(O),
|
|
6170
|
+
bearing: ((I = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : I.at(O)) !== null ? (((ne = A == null ? void 0 : A.swell_wave_direction) == null ? void 0 : ne.at(O)) + 180) % 360 : null,
|
|
6171
|
+
period: (ge = A == null ? void 0 : A.swell_wave_period) == null ? void 0 : ge.at(O),
|
|
6172
|
+
peakPeriod: (be = A == null ? void 0 : A.swell_wave_peak_period) == null ? void 0 : be.at(O)
|
|
6175
6173
|
},
|
|
6176
6174
|
wd: {
|
|
6177
|
-
height: (ke = A == null ? void 0 : A.wind_wave_height) == null ? void 0 : ke.at(
|
|
6178
|
-
degree: (ze = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : ze.at(
|
|
6179
|
-
bearing: ((Se = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : Se.at(
|
|
6180
|
-
period: (Te = A == null ? void 0 : A.wind_wave_period) == null ? void 0 : Te.at(
|
|
6181
|
-
peakPeriod: (te = A == null ? void 0 : A.wind_wave_peak_period) == null ? void 0 : te.at(
|
|
6175
|
+
height: (ke = A == null ? void 0 : A.wind_wave_height) == null ? void 0 : ke.at(O),
|
|
6176
|
+
degree: (ze = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : ze.at(O),
|
|
6177
|
+
bearing: ((Se = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : Se.at(O)) !== null ? (((Me = A == null ? void 0 : A.wind_wave_direction) == null ? void 0 : Me.at(O)) + 180) % 360 : null,
|
|
6178
|
+
period: (Te = A == null ? void 0 : A.wind_wave_period) == null ? void 0 : Te.at(O),
|
|
6179
|
+
peakPeriod: (te = A == null ? void 0 : A.wind_wave_peak_period) == null ? void 0 : te.at(O)
|
|
6182
6180
|
}
|
|
6183
6181
|
},
|
|
6184
6182
|
current: {
|
|
6185
|
-
speed: (de = A == null ? void 0 : A.ocean_current_velocity) == null ? void 0 : de.at(
|
|
6186
|
-
kts: (we = A == null ? void 0 : A.ocean_current_velocity) == null ? void 0 : we.at(
|
|
6187
|
-
degree: (Re = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : Re.at(
|
|
6188
|
-
bearing: ((J = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : J.at(
|
|
6183
|
+
speed: (de = A == null ? void 0 : A.ocean_current_velocity) == null ? void 0 : de.at(O),
|
|
6184
|
+
kts: (we = A == null ? void 0 : A.ocean_current_velocity) == null ? void 0 : we.at(O),
|
|
6185
|
+
degree: (Re = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : Re.at(O),
|
|
6186
|
+
bearing: ((J = A == null ? void 0 : A.ocean_current_direction) == null ? void 0 : J.at(O)) ?? null
|
|
6189
6187
|
},
|
|
6190
|
-
sst: (Ce = A == null ? void 0 : A.sea_surface_temperature) == null ? void 0 : Ce.at(
|
|
6191
|
-
height: (xe = A == null ? void 0 : A.sea_level_height_msl) == null ? void 0 : xe.at(
|
|
6188
|
+
sst: (Ce = A == null ? void 0 : A.sea_surface_temperature) == null ? void 0 : Ce.at(O),
|
|
6189
|
+
height: (xe = A == null ? void 0 : A.sea_level_height_msl) == null ? void 0 : xe.at(O)
|
|
6192
6190
|
}, Oe.wave = this.parseWave(Oe.wave, ye == null ? void 0 : ye.wind), Oe.current.direction = this.degree2Direction(Oe.current.degree), Object.assign(Ee[Fe], Oe), Fe++;
|
|
6193
6191
|
}
|
|
6194
6192
|
}
|
|
@@ -6196,7 +6194,7 @@ class Go {
|
|
|
6196
6194
|
return Ee;
|
|
6197
6195
|
}
|
|
6198
6196
|
static toLegacy(e) {
|
|
6199
|
-
var t, i, a, r, s, c, n,
|
|
6197
|
+
var t, i, a, r, s, c, n, p, d, m;
|
|
6200
6198
|
return {
|
|
6201
6199
|
wind: (t = e == null ? void 0 : e.weather) == null ? void 0 : t.wind,
|
|
6202
6200
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
@@ -6206,7 +6204,7 @@ class Go {
|
|
|
6206
6204
|
kts: (c = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.wind) == null ? void 0 : c.gusts
|
|
6207
6205
|
},
|
|
6208
6206
|
precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
|
|
6209
|
-
code: (
|
|
6207
|
+
code: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.code,
|
|
6210
6208
|
name: (d = e == null ? void 0 : e.weather) == null ? void 0 : d.name,
|
|
6211
6209
|
url: (m = e == null ? void 0 : e.weather) == null ? void 0 : m.url,
|
|
6212
6210
|
wave: e == null ? void 0 : e.wave,
|
|
@@ -6218,7 +6216,7 @@ class Go {
|
|
|
6218
6216
|
};
|
|
6219
6217
|
}
|
|
6220
6218
|
static pickDaily(e, t) {
|
|
6221
|
-
var i, a, r, s, c, n,
|
|
6219
|
+
var i, a, r, s, c, n, p, d, m, b, f, L, S, P, E, T, k, v, _, z, x, R, H, Y, G, W, $, ee, K, se, me, pe, he, q, I, ne, ge, be, ke, ze, Se, Me, Te, te;
|
|
6222
6220
|
const de = typeof t == "string" ? D(t) : t, we = e == null ? void 0 : e.weather, Re = e == null ? void 0 : e.marine, J = D((r = (a = (i = we == null ? void 0 : we[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Ce = D((n = (c = (s = we == null ? void 0 : we[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), xe = [];
|
|
6223
6221
|
if (de.isBetween(J, Ce, "millisecond", "[]")) {
|
|
6224
6222
|
let ie, ue;
|
|
@@ -6227,7 +6225,7 @@ class Go {
|
|
|
6227
6225
|
for (const Le of we) {
|
|
6228
6226
|
const oe = Le.daily;
|
|
6229
6227
|
ie = {
|
|
6230
|
-
code: (
|
|
6228
|
+
code: (p = oe.weather_code) == null ? void 0 : p.at(N),
|
|
6231
6229
|
temp: {
|
|
6232
6230
|
max: (d = oe.temperature_2m_max) == null ? void 0 : d.at(N),
|
|
6233
6231
|
min: (m = oe.temperature_2m_min) == null ? void 0 : m.at(N),
|
|
@@ -6258,8 +6256,8 @@ class Go {
|
|
|
6258
6256
|
bearing: ((W = oe.wind_direction_10m_dominant) == null ? void 0 : W.at(N)) !== null ? ((($ = oe.wind_direction_10m_dominant) == null ? void 0 : $.at(N)) + 180) % 360 : null
|
|
6259
6257
|
}
|
|
6260
6258
|
};
|
|
6261
|
-
const { name: re, url: Ee, bg:
|
|
6262
|
-
ie.name = re, ie.url = Ee, ie.bg =
|
|
6259
|
+
const { name: re, url: Ee, bg: O } = this.parseWeatherCode(ie.code, !0);
|
|
6260
|
+
ie.name = re, ie.url = Ee, ie.bg = O, ie.wind.scale = this.beaufort(this.kts2ms(ie.wind.kts)), ie.wind.direction = this.degree2Direction(ie.wind.degree), xe.push({
|
|
6263
6261
|
utc: J.add(N, "d").utc().format(),
|
|
6264
6262
|
model: Le.model,
|
|
6265
6263
|
weather: { ...ie }
|
|
@@ -6843,13 +6841,13 @@ const Ur = {
|
|
|
6843
6841
|
}
|
|
6844
6842
|
});
|
|
6845
6843
|
if (t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("weather links elapsed: ", t, ", total: ", e += t), ((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
|
|
6846
|
-
const
|
|
6847
|
-
await Ie.get(
|
|
6844
|
+
const p = (s = n == null ? void 0 : n.data) == null ? void 0 : s.data;
|
|
6845
|
+
await Ie.get(p.tropicals, {
|
|
6848
6846
|
headers: {
|
|
6849
6847
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6850
6848
|
key: "tropicals"
|
|
6851
6849
|
},
|
|
6852
|
-
responseType: /\.(jpg|png)$/.test(
|
|
6850
|
+
responseType: /\.(jpg|png)$/.test(p.tropicals) ? "blob" : "json"
|
|
6853
6851
|
}).then((d) => {
|
|
6854
6852
|
var f, L, S;
|
|
6855
6853
|
const m = Ho.convert2Geojson(((f = d == null ? void 0 : d.data) == null ? void 0 : f.data) || (d == null ? void 0 : d.data));
|
|
@@ -6893,7 +6891,7 @@ const Ur = {
|
|
|
6893
6891
|
));
|
|
6894
6892
|
},
|
|
6895
6893
|
handleRender() {
|
|
6896
|
-
var o, e, t, i, a, r, s, c, n,
|
|
6894
|
+
var o, e, t, i, a, r, s, c, n, p;
|
|
6897
6895
|
if (!this.map)
|
|
6898
6896
|
setTimeout(() => {
|
|
6899
6897
|
this.handleRender();
|
|
@@ -7001,7 +6999,7 @@ const Ur = {
|
|
|
7001
6999
|
}
|
|
7002
7000
|
}), f = (/* @__PURE__ */ new Date()).valueOf() - (m + b), console.log("[tropical] add elapsed: ", f, ", total: ", b += f)), (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), f = (/* @__PURE__ */ new Date()).valueOf() - (m + b), console.log("[tropical] update elapsed: ", f, ", total: ", b += f)) : (this.map.addSource(this.clusterSource, {
|
|
7003
7001
|
type: "geojson",
|
|
7004
|
-
data: (n = this.tropicals) != null && n.active ? (
|
|
7002
|
+
data: (n = this.tropicals) != null && n.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
7005
7003
|
// cluster: true,
|
|
7006
7004
|
// clusterRadius: 10, // 聚合半径
|
|
7007
7005
|
}), this.map.addLayer({
|
|
@@ -7141,7 +7139,7 @@ const Ur = {
|
|
|
7141
7139
|
);
|
|
7142
7140
|
},
|
|
7143
7141
|
handleDateChange() {
|
|
7144
|
-
var o, e, t, i, a, r, s, c, n,
|
|
7142
|
+
var o, e, t, i, a, r, s, c, n, p, d, m, b, f, L, S, P, E, T, k, v, _, z, x, R, H, Y, G, W, $, ee, K;
|
|
7145
7143
|
if ((o = this.interpolateMarkers) == null || o.forEach((se) => se == null ? void 0 : se.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
7146
7144
|
const se = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), me = this.interpolateData.filter((q) => q.properties.date === se.format() && !q.properties.disabled), pe = this.handleComputePolygons(me), he = F.featureCollection([...me]);
|
|
7147
7145
|
pe.forEach((q) => {
|
|
@@ -7163,7 +7161,7 @@ const Ur = {
|
|
|
7163
7161
|
for (const q of me)
|
|
7164
7162
|
if (!q.properties.disabled) {
|
|
7165
7163
|
let I = "#f44336";
|
|
7166
|
-
((c = (s = q.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((
|
|
7164
|
+
((c = (s = q.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((p = (n = q.properties) == null ? void 0 : n.wind) != null && p.kts) ? I = "#03f869" : ((m = (d = q.properties) == null ? void 0 : d.wind) == null ? void 0 : m.kts) >= 32 && ((f = (b = q.properties) == null ? void 0 : b.wind) == null ? void 0 : f.kts) < 47 ? I = "#f2f202" : ((S = (L = q.properties) == null ? void 0 : L.wind) == null ? void 0 : S.kts) >= 47 && ((E = (P = q.properties) == null ? void 0 : P.wind) == null ? void 0 : E.kts) < 63 ? I = "#ff9100" : ((k = (T = q.properties) == null ? void 0 : T.wind) == null ? void 0 : k.kts) >= 63 && ((_ = (v = q.properties) == null ? void 0 : v.wind) == null ? void 0 : _.kts) < 79 ? I = "#f44336" : ((x = (z = q.properties) == null ? void 0 : z.wind) == null ? void 0 : x.kts) >= 79 && ((H = (R = q.properties) == null ? void 0 : R.wind) == null ? void 0 : H.kts) < 94 ? I = "#f903d0" : ((G = (Y = q.properties) == null ? void 0 : Y.wind) == null ? void 0 : G.kts) >= 94 ? I = "#8702f9" : I = "#f44336";
|
|
7167
7165
|
const ne = `<svg t="1719918955501"
|
|
7168
7166
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
7169
7167
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -7187,7 +7185,7 @@ const Ur = {
|
|
|
7187
7185
|
(ee = this.map) != null && ee.getSource(this.interpolateSource) && ((K = this.map) == null || K.getSource(this.interpolateSource).setData(this.empty));
|
|
7188
7186
|
},
|
|
7189
7187
|
handleClick(o) {
|
|
7190
|
-
var r, s, c, n,
|
|
7188
|
+
var r, s, c, n, p, d, m, b;
|
|
7191
7189
|
const e = o.features[0], t = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
|
|
7192
7190
|
(f) => {
|
|
7193
7191
|
var L;
|
|
@@ -7200,7 +7198,7 @@ const Ur = {
|
|
|
7200
7198
|
}
|
|
7201
7199
|
);
|
|
7202
7200
|
this.activeTropicals = {
|
|
7203
|
-
name: (
|
|
7201
|
+
name: (p = e == null ? void 0 : e.properties) == null ? void 0 : p.name,
|
|
7204
7202
|
forecasts: t.map((f) => f.properties),
|
|
7205
7203
|
history: (d = i[0]) == null ? void 0 : d.properties,
|
|
7206
7204
|
showCircle: (b = (m = t[0]) == null ? void 0 : m.properties) == null ? void 0 : b.showCircle
|
|
@@ -7212,10 +7210,10 @@ const Ur = {
|
|
|
7212
7210
|
var i, a, r, s, c, n;
|
|
7213
7211
|
o.disabled = !o.disabled;
|
|
7214
7212
|
const e = `${o.name}-${o.model}`, t = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
|
|
7215
|
-
t.forEach((
|
|
7216
|
-
|
|
7217
|
-
}), this.interpolateData.forEach((
|
|
7218
|
-
|
|
7213
|
+
t.forEach((p) => {
|
|
7214
|
+
p.properties.category === e && (p.properties.disabled = o.disabled);
|
|
7215
|
+
}), this.interpolateData.forEach((p) => {
|
|
7216
|
+
p.properties.category === e && (p.properties.disabled = o.disabled);
|
|
7219
7217
|
}), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(F.featureCollection(t)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(F.featureCollection(t)), this.handleDateChange();
|
|
7220
7218
|
},
|
|
7221
7219
|
handleStrikeProbability(o) {
|
|
@@ -7293,7 +7291,7 @@ const Ur = {
|
|
|
7293
7291
|
}
|
|
7294
7292
|
}, Vr = { class: "idm-tropical-gl4" }, Yr = { key: 0 }, Zr = { class: "text-body-2 opacity-50" }, Xr = { class: "pa-1 d-flex justify-space-between align-center" }, qr = { class: "col col-left justify-start" }, Kr = { class: "col col-right justify-start" }, Jr = { class: "px-1 py-2 d-flex justify-space-between align-center" }, Qr = { class: "d-flex justify-space-between align-center col-left justify-start" }, $r = { class: "d-flex justify-space-between align-center col-right" }, el = { class: "pa-1 d-flex justify-space-between align-center" }, tl = { class: "d-flex justify-space-between align-center flex-1-1-100" }, ol = { class: "d-flex justify-end align-center flex-1-1-0 flex-wrap" }, al = ["onClick"];
|
|
7295
7293
|
function il(o, e, t, i, a, r) {
|
|
7296
|
-
const s = w("
|
|
7294
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), p = w("VCardSubtitle"), d = w("VCardItem"), m = w("VCardText"), b = w("VCard");
|
|
7297
7295
|
return y(), M("div", Vr, [
|
|
7298
7296
|
l("div", {
|
|
7299
7297
|
class: "menu-bar-box transition pa-1",
|
|
@@ -7301,8 +7299,7 @@ function il(o, e, t, i, a, r) {
|
|
|
7301
7299
|
}, [
|
|
7302
7300
|
h(c, {
|
|
7303
7301
|
text: o.$t("tropical.tropicals"),
|
|
7304
|
-
location: "left"
|
|
7305
|
-
"open-delay": 1e3
|
|
7302
|
+
location: "left"
|
|
7306
7303
|
}, {
|
|
7307
7304
|
activator: g(({ props: f }) => [
|
|
7308
7305
|
h(s, j(f, {
|
|
@@ -7324,10 +7321,10 @@ function il(o, e, t, i, a, r) {
|
|
|
7324
7321
|
}, 8, ["text"])
|
|
7325
7322
|
], 4),
|
|
7326
7323
|
He(h(b, {
|
|
7324
|
+
id: "idm-tropical-gl4-info",
|
|
7327
7325
|
class: "idm-tropical-gl4-info my-4",
|
|
7328
7326
|
width: "400",
|
|
7329
|
-
elevation: "16"
|
|
7330
|
-
id: "idm-tropical-gl4-info"
|
|
7327
|
+
elevation: "16"
|
|
7331
7328
|
}, {
|
|
7332
7329
|
default: g(() => [
|
|
7333
7330
|
h(d, { class: "border-b-thin" }, {
|
|
@@ -7340,7 +7337,7 @@ function il(o, e, t, i, a, r) {
|
|
|
7340
7337
|
var f, L, S, P, E;
|
|
7341
7338
|
return [
|
|
7342
7339
|
l("div", null, [
|
|
7343
|
-
(L = (f = a.activeTropicals) == null ? void 0 : f.history) != null && L.level ? (y(), M("span", Yr, C((P = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : P.level) + " , ", 1)) :
|
|
7340
|
+
(L = (f = a.activeTropicals) == null ? void 0 : f.history) != null && L.level ? (y(), M("span", Yr, C((P = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : P.level) + " , ", 1)) : B("", !0),
|
|
7344
7341
|
U(C((E = a.activeTropicals) == null ? void 0 : E.name), 1)
|
|
7345
7342
|
]),
|
|
7346
7343
|
h(s, {
|
|
@@ -7354,7 +7351,7 @@ function il(o, e, t, i, a, r) {
|
|
|
7354
7351
|
}),
|
|
7355
7352
|
_: 1
|
|
7356
7353
|
}),
|
|
7357
|
-
h(
|
|
7354
|
+
h(p, null, {
|
|
7358
7355
|
default: g(() => {
|
|
7359
7356
|
var f, L, S, P, E;
|
|
7360
7357
|
return [
|
|
@@ -7616,7 +7613,7 @@ const rl = {
|
|
|
7616
7613
|
style: { height: "56px" }
|
|
7617
7614
|
};
|
|
7618
7615
|
function ml(o, e, t, i, a, r) {
|
|
7619
|
-
const s = w("VBtn"), c = w("VDatePicker"), n = w("VDivider"),
|
|
7616
|
+
const s = w("VBtn"), c = w("VDatePicker"), n = w("VDivider"), p = w("VListItemTitle"), d = w("VListItem"), m = w("VList"), b = w("VCardText"), f = w("VCardActions"), L = w("VCard");
|
|
7620
7617
|
return y(), M("div", ll, [
|
|
7621
7618
|
h(s, {
|
|
7622
7619
|
text: "",
|
|
@@ -7670,7 +7667,7 @@ function ml(o, e, t, i, a, r) {
|
|
|
7670
7667
|
"min-height": "26"
|
|
7671
7668
|
}, {
|
|
7672
7669
|
default: g(() => [
|
|
7673
|
-
h(
|
|
7670
|
+
h(p, {
|
|
7674
7671
|
class: "text-body-2 text-center",
|
|
7675
7672
|
onClick: (E) => a.currentTime = S
|
|
7676
7673
|
}, {
|
|
@@ -7725,7 +7722,7 @@ function ml(o, e, t, i, a, r) {
|
|
|
7725
7722
|
})
|
|
7726
7723
|
]),
|
|
7727
7724
|
_: 1
|
|
7728
|
-
})) :
|
|
7725
|
+
})) : B("", !0)
|
|
7729
7726
|
]);
|
|
7730
7727
|
}
|
|
7731
7728
|
const Je = /* @__PURE__ */ X(rl, [["render", ml]]);
|
|
@@ -7735,6 +7732,10 @@ const hl = {
|
|
|
7735
7732
|
DateTimePicker: Je
|
|
7736
7733
|
},
|
|
7737
7734
|
props: {
|
|
7735
|
+
isLogin: {
|
|
7736
|
+
type: Boolean,
|
|
7737
|
+
default: !1
|
|
7738
|
+
},
|
|
7738
7739
|
token: {
|
|
7739
7740
|
type: String
|
|
7740
7741
|
},
|
|
@@ -7894,7 +7895,7 @@ const hl = {
|
|
|
7894
7895
|
},
|
|
7895
7896
|
methods: {
|
|
7896
7897
|
handleMenuToggle() {
|
|
7897
|
-
this.toggle = !this.toggle, this.showForm = !!this.toggle;
|
|
7898
|
+
this.isLogin && (this.toggle = !this.toggle, this.showForm = !!this.toggle);
|
|
7898
7899
|
},
|
|
7899
7900
|
submitForm() {
|
|
7900
7901
|
this.$refs.spotForm.validate().then(async (o) => {
|
|
@@ -7959,10 +7960,10 @@ const hl = {
|
|
|
7959
7960
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
|
|
7960
7961
|
},
|
|
7961
7962
|
initTableData(o) {
|
|
7962
|
-
var t, i, a, r, s, c, n,
|
|
7963
|
+
var t, i, a, r, s, c, n, p, d, m, b, f, L, S, P, E, T, k, v, _, z, x, R, H, Y, G, W, $, ee, K, se, me, pe, he, q, I, ne, ge, be, ke, ze;
|
|
7963
7964
|
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;
|
|
7964
7965
|
const e = ((s = qe.pickHourly(o, D(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
7965
|
-
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((
|
|
7966
|
+
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((b = e == null ? void 0 : e.weather) == null ? void 0 : b.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((L = (f = e == null ? void 0 : e.weather) == null ? void 0 : f.wind) == null ? void 0 : L.kts, 1) ?? "-", this.currentHourData.windDir = (P = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : P.direction, this.currentHourData.windLevel = this.roundPrecision((T = (E = e == null ? void 0 : e.weather) == null ? void 0 : E.wind) == null ? void 0 : T.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((z = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : z.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (x = e == null ? void 0 : e.wave) == null ? void 0 : x.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((Y = (H = e == null ? void 0 : e.wave) == null ? void 0 : H.sig) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((W = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.wd) == null ? void 0 : W.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((se = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.wd) == null ? void 0 : se.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (q = (he = e == null ? void 0 : e.wave) == null ? void 0 : he.swell) == null ? void 0 : q.direction, this.currentHourData.swellPeriod = this.roundPrecision((ne = (I = e == null ? void 0 : e.wave) == null ? void 0 : I.swell) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (be = e == null ? void 0 : e.current) == null ? void 0 : be.direction, this.currentHourData.currentSpeed = this.roundPrecision((ke = e == null ? void 0 : e.current) == null ? void 0 : ke.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 = (ze = e == null ? void 0 : e.weather) == null ? void 0 : ze.url;
|
|
7966
7967
|
},
|
|
7967
7968
|
handleBind() {
|
|
7968
7969
|
var o, e;
|
|
@@ -8033,7 +8034,7 @@ const hl = {
|
|
|
8033
8034
|
"aria-hidden": "true"
|
|
8034
8035
|
}, zl = ["xlink:href"], Ll = { class: "d-flex justify-start align-center" }, Pl = { class: "mx-2" };
|
|
8035
8036
|
function Cl(o, e, t, i, a, r) {
|
|
8036
|
-
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"),
|
|
8037
|
+
const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), p = w("VDivider"), d = w("VTextField"), m = w("VCol"), b = w("VRow"), f = w("DateTimePicker"), L = w("VBtnToggle"), S = w("VCardActions"), P = w("VForm"), E = w("VCardText"), T = w("VCard"), k = w("VIcon");
|
|
8037
8038
|
return y(), M("div", dl, [
|
|
8038
8039
|
l("div", {
|
|
8039
8040
|
class: "menu-bar-box transition pa-1",
|
|
@@ -8041,8 +8042,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8041
8042
|
}, [
|
|
8042
8043
|
h(c, {
|
|
8043
8044
|
text: o.$t("spot.spotsMeteo"),
|
|
8044
|
-
location: "left"
|
|
8045
|
-
"open-delay": 1e3
|
|
8045
|
+
location: "left"
|
|
8046
8046
|
}, {
|
|
8047
8047
|
activator: g(({ props: v }) => [
|
|
8048
8048
|
h(s, j(v, {
|
|
@@ -8094,7 +8094,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8094
8094
|
_: 1,
|
|
8095
8095
|
__: [10]
|
|
8096
8096
|
}),
|
|
8097
|
-
h(
|
|
8097
|
+
h(p),
|
|
8098
8098
|
h(E, { class: "text-body-1 py-1" }, {
|
|
8099
8099
|
default: g(() => [
|
|
8100
8100
|
h(P, {
|
|
@@ -8346,7 +8346,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8346
8346
|
]),
|
|
8347
8347
|
_: 1
|
|
8348
8348
|
}),
|
|
8349
|
-
h(
|
|
8349
|
+
h(p),
|
|
8350
8350
|
h(S, { class: "d-flex justify-end align-center ga-4" }, {
|
|
8351
8351
|
default: g(() => [
|
|
8352
8352
|
h(s, {
|
|
@@ -8386,7 +8386,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8386
8386
|
})
|
|
8387
8387
|
]),
|
|
8388
8388
|
_: 1
|
|
8389
|
-
}, 8, ["style"])) :
|
|
8389
|
+
}, 8, ["style"])) : B("", !0),
|
|
8390
8390
|
He(h(T, {
|
|
8391
8391
|
id: "idm-gl4-spot-meteo",
|
|
8392
8392
|
class: "spot-meteo",
|
|
@@ -8421,7 +8421,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8421
8421
|
}),
|
|
8422
8422
|
_: 1
|
|
8423
8423
|
}),
|
|
8424
|
-
h(
|
|
8424
|
+
h(p),
|
|
8425
8425
|
h(E, { class: "text-body-1 ml-n8" }, {
|
|
8426
8426
|
default: g(() => [
|
|
8427
8427
|
h(b, null, {
|
|
@@ -8610,7 +8610,7 @@ function Cl(o, e, t, i, a, r) {
|
|
|
8610
8610
|
]),
|
|
8611
8611
|
_: 1
|
|
8612
8612
|
}),
|
|
8613
|
-
h(
|
|
8613
|
+
h(p),
|
|
8614
8614
|
h(S, { class: "d-flex justify-space-between align-center" }, {
|
|
8615
8615
|
default: g(() => [
|
|
8616
8616
|
h(s, {
|
|
@@ -8739,7 +8739,7 @@ const Ml = {
|
|
|
8739
8739
|
}
|
|
8740
8740
|
},
|
|
8741
8741
|
handleDrag(o) {
|
|
8742
|
-
var t, i, a, r, s, c, n,
|
|
8742
|
+
var t, i, a, r, s, c, n, p, d, m;
|
|
8743
8743
|
const e = (i = (t = o.target) == null ? void 0 : t._element) == null ? void 0 : i.id;
|
|
8744
8744
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8745
8745
|
const b = this.geojson.filter((P) => P.id === e.split("-")[0])[0];
|
|
@@ -8758,13 +8758,13 @@ const Ml = {
|
|
|
8758
8758
|
this.handleTmpPointUpdate(
|
|
8759
8759
|
b,
|
|
8760
8760
|
S[L - 1],
|
|
8761
|
-
{ lng: (
|
|
8761
|
+
{ lng: (p = (n = o.target) == null ? void 0 : n._lngLat) == null ? void 0 : p.lng, lat: (m = (d = o.target) == null ? void 0 : d._lngLat) == null ? void 0 : m.lat, properties: S[L].properties },
|
|
8762
8762
|
L === S.length - 1 ? void 0 : S[L + 1]
|
|
8763
8763
|
);
|
|
8764
8764
|
}
|
|
8765
8765
|
},
|
|
8766
8766
|
handleDragEnd(o) {
|
|
8767
|
-
var t, i, a, r, s, c, n,
|
|
8767
|
+
var t, i, a, r, s, c, n, p, d, m;
|
|
8768
8768
|
const e = (i = (t = o.target) == null ? void 0 : t._element) == null ? void 0 : i.id;
|
|
8769
8769
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8770
8770
|
const b = this.geojson.filter((S) => S.id === e.split("-")[0])[0];
|
|
@@ -8773,7 +8773,7 @@ const Ml = {
|
|
|
8773
8773
|
return ((P = S._element) == null ? void 0 : P.id) === e;
|
|
8774
8774
|
})[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]);
|
|
8775
8775
|
const L = b.features.filter((S) => S.geometry.type === "Point" && S.properties.id === e.split("-")[1])[0];
|
|
8776
|
-
L.geometry.coordinates = [(
|
|
8776
|
+
L.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], b.features = b.features.filter((S) => S.geometry.type === "Point"), this.handlePointUpdate(b);
|
|
8777
8777
|
}
|
|
8778
8778
|
},
|
|
8779
8779
|
handleContextmenu(o) {
|
|
@@ -8782,9 +8782,9 @@ const Ml = {
|
|
|
8782
8782
|
const e = (r = (a = (i = o.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
|
|
8783
8783
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8784
8784
|
const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
|
|
8785
|
-
if (c.length > 2 && c.filter((
|
|
8786
|
-
const
|
|
8787
|
-
|
|
8785
|
+
if (c.length > 2 && c.filter((p) => p.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
8786
|
+
const p = document.createElement("div");
|
|
8787
|
+
p.className = "idm-gl4-measure-contextmenu-marker", p.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new Pe.Marker(p).setOffset([24, 0]).setLngLat([o.lngLat.lng, o.lngLat.lat]).addTo(this.map);
|
|
8788
8788
|
}
|
|
8789
8789
|
}
|
|
8790
8790
|
},
|
|
@@ -8793,15 +8793,15 @@ const Ml = {
|
|
|
8793
8793
|
(t = this.contextmenu) == null || t.remove();
|
|
8794
8794
|
const e = o.originalEvent.target.className;
|
|
8795
8795
|
if (e === "marker-close") {
|
|
8796
|
-
const n = (a = (i = o.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id,
|
|
8797
|
-
|
|
8796
|
+
const n = (a = (i = o.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, p = this.geojson.filter((d) => d.id === n)[0];
|
|
8797
|
+
p && this.handleClear(p, !0), this.geojson = this.geojson.filter((d) => d.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((d) => d.closed)) && this.handleUnbind();
|
|
8798
8798
|
} else if (e === "del-point") {
|
|
8799
|
-
const n = (c = (s = o.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : c.split("-"),
|
|
8800
|
-
|
|
8799
|
+
const n = (c = (s = o.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : c.split("-"), p = this.geojson.filter((d) => d.id === n[0])[0];
|
|
8800
|
+
p.features = p.features.filter((d) => d.geometry.type === "Point" && d.properties.id !== n[1]), this.handlePointUpdate(p);
|
|
8801
8801
|
} else if (e !== "marker-label" && this.toggle) {
|
|
8802
8802
|
let n = this.geojson.at(-1);
|
|
8803
8803
|
n || (n = F.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((d) => d.geometry.type === "Point");
|
|
8804
|
-
const
|
|
8804
|
+
const p = F.feature(
|
|
8805
8805
|
{
|
|
8806
8806
|
type: "Point",
|
|
8807
8807
|
coordinates: [o.lngLat.lng, o.lngLat.lat]
|
|
@@ -8811,7 +8811,7 @@ const Ml = {
|
|
|
8811
8811
|
mode: this.navigation
|
|
8812
8812
|
}
|
|
8813
8813
|
);
|
|
8814
|
-
n.features.push(
|
|
8814
|
+
n.features.push(p), this.handlePointUpdate(n);
|
|
8815
8815
|
}
|
|
8816
8816
|
},
|
|
8817
8817
|
handlePointUpdate(o) {
|
|
@@ -8820,10 +8820,10 @@ const Ml = {
|
|
|
8820
8820
|
let t = 0;
|
|
8821
8821
|
const i = [];
|
|
8822
8822
|
for (let a = 1; a < e.length; a++) {
|
|
8823
|
-
const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] },
|
|
8823
|
+
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 = Be.calculateDistance(n, p, c.mode === "RL", 4), m = Be.calculateBearing(n, p, c.mode === "RL", 2);
|
|
8824
8824
|
t = ae.roundPrecision(t + d, 2);
|
|
8825
8825
|
let b;
|
|
8826
|
-
c.mode === "RL" ? b = ae.convertToMonotonicLng([n,
|
|
8826
|
+
c.mode === "RL" ? b = ae.convertToMonotonicLng([n, p]) : b = ae.convertToMonotonicLng(Be.interpolateCoordinates(n, p, 200));
|
|
8827
8827
|
const f = F.lineString(b.map((L) => [L.lng, L.lat]));
|
|
8828
8828
|
f.properties.dist = d, f.properties.bearing = m, f.properties.total = t, i.push(f);
|
|
8829
8829
|
}
|
|
@@ -8835,18 +8835,18 @@ const Ml = {
|
|
|
8835
8835
|
const a = F.featureCollection([]);
|
|
8836
8836
|
let r, s;
|
|
8837
8837
|
if (e) {
|
|
8838
|
-
const n = e.properties,
|
|
8839
|
-
r = Be.calculateDistance(
|
|
8838
|
+
const n = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: t.lng, lat: t.lat };
|
|
8839
|
+
r = Be.calculateDistance(p, d, n.mode === "RL", 4), s = Be.calculateBearing(p, d, n.mode === "RL", 2);
|
|
8840
8840
|
let m;
|
|
8841
|
-
n.mode === "RL" ? m = ae.convertToMonotonicLng([
|
|
8841
|
+
n.mode === "RL" ? m = ae.convertToMonotonicLng([p, d]) : m = ae.convertToMonotonicLng(Be.interpolateCoordinates(p, d, 200));
|
|
8842
8842
|
const b = F.lineString(m.map((f) => [f.lng, f.lat]));
|
|
8843
8843
|
b.properties.dist = r, b.properties.bearing = s, a.features.push(b);
|
|
8844
8844
|
}
|
|
8845
8845
|
if (i) {
|
|
8846
|
-
const n = t.properties,
|
|
8847
|
-
r = Be.calculateDistance(
|
|
8846
|
+
const n = t.properties, p = t, d = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
8847
|
+
r = Be.calculateDistance(p, d, n.mode === "RL", 4), s = Be.calculateBearing(p, d, n.mode === "RL", 2);
|
|
8848
8848
|
let m;
|
|
8849
|
-
n.mode === "RL" ? m = ae.convertToMonotonicLng([
|
|
8849
|
+
n.mode === "RL" ? m = ae.convertToMonotonicLng([p, d]) : m = ae.convertToMonotonicLng(Be.interpolateCoordinates(p, d, 200));
|
|
8850
8850
|
const b = F.lineString(m.map((f) => [f.lng, f.lat]));
|
|
8851
8851
|
b.properties.dist = r, b.properties.bearing = s, a.features.push(b);
|
|
8852
8852
|
}
|
|
@@ -8892,7 +8892,11 @@ const Ml = {
|
|
|
8892
8892
|
c = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
|
|
8893
8893
|
else {
|
|
8894
8894
|
const n = ae.roundPrecision((o.total ?? 0) + r, 1);
|
|
8895
|
-
c = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${n}</b>${this.$t("units.nm")}, ${this.$t(
|
|
8895
|
+
c = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${n}</b>${this.$t("units.nm")}, ${this.$t(
|
|
8896
|
+
"measure.bearing"
|
|
8897
|
+
)}: <b>${s}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
|
|
8898
|
+
"measure.switchTips"
|
|
8899
|
+
)}</div><div class="marker-label">${this.$t("measure.clickTips")}</div>`;
|
|
8896
8900
|
}
|
|
8897
8901
|
if (this.tipMarker)
|
|
8898
8902
|
this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
@@ -8960,15 +8964,15 @@ const Ml = {
|
|
|
8960
8964
|
n.on("drag", this.handleDrag), n.on("dragend", this.handleDragEnd), this.pointMarkers[o.id] ? this.pointMarkers[o.id].push(n) : this.pointMarkers[o.id] = [n];
|
|
8961
8965
|
}
|
|
8962
8966
|
if (o.closed) {
|
|
8963
|
-
const s = r.at(-1), n = o.features.filter((d) => d.geometry.type === "LineString").at(-1),
|
|
8964
|
-
|
|
8967
|
+
const s = r.at(-1), n = o.features.filter((d) => d.geometry.type === "LineString").at(-1), p = document.createElement("div");
|
|
8968
|
+
p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${o.id}" class="marker-close">×</div><div class="marker-label">${this.$t("measure.total")}: ${n.properties.total}${this.$t("units.nm")}</div>`, this.closeMarkers[o.id] = new Pe.Marker(p).setOffset([60, 0]).setLngLat(s.geometry.coordinates).addTo(this.map);
|
|
8965
8969
|
}
|
|
8966
8970
|
}
|
|
8967
8971
|
},
|
|
8968
8972
|
handleClear(o, e = !0) {
|
|
8969
|
-
var r, s, c, n,
|
|
8973
|
+
var r, s, c, n, p, d, m, b, f;
|
|
8970
8974
|
const t = `${o.id}-${this.source}`, i = `${o.id}-${this.layer}`, a = `${o.id}-${this.labelLayer}`;
|
|
8971
|
-
(r = this.map) != null && r.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (n = this.map) != null && n.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (
|
|
8975
|
+
(r = this.map) != null && r.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (n = this.map) != null && n.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (p = this.closeMarkers[o.id]) == null || p.remove(), this.closeMarkers[o.id] = void 0, (d = this.pointMarkers[o.id]) == null || d.forEach((L) => {
|
|
8972
8976
|
L == null || L.remove();
|
|
8973
8977
|
}), this.pointMarkers[o.id] = [], (m = this.tipMarker) == null || m.remove(), this.tipMarker = void 0, e && ((b = this.map) != null && b.getSource(t)) && this.map.removeSource(t), e && ((f = this.map) != null && f.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
8974
8978
|
}
|
|
@@ -8983,8 +8987,7 @@ function Rl(o, e, t, i, a, r) {
|
|
|
8983
8987
|
}, [
|
|
8984
8988
|
h(c, {
|
|
8985
8989
|
text: o.$t("measure.measure"),
|
|
8986
|
-
location: "left"
|
|
8987
|
-
"open-delay": 1e3
|
|
8990
|
+
location: "left"
|
|
8988
8991
|
}, {
|
|
8989
8992
|
activator: g(({ props: n }) => [
|
|
8990
8993
|
h(s, j(n, {
|
|
@@ -9126,7 +9129,7 @@ const Al = {
|
|
|
9126
9129
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
9127
9130
|
}, Nl = ["onClick"], Hl = { class: "btn-box d-flex justify-center align-center rounded ga-2 py-1 px-2" }, Gl = { class: "text-body-2" };
|
|
9128
9131
|
function Wl(o, e, t, i, a, r) {
|
|
9129
|
-
const s = w("DateTimePicker"), c = w("VListItemTitle"), n = w("VListItem"),
|
|
9132
|
+
const s = w("DateTimePicker"), c = w("VListItemTitle"), n = w("VListItem"), p = w("VList"), d = w("VMenu"), m = w("VBtn"), b = w("VTooltip");
|
|
9130
9133
|
return y(), M("div", Dl, [
|
|
9131
9134
|
a.show ? (y(), M("div", {
|
|
9132
9135
|
key: 0,
|
|
@@ -9153,7 +9156,7 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9153
9156
|
U(C(a.intervalHour) + " h ", 1),
|
|
9154
9157
|
h(d, { activator: "parent" }, {
|
|
9155
9158
|
default: g(() => [
|
|
9156
|
-
h(
|
|
9159
|
+
h(p, { class: "pa-1" }, {
|
|
9157
9160
|
default: g(() => [
|
|
9158
9161
|
(y(!0), M(fe, null, _e(a.intervalOptions, (f, L) => (y(), V(n, {
|
|
9159
9162
|
key: L,
|
|
@@ -9404,7 +9407,7 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9404
9407
|
__: [18]
|
|
9405
9408
|
})
|
|
9406
9409
|
])
|
|
9407
|
-
], 4)) :
|
|
9410
|
+
], 4)) : B("", !0),
|
|
9408
9411
|
l("div", {
|
|
9409
9412
|
class: "timezone-box d-flex flex-column justify-space-between align-end",
|
|
9410
9413
|
style: Q({ right: a.right + "px" })
|
|
@@ -9415,7 +9418,7 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9415
9418
|
class: "item rounded text-body-2",
|
|
9416
9419
|
onClick: (L) => a.timeZone = f
|
|
9417
9420
|
}, C(f < 0 ? f : "+" + f), 9, Nl))), 128))
|
|
9418
|
-
])) :
|
|
9421
|
+
])) : B("", !0),
|
|
9419
9422
|
l("div", Hl, [
|
|
9420
9423
|
h(m, {
|
|
9421
9424
|
text: "",
|
|
@@ -9480,7 +9483,7 @@ const Ul = /* @__PURE__ */ X(Al, [["render", Wl]]), Vl = {
|
|
|
9480
9483
|
class: "map-gl4-home"
|
|
9481
9484
|
};
|
|
9482
9485
|
function Zl(o, e, t, i, a, r) {
|
|
9483
|
-
const s = w("IdmOtherLayer"), c = w("IdmWeatherLayer"), n = w("IdmTropicals"),
|
|
9486
|
+
const s = w("IdmOtherLayer"), c = w("IdmWeatherLayer"), n = w("IdmTropicals"), p = w("IdmMeasure"), d = w("IdmSpot"), m = w("IdmBottomBar");
|
|
9484
9487
|
return y(), M("div", Yl, [
|
|
9485
9488
|
h(s, j({
|
|
9486
9489
|
ref: "idmOtherLayers",
|
|
@@ -9516,7 +9519,7 @@ function Zl(o, e, t, i, a, r) {
|
|
|
9516
9519
|
assistGateway: a.assistGateway,
|
|
9517
9520
|
"forecast-model": t.forecastModel
|
|
9518
9521
|
}, o.$attrs), null, 16, ["map", "token", "defaultMeteoToken", "tropicals", "realTime", "gateway", "assistGateway", "forecast-model"]),
|
|
9519
|
-
h(
|
|
9522
|
+
h(p, j({ map: t.map }, o.$attrs), null, 16, ["map"]),
|
|
9520
9523
|
h(d, j({
|
|
9521
9524
|
ref: "idmSpot",
|
|
9522
9525
|
map: t.map,
|
|
@@ -9542,7 +9545,7 @@ class ql {
|
|
|
9542
9545
|
le(this, "hi");
|
|
9543
9546
|
le(this, "td");
|
|
9544
9547
|
le(this, "windy");
|
|
9545
|
-
var t, i, a, r, s, c, n,
|
|
9548
|
+
var t, i, a, r, s, c, n, p, d, m, b, f, L, S, P, E, T, k, v, _, z, x, R, H, Y, G, W, $, ee, K, se, me, pe, he, q, I, ne, ge, be, ke, ze, Se, Me, Te, te, de, we, Re, J, Ce, xe, ie, ue, N, Le, oe, re, Ee, O, ye, Oe, Fe, Ne, A, Z, Ye, Ze, Xe, Ae, Qe, $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, Rt, It, At, Dt, Ot, Bt, jt, Et, Ft, Nt, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Jt, Qt, eo, to, oo, ao, io, 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, Ro, Io, Ao, Do, Oo, Bo, jo, Eo, Fo, No;
|
|
9546
9549
|
this.i4 = {
|
|
9547
9550
|
source: {
|
|
9548
9551
|
type: "raster",
|
|
@@ -71419,29 +71422,29 @@ class ql {
|
|
|
71419
71422
|
composite: this.originStyle.light.sources.composite
|
|
71420
71423
|
},
|
|
71421
71424
|
layers: [
|
|
71422
|
-
(i = (t = this.originStyle) == null ? void 0 : t.light.layers) == null ? void 0 : i.find((
|
|
71423
|
-
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((
|
|
71424
|
-
(c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((
|
|
71425
|
-
(
|
|
71426
|
-
(m = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : m.find((
|
|
71427
|
-
(f = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : f.find((
|
|
71428
|
-
(S = (L = this.originStyle) == null ? void 0 : L.light.layers) == null ? void 0 : S.find((
|
|
71429
|
-
(E = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : E.find((
|
|
71430
|
-
(k = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : k.find((
|
|
71431
|
-
(_ = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : _.find((
|
|
71432
|
-
(x = (z = this.originStyle) == null ? void 0 : z.light.layers) == null ? void 0 : x.find((
|
|
71433
|
-
(H = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : H.find((
|
|
71434
|
-
(G = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : G.find((
|
|
71435
|
-
($ = (W = this.originStyle) == null ? void 0 : W.light.layers) == null ? void 0 : $.find((
|
|
71436
|
-
(K = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : K.find((
|
|
71437
|
-
(me = (se = this.originStyle) == null ? void 0 : se.light.layers) == null ? void 0 : me.find((
|
|
71438
|
-
(he = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : he.find((
|
|
71439
|
-
(I = (q = this.originStyle) == null ? void 0 : q.light.layers) == null ? void 0 : I.find((
|
|
71440
|
-
(ge = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : ge.find((
|
|
71441
|
-
(ke = (be = this.originStyle) == null ? void 0 : be.light.layers) == null ? void 0 : ke.find((
|
|
71442
|
-
(Se = (ze = this.originStyle) == null ? void 0 : ze.light.layers) == null ? void 0 : Se.find((
|
|
71443
|
-
(Te = (Me = this.originStyle) == null ? void 0 : Me.light.layers) == null ? void 0 : Te.find((
|
|
71444
|
-
(de = (te = this.originStyle) == null ? void 0 : te.light.layers) == null ? void 0 : de.find((
|
|
71425
|
+
(i = (t = this.originStyle) == null ? void 0 : t.light.layers) == null ? void 0 : i.find((u) => u.id === "land"),
|
|
71426
|
+
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((u) => u.id === "water"),
|
|
71427
|
+
(c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((u) => u.id === "empty-layer-1"),
|
|
71428
|
+
(p = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : p.find((u) => u.id === "country-boundaries"),
|
|
71429
|
+
(m = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : m.find((u) => u.id === "water-outline"),
|
|
71430
|
+
(f = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : f.find((u) => u.id === "water-outline2"),
|
|
71431
|
+
(S = (L = this.originStyle) == null ? void 0 : L.light.layers) == null ? void 0 : S.find((u) => u.id === "empty-layer-2"),
|
|
71432
|
+
(E = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : E.find((u) => u.id === "empty-layer-3"),
|
|
71433
|
+
(k = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : k.find((u) => u.id === "empty-layer-4"),
|
|
71434
|
+
(_ = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : _.find((u) => u.id === "water-line-label"),
|
|
71435
|
+
(x = (z = this.originStyle) == null ? void 0 : z.light.layers) == null ? void 0 : x.find((u) => u.id === "water-point-label"),
|
|
71436
|
+
(H = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : H.find((u) => u.id === "world-12nm-v4-20231025"),
|
|
71437
|
+
(G = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : G.find((u) => u.id === "ne-10m-outline"),
|
|
71438
|
+
($ = (W = this.originStyle) == null ? void 0 : W.light.layers) == null ? void 0 : $.find((u) => u.id === "ne-10m-label"),
|
|
71439
|
+
(K = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : K.find((u) => u.id === "china-route-line"),
|
|
71440
|
+
(me = (se = this.originStyle) == null ? void 0 : se.light.layers) == null ? void 0 : me.find((u) => u.id === "china-route-fill"),
|
|
71441
|
+
(he = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : he.find((u) => u.id === "china-route-label"),
|
|
71442
|
+
(I = (q = this.originStyle) == null ? void 0 : q.light.layers) == null ? void 0 : I.find((u) => u.id === "admin-0-boundary-bg"),
|
|
71443
|
+
(ge = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : ge.find((u) => u.id === "admin-0-boundary"),
|
|
71444
|
+
(ke = (be = this.originStyle) == null ? void 0 : be.light.layers) == null ? void 0 : ke.find((u) => u.id === "admin-0-boundary-disputed"),
|
|
71445
|
+
(Se = (ze = this.originStyle) == null ? void 0 : ze.light.layers) == null ? void 0 : Se.find((u) => u.id === "country-label"),
|
|
71446
|
+
(Te = (Me = this.originStyle) == null ? void 0 : Me.light.layers) == null ? void 0 : Te.find((u) => u.id === "continent-label"),
|
|
71447
|
+
(de = (te = this.originStyle) == null ? void 0 : te.light.layers) == null ? void 0 : de.find((u) => u.id === "state-label")
|
|
71445
71448
|
]
|
|
71446
71449
|
},
|
|
71447
71450
|
dark: {
|
|
@@ -71571,28 +71574,28 @@ class ql {
|
|
|
71571
71574
|
protected: !1,
|
|
71572
71575
|
draft: !1,
|
|
71573
71576
|
layers: [
|
|
71574
|
-
(Re = (we = this.originStyle) == null ? void 0 : we.dark.layers) == null ? void 0 : Re.find((
|
|
71575
|
-
(Ce = (J = this.originStyle) == null ? void 0 : J.dark.layers) == null ? void 0 : Ce.find((
|
|
71576
|
-
(ie = (xe = this.originStyle) == null ? void 0 : xe.dark.layers) == null ? void 0 : ie.find((
|
|
71577
|
-
(N = (ue = this.originStyle) == null ? void 0 : ue.dark.layers) == null ? void 0 : N.find((
|
|
71578
|
-
(oe = (Le = this.originStyle) == null ? void 0 : Le.dark.layers) == null ? void 0 : oe.find((
|
|
71579
|
-
(Ee = (re = this.originStyle) == null ? void 0 : re.dark.layers) == null ? void 0 : Ee.find((
|
|
71580
|
-
(ye = (
|
|
71581
|
-
(Fe = (Oe = this.originStyle) == null ? void 0 : Oe.dark.layers) == null ? void 0 : Fe.find((
|
|
71582
|
-
(A = (Ne = this.originStyle) == null ? void 0 : Ne.dark.layers) == null ? void 0 : A.find((
|
|
71583
|
-
(Ye = (Z = this.originStyle) == null ? void 0 : Z.dark.layers) == null ? void 0 : Ye.find((
|
|
71584
|
-
(Xe = (Ze = this.originStyle) == null ? void 0 : Ze.dark.layers) == null ? void 0 : Xe.find((
|
|
71585
|
-
(Qe = (Ae = this.originStyle) == null ? void 0 : Ae.dark.layers) == null ? void 0 : Qe.find((
|
|
71586
|
-
(et = ($e = this.originStyle) == null ? void 0 : $e.dark.layers) == null ? void 0 : et.find((
|
|
71587
|
-
(ot = (tt = this.originStyle) == null ? void 0 : tt.dark.layers) == null ? void 0 : ot.find((
|
|
71588
|
-
(it = (at = this.originStyle) == null ? void 0 : at.dark.layers) == null ? void 0 : it.find((
|
|
71589
|
-
(lt = (rt = this.originStyle) == null ? void 0 : rt.dark.layers) == null ? void 0 : lt.find((
|
|
71590
|
-
(nt = (st = this.originStyle) == null ? void 0 : st.dark.layers) == null ? void 0 : nt.find((
|
|
71591
|
-
(mt = (ct = this.originStyle) == null ? void 0 : ct.dark.layers) == null ? void 0 : mt.find((
|
|
71592
|
-
(dt = (ht = this.originStyle) == null ? void 0 : ht.dark.layers) == null ? void 0 : dt.find((
|
|
71593
|
-
(ut = (pt = this.originStyle) == null ? void 0 : pt.dark.layers) == null ? void 0 : ut.find((
|
|
71594
|
-
(ft = (gt = this.originStyle) == null ? void 0 : gt.dark.layers) == null ? void 0 : ft.find((
|
|
71595
|
-
(yt = (bt = this.originStyle) == null ? void 0 : bt.dark.layers) == null ? void 0 : yt.find((
|
|
71577
|
+
(Re = (we = this.originStyle) == null ? void 0 : we.dark.layers) == null ? void 0 : Re.find((u) => u.id === "land"),
|
|
71578
|
+
(Ce = (J = this.originStyle) == null ? void 0 : J.dark.layers) == null ? void 0 : Ce.find((u) => u.id === "water"),
|
|
71579
|
+
(ie = (xe = this.originStyle) == null ? void 0 : xe.dark.layers) == null ? void 0 : ie.find((u) => u.id === "empty-layer-1"),
|
|
71580
|
+
(N = (ue = this.originStyle) == null ? void 0 : ue.dark.layers) == null ? void 0 : N.find((u) => u.id === "country-boundaries"),
|
|
71581
|
+
(oe = (Le = this.originStyle) == null ? void 0 : Le.dark.layers) == null ? void 0 : oe.find((u) => u.id === "water-outline"),
|
|
71582
|
+
(Ee = (re = this.originStyle) == null ? void 0 : re.dark.layers) == null ? void 0 : Ee.find((u) => u.id === "empty-layer-2"),
|
|
71583
|
+
(ye = (O = this.originStyle) == null ? void 0 : O.dark.layers) == null ? void 0 : ye.find((u) => u.id === "empty-layer-3"),
|
|
71584
|
+
(Fe = (Oe = this.originStyle) == null ? void 0 : Oe.dark.layers) == null ? void 0 : Fe.find((u) => u.id === "empty-layer-4"),
|
|
71585
|
+
(A = (Ne = this.originStyle) == null ? void 0 : Ne.dark.layers) == null ? void 0 : A.find((u) => u.id === "water-line-label"),
|
|
71586
|
+
(Ye = (Z = this.originStyle) == null ? void 0 : Z.dark.layers) == null ? void 0 : Ye.find((u) => u.id === "water-point-label"),
|
|
71587
|
+
(Xe = (Ze = this.originStyle) == null ? void 0 : Ze.dark.layers) == null ? void 0 : Xe.find((u) => u.id === "world-12nm-v4-20231025"),
|
|
71588
|
+
(Qe = (Ae = this.originStyle) == null ? void 0 : Ae.dark.layers) == null ? void 0 : Qe.find((u) => u.id === "ne-10m-outline"),
|
|
71589
|
+
(et = ($e = this.originStyle) == null ? void 0 : $e.dark.layers) == null ? void 0 : et.find((u) => u.id === "ne-10m-label"),
|
|
71590
|
+
(ot = (tt = this.originStyle) == null ? void 0 : tt.dark.layers) == null ? void 0 : ot.find((u) => u.id === "china-route-line"),
|
|
71591
|
+
(it = (at = this.originStyle) == null ? void 0 : at.dark.layers) == null ? void 0 : it.find((u) => u.id === "china-route-fill"),
|
|
71592
|
+
(lt = (rt = this.originStyle) == null ? void 0 : rt.dark.layers) == null ? void 0 : lt.find((u) => u.id === "china-route-label"),
|
|
71593
|
+
(nt = (st = this.originStyle) == null ? void 0 : st.dark.layers) == null ? void 0 : nt.find((u) => u.id === "admin-0-boundary-bg"),
|
|
71594
|
+
(mt = (ct = this.originStyle) == null ? void 0 : ct.dark.layers) == null ? void 0 : mt.find((u) => u.id === "admin-0-boundary"),
|
|
71595
|
+
(dt = (ht = this.originStyle) == null ? void 0 : ht.dark.layers) == null ? void 0 : dt.find((u) => u.id === "admin-0-boundary-disputed"),
|
|
71596
|
+
(ut = (pt = this.originStyle) == null ? void 0 : pt.dark.layers) == null ? void 0 : ut.find((u) => u.id === "country-label"),
|
|
71597
|
+
(ft = (gt = this.originStyle) == null ? void 0 : gt.dark.layers) == null ? void 0 : ft.find((u) => u.id === "continent-label"),
|
|
71598
|
+
(yt = (bt = this.originStyle) == null ? void 0 : bt.dark.layers) == null ? void 0 : yt.find((u) => u.id === "state-label")
|
|
71596
71599
|
]
|
|
71597
71600
|
},
|
|
71598
71601
|
satellite: {
|
|
@@ -71722,23 +71725,23 @@ class ql {
|
|
|
71722
71725
|
protected: !1,
|
|
71723
71726
|
draft: !1,
|
|
71724
71727
|
layers: [
|
|
71725
|
-
(_t = (vt = this.originStyle) == null ? void 0 : vt.satellite.layers) == null ? void 0 : _t.find((
|
|
71726
|
-
(zt = (kt = this.originStyle) == null ? void 0 : kt.satellite.layers) == null ? void 0 : zt.find((
|
|
71727
|
-
(Pt = (Lt = this.originStyle) == null ? void 0 : Lt.satellite.layers) == null ? void 0 : Pt.find((
|
|
71728
|
-
(St = (Ct = this.originStyle) == null ? void 0 : Ct.satellite.layers) == null ? void 0 : St.find((
|
|
71729
|
-
(Tt = (Mt = this.originStyle) == null ? void 0 : Mt.satellite.layers) == null ? void 0 : Tt.find((
|
|
71730
|
-
(It = (Rt = this.originStyle) == null ? void 0 : Rt.satellite.layers) == null ? void 0 : It.find((
|
|
71731
|
-
(Dt = (At = this.originStyle) == null ? void 0 : At.satellite.layers) == null ? void 0 : Dt.find((
|
|
71732
|
-
(Bt = (Ot = this.originStyle) == null ? void 0 : Ot.satellite.layers) == null ? void 0 : Bt.find((
|
|
71733
|
-
(Et = (jt = this.originStyle) == null ? void 0 : jt.satellite.layers) == null ? void 0 : Et.find((
|
|
71734
|
-
(Nt = (Ft = this.originStyle) == null ? void 0 : Ft.satellite.layers) == null ? void 0 : Nt.find((
|
|
71735
|
-
(Gt = (Ht = this.originStyle) == null ? void 0 : Ht.satellite.layers) == null ? void 0 : Gt.find((
|
|
71736
|
-
(Ut = (Wt = this.originStyle) == null ? void 0 : Wt.satellite.layers) == null ? void 0 : Ut.find((
|
|
71737
|
-
(Yt = (Vt = this.originStyle) == null ? void 0 : Vt.satellite.layers) == null ? void 0 : Yt.find((
|
|
71738
|
-
(Xt = (Zt = this.originStyle) == null ? void 0 : Zt.satellite.layers) == null ? void 0 : Xt.find((
|
|
71739
|
-
(Kt = (qt = this.originStyle) == null ? void 0 : qt.satellite.layers) == null ? void 0 : Kt.find((
|
|
71740
|
-
(Qt = (Jt = this.originStyle) == null ? void 0 : Jt.satellite.layers) == null ? void 0 : Qt.find((
|
|
71741
|
-
(to = (eo = this.originStyle) == null ? void 0 : eo.satellite.layers) == null ? void 0 : to.find((
|
|
71728
|
+
(_t = (vt = this.originStyle) == null ? void 0 : vt.satellite.layers) == null ? void 0 : _t.find((u) => u.id === "background"),
|
|
71729
|
+
(zt = (kt = this.originStyle) == null ? void 0 : kt.satellite.layers) == null ? void 0 : zt.find((u) => u.id === "satellite"),
|
|
71730
|
+
(Pt = (Lt = this.originStyle) == null ? void 0 : Lt.satellite.layers) == null ? void 0 : Pt.find((u) => u.id === "empty-layer-1"),
|
|
71731
|
+
(St = (Ct = this.originStyle) == null ? void 0 : Ct.satellite.layers) == null ? void 0 : St.find((u) => u.id === "country-boundaries"),
|
|
71732
|
+
(Tt = (Mt = this.originStyle) == null ? void 0 : Mt.satellite.layers) == null ? void 0 : Tt.find((u) => u.id === "water-outline"),
|
|
71733
|
+
(It = (Rt = this.originStyle) == null ? void 0 : Rt.satellite.layers) == null ? void 0 : It.find((u) => u.id === "empty-layer-2"),
|
|
71734
|
+
(Dt = (At = this.originStyle) == null ? void 0 : At.satellite.layers) == null ? void 0 : Dt.find((u) => u.id === "empty-layer-3"),
|
|
71735
|
+
(Bt = (Ot = this.originStyle) == null ? void 0 : Ot.satellite.layers) == null ? void 0 : Bt.find((u) => u.id === "empty-layer-4"),
|
|
71736
|
+
(Et = (jt = this.originStyle) == null ? void 0 : jt.satellite.layers) == null ? void 0 : Et.find((u) => u.id === "world-12nm-v4-20231025"),
|
|
71737
|
+
(Nt = (Ft = this.originStyle) == null ? void 0 : Ft.satellite.layers) == null ? void 0 : Nt.find((u) => u.id === "ne-10m-outline"),
|
|
71738
|
+
(Gt = (Ht = this.originStyle) == null ? void 0 : Ht.satellite.layers) == null ? void 0 : Gt.find((u) => u.id === "ne-10m-label"),
|
|
71739
|
+
(Ut = (Wt = this.originStyle) == null ? void 0 : Wt.satellite.layers) == null ? void 0 : Ut.find((u) => u.id === "china-route-line"),
|
|
71740
|
+
(Yt = (Vt = this.originStyle) == null ? void 0 : Vt.satellite.layers) == null ? void 0 : Yt.find((u) => u.id === "china-route-fill"),
|
|
71741
|
+
(Xt = (Zt = this.originStyle) == null ? void 0 : Zt.satellite.layers) == null ? void 0 : Xt.find((u) => u.id === "china-route-label"),
|
|
71742
|
+
(Kt = (qt = this.originStyle) == null ? void 0 : qt.satellite.layers) == null ? void 0 : Kt.find((u) => u.id === "country-label"),
|
|
71743
|
+
(Qt = (Jt = this.originStyle) == null ? void 0 : Jt.satellite.layers) == null ? void 0 : Qt.find((u) => u.id === "continent-label"),
|
|
71744
|
+
(to = (eo = this.originStyle) == null ? void 0 : eo.satellite.layers) == null ? void 0 : to.find((u) => u.id === "state-label")
|
|
71742
71745
|
]
|
|
71743
71746
|
},
|
|
71744
71747
|
nautical: {
|
|
@@ -71771,26 +71774,26 @@ class ql {
|
|
|
71771
71774
|
name: "equirectangular"
|
|
71772
71775
|
},
|
|
71773
71776
|
layers: [
|
|
71774
|
-
(ro = (io = this.originStyle) == null ? void 0 : io.nautical.layers) == null ? void 0 : ro.find((
|
|
71775
|
-
(so = (lo = this.originStyle) == null ? void 0 : lo.nautical.layers) == null ? void 0 : so.find((
|
|
71776
|
-
(co = (no = this.originStyle) == null ? void 0 : no.nautical.layers) == null ? void 0 : co.find((
|
|
71777
|
-
(ho = (mo = this.originStyle) == null ? void 0 : mo.nautical.layers) == null ? void 0 : ho.find((
|
|
71778
|
-
(uo = (po = this.originStyle) == null ? void 0 : po.nautical.layers) == null ? void 0 : uo.find((
|
|
71779
|
-
(fo = (go = this.originStyle) == null ? void 0 : go.nautical.layers) == null ? void 0 : fo.find((
|
|
71780
|
-
(yo = (bo = this.originStyle) == null ? void 0 : bo.nautical.layers) == null ? void 0 : yo.find((
|
|
71781
|
-
(xo = (wo = this.originStyle) == null ? void 0 : wo.nautical.layers) == null ? void 0 : xo.find((
|
|
71782
|
-
(_o = (vo = this.originStyle) == null ? void 0 : vo.nautical.layers) == null ? void 0 : _o.find((
|
|
71783
|
-
(zo = (ko = this.originStyle) == null ? void 0 : ko.nautical.layers) == null ? void 0 : zo.find((
|
|
71784
|
-
(Po = (Lo = this.originStyle) == null ? void 0 : Lo.nautical.layers) == null ? void 0 : Po.find((
|
|
71785
|
-
(So = (Co = this.originStyle) == null ? void 0 : Co.nautical.layers) == null ? void 0 : So.find((
|
|
71777
|
+
(ro = (io = this.originStyle) == null ? void 0 : io.nautical.layers) == null ? void 0 : ro.find((u) => u.id === "empty-layer-1"),
|
|
71778
|
+
(so = (lo = this.originStyle) == null ? void 0 : lo.nautical.layers) == null ? void 0 : so.find((u) => u.id === "country-boundaries"),
|
|
71779
|
+
(co = (no = this.originStyle) == null ? void 0 : no.nautical.layers) == null ? void 0 : co.find((u) => u.id === "water-outline"),
|
|
71780
|
+
(ho = (mo = this.originStyle) == null ? void 0 : mo.nautical.layers) == null ? void 0 : ho.find((u) => u.id === "empty-layer-2"),
|
|
71781
|
+
(uo = (po = this.originStyle) == null ? void 0 : po.nautical.layers) == null ? void 0 : uo.find((u) => u.id === "empty-layer-3"),
|
|
71782
|
+
(fo = (go = this.originStyle) == null ? void 0 : go.nautical.layers) == null ? void 0 : fo.find((u) => u.id === "empty-layer-4"),
|
|
71783
|
+
(yo = (bo = this.originStyle) == null ? void 0 : bo.nautical.layers) == null ? void 0 : yo.find((u) => u.id === "world-12nm-v4-20231025"),
|
|
71784
|
+
(xo = (wo = this.originStyle) == null ? void 0 : wo.nautical.layers) == null ? void 0 : xo.find((u) => u.id === "ne-10m-outline"),
|
|
71785
|
+
(_o = (vo = this.originStyle) == null ? void 0 : vo.nautical.layers) == null ? void 0 : _o.find((u) => u.id === "ne-10m-label"),
|
|
71786
|
+
(zo = (ko = this.originStyle) == null ? void 0 : ko.nautical.layers) == null ? void 0 : zo.find((u) => u.id === "china-route-line"),
|
|
71787
|
+
(Po = (Lo = this.originStyle) == null ? void 0 : Lo.nautical.layers) == null ? void 0 : Po.find((u) => u.id === "china-route-fill"),
|
|
71788
|
+
(So = (Co = this.originStyle) == null ? void 0 : Co.nautical.layers) == null ? void 0 : So.find((u) => u.id === "china-route-label"),
|
|
71786
71789
|
this.i4.layer,
|
|
71787
71790
|
// this.hi.layer,
|
|
71788
|
-
(To = (Mo = this.originStyle) == null ? void 0 : Mo.light.layers) == null ? void 0 : To.find((
|
|
71789
|
-
(Io = (Ro = this.originStyle) == null ? void 0 : Ro.light.layers) == null ? void 0 : Io.find((
|
|
71790
|
-
(Do = (Ao = this.originStyle) == null ? void 0 : Ao.light.layers) == null ? void 0 : Do.find((
|
|
71791
|
-
(Bo = (Oo = this.originStyle) == null ? void 0 : Oo.light.layers) == null ? void 0 : Bo.find((
|
|
71792
|
-
(Eo = (jo = this.originStyle) == null ? void 0 : jo.light.layers) == null ? void 0 : Eo.find((
|
|
71793
|
-
(No = (Fo = this.originStyle) == null ? void 0 : Fo.light.layers) == null ? void 0 : No.find((
|
|
71791
|
+
(To = (Mo = this.originStyle) == null ? void 0 : Mo.light.layers) == null ? void 0 : To.find((u) => u.id === "admin-0-boundary-bg"),
|
|
71792
|
+
(Io = (Ro = this.originStyle) == null ? void 0 : Ro.light.layers) == null ? void 0 : Io.find((u) => u.id === "admin-0-boundary"),
|
|
71793
|
+
(Do = (Ao = this.originStyle) == null ? void 0 : Ao.light.layers) == null ? void 0 : Do.find((u) => u.id === "admin-0-boundary-disputed"),
|
|
71794
|
+
(Bo = (Oo = this.originStyle) == null ? void 0 : Oo.light.layers) == null ? void 0 : Bo.find((u) => u.id === "country-label"),
|
|
71795
|
+
(Eo = (jo = this.originStyle) == null ? void 0 : jo.light.layers) == null ? void 0 : Eo.find((u) => u.id === "continent-label"),
|
|
71796
|
+
(No = (Fo = this.originStyle) == null ? void 0 : Fo.light.layers) == null ? void 0 : No.find((u) => u.id === "state-label")
|
|
71794
71797
|
],
|
|
71795
71798
|
created: "2025-07-22T02:15:53.587Z",
|
|
71796
71799
|
modified: "2025-08-07T10:15:43.870Z",
|