@idmwx/idmui-gl4 0.6.5 → 0.6.6
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/README.md +6 -0
- package/dist/index.js +950 -940
- package/dist/index.umd.cjs +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var re = (o, e, t) => (
|
|
1
|
+
var ia = Object.defineProperty;
|
|
2
|
+
var ra = (o, e, t) => e in o ? ia(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var re = (o, e, t) => (ra(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import Be from "axios";
|
|
5
|
-
import { openBlock as y, createElementBlock as T, withDirectives as eo, createElementVNode as l, vShow as to, toDisplayString as w, normalizeStyle as ae, resolveComponent as k, createVNode as h, withCtx as g, mergeProps as
|
|
5
|
+
import { openBlock as y, createElementBlock as T, withDirectives as eo, createElementVNode as l, vShow as to, toDisplayString as w, normalizeStyle as ae, resolveComponent as k, createVNode as h, withCtx as g, mergeProps as E, normalizeClass as Ne, createTextVNode as Z, Fragment as _e, renderList as Le, createBlock as U, createCommentVNode as F, withModifiers as la } from "vue";
|
|
6
6
|
import ke from "mapbox-gl";
|
|
7
|
-
import { LngLatHelper as oe, TropicalHelper as
|
|
8
|
-
import * as
|
|
9
|
-
import { LayerHelper as Jt, CompanyHelper as
|
|
7
|
+
import { LngLatHelper as oe, TropicalHelper as ea, LaneHelper as Fe } from "@idm-plugin/geo";
|
|
8
|
+
import * as j from "@turf/turf";
|
|
9
|
+
import { LayerHelper as Jt, CompanyHelper as sa } from "@idm-plugin/tag-nop";
|
|
10
10
|
import O from "moment";
|
|
11
|
-
import
|
|
12
|
-
import { LayerHelper as
|
|
11
|
+
import na from "@mapbox/sphericalmercator";
|
|
12
|
+
import { LayerHelper as ca } from "@idm-plugin/tag";
|
|
13
13
|
import { Meteo2Assist as oo } from "@idm-plugin/meteo";
|
|
14
|
-
import { useTheme as
|
|
14
|
+
import { useTheme as ma } from "vuetify";
|
|
15
15
|
const q = (o, e) => {
|
|
16
16
|
const t = o.__vccOpts || o;
|
|
17
17
|
for (const [i, a] of e)
|
|
18
18
|
t[i] = a;
|
|
19
19
|
return t;
|
|
20
|
-
},
|
|
20
|
+
}, ha = {
|
|
21
21
|
name: "IdmWarZone",
|
|
22
22
|
props: {
|
|
23
23
|
map: {
|
|
@@ -108,10 +108,10 @@ const q = (o, e) => {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
-
function
|
|
111
|
+
function da(o, e, t, i, a, r) {
|
|
112
112
|
return y(), T("div");
|
|
113
113
|
}
|
|
114
|
-
const
|
|
114
|
+
const pa = /* @__PURE__ */ q(ha, [["render", da]]), ua = {
|
|
115
115
|
name: "IdmGmdssArea",
|
|
116
116
|
props: {
|
|
117
117
|
map: {
|
|
@@ -232,10 +232,10 @@ const Yo = /* @__PURE__ */ q(Uo, [["render", Vo]]), Zo = {
|
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
|
-
function
|
|
235
|
+
function ga(o, e, t, i, a, r) {
|
|
236
236
|
return y(), T("div");
|
|
237
237
|
}
|
|
238
|
-
const
|
|
238
|
+
const fa = /* @__PURE__ */ q(ua, [["render", ga]]), ba = {
|
|
239
239
|
name: "IdmEcaZone",
|
|
240
240
|
props: {
|
|
241
241
|
map: {
|
|
@@ -327,11 +327,11 @@ const qo = /* @__PURE__ */ q(Zo, [["render", Xo]]), Ko = {
|
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
|
-
function
|
|
330
|
+
function ya(o, e, t, i, a, r) {
|
|
331
331
|
return y(), T("div");
|
|
332
332
|
}
|
|
333
|
-
const
|
|
334
|
-
const
|
|
333
|
+
const wa = /* @__PURE__ */ q(ba, [["render", ya]]);
|
|
334
|
+
const xa = {
|
|
335
335
|
name: "IdmAlertZone",
|
|
336
336
|
props: {
|
|
337
337
|
map: {
|
|
@@ -462,10 +462,10 @@ const $o = {
|
|
|
462
462
|
this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
},
|
|
466
|
-
function
|
|
465
|
+
}, va = { id: "idm-gl4-zone-info" }, _a = ["innerHTML"];
|
|
466
|
+
function ka(o, e, t, i, a, r) {
|
|
467
467
|
var s;
|
|
468
|
-
return eo((y(), T("div",
|
|
468
|
+
return eo((y(), T("div", va, [
|
|
469
469
|
l("div", {
|
|
470
470
|
class: "iconfont close",
|
|
471
471
|
onClick: e[0] || (e[0] = (c) => a.showZone = !1)
|
|
@@ -473,13 +473,13 @@ function oa(o, e, t, i, a, r) {
|
|
|
473
473
|
l("div", {
|
|
474
474
|
class: "rich-context",
|
|
475
475
|
innerHTML: (s = a.form) == null ? void 0 : s.name
|
|
476
|
-
}, null, 8,
|
|
476
|
+
}, null, 8, _a)
|
|
477
477
|
], 512)), [
|
|
478
478
|
[to, a.showZone]
|
|
479
479
|
]);
|
|
480
480
|
}
|
|
481
|
-
const
|
|
482
|
-
const
|
|
481
|
+
const za = /* @__PURE__ */ q(xa, [["render", ka]]);
|
|
482
|
+
const La = {
|
|
483
483
|
name: "IdmPort",
|
|
484
484
|
props: {
|
|
485
485
|
map: {
|
|
@@ -575,37 +575,37 @@ const ia = {
|
|
|
575
575
|
o.forecastModel = this.forecastModel, this.$emit("meteoMore", o);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
},
|
|
578
|
+
}, Pa = {
|
|
579
579
|
ref: "idmPortInfo",
|
|
580
580
|
id: "port-info"
|
|
581
|
-
},
|
|
581
|
+
}, Ca = { class: "port-box" }, Sa = { class: "flex-start" }, Ma = { class: "flex-start" }, Ta = { class: "flex-start" }, Aa = {
|
|
582
582
|
class: "flex-start",
|
|
583
583
|
style: { "align-items": "flex-start" }
|
|
584
|
-
},
|
|
585
|
-
function
|
|
586
|
-
return eo((y(), T("div",
|
|
584
|
+
}, Ia = { class: "meteo-forecast flex-end" };
|
|
585
|
+
function Ra(o, e, t, i, a, r) {
|
|
586
|
+
return eo((y(), T("div", Pa, [
|
|
587
587
|
l("div", {
|
|
588
588
|
class: "close iconfont",
|
|
589
589
|
onClick: e[0] || (e[0] = (s) => a.showPort = !1)
|
|
590
590
|
}, ""),
|
|
591
|
-
l("div",
|
|
592
|
-
l("div",
|
|
591
|
+
l("div", Ca, [
|
|
592
|
+
l("div", Sa, [
|
|
593
593
|
e[2] || (e[2] = l("label", null, "Name : ", -1)),
|
|
594
594
|
l("span", null, w(a.form.name), 1)
|
|
595
595
|
]),
|
|
596
|
-
l("div",
|
|
596
|
+
l("div", Ma, [
|
|
597
597
|
e[3] || (e[3] = l("label", null, "Position : ", -1)),
|
|
598
598
|
l("span", null, w(r.computeLat(a.form.lat)) + ", " + w(r.computeLng(a.form.lng)), 1)
|
|
599
599
|
]),
|
|
600
|
-
l("div",
|
|
600
|
+
l("div", Ta, [
|
|
601
601
|
e[4] || (e[4] = l("label", null, "LoCode : ", -1)),
|
|
602
602
|
l("span", null, w(a.form.loCode || "-"), 1)
|
|
603
603
|
]),
|
|
604
|
-
l("div",
|
|
604
|
+
l("div", Aa, [
|
|
605
605
|
e[5] || (e[5] = l("label", null, "Region : ", -1)),
|
|
606
606
|
l("span", null, w(a.form.zoneName || "-"), 1)
|
|
607
607
|
]),
|
|
608
|
-
l("div",
|
|
608
|
+
l("div", Ia, [
|
|
609
609
|
l("span", {
|
|
610
610
|
onClick: e[1] || (e[1] = (s) => r.handleClickMeteo(a.form))
|
|
611
611
|
}, "Meteo Forecast")
|
|
@@ -615,7 +615,7 @@ function da(o, e, t, i, a, r) {
|
|
|
615
615
|
[to, a.showPort]
|
|
616
616
|
]);
|
|
617
617
|
}
|
|
618
|
-
const
|
|
618
|
+
const Da = /* @__PURE__ */ q(La, [["render", Ra], ["__scopeId", "data-v-474e9036"]]), Oa = {
|
|
619
619
|
name: "IdmLoadLine",
|
|
620
620
|
props: {
|
|
621
621
|
map: {
|
|
@@ -686,10 +686,10 @@ const pa = /* @__PURE__ */ q(ia, [["render", da], ["__scopeId", "data-v-474e9036
|
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
};
|
|
689
|
-
function
|
|
689
|
+
function Ba(o, e, t, i, a, r) {
|
|
690
690
|
return y(), T("div");
|
|
691
691
|
}
|
|
692
|
-
const
|
|
692
|
+
const Ea = /* @__PURE__ */ q(Oa, [["render", Ba]]), ja = {
|
|
693
693
|
name: "IdmTimezone",
|
|
694
694
|
props: {
|
|
695
695
|
map: {
|
|
@@ -855,10 +855,10 @@ const fa = /* @__PURE__ */ q(ua, [["render", ga]]), ba = {
|
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
857
|
};
|
|
858
|
-
function
|
|
858
|
+
function Fa(o, e, t, i, a, r) {
|
|
859
859
|
return y(), T("div");
|
|
860
860
|
}
|
|
861
|
-
const
|
|
861
|
+
const Na = /* @__PURE__ */ q(ja, [["render", Fa]]), Ha = {
|
|
862
862
|
name: "IdmVoluntaryReportingArea",
|
|
863
863
|
props: {
|
|
864
864
|
map: {
|
|
@@ -947,10 +947,10 @@ const wa = /* @__PURE__ */ q(ba, [["render", ya]]), xa = {
|
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
949
|
};
|
|
950
|
-
function
|
|
950
|
+
function Ga(o, e, t, i, a, r) {
|
|
951
951
|
return y(), T("div");
|
|
952
952
|
}
|
|
953
|
-
const
|
|
953
|
+
const Wa = /* @__PURE__ */ q(Ha, [["render", Ga]]), Ua = {
|
|
954
954
|
name: "IdmSpecialArea",
|
|
955
955
|
props: {
|
|
956
956
|
map: {
|
|
@@ -1041,10 +1041,10 @@ const _a = /* @__PURE__ */ q(xa, [["render", va]]), ka = {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
1043
|
};
|
|
1044
|
-
function
|
|
1044
|
+
function Va(o, e, t, i, a, r) {
|
|
1045
1045
|
return y(), T("div");
|
|
1046
1046
|
}
|
|
1047
|
-
const
|
|
1047
|
+
const Ya = /* @__PURE__ */ q(Ua, [["render", Va]]), Za = {
|
|
1048
1048
|
name: "IdmTerminator",
|
|
1049
1049
|
props: {
|
|
1050
1050
|
map: {
|
|
@@ -1103,10 +1103,10 @@ const La = /* @__PURE__ */ q(ka, [["render", za]]), Pa = {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
};
|
|
1106
|
-
function
|
|
1106
|
+
function Xa(o, e, t, i, a, r) {
|
|
1107
1107
|
return y(), T("div");
|
|
1108
1108
|
}
|
|
1109
|
-
const
|
|
1109
|
+
const qa = /* @__PURE__ */ q(Za, [["render", Xa]]), Ka = {
|
|
1110
1110
|
name: "IdmWorld12nm",
|
|
1111
1111
|
props: {
|
|
1112
1112
|
map: {
|
|
@@ -1162,11 +1162,11 @@ const Ma = /* @__PURE__ */ q(Pa, [["render", Ca]]), Sa = {
|
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
1164
|
};
|
|
1165
|
-
function
|
|
1165
|
+
function Qa(o, e, t, i, a, r) {
|
|
1166
1166
|
return null;
|
|
1167
1167
|
}
|
|
1168
|
-
const
|
|
1169
|
-
const
|
|
1168
|
+
const Ja = /* @__PURE__ */ q(Ka, [["render", Qa]]);
|
|
1169
|
+
const $a = {
|
|
1170
1170
|
name: "IdmWorldMarine",
|
|
1171
1171
|
props: {
|
|
1172
1172
|
map: {
|
|
@@ -1203,10 +1203,10 @@ const Ia = {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
1205
|
};
|
|
1206
|
-
function
|
|
1206
|
+
function ei(o, e, t, i, a, r) {
|
|
1207
1207
|
return null;
|
|
1208
1208
|
}
|
|
1209
|
-
const
|
|
1209
|
+
const ti = /* @__PURE__ */ q($a, [["render", ei]]), oi = {
|
|
1210
1210
|
name: "IdmChinaRoute",
|
|
1211
1211
|
props: {
|
|
1212
1212
|
map: {
|
|
@@ -1244,11 +1244,11 @@ const Da = /* @__PURE__ */ q(Ia, [["render", Ra]]), Oa = {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
};
|
|
1247
|
-
function
|
|
1247
|
+
function ai(o, e, t, i, a, r) {
|
|
1248
1248
|
return null;
|
|
1249
1249
|
}
|
|
1250
|
-
const
|
|
1251
|
-
const
|
|
1250
|
+
const ii = /* @__PURE__ */ q(oi, [["render", ai]]);
|
|
1251
|
+
const ri = {
|
|
1252
1252
|
name: "IdmLatLng",
|
|
1253
1253
|
props: {
|
|
1254
1254
|
map: {
|
|
@@ -1362,7 +1362,7 @@ const Ea = {
|
|
|
1362
1362
|
handleZoomEnd() {
|
|
1363
1363
|
var e;
|
|
1364
1364
|
const o = this.handleComputeLatLngs();
|
|
1365
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
1365
|
+
(e = this.map) == null || e.getSource(this.source).setData(j.featureCollection(o));
|
|
1366
1366
|
},
|
|
1367
1367
|
handleRender() {
|
|
1368
1368
|
if (this.handleClear(), this.map) {
|
|
@@ -1418,7 +1418,7 @@ const Ea = {
|
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
};
|
|
1421
|
-
function
|
|
1421
|
+
function li(o, e, t, i, a, r) {
|
|
1422
1422
|
var s, c, n;
|
|
1423
1423
|
return y(), T("div", {
|
|
1424
1424
|
class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
|
|
@@ -1429,24 +1429,24 @@ function Fa(o, e, t, i, a, r) {
|
|
|
1429
1429
|
l("div", null, w((n = a.lngLat) == null ? void 0 : n.str), 1)
|
|
1430
1430
|
], 4);
|
|
1431
1431
|
}
|
|
1432
|
-
const
|
|
1433
|
-
const
|
|
1432
|
+
const oa = /* @__PURE__ */ q(ri, [["render", li]]);
|
|
1433
|
+
const si = {
|
|
1434
1434
|
name: "IdmOtherLayerr",
|
|
1435
1435
|
components: {
|
|
1436
|
-
IdmWarZone:
|
|
1437
|
-
IdmGmdssArea:
|
|
1438
|
-
IdmEcaZone:
|
|
1439
|
-
IdmAlertZone:
|
|
1440
|
-
IdmPort:
|
|
1441
|
-
IdmLoadLine:
|
|
1442
|
-
IdmTimezone:
|
|
1443
|
-
IdmVRA:
|
|
1444
|
-
IdmSpecialArea:
|
|
1445
|
-
IdmTerminator:
|
|
1446
|
-
IdmWorld12nm:
|
|
1447
|
-
IdmWorldMarine:
|
|
1448
|
-
IdmChinaRoute:
|
|
1449
|
-
IdmLatLng:
|
|
1436
|
+
IdmWarZone: pa,
|
|
1437
|
+
IdmGmdssArea: fa,
|
|
1438
|
+
IdmEcaZone: wa,
|
|
1439
|
+
IdmAlertZone: za,
|
|
1440
|
+
IdmPort: Da,
|
|
1441
|
+
IdmLoadLine: Ea,
|
|
1442
|
+
IdmTimezone: Na,
|
|
1443
|
+
IdmVRA: Wa,
|
|
1444
|
+
IdmSpecialArea: Ya,
|
|
1445
|
+
IdmTerminator: qa,
|
|
1446
|
+
IdmWorld12nm: Ja,
|
|
1447
|
+
IdmWorldMarine: ti,
|
|
1448
|
+
IdmChinaRoute: ii,
|
|
1449
|
+
IdmLatLng: oa
|
|
1450
1450
|
},
|
|
1451
1451
|
props: {
|
|
1452
1452
|
map: {
|
|
@@ -1590,9 +1590,9 @@ const Na = {
|
|
|
1590
1590
|
}
|
|
1591
1591
|
});
|
|
1592
1592
|
if (((t = c == null ? void 0 : c.data) == null ? void 0 : t.code) === 0) {
|
|
1593
|
-
const n = (i = c == null ? void 0 : c.data) == null ? void 0 : i.data,
|
|
1593
|
+
const n = (i = c == null ? void 0 : c.data) == null ? void 0 : i.data, u = [];
|
|
1594
1594
|
for (const m in n)
|
|
1595
|
-
|
|
1595
|
+
u.push(
|
|
1596
1596
|
Be.get(n[m], {
|
|
1597
1597
|
headers: {
|
|
1598
1598
|
Authorization: this.token || this.defaultMeteoToken,
|
|
@@ -1600,9 +1600,9 @@ const Na = {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
})
|
|
1602
1602
|
);
|
|
1603
|
-
(await Promise.all(
|
|
1604
|
-
var b,
|
|
1605
|
-
const f = ((b = m == null ? void 0 : m.data) == null ? void 0 : b.data) || (m == null ? void 0 : m.data), v = (L = (
|
|
1603
|
+
(await Promise.all(u)).map((m) => {
|
|
1604
|
+
var b, S, L;
|
|
1605
|
+
const f = ((b = m == null ? void 0 : m.data) == null ? void 0 : b.data) || (m == null ? void 0 : m.data), v = (L = (S = m == null ? void 0 : m.config) == null ? void 0 : S.headers) == null ? void 0 : L.key;
|
|
1606
1606
|
this.otherLayers[v] = f;
|
|
1607
1607
|
});
|
|
1608
1608
|
}
|
|
@@ -1613,9 +1613,9 @@ const Na = {
|
|
|
1613
1613
|
}
|
|
1614
1614
|
});
|
|
1615
1615
|
if (((a = c == null ? void 0 : c.data) == null ? void 0 : a.code) === 0) {
|
|
1616
|
-
const n = (r = c == null ? void 0 : c.data) == null ? void 0 : r.data,
|
|
1616
|
+
const n = (r = c == null ? void 0 : c.data) == null ? void 0 : r.data, u = [];
|
|
1617
1617
|
for (const m in n)
|
|
1618
|
-
|
|
1618
|
+
u.push(
|
|
1619
1619
|
Be.get(n[m], {
|
|
1620
1620
|
headers: {
|
|
1621
1621
|
Authorization: this.token || this.defaultMeteoToken,
|
|
@@ -1623,9 +1623,9 @@ const Na = {
|
|
|
1623
1623
|
}
|
|
1624
1624
|
})
|
|
1625
1625
|
);
|
|
1626
|
-
(await Promise.all(
|
|
1627
|
-
var b,
|
|
1628
|
-
const f = ((b = m == null ? void 0 : m.data) == null ? void 0 : b.data) || (m == null ? void 0 : m.data), v = (L = (
|
|
1626
|
+
(await Promise.all(u)).map((m) => {
|
|
1627
|
+
var b, S, L;
|
|
1628
|
+
const f = ((b = m == null ? void 0 : m.data) == null ? void 0 : b.data) || (m == null ? void 0 : m.data), v = (L = (S = m == null ? void 0 : m.config) == null ? void 0 : S.headers) == null ? void 0 : L.key;
|
|
1629
1629
|
this.otherLayers[v] = f;
|
|
1630
1630
|
});
|
|
1631
1631
|
}
|
|
@@ -1639,27 +1639,27 @@ const Na = {
|
|
|
1639
1639
|
this.layerWeight !== o && (this.layerWeight = o, this.fetchOtherLayers({ all: !0 }));
|
|
1640
1640
|
}
|
|
1641
1641
|
}
|
|
1642
|
-
},
|
|
1642
|
+
}, ni = { class: "idm-gl4-other-layer" }, ci = { class: "header-box d-flex justify-space-between align-center px-4" }, mi = { class: "text-h5 font-weight-medium" }, hi = { class: "list-box scroll pl-4 pr-2 overflow-y-auto" }, di = { class: "layers-body mt-4 d-flex justify-start align-center flex-wrap" }, pi = ["onClick"], ui = {
|
|
1643
1643
|
key: 0,
|
|
1644
1644
|
src: "https://osshz.idmwx.com/asset/dark-map.png",
|
|
1645
1645
|
class: "border rounded-sm"
|
|
1646
|
-
},
|
|
1646
|
+
}, gi = {
|
|
1647
1647
|
key: 1,
|
|
1648
1648
|
src: "https://osshz.idmwx.com/asset/nautical-map.png",
|
|
1649
1649
|
class: "border rounded-sm"
|
|
1650
|
-
},
|
|
1650
|
+
}, fi = {
|
|
1651
1651
|
key: 2,
|
|
1652
1652
|
src: "https://osshz.idmwx.com/asset/satellite-map.png",
|
|
1653
1653
|
class: "border rounded-sm"
|
|
1654
|
-
},
|
|
1654
|
+
}, bi = {
|
|
1655
1655
|
key: 3,
|
|
1656
1656
|
src: "https://osshz.idmwx.com/asset/light-map.png",
|
|
1657
1657
|
class: "border rounded-sm"
|
|
1658
|
-
},
|
|
1659
|
-
function
|
|
1658
|
+
}, yi = { class: "text-body-2 text-center pt-1" };
|
|
1659
|
+
function wi(o, e, t, i, a, r) {
|
|
1660
1660
|
var V, Y, $, ee, Q, ne, he, de, ce, K;
|
|
1661
|
-
const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"),
|
|
1662
|
-
return y(), T("div",
|
|
1661
|
+
const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"), u = k("VCardItem"), p = k("VCheckbox"), m = k("VCardText"), f = k("VCard"), v = k("IdmWorld12nm"), b = k("IdmWorldMarine"), S = k("IdmChinaRoute"), L = k("IdmWarZone"), B = k("IdmGmdssArea"), M = k("IdmEcaZone"), P = k("IdmAlertZone"), _ = k("IdmPort"), z = k("IdmLoadLine"), C = k("IdmTimezone"), x = k("IdmVRA"), A = k("IdmSpecialArea"), G = k("IdmTerminator"), X = k("IdmLatLng");
|
|
1662
|
+
return y(), T("div", ni, [
|
|
1663
1663
|
l("div", {
|
|
1664
1664
|
class: "menu-bar-box transition px-1 rounded",
|
|
1665
1665
|
style: ae({ top: t.top + 10 + "px", right: a.right + "px" })
|
|
@@ -1669,7 +1669,7 @@ function Ja(o, e, t, i, a, r) {
|
|
|
1669
1669
|
location: "left"
|
|
1670
1670
|
}, {
|
|
1671
1671
|
activator: g(({ props: I }) => [
|
|
1672
|
-
h(s,
|
|
1672
|
+
h(s, E(I, {
|
|
1673
1673
|
"min-width": "32",
|
|
1674
1674
|
width: "32",
|
|
1675
1675
|
height: "32",
|
|
@@ -1690,8 +1690,8 @@ function Ja(o, e, t, i, a, r) {
|
|
|
1690
1690
|
class: Ne(["available-layers transition", a.toggle ? "right-bar" : ""]),
|
|
1691
1691
|
style: ae({ top: t.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
1692
1692
|
}, [
|
|
1693
|
-
l("div",
|
|
1694
|
-
l("div",
|
|
1693
|
+
l("div", ci, [
|
|
1694
|
+
l("div", mi, w(o.$t("layer.layers")), 1),
|
|
1695
1695
|
h(s, {
|
|
1696
1696
|
icon: "",
|
|
1697
1697
|
density: "comfortable",
|
|
@@ -1709,13 +1709,13 @@ function Ja(o, e, t, i, a, r) {
|
|
|
1709
1709
|
__: [6]
|
|
1710
1710
|
}, 8, ["onClick"])
|
|
1711
1711
|
]),
|
|
1712
|
-
l("div",
|
|
1712
|
+
l("div", hi, [
|
|
1713
1713
|
h(f, {
|
|
1714
1714
|
class: "menu-card mx-auto mb-3",
|
|
1715
1715
|
elevation: "0"
|
|
1716
1716
|
}, {
|
|
1717
1717
|
default: g(() => [
|
|
1718
|
-
h(
|
|
1718
|
+
h(u, { class: "border-b-thin" }, {
|
|
1719
1719
|
default: g(() => [
|
|
1720
1720
|
h(n, {
|
|
1721
1721
|
class: "text-subtitle-1 font-weight-medium",
|
|
@@ -1731,7 +1731,7 @@ function Ja(o, e, t, i, a, r) {
|
|
|
1731
1731
|
}),
|
|
1732
1732
|
h(m, { class: "pb-2" }, {
|
|
1733
1733
|
default: g(() => [
|
|
1734
|
-
l("div",
|
|
1734
|
+
l("div", di, [
|
|
1735
1735
|
(y(!0), T(_e, null, Le(a.mapFeathers, (I) => (y(), T("div", {
|
|
1736
1736
|
key: I.value,
|
|
1737
1737
|
class: "mb-2 feather-item",
|
|
@@ -1740,12 +1740,12 @@ function Ja(o, e, t, i, a, r) {
|
|
|
1740
1740
|
l("div", {
|
|
1741
1741
|
class: Ne([a.mapFeather === I.value ? "active" : "", "img-box"])
|
|
1742
1742
|
}, [
|
|
1743
|
-
I.value === "dark" ? (y(), T("img",
|
|
1743
|
+
I.value === "dark" ? (y(), T("img", ui)) : I.value === "nautical" ? (y(), T("img", gi)) : I.value === "satellite" ? (y(), T("img", fi)) : (y(), T("img", bi))
|
|
1744
1744
|
], 2),
|
|
1745
|
-
l("div",
|
|
1746
|
-
], 8,
|
|
1745
|
+
l("div", yi, w(o.$t(`layer.${I.locale}`)), 1)
|
|
1746
|
+
], 8, pi))), 128))
|
|
1747
1747
|
]),
|
|
1748
|
-
(y(!0), T(_e, null, Le(a.tagLayers.filter((I) => ["graticule", "day-night", "time-zones"].includes(I.key)), (I) => (y(), U(
|
|
1748
|
+
(y(!0), T(_e, null, Le(a.tagLayers.filter((I) => ["graticule", "day-night", "time-zones"].includes(I.key)), (I) => (y(), U(p, {
|
|
1749
1749
|
key: I.key,
|
|
1750
1750
|
modelValue: a.checkList,
|
|
1751
1751
|
"onUpdate:modelValue": e[0] || (e[0] = (le) => a.checkList = le),
|
|
@@ -1768,7 +1768,7 @@ function Ja(o, e, t, i, a, r) {
|
|
|
1768
1768
|
elevation: "0"
|
|
1769
1769
|
}, {
|
|
1770
1770
|
default: g(() => [
|
|
1771
|
-
h(
|
|
1771
|
+
h(u, { class: "border-b-thin" }, {
|
|
1772
1772
|
default: g(() => [
|
|
1773
1773
|
h(n, {
|
|
1774
1774
|
class: "text-subtitle-1 font-weight-medium",
|
|
@@ -1784,7 +1784,7 @@ function Ja(o, e, t, i, a, r) {
|
|
|
1784
1784
|
}),
|
|
1785
1785
|
h(m, { class: "py-2" }, {
|
|
1786
1786
|
default: g(() => [
|
|
1787
|
-
(y(!0), T(_e, null, Le(a.tagLayers.filter((I) => ["ports", "nav-warnings"].includes(I.key)), (I) => (y(), U(
|
|
1787
|
+
(y(!0), T(_e, null, Le(a.tagLayers.filter((I) => ["ports", "nav-warnings"].includes(I.key)), (I) => (y(), U(p, {
|
|
1788
1788
|
key: I.key,
|
|
1789
1789
|
modelValue: a.checkList,
|
|
1790
1790
|
"onUpdate:modelValue": e[1] || (e[1] = (le) => a.checkList = le),
|
|
@@ -1807,7 +1807,7 @@ function Ja(o, e, t, i, a, r) {
|
|
|
1807
1807
|
elevation: "0"
|
|
1808
1808
|
}, {
|
|
1809
1809
|
default: g(() => [
|
|
1810
|
-
h(
|
|
1810
|
+
h(u, { class: "border-b-thin" }, {
|
|
1811
1811
|
default: g(() => [
|
|
1812
1812
|
h(n, {
|
|
1813
1813
|
class: "text-subtitle-1 font-weight-medium",
|
|
@@ -1823,7 +1823,7 @@ function Ja(o, e, t, i, a, r) {
|
|
|
1823
1823
|
}),
|
|
1824
1824
|
h(m, { class: "py-2" }, {
|
|
1825
1825
|
default: g(() => [
|
|
1826
|
-
(y(!0), T(_e, null, Le(a.tagLayers.filter((I) => !["graticule", "day-night", "time-zones", "ports", "nav-warnings"].includes(I.key)), (I) => (y(), U(
|
|
1826
|
+
(y(!0), T(_e, null, Le(a.tagLayers.filter((I) => !["graticule", "day-night", "time-zones", "ports", "nav-warnings"].includes(I.key)), (I) => (y(), U(p, {
|
|
1827
1827
|
key: I.key,
|
|
1828
1828
|
modelValue: a.checkList,
|
|
1829
1829
|
"onUpdate:modelValue": e[2] || (e[2] = (le) => a.checkList = le),
|
|
@@ -1846,7 +1846,7 @@ function Ja(o, e, t, i, a, r) {
|
|
|
1846
1846
|
elevation: "0"
|
|
1847
1847
|
}, {
|
|
1848
1848
|
default: g(() => [
|
|
1849
|
-
h(
|
|
1849
|
+
h(u, { class: "border-b-thin" }, {
|
|
1850
1850
|
default: g(() => [
|
|
1851
1851
|
h(n, {
|
|
1852
1852
|
class: "text-subtitle-1 font-weight-medium",
|
|
@@ -1862,7 +1862,7 @@ function Ja(o, e, t, i, a, r) {
|
|
|
1862
1862
|
}),
|
|
1863
1863
|
h(m, { class: "py-2" }, {
|
|
1864
1864
|
default: g(() => [
|
|
1865
|
-
h(
|
|
1865
|
+
h(p, {
|
|
1866
1866
|
modelValue: a.followList,
|
|
1867
1867
|
"onUpdate:modelValue": e[3] || (e[3] = (I) => a.followList = I),
|
|
1868
1868
|
value: "ports",
|
|
@@ -1873,7 +1873,7 @@ function Ja(o, e, t, i, a, r) {
|
|
|
1873
1873
|
class: "flex-1-0-100 text-body-2",
|
|
1874
1874
|
"hide-details": ""
|
|
1875
1875
|
}, null, 8, ["modelValue", "label"]),
|
|
1876
|
-
h(
|
|
1876
|
+
h(p, {
|
|
1877
1877
|
modelValue: a.followList,
|
|
1878
1878
|
"onUpdate:modelValue": e[4] || (e[4] = (I) => a.followList = I),
|
|
1879
1879
|
value: "locations",
|
|
@@ -1892,76 +1892,76 @@ function Ja(o, e, t, i, a, r) {
|
|
|
1892
1892
|
})
|
|
1893
1893
|
])
|
|
1894
1894
|
], 6),
|
|
1895
|
-
t.map ? (y(), U(v,
|
|
1895
|
+
t.map ? (y(), U(v, E({
|
|
1896
1896
|
key: 0,
|
|
1897
1897
|
map: t.map,
|
|
1898
1898
|
token: t.token,
|
|
1899
1899
|
show: a.checkList.includes("world12nm")
|
|
1900
1900
|
}, o.$attrs), null, 16, ["map", "token", "show"])) : F("", !0),
|
|
1901
|
-
t.map ? (y(), U(b,
|
|
1901
|
+
t.map ? (y(), U(b, E({
|
|
1902
1902
|
key: 1,
|
|
1903
1903
|
map: t.map,
|
|
1904
1904
|
token: t.token,
|
|
1905
1905
|
show: a.checkList.includes("worldMarine")
|
|
1906
1906
|
}, o.$attrs), null, 16, ["map", "token", "show"])) : F("", !0),
|
|
1907
|
-
t.map ? (y(), U(
|
|
1907
|
+
t.map ? (y(), U(S, E({
|
|
1908
1908
|
key: 2,
|
|
1909
1909
|
map: t.map,
|
|
1910
1910
|
token: t.token,
|
|
1911
1911
|
show: a.checkList.includes("chinaRoute")
|
|
1912
1912
|
}, o.$attrs), null, 16, ["map", "token", "show"])) : F("", !0),
|
|
1913
|
-
t.map ? (y(), U(L,
|
|
1913
|
+
t.map ? (y(), U(L, E({
|
|
1914
1914
|
key: 3,
|
|
1915
1915
|
map: t.map,
|
|
1916
1916
|
zone: (V = a.otherLayers) == null ? void 0 : V["war-zones"]
|
|
1917
1917
|
}, o.$attrs), null, 16, ["map", "zone"])) : F("", !0),
|
|
1918
|
-
t.map ? (y(), U(B,
|
|
1918
|
+
t.map ? (y(), U(B, E({
|
|
1919
1919
|
key: 4,
|
|
1920
1920
|
map: t.map,
|
|
1921
1921
|
area: (Y = a.otherLayers) == null ? void 0 : Y["gmdss-areas"]
|
|
1922
1922
|
}, o.$attrs), null, 16, ["map", "area"])) : F("", !0),
|
|
1923
|
-
t.map ? (y(), U(
|
|
1923
|
+
t.map ? (y(), U(M, E({
|
|
1924
1924
|
key: 5,
|
|
1925
1925
|
map: t.map,
|
|
1926
1926
|
zone: ($ = a.otherLayers) == null ? void 0 : $["eca-zones"]
|
|
1927
1927
|
}, o.$attrs), null, 16, ["map", "zone"])) : F("", !0),
|
|
1928
|
-
t.map ? (y(), U(P,
|
|
1928
|
+
t.map ? (y(), U(P, E({
|
|
1929
1929
|
key: 6,
|
|
1930
1930
|
map: t.map,
|
|
1931
1931
|
zone: (ee = a.otherLayers) == null ? void 0 : ee["alert-zones"]
|
|
1932
1932
|
}, o.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "zone"])) : F("", !0),
|
|
1933
|
-
t.map ? (y(), U(_,
|
|
1933
|
+
t.map ? (y(), U(_, E({
|
|
1934
1934
|
key: 7,
|
|
1935
1935
|
map: t.map,
|
|
1936
1936
|
port: (Q = a.otherLayers) == null ? void 0 : Q.ports,
|
|
1937
1937
|
"forecast-model": t.forecastModel
|
|
1938
1938
|
}, o.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "port", "forecast-model"])) : F("", !0),
|
|
1939
|
-
t.map ? (y(), U(z,
|
|
1939
|
+
t.map ? (y(), U(z, E({
|
|
1940
1940
|
key: 8,
|
|
1941
1941
|
map: t.map,
|
|
1942
1942
|
line: (ne = a.otherLayers) == null ? void 0 : ne["load-lines"]
|
|
1943
1943
|
}, o.$attrs), null, 16, ["map", "line"])) : F("", !0),
|
|
1944
|
-
t.map ? (y(), U(C,
|
|
1944
|
+
t.map ? (y(), U(C, E({
|
|
1945
1945
|
key: 9,
|
|
1946
1946
|
map: t.map,
|
|
1947
1947
|
zone: (he = a.otherLayers) == null ? void 0 : he["time-zones"]
|
|
1948
1948
|
}, o.$attrs), null, 16, ["map", "zone"])) : F("", !0),
|
|
1949
|
-
t.map ? (y(), U(x,
|
|
1949
|
+
t.map ? (y(), U(x, E({
|
|
1950
1950
|
key: 10,
|
|
1951
1951
|
map: t.map,
|
|
1952
1952
|
area: (de = a.otherLayers) == null ? void 0 : de["voluntary-reporting-area"]
|
|
1953
1953
|
}, o.$attrs), null, 16, ["map", "area"])) : F("", !0),
|
|
1954
|
-
t.map ? (y(), U(A,
|
|
1954
|
+
t.map ? (y(), U(A, E({
|
|
1955
1955
|
key: 11,
|
|
1956
1956
|
map: t.map,
|
|
1957
1957
|
area: (ce = a.otherLayers) == null ? void 0 : ce["special-area"]
|
|
1958
1958
|
}, o.$attrs), null, 16, ["map", "area"])) : F("", !0),
|
|
1959
|
-
t.map ? (y(), U(
|
|
1959
|
+
t.map ? (y(), U(G, E({
|
|
1960
1960
|
key: 12,
|
|
1961
1961
|
map: t.map,
|
|
1962
1962
|
area: (K = a.otherLayers) == null ? void 0 : K["day-night"]
|
|
1963
1963
|
}, o.$attrs), null, 16, ["map", "area"])) : F("", !0),
|
|
1964
|
-
t.map ? (y(), U(X,
|
|
1964
|
+
t.map ? (y(), U(X, E({
|
|
1965
1965
|
key: 13,
|
|
1966
1966
|
map: t.map,
|
|
1967
1967
|
"menu-toggle": t.menuToggle,
|
|
@@ -1969,7 +1969,7 @@ function Ja(o, e, t, i, a, r) {
|
|
|
1969
1969
|
}, o.$attrs), null, 16, ["map", "menu-toggle", "show"])) : F("", !0)
|
|
1970
1970
|
]);
|
|
1971
1971
|
}
|
|
1972
|
-
const
|
|
1972
|
+
const xi = /* @__PURE__ */ q(si, [["render", wi]]);
|
|
1973
1973
|
class ao {
|
|
1974
1974
|
constructor(e) {
|
|
1975
1975
|
re(this, "map");
|
|
@@ -1981,7 +1981,7 @@ class ao {
|
|
|
1981
1981
|
re(this, "rampColorCanvas");
|
|
1982
1982
|
re(this, "particleCanvas");
|
|
1983
1983
|
re(this, "ratio");
|
|
1984
|
-
this.map = e, this.mercator = new
|
|
1984
|
+
this.map = e, this.mercator = new na(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
|
|
1985
1985
|
}
|
|
1986
1986
|
/**
|
|
1987
1987
|
* 转换为[-180, 180]的经度,且包含转换次数
|
|
@@ -2016,12 +2016,12 @@ class ao {
|
|
|
2016
2016
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
2017
2017
|
*/
|
|
2018
2018
|
getBoundPixel() {
|
|
2019
|
-
var b,
|
|
2019
|
+
var b, S;
|
|
2020
2020
|
const e = (b = this.map) == null ? void 0 : b.getBounds();
|
|
2021
2021
|
if (!e)
|
|
2022
2022
|
return [];
|
|
2023
|
-
const t = ((
|
|
2024
|
-
return [m, f,
|
|
2023
|
+
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]), [u, p] = this.mercator.px([r, i[1]], t), [m, f] = this.mercator.px([c, a[1]], t), v = Math.round(this.mercator.size * Math.pow(2, t) * (s + n));
|
|
2024
|
+
return [m, f, u + v, p];
|
|
2025
2025
|
}
|
|
2026
2026
|
/**
|
|
2027
2027
|
* [视窗边界像素宽度]
|
|
@@ -2036,13 +2036,13 @@ class ao {
|
|
|
2036
2036
|
* @param zoom
|
|
2037
2037
|
*/
|
|
2038
2038
|
getWorldCopy(e, t) {
|
|
2039
|
-
const i = 2 ** t, [a, r, s, c] = e.map((
|
|
2040
|
-
for (let
|
|
2039
|
+
const i = 2 ** t, [a, r, s, c] = e.map((p) => ~~(p / (i * 256))), n = [];
|
|
2040
|
+
for (let p = c; p <= r; p++)
|
|
2041
2041
|
for (let m = a; m <= s; m++)
|
|
2042
|
-
n.push([m,
|
|
2043
|
-
return n.map((
|
|
2042
|
+
n.push([m, p]);
|
|
2043
|
+
return n.map((p) => {
|
|
2044
2044
|
const m = 2 ** t * 256;
|
|
2045
|
-
return [
|
|
2045
|
+
return [p[0] * m, p[1] * m, m];
|
|
2046
2046
|
});
|
|
2047
2047
|
}
|
|
2048
2048
|
resize() {
|
|
@@ -2060,7 +2060,7 @@ class ao {
|
|
|
2060
2060
|
t !== i && this.map.setLayoutProperty(this.particleLayer, "visibility", i);
|
|
2061
2061
|
}
|
|
2062
2062
|
}
|
|
2063
|
-
class
|
|
2063
|
+
class je {
|
|
2064
2064
|
/**
|
|
2065
2065
|
* 创建着色器
|
|
2066
2066
|
* @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
|
|
@@ -2126,13 +2126,13 @@ class Ee {
|
|
|
2126
2126
|
if (a) {
|
|
2127
2127
|
const r = { program: a }, s = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
|
|
2128
2128
|
for (let n = 0; n < s; n++) {
|
|
2129
|
-
const
|
|
2130
|
-
r[
|
|
2129
|
+
const u = e.getActiveAttrib(a, n);
|
|
2130
|
+
r[u.name] = e.getAttribLocation(a, u.name);
|
|
2131
2131
|
}
|
|
2132
2132
|
const c = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
|
|
2133
2133
|
for (let n = 0; n < c; n++) {
|
|
2134
|
-
const
|
|
2135
|
-
r[
|
|
2134
|
+
const u = e.getActiveUniform(a, n);
|
|
2135
|
+
r[u.name] = e.getUniformLocation(a, u.name);
|
|
2136
2136
|
}
|
|
2137
2137
|
return r;
|
|
2138
2138
|
}
|
|
@@ -2147,8 +2147,8 @@ class Ee {
|
|
|
2147
2147
|
const c = s.getContext("2d");
|
|
2148
2148
|
if (c && e) {
|
|
2149
2149
|
const n = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
|
|
2150
|
-
return t.forEach(([
|
|
2151
|
-
n.addColorStop(
|
|
2150
|
+
return t.forEach(([u, p]) => {
|
|
2151
|
+
n.addColorStop(u, p);
|
|
2152
2152
|
}), c.fillStyle = n, c.fillRect(0, 0, 256, 1), {
|
|
2153
2153
|
canvas: s,
|
|
2154
2154
|
texture: this.createTexture(
|
|
@@ -2165,13 +2165,13 @@ class Ee {
|
|
|
2165
2165
|
}
|
|
2166
2166
|
setupParticle(e, t = 1e3) {
|
|
2167
2167
|
const i = Math.ceil(Math.sqrt(t)), a = i * i, r = new Uint8Array(a * 4);
|
|
2168
|
-
for (let
|
|
2169
|
-
r[
|
|
2168
|
+
for (let p = 0; p < r.length; p++)
|
|
2169
|
+
r[p] = Math.floor(Math.random() * 256);
|
|
2170
2170
|
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);
|
|
2171
|
-
for (let
|
|
2172
|
-
n[
|
|
2173
|
-
const
|
|
2174
|
-
return { resolution: i, total: a, texture0: s, texture1: c, indexBuffer:
|
|
2171
|
+
for (let p = 0; p < a; p++)
|
|
2172
|
+
n[p] = p;
|
|
2173
|
+
const u = this.createDataBuffer(e, "array", n);
|
|
2174
|
+
return { resolution: i, total: a, texture0: s, texture1: c, indexBuffer: u };
|
|
2175
2175
|
}
|
|
2176
2176
|
bind(e, t, i) {
|
|
2177
2177
|
const a = this.createProgram(e, t, i);
|
|
@@ -2186,16 +2186,16 @@ class Ee {
|
|
|
2186
2186
|
return {};
|
|
2187
2187
|
}
|
|
2188
2188
|
bindParticle(e, t, i, a, r, s) {
|
|
2189
|
-
const c = this.createProgramWrapper(e, t, i), n = this.createProgramWrapper(e, a, r),
|
|
2190
|
-
return { particle: c, screen: n, update:
|
|
2189
|
+
const c = this.createProgramWrapper(e, t, i), n = this.createProgramWrapper(e, a, r), u = this.createProgramWrapper(e, a, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), m = e.createFramebuffer();
|
|
2190
|
+
return { particle: c, screen: n, update: u, quadBuffer: p, frameBuffer: m };
|
|
2191
2191
|
}
|
|
2192
2192
|
draw(e, t, i, a, r, s, c) {
|
|
2193
|
-
var n,
|
|
2193
|
+
var n, u;
|
|
2194
2194
|
if (t && i) {
|
|
2195
|
-
e.resize(), t == null || t.viewport(0, 0, (n = t == null ? void 0 : t.canvas) == null ? void 0 : n.width, (
|
|
2195
|
+
e.resize(), t == null || t.viewport(0, 0, (n = t == null ? void 0 : t.canvas) == null ? void 0 : n.width, (u = t == null ? void 0 : t.canvas) == null ? void 0 : u.height), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT);
|
|
2196
2196
|
try {
|
|
2197
2197
|
t.useProgram(i);
|
|
2198
|
-
const
|
|
2198
|
+
const p = {
|
|
2199
2199
|
resolution: t.getUniformLocation(i, "u_resolution"),
|
|
2200
2200
|
image: t.getUniformLocation(i, "u_image"),
|
|
2201
2201
|
color: t.getUniformLocation(i, "u_color"),
|
|
@@ -2203,14 +2203,14 @@ class Ee {
|
|
|
2203
2203
|
uvRange: t.getUniformLocation(i, "u_range_u_v"),
|
|
2204
2204
|
sRange: t.getUniformLocation(i, "u_range_s")
|
|
2205
2205
|
};
|
|
2206
|
-
|
|
2206
|
+
p.resolution && t.uniform2f(p.resolution, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, a), p.image && t.uniform1i(p.image, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, r), p.color && t.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && t.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && t.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && t.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
|
|
2207
2207
|
const m = e.getBoundPixel(), f = e.map.getZoom() + 1, v = e.getWorldCopy(m, f);
|
|
2208
2208
|
for (const b of v) {
|
|
2209
|
-
const
|
|
2209
|
+
const S = (b[0] - m[0]) * e.ratio, L = (b[1] - m[3]) * e.ratio, B = b[2] * e.ratio, [M, P, _, z] = [S, B + S, L, B + L], C = new Float32Array([M, _, P, _, M, z, M, z, P, _, P, z]);
|
|
2210
2210
|
t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER, C, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
2211
2211
|
}
|
|
2212
|
-
} catch (
|
|
2213
|
-
console.log(`render failed...${
|
|
2212
|
+
} catch (p) {
|
|
2213
|
+
console.log(`render failed...${p}`);
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
2216
|
}
|
|
@@ -2453,7 +2453,7 @@ re(ye, "vertexSchema", `
|
|
|
2453
2453
|
fract(pos * 255.0),
|
|
2454
2454
|
floor(pos * 255.0) / 255.0);
|
|
2455
2455
|
}`);
|
|
2456
|
-
const
|
|
2456
|
+
const vi = {
|
|
2457
2457
|
"000kts": '<svg t="1756203850656" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4213" width="200" height="200"><path d="M729.6 512a217.6 217.6 0 1 0-217.6 217.6v59.733333a277.333333 277.333333 0 1 1 0-554.666666 277.333333 277.333333 0 0 1 0 554.666666v-59.733333a217.6 217.6 0 0 0 217.6-217.6z" fill="#ffffff" p-id="4214"></path><path d="M558.933333 512a46.933333 46.933333 0 1 0-46.933333 46.933333v59.733334a106.666667 106.666667 0 1 1 0-213.333334 106.666667 106.666667 0 0 1 0 213.333334v-59.733334a46.933333 46.933333 0 0 0 46.933333-46.933333z" fill="#ffffff" p-id="4215"></path></svg>',
|
|
2458
2458
|
"002kts": '<svg t="1756203870666" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4371" width="200" height="200"><path d="M511.975255 4.26646a29.865223 29.865223 0 0 1 29.865223 29.865224v897.791273l58.151856-46.504419a29.907888 29.907888 0 0 1 37.288864 46.717742l-106.661511 85.329209a29.865223 29.865223 0 0 1-37.288865 0l-106.661511-85.329209a29.865223 29.865223 0 0 1 37.288864-46.675077l58.151856 46.461754V34.131684a29.865223 29.865223 0 0 1 29.865224-29.865224z" fill="#ffffff" p-id="4372"></path></svg>',
|
|
2459
2459
|
"005kts": '<svg t="1756203883896" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4528" width="200" height="200"><path d="M511.825979 4.265216a29.856515 29.856515 0 0 1 29.856516 29.856516v102.706413l145.443882-97.673458a29.856515 29.856515 0 0 1 33.268689 49.604468l-174.873877 117.378758c-1.194261 0.853043-2.55913 1.364869-3.838694 2.004652v723.508674l58.1349-46.49086a29.899168 29.899168 0 0 1 37.277993 46.70412l-106.630413 85.30433a29.856515 29.856515 0 0 1-37.277992 0l-106.630412-85.30433a29.856515 29.856515 0 0 1 37.277992-46.661468l58.134901 46.448208V34.121732a29.856515 29.856515 0 0 1 29.856515-29.856516z" fill="#ffffff" p-id="4529"></path></svg>',
|
|
@@ -2477,7 +2477,7 @@ const ei = {
|
|
|
2477
2477
|
"095kts": '<svg t="1756204086889" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7354" width="200" height="200"><path d="M699.676193 0a29.864228 29.864228 0 0 1 29.864228 29.864228c0 0.426632-0.170653 0.853264-0.170653 1.237232a29.736238 29.736238 0 0 1-13.908197 26.237857l-170.65273 106.743283c-0.93859 0.597285-1.962506 0.981253-2.986423 1.450548v45.222974l146.334716-91.043232a29.864228 29.864228 0 0 1 31.570755 50.683861L541.822418 281.150373V330.213033l146.334716-91.043232a29.864228 29.864228 0 1 1 31.570755 50.683861L541.822418 400.564621v49.105323l146.334716-91.043232a29.864228 29.864228 0 1 1 31.570755 50.683861l-177.905471 110.710959v49.062659l146.334716-91.000568a29.864228 29.864228 0 1 1 31.570755 50.683861l-177.905471 110.668295v42.577857l73.764642-46.076238a29.864228 29.864228 0 0 1 31.656082 50.683861l-105.378061 65.871954v179.398682l58.064591-46.502868a29.906891 29.906891 0 0 1 37.372948 46.716184l-106.657956 85.326365a29.864228 29.864228 0 0 1-37.372948 0l-106.657956-85.326365a29.864228 29.864228 0 0 1 37.372948-46.673521l58.107254 46.460205V34.130546c0-0.725274 0.12799-1.407885 0.213316-2.133159C482.221952 31.272113 482.093962 30.589502 482.093962 29.864228A29.864228 29.864228 0 0 1 511.95819 0h187.718003z" fill="#ffffff" p-id="7355"></path></svg>',
|
|
2478
2478
|
"100kts": '<svg t="1756204093086" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7511" width="200" height="200"><path d="M699.699515 0a29.865223 29.865223 0 0 1 29.865223 29.865223c0 0.426646-0.170658 0.853292-0.170659 1.237274a29.737229 29.737229 0 0 1-13.908661 26.238732L568.420526 149.326116H699.699515a29.865223 29.865223 0 0 1 29.865223 29.865223c0 0.426646-0.170658 0.853292-0.170659 1.237274a29.737229 29.737229 0 0 1-13.908661 26.238731l-170.573089 106.746841c-0.981286 0.597304-2.047901 0.981286-3.071851 1.450597v617.058175l58.151856-46.504419a29.907888 29.907888 0 0 1 37.288864 46.717742l-106.661511 85.329209a29.865223 29.865223 0 0 1-37.288865 0l-106.661511-85.329209a29.865223 29.865223 0 0 1 37.288864-46.675077l58.151856 46.461754V34.131684c0-0.725298 0.127994-1.407932 0.213323-2.133231C482.238025 31.273155 482.110031 30.590521 482.110031 29.865223A29.865223 29.865223 0 0 1 511.975255 0h187.72426z" fill="#ffffff" p-id="7512"></path></svg>',
|
|
2479
2479
|
"105kts": '<svg t="1756204103259" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7668" width="200" height="200"><path d="M699.699515 0a29.865223 29.865223 0 0 1 29.865223 29.865223c0 0.426646-0.170658 0.853292-0.170659 1.237274a29.737229 29.737229 0 0 1-13.908661 26.238732L568.420526 149.326116H699.699515a29.865223 29.865223 0 0 1 29.865223 29.865223c0 0.426646-0.170658 0.853292-0.170659 1.237274a29.737229 29.737229 0 0 1-13.908661 26.238731l-170.658418 106.746841c-0.938621 0.597304-1.962572 0.981286-2.986522 1.450597v79.356164l146.339593-91.046266a29.865223 29.865223 0 1 1 31.571808 50.68555l-177.911401 110.714649v467.348078l58.151856-46.504419a29.907888 29.907888 0 0 1 37.288864 46.717742l-106.661511 85.329209a29.865223 29.865223 0 0 1-37.288865 0l-106.661511-85.329209a29.865223 29.865223 0 0 1 37.288864-46.675077l58.151856 46.461754V34.131684c0-0.725298 0.127994-1.407932 0.213323-2.133231C482.238025 31.273155 482.110031 30.590521 482.110031 29.865223A29.865223 29.865223 0 0 1 511.975255 0h187.72426z" fill="#ffffff" p-id="7669"></path></svg>'
|
|
2480
|
-
},
|
|
2480
|
+
}, _i = {
|
|
2481
2481
|
name: "IdmWindBarb",
|
|
2482
2482
|
props: {
|
|
2483
2483
|
map: {
|
|
@@ -2509,11 +2509,11 @@ const ei = {
|
|
|
2509
2509
|
showCaption: !1,
|
|
2510
2510
|
source: "wind-barb-source",
|
|
2511
2511
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
2512
|
-
empty:
|
|
2512
|
+
empty: j.featureCollection([]),
|
|
2513
2513
|
right: 10,
|
|
2514
2514
|
bottom: 125,
|
|
2515
2515
|
windBarbLoaded: !1,
|
|
2516
|
-
svgs:
|
|
2516
|
+
svgs: vi
|
|
2517
2517
|
};
|
|
2518
2518
|
},
|
|
2519
2519
|
computed: {
|
|
@@ -2557,7 +2557,7 @@ const ei = {
|
|
|
2557
2557
|
else {
|
|
2558
2558
|
this.map.addSource(this.source, { type: "geojson", data: c });
|
|
2559
2559
|
for (let n = 0; n < (this.barbs ?? []).length - 1; n++) {
|
|
2560
|
-
const
|
|
2560
|
+
const u = (this.barbs ?? [])[n] || 0, p = (this.barbs ?? [])[n + 1] || 0, m = u < 10 ? `00${u}kts` : u < 100 ? `0${u}kts` : `${u}kts`, f = new Image(48, 48), v = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(this.svgs[m])));
|
|
2561
2561
|
f.src = v, f.onload = () => {
|
|
2562
2562
|
this.map.hasImage(m + "-icon") || this.map.addImage(m + "-icon", f), this.map.addLayer(
|
|
2563
2563
|
{
|
|
@@ -2566,9 +2566,9 @@ const ei = {
|
|
|
2566
2566
|
filter: [
|
|
2567
2567
|
"all",
|
|
2568
2568
|
// @ts-ignore
|
|
2569
|
-
[">=", "spd",
|
|
2569
|
+
[">=", "spd", u],
|
|
2570
2570
|
// @ts-ignore
|
|
2571
|
-
["<", "spd",
|
|
2571
|
+
["<", "spd", p]
|
|
2572
2572
|
],
|
|
2573
2573
|
source: this.source,
|
|
2574
2574
|
layout: {
|
|
@@ -2620,11 +2620,11 @@ const ei = {
|
|
|
2620
2620
|
}
|
|
2621
2621
|
}
|
|
2622
2622
|
};
|
|
2623
|
-
function
|
|
2623
|
+
function ki(o, e, t, i, a, r) {
|
|
2624
2624
|
return null;
|
|
2625
2625
|
}
|
|
2626
|
-
const
|
|
2627
|
-
const
|
|
2626
|
+
const zi = /* @__PURE__ */ q(_i, [["render", ki]]);
|
|
2627
|
+
const Li = {
|
|
2628
2628
|
name: "IdmWindParticle",
|
|
2629
2629
|
props: {
|
|
2630
2630
|
factor: {
|
|
@@ -2644,7 +2644,7 @@ const ii = {
|
|
|
2644
2644
|
texture: void 0,
|
|
2645
2645
|
rampColor: void 0,
|
|
2646
2646
|
aPositionBuffer: void 0,
|
|
2647
|
-
webgl: new
|
|
2647
|
+
webgl: new je(),
|
|
2648
2648
|
etime: void 0,
|
|
2649
2649
|
wrapper: void 0,
|
|
2650
2650
|
animation: void 0,
|
|
@@ -2790,10 +2790,10 @@ const ii = {
|
|
|
2790
2790
|
(o = this.viewport) == null || o.toggle(!1), this.context = void 0, this.etime = void 0, this.handleClearParticle();
|
|
2791
2791
|
}
|
|
2792
2792
|
}
|
|
2793
|
-
},
|
|
2794
|
-
function
|
|
2793
|
+
}, Pi = { key: 0 };
|
|
2794
|
+
function Ci(o, e, t, i, a, r) {
|
|
2795
2795
|
var s;
|
|
2796
|
-
return (s = t.factor) != null && s.active ? (y(), T("div",
|
|
2796
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", Pi, [
|
|
2797
2797
|
l("div", {
|
|
2798
2798
|
class: "legend-bars-gl4 wind",
|
|
2799
2799
|
style: ae({ right: a.right + "px" })
|
|
@@ -2809,7 +2809,7 @@ function li(o, e, t, i, a, r) {
|
|
|
2809
2809
|
]), 4)
|
|
2810
2810
|
])) : F("", !0);
|
|
2811
2811
|
}
|
|
2812
|
-
const
|
|
2812
|
+
const Si = /* @__PURE__ */ q(Li, [["render", Ci]]), Mi = {
|
|
2813
2813
|
name: "IdmCurrent",
|
|
2814
2814
|
props: {
|
|
2815
2815
|
map: {
|
|
@@ -2841,7 +2841,7 @@ const si = /* @__PURE__ */ q(ii, [["render", li]]), ni = {
|
|
|
2841
2841
|
directionLayer: "current-direction-layer",
|
|
2842
2842
|
speedLayer: "current-speed-layer",
|
|
2843
2843
|
speedLabelLayer: "current-speed-label-layer",
|
|
2844
|
-
empty:
|
|
2844
|
+
empty: j.featureCollection([])
|
|
2845
2845
|
};
|
|
2846
2846
|
},
|
|
2847
2847
|
computed: {
|
|
@@ -2920,16 +2920,16 @@ const si = /* @__PURE__ */ q(ii, [["render", li]]), ni = {
|
|
|
2920
2920
|
const s = new Image(48, 48);
|
|
2921
2921
|
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)));
|
|
2922
2922
|
s.src = n;
|
|
2923
|
-
const
|
|
2923
|
+
const u = new Image(48, 48);
|
|
2924
2924
|
c = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2925
2925
|
<path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2926
2926
|
<path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2927
|
-
</svg>`, n = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(c))),
|
|
2928
|
-
const
|
|
2927
|
+
</svg>`, n = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(c))), u.src = n;
|
|
2928
|
+
const p = [u];
|
|
2929
2929
|
let m = 0;
|
|
2930
|
-
|
|
2930
|
+
p.forEach((f) => {
|
|
2931
2931
|
f.onload = () => {
|
|
2932
|
-
m++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon",
|
|
2932
|
+
m++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", u), m === 1 && this.map.addLayer(
|
|
2933
2933
|
{
|
|
2934
2934
|
id: this.directionLayer,
|
|
2935
2935
|
type: "symbol",
|
|
@@ -2967,11 +2967,11 @@ const si = /* @__PURE__ */ q(ii, [["render", li]]), ni = {
|
|
|
2967
2967
|
}
|
|
2968
2968
|
}
|
|
2969
2969
|
};
|
|
2970
|
-
function
|
|
2970
|
+
function Ti(o, e, t, i, a, r) {
|
|
2971
2971
|
return null;
|
|
2972
2972
|
}
|
|
2973
|
-
const
|
|
2974
|
-
const
|
|
2973
|
+
const Ai = /* @__PURE__ */ q(Mi, [["render", Ti]]);
|
|
2974
|
+
const Ii = {
|
|
2975
2975
|
name: "IdmCurrentParticle",
|
|
2976
2976
|
props: {
|
|
2977
2977
|
factor: {
|
|
@@ -2991,7 +2991,7 @@ const hi = {
|
|
|
2991
2991
|
texture: void 0,
|
|
2992
2992
|
rampColor: void 0,
|
|
2993
2993
|
aPositionBuffer: void 0,
|
|
2994
|
-
webgl: new
|
|
2994
|
+
webgl: new je(),
|
|
2995
2995
|
etime: void 0,
|
|
2996
2996
|
wrapper: void 0,
|
|
2997
2997
|
animation: void 0,
|
|
@@ -3134,10 +3134,10 @@ const hi = {
|
|
|
3134
3134
|
(o = this.viewport) == null || o.toggle(!1), this.context = void 0, this.etime = void 0, this.handleClearParticle();
|
|
3135
3135
|
}
|
|
3136
3136
|
}
|
|
3137
|
-
},
|
|
3138
|
-
function
|
|
3137
|
+
}, Ri = { key: 0 };
|
|
3138
|
+
function Di(o, e, t, i, a, r) {
|
|
3139
3139
|
var s;
|
|
3140
|
-
return (s = t.factor) != null && s.active ? (y(), T("div",
|
|
3140
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", Ri, [
|
|
3141
3141
|
l("div", {
|
|
3142
3142
|
class: "legend-bars-gl4 current",
|
|
3143
3143
|
style: ae({ right: a.right + "px" })
|
|
@@ -3152,8 +3152,8 @@ function pi(o, e, t, i, a, r) {
|
|
|
3152
3152
|
]), 4)
|
|
3153
3153
|
])) : F("", !0);
|
|
3154
3154
|
}
|
|
3155
|
-
const
|
|
3156
|
-
const
|
|
3155
|
+
const Oi = /* @__PURE__ */ q(Ii, [["render", Di]]);
|
|
3156
|
+
const Bi = {
|
|
3157
3157
|
name: "IdmTemp",
|
|
3158
3158
|
props: {
|
|
3159
3159
|
factor: {
|
|
@@ -3177,7 +3177,7 @@ const gi = {
|
|
|
3177
3177
|
texture: void 0,
|
|
3178
3178
|
rampColor: void 0,
|
|
3179
3179
|
aPositionBuffer: void 0,
|
|
3180
|
-
webgl: new
|
|
3180
|
+
webgl: new je(),
|
|
3181
3181
|
etime: void 0,
|
|
3182
3182
|
right: 10
|
|
3183
3183
|
};
|
|
@@ -3262,10 +3262,10 @@ const gi = {
|
|
|
3262
3262
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
3263
3263
|
}
|
|
3264
3264
|
}
|
|
3265
|
-
},
|
|
3266
|
-
function
|
|
3265
|
+
}, Ei = { key: 0 };
|
|
3266
|
+
function ji(o, e, t, i, a, r) {
|
|
3267
3267
|
var s;
|
|
3268
|
-
return (s = t.factor) != null && s.active ? (y(), T("div",
|
|
3268
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", Ei, [
|
|
3269
3269
|
l("div", {
|
|
3270
3270
|
class: "legend-bars-gl4 sig-wave",
|
|
3271
3271
|
style: ae({ right: a.right + "px" })
|
|
@@ -3280,7 +3280,7 @@ function bi(o, e, t, i, a, r) {
|
|
|
3280
3280
|
]), 4)
|
|
3281
3281
|
])) : F("", !0);
|
|
3282
3282
|
}
|
|
3283
|
-
const
|
|
3283
|
+
const Fi = /* @__PURE__ */ q(Bi, [["render", ji], ["__scopeId", "data-v-79ce70e2"]]), Ni = {
|
|
3284
3284
|
name: "IdmSigWave",
|
|
3285
3285
|
props: {
|
|
3286
3286
|
map: {
|
|
@@ -3304,7 +3304,7 @@ const yi = /* @__PURE__ */ q(gi, [["render", bi], ["__scopeId", "data-v-79ce70e2
|
|
|
3304
3304
|
source: "sig-wave-height-source",
|
|
3305
3305
|
heightLayer: "sig-wave-height-layer",
|
|
3306
3306
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
3307
|
-
empty:
|
|
3307
|
+
empty: j.featureCollection([])
|
|
3308
3308
|
};
|
|
3309
3309
|
},
|
|
3310
3310
|
watch: {
|
|
@@ -3402,10 +3402,10 @@ const yi = /* @__PURE__ */ q(gi, [["render", bi], ["__scopeId", "data-v-79ce70e2
|
|
|
3402
3402
|
}
|
|
3403
3403
|
}
|
|
3404
3404
|
};
|
|
3405
|
-
function
|
|
3405
|
+
function Hi(o, e, t, i, a, r) {
|
|
3406
3406
|
return null;
|
|
3407
3407
|
}
|
|
3408
|
-
const
|
|
3408
|
+
const Gi = /* @__PURE__ */ q(Ni, [["render", Hi]]), Wi = {
|
|
3409
3409
|
name: "IdmSwell",
|
|
3410
3410
|
props: {
|
|
3411
3411
|
map: {
|
|
@@ -3427,7 +3427,7 @@ const vi = /* @__PURE__ */ q(wi, [["render", xi]]), _i = {
|
|
|
3427
3427
|
directionLayer: "swell-direction-layer",
|
|
3428
3428
|
heightLayer: "swell-height-layer",
|
|
3429
3429
|
heightLabelLayer: "swell-height-label-layer",
|
|
3430
|
-
empty:
|
|
3430
|
+
empty: j.featureCollection([])
|
|
3431
3431
|
};
|
|
3432
3432
|
},
|
|
3433
3433
|
watch: {
|
|
@@ -3556,10 +3556,10 @@ const vi = /* @__PURE__ */ q(wi, [["render", xi]]), _i = {
|
|
|
3556
3556
|
}
|
|
3557
3557
|
}
|
|
3558
3558
|
};
|
|
3559
|
-
function
|
|
3559
|
+
function Ui(o, e, t, i, a, r) {
|
|
3560
3560
|
return y(), T("div");
|
|
3561
3561
|
}
|
|
3562
|
-
const
|
|
3562
|
+
const Vi = /* @__PURE__ */ q(Wi, [["render", Ui]]), Yi = {
|
|
3563
3563
|
name: "IdmPrmsl",
|
|
3564
3564
|
props: {
|
|
3565
3565
|
map: {
|
|
@@ -3586,7 +3586,7 @@ const zi = /* @__PURE__ */ q(_i, [["render", ki]]), Li = {
|
|
|
3586
3586
|
layer: "prmsl-layer",
|
|
3587
3587
|
labelLayer: "prmsl-label-layer",
|
|
3588
3588
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
3589
|
-
empty:
|
|
3589
|
+
empty: j.featureCollection([])
|
|
3590
3590
|
};
|
|
3591
3591
|
},
|
|
3592
3592
|
watch: {
|
|
@@ -3685,14 +3685,14 @@ const zi = /* @__PURE__ */ q(_i, [["render", ki]]), Li = {
|
|
|
3685
3685
|
this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.labelLayer) && this.map.removeLayer(this.labelLayer), this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
3686
3686
|
}
|
|
3687
3687
|
}
|
|
3688
|
-
},
|
|
3688
|
+
}, Zi = {
|
|
3689
3689
|
key: 0,
|
|
3690
3690
|
class: "legend-tip-btn-gl4"
|
|
3691
3691
|
};
|
|
3692
|
-
function
|
|
3692
|
+
function Xi(o, e, t, i, a, r) {
|
|
3693
3693
|
var n;
|
|
3694
3694
|
const s = k("VBtn"), c = k("VTooltip");
|
|
3695
|
-
return (n = t.prmsl) != null && n.active ? (y(), T("div",
|
|
3695
|
+
return (n = t.prmsl) != null && n.active ? (y(), T("div", Zi, [
|
|
3696
3696
|
l("div", {
|
|
3697
3697
|
class: "menu-bar-box pa-1 rounded",
|
|
3698
3698
|
style: ae({ right: a.right + "px" })
|
|
@@ -3701,8 +3701,8 @@ function Ci(o, e, t, i, a, r) {
|
|
|
3701
3701
|
text: "Map Layers",
|
|
3702
3702
|
location: "left"
|
|
3703
3703
|
}, {
|
|
3704
|
-
activator: g(({ props:
|
|
3705
|
-
h(s,
|
|
3704
|
+
activator: g(({ props: u }) => [
|
|
3705
|
+
h(s, E(u, {
|
|
3706
3706
|
"min-width": "32",
|
|
3707
3707
|
width: "32",
|
|
3708
3708
|
height: "32",
|
|
@@ -3722,8 +3722,8 @@ function Ci(o, e, t, i, a, r) {
|
|
|
3722
3722
|
], 4)
|
|
3723
3723
|
])) : F("", !0);
|
|
3724
3724
|
}
|
|
3725
|
-
const
|
|
3726
|
-
const
|
|
3725
|
+
const qi = /* @__PURE__ */ q(Yi, [["render", Xi]]);
|
|
3726
|
+
const Ki = {
|
|
3727
3727
|
name: "IdmIceEdge",
|
|
3728
3728
|
props: {
|
|
3729
3729
|
factor: {
|
|
@@ -3747,7 +3747,7 @@ const Si = {
|
|
|
3747
3747
|
texture: void 0,
|
|
3748
3748
|
rampColor: void 0,
|
|
3749
3749
|
aPositionBuffer: void 0,
|
|
3750
|
-
webgl: new
|
|
3750
|
+
webgl: new je(),
|
|
3751
3751
|
etime: void 0,
|
|
3752
3752
|
right: 10
|
|
3753
3753
|
};
|
|
@@ -3824,10 +3824,10 @@ const Si = {
|
|
|
3824
3824
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
3825
3825
|
}
|
|
3826
3826
|
}
|
|
3827
|
-
},
|
|
3828
|
-
function
|
|
3827
|
+
}, Qi = { key: 0 };
|
|
3828
|
+
function Ji(o, e, t, i, a, r) {
|
|
3829
3829
|
var s;
|
|
3830
|
-
return (s = t.factor) != null && s.active ? (y(), T("div",
|
|
3830
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", Qi, [
|
|
3831
3831
|
l("div", {
|
|
3832
3832
|
class: "legend-bars-gl4 ice-edge",
|
|
3833
3833
|
style: ae({ right: a.right + "px" })
|
|
@@ -3847,8 +3847,8 @@ function Ai(o, e, t, i, a, r) {
|
|
|
3847
3847
|
]), 4)
|
|
3848
3848
|
])) : F("", !0);
|
|
3849
3849
|
}
|
|
3850
|
-
const
|
|
3851
|
-
const
|
|
3850
|
+
const $i = /* @__PURE__ */ q(Ki, [["render", Ji]]);
|
|
3851
|
+
const er = {
|
|
3852
3852
|
name: "IdmCover",
|
|
3853
3853
|
props: {
|
|
3854
3854
|
factor: {
|
|
@@ -3872,7 +3872,7 @@ const Ri = {
|
|
|
3872
3872
|
texture: void 0,
|
|
3873
3873
|
rampColor: void 0,
|
|
3874
3874
|
aPositionBuffer: void 0,
|
|
3875
|
-
webgl: new
|
|
3875
|
+
webgl: new je(),
|
|
3876
3876
|
etime: void 0,
|
|
3877
3877
|
right: 10
|
|
3878
3878
|
};
|
|
@@ -3940,10 +3940,10 @@ const Ri = {
|
|
|
3940
3940
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
3941
3941
|
}
|
|
3942
3942
|
}
|
|
3943
|
-
},
|
|
3944
|
-
function
|
|
3943
|
+
}, tr = { key: 0 };
|
|
3944
|
+
function or(o, e, t, i, a, r) {
|
|
3945
3945
|
var s;
|
|
3946
|
-
return (s = t.factor) != null && s.active ? (y(), T("div",
|
|
3946
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", tr, [
|
|
3947
3947
|
l("div", {
|
|
3948
3948
|
class: "legend-bars-gl4 ice-cover",
|
|
3949
3949
|
style: ae({ right: a.right + "px" })
|
|
@@ -3957,8 +3957,8 @@ function Oi(o, e, t, i, a, r) {
|
|
|
3957
3957
|
]), 4)
|
|
3958
3958
|
])) : F("", !0);
|
|
3959
3959
|
}
|
|
3960
|
-
const
|
|
3961
|
-
const
|
|
3960
|
+
const ar = /* @__PURE__ */ q(er, [["render", or], ["__scopeId", "data-v-9696d73b"]]);
|
|
3961
|
+
const ir = {
|
|
3962
3962
|
name: "IdmThickness",
|
|
3963
3963
|
props: {
|
|
3964
3964
|
factor: {
|
|
@@ -3982,7 +3982,7 @@ const ji = {
|
|
|
3982
3982
|
texture: void 0,
|
|
3983
3983
|
rampColor: void 0,
|
|
3984
3984
|
aPositionBuffer: void 0,
|
|
3985
|
-
webgl: new
|
|
3985
|
+
webgl: new je(),
|
|
3986
3986
|
etime: void 0,
|
|
3987
3987
|
right: 10
|
|
3988
3988
|
};
|
|
@@ -4058,10 +4058,10 @@ const ji = {
|
|
|
4058
4058
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4059
4059
|
}
|
|
4060
4060
|
}
|
|
4061
|
-
},
|
|
4062
|
-
function
|
|
4061
|
+
}, rr = { key: 0 };
|
|
4062
|
+
function lr(o, e, t, i, a, r) {
|
|
4063
4063
|
var s;
|
|
4064
|
-
return (s = t.factor) != null && s.active ? (y(), T("div",
|
|
4064
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", rr, [
|
|
4065
4065
|
l("div", {
|
|
4066
4066
|
class: "legend-bars-gl4 ice-thickness",
|
|
4067
4067
|
style: ae({ right: a.right + "px" })
|
|
@@ -4076,8 +4076,8 @@ function Fi(o, e, t, i, a, r) {
|
|
|
4076
4076
|
]), 4)
|
|
4077
4077
|
])) : F("", !0);
|
|
4078
4078
|
}
|
|
4079
|
-
const
|
|
4080
|
-
const
|
|
4079
|
+
const sr = /* @__PURE__ */ q(ir, [["render", lr]]);
|
|
4080
|
+
const nr = {
|
|
4081
4081
|
name: "IdmPrecip3h",
|
|
4082
4082
|
props: {
|
|
4083
4083
|
factor: {
|
|
@@ -4105,7 +4105,7 @@ const Hi = {
|
|
|
4105
4105
|
texture: void 0,
|
|
4106
4106
|
rampColor: void 0,
|
|
4107
4107
|
aPositionBuffer: void 0,
|
|
4108
|
-
webgl: new
|
|
4108
|
+
webgl: new je(),
|
|
4109
4109
|
etime: void 0,
|
|
4110
4110
|
right: 10
|
|
4111
4111
|
};
|
|
@@ -4178,10 +4178,10 @@ const Hi = {
|
|
|
4178
4178
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4179
4179
|
}
|
|
4180
4180
|
}
|
|
4181
|
-
},
|
|
4182
|
-
function
|
|
4181
|
+
}, cr = { key: 0 };
|
|
4182
|
+
function mr(o, e, t, i, a, r) {
|
|
4183
4183
|
var s;
|
|
4184
|
-
return (s = t.factor) != null && s.active ? (y(), T("div",
|
|
4184
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", cr, [
|
|
4185
4185
|
l("div", {
|
|
4186
4186
|
class: "legend-bars-gl4 precip3h",
|
|
4187
4187
|
style: ae({ right: a.right + "px" })
|
|
@@ -4197,8 +4197,8 @@ function Gi(o, e, t, i, a, r) {
|
|
|
4197
4197
|
]), 4)
|
|
4198
4198
|
])) : F("", !0);
|
|
4199
4199
|
}
|
|
4200
|
-
const
|
|
4201
|
-
const
|
|
4200
|
+
const hr = /* @__PURE__ */ q(nr, [["render", mr]]);
|
|
4201
|
+
const dr = {
|
|
4202
4202
|
name: "IdmVisibility",
|
|
4203
4203
|
props: {
|
|
4204
4204
|
factor: {
|
|
@@ -4223,7 +4223,7 @@ const Vi = {
|
|
|
4223
4223
|
texture: void 0,
|
|
4224
4224
|
rampColor: void 0,
|
|
4225
4225
|
aPositionBuffer: void 0,
|
|
4226
|
-
webgl: new
|
|
4226
|
+
webgl: new je(),
|
|
4227
4227
|
etime: void 0
|
|
4228
4228
|
};
|
|
4229
4229
|
},
|
|
@@ -4289,10 +4289,10 @@ const Vi = {
|
|
|
4289
4289
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4290
4290
|
}
|
|
4291
4291
|
}
|
|
4292
|
-
},
|
|
4293
|
-
function
|
|
4292
|
+
}, pr = { key: 0 };
|
|
4293
|
+
function ur(o, e, t, i, a, r) {
|
|
4294
4294
|
var s;
|
|
4295
|
-
return (s = t.factor) != null && s.active ? (y(), T("div",
|
|
4295
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", pr, [
|
|
4296
4296
|
l("div", {
|
|
4297
4297
|
class: "legend-bars-gl4 visibility",
|
|
4298
4298
|
style: ae({ right: a.right + "px" })
|
|
@@ -4306,8 +4306,8 @@ function Zi(o, e, t, i, a, r) {
|
|
|
4306
4306
|
]), 4)
|
|
4307
4307
|
])) : F("", !0);
|
|
4308
4308
|
}
|
|
4309
|
-
const
|
|
4310
|
-
const
|
|
4309
|
+
const gr = /* @__PURE__ */ q(dr, [["render", ur]]);
|
|
4310
|
+
const fr = {
|
|
4311
4311
|
name: "IdmWaterTemp",
|
|
4312
4312
|
props: {
|
|
4313
4313
|
factor: {
|
|
@@ -4327,7 +4327,7 @@ const qi = {
|
|
|
4327
4327
|
texture: void 0,
|
|
4328
4328
|
rampColor: void 0,
|
|
4329
4329
|
aPositionBuffer: void 0,
|
|
4330
|
-
webgl: new
|
|
4330
|
+
webgl: new je(),
|
|
4331
4331
|
etime: void 0,
|
|
4332
4332
|
right: 10
|
|
4333
4333
|
};
|
|
@@ -4401,10 +4401,10 @@ const qi = {
|
|
|
4401
4401
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4402
4402
|
}
|
|
4403
4403
|
}
|
|
4404
|
-
},
|
|
4405
|
-
function
|
|
4404
|
+
}, br = { key: 0 };
|
|
4405
|
+
function yr(o, e, t, i, a, r) {
|
|
4406
4406
|
var s;
|
|
4407
|
-
return (s = t.factor) != null && s.active ? (y(), T("div",
|
|
4407
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", br, [
|
|
4408
4408
|
l("div", {
|
|
4409
4409
|
class: "legend-bars-gl4 water-temp",
|
|
4410
4410
|
style: ae({ right: a.right + "px" })
|
|
@@ -4418,8 +4418,8 @@ function Qi(o, e, t, i, a, r) {
|
|
|
4418
4418
|
]), 4)
|
|
4419
4419
|
])) : F("", !0);
|
|
4420
4420
|
}
|
|
4421
|
-
const
|
|
4422
|
-
const
|
|
4421
|
+
const wr = /* @__PURE__ */ q(fr, [["render", yr]]);
|
|
4422
|
+
const xr = {
|
|
4423
4423
|
name: "IdmTemp",
|
|
4424
4424
|
props: {
|
|
4425
4425
|
factor: {
|
|
@@ -4447,7 +4447,7 @@ const $i = {
|
|
|
4447
4447
|
texture: void 0,
|
|
4448
4448
|
rampColor: void 0,
|
|
4449
4449
|
aPositionBuffer: void 0,
|
|
4450
|
-
webgl: new
|
|
4450
|
+
webgl: new je(),
|
|
4451
4451
|
etime: void 0,
|
|
4452
4452
|
right: 10
|
|
4453
4453
|
};
|
|
@@ -4524,10 +4524,10 @@ const $i = {
|
|
|
4524
4524
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4525
4525
|
}
|
|
4526
4526
|
}
|
|
4527
|
-
},
|
|
4528
|
-
function
|
|
4527
|
+
}, vr = { key: 0 };
|
|
4528
|
+
function _r(o, e, t, i, a, r) {
|
|
4529
4529
|
var s;
|
|
4530
|
-
return (s = t.factor) != null && s.active ? (y(), T("div",
|
|
4530
|
+
return (s = t.factor) != null && s.active ? (y(), T("div", vr, [
|
|
4531
4531
|
l("div", {
|
|
4532
4532
|
class: "legend-bars-gl4 temp",
|
|
4533
4533
|
style: ae({ right: a.right + "px" })
|
|
@@ -4543,25 +4543,25 @@ function tr(o, e, t, i, a, r) {
|
|
|
4543
4543
|
]), 4)
|
|
4544
4544
|
])) : F("", !0);
|
|
4545
4545
|
}
|
|
4546
|
-
const
|
|
4547
|
-
const
|
|
4546
|
+
const kr = /* @__PURE__ */ q(xr, [["render", _r]]);
|
|
4547
|
+
const zr = {
|
|
4548
4548
|
name: "IdmGlLayer",
|
|
4549
4549
|
components: {
|
|
4550
|
-
IdmWindBarb:
|
|
4551
|
-
IdmWindParticle:
|
|
4552
|
-
IdmCurrentDirection:
|
|
4553
|
-
IdmCurrentParticle:
|
|
4554
|
-
IdmWave:
|
|
4555
|
-
IdmSigWaveHeight:
|
|
4556
|
-
IdmSwell:
|
|
4557
|
-
IdmPrmsl:
|
|
4558
|
-
IdmIceEdge:
|
|
4559
|
-
IdmIceCover:
|
|
4560
|
-
IdmIceThickness:
|
|
4561
|
-
IdmPrecip3h:
|
|
4562
|
-
IdmVisibility:
|
|
4563
|
-
IdmWaterTemp:
|
|
4564
|
-
IdmTemp:
|
|
4550
|
+
IdmWindBarb: zi,
|
|
4551
|
+
IdmWindParticle: Si,
|
|
4552
|
+
IdmCurrentDirection: Ai,
|
|
4553
|
+
IdmCurrentParticle: Oi,
|
|
4554
|
+
IdmWave: Fi,
|
|
4555
|
+
IdmSigWaveHeight: Gi,
|
|
4556
|
+
IdmSwell: Vi,
|
|
4557
|
+
IdmPrmsl: qi,
|
|
4558
|
+
IdmIceEdge: $i,
|
|
4559
|
+
IdmIceCover: ar,
|
|
4560
|
+
IdmIceThickness: sr,
|
|
4561
|
+
IdmPrecip3h: hr,
|
|
4562
|
+
IdmVisibility: gr,
|
|
4563
|
+
IdmWaterTemp: wr,
|
|
4564
|
+
IdmTemp: kr
|
|
4565
4565
|
},
|
|
4566
4566
|
props: {
|
|
4567
4567
|
isLogin: {
|
|
@@ -4799,31 +4799,31 @@ const ar = {
|
|
|
4799
4799
|
(o == null ? void 0 : o.data.code) === 0 && (this.models = o == null ? void 0 : o.data.data);
|
|
4800
4800
|
},
|
|
4801
4801
|
async fetchWeatherLayers(o = {}) {
|
|
4802
|
-
var a, r, s, c, n,
|
|
4802
|
+
var a, r, s, c, n, u, p, m, f;
|
|
4803
4803
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
4804
4804
|
let t = 0, i = 0;
|
|
4805
4805
|
if (this.map) {
|
|
4806
|
-
const v = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, b = (r = this.map) == null ? void 0 : r.getBounds(),
|
|
4806
|
+
const v = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, b = (r = this.map) == null ? void 0 : r.getBounds(), S = `${b._sw.lng},${b._sw.lat},${b._ne.lng},${b._ne.lat}`;
|
|
4807
4807
|
if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
|
|
4808
4808
|
const L = Jt.WEATHER_LAYERS.find((B) => {
|
|
4809
|
-
var
|
|
4810
|
-
return ((
|
|
4809
|
+
var M;
|
|
4810
|
+
return ((M = B.peer) == null ? void 0 : M.weight) === this.particleFactor.weight;
|
|
4811
4811
|
});
|
|
4812
4812
|
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & L.weight ? this.weatherWeight : this.weatherWeight + L.weight : this.weatherWeight = this.weatherWeight & L.weight ? this.weatherWeight - L.weight : this.weatherWeight;
|
|
4813
4813
|
}
|
|
4814
4814
|
if (this.weatherWeight > 0) {
|
|
4815
4815
|
let L = this.weatherWeight;
|
|
4816
4816
|
if (L > 0) {
|
|
4817
|
-
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))],
|
|
4818
|
-
`${B}/api/arc/weather/layers2/links?l=${L}&v=${this.forecastModel}&z=${v}&bbox=${
|
|
4817
|
+
const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], M = await Be.get(
|
|
4818
|
+
`${B}/api/arc/weather/layers2/links?l=${L}&v=${this.forecastModel}&z=${v}&bbox=${S}&t=${this.realTime}`,
|
|
4819
4819
|
{
|
|
4820
4820
|
headers: {
|
|
4821
4821
|
Authorization: this.token || this.defaultMeteoToken
|
|
4822
4822
|
}
|
|
4823
4823
|
}
|
|
4824
4824
|
);
|
|
4825
|
-
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", i, ", total: ", t += i), ((c =
|
|
4826
|
-
const P = (n =
|
|
4825
|
+
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", i, ", total: ", t += i), ((c = M == null ? void 0 : M.data) == null ? void 0 : c.code) === 0) {
|
|
4826
|
+
const P = (n = M == null ? void 0 : M.data) == null ? void 0 : n.data, _ = [];
|
|
4827
4827
|
for (const C in P)
|
|
4828
4828
|
_.push(
|
|
4829
4829
|
Be.get(P[C], {
|
|
@@ -4838,23 +4838,23 @@ const ar = {
|
|
|
4838
4838
|
);
|
|
4839
4839
|
const z = await Promise.all(_);
|
|
4840
4840
|
this.weatherLayers = {}, z.map((C) => {
|
|
4841
|
-
var
|
|
4842
|
-
const x = ((
|
|
4841
|
+
var G, X, V, Y;
|
|
4842
|
+
const x = ((G = C == null ? void 0 : C.data) == null ? void 0 : G.data) || (C == null ? void 0 : C.data);
|
|
4843
4843
|
let A = (V = (X = C == null ? void 0 : C.config) == null ? void 0 : X.headers) == null ? void 0 : V.key;
|
|
4844
4844
|
A && x && (this.weatherLayers[A] = {
|
|
4845
4845
|
raw: x,
|
|
4846
4846
|
type: ((Y = C == null ? void 0 : C.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
|
|
4847
|
-
etime:
|
|
4847
|
+
etime: M.data.etime
|
|
4848
4848
|
});
|
|
4849
4849
|
});
|
|
4850
4850
|
}
|
|
4851
4851
|
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"]) {
|
|
4852
|
-
const P = (
|
|
4852
|
+
const P = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
|
|
4853
4853
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
4854
4854
|
type: "json",
|
|
4855
4855
|
direction: P,
|
|
4856
4856
|
height: { raw: _ },
|
|
4857
|
-
etime:
|
|
4857
|
+
etime: M.data.etime
|
|
4858
4858
|
};
|
|
4859
4859
|
}
|
|
4860
4860
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
@@ -4863,7 +4863,7 @@ const ar = {
|
|
|
4863
4863
|
type: "json",
|
|
4864
4864
|
direction: P,
|
|
4865
4865
|
speed: { raw: _ },
|
|
4866
|
-
etime:
|
|
4866
|
+
etime: M.data.etime
|
|
4867
4867
|
};
|
|
4868
4868
|
}
|
|
4869
4869
|
}
|
|
@@ -4891,7 +4891,7 @@ const ar = {
|
|
|
4891
4891
|
}, 500);
|
|
4892
4892
|
},
|
|
4893
4893
|
handleRampColorInitial() {
|
|
4894
|
-
var o, e, t, i, a, r, s, c, n,
|
|
4894
|
+
var o, e, t, i, a, r, s, c, n, u, p, m;
|
|
4895
4895
|
this.viewport.map.getSource((o = this.viewport) == null ? void 0 : o.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
4896
4896
|
type: "canvas",
|
|
4897
4897
|
canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
|
|
@@ -4912,10 +4912,10 @@ const ar = {
|
|
|
4912
4912
|
canvas: (n = this.viewport) == null ? void 0 : n.particleCanvas,
|
|
4913
4913
|
animate: !0,
|
|
4914
4914
|
coordinates: this.viewport.getBoundLngLat()
|
|
4915
|
-
}), this.viewport.map.getLayer((
|
|
4915
|
+
}), this.viewport.map.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) || this.viewport.map.addLayer(
|
|
4916
4916
|
{
|
|
4917
4917
|
type: "raster",
|
|
4918
|
-
id: (
|
|
4918
|
+
id: (p = this.viewport) == null ? void 0 : p.particleLayer,
|
|
4919
4919
|
source: (m = this.viewport) == null ? void 0 : m.particleSource,
|
|
4920
4920
|
layout: {
|
|
4921
4921
|
visibility: "none"
|
|
@@ -4925,14 +4925,14 @@ const ar = {
|
|
|
4925
4925
|
);
|
|
4926
4926
|
},
|
|
4927
4927
|
handleDrawWeather4Json() {
|
|
4928
|
-
var
|
|
4928
|
+
var u, p, m, f, v, b, S;
|
|
4929
4929
|
const o = (/* @__PURE__ */ new Date()).valueOf();
|
|
4930
4930
|
let e = 0, t = 0;
|
|
4931
|
-
const i = (
|
|
4931
|
+
const i = (u = this.map) == null ? void 0 : u.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = oe.convertToStdLng(i._sw.lng), s = oe.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
|
|
4932
4932
|
for (const L in this.weatherLayers) {
|
|
4933
4933
|
let B = !1;
|
|
4934
4934
|
if (this.weatherLayers[L].active && this.weatherLayers[L].type === "json") {
|
|
4935
|
-
let
|
|
4935
|
+
let M = [];
|
|
4936
4936
|
if (L === "swell") {
|
|
4937
4937
|
B = !0;
|
|
4938
4938
|
const P = ((m = this.weatherLayers[L]) == null ? void 0 : m.direction) || {};
|
|
@@ -4940,38 +4940,38 @@ const ar = {
|
|
|
4940
4940
|
if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
4941
4941
|
const C = P[z].lng;
|
|
4942
4942
|
r > s ? C.forEach((x, A) => {
|
|
4943
|
-
var
|
|
4943
|
+
var G, X, V, Y, $, ee;
|
|
4944
4944
|
if (a < 2) {
|
|
4945
4945
|
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
4946
|
-
const Q =
|
|
4947
|
-
val: ((
|
|
4946
|
+
const Q = j.point([x, z], {
|
|
4947
|
+
val: ((G = P[z].val) == null ? void 0 : G[A]) || ((X = P[z].dir) == null ? void 0 : X[A]),
|
|
4948
4948
|
spd: (V = P[z].spd) == null ? void 0 : V[A]
|
|
4949
4949
|
});
|
|
4950
|
-
|
|
4950
|
+
M.push(Q);
|
|
4951
4951
|
}
|
|
4952
4952
|
} else if ((x >= r && x <= 180 || x >= -180 && x <= s) && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
4953
|
-
const Q =
|
|
4953
|
+
const Q = j.point([x, z], {
|
|
4954
4954
|
val: ((Y = P[z].val) == null ? void 0 : Y[A]) || (($ = P[z].dir) == null ? void 0 : $[A]),
|
|
4955
4955
|
spd: (ee = P[z].spd) == null ? void 0 : ee[A]
|
|
4956
4956
|
});
|
|
4957
|
-
|
|
4957
|
+
M.push(Q);
|
|
4958
4958
|
}
|
|
4959
4959
|
}) : C.forEach((x, A) => {
|
|
4960
|
-
var
|
|
4960
|
+
var G, X, V, Y, $, ee;
|
|
4961
4961
|
if (r < 2) {
|
|
4962
4962
|
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
4963
|
-
const Q =
|
|
4964
|
-
val: ((
|
|
4963
|
+
const Q = j.point([x, z], {
|
|
4964
|
+
val: ((G = P[z].val) == null ? void 0 : G[A]) || ((X = P[z].dir) == null ? void 0 : X[A]),
|
|
4965
4965
|
spd: (V = P[z].spd) == null ? void 0 : V[A]
|
|
4966
4966
|
});
|
|
4967
|
-
|
|
4967
|
+
M.push(Q);
|
|
4968
4968
|
}
|
|
4969
4969
|
} else if (x >= r && x <= s && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
4970
|
-
const Q =
|
|
4970
|
+
const Q = j.point([x, z], {
|
|
4971
4971
|
val: ((Y = P[z].val) == null ? void 0 : Y[A]) || (($ = P[z].dir) == null ? void 0 : $[A]),
|
|
4972
4972
|
spd: (ee = P[z].spd) == null ? void 0 : ee[A]
|
|
4973
4973
|
});
|
|
4974
|
-
|
|
4974
|
+
M.push(Q);
|
|
4975
4975
|
}
|
|
4976
4976
|
});
|
|
4977
4977
|
}
|
|
@@ -4984,16 +4984,16 @@ const ar = {
|
|
|
4984
4984
|
const x = _.raw.LineString[C];
|
|
4985
4985
|
for (const A of x)
|
|
4986
4986
|
z.push(
|
|
4987
|
-
|
|
4987
|
+
j.lineString(A, {
|
|
4988
4988
|
val: Number(C)
|
|
4989
4989
|
})
|
|
4990
4990
|
);
|
|
4991
|
-
_.data =
|
|
4991
|
+
_.data = j.featureCollection(z);
|
|
4992
4992
|
}
|
|
4993
4993
|
}
|
|
4994
4994
|
if (_.data) {
|
|
4995
4995
|
const z = this.handleBboxClip(_.data, i);
|
|
4996
|
-
|
|
4996
|
+
M = M.concat(z);
|
|
4997
4997
|
}
|
|
4998
4998
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
|
|
4999
4999
|
}
|
|
@@ -5004,38 +5004,38 @@ const ar = {
|
|
|
5004
5004
|
if (z > c && z < n && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5005
5005
|
const C = P[z].lng;
|
|
5006
5006
|
r > s ? C.forEach((x, A) => {
|
|
5007
|
-
var
|
|
5007
|
+
var G, X, V, Y, $, ee;
|
|
5008
5008
|
if (a < 2) {
|
|
5009
5009
|
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
5010
|
-
const Q =
|
|
5011
|
-
val: ((
|
|
5010
|
+
const Q = j.point([x, z], {
|
|
5011
|
+
val: ((G = P[z].val) == null ? void 0 : G[A]) || ((X = P[z].dir) == null ? void 0 : X[A]),
|
|
5012
5012
|
spd: (V = P[z].spd) == null ? void 0 : V[A]
|
|
5013
5013
|
});
|
|
5014
|
-
|
|
5014
|
+
M.push(Q);
|
|
5015
5015
|
}
|
|
5016
5016
|
} else if ((x >= r && x <= 180 || x >= -180 && x <= s) && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5017
|
-
const Q =
|
|
5017
|
+
const Q = j.point([x, z], {
|
|
5018
5018
|
val: ((Y = P[z].val) == null ? void 0 : Y[A]) || (($ = P[z].dir) == null ? void 0 : $[A]),
|
|
5019
5019
|
spd: (ee = P[z].spd) == null ? void 0 : ee[A]
|
|
5020
5020
|
});
|
|
5021
|
-
|
|
5021
|
+
M.push(Q);
|
|
5022
5022
|
}
|
|
5023
5023
|
}) : C.forEach((x, A) => {
|
|
5024
|
-
var
|
|
5024
|
+
var G, X, V, Y, $, ee;
|
|
5025
5025
|
if (r < 2) {
|
|
5026
5026
|
if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
|
|
5027
|
-
const Q =
|
|
5028
|
-
val: ((
|
|
5027
|
+
const Q = j.point([x, z], {
|
|
5028
|
+
val: ((G = P[z].val) == null ? void 0 : G[A]) || ((X = P[z].dir) == null ? void 0 : X[A]),
|
|
5029
5029
|
spd: (V = P[z].spd) == null ? void 0 : V[A]
|
|
5030
5030
|
});
|
|
5031
|
-
|
|
5031
|
+
M.push(Q);
|
|
5032
5032
|
}
|
|
5033
5033
|
} else if (x >= r && x <= s && (!(a <= this.zoom) || x % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
5034
|
-
const Q =
|
|
5034
|
+
const Q = j.point([x, z], {
|
|
5035
5035
|
val: ((Y = P[z].val) == null ? void 0 : Y[A]) || (($ = P[z].dir) == null ? void 0 : $[A]),
|
|
5036
5036
|
spd: (ee = P[z].spd) == null ? void 0 : ee[A]
|
|
5037
5037
|
});
|
|
5038
|
-
|
|
5038
|
+
M.push(Q);
|
|
5039
5039
|
}
|
|
5040
5040
|
});
|
|
5041
5041
|
}
|
|
@@ -5046,17 +5046,17 @@ const ar = {
|
|
|
5046
5046
|
const C = [];
|
|
5047
5047
|
for (const x in (b = _.raw) == null ? void 0 : b.Polygon) {
|
|
5048
5048
|
const A = _.raw.Polygon[x];
|
|
5049
|
-
for (const
|
|
5049
|
+
for (const G of A)
|
|
5050
5050
|
C.push(
|
|
5051
|
-
|
|
5051
|
+
j.polygon(G, {
|
|
5052
5052
|
val: Number(x)
|
|
5053
5053
|
})
|
|
5054
5054
|
);
|
|
5055
5055
|
}
|
|
5056
|
-
_.data =
|
|
5056
|
+
_.data = j.featureCollection(C);
|
|
5057
5057
|
}
|
|
5058
5058
|
const z = a < this.zoom ? _.data.features.filter((C) => C.properties.val > 0.5) : _.data.features;
|
|
5059
|
-
|
|
5059
|
+
M = M.concat(z), t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
|
|
5060
5060
|
}
|
|
5061
5061
|
} else if (L === "wind") {
|
|
5062
5062
|
B = !0;
|
|
@@ -5065,45 +5065,45 @@ const ar = {
|
|
|
5065
5065
|
if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5066
5066
|
const z = P[_].lng;
|
|
5067
5067
|
r > s ? z.forEach((C, x) => {
|
|
5068
|
-
var A,
|
|
5068
|
+
var A, G, X, V;
|
|
5069
5069
|
if (a < 2) {
|
|
5070
5070
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
5071
|
-
const Y =
|
|
5072
|
-
dir: ((A = P[_].val) == null ? void 0 : A[x]) || ((
|
|
5071
|
+
const Y = j.point([C, _], {
|
|
5072
|
+
dir: ((A = P[_].val) == null ? void 0 : A[x]) || ((G = P[_].dir) == null ? void 0 : G[x]),
|
|
5073
5073
|
spd: P[_].spd[x]
|
|
5074
5074
|
});
|
|
5075
|
-
|
|
5075
|
+
M.push(Y);
|
|
5076
5076
|
}
|
|
5077
5077
|
} else if ((C >= r && C <= 180 || C >= -180 && C <= s) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5078
|
-
const Y =
|
|
5078
|
+
const Y = j.point([C, _], {
|
|
5079
5079
|
dir: ((X = P[_].val) == null ? void 0 : X[x]) || ((V = P[_].dir) == null ? void 0 : V[x]),
|
|
5080
5080
|
spd: P[_].spd[x]
|
|
5081
5081
|
});
|
|
5082
|
-
|
|
5082
|
+
M.push(Y);
|
|
5083
5083
|
}
|
|
5084
5084
|
}) : z.forEach((C, x) => {
|
|
5085
|
-
var A,
|
|
5085
|
+
var A, G, X, V;
|
|
5086
5086
|
if (a < 2) {
|
|
5087
5087
|
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
5088
|
-
const Y =
|
|
5089
|
-
dir: ((A = P[_].val) == null ? void 0 : A[x]) || ((
|
|
5088
|
+
const Y = j.point([C, _], {
|
|
5089
|
+
dir: ((A = P[_].val) == null ? void 0 : A[x]) || ((G = P[_].dir) == null ? void 0 : G[x]),
|
|
5090
5090
|
spd: P[_].spd[x]
|
|
5091
5091
|
});
|
|
5092
|
-
|
|
5092
|
+
M.push(Y);
|
|
5093
5093
|
}
|
|
5094
5094
|
} else if (C >= r && C <= s && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
5095
|
-
const Y =
|
|
5095
|
+
const Y = j.point([C, _], {
|
|
5096
5096
|
dir: ((X = P[_].val) == null ? void 0 : X[x]) || ((V = P[_].dir) == null ? void 0 : V[x]),
|
|
5097
5097
|
spd: P[_].spd[x]
|
|
5098
5098
|
});
|
|
5099
|
-
|
|
5099
|
+
M.push(Y);
|
|
5100
5100
|
}
|
|
5101
5101
|
});
|
|
5102
5102
|
}
|
|
5103
5103
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
|
|
5104
5104
|
} else if (L === "sig-wave-height") {
|
|
5105
5105
|
if (this.weatherLayers[L].data)
|
|
5106
|
-
|
|
5106
|
+
M = this.weatherLayers[L].data;
|
|
5107
5107
|
else {
|
|
5108
5108
|
B = !0;
|
|
5109
5109
|
const P = this.weatherLayers[L].raw;
|
|
@@ -5113,27 +5113,27 @@ const ar = {
|
|
|
5113
5113
|
const C = P.Polygon[z];
|
|
5114
5114
|
for (const x of C)
|
|
5115
5115
|
_.push(
|
|
5116
|
-
|
|
5116
|
+
j.polygon(x, {
|
|
5117
5117
|
val: Number(z)
|
|
5118
5118
|
})
|
|
5119
5119
|
);
|
|
5120
5120
|
}
|
|
5121
5121
|
for (const z in P.Point) {
|
|
5122
5122
|
const C = P.Point[z];
|
|
5123
|
-
for (let x = 0; x < ((
|
|
5123
|
+
for (let x = 0; x < ((S = C.lng) == null ? void 0 : S.length); x++)
|
|
5124
5124
|
_.push(
|
|
5125
|
-
|
|
5125
|
+
j.point([C.lng[x], z], {
|
|
5126
5126
|
val: Number(C.val[x])
|
|
5127
5127
|
})
|
|
5128
5128
|
);
|
|
5129
5129
|
}
|
|
5130
|
-
|
|
5130
|
+
M = M.concat(_);
|
|
5131
5131
|
}
|
|
5132
5132
|
}
|
|
5133
5133
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("sig-wave-height elapsed: ", t, ", total: ", e += t);
|
|
5134
5134
|
} else if (L === "prmsl") {
|
|
5135
5135
|
if (this.weatherLayers[L].data)
|
|
5136
|
-
|
|
5136
|
+
M = this.weatherLayers[L].data;
|
|
5137
5137
|
else {
|
|
5138
5138
|
B = !0;
|
|
5139
5139
|
const P = this.weatherLayers[L].raw;
|
|
@@ -5143,7 +5143,7 @@ const ar = {
|
|
|
5143
5143
|
const C = P.LineString[z];
|
|
5144
5144
|
for (const x of C)
|
|
5145
5145
|
_.push(
|
|
5146
|
-
|
|
5146
|
+
j.lineString(x, {
|
|
5147
5147
|
val: Number(z)
|
|
5148
5148
|
})
|
|
5149
5149
|
);
|
|
@@ -5151,18 +5151,18 @@ const ar = {
|
|
|
5151
5151
|
for (const z in P.Point)
|
|
5152
5152
|
P.Point[z].lng.forEach((C, x) => {
|
|
5153
5153
|
C = oe.convertToStdLng(C), _.push(
|
|
5154
|
-
|
|
5154
|
+
j.point([C, z], {
|
|
5155
5155
|
val: P.Point[z].val[x],
|
|
5156
5156
|
type: P.Point[z].type[x]
|
|
5157
5157
|
})
|
|
5158
5158
|
);
|
|
5159
5159
|
});
|
|
5160
|
-
|
|
5160
|
+
M = M.concat(_);
|
|
5161
5161
|
}
|
|
5162
5162
|
}
|
|
5163
5163
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
5164
5164
|
}
|
|
5165
|
-
|
|
5165
|
+
M.length && (this.weatherLayers[L].data = j.featureCollection(M)), B && (this.weatherLayers[L].version = Math.random() + 1);
|
|
5166
5166
|
}
|
|
5167
5167
|
}
|
|
5168
5168
|
},
|
|
@@ -5176,10 +5176,10 @@ const ar = {
|
|
|
5176
5176
|
return o.features.forEach((r) => {
|
|
5177
5177
|
if (r.geometry.type !== "Point")
|
|
5178
5178
|
if (i > a) {
|
|
5179
|
-
let s = [i, e._sw.lat, 180, e._ne.lat], c =
|
|
5180
|
-
c.geometry.coordinates.length && t.push(c), s = [-180, e._sw.lat, a, e._ne.lat], c =
|
|
5179
|
+
let s = [i, e._sw.lat, 180, e._ne.lat], c = j.bboxClip(r, s);
|
|
5180
|
+
c.geometry.coordinates.length && t.push(c), s = [-180, e._sw.lat, a, e._ne.lat], c = j.bboxClip(r, s), c.geometry.coordinates.length && t.push(c);
|
|
5181
5181
|
} else {
|
|
5182
|
-
const s = [i, e._sw.lat, a, e._ne.lat], c =
|
|
5182
|
+
const s = [i, e._sw.lat, a, e._ne.lat], c = j.bboxClip(r, s);
|
|
5183
5183
|
c.geometry.coordinates.length && t.push(c);
|
|
5184
5184
|
}
|
|
5185
5185
|
else
|
|
@@ -5187,26 +5187,26 @@ const ar = {
|
|
|
5187
5187
|
}), t;
|
|
5188
5188
|
}
|
|
5189
5189
|
}
|
|
5190
|
-
},
|
|
5190
|
+
}, Lr = { class: "idm-gl4-meteo-layers" }, Pr = {
|
|
5191
5191
|
key: 0,
|
|
5192
5192
|
class: "legend-tip-btn-gl4"
|
|
5193
|
-
},
|
|
5193
|
+
}, Cr = { class: "d-flex flex-row justify-center align-center" }, Sr = { class: "text-caption" }, Mr = { class: "d-flex flex-row justify-center align-center" }, Tr = {
|
|
5194
5194
|
key: 0,
|
|
5195
5195
|
style: { width: "24px", height: "12px", border: "1px solid rgba(var(--v-border-color), var(--v-border-opacity))" }
|
|
5196
|
-
},
|
|
5196
|
+
}, Ar = { class: "text-caption px-2" }, Ir = { class: "d-flex flex-row justify-start align-center" }, Rr = {
|
|
5197
5197
|
class: "d-flex flex-row justify-center align-center",
|
|
5198
5198
|
style: { width: "40px" }
|
|
5199
|
-
},
|
|
5199
|
+
}, Dr = { class: "text-caption px-2" }, Or = { class: "header-box d-flex justify-space-between align-center pl-4 pr-4" }, Br = { class: "d-flex justify-start align-center ga-3" }, Er = { class: "text-h5 font-weight-medium" }, jr = {
|
|
5200
5200
|
key: 0,
|
|
5201
5201
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
5202
|
-
},
|
|
5202
|
+
}, Fr = {
|
|
5203
5203
|
key: 1,
|
|
5204
5204
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
5205
|
-
},
|
|
5206
|
-
function
|
|
5207
|
-
var de, ce, K, I, le, ge, fe, we, xe,
|
|
5208
|
-
const s = k("VBtn"), c = k("VTooltip"), n = k("VCol"),
|
|
5209
|
-
return y(), T("div",
|
|
5205
|
+
}, Nr = { class: "text-body-1 py-2" }, Hr = { class: "text-body-1 font-weight-medium" }, Gr = { class: "text-body-2 opacity-70" }, Wr = { class: "text-body-2 opacity-70 mb-3" }, Ur = { class: "text-body-1 font-weight-medium" }, Vr = { class: "text-body-2 opacity-70" }, Yr = { class: "text-body-2 opacity-70 mb-3" }, Zr = { class: "text-body-1 py-2" }, Xr = { class: "text-body-1 font-weight-medium" }, qr = { class: "text-body-2 opacity-70" }, Kr = { class: "text-body-2 opacity-70 mb-3" }, Qr = { class: "text-body-1 font-weight-medium" }, Jr = { class: "text-body-2 opacity-70" }, $r = { class: "text-body-2 opacity-70 mb-3" }, el = { class: "text-body-1 py-2" }, tl = { class: "text-body-1 font-weight-medium" }, ol = { class: "text-body-2 opacity-70" }, al = { class: "text-body-2 opacity-70 mb-3" };
|
|
5206
|
+
function il(o, e, t, i, a, r) {
|
|
5207
|
+
var de, ce, K, I, le, ge, fe, we, xe, Se, Me, Te, Ae, Ie, be;
|
|
5208
|
+
const s = k("VBtn"), c = k("VTooltip"), n = k("VCol"), u = k("VRow"), p = k("VCardText"), m = k("VDivider"), f = k("VCard"), v = k("VSwitch"), b = k("VCardTitle"), S = k("VCardItem"), L = k("VCheckbox"), B = k("VRadio"), M = k("VBtnToggle"), P = k("IdmWindBarb"), _ = k("IdmSigWaveHeight"), z = k("IdmCurrentDirection"), C = k("IdmPrmsl"), x = k("IdmWindParticle"), A = k("IdmCurrentParticle"), G = k("IdmWave"), X = k("IdmSwell"), V = k("IdmIceEdge"), Y = k("IdmIceCover"), $ = k("IdmIceThickness"), ee = k("IdmPrecip3h"), Q = k("IdmVisibility"), ne = k("IdmWaterTemp"), he = k("IdmTemp");
|
|
5209
|
+
return y(), T("div", Lr, [
|
|
5210
5210
|
l("div", {
|
|
5211
5211
|
class: "menu-bar-box transition pa-1",
|
|
5212
5212
|
style: ae({ top: t.top + 94 + "px", right: a.right + "px" })
|
|
@@ -5216,7 +5216,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5216
5216
|
location: "left"
|
|
5217
5217
|
}, {
|
|
5218
5218
|
activator: g(({ props: H }) => [
|
|
5219
|
-
h(s,
|
|
5219
|
+
h(s, E(H, {
|
|
5220
5220
|
"min-width": "32",
|
|
5221
5221
|
width: "32",
|
|
5222
5222
|
height: "32",
|
|
@@ -5233,7 +5233,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5233
5233
|
_: 1
|
|
5234
5234
|
}, 8, ["text"])
|
|
5235
5235
|
], 4),
|
|
5236
|
-
r.showTipMenu ? (y(), T("div",
|
|
5236
|
+
r.showTipMenu ? (y(), T("div", Pr, [
|
|
5237
5237
|
l("div", {
|
|
5238
5238
|
class: "menu-bar-box pa-1 rounded",
|
|
5239
5239
|
style: ae({ right: a.right + "px" })
|
|
@@ -5243,7 +5243,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5243
5243
|
location: "left"
|
|
5244
5244
|
}, {
|
|
5245
5245
|
activator: g(({ props: H }) => [
|
|
5246
|
-
h(s,
|
|
5246
|
+
h(s, E(H, {
|
|
5247
5247
|
"min-width": "32",
|
|
5248
5248
|
width: "32",
|
|
5249
5249
|
height: "32",
|
|
@@ -5268,10 +5268,10 @@ function jr(o, e, t, i, a, r) {
|
|
|
5268
5268
|
style: ae({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
|
|
5269
5269
|
}, {
|
|
5270
5270
|
default: g(() => [
|
|
5271
|
-
h(
|
|
5271
|
+
h(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
5272
5272
|
default: g(() => [
|
|
5273
5273
|
e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
5274
|
-
h(
|
|
5274
|
+
h(u, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
5275
5275
|
default: g(() => [
|
|
5276
5276
|
(y(!0), T(_e, null, Le(a.legend.barbs, (H, te) => (y(), U(n, {
|
|
5277
5277
|
key: H,
|
|
@@ -5279,12 +5279,12 @@ function jr(o, e, t, i, a, r) {
|
|
|
5279
5279
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
5280
5280
|
}, {
|
|
5281
5281
|
default: g(() => [
|
|
5282
|
-
l("div",
|
|
5282
|
+
l("div", Cr, [
|
|
5283
5283
|
l("i", {
|
|
5284
5284
|
class: Ne(["iconfont", r.barbsIconName[te]]),
|
|
5285
5285
|
style: ae({ color: t.theme === "dark" ? "#fff" : "#000" })
|
|
5286
5286
|
}, null, 6),
|
|
5287
|
-
l("span",
|
|
5287
|
+
l("span", Sr, w(Number(H) < 10 ? `00${H}kts` : Number(H) < 100 ? `0${H}kts` : `${H}kts`), 1)
|
|
5288
5288
|
])
|
|
5289
5289
|
]),
|
|
5290
5290
|
_: 2
|
|
@@ -5297,10 +5297,10 @@ function jr(o, e, t, i, a, r) {
|
|
|
5297
5297
|
__: [9]
|
|
5298
5298
|
}),
|
|
5299
5299
|
h(m, { vertical: "" }),
|
|
5300
|
-
h(
|
|
5300
|
+
h(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
5301
5301
|
default: g(() => [
|
|
5302
5302
|
e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
5303
|
-
h(
|
|
5303
|
+
h(u, {
|
|
5304
5304
|
class: "ma-0 ml-1",
|
|
5305
5305
|
style: { width: "100px" }
|
|
5306
5306
|
}, {
|
|
@@ -5311,12 +5311,12 @@ function jr(o, e, t, i, a, r) {
|
|
|
5311
5311
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
5312
5312
|
}, {
|
|
5313
5313
|
default: g(() => [
|
|
5314
|
-
l("div",
|
|
5315
|
-
te === 0 ? (y(), T("div",
|
|
5314
|
+
l("div", Mr, [
|
|
5315
|
+
te === 0 ? (y(), T("div", Tr)) : (y(), T("div", {
|
|
5316
5316
|
key: 1,
|
|
5317
5317
|
style: ae({ width: "24px", height: "12px", background: H.color })
|
|
5318
5318
|
}, null, 4)),
|
|
5319
|
-
l("div",
|
|
5319
|
+
l("div", Ar, w(H.label), 1)
|
|
5320
5320
|
])
|
|
5321
5321
|
]),
|
|
5322
5322
|
_: 2
|
|
@@ -5329,10 +5329,10 @@ function jr(o, e, t, i, a, r) {
|
|
|
5329
5329
|
__: [10]
|
|
5330
5330
|
}),
|
|
5331
5331
|
h(m, { vertical: "" }),
|
|
5332
|
-
h(
|
|
5332
|
+
h(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
|
|
5333
5333
|
default: g(() => [
|
|
5334
5334
|
e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
|
|
5335
|
-
h(
|
|
5335
|
+
h(u, {
|
|
5336
5336
|
class: "ma-0 ml-n5",
|
|
5337
5337
|
style: { width: "110px" }
|
|
5338
5338
|
}, {
|
|
@@ -5343,14 +5343,14 @@ function jr(o, e, t, i, a, r) {
|
|
|
5343
5343
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
5344
5344
|
}, {
|
|
5345
5345
|
default: g(() => [
|
|
5346
|
-
l("div",
|
|
5347
|
-
l("div",
|
|
5346
|
+
l("div", Ir, [
|
|
5347
|
+
l("div", Rr, [
|
|
5348
5348
|
l("i", {
|
|
5349
5349
|
class: "iconfont icon-a-direction-arrow opacity-80",
|
|
5350
5350
|
style: ae({ fontSize: 40 * H.size + "px" })
|
|
5351
5351
|
}, null, 4)
|
|
5352
5352
|
]),
|
|
5353
|
-
l("div",
|
|
5353
|
+
l("div", Dr, w(H.label), 1)
|
|
5354
5354
|
])
|
|
5355
5355
|
]),
|
|
5356
5356
|
_: 2
|
|
@@ -5370,9 +5370,9 @@ function jr(o, e, t, i, a, r) {
|
|
|
5370
5370
|
class: Ne(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
|
|
5371
5371
|
style: ae({ top: t.top + "px", right: a.toggle ? "0px" : "-280px" })
|
|
5372
5372
|
}, [
|
|
5373
|
-
l("div",
|
|
5374
|
-
l("div",
|
|
5375
|
-
l("div",
|
|
5373
|
+
l("div", Or, [
|
|
5374
|
+
l("div", Br, [
|
|
5375
|
+
l("div", Er, w(o.$t("weather.weather")), 1),
|
|
5376
5376
|
h(v, {
|
|
5377
5377
|
modelValue: a.autoActive,
|
|
5378
5378
|
"onUpdate:modelValue": e[1] || (e[1] = (H) => a.autoActive = H),
|
|
@@ -5407,7 +5407,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5407
5407
|
elevation: "0"
|
|
5408
5408
|
}, {
|
|
5409
5409
|
default: g(() => [
|
|
5410
|
-
h(
|
|
5410
|
+
h(S, { class: "border-b-thin" }, {
|
|
5411
5411
|
default: g(() => [
|
|
5412
5412
|
h(b, {
|
|
5413
5413
|
class: "text-subtitle-1 font-weight-medium",
|
|
@@ -5421,7 +5421,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5421
5421
|
]),
|
|
5422
5422
|
_: 1
|
|
5423
5423
|
}),
|
|
5424
|
-
h(
|
|
5424
|
+
h(p, { class: "py-2" }, {
|
|
5425
5425
|
default: g(() => [
|
|
5426
5426
|
(y(!0), T(_e, null, Le(a.tagLayers.filter((H) => H.overlays), (H) => (y(), U(L, {
|
|
5427
5427
|
key: H.key,
|
|
@@ -5447,7 +5447,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5447
5447
|
elevation: "0"
|
|
5448
5448
|
}, {
|
|
5449
5449
|
default: g(() => [
|
|
5450
|
-
h(
|
|
5450
|
+
h(S, { class: "border-b-thin" }, {
|
|
5451
5451
|
default: g(() => [
|
|
5452
5452
|
h(b, {
|
|
5453
5453
|
class: "text-subtitle-1 font-weight-medium",
|
|
@@ -5461,7 +5461,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5461
5461
|
]),
|
|
5462
5462
|
_: 1
|
|
5463
5463
|
}),
|
|
5464
|
-
h(
|
|
5464
|
+
h(p, { class: "py-2" }, {
|
|
5465
5465
|
default: g(() => [
|
|
5466
5466
|
(y(!0), T(_e, null, Le(a.tagLayers.filter((H) => !H.overlays && H.key !== "ice-thickness"), (H) => (y(), T(_e, {
|
|
5467
5467
|
key: H.key
|
|
@@ -5479,7 +5479,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5479
5479
|
"hide-details": "",
|
|
5480
5480
|
onClick: (te) => a.renderKey = H.key
|
|
5481
5481
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
5482
|
-
a.renderKey === "wind-particle" && H.key === "wind-particle" ? (y(), T("div",
|
|
5482
|
+
a.renderKey === "wind-particle" && H.key === "wind-particle" ? (y(), T("div", jr, [
|
|
5483
5483
|
l("span", null, w(o.$t("weather.particleAnimatiom")), 1),
|
|
5484
5484
|
h(v, {
|
|
5485
5485
|
modelValue: a.showWindParticle,
|
|
@@ -5493,7 +5493,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5493
5493
|
"hide-details": ""
|
|
5494
5494
|
}, null, 8, ["modelValue"])
|
|
5495
5495
|
])) : F("", !0),
|
|
5496
|
-
a.renderKey === "current-particle" && H.key === "current-particle" ? (y(), T("div",
|
|
5496
|
+
a.renderKey === "current-particle" && H.key === "current-particle" ? (y(), T("div", Fr, [
|
|
5497
5497
|
l("span", null, w(o.$t("weather.particleAnimatiom")), 1),
|
|
5498
5498
|
h(v, {
|
|
5499
5499
|
modelValue: a.showCurrentParticle,
|
|
@@ -5507,7 +5507,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5507
5507
|
"hide-details": ""
|
|
5508
5508
|
}, null, 8, ["modelValue"])
|
|
5509
5509
|
])) : F("", !0),
|
|
5510
|
-
a.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (y(), U(
|
|
5510
|
+
a.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (y(), U(M, {
|
|
5511
5511
|
key: 2,
|
|
5512
5512
|
modelValue: a.iceToggleValue,
|
|
5513
5513
|
"onUpdate:modelValue": e[6] || (e[6] = (te) => a.iceToggleValue = te),
|
|
@@ -5562,7 +5562,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5562
5562
|
elevation: "0"
|
|
5563
5563
|
}, {
|
|
5564
5564
|
default: g(() => [
|
|
5565
|
-
h(
|
|
5565
|
+
h(S, { class: "border-b-thin" }, {
|
|
5566
5566
|
default: g(() => [
|
|
5567
5567
|
h(b, {
|
|
5568
5568
|
class: "text-subtitle-1 font-weight-medium",
|
|
@@ -5576,30 +5576,30 @@ function jr(o, e, t, i, a, r) {
|
|
|
5576
5576
|
]),
|
|
5577
5577
|
_: 1
|
|
5578
5578
|
}),
|
|
5579
|
-
h(
|
|
5579
|
+
h(p, { class: "" }, {
|
|
5580
5580
|
default: g(() => {
|
|
5581
|
-
var H, te,
|
|
5581
|
+
var H, te, Ee, Pe, me, pe, N, ve, J, ie, Re, D, ue, Ce, De, Oe, R, W, He, Ge, We, ze, Ue, Ve, Ye, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, bt, yt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, At, It, Rt, Dt, Ot, Bt, Et, jt, Ft, Nt, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt;
|
|
5582
5582
|
return [
|
|
5583
|
-
l("div",
|
|
5584
|
-
l("div",
|
|
5585
|
-
l("div",
|
|
5586
|
-
l("div",
|
|
5587
|
-
l("div",
|
|
5588
|
-
l("div",
|
|
5589
|
-
l("div",
|
|
5583
|
+
l("div", Nr, w(o.$t("weather.atmospheric")), 1),
|
|
5584
|
+
l("div", Hr, w((Ee = (te = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : te.NOAA) == null ? void 0 : Ee.source) + " " + w((pe = (me = (Pe = a.models) == null ? void 0 : Pe.weather) == null ? void 0 : me.NOAA) == null ? void 0 : pe.spatialResolution) + w(o.$t("units.km")) + " " + w((ie = (J = (ve = (N = a.models) == null ? void 0 : N.weather) == null ? void 0 : ve.NOAA) == null ? void 0 : J.meta) == null ? void 0 : ie.days) + w(o.$t("units.days")), 1),
|
|
5585
|
+
l("div", Gr, w(o.$t("weather.source")) + ": NOAA", 1),
|
|
5586
|
+
l("div", Wr, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((Ce = (ue = (D = (Re = a.models) == null ? void 0 : Re.weather) == null ? void 0 : D.NOAA) == null ? void 0 : ue.meta) == null ? void 0 : Ce.initialisationTime)), 1),
|
|
5587
|
+
l("div", Ur, w((R = (Oe = (De = a.models) == null ? void 0 : De.weather) == null ? void 0 : Oe.ECMWF) == null ? void 0 : R.source) + " " + w((Ge = (He = (W = a.models) == null ? void 0 : W.weather) == null ? void 0 : He.ECMWF) == null ? void 0 : Ge.spatialResolution) + w(o.$t("units.km")) + " " + w((Ve = (Ue = (ze = (We = a.models) == null ? void 0 : We.weather) == null ? void 0 : ze.ECMWF) == null ? void 0 : Ue.meta) == null ? void 0 : Ve.days) + w(o.$t("units.days")), 1),
|
|
5588
|
+
l("div", Vr, w(o.$t("weather.source")) + ": ECMWF", 1),
|
|
5589
|
+
l("div", Yr, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((qe = (Xe = (Ze = (Ye = a.models) == null ? void 0 : Ye.weather) == null ? void 0 : Ze.ECMWF) == null ? void 0 : Xe.meta) == null ? void 0 : qe.initialisationTime)), 1),
|
|
5590
5590
|
h(m),
|
|
5591
|
-
l("div",
|
|
5592
|
-
l("div",
|
|
5593
|
-
l("div",
|
|
5594
|
-
l("div",
|
|
5595
|
-
l("div",
|
|
5596
|
-
l("div",
|
|
5597
|
-
l("div",
|
|
5591
|
+
l("div", Zr, w(o.$t("weather.wave")), 1),
|
|
5592
|
+
l("div", Xr, w(($e = (Je = (Qe = (Ke = a.models) == null ? void 0 : Ke.marine) == null ? void 0 : Qe.wave) == null ? void 0 : Je.NOAA) == null ? void 0 : $e.source) + " " + w((at = (ot = (tt = (et = a.models) == null ? void 0 : et.marine) == null ? void 0 : tt.wave) == null ? void 0 : ot.NOAA) == null ? void 0 : at.spatialResolution) + w(o.$t("units.km")) + " " + w((nt = (st = (lt = (rt = (it = a.models) == null ? void 0 : it.marine) == null ? void 0 : rt.wave) == null ? void 0 : lt.NOAA) == null ? void 0 : st.meta) == null ? void 0 : nt.days) + w(o.$t("units.days")), 1),
|
|
5593
|
+
l("div", qr, w(o.$t("weather.source")) + ": NOAA", 1),
|
|
5594
|
+
l("div", Kr, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((pt = (dt = (ht = (mt = (ct = a.models) == null ? void 0 : ct.marine) == null ? void 0 : mt.wave) == null ? void 0 : ht.NOAA) == null ? void 0 : dt.meta) == null ? void 0 : pt.initialisationTime)), 1),
|
|
5595
|
+
l("div", Qr, w((bt = (ft = (gt = (ut = a.models) == null ? void 0 : ut.marine) == null ? void 0 : gt.wave) == null ? void 0 : ft.ECMWF) == null ? void 0 : bt.source) + " " + w((vt = (xt = (wt = (yt = a.models) == null ? void 0 : yt.marine) == null ? void 0 : wt.wave) == null ? void 0 : xt.ECMWF) == null ? void 0 : vt.spatialResolution) + w(o.$t("units.km")) + " " + w((Pt = (Lt = (zt = (kt = (_t = a.models) == null ? void 0 : _t.marine) == null ? void 0 : kt.wave) == null ? void 0 : zt.ECMWF) == null ? void 0 : Lt.meta) == null ? void 0 : Pt.days) + w(o.$t("units.days")), 1),
|
|
5596
|
+
l("div", Jr, w(o.$t("weather.source")) + ": ECMWF", 1),
|
|
5597
|
+
l("div", $r, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((At = (Tt = (Mt = (St = (Ct = a.models) == null ? void 0 : Ct.marine) == null ? void 0 : St.wave) == null ? void 0 : Mt.ECMWF) == null ? void 0 : Tt.meta) == null ? void 0 : At.initialisationTime)), 1),
|
|
5598
5598
|
h(m),
|
|
5599
|
-
l("div",
|
|
5600
|
-
l("div",
|
|
5601
|
-
l("div",
|
|
5602
|
-
l("div",
|
|
5599
|
+
l("div", el, w(o.$t("weather.currents")), 1),
|
|
5600
|
+
l("div", tl, w((Ot = (Dt = (Rt = (It = a.models) == null ? void 0 : It.marine) == null ? void 0 : Rt.current) == null ? void 0 : Dt.ECMWF) == null ? void 0 : Ot.source) + " " + w((Ft = (jt = (Et = (Bt = a.models) == null ? void 0 : Bt.marine) == null ? void 0 : Et.current) == null ? void 0 : jt.ECMWF) == null ? void 0 : Ft.spatialResolution) + w(o.$t("units.km")) + " " + w((Ut = (Wt = (Gt = (Ht = (Nt = a.models) == null ? void 0 : Nt.marine) == null ? void 0 : Ht.current) == null ? void 0 : Gt.ECMWF) == null ? void 0 : Wt.meta) == null ? void 0 : Ut.days) + w(o.$t("units.days")), 1),
|
|
5601
|
+
l("div", ol, w(o.$t("weather.source")) + ": ECMWF", 1),
|
|
5602
|
+
l("div", al, w(o.$t("weather.lastUpdate")) + ": " + w(r.computeDateZ((qt = (Xt = (Zt = (Yt = (Vt = a.models) == null ? void 0 : Vt.marine) == null ? void 0 : Yt.current) == null ? void 0 : Zt.ECMWF) == null ? void 0 : Xt.meta) == null ? void 0 : qt.initialisationTime)), 1)
|
|
5603
5603
|
];
|
|
5604
5604
|
}),
|
|
5605
5605
|
_: 1
|
|
@@ -5609,7 +5609,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5609
5609
|
})
|
|
5610
5610
|
], 2)
|
|
5611
5611
|
], 6),
|
|
5612
|
-
t.map ? (y(), U(P,
|
|
5612
|
+
t.map ? (y(), U(P, E({
|
|
5613
5613
|
key: 1,
|
|
5614
5614
|
ref: "windBarb",
|
|
5615
5615
|
map: t.map,
|
|
@@ -5618,7 +5618,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5618
5618
|
wind: (de = a.weatherLayers) == null ? void 0 : de.wind,
|
|
5619
5619
|
"menu-toggle": t.menuToggle
|
|
5620
5620
|
}, o.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : F("", !0),
|
|
5621
|
-
t.map ? (y(), U(_,
|
|
5621
|
+
t.map ? (y(), U(_, E({
|
|
5622
5622
|
key: 2,
|
|
5623
5623
|
map: t.map,
|
|
5624
5624
|
"before-layer": "empty-layer-2",
|
|
@@ -5626,7 +5626,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5626
5626
|
"menu-toggle": t.menuToggle,
|
|
5627
5627
|
"active-weather-layers": a.activeWeatherLayers
|
|
5628
5628
|
}, o.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : F("", !0),
|
|
5629
|
-
t.map ? (y(), U(z,
|
|
5629
|
+
t.map ? (y(), U(z, E({
|
|
5630
5630
|
key: 3,
|
|
5631
5631
|
map: t.map,
|
|
5632
5632
|
"map-feather": t.mapFeather,
|
|
@@ -5634,7 +5634,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5634
5634
|
current: (K = a.weatherLayers) == null ? void 0 : K.current,
|
|
5635
5635
|
"menu-toggle": t.menuToggle
|
|
5636
5636
|
}, o.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : F("", !0),
|
|
5637
|
-
t.map ? (y(), U(C,
|
|
5637
|
+
t.map ? (y(), U(C, E({
|
|
5638
5638
|
key: 4,
|
|
5639
5639
|
map: t.map,
|
|
5640
5640
|
"before-layer": "empty-layer-2",
|
|
@@ -5642,68 +5642,68 @@ function jr(o, e, t, i, a, r) {
|
|
|
5642
5642
|
"menu-toggle": t.menuToggle,
|
|
5643
5643
|
"active-weather-layers": a.activeWeatherLayers
|
|
5644
5644
|
}, o.$attrs), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers"])) : F("", !0),
|
|
5645
|
-
t.map ? (y(), U(x,
|
|
5645
|
+
t.map ? (y(), U(x, E({
|
|
5646
5646
|
key: 5,
|
|
5647
5647
|
viewport: a.viewport,
|
|
5648
5648
|
factor: (le = a.weatherLayers) == null ? void 0 : le["wind-particle"],
|
|
5649
5649
|
"menu-toggle": t.menuToggle
|
|
5650
5650
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5651
|
-
t.map ? (y(), U(A,
|
|
5651
|
+
t.map ? (y(), U(A, E({
|
|
5652
5652
|
key: 6,
|
|
5653
5653
|
viewport: a.viewport,
|
|
5654
5654
|
factor: (ge = a.weatherLayers) == null ? void 0 : ge["current-particle"],
|
|
5655
5655
|
"menu-toggle": t.menuToggle
|
|
5656
5656
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5657
|
-
t.map ? (y(), U(
|
|
5657
|
+
t.map ? (y(), U(G, E({
|
|
5658
5658
|
key: 7,
|
|
5659
5659
|
viewport: a.viewport,
|
|
5660
5660
|
factor: (fe = a.weatherLayers) == null ? void 0 : fe["sig-wave"],
|
|
5661
5661
|
"menu-toggle": t.menuToggle
|
|
5662
5662
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5663
|
-
t.map ? (y(), U(X,
|
|
5663
|
+
t.map ? (y(), U(X, E({
|
|
5664
5664
|
key: 8,
|
|
5665
5665
|
map: t.map,
|
|
5666
5666
|
swell: (we = a.weatherLayers) == null ? void 0 : we.swell,
|
|
5667
5667
|
"menu-toggle": t.menuToggle,
|
|
5668
5668
|
"active-weather-layers": a.activeWeatherLayers
|
|
5669
5669
|
}, o.$attrs), null, 16, ["map", "swell", "menu-toggle", "active-weather-layers"])) : F("", !0),
|
|
5670
|
-
t.map ? (y(), U(V,
|
|
5670
|
+
t.map ? (y(), U(V, E({
|
|
5671
5671
|
key: 9,
|
|
5672
5672
|
viewport: a.viewport,
|
|
5673
5673
|
factor: (xe = a.weatherLayers) == null ? void 0 : xe["ice-edge"],
|
|
5674
5674
|
"menu-toggle": t.menuToggle
|
|
5675
5675
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5676
|
-
t.map ? (y(), U(Y,
|
|
5676
|
+
t.map ? (y(), U(Y, E({
|
|
5677
5677
|
key: 10,
|
|
5678
5678
|
viewport: a.viewport,
|
|
5679
|
-
factor: (
|
|
5679
|
+
factor: (Se = a.weatherLayers) == null ? void 0 : Se["ice-cover"],
|
|
5680
5680
|
"menu-toggle": t.menuToggle
|
|
5681
5681
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5682
|
-
t.map ? (y(), U($,
|
|
5682
|
+
t.map ? (y(), U($, E({
|
|
5683
5683
|
key: 11,
|
|
5684
5684
|
viewport: a.viewport,
|
|
5685
|
-
factor: (
|
|
5685
|
+
factor: (Me = a.weatherLayers) == null ? void 0 : Me["ice-thickness"],
|
|
5686
5686
|
"menu-toggle": t.menuToggle
|
|
5687
5687
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5688
|
-
t.map ? (y(), U(ee,
|
|
5688
|
+
t.map ? (y(), U(ee, E({
|
|
5689
5689
|
key: 12,
|
|
5690
5690
|
viewport: a.viewport,
|
|
5691
5691
|
factor: (Te = a.weatherLayers) == null ? void 0 : Te.precip3h,
|
|
5692
5692
|
"menu-toggle": t.menuToggle
|
|
5693
5693
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5694
|
-
t.map ? (y(), U(Q,
|
|
5694
|
+
t.map ? (y(), U(Q, E({
|
|
5695
5695
|
key: 13,
|
|
5696
5696
|
viewport: a.viewport,
|
|
5697
5697
|
factor: (Ae = a.weatherLayers) == null ? void 0 : Ae.visibility,
|
|
5698
5698
|
"menu-toggle": t.menuToggle
|
|
5699
5699
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5700
|
-
t.map ? (y(), U(ne,
|
|
5700
|
+
t.map ? (y(), U(ne, E({
|
|
5701
5701
|
key: 14,
|
|
5702
5702
|
viewport: a.viewport,
|
|
5703
5703
|
factor: (Ie = a.weatherLayers) == null ? void 0 : Ie["water-temp"],
|
|
5704
5704
|
"menu-toggle": t.menuToggle
|
|
5705
5705
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0),
|
|
5706
|
-
t.map ? (y(), U(he,
|
|
5706
|
+
t.map ? (y(), U(he, E({
|
|
5707
5707
|
key: 15,
|
|
5708
5708
|
viewport: a.viewport,
|
|
5709
5709
|
factor: (be = a.weatherLayers) == null ? void 0 : be.temp,
|
|
@@ -5711,7 +5711,7 @@ function jr(o, e, t, i, a, r) {
|
|
|
5711
5711
|
}, o.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : F("", !0)
|
|
5712
5712
|
]);
|
|
5713
5713
|
}
|
|
5714
|
-
const
|
|
5714
|
+
const rl = /* @__PURE__ */ q(zr, [["render", il]]), Kt = [
|
|
5715
5715
|
{
|
|
5716
5716
|
rank: 0,
|
|
5717
5717
|
name: "Best Match",
|
|
@@ -5989,7 +5989,7 @@ const Er = /* @__PURE__ */ q(ar, [["render", jr]]), Kt = [
|
|
|
5989
5989
|
variables: "swell_wave_direction,swell_wave_height,swell_wave_period,swell_wave_peak_period,wave_direction,wave_height,wave_period,wind_wave_direction,wind_wave_height,wind_wave_period,wind_wave_peak_period"
|
|
5990
5990
|
}
|
|
5991
5991
|
];
|
|
5992
|
-
class
|
|
5992
|
+
class ta {
|
|
5993
5993
|
static standardWeatherModels() {
|
|
5994
5994
|
return Kt.filter((e) => !e.disabled && e.alias);
|
|
5995
5995
|
}
|
|
@@ -6012,7 +6012,7 @@ class Do {
|
|
|
6012
6012
|
* @return 与之对应的大气模式
|
|
6013
6013
|
*/
|
|
6014
6014
|
static autoPickPeerModel(e, t, i = "copernicus") {
|
|
6015
|
-
if (t = this.autoPickLayerModel(t, i),
|
|
6015
|
+
if (t = this.autoPickLayerModel(t, i), ca.WEATHER_LAYERS.reduce((a, r) => r.atmos ? a + r.weight : a, 0) & e.weight) {
|
|
6016
6016
|
if (t === "copernicus")
|
|
6017
6017
|
return "ecmwf";
|
|
6018
6018
|
} else if (t === "ecmwf")
|
|
@@ -6028,20 +6028,20 @@ class Do {
|
|
|
6028
6028
|
e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
|
|
6029
6029
|
const a = e.toLowerCase().split(","), r = [], s = [];
|
|
6030
6030
|
for (const c of a) {
|
|
6031
|
-
let n = Kt.find((
|
|
6031
|
+
let n = Kt.find((p) => {
|
|
6032
6032
|
var m, f, v;
|
|
6033
|
-
return ((m =
|
|
6034
|
-
}),
|
|
6033
|
+
return ((m = p.models) == null ? void 0 : m.includes(c)) || ((f = p.alias) == null ? void 0 : f.toLowerCase()) === c || ((v = p.name) == null ? void 0 : v.toLowerCase()) === c;
|
|
6034
|
+
}), u = Qt.find((p) => {
|
|
6035
6035
|
var m, f, v;
|
|
6036
|
-
return ((m =
|
|
6036
|
+
return ((m = p.models) == null ? void 0 : m.includes(c)) || ((f = p.alias) == null ? void 0 : f.toLowerCase()) === c || ((v = p.name) == null ? void 0 : v.toLowerCase()) === c;
|
|
6037
6037
|
});
|
|
6038
|
-
n = n || Kt.find((
|
|
6038
|
+
n = n || Kt.find((p) => {
|
|
6039
6039
|
var m, f;
|
|
6040
|
-
return ((m =
|
|
6041
|
-
}),
|
|
6040
|
+
return ((m = p.alias) == null ? void 0 : m.toLowerCase()) === ((f = u == null ? void 0 : u.alias) == null ? void 0 : f.toLowerCase());
|
|
6041
|
+
}), u = u || Qt.find((p) => {
|
|
6042
6042
|
var m, f;
|
|
6043
|
-
return ((m =
|
|
6044
|
-
}), n = n || Kt[0],
|
|
6043
|
+
return ((m = p.alias) == null ? void 0 : m.toLowerCase()) === ((f = n == null ? void 0 : n.alias) == null ? void 0 : f.toLowerCase());
|
|
6044
|
+
}), n = n || Kt[0], u = u || Qt[0], r.push((t = n.models) != null && t.includes(c) ? c : n.model), s.push((i = u.models) != null && i.includes(c) ? c : u.model);
|
|
6045
6045
|
}
|
|
6046
6046
|
return {
|
|
6047
6047
|
weatherModels: r.join(","),
|
|
@@ -6058,45 +6058,45 @@ class Do {
|
|
|
6058
6058
|
}), a;
|
|
6059
6059
|
}
|
|
6060
6060
|
static pickHourly(e, t) {
|
|
6061
|
-
var i, a, r, s, c, n,
|
|
6062
|
-
const me = typeof t == "string" ? O(t) : t, pe = e == null ? void 0 : e.weather, N = e == null ? void 0 : e.marine, ve = O((a = (i = pe == null ? void 0 : pe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = ve.clone().add((c = (s = (r = pe == null ? void 0 : pe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), ie = ve.clone().add((
|
|
6061
|
+
var i, a, r, s, c, n, u, p, m, f, v, b, S, L, B, M, P, _, z, C, x, A, G, X, V, Y, $, ee, Q, ne, he, de, ce, K, I, le, ge, fe, we, xe, Se, Me, Te, Ae, Ie, be, H, te, Ee, Pe;
|
|
6062
|
+
const me = typeof t == "string" ? O(t) : t, pe = e == null ? void 0 : e.weather, N = e == null ? void 0 : e.marine, ve = O((a = (i = pe == null ? void 0 : pe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = ve.clone().add((c = (s = (r = pe == null ? void 0 : pe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), ie = ve.clone().add((p = (u = (n = pe == null ? void 0 : pe[0]) == null ? void 0 : n.hourly) == null ? void 0 : u.time) == null ? void 0 : p.at(-1), "h"), Re = [];
|
|
6063
6063
|
if (me.isBetween(J, ie, "millisecond", "[]")) {
|
|
6064
6064
|
const D = me.utc().diff(J, "h", !1);
|
|
6065
6065
|
let ue, Ce;
|
|
6066
6066
|
if (pe) {
|
|
6067
6067
|
let De = 0, Oe = 0;
|
|
6068
6068
|
for (const R of pe) {
|
|
6069
|
-
const
|
|
6069
|
+
const W = R == null ? void 0 : R.hourly;
|
|
6070
6070
|
for (let ze = D - (D - 1) % 3; ze <= D; ze++)
|
|
6071
|
-
De += (m =
|
|
6071
|
+
De += (m = W == null ? void 0 : W.precipitation) == null ? void 0 : m.at(ze);
|
|
6072
6072
|
for (let ze = D - (D - 1) % 6; ze <= D; ze++)
|
|
6073
|
-
Oe += (f =
|
|
6073
|
+
Oe += (f = W == null ? void 0 : W.precipitation) == null ? void 0 : f.at(ze);
|
|
6074
6074
|
ue = {
|
|
6075
|
-
temp: (v =
|
|
6076
|
-
apparentTemp: (b =
|
|
6077
|
-
rh: (
|
|
6078
|
-
dp: (L =
|
|
6075
|
+
temp: (v = W == null ? void 0 : W.temperature_2m) == null ? void 0 : v.at(D),
|
|
6076
|
+
apparentTemp: (b = W == null ? void 0 : W.apparent_temperature) == null ? void 0 : b.at(D),
|
|
6077
|
+
rh: (S = W == null ? void 0 : W.relative_humidity_2m) == null ? void 0 : S.at(D),
|
|
6078
|
+
dp: (L = W == null ? void 0 : W.dew_point_2m) == null ? void 0 : L.at(D),
|
|
6079
6079
|
precip: {
|
|
6080
|
-
probability: (B =
|
|
6081
|
-
sum: (
|
|
6080
|
+
probability: (B = W == null ? void 0 : W.precipitation_probability) == null ? void 0 : B.at(D),
|
|
6081
|
+
sum: (M = W == null ? void 0 : W.precipitation) == null ? void 0 : M.at(D),
|
|
6082
6082
|
sum3Hours: Math.round(De * 100) / 100,
|
|
6083
6083
|
sum6Hours: Math.round(Oe * 100) / 100
|
|
6084
6084
|
},
|
|
6085
|
-
pmsl: (P =
|
|
6086
|
-
psurf: (_ =
|
|
6087
|
-
code: (z =
|
|
6088
|
-
visibility: this.m2nm((C =
|
|
6085
|
+
pmsl: (P = W == null ? void 0 : W.pressure_msl) == null ? void 0 : P.at(D),
|
|
6086
|
+
psurf: (_ = W == null ? void 0 : W.surface_pressure) == null ? void 0 : _.at(D),
|
|
6087
|
+
code: (z = W == null ? void 0 : W.weather_code) == null ? void 0 : z.at(D),
|
|
6088
|
+
visibility: this.m2nm((C = W == null ? void 0 : W.visibility) == null ? void 0 : C.at(D)),
|
|
6089
6089
|
wind: {
|
|
6090
|
-
speed: (x =
|
|
6091
|
-
kts: (A =
|
|
6092
|
-
degree: (
|
|
6093
|
-
bearing: ((X =
|
|
6094
|
-
gusts: (Y =
|
|
6090
|
+
speed: (x = W == null ? void 0 : W.wind_speed_10m) == null ? void 0 : x.at(D),
|
|
6091
|
+
kts: (A = W == null ? void 0 : W.wind_speed_10m) == null ? void 0 : A.at(D),
|
|
6092
|
+
degree: (G = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : G.at(D),
|
|
6093
|
+
bearing: ((X = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : X.at(D)) !== null ? (((V = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : V.at(D)) + 180) % 360 : null,
|
|
6094
|
+
gusts: (Y = W == null ? void 0 : W.wind_gusts_10m) == null ? void 0 : Y.at(D)
|
|
6095
6095
|
},
|
|
6096
|
-
isDay: ($ =
|
|
6096
|
+
isDay: ($ = W == null ? void 0 : W.is_day) == null ? void 0 : $.at(D)
|
|
6097
6097
|
};
|
|
6098
|
-
const { name: He, url:
|
|
6099
|
-
ue.name = He, ue.url =
|
|
6098
|
+
const { name: He, url: Ge, bg: We } = this.parseWeatherCode(ue.code, ue.isDay);
|
|
6099
|
+
ue.name = He, ue.url = Ge, ue.bg = We, ue.wind.scale = this.beaufort(this.kts2ms(ue.wind.kts)), ue.wind.direction = this.degree2Direction(ue.wind.degree), Re.push({
|
|
6100
6100
|
utc: J.add(D, "h").format(),
|
|
6101
6101
|
model: R.model,
|
|
6102
6102
|
weather: { ...ue }
|
|
@@ -6125,7 +6125,7 @@ class Do {
|
|
|
6125
6125
|
wd: {
|
|
6126
6126
|
height: (we = R == null ? void 0 : R.wind_wave_height) == null ? void 0 : we.at(D),
|
|
6127
6127
|
degree: (xe = R == null ? void 0 : R.wind_wave_direction) == null ? void 0 : xe.at(D),
|
|
6128
|
-
bearing: ((
|
|
6128
|
+
bearing: ((Se = R == null ? void 0 : R.wind_wave_direction) == null ? void 0 : Se.at(D)) !== null ? (((Me = R == null ? void 0 : R.wind_wave_direction) == null ? void 0 : Me.at(D)) + 180) % 360 : null,
|
|
6129
6129
|
period: (Te = R == null ? void 0 : R.wind_wave_period) == null ? void 0 : Te.at(D),
|
|
6130
6130
|
peakPeriod: (Ae = R == null ? void 0 : R.wind_wave_peak_period) == null ? void 0 : Ae.at(D)
|
|
6131
6131
|
}
|
|
@@ -6136,7 +6136,7 @@ class Do {
|
|
|
6136
6136
|
degree: (H = R == null ? void 0 : R.ocean_current_direction) == null ? void 0 : H.at(D),
|
|
6137
6137
|
bearing: ((te = R == null ? void 0 : R.ocean_current_direction) == null ? void 0 : te.at(D)) ?? null
|
|
6138
6138
|
},
|
|
6139
|
-
sst: (
|
|
6139
|
+
sst: (Ee = R == null ? void 0 : R.sea_surface_temperature) == null ? void 0 : Ee.at(D),
|
|
6140
6140
|
height: (Pe = R == null ? void 0 : R.sea_level_height_msl) == null ? void 0 : Pe.at(D)
|
|
6141
6141
|
}, Ce.wave = this.parseWave(Ce.wave, ue == null ? void 0 : ue.wind), Ce.current.direction = this.degree2Direction(Ce.current.degree), Object.assign(Re[De], Ce), De++;
|
|
6142
6142
|
}
|
|
@@ -6145,7 +6145,7 @@ class Do {
|
|
|
6145
6145
|
return Re;
|
|
6146
6146
|
}
|
|
6147
6147
|
static toLegacy(e) {
|
|
6148
|
-
var t, i, a, r, s, c, n,
|
|
6148
|
+
var t, i, a, r, s, c, n, u, p, m;
|
|
6149
6149
|
return {
|
|
6150
6150
|
wind: (t = e == null ? void 0 : e.weather) == null ? void 0 : t.wind,
|
|
6151
6151
|
visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
|
|
@@ -6155,8 +6155,8 @@ class Do {
|
|
|
6155
6155
|
kts: (c = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.wind) == null ? void 0 : c.gusts
|
|
6156
6156
|
},
|
|
6157
6157
|
precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
|
|
6158
|
-
code: (
|
|
6159
|
-
name: (
|
|
6158
|
+
code: (u = e == null ? void 0 : e.weather) == null ? void 0 : u.code,
|
|
6159
|
+
name: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.name,
|
|
6160
6160
|
url: (m = e == null ? void 0 : e.weather) == null ? void 0 : m.url,
|
|
6161
6161
|
wave: e == null ? void 0 : e.wave,
|
|
6162
6162
|
current: e == null ? void 0 : e.current,
|
|
@@ -6167,18 +6167,18 @@ class Do {
|
|
|
6167
6167
|
};
|
|
6168
6168
|
}
|
|
6169
6169
|
static pickDaily(e, t) {
|
|
6170
|
-
var i, a, r, s, c, n,
|
|
6171
|
-
const Ie = typeof t == "string" ? O(t) : t, be = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = O((r = (a = (i = be == null ? void 0 : be[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)),
|
|
6172
|
-
if (Ie.isBetween(te,
|
|
6170
|
+
var i, a, r, s, c, n, u, p, m, f, v, b, S, L, B, M, P, _, z, C, x, A, G, X, V, Y, $, ee, Q, ne, he, de, ce, K, I, le, ge, fe, we, xe, Se, Me, Te, Ae;
|
|
6171
|
+
const Ie = typeof t == "string" ? O(t) : t, be = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = O((r = (a = (i = be == null ? void 0 : be[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Ee = O((n = (c = (s = be == null ? void 0 : be[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Pe = [];
|
|
6172
|
+
if (Ie.isBetween(te, Ee, "millisecond", "[]")) {
|
|
6173
6173
|
let me, pe;
|
|
6174
6174
|
const N = Ie.diff(te, "d", !1);
|
|
6175
6175
|
if (be)
|
|
6176
6176
|
for (const ve of be) {
|
|
6177
6177
|
const J = ve.daily;
|
|
6178
6178
|
me = {
|
|
6179
|
-
code: (
|
|
6179
|
+
code: (u = J.weather_code) == null ? void 0 : u.at(N),
|
|
6180
6180
|
temp: {
|
|
6181
|
-
max: (
|
|
6181
|
+
max: (p = J.temperature_2m_max) == null ? void 0 : p.at(N),
|
|
6182
6182
|
min: (m = J.temperature_2m_min) == null ? void 0 : m.at(N),
|
|
6183
6183
|
mean: (f = J.temperature_2m_mean) == null ? void 0 : f.at(N)
|
|
6184
6184
|
},
|
|
@@ -6187,10 +6187,10 @@ class Do {
|
|
|
6187
6187
|
min: (b = J.apparent_temperature_min) == null ? void 0 : b.at(N)
|
|
6188
6188
|
},
|
|
6189
6189
|
precip: {
|
|
6190
|
-
sum: (
|
|
6190
|
+
sum: (S = J.precipitation_sum) == null ? void 0 : S.at(N),
|
|
6191
6191
|
rainSum: (L = J.rain_sum) == null ? void 0 : L.at(N),
|
|
6192
6192
|
snowfallSum: (B = J.snowfall_sum) == null ? void 0 : B.at(N),
|
|
6193
|
-
showersSum: (
|
|
6193
|
+
showersSum: (M = J.showers_sum) == null ? void 0 : M.at(N),
|
|
6194
6194
|
hours: (P = J.precipitation_hours) == null ? void 0 : P.at(N),
|
|
6195
6195
|
probability: (_ = J.precipitation_probability_max) == null ? void 0 : _.at(N)
|
|
6196
6196
|
},
|
|
@@ -6201,7 +6201,7 @@ class Do {
|
|
|
6201
6201
|
},
|
|
6202
6202
|
wind: {
|
|
6203
6203
|
speed: (A = J.wind_speed_10m_max) == null ? void 0 : A.at(N),
|
|
6204
|
-
kts: (
|
|
6204
|
+
kts: (G = J.wind_speed_10m_max) == null ? void 0 : G.at(N),
|
|
6205
6205
|
degree: (X = J.wind_direction_10m_dominant) == null ? void 0 : X.at(N),
|
|
6206
6206
|
gusts: (V = J.wind_gusts_10m_max) == null ? void 0 : V.at(N),
|
|
6207
6207
|
bearing: ((Y = J.wind_direction_10m_dominant) == null ? void 0 : Y.at(N)) !== null ? ((($ = J.wind_direction_10m_dominant) == null ? void 0 : $.at(N)) + 180) % 360 : null
|
|
@@ -6237,8 +6237,8 @@ class Do {
|
|
|
6237
6237
|
wd: {
|
|
6238
6238
|
height: (we = ie.wind_wave_height_max) == null ? void 0 : we.at(N),
|
|
6239
6239
|
degree: (xe = ie.wind_wave_direction_dominant) == null ? void 0 : xe.at(N),
|
|
6240
|
-
period: (
|
|
6241
|
-
peakPeriod: (
|
|
6240
|
+
period: (Se = ie.wind_wave_period_max) == null ? void 0 : Se.at(N),
|
|
6241
|
+
peakPeriod: (Me = ie.wind_wave_peak_period_max) == null ? void 0 : Me.at(N),
|
|
6242
6242
|
bearing: ((Te = ie.wind_wave_direction_dominant) == null ? void 0 : Te.at(N)) !== null ? (((Ae = ie.wind_wave_direction_dominant) == null ? void 0 : Ae.at(N)) + 180) % 360 : null
|
|
6243
6243
|
}
|
|
6244
6244
|
}
|
|
@@ -6647,7 +6647,7 @@ class Do {
|
|
|
6647
6647
|
return isNaN(e) || e <= 0.1 ? t = "Calm" : e <= 0.5 ? t = "Smooth" : e <= 1.25 ? t = "Slight" : e <= 2.5 ? t = "Moderate" : e <= 4 ? t = "Rough" : e <= 6 ? t = "VeryRough" : e <= 9 ? t = "High" : e <= 14 ? t = "VeryHigh" : t = "Precipitous", t;
|
|
6648
6648
|
}
|
|
6649
6649
|
}
|
|
6650
|
-
const
|
|
6650
|
+
const ll = {
|
|
6651
6651
|
name: "IdmTropicals",
|
|
6652
6652
|
props: {
|
|
6653
6653
|
map: {
|
|
@@ -6691,7 +6691,7 @@ const Fr = {
|
|
|
6691
6691
|
return {
|
|
6692
6692
|
right: 10,
|
|
6693
6693
|
toggle: !1,
|
|
6694
|
-
helper:
|
|
6694
|
+
helper: sa,
|
|
6695
6695
|
tropicals: void 0,
|
|
6696
6696
|
tropicalCacheKey: "tropicalCacheGL4",
|
|
6697
6697
|
source: "tropicals-source",
|
|
@@ -6711,9 +6711,9 @@ const Fr = {
|
|
|
6711
6711
|
showTropicalsInfo: !1,
|
|
6712
6712
|
activeTropicals: void 0,
|
|
6713
6713
|
activeTropicalsMarker: void 0,
|
|
6714
|
-
empty:
|
|
6714
|
+
empty: j.featureCollection([]),
|
|
6715
6715
|
circleSource: "circle-source",
|
|
6716
|
-
circleSourceData:
|
|
6716
|
+
circleSourceData: j.featureCollection([]),
|
|
6717
6717
|
circleLayer: "tropical-circle-layer"
|
|
6718
6718
|
};
|
|
6719
6719
|
},
|
|
@@ -6732,8 +6732,8 @@ const Fr = {
|
|
|
6732
6732
|
},
|
|
6733
6733
|
computeBF() {
|
|
6734
6734
|
return function(o) {
|
|
6735
|
-
const e =
|
|
6736
|
-
return
|
|
6735
|
+
const e = ta.kts2ms(o);
|
|
6736
|
+
return ta.beaufort(e);
|
|
6737
6737
|
};
|
|
6738
6738
|
},
|
|
6739
6739
|
computeMovement() {
|
|
@@ -6792,17 +6792,17 @@ const Fr = {
|
|
|
6792
6792
|
}
|
|
6793
6793
|
});
|
|
6794
6794
|
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) {
|
|
6795
|
-
const
|
|
6796
|
-
await Be.get(
|
|
6795
|
+
const u = (s = n == null ? void 0 : n.data) == null ? void 0 : s.data;
|
|
6796
|
+
await Be.get(u.tropicals, {
|
|
6797
6797
|
headers: {
|
|
6798
6798
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6799
6799
|
key: "tropicals"
|
|
6800
6800
|
},
|
|
6801
|
-
responseType: /\.(jpg|png)$/.test(
|
|
6802
|
-
}).then((
|
|
6803
|
-
var v, b,
|
|
6804
|
-
const m =
|
|
6805
|
-
((
|
|
6801
|
+
responseType: /\.(jpg|png)$/.test(u.tropicals) ? "blob" : "json"
|
|
6802
|
+
}).then((p) => {
|
|
6803
|
+
var v, b, S;
|
|
6804
|
+
const m = ea.convert2Geojson(((v = p == null ? void 0 : p.data) == null ? void 0 : v.data) || (p == null ? void 0 : p.data));
|
|
6805
|
+
((S = (b = p == null ? void 0 : p.config) == null ? void 0 : b.headers) == null ? void 0 : S.key) && m && (this.tropicals = {
|
|
6806
6806
|
data: m,
|
|
6807
6807
|
active: !0,
|
|
6808
6808
|
cached: !0,
|
|
@@ -6810,8 +6810,8 @@ const Fr = {
|
|
|
6810
6810
|
etime: n.data.etime,
|
|
6811
6811
|
version: Math.random() + 1
|
|
6812
6812
|
}, this.handleInit());
|
|
6813
|
-
}).catch((
|
|
6814
|
-
console.log(`[${key}] fetch layer error: ${
|
|
6813
|
+
}).catch((p) => {
|
|
6814
|
+
console.log(`[${key}] fetch layer error: ${p}`);
|
|
6815
6815
|
});
|
|
6816
6816
|
}
|
|
6817
6817
|
t = (/* @__PURE__ */ new Date()).valueOf() - (o + e), console.log("tropicals elapsed: ", t, ", total: ", e += t);
|
|
@@ -6842,7 +6842,7 @@ const Fr = {
|
|
|
6842
6842
|
));
|
|
6843
6843
|
},
|
|
6844
6844
|
handleRender() {
|
|
6845
|
-
var o, e, t, i, a, r, s, c, n,
|
|
6845
|
+
var o, e, t, i, a, r, s, c, n, u;
|
|
6846
6846
|
if (!this.map)
|
|
6847
6847
|
setTimeout(() => {
|
|
6848
6848
|
this.handleRender();
|
|
@@ -6950,7 +6950,7 @@ const Fr = {
|
|
|
6950
6950
|
}
|
|
6951
6951
|
}), v = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropical] add elapsed: ", v, ", total: ", f += v)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropical] update elapsed: ", v, ", total: ", f += v)) : (this.map.addSource(this.clusterSource, {
|
|
6952
6952
|
type: "geojson",
|
|
6953
|
-
data: (n = this.tropicals) != null && n.active ? (
|
|
6953
|
+
data: (n = this.tropicals) != null && n.active ? (u = this.tropicals) == null ? void 0 : u.data : this.empty
|
|
6954
6954
|
// cluster: true,
|
|
6955
6955
|
// clusterRadius: 10, // 聚合半径
|
|
6956
6956
|
}), this.map.addLayer({
|
|
@@ -7068,8 +7068,8 @@ const Fr = {
|
|
|
7068
7068
|
}), v = (/* @__PURE__ */ new Date()).valueOf() - (m + f), console.log("[tropical] add elapsed: ", v, ", total: ", f += v));
|
|
7069
7069
|
}
|
|
7070
7070
|
this.handleDrawCircle();
|
|
7071
|
-
const
|
|
7072
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
7071
|
+
const p = ea.interpolate(this.tropicals, 1);
|
|
7072
|
+
this.interpolateData = JSON.parse(JSON.stringify(p)), this.handleDateChange();
|
|
7073
7073
|
}
|
|
7074
7074
|
},
|
|
7075
7075
|
handleClear() {
|
|
@@ -7090,9 +7090,9 @@ const Fr = {
|
|
|
7090
7090
|
), this.showTropicalsInfo = !1, (t = this.activeTropicalsMarker) == null || t.remove(), this.activeTropicalsMarker = void 0;
|
|
7091
7091
|
},
|
|
7092
7092
|
handleDateChange() {
|
|
7093
|
-
var o, e, t, i, a, r, s, c, n,
|
|
7093
|
+
var o, e, t, i, a, r, s, c, n, u, p, m, f, v, b, S, L, B, M, P, _, z, C, x, A, G, X, V, Y, $, ee, Q;
|
|
7094
7094
|
if ((o = this.interpolateMarkers) == null || o.forEach((ne) => ne == null ? void 0 : ne.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
7095
|
-
const ne = O(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), he = this.interpolateData.filter((K) => K.properties.date === ne.format() && !K.properties.disabled), de = this.handleComputePolygons(he), ce =
|
|
7095
|
+
const ne = O(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), he = this.interpolateData.filter((K) => K.properties.date === ne.format() && !K.properties.disabled), de = this.handleComputePolygons(he), ce = j.featureCollection([...he]);
|
|
7096
7096
|
de.forEach((K) => {
|
|
7097
7097
|
ce.features.push(K);
|
|
7098
7098
|
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(ce) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
@@ -7112,7 +7112,7 @@ const Fr = {
|
|
|
7112
7112
|
for (const K of he)
|
|
7113
7113
|
if (!K.properties.disabled) {
|
|
7114
7114
|
let I = "#f44336";
|
|
7115
|
-
((c = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((
|
|
7115
|
+
((c = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((u = (n = K.properties) == null ? void 0 : n.wind) != null && u.kts) ? I = "#03f869" : ((m = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : m.kts) >= 32 && ((v = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : v.kts) < 47 ? I = "#f2f202" : ((S = (b = K.properties) == null ? void 0 : b.wind) == null ? void 0 : S.kts) >= 47 && ((B = (L = K.properties) == null ? void 0 : L.wind) == null ? void 0 : B.kts) < 63 ? I = "#ff9100" : ((P = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : P.kts) >= 63 && ((z = (_ = K.properties) == null ? void 0 : _.wind) == null ? void 0 : z.kts) < 79 ? I = "#f44336" : ((x = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : x.kts) >= 79 && ((G = (A = K.properties) == null ? void 0 : A.wind) == null ? void 0 : G.kts) < 94 ? I = "#f903d0" : ((V = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : V.kts) >= 94 ? I = "#8702f9" : I = "#f44336";
|
|
7116
7116
|
const le = `<svg t="1719918955501"
|
|
7117
7117
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
7118
7118
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -7136,7 +7136,7 @@ const Fr = {
|
|
|
7136
7136
|
(ee = this.map) != null && ee.getSource(this.interpolateSource) && ((Q = this.map) == null || Q.getSource(this.interpolateSource).setData(this.empty));
|
|
7137
7137
|
},
|
|
7138
7138
|
handleClick(o) {
|
|
7139
|
-
var r, s, c, n,
|
|
7139
|
+
var r, s, c, n, u, p, m, f;
|
|
7140
7140
|
const e = o.features[0], t = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
|
|
7141
7141
|
(v) => {
|
|
7142
7142
|
var b;
|
|
@@ -7149,9 +7149,9 @@ const Fr = {
|
|
|
7149
7149
|
}
|
|
7150
7150
|
);
|
|
7151
7151
|
this.activeTropicals = {
|
|
7152
|
-
name: (
|
|
7152
|
+
name: (u = e == null ? void 0 : e.properties) == null ? void 0 : u.name,
|
|
7153
7153
|
forecasts: t.map((v) => v.properties),
|
|
7154
|
-
history: (
|
|
7154
|
+
history: (p = i[0]) == null ? void 0 : p.properties,
|
|
7155
7155
|
showCircle: (f = (m = t[0]) == null ? void 0 : m.properties) == null ? void 0 : f.showCircle
|
|
7156
7156
|
}, this.showTropicalsInfo = !0;
|
|
7157
7157
|
const a = document.getElementById("idm-tropical-gl4-info");
|
|
@@ -7161,11 +7161,11 @@ const Fr = {
|
|
|
7161
7161
|
var i, a, r, s, c, n;
|
|
7162
7162
|
o.disabled = !o.disabled;
|
|
7163
7163
|
const e = `${o.name}-${o.model}`, t = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
|
|
7164
|
-
t.forEach((
|
|
7165
|
-
|
|
7166
|
-
}), this.interpolateData.forEach((
|
|
7167
|
-
|
|
7168
|
-
}), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(
|
|
7164
|
+
t.forEach((u) => {
|
|
7165
|
+
u.properties.category === e && (u.properties.disabled = o.disabled);
|
|
7166
|
+
}), this.interpolateData.forEach((u) => {
|
|
7167
|
+
u.properties.category === e && (u.properties.disabled = o.disabled);
|
|
7168
|
+
}), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(j.featureCollection(t)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(j.featureCollection(t)), this.handleDateChange();
|
|
7169
7169
|
},
|
|
7170
7170
|
handleStrikeProbability(o) {
|
|
7171
7171
|
this.$emit("tropicalProbability", index);
|
|
@@ -7222,28 +7222,28 @@ const Fr = {
|
|
|
7222
7222
|
let n;
|
|
7223
7223
|
switch (s) {
|
|
7224
7224
|
case "ne":
|
|
7225
|
-
n =
|
|
7225
|
+
n = j.lineArc(o, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7226
7226
|
break;
|
|
7227
7227
|
case "se":
|
|
7228
|
-
n =
|
|
7228
|
+
n = j.lineArc(o, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7229
7229
|
break;
|
|
7230
7230
|
case "sw":
|
|
7231
|
-
n =
|
|
7231
|
+
n = j.lineArc(o, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7232
7232
|
break;
|
|
7233
7233
|
case "nw":
|
|
7234
|
-
n =
|
|
7234
|
+
n = j.lineArc(o, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
7235
7235
|
break;
|
|
7236
7236
|
}
|
|
7237
7237
|
i.push(...(r = n == null ? void 0 : n.geometry) == null ? void 0 : r.coordinates);
|
|
7238
7238
|
}
|
|
7239
|
-
const a =
|
|
7240
|
-
return
|
|
7239
|
+
const a = j.lineString(i);
|
|
7240
|
+
return j.lineToPolygon(a, { properties: t });
|
|
7241
7241
|
}
|
|
7242
7242
|
}
|
|
7243
|
-
},
|
|
7244
|
-
function
|
|
7245
|
-
const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"),
|
|
7246
|
-
return y(), T("div",
|
|
7243
|
+
}, sl = { class: "idm-tropical-gl4" }, nl = { key: 0 }, cl = { class: "text-body-2 opacity-50" }, ml = { class: "pa-1 d-flex justify-space-between align-center" }, hl = { class: "col col-left justify-start" }, dl = { class: "col col-right justify-start" }, pl = { class: "px-1 py-2 d-flex justify-space-between align-center" }, ul = { class: "d-flex justify-space-between align-center col-left justify-start" }, gl = { class: "d-flex justify-space-between align-center col-right" }, fl = { class: "pa-1 d-flex justify-space-between align-center" }, bl = { class: "d-flex justify-space-between align-center flex-1-1-100" }, yl = { class: "d-flex justify-end align-center flex-1-1-0 flex-wrap" }, wl = ["onClick"];
|
|
7244
|
+
function xl(o, e, t, i, a, r) {
|
|
7245
|
+
const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"), u = k("VCardSubtitle"), p = k("VCardItem"), m = k("VCardText"), f = k("VCard");
|
|
7246
|
+
return y(), T("div", sl, [
|
|
7247
7247
|
l("div", {
|
|
7248
7248
|
class: "menu-bar-box transition pa-1",
|
|
7249
7249
|
style: ae({ top: t.top + 134 + "px", right: a.right + "px" })
|
|
@@ -7253,7 +7253,7 @@ function $r(o, e, t, i, a, r) {
|
|
|
7253
7253
|
location: "left"
|
|
7254
7254
|
}, {
|
|
7255
7255
|
activator: g(({ props: v }) => [
|
|
7256
|
-
h(s,
|
|
7256
|
+
h(s, E(v, {
|
|
7257
7257
|
"min-width": "32",
|
|
7258
7258
|
width: "32",
|
|
7259
7259
|
height: "32",
|
|
@@ -7277,17 +7277,17 @@ function $r(o, e, t, i, a, r) {
|
|
|
7277
7277
|
elevation: "16"
|
|
7278
7278
|
}, {
|
|
7279
7279
|
default: g(() => [
|
|
7280
|
-
h(
|
|
7280
|
+
h(p, { class: "border-b-thin" }, {
|
|
7281
7281
|
default: g(() => [
|
|
7282
7282
|
h(n, {
|
|
7283
7283
|
class: "text-subtitle-1 d-flex justify-space-between",
|
|
7284
7284
|
style: { "font-size": "16px !important" }
|
|
7285
7285
|
}, {
|
|
7286
7286
|
default: g(() => {
|
|
7287
|
-
var v, b,
|
|
7287
|
+
var v, b, S, L, B;
|
|
7288
7288
|
return [
|
|
7289
7289
|
l("div", null, [
|
|
7290
|
-
(b = (v = a.activeTropicals) == null ? void 0 : v.history) != null && b.level ? (y(), T("span",
|
|
7290
|
+
(b = (v = a.activeTropicals) == null ? void 0 : v.history) != null && b.level ? (y(), T("span", nl, w((L = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : L.level) + " , ", 1)) : F("", !0),
|
|
7291
7291
|
Z(w((B = a.activeTropicals) == null ? void 0 : B.name), 1)
|
|
7292
7292
|
]),
|
|
7293
7293
|
h(s, {
|
|
@@ -7295,17 +7295,17 @@ function $r(o, e, t, i, a, r) {
|
|
|
7295
7295
|
size: "small",
|
|
7296
7296
|
density: "comfortable",
|
|
7297
7297
|
variant: "plain",
|
|
7298
|
-
onClick: e[0] || (e[0] = (
|
|
7298
|
+
onClick: e[0] || (e[0] = (M) => a.showTropicalsInfo = !1)
|
|
7299
7299
|
})
|
|
7300
7300
|
];
|
|
7301
7301
|
}),
|
|
7302
7302
|
_: 1
|
|
7303
7303
|
}),
|
|
7304
|
-
h(
|
|
7304
|
+
h(u, null, {
|
|
7305
7305
|
default: g(() => {
|
|
7306
|
-
var v, b,
|
|
7306
|
+
var v, b, S, L, B;
|
|
7307
7307
|
return [
|
|
7308
|
-
l("span",
|
|
7308
|
+
l("span", cl, " Last update: " + w(r.computeTime(((b = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : b.updated) || ((B = (L = (S = a.activeTropicals) == null ? void 0 : S.forecasts) == null ? void 0 : L.filter((M) => !M.disabled)[0]) == null ? void 0 : B.date))), 1)
|
|
7309
7309
|
];
|
|
7310
7310
|
}),
|
|
7311
7311
|
_: 1
|
|
@@ -7315,48 +7315,48 @@ function $r(o, e, t, i, a, r) {
|
|
|
7315
7315
|
}),
|
|
7316
7316
|
h(m, { class: "main-box" }, {
|
|
7317
7317
|
default: g(() => {
|
|
7318
|
-
var v, b,
|
|
7318
|
+
var v, b, S, L, B, M, P, _, z;
|
|
7319
7319
|
return [
|
|
7320
|
-
l("div",
|
|
7321
|
-
l("div",
|
|
7320
|
+
l("div", ml, [
|
|
7321
|
+
l("div", hl, [
|
|
7322
7322
|
e[2] || (e[2] = l("label", null, "Wind speed : ", -1)),
|
|
7323
7323
|
l("span", null, w(((b = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : b.kts) || "-") + " [kts]", 1),
|
|
7324
|
-
l("span", null, ", BF " + w(r.computeBF(((L = (
|
|
7324
|
+
l("span", null, ", BF " + w(r.computeBF(((L = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : L.kts) || 0)), 1)
|
|
7325
7325
|
]),
|
|
7326
|
-
l("div",
|
|
7326
|
+
l("div", dl, [
|
|
7327
7327
|
e[3] || (e[3] = l("label", null, "Pressure : ", -1)),
|
|
7328
|
-
l("span", null, w(((
|
|
7328
|
+
l("span", null, w(((M = (B = a.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : M.pressure) || "-") + " [hPa]", 1)
|
|
7329
7329
|
])
|
|
7330
7330
|
]),
|
|
7331
|
-
l("div",
|
|
7332
|
-
l("div",
|
|
7331
|
+
l("div", pl, [
|
|
7332
|
+
l("div", ul, [
|
|
7333
7333
|
e[4] || (e[4] = l("label", null, "Move Speed: ", -1)),
|
|
7334
7334
|
l("span", null, w((P = r.computeMovement(a.activeTropicals)) == null ? void 0 : P.kts) + " [kts]", 1)
|
|
7335
7335
|
]),
|
|
7336
|
-
l("div",
|
|
7336
|
+
l("div", gl, [
|
|
7337
7337
|
e[5] || (e[5] = l("label", null, "Move Dir: ", -1)),
|
|
7338
7338
|
l("span", null, w((_ = r.computeMovement(a.activeTropicals)) == null ? void 0 : _.deg) + " [°]", 1)
|
|
7339
7339
|
])
|
|
7340
7340
|
]),
|
|
7341
|
-
l("div",
|
|
7342
|
-
l("div",
|
|
7341
|
+
l("div", fl, [
|
|
7342
|
+
l("div", bl, [
|
|
7343
7343
|
e[6] || (e[6] = l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
7344
|
-
l("div",
|
|
7344
|
+
l("div", yl, [
|
|
7345
7345
|
(y(!0), T(_e, null, Le((z = a.activeTropicals) == null ? void 0 : z.forecasts, (C, x) => {
|
|
7346
|
-
var A,
|
|
7346
|
+
var A, G, X, V;
|
|
7347
7347
|
return y(), T("div", {
|
|
7348
7348
|
key: x,
|
|
7349
7349
|
class: Ne([
|
|
7350
7350
|
"model",
|
|
7351
7351
|
C.disabled ? "" : "active",
|
|
7352
|
-
x > 0 && x < ((
|
|
7352
|
+
x > 0 && x < ((G = (A = a.activeTropicals) == null ? void 0 : A.forecasts) == null ? void 0 : G.length) - 1 && ((V = (X = a.activeTropicals) == null ? void 0 : X.forecasts) == null ? void 0 : V.length) > 2 ? "center-child" : ""
|
|
7353
7353
|
]),
|
|
7354
7354
|
onClick: (Y) => r.handleForecastToggle(C)
|
|
7355
7355
|
}, [
|
|
7356
7356
|
l("span", {
|
|
7357
7357
|
class: Ne(C.model)
|
|
7358
7358
|
}, w(C.model), 3)
|
|
7359
|
-
], 10,
|
|
7359
|
+
], 10, wl);
|
|
7360
7360
|
}), 128))
|
|
7361
7361
|
])
|
|
7362
7362
|
])
|
|
@@ -7413,8 +7413,8 @@ function $r(o, e, t, i, a, r) {
|
|
|
7413
7413
|
])
|
|
7414
7414
|
]);
|
|
7415
7415
|
}
|
|
7416
|
-
const
|
|
7417
|
-
const
|
|
7416
|
+
const aa = /* @__PURE__ */ q(ll, [["render", xl]]);
|
|
7417
|
+
const vl = {
|
|
7418
7418
|
name: "DateTimePicker",
|
|
7419
7419
|
props: {
|
|
7420
7420
|
locale: {
|
|
@@ -7563,19 +7563,19 @@ const el = {
|
|
|
7563
7563
|
this.currentDate = o.clone().format("YYYY-MM-DD"), this.currentTime = o.clone().format("HH:00");
|
|
7564
7564
|
}
|
|
7565
7565
|
}
|
|
7566
|
-
},
|
|
7566
|
+
}, _l = { class: "idm-gl4-timepicker" }, kl = {
|
|
7567
7567
|
class: "pa-0",
|
|
7568
7568
|
style: { width: "250px" }
|
|
7569
|
-
},
|
|
7569
|
+
}, zl = {
|
|
7570
7570
|
class: "h-100 pa-0 d-flex flex-column justify-start align-center",
|
|
7571
7571
|
style: { width: "100px" }
|
|
7572
|
-
},
|
|
7572
|
+
}, Ll = {
|
|
7573
7573
|
class: "d-flex justify-center align-center text-body-2",
|
|
7574
7574
|
style: { height: "56px" }
|
|
7575
7575
|
};
|
|
7576
|
-
function
|
|
7577
|
-
const s = k("VBtn"), c = k("VDatePicker"), n = k("VDivider"),
|
|
7578
|
-
return y(), T("div",
|
|
7576
|
+
function Pl(o, e, t, i, a, r) {
|
|
7577
|
+
const s = k("VBtn"), c = k("VDatePicker"), n = k("VDivider"), u = k("VListItemTitle"), p = k("VListItem"), m = k("VList"), f = k("VCardText"), v = k("VCardActions"), b = k("VCard");
|
|
7578
|
+
return y(), T("div", _l, [
|
|
7579
7579
|
h(s, {
|
|
7580
7580
|
text: "",
|
|
7581
7581
|
height: "30",
|
|
@@ -7594,10 +7594,10 @@ function rl(o, e, t, i, a, r) {
|
|
|
7594
7594
|
default: g(() => [
|
|
7595
7595
|
h(f, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
7596
7596
|
default: g(() => [
|
|
7597
|
-
l("div",
|
|
7597
|
+
l("div", kl, [
|
|
7598
7598
|
h(c, {
|
|
7599
7599
|
modelValue: a.currentDate,
|
|
7600
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
7600
|
+
"onUpdate:modelValue": e[0] || (e[0] = (S) => a.currentDate = S),
|
|
7601
7601
|
min: a.dateRange[0],
|
|
7602
7602
|
max: a.dateRange[1],
|
|
7603
7603
|
"mode-icon": () => r.currentYear,
|
|
@@ -7613,26 +7613,26 @@ function rl(o, e, t, i, a, r) {
|
|
|
7613
7613
|
class: "h-100",
|
|
7614
7614
|
vertical: ""
|
|
7615
7615
|
}),
|
|
7616
|
-
l("div",
|
|
7617
|
-
l("div",
|
|
7616
|
+
l("div", zl, [
|
|
7617
|
+
l("div", Ll, w(a.currentTime), 1),
|
|
7618
7618
|
h(m, { class: "pa-0 flex-1-1-0" }, {
|
|
7619
7619
|
default: g(() => [
|
|
7620
|
-
(y(!0), T(_e, null, Le(r.hourOptions, (
|
|
7620
|
+
(y(!0), T(_e, null, Le(r.hourOptions, (S, L) => (y(), U(p, {
|
|
7621
7621
|
key: L,
|
|
7622
|
-
value:
|
|
7622
|
+
value: S,
|
|
7623
7623
|
color: "primary",
|
|
7624
|
-
active: a.currentTime ===
|
|
7624
|
+
active: a.currentTime === S,
|
|
7625
7625
|
rounded: "",
|
|
7626
7626
|
height: "26",
|
|
7627
7627
|
"min-height": "26"
|
|
7628
7628
|
}, {
|
|
7629
7629
|
default: g(() => [
|
|
7630
|
-
h(
|
|
7630
|
+
h(u, {
|
|
7631
7631
|
class: "text-body-2 text-center",
|
|
7632
|
-
onClick: (B) => a.currentTime =
|
|
7632
|
+
onClick: (B) => a.currentTime = S
|
|
7633
7633
|
}, {
|
|
7634
7634
|
default: g(() => [
|
|
7635
|
-
Z(w(
|
|
7635
|
+
Z(w(S), 1)
|
|
7636
7636
|
]),
|
|
7637
7637
|
_: 2
|
|
7638
7638
|
}, 1032, ["onClick"])
|
|
@@ -7685,8 +7685,8 @@ function rl(o, e, t, i, a, r) {
|
|
|
7685
7685
|
})) : F("", !0)
|
|
7686
7686
|
]);
|
|
7687
7687
|
}
|
|
7688
|
-
const io = /* @__PURE__ */ q(
|
|
7689
|
-
const
|
|
7688
|
+
const io = /* @__PURE__ */ q(vl, [["render", Pl]]);
|
|
7689
|
+
const Cl = {
|
|
7690
7690
|
name: "IdmPoint",
|
|
7691
7691
|
components: {
|
|
7692
7692
|
DateTimePicker: io
|
|
@@ -7920,10 +7920,10 @@ const ll = {
|
|
|
7920
7920
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
|
|
7921
7921
|
},
|
|
7922
7922
|
initTableData(o) {
|
|
7923
|
-
var t, i, a, r, s, c, n,
|
|
7923
|
+
var t, i, a, r, s, c, n, u, p, m, f, v, b, S, L, B, M, P, _, z, C, x, A, G, X, V, Y, $, ee, Q, ne, he, de, ce, K, I, le, ge, fe, we, xe;
|
|
7924
7924
|
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;
|
|
7925
7925
|
const e = ((s = oo.pickHourly(o, O(this.form.dateTime))) == null ? void 0 : s[0]) || {};
|
|
7926
|
-
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((
|
|
7926
|
+
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((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((m = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : m.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((b = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : b.kts, 1) ?? "-", this.currentHourData.windDir = (L = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : L.direction, this.currentHourData.windLevel = this.roundPrecision((M = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((_ = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((C = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (x = e == null ? void 0 : e.wave) == null ? void 0 : x.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((ne = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((de = (he = e == null ? void 0 : e.wave) == null ? void 0 : he.swell) == null ? void 0 : de.height, 1) ?? "-", this.currentHourData.swellDir = (K = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : K.direction, this.currentHourData.swellPeriod = this.roundPrecision((le = (I = e == null ? void 0 : e.wave) == null ? void 0 : I.swell) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (fe = e == null ? void 0 : e.current) == null ? void 0 : fe.direction, this.currentHourData.currentSpeed = this.roundPrecision((we = e == null ? void 0 : e.current) == null ? void 0 : we.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
|
|
7927
7927
|
},
|
|
7928
7928
|
handleBind() {
|
|
7929
7929
|
var o, e;
|
|
@@ -7979,22 +7979,22 @@ const ll = {
|
|
|
7979
7979
|
this.$emit("follow", "point", this.point);
|
|
7980
7980
|
}
|
|
7981
7981
|
}
|
|
7982
|
-
},
|
|
7982
|
+
}, Sl = { class: "idm-gl4-spot" }, Ml = { class: "d-flex justify-start align-center ga-1 mb-1" }, Tl = {
|
|
7983
7983
|
class: "multi-color-icon",
|
|
7984
7984
|
"aria-hidden": "true"
|
|
7985
|
-
},
|
|
7985
|
+
}, Al = ["xlink:href"], Il = { class: "d-flex justify-start align-center ga-1 mb-1" }, Rl = {
|
|
7986
7986
|
class: "multi-color-icon",
|
|
7987
7987
|
"aria-hidden": "true"
|
|
7988
|
-
},
|
|
7988
|
+
}, Dl = ["xlink:href"], Ol = { class: "d-flex justify-start align-center ga-1 mb-1" }, Bl = {
|
|
7989
7989
|
class: "multi-color-icon",
|
|
7990
7990
|
"aria-hidden": "true"
|
|
7991
|
-
},
|
|
7991
|
+
}, El = ["xlink:href"], jl = { class: "d-flex justify-start align-center ga-1 mb-1" }, Fl = {
|
|
7992
7992
|
class: "multi-color-icon",
|
|
7993
7993
|
"aria-hidden": "true"
|
|
7994
|
-
},
|
|
7995
|
-
function
|
|
7996
|
-
const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"),
|
|
7997
|
-
return y(), T("div",
|
|
7994
|
+
}, Nl = ["xlink:href"], Hl = { class: "d-flex justify-start align-center" }, Gl = { class: "mx-2" };
|
|
7995
|
+
function Wl(o, e, t, i, a, r) {
|
|
7996
|
+
const s = k("VBtn"), c = k("VTooltip"), n = k("VCardTitle"), u = k("VDivider"), p = k("VTextField"), m = k("VCol"), f = k("VRow"), v = k("DateTimePicker"), b = k("VBtnToggle"), S = k("VCardActions"), L = k("VForm"), B = k("VCardText"), M = k("VCard"), P = k("VIcon");
|
|
7997
|
+
return y(), T("div", Sl, [
|
|
7998
7998
|
l("div", {
|
|
7999
7999
|
class: "menu-bar-box transition pa-1",
|
|
8000
8000
|
style: ae({ top: t.top + 174 + "px", right: a.right + "px" })
|
|
@@ -8004,7 +8004,7 @@ function _l(o, e, t, i, a, r) {
|
|
|
8004
8004
|
location: "left"
|
|
8005
8005
|
}, {
|
|
8006
8006
|
activator: g(({ props: _ }) => [
|
|
8007
|
-
h(s,
|
|
8007
|
+
h(s, E(_, {
|
|
8008
8008
|
"min-width": "32",
|
|
8009
8009
|
width: "32",
|
|
8010
8010
|
height: "32",
|
|
@@ -8021,7 +8021,7 @@ function _l(o, e, t, i, a, r) {
|
|
|
8021
8021
|
_: 1
|
|
8022
8022
|
}, 8, ["text"])
|
|
8023
8023
|
], 4),
|
|
8024
|
-
a.showForm ? (y(), U(
|
|
8024
|
+
a.showForm ? (y(), U(M, {
|
|
8025
8025
|
key: 0,
|
|
8026
8026
|
class: "spot-form-card",
|
|
8027
8027
|
style: ae({ top: t.top + 174 + "px", right: a.right + 50 + "px" })
|
|
@@ -8052,21 +8052,21 @@ function _l(o, e, t, i, a, r) {
|
|
|
8052
8052
|
_: 1,
|
|
8053
8053
|
__: [10]
|
|
8054
8054
|
}),
|
|
8055
|
-
h(
|
|
8055
|
+
h(u),
|
|
8056
8056
|
h(B, { class: "text-body-1 py-1" }, {
|
|
8057
8057
|
default: g(() => [
|
|
8058
8058
|
h(L, {
|
|
8059
8059
|
ref: "spotForm",
|
|
8060
8060
|
autocomplete: "off",
|
|
8061
8061
|
class: "form-box",
|
|
8062
|
-
onSubmit:
|
|
8062
|
+
onSubmit: la(r.submitForm, ["prevent"])
|
|
8063
8063
|
}, {
|
|
8064
8064
|
default: g(() => [
|
|
8065
|
-
l("div",
|
|
8066
|
-
(y(), T("svg",
|
|
8065
|
+
l("div", Ml, [
|
|
8066
|
+
(y(), T("svg", Tl, [
|
|
8067
8067
|
l("use", {
|
|
8068
8068
|
"xlink:href": `#icon-lng-${t.theme}`
|
|
8069
|
-
}, null, 8,
|
|
8069
|
+
}, null, 8, Al)
|
|
8070
8070
|
])),
|
|
8071
8071
|
e[11] || (e[11] = l("div", null, "Lng", -1))
|
|
8072
8072
|
]),
|
|
@@ -8077,7 +8077,7 @@ function _l(o, e, t, i, a, r) {
|
|
|
8077
8077
|
class: "pa-0 d-flex"
|
|
8078
8078
|
}, {
|
|
8079
8079
|
default: g(() => [
|
|
8080
|
-
h(
|
|
8080
|
+
h(p, {
|
|
8081
8081
|
modelValue: a.form.lngDegree,
|
|
8082
8082
|
"onUpdate:modelValue": e[0] || (e[0] = (_) => a.form.lngDegree = _),
|
|
8083
8083
|
rules: a.formRules.lngDegree,
|
|
@@ -8096,7 +8096,7 @@ function _l(o, e, t, i, a, r) {
|
|
|
8096
8096
|
class: "pa-0 d-flex"
|
|
8097
8097
|
}, {
|
|
8098
8098
|
default: g(() => [
|
|
8099
|
-
h(
|
|
8099
|
+
h(p, {
|
|
8100
8100
|
modelValue: a.form.lngMinute,
|
|
8101
8101
|
"onUpdate:modelValue": e[1] || (e[1] = (_) => a.form.lngMinute = _),
|
|
8102
8102
|
rules: a.formRules.lngMinute,
|
|
@@ -8137,11 +8137,11 @@ function _l(o, e, t, i, a, r) {
|
|
|
8137
8137
|
]),
|
|
8138
8138
|
_: 1
|
|
8139
8139
|
}),
|
|
8140
|
-
l("div",
|
|
8141
|
-
(y(), T("svg",
|
|
8140
|
+
l("div", Il, [
|
|
8141
|
+
(y(), T("svg", Rl, [
|
|
8142
8142
|
l("use", {
|
|
8143
8143
|
"xlink:href": `#icon-lng-${t.theme}`
|
|
8144
|
-
}, null, 8,
|
|
8144
|
+
}, null, 8, Dl)
|
|
8145
8145
|
])),
|
|
8146
8146
|
e[14] || (e[14] = l("div", null, "Lat", -1))
|
|
8147
8147
|
]),
|
|
@@ -8152,7 +8152,7 @@ function _l(o, e, t, i, a, r) {
|
|
|
8152
8152
|
class: "pa-0 d-flex"
|
|
8153
8153
|
}, {
|
|
8154
8154
|
default: g(() => [
|
|
8155
|
-
h(
|
|
8155
|
+
h(p, {
|
|
8156
8156
|
modelValue: a.form.latDegree,
|
|
8157
8157
|
"onUpdate:modelValue": e[3] || (e[3] = (_) => a.form.latDegree = _),
|
|
8158
8158
|
rules: a.formRules.latDegree,
|
|
@@ -8174,7 +8174,7 @@ function _l(o, e, t, i, a, r) {
|
|
|
8174
8174
|
class: "pa-0 d-flex"
|
|
8175
8175
|
}, {
|
|
8176
8176
|
default: g(() => [
|
|
8177
|
-
h(
|
|
8177
|
+
h(p, {
|
|
8178
8178
|
modelValue: a.form.latMinute,
|
|
8179
8179
|
"onUpdate:modelValue": e[4] || (e[4] = (_) => a.form.latMinute = _),
|
|
8180
8180
|
rules: a.formRules.latMinute,
|
|
@@ -8215,11 +8215,11 @@ function _l(o, e, t, i, a, r) {
|
|
|
8215
8215
|
]),
|
|
8216
8216
|
_: 1
|
|
8217
8217
|
}),
|
|
8218
|
-
l("div",
|
|
8219
|
-
(y(), T("svg",
|
|
8218
|
+
l("div", Ol, [
|
|
8219
|
+
(y(), T("svg", Bl, [
|
|
8220
8220
|
l("use", {
|
|
8221
8221
|
"xlink:href": `#icon-a-DateTime-${t.theme}`
|
|
8222
|
-
}, null, 8,
|
|
8222
|
+
}, null, 8, El)
|
|
8223
8223
|
])),
|
|
8224
8224
|
e[17] || (e[17] = l("div", null, "Date Time", -1))
|
|
8225
8225
|
]),
|
|
@@ -8230,7 +8230,7 @@ function _l(o, e, t, i, a, r) {
|
|
|
8230
8230
|
class: "pa-0"
|
|
8231
8231
|
}, {
|
|
8232
8232
|
default: g(() => [
|
|
8233
|
-
h(v,
|
|
8233
|
+
h(v, E({
|
|
8234
8234
|
"date-time": a.form.dateTime,
|
|
8235
8235
|
"time-zone": t.timeZone
|
|
8236
8236
|
}, o.$attrs, {
|
|
@@ -8242,11 +8242,11 @@ function _l(o, e, t, i, a, r) {
|
|
|
8242
8242
|
]),
|
|
8243
8243
|
_: 1
|
|
8244
8244
|
}),
|
|
8245
|
-
l("div",
|
|
8246
|
-
(y(), T("svg",
|
|
8245
|
+
l("div", jl, [
|
|
8246
|
+
(y(), T("svg", Fl, [
|
|
8247
8247
|
l("use", {
|
|
8248
8248
|
"xlink:href": `#icon-a-ForecastModel-${t.theme}`
|
|
8249
|
-
}, null, 8,
|
|
8249
|
+
}, null, 8, Nl)
|
|
8250
8250
|
])),
|
|
8251
8251
|
e[18] || (e[18] = l("div", null, "Forecast Model", -1))
|
|
8252
8252
|
]),
|
|
@@ -8304,8 +8304,8 @@ function _l(o, e, t, i, a, r) {
|
|
|
8304
8304
|
]),
|
|
8305
8305
|
_: 1
|
|
8306
8306
|
}),
|
|
8307
|
-
h(
|
|
8308
|
-
h(
|
|
8307
|
+
h(u),
|
|
8308
|
+
h(S, { class: "d-flex justify-end align-center ga-4" }, {
|
|
8309
8309
|
default: g(() => [
|
|
8310
8310
|
h(s, {
|
|
8311
8311
|
size: "small",
|
|
@@ -8345,7 +8345,7 @@ function _l(o, e, t, i, a, r) {
|
|
|
8345
8345
|
]),
|
|
8346
8346
|
_: 1
|
|
8347
8347
|
}, 8, ["style"])) : F("", !0),
|
|
8348
|
-
eo(h(
|
|
8348
|
+
eo(h(M, {
|
|
8349
8349
|
id: "idm-gl4-spot-meteo",
|
|
8350
8350
|
class: "spot-meteo",
|
|
8351
8351
|
style: { width: "490px", "z-index": "9" }
|
|
@@ -8355,9 +8355,9 @@ function _l(o, e, t, i, a, r) {
|
|
|
8355
8355
|
default: g(() => {
|
|
8356
8356
|
var _, z;
|
|
8357
8357
|
return [
|
|
8358
|
-
l("div",
|
|
8358
|
+
l("div", Hl, [
|
|
8359
8359
|
e[23] || (e[23] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
8360
|
-
l("div",
|
|
8360
|
+
l("div", Gl, w(r.computeLat((_ = a.currentHourData) == null ? void 0 : _.lat)) + "," + w(r.computeLng((z = a.currentHourData) == null ? void 0 : z.lng)), 1)
|
|
8361
8361
|
]),
|
|
8362
8362
|
h(s, {
|
|
8363
8363
|
icon: "",
|
|
@@ -8379,7 +8379,7 @@ function _l(o, e, t, i, a, r) {
|
|
|
8379
8379
|
}),
|
|
8380
8380
|
_: 1
|
|
8381
8381
|
}),
|
|
8382
|
-
h(
|
|
8382
|
+
h(u),
|
|
8383
8383
|
h(B, { class: "text-body-1 ml-n8" }, {
|
|
8384
8384
|
default: g(() => [
|
|
8385
8385
|
h(f, null, {
|
|
@@ -8568,8 +8568,8 @@ function _l(o, e, t, i, a, r) {
|
|
|
8568
8568
|
]),
|
|
8569
8569
|
_: 1
|
|
8570
8570
|
}),
|
|
8571
|
-
h(
|
|
8572
|
-
h(
|
|
8571
|
+
h(u),
|
|
8572
|
+
h(S, { class: "d-flex justify-space-between align-center" }, {
|
|
8573
8573
|
default: g(() => [
|
|
8574
8574
|
h(s, {
|
|
8575
8575
|
variant: "text",
|
|
@@ -8608,8 +8608,8 @@ function _l(o, e, t, i, a, r) {
|
|
|
8608
8608
|
])
|
|
8609
8609
|
]);
|
|
8610
8610
|
}
|
|
8611
|
-
const
|
|
8612
|
-
const
|
|
8611
|
+
const Ul = /* @__PURE__ */ q(Cl, [["render", Wl]]);
|
|
8612
|
+
const Vl = {
|
|
8613
8613
|
name: "IdmMeasure",
|
|
8614
8614
|
props: {
|
|
8615
8615
|
map: {
|
|
@@ -8625,7 +8625,7 @@ const zl = {
|
|
|
8625
8625
|
}
|
|
8626
8626
|
},
|
|
8627
8627
|
setup() {
|
|
8628
|
-
return { theme:
|
|
8628
|
+
return { theme: ma() };
|
|
8629
8629
|
},
|
|
8630
8630
|
data() {
|
|
8631
8631
|
return {
|
|
@@ -8665,7 +8665,7 @@ const zl = {
|
|
|
8665
8665
|
else {
|
|
8666
8666
|
(o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (t = this.map) == null || t.off("dblclick", this.handleDblClick), this.map && (this.map.getCanvas().style.cursor = "grab");
|
|
8667
8667
|
let i = this.geojson.find((a) => !a.closed);
|
|
8668
|
-
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i =
|
|
8668
|
+
i && this.handleClear(i, !0), this.geojson = this.geojson.filter((a) => !!a.closed), i = j.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
|
|
8669
8669
|
}
|
|
8670
8670
|
},
|
|
8671
8671
|
immediate: !0
|
|
@@ -8699,7 +8699,7 @@ const zl = {
|
|
|
8699
8699
|
}
|
|
8700
8700
|
},
|
|
8701
8701
|
handleDrag(o) {
|
|
8702
|
-
var t, i, a, r, s, c, n,
|
|
8702
|
+
var t, i, a, r, s, c, n, u, p, m;
|
|
8703
8703
|
const e = (i = (t = o.target) == null ? void 0 : t._element) == null ? void 0 : i.id;
|
|
8704
8704
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8705
8705
|
const f = this.geojson.filter((L) => L.id === e.split("-")[0])[0];
|
|
@@ -8714,26 +8714,26 @@ const zl = {
|
|
|
8714
8714
|
return;
|
|
8715
8715
|
}
|
|
8716
8716
|
});
|
|
8717
|
-
const
|
|
8717
|
+
const S = f.features.filter((L) => L.geometry.type === "Point");
|
|
8718
8718
|
this.handleTmpPointUpdate(
|
|
8719
8719
|
f,
|
|
8720
|
-
|
|
8721
|
-
{ lng: (
|
|
8722
|
-
b ===
|
|
8720
|
+
S[b - 1],
|
|
8721
|
+
{ lng: (u = (n = o.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, lat: (m = (p = o.target) == null ? void 0 : p._lngLat) == null ? void 0 : m.lat, properties: S[b].properties },
|
|
8722
|
+
b === S.length - 1 ? void 0 : S[b + 1]
|
|
8723
8723
|
);
|
|
8724
8724
|
}
|
|
8725
8725
|
},
|
|
8726
8726
|
handleDragEnd(o) {
|
|
8727
|
-
var t, i, a, r, s, c, n,
|
|
8727
|
+
var t, i, a, r, s, c, n, u, p, m;
|
|
8728
8728
|
const e = (i = (t = o.target) == null ? void 0 : t._element) == null ? void 0 : i.id;
|
|
8729
8729
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8730
|
-
const f = this.geojson.filter((
|
|
8731
|
-
this.pointMarkers[f.id].filter((
|
|
8730
|
+
const f = this.geojson.filter((S) => S.id === e.split("-")[0])[0];
|
|
8731
|
+
this.pointMarkers[f.id].filter((S) => {
|
|
8732
8732
|
var L;
|
|
8733
|
-
return ((L =
|
|
8733
|
+
return ((L = S._element) == null ? void 0 : L.id) === e;
|
|
8734
8734
|
})[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]);
|
|
8735
|
-
const b = f.features.filter((
|
|
8736
|
-
b.geometry.coordinates = [(
|
|
8735
|
+
const b = f.features.filter((S) => S.geometry.type === "Point" && S.properties.id === e.split("-")[1])[0];
|
|
8736
|
+
b.geometry.coordinates = [(u = (n = o.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, (m = (p = o.target) == null ? void 0 : p._lngLat) == null ? void 0 : m.lat], f.features = f.features.filter((S) => S.geometry.type === "Point"), this.handlePointUpdate(f);
|
|
8737
8737
|
}
|
|
8738
8738
|
},
|
|
8739
8739
|
handleContextmenu(o) {
|
|
@@ -8742,9 +8742,9 @@ const zl = {
|
|
|
8742
8742
|
const e = (r = (a = (i = o.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
|
|
8743
8743
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8744
8744
|
const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
|
|
8745
|
-
if (c.length > 2 && c.filter((
|
|
8746
|
-
const
|
|
8747
|
-
|
|
8745
|
+
if (c.length > 2 && c.filter((u) => u.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
8746
|
+
const u = document.createElement("div");
|
|
8747
|
+
u.className = "idm-gl4-measure-contextmenu-marker", u.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ke.Marker(u).setOffset([24, 0]).setLngLat([o.lngLat.lng, o.lngLat.lat]).addTo(this.map);
|
|
8748
8748
|
}
|
|
8749
8749
|
}
|
|
8750
8750
|
},
|
|
@@ -8753,15 +8753,15 @@ const zl = {
|
|
|
8753
8753
|
(t = this.contextmenu) == null || t.remove();
|
|
8754
8754
|
const e = o.originalEvent.target.className;
|
|
8755
8755
|
if (e === "marker-close") {
|
|
8756
|
-
const n = (a = (i = o.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id,
|
|
8757
|
-
|
|
8756
|
+
const n = (a = (i = o.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, u = this.geojson.filter((p) => p.id === n)[0];
|
|
8757
|
+
u && this.handleClear(u, !0), this.geojson = this.geojson.filter((p) => p.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((p) => p.closed)) && this.handleUnbind();
|
|
8758
8758
|
} else if (e === "del-point") {
|
|
8759
|
-
const n = (c = (s = o.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : c.split("-"),
|
|
8760
|
-
|
|
8759
|
+
const n = (c = (s = o.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : c.split("-"), u = this.geojson.filter((p) => p.id === n[0])[0];
|
|
8760
|
+
u.features = u.features.filter((p) => p.geometry.type === "Point" && p.properties.id !== n[1]), this.handlePointUpdate(u);
|
|
8761
8761
|
} else if (e !== "marker-label" && this.toggle) {
|
|
8762
8762
|
let n = this.geojson.at(-1);
|
|
8763
|
-
n || (n =
|
|
8764
|
-
const
|
|
8763
|
+
n || (n = j.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((p) => p.geometry.type === "Point");
|
|
8764
|
+
const u = j.feature(
|
|
8765
8765
|
{
|
|
8766
8766
|
type: "Point",
|
|
8767
8767
|
coordinates: [o.lngLat.lng, o.lngLat.lat]
|
|
@@ -8772,7 +8772,7 @@ const zl = {
|
|
|
8772
8772
|
sumLabel: "Start"
|
|
8773
8773
|
}
|
|
8774
8774
|
);
|
|
8775
|
-
n.features.push(
|
|
8775
|
+
n.features.push(u), this.handlePointUpdate(n);
|
|
8776
8776
|
}
|
|
8777
8777
|
},
|
|
8778
8778
|
handlePointUpdate(o) {
|
|
@@ -8781,36 +8781,36 @@ const zl = {
|
|
|
8781
8781
|
let t = 0;
|
|
8782
8782
|
const i = [];
|
|
8783
8783
|
for (let a = 1; a < e.length; a++) {
|
|
8784
|
-
const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] },
|
|
8785
|
-
t = oe.roundPrecision(t +
|
|
8784
|
+
const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, u = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(n, u, c.mode === "RL", 4), m = Fe.calculateBearing(n, u, c.mode === "RL", 2);
|
|
8785
|
+
t = oe.roundPrecision(t + p, 4);
|
|
8786
8786
|
let f;
|
|
8787
|
-
c.mode === "RL" ? f = oe.convertToMonotonicLng([n,
|
|
8788
|
-
const v =
|
|
8789
|
-
v.properties.dist =
|
|
8787
|
+
c.mode === "RL" ? f = oe.convertToMonotonicLng([n, u]) : f = oe.convertToMonotonicLng(Fe.interpolateCoordinates(n, u, 200));
|
|
8788
|
+
const v = j.lineString(f.map((S) => [S.lng, S.lat]));
|
|
8789
|
+
v.properties.dist = p, v.properties.bearing = m, v.properties.total = t, v.properties.name = "Line " + this.currentLineIndex, i.push(v);
|
|
8790
8790
|
const b = e[a];
|
|
8791
|
-
b.properties.totalDist = oe.roundPrecision((c.totalDist ? c.totalDist : 0) +
|
|
8791
|
+
b.properties.totalDist = oe.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), b.properties.sumLabel = b.properties.totalDist + " nm";
|
|
8792
8792
|
}
|
|
8793
8793
|
e.push(...i), o.total = t;
|
|
8794
8794
|
}
|
|
8795
8795
|
return this.handleRender(o), o;
|
|
8796
8796
|
},
|
|
8797
8797
|
handleTmpPointUpdate(o, e, t, i) {
|
|
8798
|
-
const a =
|
|
8798
|
+
const a = j.featureCollection([]);
|
|
8799
8799
|
let r, s;
|
|
8800
8800
|
if (e) {
|
|
8801
|
-
const n = e.properties,
|
|
8802
|
-
r = Fe.calculateDistance(
|
|
8801
|
+
const n = e.properties, u = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: t.lng, lat: t.lat };
|
|
8802
|
+
r = Fe.calculateDistance(u, p, n.mode === "RL", 4), s = Fe.calculateBearing(u, p, n.mode === "RL", 2);
|
|
8803
8803
|
let m;
|
|
8804
|
-
n.mode === "RL" ? m = oe.convertToMonotonicLng([
|
|
8805
|
-
const f =
|
|
8804
|
+
n.mode === "RL" ? m = oe.convertToMonotonicLng([u, p]) : m = oe.convertToMonotonicLng(Fe.interpolateCoordinates(u, p, 200));
|
|
8805
|
+
const f = j.lineString(m.map((v) => [v.lng, v.lat]));
|
|
8806
8806
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
8807
8807
|
}
|
|
8808
8808
|
if (i) {
|
|
8809
|
-
const n = t.properties,
|
|
8810
|
-
r = Fe.calculateDistance(
|
|
8809
|
+
const n = t.properties, u = t, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
8810
|
+
r = Fe.calculateDistance(u, p, n.mode === "RL", 4), s = Fe.calculateBearing(u, p, n.mode === "RL", 2);
|
|
8811
8811
|
let m;
|
|
8812
|
-
n.mode === "RL" ? m = oe.convertToMonotonicLng([
|
|
8813
|
-
const f =
|
|
8812
|
+
n.mode === "RL" ? m = oe.convertToMonotonicLng([u, p]) : m = oe.convertToMonotonicLng(Fe.interpolateCoordinates(u, p, 200));
|
|
8813
|
+
const f = j.lineString(m.map((v) => [v.lng, v.lat]));
|
|
8814
8814
|
f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
|
|
8815
8815
|
}
|
|
8816
8816
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
@@ -8872,14 +8872,14 @@ const zl = {
|
|
|
8872
8872
|
handleMove(o) {
|
|
8873
8873
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
8874
8874
|
let e = this.geojson.at(-1);
|
|
8875
|
-
e || (e =
|
|
8875
|
+
e || (e = j.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
8876
8876
|
const t = e.features.filter((i) => i.geometry.type === "Point");
|
|
8877
8877
|
t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: o.lngLat.lng, lat: o.lngLat.lat });
|
|
8878
8878
|
},
|
|
8879
8879
|
handleDblClick(o) {
|
|
8880
8880
|
o.preventDefault();
|
|
8881
8881
|
let e = this.geojson.at(-1);
|
|
8882
|
-
e.closed = !0, this.handleRender(e), e =
|
|
8882
|
+
e.closed = !0, this.handleRender(e), e = j.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
|
|
8883
8883
|
},
|
|
8884
8884
|
handleRender(o) {
|
|
8885
8885
|
var e;
|
|
@@ -8942,27 +8942,27 @@ const zl = {
|
|
|
8942
8942
|
for (const c of s) {
|
|
8943
8943
|
const n = document.createElement("div");
|
|
8944
8944
|
n.id = `${o.id}-${c.properties.id}`, n.className = `${o.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
|
|
8945
|
-
const
|
|
8946
|
-
|
|
8945
|
+
const u = new ke.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
8946
|
+
u.on("drag", this.handleDrag), u.on("dragend", this.handleDragEnd), this.pointMarkers[o.id] ? this.pointMarkers[o.id].push(u) : this.pointMarkers[o.id] = [u];
|
|
8947
8947
|
}
|
|
8948
8948
|
if (o.closed) {
|
|
8949
|
-
const c = s.at(-1),
|
|
8950
|
-
|
|
8949
|
+
const c = s.at(-1), u = o.features.filter((m) => m.geometry.type === "LineString").at(-1), p = document.createElement("div");
|
|
8950
|
+
p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${o.id}" class="marker-close">×</div><div class="marker-label">${u.properties.name}</div>`, this.closeMarkers[o.id] = new ke.Marker(p).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
8951
8951
|
}
|
|
8952
8952
|
}
|
|
8953
8953
|
},
|
|
8954
8954
|
handleClear(o, e = !0) {
|
|
8955
|
-
var s, c, n,
|
|
8955
|
+
var s, c, n, u, p, m, f, v, b, S;
|
|
8956
8956
|
const t = `${o.id}-${this.source}`, i = `${o.id}-${this.layer}`, a = `${o.id}-${this.labelLayer}`, r = `${o.id}-${this.sumLayer}`;
|
|
8957
|
-
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (
|
|
8957
|
+
(s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (u = this.map) != null && u.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (m = this.closeMarkers[o.id]) == null || m.remove(), this.closeMarkers[o.id] = void 0, (f = this.pointMarkers[o.id]) == null || f.forEach((L) => {
|
|
8958
8958
|
L == null || L.remove();
|
|
8959
|
-
}), this.pointMarkers[o.id] = [], (v = this.tipMarker) == null || v.remove(), this.tipMarker = void 0, e && ((b = this.map) != null && b.getSource(t)) && this.map.removeSource(t), e && ((
|
|
8959
|
+
}), this.pointMarkers[o.id] = [], (v = this.tipMarker) == null || v.remove(), this.tipMarker = void 0, e && ((b = this.map) != null && b.getSource(t)) && this.map.removeSource(t), e && ((S = this.map) != null && S.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
8960
8960
|
}
|
|
8961
8961
|
}
|
|
8962
|
-
},
|
|
8963
|
-
function
|
|
8962
|
+
}, Yl = { class: "idm-gl4-measure" };
|
|
8963
|
+
function Zl(o, e, t, i, a, r) {
|
|
8964
8964
|
const s = k("VBtn"), c = k("VTooltip");
|
|
8965
|
-
return y(), T("div",
|
|
8965
|
+
return y(), T("div", Yl, [
|
|
8966
8966
|
l("div", {
|
|
8967
8967
|
class: "menu-bar-box transition pa-1",
|
|
8968
8968
|
style: ae({ top: t.top + 214 + "px", right: a.right + "px" })
|
|
@@ -8972,7 +8972,7 @@ function Pl(o, e, t, i, a, r) {
|
|
|
8972
8972
|
location: "left"
|
|
8973
8973
|
}, {
|
|
8974
8974
|
activator: g(({ props: n }) => [
|
|
8975
|
-
h(s,
|
|
8975
|
+
h(s, E(n, {
|
|
8976
8976
|
"min-width": "32",
|
|
8977
8977
|
width: "32",
|
|
8978
8978
|
height: "32",
|
|
@@ -8991,8 +8991,8 @@ function Pl(o, e, t, i, a, r) {
|
|
|
8991
8991
|
], 4)
|
|
8992
8992
|
]);
|
|
8993
8993
|
}
|
|
8994
|
-
const
|
|
8995
|
-
const
|
|
8994
|
+
const Xl = /* @__PURE__ */ q(Vl, [["render", Zl]]);
|
|
8995
|
+
const ql = {
|
|
8996
8996
|
name: "IdmBottomBar",
|
|
8997
8997
|
components: { DateTimePicker: io },
|
|
8998
8998
|
props: {
|
|
@@ -9105,20 +9105,20 @@ const Ml = {
|
|
|
9105
9105
|
this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
|
|
9106
9106
|
}
|
|
9107
9107
|
}
|
|
9108
|
-
},
|
|
9108
|
+
}, Kl = { class: "idm-bottom-bar-gl4" }, Ql = { class: "date-box d-flex ga-2 mr-2" }, Jl = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, $l = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, es = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, ts = {
|
|
9109
9109
|
key: 0,
|
|
9110
9110
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
9111
|
-
},
|
|
9112
|
-
function
|
|
9113
|
-
const s = k("DateTimePicker"), c = k("VListItemTitle"), n = k("VListItem"),
|
|
9114
|
-
return y(), T("div",
|
|
9111
|
+
}, os = ["onClick"], as = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, is = { class: "text-body-1" };
|
|
9112
|
+
function rs(o, e, t, i, a, r) {
|
|
9113
|
+
const s = k("DateTimePicker"), c = k("VListItemTitle"), n = k("VListItem"), u = k("VList"), p = k("VMenu"), m = k("VBtn"), f = k("VDivider"), v = k("VTooltip");
|
|
9114
|
+
return y(), T("div", Kl, [
|
|
9115
9115
|
a.show ? (y(), T("div", {
|
|
9116
9116
|
key: 0,
|
|
9117
9117
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
9118
9118
|
style: ae({ right: a.right + 146 + "px" })
|
|
9119
9119
|
}, [
|
|
9120
|
-
l("div",
|
|
9121
|
-
h(s,
|
|
9120
|
+
l("div", Ql, [
|
|
9121
|
+
h(s, E({
|
|
9122
9122
|
"date-time": a.currentDateTimeZ,
|
|
9123
9123
|
"time-zone": a.timeZone,
|
|
9124
9124
|
"day-about": a.dayAbout,
|
|
@@ -9136,12 +9136,12 @@ function El(o, e, t, i, a, r) {
|
|
|
9136
9136
|
}, {
|
|
9137
9137
|
default: g(() => [
|
|
9138
9138
|
Z(w(a.intervalHour) + " h ", 1),
|
|
9139
|
-
h(
|
|
9139
|
+
h(p, { activator: "parent" }, {
|
|
9140
9140
|
default: g(() => [
|
|
9141
|
-
h(
|
|
9141
|
+
h(u, { class: "pa-1" }, {
|
|
9142
9142
|
default: g(() => [
|
|
9143
|
-
(y(!0), T(_e, null, Le(a.intervalOptions, (b,
|
|
9144
|
-
key:
|
|
9143
|
+
(y(!0), T(_e, null, Le(a.intervalOptions, (b, S) => (y(), U(n, {
|
|
9144
|
+
key: S,
|
|
9145
9145
|
value: b,
|
|
9146
9146
|
variant: a.intervalHour === b ? "tonal" : "text",
|
|
9147
9147
|
color: "primary",
|
|
@@ -9179,7 +9179,7 @@ function El(o, e, t, i, a, r) {
|
|
|
9179
9179
|
class: "mx-2 my-3",
|
|
9180
9180
|
style: { height: "16px" }
|
|
9181
9181
|
}),
|
|
9182
|
-
l("div",
|
|
9182
|
+
l("div", Jl, [
|
|
9183
9183
|
h(m, {
|
|
9184
9184
|
icon: "",
|
|
9185
9185
|
size: "small",
|
|
@@ -9252,17 +9252,17 @@ function El(o, e, t, i, a, r) {
|
|
|
9252
9252
|
class: "mx-2 my-3",
|
|
9253
9253
|
style: { height: "16px" }
|
|
9254
9254
|
}),
|
|
9255
|
-
l("div",
|
|
9255
|
+
l("div", $l, [
|
|
9256
9256
|
h(v, {
|
|
9257
9257
|
text: o.$t("weather.windBarbs"),
|
|
9258
9258
|
location: "top"
|
|
9259
9259
|
}, {
|
|
9260
9260
|
activator: g(({ props: b }) => {
|
|
9261
|
-
var
|
|
9261
|
+
var S, L;
|
|
9262
9262
|
return [
|
|
9263
|
-
h(m,
|
|
9263
|
+
h(m, E(b, {
|
|
9264
9264
|
class: "pa-1 d-flex",
|
|
9265
|
-
color: (
|
|
9265
|
+
color: (S = t.weatherCheckList) != null && S.includes("wind") ? "primary" : "",
|
|
9266
9266
|
variant: (L = t.weatherCheckList) != null && L.includes("wind") ? "elevated" : "text",
|
|
9267
9267
|
height: "24",
|
|
9268
9268
|
width: "24",
|
|
@@ -9284,11 +9284,11 @@ function El(o, e, t, i, a, r) {
|
|
|
9284
9284
|
location: "top"
|
|
9285
9285
|
}, {
|
|
9286
9286
|
activator: g(({ props: b }) => {
|
|
9287
|
-
var
|
|
9287
|
+
var S, L;
|
|
9288
9288
|
return [
|
|
9289
|
-
h(m,
|
|
9289
|
+
h(m, E(b, {
|
|
9290
9290
|
class: "pa-1 d-flex",
|
|
9291
|
-
color: (
|
|
9291
|
+
color: (S = t.weatherCheckList) != null && S.includes("sig-wave-height") ? "primary" : "",
|
|
9292
9292
|
variant: (L = t.weatherCheckList) != null && L.includes("sig-wave-height") ? "elevated" : "text",
|
|
9293
9293
|
height: "24",
|
|
9294
9294
|
width: "24",
|
|
@@ -9296,7 +9296,7 @@ function El(o, e, t, i, a, r) {
|
|
|
9296
9296
|
onClick: e[4] || (e[4] = (B) => r.handleClickFastWeather("sig-wave-height"))
|
|
9297
9297
|
}), {
|
|
9298
9298
|
default: g(() => [
|
|
9299
|
-
l("i",
|
|
9299
|
+
l("i", E(b, { class: "iconfont icon-a-WaveHeight" }), null, 16)
|
|
9300
9300
|
]),
|
|
9301
9301
|
_: 2
|
|
9302
9302
|
}, 1040, ["color", "variant"])
|
|
@@ -9309,11 +9309,11 @@ function El(o, e, t, i, a, r) {
|
|
|
9309
9309
|
location: "top"
|
|
9310
9310
|
}, {
|
|
9311
9311
|
activator: g(({ props: b }) => {
|
|
9312
|
-
var
|
|
9312
|
+
var S, L;
|
|
9313
9313
|
return [
|
|
9314
|
-
h(m,
|
|
9314
|
+
h(m, E(b, {
|
|
9315
9315
|
class: "pa-1 d-flex",
|
|
9316
|
-
color: (
|
|
9316
|
+
color: (S = t.weatherCheckList) != null && S.includes("current-direction") ? "primary" : "",
|
|
9317
9317
|
variant: (L = t.weatherCheckList) != null && L.includes("current-direction") ? "elevated" : "text",
|
|
9318
9318
|
height: "24",
|
|
9319
9319
|
width: "24",
|
|
@@ -9321,7 +9321,7 @@ function El(o, e, t, i, a, r) {
|
|
|
9321
9321
|
onClick: e[5] || (e[5] = (B) => r.handleClickFastWeather("current-direction"))
|
|
9322
9322
|
}), {
|
|
9323
9323
|
default: g(() => [
|
|
9324
|
-
l("i",
|
|
9324
|
+
l("i", E(b, { class: "iconfont icon-Current" }), null, 16)
|
|
9325
9325
|
]),
|
|
9326
9326
|
_: 2
|
|
9327
9327
|
}, 1040, ["color", "variant"])
|
|
@@ -9334,7 +9334,7 @@ function El(o, e, t, i, a, r) {
|
|
|
9334
9334
|
location: "top"
|
|
9335
9335
|
}, {
|
|
9336
9336
|
activator: g(({ props: b }) => [
|
|
9337
|
-
h(m,
|
|
9337
|
+
h(m, E(b, {
|
|
9338
9338
|
class: "pa-1 d-flex",
|
|
9339
9339
|
variant: "text",
|
|
9340
9340
|
height: "24",
|
|
@@ -9343,7 +9343,7 @@ function El(o, e, t, i, a, r) {
|
|
|
9343
9343
|
onClick: r.handleClickFastMore
|
|
9344
9344
|
}), {
|
|
9345
9345
|
default: g(() => [
|
|
9346
|
-
l("i",
|
|
9346
|
+
l("i", E(b, { class: "iconfont icon-Weather-11" }), null, 16)
|
|
9347
9347
|
]),
|
|
9348
9348
|
_: 2
|
|
9349
9349
|
}, 1040, ["onClick"])
|
|
@@ -9356,7 +9356,7 @@ function El(o, e, t, i, a, r) {
|
|
|
9356
9356
|
class: "mx-2 mr-3 my-3",
|
|
9357
9357
|
style: { height: "16px" }
|
|
9358
9358
|
}),
|
|
9359
|
-
l("div",
|
|
9359
|
+
l("div", es, [
|
|
9360
9360
|
h(m, {
|
|
9361
9361
|
text: "",
|
|
9362
9362
|
height: "30",
|
|
@@ -9389,14 +9389,14 @@ function El(o, e, t, i, a, r) {
|
|
|
9389
9389
|
class: "timezone-box d-flex flex-column justify-space-between align-end",
|
|
9390
9390
|
style: ae({ right: a.right + "px" })
|
|
9391
9391
|
}, [
|
|
9392
|
-
a.showTimezone ? (y(), T("div",
|
|
9392
|
+
a.showTimezone ? (y(), T("div", ts, [
|
|
9393
9393
|
(y(!0), T(_e, null, Le(a.offsets, (b) => (y(), T("div", {
|
|
9394
9394
|
key: b,
|
|
9395
9395
|
class: "item rounded text-body-2 hover-active",
|
|
9396
|
-
onClick: (
|
|
9397
|
-
}, w(b < 0 ? b : "+" + b), 9,
|
|
9396
|
+
onClick: (S) => a.timeZone = b
|
|
9397
|
+
}, w(b < 0 ? b : "+" + b), 9, os))), 128))
|
|
9398
9398
|
])) : F("", !0),
|
|
9399
|
-
l("div",
|
|
9399
|
+
l("div", as, [
|
|
9400
9400
|
h(m, {
|
|
9401
9401
|
text: "",
|
|
9402
9402
|
variant: "flat",
|
|
@@ -9410,20 +9410,20 @@ function El(o, e, t, i, a, r) {
|
|
|
9410
9410
|
]),
|
|
9411
9411
|
_: 1
|
|
9412
9412
|
}),
|
|
9413
|
-
l("span",
|
|
9413
|
+
l("span", is, w(a.currentRealTime), 1)
|
|
9414
9414
|
])
|
|
9415
9415
|
], 4)
|
|
9416
9416
|
]);
|
|
9417
9417
|
}
|
|
9418
|
-
const
|
|
9418
|
+
const ls = /* @__PURE__ */ q(ql, [["render", rs]]), ss = {
|
|
9419
9419
|
name: "IdmGL4",
|
|
9420
9420
|
components: {
|
|
9421
|
-
IdmOtherLayer:
|
|
9422
|
-
IdmWeatherLayer:
|
|
9423
|
-
IdmTropicals:
|
|
9424
|
-
IdmMeasure:
|
|
9425
|
-
IdmSpot:
|
|
9426
|
-
IdmBottomBar:
|
|
9421
|
+
IdmOtherLayer: xi,
|
|
9422
|
+
IdmWeatherLayer: rl,
|
|
9423
|
+
IdmTropicals: aa,
|
|
9424
|
+
IdmMeasure: Xl,
|
|
9425
|
+
IdmSpot: Ul,
|
|
9426
|
+
IdmBottomBar: ls
|
|
9427
9427
|
},
|
|
9428
9428
|
props: {
|
|
9429
9429
|
map: {
|
|
@@ -9455,14 +9455,14 @@ const Fl = /* @__PURE__ */ q(Ml, [["render", El]]), Nl = {
|
|
|
9455
9455
|
mounted() {
|
|
9456
9456
|
},
|
|
9457
9457
|
methods: {}
|
|
9458
|
-
},
|
|
9458
|
+
}, ns = {
|
|
9459
9459
|
ref: "mapHomeGl4",
|
|
9460
9460
|
class: "map-gl4-home"
|
|
9461
9461
|
};
|
|
9462
|
-
function
|
|
9463
|
-
const s = k("IdmOtherLayer"), c = k("IdmWeatherLayer"), n = k("IdmTropicals"),
|
|
9464
|
-
return y(), T("div",
|
|
9465
|
-
h(s,
|
|
9462
|
+
function cs(o, e, t, i, a, r) {
|
|
9463
|
+
const s = k("IdmOtherLayer"), c = k("IdmWeatherLayer"), n = k("IdmTropicals"), u = k("IdmMeasure"), p = k("IdmSpot"), m = k("IdmBottomBar");
|
|
9464
|
+
return y(), T("div", ns, [
|
|
9465
|
+
h(s, E({
|
|
9466
9466
|
ref: "idmOtherLayers",
|
|
9467
9467
|
token: t.token,
|
|
9468
9468
|
defaultMeteoToken: a.defaultMeteoToken,
|
|
@@ -9473,7 +9473,7 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9473
9473
|
assistGateway: a.assistGateway,
|
|
9474
9474
|
forecastModel: t.forecastModel
|
|
9475
9475
|
}, o.$attrs), null, 16, ["token", "defaultMeteoToken", "map", "realTime", "gateway", "assistGateway", "forecastModel"]),
|
|
9476
|
-
h(c,
|
|
9476
|
+
h(c, E({
|
|
9477
9477
|
ref: "idmWeatherLayers",
|
|
9478
9478
|
map: t.map,
|
|
9479
9479
|
"before-layer": "empty-layer-2",
|
|
@@ -9485,7 +9485,7 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9485
9485
|
"forecast-model": t.forecastModel,
|
|
9486
9486
|
onWeatherCheckList: e[0] || (e[0] = (f) => a.weatherCheckList = f)
|
|
9487
9487
|
}, o.$attrs), null, 16, ["map", "realTime", "token", "defaultMeteoToken", "gateway", "assistGateway", "forecast-model"]),
|
|
9488
|
-
h(n,
|
|
9488
|
+
h(n, E({
|
|
9489
9489
|
map: t.map,
|
|
9490
9490
|
token: t.token,
|
|
9491
9491
|
defaultMeteoToken: a.defaultMeteoToken,
|
|
@@ -9496,8 +9496,8 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9496
9496
|
assistGateway: a.assistGateway,
|
|
9497
9497
|
"forecast-model": t.forecastModel
|
|
9498
9498
|
}, o.$attrs), null, 16, ["map", "token", "defaultMeteoToken", "tropicals", "realTime", "gateway", "assistGateway", "forecast-model"]),
|
|
9499
|
-
h(
|
|
9500
|
-
h(
|
|
9499
|
+
h(u, E({ map: t.map }, o.$attrs), null, 16, ["map"]),
|
|
9500
|
+
h(p, E({
|
|
9501
9501
|
ref: "idmSpot",
|
|
9502
9502
|
map: t.map,
|
|
9503
9503
|
realTime: a.realTime,
|
|
@@ -9505,7 +9505,7 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9505
9505
|
gateway: a.gateway,
|
|
9506
9506
|
"forecast-model": t.forecastModel
|
|
9507
9507
|
}, o.$attrs), null, 16, ["map", "realTime", "token", "gateway", "forecast-model"]),
|
|
9508
|
-
h(m,
|
|
9508
|
+
h(m, E({
|
|
9509
9509
|
ref: "idmBottomBar",
|
|
9510
9510
|
"forecast-model": t.forecastModel,
|
|
9511
9511
|
weatherCheckList: a.weatherCheckList,
|
|
@@ -9513,8 +9513,8 @@ function Wl(o, e, t, i, a, r) {
|
|
|
9513
9513
|
}, o.$attrs), null, 16, ["forecast-model", "weatherCheckList"])
|
|
9514
9514
|
], 512);
|
|
9515
9515
|
}
|
|
9516
|
-
const
|
|
9517
|
-
class
|
|
9516
|
+
const ms = /* @__PURE__ */ q(ss, [["render", cs]]);
|
|
9517
|
+
class hs {
|
|
9518
9518
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
9519
9519
|
re(this, "originStyle");
|
|
9520
9520
|
re(this, "mapboxStyle");
|
|
@@ -9522,7 +9522,7 @@ class Ul {
|
|
|
9522
9522
|
re(this, "hi");
|
|
9523
9523
|
re(this, "td");
|
|
9524
9524
|
re(this, "windy");
|
|
9525
|
-
var t, i, a, r, s, c, n,
|
|
9525
|
+
var t, i, a, r, s, c, n, u, p, m, f, v, b, S, L, B, M, P, _, z, C, x, A, G, X, V, Y, $, ee, Q, ne, he, de, ce, K, I, le, ge, fe, we, xe, Se, Me, Te, Ae, Ie, be, H, te, Ee, Pe, me, pe, N, ve, J, ie, Re, D, ue, Ce, De, Oe, R, W, He, Ge, We, ze, Ue, Ve, Ye, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, bt, yt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, At, It, Rt, Dt, Ot, Bt, Et, jt, Ft, Nt, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, ro, lo, so, no, co, mo, ho, po, uo, go, fo, bo, yo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Ao, Io, Ro, Do, Oo, Bo, Eo, jo, Fo, No, Ho, Go, Wo, Uo, Vo, Yo, Zo, Xo, qo, Ko, Qo, Jo, $o;
|
|
9526
9526
|
this.i4 = {
|
|
9527
9527
|
source: {
|
|
9528
9528
|
type: "raster",
|
|
@@ -9542,7 +9542,7 @@ class Ul {
|
|
|
9542
9542
|
id: "i4",
|
|
9543
9543
|
type: "raster",
|
|
9544
9544
|
source: "i4",
|
|
9545
|
-
minzoom:
|
|
9545
|
+
minzoom: 1,
|
|
9546
9546
|
maxzoom: 12,
|
|
9547
9547
|
layout: {
|
|
9548
9548
|
visibility: "visible"
|
|
@@ -9563,7 +9563,7 @@ class Ul {
|
|
|
9563
9563
|
id: "hi",
|
|
9564
9564
|
type: "raster",
|
|
9565
9565
|
source: "hi",
|
|
9566
|
-
minZoom:
|
|
9566
|
+
minZoom: 1,
|
|
9567
9567
|
maxZoom: 12,
|
|
9568
9568
|
layout: {
|
|
9569
9569
|
visibility: "visible"
|
|
@@ -9675,7 +9675,7 @@ class Ul {
|
|
|
9675
9675
|
},
|
|
9676
9676
|
sources: {
|
|
9677
9677
|
composite: {
|
|
9678
|
-
url: "mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2,mapbox.country-boundaries-v1,neatchenheng.d44z21eg,neatchenheng.82kqbc1q,neatchenheng.a4ifbysm,neatchenheng.27issko0",
|
|
9678
|
+
url: "mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2,mapbox.country-boundaries-v1,neatchenheng.d44z21eg,neatchenheng.82kqbc1q,neatchenheng.a4ifbysm,neatchenheng.27issko0,neatchenheng.9uwc9x7l",
|
|
9679
9679
|
type: "vector"
|
|
9680
9680
|
}
|
|
9681
9681
|
},
|
|
@@ -10973,6 +10973,34 @@ class Ul {
|
|
|
10973
10973
|
"text-size": 12,
|
|
10974
10974
|
visibility: "none"
|
|
10975
10975
|
}
|
|
10976
|
+
},
|
|
10977
|
+
{
|
|
10978
|
+
id: "ice-area-fill",
|
|
10979
|
+
minzoom: 0,
|
|
10980
|
+
maxzoom: 22,
|
|
10981
|
+
type: "fill",
|
|
10982
|
+
paint: {
|
|
10983
|
+
"fill-color": "rgba(105, 235, 252, 0.7)"
|
|
10984
|
+
},
|
|
10985
|
+
source: "composite",
|
|
10986
|
+
"source-layer": "ICE_AREA-6oqazd",
|
|
10987
|
+
layout: {
|
|
10988
|
+
visibility: "none"
|
|
10989
|
+
}
|
|
10990
|
+
},
|
|
10991
|
+
{
|
|
10992
|
+
id: "ice-area-line",
|
|
10993
|
+
minzoom: 0,
|
|
10994
|
+
maxzoom: 22,
|
|
10995
|
+
type: "line",
|
|
10996
|
+
paint: {
|
|
10997
|
+
"line-color": "rgb(16, 206, 244)"
|
|
10998
|
+
},
|
|
10999
|
+
layout: {
|
|
11000
|
+
visibility: "none"
|
|
11001
|
+
},
|
|
11002
|
+
source: "composite",
|
|
11003
|
+
"source-layer": "ICE_AREA-6oqazd"
|
|
10976
11004
|
}
|
|
10977
11005
|
],
|
|
10978
11006
|
created: "2025-07-18T03:20:31.079Z",
|
|
@@ -10985,7 +11013,7 @@ class Ul {
|
|
|
10985
11013
|
},
|
|
10986
11014
|
dark: {
|
|
10987
11015
|
version: 8,
|
|
10988
|
-
name: "
|
|
11016
|
+
name: "dark",
|
|
10989
11017
|
metadata: {
|
|
10990
11018
|
"mapbox:print": {
|
|
10991
11019
|
width: 8.5,
|
|
@@ -11088,7 +11116,7 @@ class Ul {
|
|
|
11088
11116
|
},
|
|
11089
11117
|
sources: {
|
|
11090
11118
|
composite: {
|
|
11091
|
-
url: "mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2,mapbox.country-boundaries-v1,neatchenheng.d44z21eg,neatchenheng.82kqbc1q,neatchenheng.a4ifbysm,neatchenheng.27issko0",
|
|
11119
|
+
url: "mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2,mapbox.country-boundaries-v1,neatchenheng.d44z21eg,neatchenheng.82kqbc1q,neatchenheng.a4ifbysm,neatchenheng.27issko0,neatchenheng.9uwc9x7l",
|
|
11092
11120
|
type: "vector"
|
|
11093
11121
|
}
|
|
11094
11122
|
},
|
|
@@ -12373,6 +12401,34 @@ class Ul {
|
|
|
12373
12401
|
"text-size": 12,
|
|
12374
12402
|
visibility: "none"
|
|
12375
12403
|
}
|
|
12404
|
+
},
|
|
12405
|
+
{
|
|
12406
|
+
id: "ice-area-fill",
|
|
12407
|
+
minzoom: 0,
|
|
12408
|
+
maxzoom: 22,
|
|
12409
|
+
type: "fill",
|
|
12410
|
+
paint: {
|
|
12411
|
+
"fill-color": "rgba(105, 235, 252, 0.5)"
|
|
12412
|
+
},
|
|
12413
|
+
source: "composite",
|
|
12414
|
+
"source-layer": "ICE_AREA-6oqazd",
|
|
12415
|
+
layout: {
|
|
12416
|
+
visibility: "none"
|
|
12417
|
+
}
|
|
12418
|
+
},
|
|
12419
|
+
{
|
|
12420
|
+
id: "ice-area-line",
|
|
12421
|
+
minzoom: 0,
|
|
12422
|
+
maxzoom: 22,
|
|
12423
|
+
type: "line",
|
|
12424
|
+
paint: {
|
|
12425
|
+
"line-color": "rgb(16, 206, 244)"
|
|
12426
|
+
},
|
|
12427
|
+
layout: {
|
|
12428
|
+
visibility: "none"
|
|
12429
|
+
},
|
|
12430
|
+
source: "composite",
|
|
12431
|
+
"source-layer": "ICE_AREA-6oqazd"
|
|
12376
12432
|
}
|
|
12377
12433
|
],
|
|
12378
12434
|
created: "2025-07-31T04:32:27.422Z",
|
|
@@ -16237,7 +16293,7 @@ class Ul {
|
|
|
16237
16293
|
tileSize: 256
|
|
16238
16294
|
},
|
|
16239
16295
|
composite: {
|
|
16240
|
-
url: "mapbox://mapbox.mapbox-streets-v8,mapbox.country-boundaries-v1,neatchenheng.82kqbc1q,neatchenheng.d44z21eg,neatchenheng.a4ifbysm,neatchenheng.27issko0",
|
|
16296
|
+
url: "mapbox://mapbox.mapbox-streets-v8,mapbox.country-boundaries-v1,neatchenheng.82kqbc1q,neatchenheng.d44z21eg,neatchenheng.a4ifbysm,neatchenheng.27issko0,neatchenheng.9uwc9x7l",
|
|
16241
16297
|
type: "vector"
|
|
16242
16298
|
}
|
|
16243
16299
|
},
|
|
@@ -16882,6 +16938,34 @@ class Ul {
|
|
|
16882
16938
|
},
|
|
16883
16939
|
source: "composite",
|
|
16884
16940
|
"source-layer": "china_route-bdtx5d"
|
|
16941
|
+
},
|
|
16942
|
+
{
|
|
16943
|
+
id: "ice-area-fill",
|
|
16944
|
+
minzoom: 0,
|
|
16945
|
+
maxzoom: 22,
|
|
16946
|
+
type: "fill",
|
|
16947
|
+
paint: {
|
|
16948
|
+
"fill-color": "rgba(105, 235, 252, 0.5)"
|
|
16949
|
+
},
|
|
16950
|
+
source: "composite",
|
|
16951
|
+
"source-layer": "ICE_AREA-6oqazd",
|
|
16952
|
+
layout: {
|
|
16953
|
+
visibility: "none"
|
|
16954
|
+
}
|
|
16955
|
+
},
|
|
16956
|
+
{
|
|
16957
|
+
id: "ice-area-line",
|
|
16958
|
+
minzoom: 0,
|
|
16959
|
+
maxzoom: 22,
|
|
16960
|
+
type: "line",
|
|
16961
|
+
paint: {
|
|
16962
|
+
"line-color": "rgb(16, 206, 244)"
|
|
16963
|
+
},
|
|
16964
|
+
layout: {
|
|
16965
|
+
visibility: "none"
|
|
16966
|
+
},
|
|
16967
|
+
source: "composite",
|
|
16968
|
+
"source-layer": "ICE_AREA-6oqazd"
|
|
16885
16969
|
}
|
|
16886
16970
|
],
|
|
16887
16971
|
created: "2025-07-25T03:53:24.667Z",
|
|
@@ -27141,6 +27225,39 @@ class Ul {
|
|
|
27141
27225
|
}
|
|
27142
27226
|
}
|
|
27143
27227
|
},
|
|
27228
|
+
"mapbox://neatchenheng.9uwc9x7l": {
|
|
27229
|
+
url: "mapbox://neatchenheng.9uwc9x7l",
|
|
27230
|
+
type: "vector",
|
|
27231
|
+
data: {
|
|
27232
|
+
bounds: [-180, -89.999999, 180, 87.948427],
|
|
27233
|
+
center: [0, -1.0257860000000036, 0],
|
|
27234
|
+
created: 1756258790178,
|
|
27235
|
+
created_by_client: "studio",
|
|
27236
|
+
filesize: 21891,
|
|
27237
|
+
format: "pbf",
|
|
27238
|
+
id: "neatchenheng.9uwc9x7l",
|
|
27239
|
+
mapbox_logo: !0,
|
|
27240
|
+
maxzoom: 6,
|
|
27241
|
+
minzoom: 0,
|
|
27242
|
+
modified: 1756258789958,
|
|
27243
|
+
name: "ICE_AREA-6oqazd",
|
|
27244
|
+
private: !0,
|
|
27245
|
+
scheme: "xyz",
|
|
27246
|
+
tilejson: "3.0.0",
|
|
27247
|
+
tiles: ["mapbox://tiles/neatchenheng.9uwc9x7l/{z}/{x}/{y}.vector.pbf"],
|
|
27248
|
+
upload_id: "cmetb4f0d12lt1mma92qeqhea",
|
|
27249
|
+
vector_layers: [
|
|
27250
|
+
{
|
|
27251
|
+
id: "ICE_AREA-6oqazd",
|
|
27252
|
+
maxzoom: 22,
|
|
27253
|
+
minzoom: 0,
|
|
27254
|
+
source: "neatchenheng.9uwc9x7l"
|
|
27255
|
+
}
|
|
27256
|
+
],
|
|
27257
|
+
version: "1.0.0",
|
|
27258
|
+
webpage: "https://studio.mapbox.com/tilesets/neatchenheng.9uwc9x7l"
|
|
27259
|
+
}
|
|
27260
|
+
},
|
|
27144
27261
|
"mapbox://neatchenheng.bbqlsheu": {
|
|
27145
27262
|
url: "mapbox://neatchenheng.bbqlsheu",
|
|
27146
27263
|
type: "vector",
|
|
@@ -27453,6 +27570,34 @@ class Ul {
|
|
|
27453
27570
|
},
|
|
27454
27571
|
source: "mapbox://neatchenheng.27issko0",
|
|
27455
27572
|
"source-layer": "china_route-bdtx5d"
|
|
27573
|
+
},
|
|
27574
|
+
{
|
|
27575
|
+
id: "ice-area-fill",
|
|
27576
|
+
minzoom: 0,
|
|
27577
|
+
maxzoom: 22,
|
|
27578
|
+
type: "fill",
|
|
27579
|
+
paint: {
|
|
27580
|
+
"fill-color": "rgba(105, 235, 252, 0.7)"
|
|
27581
|
+
},
|
|
27582
|
+
source: "mapbox://neatchenheng.9uwc9x7l",
|
|
27583
|
+
"source-layer": "ICE_AREA-6oqazd",
|
|
27584
|
+
layout: {
|
|
27585
|
+
visibility: "none"
|
|
27586
|
+
}
|
|
27587
|
+
},
|
|
27588
|
+
{
|
|
27589
|
+
id: "ice-area-line",
|
|
27590
|
+
minzoom: 0,
|
|
27591
|
+
maxzoom: 22,
|
|
27592
|
+
type: "line",
|
|
27593
|
+
paint: {
|
|
27594
|
+
"line-color": "rgb(16, 206, 244)"
|
|
27595
|
+
},
|
|
27596
|
+
layout: {
|
|
27597
|
+
visibility: "none"
|
|
27598
|
+
},
|
|
27599
|
+
source: "mapbox://neatchenheng.9uwc9x7l",
|
|
27600
|
+
"source-layer": "ICE_AREA-6oqazd"
|
|
27456
27601
|
}
|
|
27457
27602
|
],
|
|
27458
27603
|
created: "2025-07-22T02:15:53.587Z",
|
|
@@ -27468,14 +27613,7 @@ class Ul {
|
|
|
27468
27613
|
version: 8,
|
|
27469
27614
|
name: "origin",
|
|
27470
27615
|
lights: [],
|
|
27471
|
-
fog:
|
|
27472
|
-
color: "#ffffff",
|
|
27473
|
-
range: [0.5, 10],
|
|
27474
|
-
"high-color": "#245cdf",
|
|
27475
|
-
"space-color": ["interpolate", ["linear"], ["zoom"], 4, "#010b19", 7, "#367ab9"],
|
|
27476
|
-
"horizon-blend": ["interpolate", ["linear"], ["zoom"], 4, 0.2, 7, 0.1],
|
|
27477
|
-
"star-intensity": ["interpolate", ["linear"], ["zoom"], 5, 0.35, 6, 0]
|
|
27478
|
-
},
|
|
27616
|
+
fog: this.originStyle.light.fog,
|
|
27479
27617
|
bearing: 0,
|
|
27480
27618
|
pitch: 1,
|
|
27481
27619
|
sprite: "https://fontnik.idmwx.com/sprite/sprite",
|
|
@@ -27488,125 +27626,36 @@ class Ul {
|
|
|
27488
27626
|
composite: this.originStyle.light.sources.composite
|
|
27489
27627
|
},
|
|
27490
27628
|
layers: [
|
|
27491
|
-
(i = (t = this.originStyle) == null ? void 0 : t.light.layers) == null ? void 0 : i.find((
|
|
27492
|
-
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((
|
|
27493
|
-
(c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((
|
|
27494
|
-
(
|
|
27495
|
-
(m = (
|
|
27496
|
-
(v = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : v.find((
|
|
27497
|
-
(
|
|
27498
|
-
(B = (L = this.originStyle) == null ? void 0 : L.light.layers) == null ? void 0 : B.find((
|
|
27499
|
-
(P = (
|
|
27500
|
-
(z = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : z.find((
|
|
27501
|
-
(x = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : x.find((
|
|
27502
|
-
(
|
|
27503
|
-
(V = (X = this.originStyle) == null ? void 0 : X.light.layers) == null ? void 0 : V.find((
|
|
27504
|
-
($ = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : $.find((
|
|
27505
|
-
(Q = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : Q.find((
|
|
27506
|
-
(he = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : he.find((
|
|
27507
|
-
(ce = (de = this.originStyle) == null ? void 0 : de.light.layers) == null ? void 0 : ce.find((
|
|
27508
|
-
(I = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : I.find((
|
|
27509
|
-
(ge = (le = this.originStyle) == null ? void 0 : le.light.layers) == null ? void 0 : ge.find((
|
|
27510
|
-
(we = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : we.find((
|
|
27511
|
-
(
|
|
27512
|
-
(Te = (
|
|
27629
|
+
(i = (t = this.originStyle) == null ? void 0 : t.light.layers) == null ? void 0 : i.find((d) => d.id === "land"),
|
|
27630
|
+
(r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((d) => d.id === "water"),
|
|
27631
|
+
(c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((d) => d.id === "empty-layer-1"),
|
|
27632
|
+
(u = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : u.find((d) => d.id === "country-boundaries"),
|
|
27633
|
+
(m = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : m.find((d) => d.id === "water-outline"),
|
|
27634
|
+
(v = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : v.find((d) => d.id === "water-outline2"),
|
|
27635
|
+
(S = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : S.find((d) => d.id === "empty-layer-2"),
|
|
27636
|
+
(B = (L = this.originStyle) == null ? void 0 : L.light.layers) == null ? void 0 : B.find((d) => d.id === "water-line-label"),
|
|
27637
|
+
(P = (M = this.originStyle) == null ? void 0 : M.light.layers) == null ? void 0 : P.find((d) => d.id === "water-point-label"),
|
|
27638
|
+
(z = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : z.find((d) => d.id === "world-12nm-v4-20231025"),
|
|
27639
|
+
(x = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : x.find((d) => d.id === "ne-10m-outline"),
|
|
27640
|
+
(G = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : G.find((d) => d.id === "ne-10m-label"),
|
|
27641
|
+
(V = (X = this.originStyle) == null ? void 0 : X.light.layers) == null ? void 0 : V.find((d) => d.id === "china-route-line"),
|
|
27642
|
+
($ = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : $.find((d) => d.id === "china-route-fill"),
|
|
27643
|
+
(Q = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : Q.find((d) => d.id === "china-route-label"),
|
|
27644
|
+
(he = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : he.find((d) => d.id === "admin-0-boundary-bg"),
|
|
27645
|
+
(ce = (de = this.originStyle) == null ? void 0 : de.light.layers) == null ? void 0 : ce.find((d) => d.id === "admin-0-boundary"),
|
|
27646
|
+
(I = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : I.find((d) => d.id === "admin-0-boundary-disputed"),
|
|
27647
|
+
(ge = (le = this.originStyle) == null ? void 0 : le.light.layers) == null ? void 0 : ge.find((d) => d.id === "country-label"),
|
|
27648
|
+
(we = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : we.find((d) => d.id === "continent-label"),
|
|
27649
|
+
(Se = (xe = this.originStyle) == null ? void 0 : xe.light.layers) == null ? void 0 : Se.find((d) => d.id === "ice-area-fill"),
|
|
27650
|
+
(Te = (Me = this.originStyle) == null ? void 0 : Me.light.layers) == null ? void 0 : Te.find((d) => d.id === "ice-area-line"),
|
|
27651
|
+
(Ie = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : Ie.find((d) => d.id === "empty-layer-3"),
|
|
27652
|
+
(H = (be = this.originStyle) == null ? void 0 : be.light.layers) == null ? void 0 : H.find((d) => d.id === "empty-layer-4")
|
|
27513
27653
|
]
|
|
27514
27654
|
},
|
|
27515
27655
|
dark: {
|
|
27516
27656
|
version: 8,
|
|
27517
|
-
name: "
|
|
27518
|
-
metadata:
|
|
27519
|
-
"mapbox:print": {
|
|
27520
|
-
width: 8.5,
|
|
27521
|
-
height: 11,
|
|
27522
|
-
units: "in",
|
|
27523
|
-
format: "png",
|
|
27524
|
-
resolution: 300
|
|
27525
|
-
},
|
|
27526
|
-
"mapbox:type": "default",
|
|
27527
|
-
"mapbox:trackposition": !0,
|
|
27528
|
-
"mapbox:autocomposite": !0,
|
|
27529
|
-
"mapbox:sdk-support": {
|
|
27530
|
-
android: "11.0.0",
|
|
27531
|
-
ios: "11.0.0",
|
|
27532
|
-
js: "3.0.0"
|
|
27533
|
-
},
|
|
27534
|
-
"mapbox:origin": "outdoors-v12",
|
|
27535
|
-
"mapbox:groups": {
|
|
27536
|
-
"Terrain, terrain-labels": {
|
|
27537
|
-
name: "Terrain, terrain-labels",
|
|
27538
|
-
collapsed: !0
|
|
27539
|
-
},
|
|
27540
|
-
"Administrative boundaries, admin": {
|
|
27541
|
-
name: "Administrative boundaries, admin",
|
|
27542
|
-
collapsed: !1
|
|
27543
|
-
},
|
|
27544
|
-
"Land & water, built": {
|
|
27545
|
-
name: "Land & water, built",
|
|
27546
|
-
collapsed: !0
|
|
27547
|
-
},
|
|
27548
|
-
"Terrain, surface": {
|
|
27549
|
-
name: "Terrain, surface",
|
|
27550
|
-
collapsed: !0
|
|
27551
|
-
},
|
|
27552
|
-
"Land & water, land": {
|
|
27553
|
-
name: "Land & water, land",
|
|
27554
|
-
collapsed: !1
|
|
27555
|
-
},
|
|
27556
|
-
"Natural features, natural-labels": {
|
|
27557
|
-
name: "Natural features, natural-labels",
|
|
27558
|
-
collapsed: !0
|
|
27559
|
-
},
|
|
27560
|
-
e9bb8e77353431519f7918998e9079d9: {
|
|
27561
|
-
name: "Group",
|
|
27562
|
-
collapsed: !1
|
|
27563
|
-
},
|
|
27564
|
-
"Walking, cycling, etc., barriers-bridges": {
|
|
27565
|
-
name: "Walking, cycling, etc., barriers-bridges",
|
|
27566
|
-
collapsed: !0
|
|
27567
|
-
},
|
|
27568
|
-
"Place labels, place-labels": {
|
|
27569
|
-
name: "Place labels, place-labels",
|
|
27570
|
-
collapsed: !1
|
|
27571
|
-
},
|
|
27572
|
-
"Transit, ferries": {
|
|
27573
|
-
name: "Transit, ferries",
|
|
27574
|
-
collapsed: !0
|
|
27575
|
-
},
|
|
27576
|
-
"Transit, elevated": {
|
|
27577
|
-
name: "Transit, elevated",
|
|
27578
|
-
collapsed: !0
|
|
27579
|
-
},
|
|
27580
|
-
"Walking, cycling, etc., tunnels": {
|
|
27581
|
-
name: "Walking, cycling, etc., tunnels",
|
|
27582
|
-
collapsed: !0
|
|
27583
|
-
},
|
|
27584
|
-
"Terrain, land": {
|
|
27585
|
-
name: "Terrain, land",
|
|
27586
|
-
collapsed: !0
|
|
27587
|
-
},
|
|
27588
|
-
"Road network, tunnels-case": {
|
|
27589
|
-
name: "Road network, tunnels-case",
|
|
27590
|
-
collapsed: !0
|
|
27591
|
-
},
|
|
27592
|
-
"Walking, cycling, etc., walking-cycling-labels": {
|
|
27593
|
-
name: "Walking, cycling, etc., walking-cycling-labels",
|
|
27594
|
-
collapsed: !0
|
|
27595
|
-
},
|
|
27596
|
-
"Walking, cycling, etc., surface": {
|
|
27597
|
-
name: "Walking, cycling, etc., surface",
|
|
27598
|
-
collapsed: !0
|
|
27599
|
-
},
|
|
27600
|
-
"Road network, surface-icons": {
|
|
27601
|
-
name: "Road network, surface-icons",
|
|
27602
|
-
collapsed: !0
|
|
27603
|
-
},
|
|
27604
|
-
"Land & water, water": {
|
|
27605
|
-
name: "Land & water, water",
|
|
27606
|
-
collapsed: !1
|
|
27607
|
-
}
|
|
27608
|
-
}
|
|
27609
|
-
},
|
|
27657
|
+
name: "dark",
|
|
27658
|
+
metadata: (te = this.originStyle) == null ? void 0 : te.dark.metadata,
|
|
27610
27659
|
center: [90.22129259388525, -3.2084663486364606],
|
|
27611
27660
|
zoom: 1.2556266457717493,
|
|
27612
27661
|
bearing: 0,
|
|
@@ -27615,12 +27664,7 @@ class Ul {
|
|
|
27615
27664
|
fog: {
|
|
27616
27665
|
range: [0.5, 10]
|
|
27617
27666
|
},
|
|
27618
|
-
sources:
|
|
27619
|
-
composite: {
|
|
27620
|
-
url: "mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2,mapbox.country-boundaries-v1,neatchenheng.d44z21eg,neatchenheng.82kqbc1q,neatchenheng.a4ifbysm,neatchenheng.27issko0",
|
|
27621
|
-
type: "vector"
|
|
27622
|
-
}
|
|
27623
|
-
},
|
|
27667
|
+
sources: (Ee = this.originStyle) == null ? void 0 : Ee.dark.sources,
|
|
27624
27668
|
sprite: "https://fontnik.idmwx.com/sprite/sprite",
|
|
27625
27669
|
// "sprite": "mapbox://sprites/neatchenheng/cmdqwez32005b01re2w0k3zk4/7zoestv3ytlgmyxxrlljl4rzs",
|
|
27626
27670
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
@@ -27633,69 +27677,40 @@ class Ul {
|
|
|
27633
27677
|
protected: !1,
|
|
27634
27678
|
draft: !1,
|
|
27635
27679
|
layers: [
|
|
27636
|
-
(
|
|
27637
|
-
(
|
|
27638
|
-
(
|
|
27639
|
-
(
|
|
27640
|
-
(
|
|
27641
|
-
(
|
|
27642
|
-
(
|
|
27643
|
-
(
|
|
27644
|
-
(
|
|
27645
|
-
(
|
|
27646
|
-
(
|
|
27647
|
-
(
|
|
27648
|
-
(
|
|
27649
|
-
(
|
|
27650
|
-
(
|
|
27651
|
-
(
|
|
27652
|
-
(
|
|
27653
|
-
(
|
|
27654
|
-
(
|
|
27655
|
-
(
|
|
27656
|
-
(
|
|
27680
|
+
(me = (Pe = this.originStyle) == null ? void 0 : Pe.dark.layers) == null ? void 0 : me.find((d) => d.id === "land"),
|
|
27681
|
+
(N = (pe = this.originStyle) == null ? void 0 : pe.dark.layers) == null ? void 0 : N.find((d) => d.id === "water"),
|
|
27682
|
+
(J = (ve = this.originStyle) == null ? void 0 : ve.dark.layers) == null ? void 0 : J.find((d) => d.id === "empty-layer-1"),
|
|
27683
|
+
(Re = (ie = this.originStyle) == null ? void 0 : ie.dark.layers) == null ? void 0 : Re.find((d) => d.id === "country-boundaries"),
|
|
27684
|
+
(ue = (D = this.originStyle) == null ? void 0 : D.dark.layers) == null ? void 0 : ue.find((d) => d.id === "water-outline"),
|
|
27685
|
+
(De = (Ce = this.originStyle) == null ? void 0 : Ce.dark.layers) == null ? void 0 : De.find((d) => d.id === "empty-layer-2"),
|
|
27686
|
+
(R = (Oe = this.originStyle) == null ? void 0 : Oe.dark.layers) == null ? void 0 : R.find((d) => d.id === "water-line-label"),
|
|
27687
|
+
(He = (W = this.originStyle) == null ? void 0 : W.dark.layers) == null ? void 0 : He.find((d) => d.id === "water-point-label"),
|
|
27688
|
+
(We = (Ge = this.originStyle) == null ? void 0 : Ge.dark.layers) == null ? void 0 : We.find((d) => d.id === "world-12nm-v4-20231025"),
|
|
27689
|
+
(Ue = (ze = this.originStyle) == null ? void 0 : ze.dark.layers) == null ? void 0 : Ue.find((d) => d.id === "ne-10m-outline"),
|
|
27690
|
+
(Ye = (Ve = this.originStyle) == null ? void 0 : Ve.dark.layers) == null ? void 0 : Ye.find((d) => d.id === "ne-10m-label"),
|
|
27691
|
+
(Xe = (Ze = this.originStyle) == null ? void 0 : Ze.dark.layers) == null ? void 0 : Xe.find((d) => d.id === "china-route-line"),
|
|
27692
|
+
(Ke = (qe = this.originStyle) == null ? void 0 : qe.dark.layers) == null ? void 0 : Ke.find((d) => d.id === "china-route-fill"),
|
|
27693
|
+
(Je = (Qe = this.originStyle) == null ? void 0 : Qe.dark.layers) == null ? void 0 : Je.find((d) => d.id === "china-route-label"),
|
|
27694
|
+
(et = ($e = this.originStyle) == null ? void 0 : $e.dark.layers) == null ? void 0 : et.find((d) => d.id === "admin-0-boundary-bg"),
|
|
27695
|
+
(ot = (tt = this.originStyle) == null ? void 0 : tt.dark.layers) == null ? void 0 : ot.find((d) => d.id === "admin-0-boundary"),
|
|
27696
|
+
(it = (at = this.originStyle) == null ? void 0 : at.dark.layers) == null ? void 0 : it.find((d) => d.id === "admin-0-boundary-disputed"),
|
|
27697
|
+
(lt = (rt = this.originStyle) == null ? void 0 : rt.dark.layers) == null ? void 0 : lt.find((d) => d.id === "country-label"),
|
|
27698
|
+
(nt = (st = this.originStyle) == null ? void 0 : st.dark.layers) == null ? void 0 : nt.find((d) => d.id === "continent-label"),
|
|
27699
|
+
(mt = (ct = this.originStyle) == null ? void 0 : ct.dark.layers) == null ? void 0 : mt.find((d) => d.id === "ice-area-fill"),
|
|
27700
|
+
(dt = (ht = this.originStyle) == null ? void 0 : ht.dark.layers) == null ? void 0 : dt.find((d) => d.id === "ice-area-line"),
|
|
27701
|
+
(ut = (pt = this.originStyle) == null ? void 0 : pt.dark.layers) == null ? void 0 : ut.find((d) => d.id === "empty-layer-3"),
|
|
27702
|
+
(ft = (gt = this.originStyle) == null ? void 0 : gt.dark.layers) == null ? void 0 : ft.find((d) => d.id === "empty-layer-4")
|
|
27657
27703
|
]
|
|
27658
27704
|
},
|
|
27659
27705
|
satellite: {
|
|
27660
27706
|
version: 8,
|
|
27661
27707
|
name: "Satellite Streets",
|
|
27662
|
-
metadata:
|
|
27663
|
-
"mapbox:type": "default",
|
|
27664
|
-
"mapbox:autocomposite": !0,
|
|
27665
|
-
"mapbox:sdk-support": {
|
|
27666
|
-
js: "3.14.0",
|
|
27667
|
-
android: "11.14.0",
|
|
27668
|
-
ios: "11.14.0"
|
|
27669
|
-
},
|
|
27670
|
-
"mapbox:origin": "satellite-streets-v12",
|
|
27671
|
-
"mapbox:uiExpandedImports": ["basemap"],
|
|
27672
|
-
"mapbox:groups": {
|
|
27673
|
-
"Satellite imagery, land": {
|
|
27674
|
-
name: "Satellite imagery, land",
|
|
27675
|
-
collapsed: !1
|
|
27676
|
-
},
|
|
27677
|
-
"Administrative boundaries, admin": {
|
|
27678
|
-
name: "Administrative boundaries, admin",
|
|
27679
|
-
collapsed: !0
|
|
27680
|
-
},
|
|
27681
|
-
"Place labels, place-labels": {
|
|
27682
|
-
name: "Place labels, place-labels",
|
|
27683
|
-
collapsed: !0
|
|
27684
|
-
}
|
|
27685
|
-
}
|
|
27686
|
-
},
|
|
27708
|
+
metadata: (bt = this.originStyle) == null ? void 0 : bt.satellite.metadata,
|
|
27687
27709
|
center: [55.13, 25.12],
|
|
27688
27710
|
zoom: 12,
|
|
27689
|
-
fog:
|
|
27690
|
-
|
|
27691
|
-
|
|
27692
|
-
"high-color": ["interpolate", ["exponential", 1.2], ["zoom"], 5.5, "hsl(240, 12%, 7%)", 6, "hsl(38, 63%, 84%)"],
|
|
27693
|
-
"space-color": ["interpolate", ["exponential", 1.2], ["zoom"], 5.5, "hsl(240, 12%, 9%)", 6, "hsl(199, 61%, 80%)"],
|
|
27694
|
-
"horizon-blend": ["interpolate", ["exponential", 1.2], ["zoom"], 5.5, 8e-3, 6, 0.15],
|
|
27695
|
-
"star-intensity": ["interpolate", ["exponential", 1.2], ["zoom"], 5.5, 0.1, 6, 0]
|
|
27696
|
-
},
|
|
27697
|
-
imports: (st = this.originStyle) == null ? void 0 : st.satellite.imports,
|
|
27698
|
-
sources: (nt = this.originStyle) == null ? void 0 : nt.satellite.sources,
|
|
27711
|
+
fog: (yt = this.originStyle) == null ? void 0 : yt.satellite.fog,
|
|
27712
|
+
imports: (wt = this.originStyle) == null ? void 0 : wt.satellite.imports,
|
|
27713
|
+
sources: (xt = this.originStyle) == null ? void 0 : xt.satellite.sources,
|
|
27699
27714
|
// "sprite": "mapbox://sprites/neatchenheng/cmdiadnej03n101r485bs2m6a/3w0hq28rn6bi91vy6wi67pdan",
|
|
27700
27715
|
sprite: "https://fontnik.idmwx.com/sprite/sprite",
|
|
27701
27716
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
@@ -27710,42 +27725,35 @@ class Ul {
|
|
|
27710
27725
|
protected: !1,
|
|
27711
27726
|
draft: !1,
|
|
27712
27727
|
layers: [
|
|
27713
|
-
(
|
|
27714
|
-
(
|
|
27715
|
-
(
|
|
27716
|
-
(
|
|
27717
|
-
(
|
|
27718
|
-
(
|
|
27719
|
-
(
|
|
27720
|
-
(
|
|
27721
|
-
(
|
|
27722
|
-
(
|
|
27723
|
-
(
|
|
27724
|
-
(
|
|
27725
|
-
(
|
|
27726
|
-
(
|
|
27727
|
-
(
|
|
27728
|
-
(
|
|
27728
|
+
(_t = (vt = this.originStyle) == null ? void 0 : vt.satellite.layers) == null ? void 0 : _t.find((d) => d.id === "background"),
|
|
27729
|
+
(zt = (kt = this.originStyle) == null ? void 0 : kt.satellite.layers) == null ? void 0 : zt.find((d) => d.id === "satellite"),
|
|
27730
|
+
(Pt = (Lt = this.originStyle) == null ? void 0 : Lt.satellite.layers) == null ? void 0 : Pt.find((d) => d.id === "empty-layer-1"),
|
|
27731
|
+
(St = (Ct = this.originStyle) == null ? void 0 : Ct.satellite.layers) == null ? void 0 : St.find((d) => d.id === "country-boundaries"),
|
|
27732
|
+
(Tt = (Mt = this.originStyle) == null ? void 0 : Mt.satellite.layers) == null ? void 0 : Tt.find((d) => d.id === "water-outline"),
|
|
27733
|
+
(It = (At = this.originStyle) == null ? void 0 : At.satellite.layers) == null ? void 0 : It.find((d) => d.id === "empty-layer-2"),
|
|
27734
|
+
(Dt = (Rt = this.originStyle) == null ? void 0 : Rt.satellite.layers) == null ? void 0 : Dt.find((d) => d.id === "world-12nm-v4-20231025"),
|
|
27735
|
+
(Bt = (Ot = this.originStyle) == null ? void 0 : Ot.satellite.layers) == null ? void 0 : Bt.find((d) => d.id === "ne-10m-outline"),
|
|
27736
|
+
(jt = (Et = this.originStyle) == null ? void 0 : Et.satellite.layers) == null ? void 0 : jt.find((d) => d.id === "ne-10m-label"),
|
|
27737
|
+
(Nt = (Ft = this.originStyle) == null ? void 0 : Ft.satellite.layers) == null ? void 0 : Nt.find((d) => d.id === "china-route-line"),
|
|
27738
|
+
(Gt = (Ht = this.originStyle) == null ? void 0 : Ht.satellite.layers) == null ? void 0 : Gt.find((d) => d.id === "china-route-fill"),
|
|
27739
|
+
(Ut = (Wt = this.originStyle) == null ? void 0 : Wt.satellite.layers) == null ? void 0 : Ut.find((d) => d.id === "china-route-label"),
|
|
27740
|
+
(Yt = (Vt = this.originStyle) == null ? void 0 : Vt.satellite.layers) == null ? void 0 : Yt.find((d) => d.id === "country-label"),
|
|
27741
|
+
(Xt = (Zt = this.originStyle) == null ? void 0 : Zt.satellite.layers) == null ? void 0 : Xt.find((d) => d.id === "continent-label"),
|
|
27742
|
+
(ro = (qt = this.originStyle) == null ? void 0 : qt.satellite.layers) == null ? void 0 : ro.find((d) => d.id === "ice-area-fill"),
|
|
27743
|
+
(so = (lo = this.originStyle) == null ? void 0 : lo.satellite.layers) == null ? void 0 : so.find((d) => d.id === "ice-area-line"),
|
|
27744
|
+
(co = (no = this.originStyle) == null ? void 0 : no.satellite.layers) == null ? void 0 : co.find((d) => d.id === "empty-layer-3"),
|
|
27745
|
+
(ho = (mo = this.originStyle) == null ? void 0 : mo.satellite.layers) == null ? void 0 : ho.find((d) => d.id === "empty-layer-4")
|
|
27729
27746
|
]
|
|
27730
27747
|
},
|
|
27731
27748
|
nautical: {
|
|
27732
27749
|
version: 8,
|
|
27733
27750
|
name: "nautical",
|
|
27734
|
-
metadata:
|
|
27735
|
-
"mapbox:autocomposite": !1,
|
|
27736
|
-
"mapbox:sdk-support": {
|
|
27737
|
-
js: "3.14.0",
|
|
27738
|
-
android: "11.14.0",
|
|
27739
|
-
ios: "11.14.0"
|
|
27740
|
-
},
|
|
27741
|
-
"mapbox:uiExpandedImports": ["basemap"],
|
|
27742
|
-
"mapbox:groups": {}
|
|
27743
|
-
},
|
|
27751
|
+
metadata: (po = this.originStyle) == null ? void 0 : po.nautical.metadata,
|
|
27744
27752
|
center: [-34, 38],
|
|
27745
27753
|
zoom: 2,
|
|
27746
27754
|
terrain: null,
|
|
27747
|
-
imports: (
|
|
27748
|
-
sources: (
|
|
27755
|
+
imports: (uo = this.originStyle) == null ? void 0 : uo.nautical.imports,
|
|
27756
|
+
sources: (go = this.originStyle) == null ? void 0 : go.nautical.sources,
|
|
27749
27757
|
// "sprite": "mapbox://sprites/neatchenheng/cmddwkooj003i01ptch7p9gvz/b8fjw435hx85pp7j172f016pl",
|
|
27750
27758
|
sprite: "https://fontnik.idmwx.com/sprite/sprite",
|
|
27751
27759
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
@@ -27753,25 +27761,27 @@ class Ul {
|
|
|
27753
27761
|
name: "equirectangular"
|
|
27754
27762
|
},
|
|
27755
27763
|
layers: [
|
|
27756
|
-
(
|
|
27757
|
-
(
|
|
27758
|
-
(
|
|
27759
|
-
(
|
|
27760
|
-
(
|
|
27761
|
-
(
|
|
27762
|
-
(
|
|
27763
|
-
(
|
|
27764
|
-
(
|
|
27765
|
-
(
|
|
27764
|
+
(bo = (fo = this.originStyle) == null ? void 0 : fo.nautical.layers) == null ? void 0 : bo.find((d) => d.id === "empty-layer-1"),
|
|
27765
|
+
(wo = (yo = this.originStyle) == null ? void 0 : yo.nautical.layers) == null ? void 0 : wo.find((d) => d.id === "country-boundaries"),
|
|
27766
|
+
(vo = (xo = this.originStyle) == null ? void 0 : xo.nautical.layers) == null ? void 0 : vo.find((d) => d.id === "water-outline"),
|
|
27767
|
+
(ko = (_o = this.originStyle) == null ? void 0 : _o.nautical.layers) == null ? void 0 : ko.find((d) => d.id === "empty-layer-2"),
|
|
27768
|
+
(Lo = (zo = this.originStyle) == null ? void 0 : zo.nautical.layers) == null ? void 0 : Lo.find((d) => d.id === "world-12nm-v4-20231025"),
|
|
27769
|
+
(Co = (Po = this.originStyle) == null ? void 0 : Po.nautical.layers) == null ? void 0 : Co.find((d) => d.id === "ne-10m-outline"),
|
|
27770
|
+
(Mo = (So = this.originStyle) == null ? void 0 : So.nautical.layers) == null ? void 0 : Mo.find((d) => d.id === "ne-10m-label"),
|
|
27771
|
+
(Ao = (To = this.originStyle) == null ? void 0 : To.nautical.layers) == null ? void 0 : Ao.find((d) => d.id === "china-route-line"),
|
|
27772
|
+
(Ro = (Io = this.originStyle) == null ? void 0 : Io.nautical.layers) == null ? void 0 : Ro.find((d) => d.id === "china-route-fill"),
|
|
27773
|
+
(Oo = (Do = this.originStyle) == null ? void 0 : Do.nautical.layers) == null ? void 0 : Oo.find((d) => d.id === "china-route-label"),
|
|
27766
27774
|
this.i4.layer,
|
|
27767
27775
|
// this.hi.layer,
|
|
27768
|
-
(
|
|
27769
|
-
(
|
|
27770
|
-
(
|
|
27771
|
-
(
|
|
27772
|
-
(
|
|
27773
|
-
(
|
|
27774
|
-
(
|
|
27776
|
+
(Eo = (Bo = this.originStyle) == null ? void 0 : Bo.light.layers) == null ? void 0 : Eo.find((d) => d.id === "admin-0-boundary-bg"),
|
|
27777
|
+
(Fo = (jo = this.originStyle) == null ? void 0 : jo.light.layers) == null ? void 0 : Fo.find((d) => d.id === "admin-0-boundary"),
|
|
27778
|
+
(Ho = (No = this.originStyle) == null ? void 0 : No.light.layers) == null ? void 0 : Ho.find((d) => d.id === "admin-0-boundary-disputed"),
|
|
27779
|
+
(Wo = (Go = this.originStyle) == null ? void 0 : Go.light.layers) == null ? void 0 : Wo.find((d) => d.id === "country-label"),
|
|
27780
|
+
(Vo = (Uo = this.originStyle) == null ? void 0 : Uo.light.layers) == null ? void 0 : Vo.find((d) => d.id === "continent-label"),
|
|
27781
|
+
(Zo = (Yo = this.originStyle) == null ? void 0 : Yo.nautical.layers) == null ? void 0 : Zo.find((d) => d.id === "ice-area-fill"),
|
|
27782
|
+
(qo = (Xo = this.originStyle) == null ? void 0 : Xo.nautical.layers) == null ? void 0 : qo.find((d) => d.id === "ice-area-line"),
|
|
27783
|
+
(Qo = (Ko = this.originStyle) == null ? void 0 : Ko.nautical.layers) == null ? void 0 : Qo.find((d) => d.id === "empty-layer-3"),
|
|
27784
|
+
($o = (Jo = this.originStyle) == null ? void 0 : Jo.nautical.layers) == null ? void 0 : $o.find((d) => d.id === "empty-layer-4")
|
|
27775
27785
|
],
|
|
27776
27786
|
created: "2025-07-22T02:15:53.587Z",
|
|
27777
27787
|
modified: "2025-08-07T10:15:43.870Z",
|
|
@@ -27784,7 +27794,7 @@ class Ul {
|
|
|
27784
27794
|
};
|
|
27785
27795
|
}
|
|
27786
27796
|
}
|
|
27787
|
-
const
|
|
27797
|
+
const ds = {
|
|
27788
27798
|
name: "MapInitial",
|
|
27789
27799
|
props: {
|
|
27790
27800
|
token: {
|
|
@@ -27837,7 +27847,7 @@ const Vl = {
|
|
|
27837
27847
|
methods: {
|
|
27838
27848
|
async initOnlineMap() {
|
|
27839
27849
|
var e;
|
|
27840
|
-
(e = this.map) == null || e.remove(), this.map = void 0, this.helper = new
|
|
27850
|
+
(e = this.map) == null || e.remove(), this.map = void 0, this.helper = new hs(this.token), ke.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
27841
27851
|
const o = new ke.Map({
|
|
27842
27852
|
container: "map",
|
|
27843
27853
|
// style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
|
|
@@ -27877,16 +27887,16 @@ const Vl = {
|
|
|
27877
27887
|
this.zoom = this.zoom <= 2 ? 1 : this.zoom - 1, (o = this.map) == null || o.zoomOut(this.zoom);
|
|
27878
27888
|
}
|
|
27879
27889
|
}
|
|
27880
|
-
},
|
|
27881
|
-
function
|
|
27890
|
+
}, ps = { class: "mapbox-initial-gl4" }, us = { class: "v-btn--variant-elevated rounded" }, gs = { class: "zoom" };
|
|
27891
|
+
function fs(o, e, t, i, a, r) {
|
|
27882
27892
|
const s = k("VBtn");
|
|
27883
|
-
return y(), T("div",
|
|
27893
|
+
return y(), T("div", ps, [
|
|
27884
27894
|
e[2] || (e[2] = l("div", { id: "map" }, null, -1)),
|
|
27885
27895
|
l("div", {
|
|
27886
27896
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
27887
27897
|
style: ae({ top: t.top + 268 + "px", right: a.right + "px" })
|
|
27888
27898
|
}, [
|
|
27889
|
-
l("div",
|
|
27899
|
+
l("div", us, [
|
|
27890
27900
|
h(s, {
|
|
27891
27901
|
"min-width": "32",
|
|
27892
27902
|
width: "32",
|
|
@@ -27900,7 +27910,7 @@ function ql(o, e, t, i, a, r) {
|
|
|
27900
27910
|
_: 1,
|
|
27901
27911
|
__: [0]
|
|
27902
27912
|
}, 8, ["onClick"]),
|
|
27903
|
-
l("div",
|
|
27913
|
+
l("div", gs, w(a.zoom), 1),
|
|
27904
27914
|
h(s, {
|
|
27905
27915
|
"min-width": "32",
|
|
27906
27916
|
width: "32",
|
|
@@ -27918,20 +27928,20 @@ function ql(o, e, t, i, a, r) {
|
|
|
27918
27928
|
], 4)
|
|
27919
27929
|
]);
|
|
27920
27930
|
}
|
|
27921
|
-
const
|
|
27931
|
+
const bs = /* @__PURE__ */ q(ds, [["render", fs]]), Ms = {
|
|
27922
27932
|
install(o) {
|
|
27923
|
-
o.component("MapInitial",
|
|
27933
|
+
o.component("MapInitial", bs), o.component("MapboxGL", ms), o.component("TropicalGL", aa), o.component("LatLngGL", oa), o.component("DateTimePicker", io);
|
|
27924
27934
|
}
|
|
27925
27935
|
};
|
|
27926
27936
|
export {
|
|
27927
27937
|
io as DateTimePicker,
|
|
27928
|
-
|
|
27929
|
-
|
|
27930
|
-
|
|
27931
|
-
|
|
27938
|
+
oa as LatLngGL,
|
|
27939
|
+
bs as MapInitial,
|
|
27940
|
+
ms as MapboxGL,
|
|
27941
|
+
Ms as MapboxGLPlugin,
|
|
27932
27942
|
ye as ParticleSchema,
|
|
27933
|
-
|
|
27943
|
+
aa as TropicalGL,
|
|
27934
27944
|
ao as Viewport,
|
|
27935
|
-
|
|
27945
|
+
je as WebGL,
|
|
27936
27946
|
se as WebGLSchema
|
|
27937
27947
|
};
|