@idmwx/idmui-gl4 1.7.4 → 1.7.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/dist/index.js
CHANGED
|
@@ -3,15 +3,15 @@ var Ka = (t, e, o) => e in t ? $a(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var de = (t, e, o) => (Ka(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import Se from "axios";
|
|
5
5
|
import { useTheme as ze } from "vuetify";
|
|
6
|
-
import { openBlock as y, createElementBlock as S, resolveComponent as
|
|
7
|
-
import
|
|
6
|
+
import { openBlock as y, createElementBlock as S, resolveComponent as x, createBlock as R, withCtx as f, createVNode as p, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as Ne, toDisplayString as m, createTextVNode as K, Fragment as be, renderList as we, withDirectives as Ue, vShow as We, mergeProps as B, normalizeStyle as ie } from "vue";
|
|
7
|
+
import xe from "mapbox-gl";
|
|
8
8
|
import M from "moment";
|
|
9
9
|
import { LngLatHelper as X, TropicalHelper as Va, LaneHelper as Ge } from "@idm-plugin/geo";
|
|
10
10
|
import { Meteo2Assist as Co, TidesAssist as Ya } from "@idm-plugin/meteo";
|
|
11
11
|
import * as So from "echarts";
|
|
12
12
|
import * as H from "@turf/turf";
|
|
13
|
-
import { LayerHelper as To, CompanyHelper as
|
|
14
|
-
import
|
|
13
|
+
import { LayerHelper as To, CompanyHelper as Ja } from "@idm-plugin/tag2";
|
|
14
|
+
import Qa from "@mapbox/sphericalmercator";
|
|
15
15
|
import { LayerHelper as ei } from "@idm-plugin/tag";
|
|
16
16
|
const Y = (t, e) => {
|
|
17
17
|
const o = t.__vccOpts || t;
|
|
@@ -389,7 +389,7 @@ const mi = {
|
|
|
389
389
|
const l = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (u = l == null ? void 0 : l.children[1]) == null ? void 0 : u.children[0];
|
|
390
390
|
c && (c.onclick = () => {
|
|
391
391
|
this.handleRemoveMarker();
|
|
392
|
-
}), this.marker = new
|
|
392
|
+
}), this.marker = new xe.Marker(l).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([230, 0]).addTo(this.map);
|
|
393
393
|
}));
|
|
394
394
|
},
|
|
395
395
|
handleRender() {
|
|
@@ -489,7 +489,7 @@ const mi = {
|
|
|
489
489
|
}
|
|
490
490
|
}, di = ["innerHTML"];
|
|
491
491
|
function hi(t, e, o, i, a, r) {
|
|
492
|
-
const l =
|
|
492
|
+
const l = x("VBtn"), c = x("v-card-text"), n = x("v-card");
|
|
493
493
|
return a.showMakerInfo ? (y(), R(n, {
|
|
494
494
|
key: 0,
|
|
495
495
|
class: "scroll",
|
|
@@ -1487,10 +1487,10 @@ const ui = {
|
|
|
1487
1487
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1488
1488
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1489
1489
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1490
|
-
var c, n, u, h, b,
|
|
1490
|
+
var c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, ve, Le, Pe;
|
|
1491
1491
|
let r = {};
|
|
1492
1492
|
const l = ((c = Co.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
|
|
1493
|
-
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((
|
|
1493
|
+
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((_ = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : _.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = l == null ? void 0 : l.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((z = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : z.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (k = l == null ? void 0 : l.wave) == null ? void 0 : k.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (V = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((W = (Z = l == null ? void 0 : l.wave) == null ? void 0 : Z.sig) == null ? void 0 : W.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((J = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.height, 1) ?? "-", r.windwaveDir = (ne = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.direction, r.windwavePeriod = this.computeRoundPrecision((Q = (se = l == null ? void 0 : l.wave) == null ? void 0 : se.wd) == null ? void 0 : Q.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((he = (ae = l == null ? void 0 : l.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.height, 1) ?? "-", r.swellDir = (pe = (ce = l == null ? void 0 : l.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.direction, r.swellPeriod = this.computeRoundPrecision((F = (ge = l == null ? void 0 : l.wave) == null ? void 0 : ge.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = l == null ? void 0 : l.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (ve = l == null ? void 0 : l.current) == null ? void 0 : ve.direction, r.currentSpeed = this.computeRoundPrecision((Le = l == null ? void 0 : l.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
1494
1494
|
});
|
|
1495
1495
|
},
|
|
1496
1496
|
handleTide() {
|
|
@@ -1650,7 +1650,7 @@ const ui = {
|
|
|
1650
1650
|
}, Ui = {
|
|
1651
1651
|
key: 0,
|
|
1652
1652
|
class: ""
|
|
1653
|
-
}, Wi = { class: "px-1 text-center" }, Vi = ["src"], Zi = { key: 1 }, Yi = { class: "px-1 text-center" }, qi = ["src"], Xi = { key: 1 }, $i = { class: "px-1 text-center" }, Ki = ["src"],
|
|
1653
|
+
}, Wi = { class: "px-1 text-center" }, Vi = ["src"], Zi = { key: 1 }, Yi = { class: "px-1 text-center" }, qi = ["src"], Xi = { key: 1 }, $i = { class: "px-1 text-center" }, Ki = ["src"], Ji = { key: 1 }, Qi = { class: "px-1 text-center" }, er = ["src"], tr = { key: 1 }, or = { class: "table-box w-100 mt-2 d-flex flex-column justify-start align-center" }, ar = { class: "w-100 d-flex justify-space-between align-center py-2" }, ir = { class: "d-flex justify-center align-center text-h6 ga-2" }, rr = {
|
|
1654
1654
|
class: "multi-color-icon",
|
|
1655
1655
|
"aria-hidden": "true"
|
|
1656
1656
|
}, sr = ["xlink:href"], lr = { class: "text-body-2 ga-2" }, nr = {
|
|
@@ -1675,10 +1675,10 @@ const ui = {
|
|
|
1675
1675
|
width: "120"
|
|
1676
1676
|
}, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
|
|
1677
1677
|
function yr(t, e, o, i, a, r) {
|
|
1678
|
-
const l =
|
|
1678
|
+
const l = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), u = x("VIcon"), h = x("VBtnToggle"), b = x("VCard");
|
|
1679
1679
|
return y(), R(b, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
|
|
1680
1680
|
default: f(() => {
|
|
1681
|
-
var
|
|
1681
|
+
var w, _;
|
|
1682
1682
|
return [
|
|
1683
1683
|
p(c, { class: "w-100" }, {
|
|
1684
1684
|
default: f(() => {
|
|
@@ -1781,7 +1781,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1781
1781
|
s("div", Li, [
|
|
1782
1782
|
s("div", Pi, [
|
|
1783
1783
|
s("div", Ci, m(t.$t("port.region")), 1),
|
|
1784
|
-
s("div", Ti, m(((
|
|
1784
|
+
s("div", Ti, m(((w = o.port) == null ? void 0 : w.region) ?? ((_ = o.port) == null ? void 0 : _.city) ?? "-"), 1)
|
|
1785
1785
|
]),
|
|
1786
1786
|
s("div", Si, [
|
|
1787
1787
|
s("div", Mi, m(t.$t("port.position")), 1),
|
|
@@ -1860,9 +1860,9 @@ function yr(t, e, o, i, a, r) {
|
|
|
1860
1860
|
key: 0,
|
|
1861
1861
|
src: g == null ? void 0 : g.value2,
|
|
1862
1862
|
style: { height: "30px" }
|
|
1863
|
-
}, null, 8, Ki)) : (y(), S("span",
|
|
1863
|
+
}, null, 8, Ki)) : (y(), S("span", Ji, m((g == null ? void 0 : g.value2) ?? "-"), 1))
|
|
1864
1864
|
]),
|
|
1865
|
-
s("td",
|
|
1865
|
+
s("td", Qi, [
|
|
1866
1866
|
g.img ? (y(), S("img", {
|
|
1867
1867
|
key: 0,
|
|
1868
1868
|
src: g == null ? void 0 : g.value3,
|
|
@@ -2025,7 +2025,7 @@ const br = {
|
|
|
2025
2025
|
if (e.properties.id) {
|
|
2026
2026
|
this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
|
|
2027
2027
|
const r = (a = document.getElementById("idmPortInfo")) == null ? void 0 : a.cloneNode(!0);
|
|
2028
|
-
this.marker = new
|
|
2028
|
+
this.marker = new xe.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
|
|
2029
2029
|
}
|
|
2030
2030
|
},
|
|
2031
2031
|
handleLeave() {
|
|
@@ -2038,7 +2038,7 @@ const br = {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
}, wr = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, xr = { class: "d-flex justify-start align-center text-label" }, vr = { class: "d-flex justify-start align-center text-label" };
|
|
2040
2040
|
function _r(t, e, o, i, a, r) {
|
|
2041
|
-
const l =
|
|
2041
|
+
const l = x("VCardText"), c = x("VCard"), n = x("PortDetail");
|
|
2042
2042
|
return y(), S("div", null, [
|
|
2043
2043
|
Ue(p(c, {
|
|
2044
2044
|
id: "idmPortInfo",
|
|
@@ -2139,31 +2139,39 @@ const Pr = /* @__PURE__ */ Y(zr, [["render", Lr]]), Cr = {
|
|
|
2139
2139
|
return {
|
|
2140
2140
|
source: "time-zone-source",
|
|
2141
2141
|
zoneLayer: "time-zone-layer",
|
|
2142
|
-
|
|
2142
|
+
zoneBorderLayer: "time-zone-border-layer",
|
|
2143
|
+
zoneLabelLayer: "time-zone-label-layer",
|
|
2144
|
+
marker: null
|
|
2143
2145
|
};
|
|
2144
2146
|
},
|
|
2145
2147
|
watch: {
|
|
2146
2148
|
zone: {
|
|
2147
2149
|
handler() {
|
|
2148
|
-
|
|
2150
|
+
var t, e, o, i;
|
|
2151
|
+
this.zone ? (this.handleRender(), (t = this.map) == null || t.on("mousemove", [this.zoneLayer], this.handleHover), (e = this.map) == null || e.on("mouseleave", [this.zoneLayer], this.handleLeave)) : (this.handleClear(), (o = this.map) == null || o.off("mousemove", [this.zoneLayer], this.handleHover), (i = this.map) == null || i.off("mouseleave", [this.zoneLayer], this.handleLeave));
|
|
2149
2152
|
},
|
|
2150
2153
|
immediate: !0
|
|
2151
2154
|
}
|
|
2152
2155
|
},
|
|
2153
2156
|
methods: {
|
|
2154
2157
|
handleRender() {
|
|
2155
|
-
|
|
2158
|
+
var e;
|
|
2159
|
+
this.handleClear();
|
|
2160
|
+
let t = {
|
|
2161
|
+
features: [],
|
|
2162
|
+
type: "FeatureCollection"
|
|
2163
|
+
};
|
|
2164
|
+
t.features = (e = this.zone.features) == null ? void 0 : e.map((o) => (o.properties.opacity = 0, o.properties.lineOpacity = 0.2, o.properties.width = 1, o)), this.zone && (this.map.addSource(this.source, {
|
|
2156
2165
|
type: "geojson",
|
|
2157
|
-
data:
|
|
2166
|
+
data: t
|
|
2158
2167
|
}), this.map.addLayer(
|
|
2159
2168
|
{
|
|
2160
2169
|
id: this.zoneLayer,
|
|
2161
2170
|
type: "fill",
|
|
2162
2171
|
source: this.source,
|
|
2163
|
-
filter: ["==", "$type", "Polygon"],
|
|
2172
|
+
filter: ["all", ["==", "$type", "Polygon"]],
|
|
2164
2173
|
paint: {
|
|
2165
|
-
"fill-
|
|
2166
|
-
"fill-opacity": 0.25,
|
|
2174
|
+
"fill-opacity": ["get", "opacity"],
|
|
2167
2175
|
"fill-color": [
|
|
2168
2176
|
"match",
|
|
2169
2177
|
["get", "offSet"],
|
|
@@ -2268,27 +2276,39 @@ const Pr = /* @__PURE__ */ Y(zr, [["render", Lr]]), Cr = {
|
|
|
2268
2276
|
this.beforeLayer
|
|
2269
2277
|
), this.map.addLayer(
|
|
2270
2278
|
{
|
|
2271
|
-
id: this.
|
|
2272
|
-
type: "
|
|
2279
|
+
id: this.zoneBorderLayer,
|
|
2280
|
+
type: "line",
|
|
2273
2281
|
source: this.source,
|
|
2274
|
-
filter: ["==", "$type", "
|
|
2275
|
-
layout: {
|
|
2276
|
-
"symbol-placement": "point",
|
|
2277
|
-
"text-field": "{offSet}",
|
|
2278
|
-
"text-rotation-alignment": "viewport",
|
|
2279
|
-
"text-size": 10,
|
|
2280
|
-
"text-offset": [0, 1],
|
|
2281
|
-
"text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"]
|
|
2282
|
-
},
|
|
2282
|
+
filter: ["==", "$type", "Polygon"],
|
|
2283
2283
|
paint: {
|
|
2284
|
-
"
|
|
2284
|
+
"line-color": this.Theme.current.value.colors["on-surface"],
|
|
2285
|
+
"line-opacity": ["get", "lineOpacity"],
|
|
2286
|
+
"line-width": ["get", "width"]
|
|
2285
2287
|
}
|
|
2286
2288
|
},
|
|
2287
2289
|
this.beforeLayer
|
|
2288
2290
|
));
|
|
2289
2291
|
},
|
|
2290
2292
|
handleClear() {
|
|
2291
|
-
this.map.getLayer(this.zoneLayer) && this.map.removeLayer(this.zoneLayer), this.map.getLayer(this.zoneLabelLayer) && this.map.removeLayer(this.zoneLabelLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
2293
|
+
this.map.getLayer(this.zoneLayer) && this.map.removeLayer(this.zoneLayer), this.map.getLayer(this.zoneBorderLayer) && this.map.removeLayer(this.zoneBorderLayer), this.map.getLayer(this.zoneLabelLayer) && this.map.removeLayer(this.zoneLabelLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
2294
|
+
},
|
|
2295
|
+
handleHover(t) {
|
|
2296
|
+
var e, o, i;
|
|
2297
|
+
if (t.features.length) {
|
|
2298
|
+
(e = this.marker) == null || e.remove();
|
|
2299
|
+
let a = {
|
|
2300
|
+
features: [],
|
|
2301
|
+
type: "FeatureCollection"
|
|
2302
|
+
};
|
|
2303
|
+
a.features = (o = this.zone.features) == null ? void 0 : o.map((l) => {
|
|
2304
|
+
const c = JSON.parse(JSON.stringify(l));
|
|
2305
|
+
return c.properties.offSet === t.features[0].properties.offSet ? (c.properties.opacity = 0.25, c.properties.lineOpacity = 0.7, c.properties.width = 2) : (c.properties.opacity = 0, c.properties.lineOpacity = 0.2, c.properties.width = 1), c;
|
|
2306
|
+
}), (i = this.map.getSource(this.source)) == null || i.setData(a);
|
|
2307
|
+
const r = document.createElement("div");
|
|
2308
|
+
r.className = "v-card--variant-elevated rounded px-2 py-1 text-body-1", r.innerHTML = `<div>UTC ${t.features[0].properties.offSet}</div>`, this.marker = new xe.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -30]).addTo(this.map);
|
|
2309
|
+
}
|
|
2310
|
+
},
|
|
2311
|
+
handleLeave() {
|
|
2292
2312
|
}
|
|
2293
2313
|
}
|
|
2294
2314
|
};
|
|
@@ -2915,7 +2935,7 @@ const qr = {
|
|
|
2915
2935
|
this.$emit("close");
|
|
2916
2936
|
}
|
|
2917
2937
|
}
|
|
2918
|
-
}, Xr = { class: "d-flex justify-space-between align-center" }, $r = { class: "d-flex justify-start text-h5 my-2" }, Kr = { class: "d-flex justify-start align-center text-body-1 text-label ga-3" },
|
|
2938
|
+
}, Xr = { class: "d-flex justify-space-between align-center" }, $r = { class: "d-flex justify-start text-h5 my-2" }, Kr = { class: "d-flex justify-start align-center text-body-1 text-label ga-3" }, Jr = { class: "w-100 px-5 pt-0 pb-0 overflow-y-auto scroll" }, Qr = { class: "summary-box w-100" }, es = { class: "d-flex justify-space-between align-center py-2" }, ts = { class: "d-flex justify-center align-center text-h6 ga-2" }, os = {
|
|
2919
2939
|
class: "multi-color-icon",
|
|
2920
2940
|
"aria-hidden": "true"
|
|
2921
2941
|
}, as = ["xlink:href"], is = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, rs = { class: "w-100 d-flex justify-start align-center" }, ss = { class: "w-30 text-label font-weight-400" }, ls = { class: "flex-1-1-0" }, ns = { class: "w-100 d-flex justify-start align-center" }, cs = { class: "w-30 text-label font-weight-400" }, ms = { class: "flex-1-1-0" }, ds = { class: "w-100 d-flex justify-start align-center" }, hs = { class: "w-30 text-label font-weight-400" }, ps = { class: "flex-1-1-0" }, us = { class: "table-box w-100 mt-2 mb-4 d-flex flex-column justify-start align-center" }, gs = { class: "w-100 d-flex justify-space-between align-center py-2" }, fs = { class: "d-flex justify-center align-center text-h6 ga-2" }, ys = {
|
|
@@ -2940,18 +2960,18 @@ const qr = {
|
|
|
2940
2960
|
width: "120"
|
|
2941
2961
|
}, Ls = { class: "px-1 text-center" }, Ps = { class: "px-1 text-center" }, Cs = { class: "px-1 text-center" };
|
|
2942
2962
|
function Ts(t, e, o, i, a, r) {
|
|
2943
|
-
const l =
|
|
2963
|
+
const l = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), u = x("VBtnToggle"), h = x("v-card");
|
|
2944
2964
|
return y(), R(h, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
|
|
2945
2965
|
default: f(() => {
|
|
2946
|
-
var b,
|
|
2966
|
+
var b, w;
|
|
2947
2967
|
return [
|
|
2948
2968
|
p(c, { class: "w-100" }, {
|
|
2949
2969
|
default: f(() => {
|
|
2950
|
-
var
|
|
2970
|
+
var _;
|
|
2951
2971
|
return [
|
|
2952
2972
|
s("div", Xr, [
|
|
2953
2973
|
s("div", $r, [
|
|
2954
|
-
s("div", null, m((
|
|
2974
|
+
s("div", null, m((_ = o.station) == null ? void 0 : _.name), 1)
|
|
2955
2975
|
]),
|
|
2956
2976
|
p(l, {
|
|
2957
2977
|
icon: "",
|
|
@@ -2975,8 +2995,8 @@ function Ts(t, e, o, i, a, r) {
|
|
|
2975
2995
|
_: 1
|
|
2976
2996
|
}),
|
|
2977
2997
|
p(n, { class: "w-100" }),
|
|
2978
|
-
s("div",
|
|
2979
|
-
s("div",
|
|
2998
|
+
s("div", Jr, [
|
|
2999
|
+
s("div", Qr, [
|
|
2980
3000
|
s("div", es, [
|
|
2981
3001
|
s("div", ts, [
|
|
2982
3002
|
(y(), S("svg", os, [
|
|
@@ -2991,7 +3011,7 @@ function Ts(t, e, o, i, a, r) {
|
|
|
2991
3011
|
s("div", is, [
|
|
2992
3012
|
s("div", rs, [
|
|
2993
3013
|
s("div", ss, m(t.$t("tide.region")), 1),
|
|
2994
|
-
s("div", ls, m(((b = o.station) == null ? void 0 : b.Country) ?? ((
|
|
3014
|
+
s("div", ls, m(((b = o.station) == null ? void 0 : b.Country) ?? ((w = o.station) == null ? void 0 : w.city) ?? "-"), 1)
|
|
2995
3015
|
]),
|
|
2996
3016
|
s("div", ns, [
|
|
2997
3017
|
s("div", cs, m(t.$t("tide.position")), 1),
|
|
@@ -3018,7 +3038,7 @@ function Ts(t, e, o, i, a, r) {
|
|
|
3018
3038
|
s("div", ws, [
|
|
3019
3039
|
p(u, {
|
|
3020
3040
|
modelValue: a.currentIndex,
|
|
3021
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
3041
|
+
"onUpdate:modelValue": e[0] || (e[0] = (_) => a.currentIndex = _),
|
|
3022
3042
|
class: "w-100 gray-bg-1 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
|
|
3023
3043
|
density: "compact",
|
|
3024
3044
|
group: "",
|
|
@@ -3027,15 +3047,15 @@ function Ts(t, e, o, i, a, r) {
|
|
|
3027
3047
|
rounded: "1"
|
|
3028
3048
|
}, {
|
|
3029
3049
|
default: f(() => [
|
|
3030
|
-
(y(!0), S(be, null, we(r.dateList, (
|
|
3050
|
+
(y(!0), S(be, null, we(r.dateList, (_) => (y(), R(l, {
|
|
3031
3051
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
3032
3052
|
density: "compact",
|
|
3033
3053
|
color: "primary",
|
|
3034
3054
|
height: "26",
|
|
3035
|
-
value:
|
|
3055
|
+
value: _.index
|
|
3036
3056
|
}, {
|
|
3037
3057
|
default: f(() => [
|
|
3038
|
-
K(m(
|
|
3058
|
+
K(m(_.label), 1)
|
|
3039
3059
|
]),
|
|
3040
3060
|
_: 2
|
|
3041
3061
|
}, 1032, ["value"]))), 256))
|
|
@@ -3050,12 +3070,12 @@ function Ts(t, e, o, i, a, r) {
|
|
|
3050
3070
|
s("th", ks, m(t.$t("time.time")) + " ( LT )", 1),
|
|
3051
3071
|
s("th", zs, m(t.$t("tide.height")) + " ( m )", 1)
|
|
3052
3072
|
]),
|
|
3053
|
-
(y(!0), S(be, null, we(a.tideTableData, (
|
|
3073
|
+
(y(!0), S(be, null, we(a.tideTableData, (_, g) => {
|
|
3054
3074
|
var P;
|
|
3055
3075
|
return y(), S("tr", { key: g }, [
|
|
3056
|
-
s("td", Ls, m(t.$t(`tide.${(P =
|
|
3057
|
-
s("td", Ps, m(r.computeLocalTime(
|
|
3058
|
-
s("td", Cs, m((
|
|
3076
|
+
s("td", Ls, m(t.$t(`tide.${(P = _ == null ? void 0 : _.type) == null ? void 0 : P.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
|
|
3077
|
+
s("td", Ps, m(r.computeLocalTime(_ == null ? void 0 : _.date, o.station, "MM-DD HH:mm")), 1),
|
|
3078
|
+
s("td", Cs, m((_ == null ? void 0 : _.height) ?? "-") + " m", 1)
|
|
3059
3079
|
]);
|
|
3060
3080
|
}), 128))
|
|
3061
3081
|
])
|
|
@@ -3133,7 +3153,7 @@ const Ms = {
|
|
|
3133
3153
|
if (e.properties) {
|
|
3134
3154
|
this.showInfo = !0, this.hoverStation = e.properties, this.hoverStation.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.hoverStation.lng = e.geometry.coordinates[0], this.hoverStation.lat = e.geometry.coordinates[1], (o = this.marker) == null || o.remove();
|
|
3135
3155
|
const a = (i = document.getElementById("idmTidalInfo")) == null ? void 0 : i.cloneNode(!0);
|
|
3136
|
-
this.marker = new
|
|
3156
|
+
this.marker = new xe.Marker(a).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -60]).addTo(this.map);
|
|
3137
3157
|
}
|
|
3138
3158
|
},
|
|
3139
3159
|
handleLeave() {
|
|
@@ -3146,7 +3166,7 @@ const Ms = {
|
|
|
3146
3166
|
}
|
|
3147
3167
|
}, Is = { class: "station-box d-flex flex-column justify-center align-start ga-1" }, Ds = { class: "d-flex justify-start align-center" }, As = { class: "d-flex justify-start align-center" }, Rs = { class: "text-label" };
|
|
3148
3168
|
function Os(t, e, o, i, a, r) {
|
|
3149
|
-
const l =
|
|
3169
|
+
const l = x("v-card-text"), c = x("v-card"), n = x("TideDetail");
|
|
3150
3170
|
return y(), S("div", null, [
|
|
3151
3171
|
Ue(p(c, { id: "idmTidalInfo" }, {
|
|
3152
3172
|
default: f(() => [
|
|
@@ -4295,7 +4315,7 @@ const Gs = {
|
|
|
4295
4315
|
if (e.properties.id) {
|
|
4296
4316
|
this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
|
|
4297
4317
|
const r = (a = document.getElementById("idmFollowPortInfo")) == null ? void 0 : a.cloneNode(!0);
|
|
4298
|
-
this.marker = new
|
|
4318
|
+
this.marker = new xe.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
|
|
4299
4319
|
}
|
|
4300
4320
|
},
|
|
4301
4321
|
handleLeave() {
|
|
@@ -4308,7 +4328,7 @@ const Gs = {
|
|
|
4308
4328
|
}
|
|
4309
4329
|
}, Us = { class: "port-box d-flex flex-column justify-center align-start ga-1" }, Ws = { class: "d-flex justify-start align-center text-label" }, Vs = { class: "d-flex justify-start align-center text-label" };
|
|
4310
4330
|
function Zs(t, e, o, i, a, r) {
|
|
4311
|
-
const l =
|
|
4331
|
+
const l = x("v-card-text"), c = x("v-card"), n = x("PortDetail");
|
|
4312
4332
|
return y(), S("div", null, [
|
|
4313
4333
|
Ue(p(c, {
|
|
4314
4334
|
id: "idmFollowPortInfo",
|
|
@@ -4455,13 +4475,13 @@ const qs = {
|
|
|
4455
4475
|
if (e.properties) {
|
|
4456
4476
|
const b = e.properties;
|
|
4457
4477
|
b.lng = e.geometry.coordinates[0], b.lat = e.geometry.coordinates[1];
|
|
4458
|
-
const
|
|
4478
|
+
const w = M(), _ = (o = M(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), g = {
|
|
4459
4479
|
lat: b.lat,
|
|
4460
4480
|
lng: b.lng,
|
|
4461
4481
|
datetime: this.realTime,
|
|
4462
4482
|
forecastModel: this.forecastModel
|
|
4463
4483
|
};
|
|
4464
|
-
|
|
4484
|
+
_ >= 0 ? (l = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || l.fetchMeteoData(g) : (h = (u = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : u.idmSpot) == null || h.fetchHistoryData(g);
|
|
4465
4485
|
}
|
|
4466
4486
|
},
|
|
4467
4487
|
handleHover(t) {
|
|
@@ -4471,7 +4491,7 @@ const qs = {
|
|
|
4471
4491
|
if (e.properties.id) {
|
|
4472
4492
|
this.showInfo = !0, this.position = e.properties, (o = this.marker) == null || o.remove();
|
|
4473
4493
|
const i = document.getElementById("idmFollowPositionInfo").cloneNode(!0);
|
|
4474
|
-
this.marker = new
|
|
4494
|
+
this.marker = new xe.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
|
|
4475
4495
|
}
|
|
4476
4496
|
},
|
|
4477
4497
|
handleLeave() {
|
|
@@ -4483,8 +4503,8 @@ const qs = {
|
|
|
4483
4503
|
key: 0,
|
|
4484
4504
|
class: "d-flex justify-start align-center text-label"
|
|
4485
4505
|
};
|
|
4486
|
-
function
|
|
4487
|
-
const l =
|
|
4506
|
+
function Js(t, e, o, i, a, r) {
|
|
4507
|
+
const l = x("v-card-text"), c = x("v-card");
|
|
4488
4508
|
return Ue((y(), R(c, {
|
|
4489
4509
|
id: "idmFollowPositionInfo",
|
|
4490
4510
|
ref: "idmFollowPositionInfo"
|
|
@@ -4510,7 +4530,7 @@ function Qs(t, e, o, i, a, r) {
|
|
|
4510
4530
|
[We, a.showInfo]
|
|
4511
4531
|
]);
|
|
4512
4532
|
}
|
|
4513
|
-
const
|
|
4533
|
+
const Qs = /* @__PURE__ */ Y(qs, [["render", Js], ["__scopeId", "data-v-cd6c9f7e"]]);
|
|
4514
4534
|
const el = {
|
|
4515
4535
|
name: "IdmOtherLayerr",
|
|
4516
4536
|
components: {
|
|
@@ -4531,7 +4551,7 @@ const el = {
|
|
|
4531
4551
|
IdmIceAreas: Ns,
|
|
4532
4552
|
IdmLatLng: qa,
|
|
4533
4553
|
IdmFollowPort: Ys,
|
|
4534
|
-
IdmFollowPosition:
|
|
4554
|
+
IdmFollowPosition: Qs
|
|
4535
4555
|
},
|
|
4536
4556
|
props: {
|
|
4537
4557
|
map: {
|
|
@@ -4681,8 +4701,8 @@ const el = {
|
|
|
4681
4701
|
})
|
|
4682
4702
|
);
|
|
4683
4703
|
(await Promise.all(l)).map((n) => {
|
|
4684
|
-
var b,
|
|
4685
|
-
const u = ((b = n == null ? void 0 : n.data) == null ? void 0 : b.data) || (n == null ? void 0 : n.data), h = (
|
|
4704
|
+
var b, w, _;
|
|
4705
|
+
const u = ((b = n == null ? void 0 : n.data) == null ? void 0 : b.data) || (n == null ? void 0 : n.data), h = (_ = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : _.key;
|
|
4686
4706
|
this.otherLayers[h] = u;
|
|
4687
4707
|
});
|
|
4688
4708
|
}
|
|
@@ -4720,8 +4740,8 @@ const el = {
|
|
|
4720
4740
|
class: "border rounded-sm"
|
|
4721
4741
|
}, dl = { class: "text-body-2 text-center pt-1" };
|
|
4722
4742
|
function hl(t, e, o, i, a, r) {
|
|
4723
|
-
var $, ne, se,
|
|
4724
|
-
const l =
|
|
4743
|
+
var $, ne, se, Q, ae, he, ce, pe, ge;
|
|
4744
|
+
const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), u = x("VCardItem"), h = x("VCheckbox"), b = x("VCardText"), w = x("VCard"), _ = x("IdmLatLng"), g = x("IdmTerminator"), P = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"), I = x("IdmTideStations"), L = x("IdmEcaZone"), z = x("IdmWarZone"), v = x("IdmGmdssArea"), C = x("IdmLoadLine"), k = x("IdmWorldMarine"), A = x("IdmVRA"), N = x("IdmSpecialArea"), V = x("IdmWorld12nm"), Z = x("IdmChinaRoute"), W = x("IdmIceAreas"), ee = x("IdmFollowPort"), J = x("IdmFollowPosition");
|
|
4725
4745
|
return y(), S("div", tl, [
|
|
4726
4746
|
s("div", {
|
|
4727
4747
|
class: "menu-bar-box transition px-1 rounded",
|
|
@@ -4770,7 +4790,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4770
4790
|
}, 8, ["onClick"])
|
|
4771
4791
|
]),
|
|
4772
4792
|
s("div", il, [
|
|
4773
|
-
p(
|
|
4793
|
+
p(w, {
|
|
4774
4794
|
class: "block-bg mx-auto mb-3",
|
|
4775
4795
|
elevation: "0"
|
|
4776
4796
|
}, {
|
|
@@ -4823,7 +4843,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4823
4843
|
]),
|
|
4824
4844
|
_: 1
|
|
4825
4845
|
}),
|
|
4826
|
-
p(
|
|
4846
|
+
p(w, {
|
|
4827
4847
|
class: "block-bg mx-auto mb-3",
|
|
4828
4848
|
elevation: "0"
|
|
4829
4849
|
}, {
|
|
@@ -4862,7 +4882,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4862
4882
|
]),
|
|
4863
4883
|
_: 1
|
|
4864
4884
|
}),
|
|
4865
|
-
p(
|
|
4885
|
+
p(w, {
|
|
4866
4886
|
class: "block-bg mx-auto mb-3",
|
|
4867
4887
|
elevation: "0"
|
|
4868
4888
|
}, {
|
|
@@ -4901,7 +4921,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4901
4921
|
]),
|
|
4902
4922
|
_: 1
|
|
4903
4923
|
}),
|
|
4904
|
-
p(
|
|
4924
|
+
p(w, {
|
|
4905
4925
|
class: "block-bg mx-auto mb-3",
|
|
4906
4926
|
elevation: "0"
|
|
4907
4927
|
}, {
|
|
@@ -4952,7 +4972,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4952
4972
|
})
|
|
4953
4973
|
])
|
|
4954
4974
|
], 6),
|
|
4955
|
-
o.map ? (y(), R(
|
|
4975
|
+
o.map ? (y(), R(_, B({
|
|
4956
4976
|
key: 0,
|
|
4957
4977
|
map: o.map,
|
|
4958
4978
|
"menu-toggle": o.menuToggle,
|
|
@@ -4962,12 +4982,12 @@ function hl(t, e, o, i, a, r) {
|
|
|
4962
4982
|
key: 1,
|
|
4963
4983
|
map: o.map,
|
|
4964
4984
|
area: ($ = a.otherLayers) == null ? void 0 : $["day-night"]
|
|
4965
|
-
}, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
|
|
4985
|
+
}, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : D("", !0),
|
|
4966
4986
|
o.map ? (y(), R(P, B({
|
|
4967
4987
|
key: 2,
|
|
4968
4988
|
map: o.map,
|
|
4969
4989
|
zone: (ne = a.otherLayers) == null ? void 0 : ne["time-zones"]
|
|
4970
|
-
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
4990
|
+
}, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone"])) : D("", !0),
|
|
4971
4991
|
o.map ? (y(), R(T, B({
|
|
4972
4992
|
key: 3,
|
|
4973
4993
|
ref: "idmPorts",
|
|
@@ -4981,7 +5001,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
4981
5001
|
o.map ? (y(), R(O, B({
|
|
4982
5002
|
key: 4,
|
|
4983
5003
|
map: o.map,
|
|
4984
|
-
zone: (
|
|
5004
|
+
zone: (Q = a.otherLayers) == null ? void 0 : Q["alert-zones"]
|
|
4985
5005
|
}, t.$attrs, {
|
|
4986
5006
|
"before-layer": "empty-layer-3",
|
|
4987
5007
|
theme: o.theme
|
|
@@ -5003,7 +5023,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
5003
5023
|
map: o.map,
|
|
5004
5024
|
zone: (ae = a.otherLayers) == null ? void 0 : ae["eca-zones"]
|
|
5005
5025
|
}, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
|
|
5006
|
-
o.map ? (y(), R(
|
|
5026
|
+
o.map ? (y(), R(z, B({
|
|
5007
5027
|
key: 7,
|
|
5008
5028
|
map: o.map,
|
|
5009
5029
|
zone: (he = a.otherLayers) == null ? void 0 : he["war-zones"]
|
|
@@ -5018,7 +5038,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
5018
5038
|
map: o.map,
|
|
5019
5039
|
show: a.checkList.includes("load-lines")
|
|
5020
5040
|
}, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
|
|
5021
|
-
o.map ? (y(), R(
|
|
5041
|
+
o.map ? (y(), R(k, B({
|
|
5022
5042
|
key: 10,
|
|
5023
5043
|
map: o.map,
|
|
5024
5044
|
token: o.token,
|
|
@@ -5061,7 +5081,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
5061
5081
|
"forecast-model": o.forecastModel,
|
|
5062
5082
|
realTime: o.realTime
|
|
5063
5083
|
}, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : D("", !0),
|
|
5064
|
-
o.map ? (y(), R(
|
|
5084
|
+
o.map ? (y(), R(J, B({
|
|
5065
5085
|
key: 17,
|
|
5066
5086
|
ref: "idmFollowPosition",
|
|
5067
5087
|
map: o.map,
|
|
@@ -5083,7 +5103,7 @@ class Io {
|
|
|
5083
5103
|
de(this, "rampColorCanvas");
|
|
5084
5104
|
de(this, "particleCanvas");
|
|
5085
5105
|
de(this, "ratio");
|
|
5086
|
-
this.map = e, this.mercator = new
|
|
5106
|
+
this.map = e, this.mercator = new Qa(), 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;
|
|
5087
5107
|
}
|
|
5088
5108
|
/**
|
|
5089
5109
|
* 转换为[-180, 180]的经度,且包含转换次数
|
|
@@ -5122,8 +5142,8 @@ class Io {
|
|
|
5122
5142
|
const e = (g = this.map) == null ? void 0 : g.getBounds();
|
|
5123
5143
|
if (!e)
|
|
5124
5144
|
return [];
|
|
5125
|
-
const o = ((P = this.map) == null ? void 0 : P.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, l] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [u, h] = this.mercator.px([r, i[1]], o), [b,
|
|
5126
|
-
return [b,
|
|
5145
|
+
const o = ((P = this.map) == null ? void 0 : P.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, l] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [u, h] = this.mercator.px([r, i[1]], o), [b, w] = this.mercator.px([c, a[1]], o), _ = Math.round(this.mercator.size * Math.pow(2, o) * (l + n));
|
|
5146
|
+
return [b, w, u + _, h];
|
|
5127
5147
|
}
|
|
5128
5148
|
/**
|
|
5129
5149
|
* [视窗边界像素宽度]
|
|
@@ -5306,9 +5326,9 @@ class Fe {
|
|
|
5306
5326
|
sRange: o.getUniformLocation(i, "u_range_s")
|
|
5307
5327
|
};
|
|
5308
5328
|
h.resolution && o.uniform2f(h.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), h.image && o.uniform1i(h.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), h.color && o.uniform1i(h.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (h.uvRange && o.uniform2f(h.uvRange, c.uvRange[0], c.uvRange[1]), h.sRange && o.uniform2f(h.sRange, c.sRange[0], c.sRange[1])), h.scale && o.uniform1f(h.scale, (c == null ? void 0 : c.scale) || 1);
|
|
5309
|
-
const b = e.getBoundPixel(),
|
|
5310
|
-
for (const g of
|
|
5311
|
-
const P = (g[0] - b[0]) * e.ratio, T = (g[1] - b[3]) * e.ratio, O = g[2] * e.ratio, [I, L,
|
|
5329
|
+
const b = e.getBoundPixel(), w = e.map.getZoom() + 1, _ = e.getWorldCopy(b, w);
|
|
5330
|
+
for (const g of _) {
|
|
5331
|
+
const P = (g[0] - b[0]) * e.ratio, T = (g[1] - b[3]) * e.ratio, O = g[2] * e.ratio, [I, L, z, v] = [P, O + P, T, O + T], C = new Float32Array([I, z, L, z, I, v, I, v, L, z, L, v]);
|
|
5312
5332
|
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
5313
5333
|
}
|
|
5314
5334
|
} catch (h) {
|
|
@@ -6013,8 +6033,8 @@ const vl = /* @__PURE__ */ Y(bl, [["render", xl]]), _l = {
|
|
|
6013
6033
|
n.src = "data:image/svg+xml;base64," + window.btoa(u);
|
|
6014
6034
|
const h = [n];
|
|
6015
6035
|
let b = 0;
|
|
6016
|
-
h.forEach((
|
|
6017
|
-
|
|
6036
|
+
h.forEach((w) => {
|
|
6037
|
+
w.onload = () => {
|
|
6018
6038
|
b++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", n), b === 1 && this.map.addLayer(
|
|
6019
6039
|
{
|
|
6020
6040
|
id: this.directionLayer,
|
|
@@ -6783,7 +6803,7 @@ const Nl = /* @__PURE__ */ Y(Bl, [["render", jl], ["__scopeId", "data-v-d47b8b5c
|
|
|
6783
6803
|
};
|
|
6784
6804
|
function Gl(t, e, o, i, a, r) {
|
|
6785
6805
|
var n;
|
|
6786
|
-
const l =
|
|
6806
|
+
const l = x("VBtn"), c = x("VTooltip");
|
|
6787
6807
|
return (n = o.prmsl) != null && n.active ? (y(), S("div", Hl, [
|
|
6788
6808
|
s("div", {
|
|
6789
6809
|
class: "menu-bar-box pa-1 rounded",
|
|
@@ -7044,7 +7064,7 @@ function $l(t, e, o, i, a, r) {
|
|
|
7044
7064
|
])) : D("", !0);
|
|
7045
7065
|
}
|
|
7046
7066
|
const Kl = /* @__PURE__ */ Y(ql, [["render", $l], ["__scopeId", "data-v-dcedee39"]]);
|
|
7047
|
-
const
|
|
7067
|
+
const Jl = {
|
|
7048
7068
|
name: "IdmThickness",
|
|
7049
7069
|
props: {
|
|
7050
7070
|
factor: {
|
|
@@ -7140,10 +7160,10 @@ const Ql = {
|
|
|
7140
7160
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
7141
7161
|
}
|
|
7142
7162
|
}
|
|
7143
|
-
},
|
|
7163
|
+
}, Ql = { key: 0 };
|
|
7144
7164
|
function en(t, e, o, i, a, r) {
|
|
7145
7165
|
var l;
|
|
7146
|
-
return (l = o.factor) != null && l.active ? (y(), S("div",
|
|
7166
|
+
return (l = o.factor) != null && l.active ? (y(), S("div", Ql, [
|
|
7147
7167
|
s("div", {
|
|
7148
7168
|
class: "legend-bars-gl4 ice-thickness",
|
|
7149
7169
|
style: ie({ right: a.right + "px" })
|
|
@@ -7158,7 +7178,7 @@ function en(t, e, o, i, a, r) {
|
|
|
7158
7178
|
]), 4)
|
|
7159
7179
|
])) : D("", !0);
|
|
7160
7180
|
}
|
|
7161
|
-
const tn = /* @__PURE__ */ Y(
|
|
7181
|
+
const tn = /* @__PURE__ */ Y(Jl, [["render", en]]);
|
|
7162
7182
|
const on = {
|
|
7163
7183
|
name: "IdmPrecip3h",
|
|
7164
7184
|
props: {
|
|
@@ -7876,11 +7896,11 @@ const wn = {
|
|
|
7876
7896
|
(t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
|
|
7877
7897
|
},
|
|
7878
7898
|
async fetchWeatherLayers(t = {}) {
|
|
7879
|
-
var a, r, l, c, n, u, h, b,
|
|
7899
|
+
var a, r, l, c, n, u, h, b, w;
|
|
7880
7900
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
7881
7901
|
let o = 0, i = 0;
|
|
7882
7902
|
if (this.map) {
|
|
7883
|
-
const
|
|
7903
|
+
const _ = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, g = (r = this.map) == null ? void 0 : r.getBounds(), P = `${g._sw.lng},${g._sw.lat},${g._ne.lng},${g._ne.lat}`;
|
|
7884
7904
|
if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
|
|
7885
7905
|
const T = To.WEATHER_LAYERS.find((O) => {
|
|
7886
7906
|
var I;
|
|
@@ -7892,7 +7912,7 @@ const wn = {
|
|
|
7892
7912
|
let T = this.weatherWeight;
|
|
7893
7913
|
if (T > 0) {
|
|
7894
7914
|
const O = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
|
|
7895
|
-
`${O}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${
|
|
7915
|
+
`${O}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${_}&bbox=${P}&t=${this.realTime}`,
|
|
7896
7916
|
{
|
|
7897
7917
|
headers: {
|
|
7898
7918
|
Authorization: this.defaultMeteoToken
|
|
@@ -7900,46 +7920,46 @@ const wn = {
|
|
|
7900
7920
|
}
|
|
7901
7921
|
);
|
|
7902
7922
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((c = I == null ? void 0 : I.data) == null ? void 0 : c.code) === 0) {
|
|
7903
|
-
const L = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data,
|
|
7923
|
+
const L = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, z = [];
|
|
7904
7924
|
for (const C in L)
|
|
7905
|
-
|
|
7925
|
+
z.push(
|
|
7906
7926
|
Se.get(L[C], {
|
|
7907
7927
|
headers: {
|
|
7908
7928
|
Authorization: this.defaultMeteoToken,
|
|
7909
7929
|
key: C
|
|
7910
7930
|
},
|
|
7911
7931
|
responseType: /\.(jpg|png)$/.test(L[C]) ? "blob" : "json"
|
|
7912
|
-
}).catch((
|
|
7913
|
-
console.log(`[${C}] fetch layer error: ${
|
|
7932
|
+
}).catch((k) => {
|
|
7933
|
+
console.log(`[${C}] fetch layer error: ${k}`);
|
|
7914
7934
|
})
|
|
7915
7935
|
);
|
|
7916
|
-
const v = await Promise.all(
|
|
7936
|
+
const v = await Promise.all(z);
|
|
7917
7937
|
this.weatherLayers = {}, v.map((C) => {
|
|
7918
7938
|
var N, V, Z, W;
|
|
7919
|
-
const
|
|
7939
|
+
const k = ((N = C == null ? void 0 : C.data) == null ? void 0 : N.data) || (C == null ? void 0 : C.data);
|
|
7920
7940
|
let A = (Z = (V = C == null ? void 0 : C.config) == null ? void 0 : V.headers) == null ? void 0 : Z.key;
|
|
7921
|
-
A &&
|
|
7922
|
-
raw:
|
|
7941
|
+
A && k && (this.weatherLayers[A] = {
|
|
7942
|
+
raw: k,
|
|
7923
7943
|
type: ((W = C == null ? void 0 : C.config) == null ? void 0 : W.responseType) === "blob" ? "image" : "json",
|
|
7924
7944
|
etime: I.data.etime
|
|
7925
7945
|
});
|
|
7926
7946
|
});
|
|
7927
7947
|
}
|
|
7928
7948
|
if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather layers elapsed: ", i, ", total: ", o += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
7929
|
-
const L = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw,
|
|
7949
|
+
const L = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw, z = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
|
|
7930
7950
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
7931
7951
|
type: "json",
|
|
7932
7952
|
direction: L,
|
|
7933
|
-
height: { raw:
|
|
7953
|
+
height: { raw: z },
|
|
7934
7954
|
etime: I.data.etime
|
|
7935
7955
|
};
|
|
7936
7956
|
}
|
|
7937
7957
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
7938
|
-
const L = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw,
|
|
7958
|
+
const L = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, z = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
|
|
7939
7959
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
7940
7960
|
type: "json",
|
|
7941
7961
|
direction: L,
|
|
7942
|
-
speed: { raw:
|
|
7962
|
+
speed: { raw: z },
|
|
7943
7963
|
etime: I.data.etime
|
|
7944
7964
|
};
|
|
7945
7965
|
}
|
|
@@ -7996,253 +8016,256 @@ const wn = {
|
|
|
7996
8016
|
);
|
|
7997
8017
|
},
|
|
7998
8018
|
handleDrawWeather4Json() {
|
|
7999
|
-
var
|
|
8019
|
+
var r, l, c, n, u, h, b;
|
|
8000
8020
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
8001
8021
|
let e = 0, o = 0;
|
|
8002
|
-
const i = (
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
let
|
|
8007
|
-
if (T === "
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8022
|
+
const i = (r = this.map) == null ? void 0 : r.getBounds(), a = (l = this.map) == null ? void 0 : l.getZoom();
|
|
8023
|
+
if (i && a) {
|
|
8024
|
+
const w = X.convertToStdLng(i._sw.lng), _ = X.convertToStdLng(i._ne.lng), g = Math.floor(i._sw.lat), P = Math.ceil(i._ne.lat);
|
|
8025
|
+
for (const T in this.weatherLayers) {
|
|
8026
|
+
let O = !1;
|
|
8027
|
+
if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
|
|
8028
|
+
let I = [];
|
|
8029
|
+
if (T === "swell") {
|
|
8030
|
+
O = !0;
|
|
8031
|
+
const L = ((c = this.weatherLayers[T]) == null ? void 0 : c.direction) || {};
|
|
8032
|
+
for (const v in L)
|
|
8033
|
+
if (v > g && v < P && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8034
|
+
const C = L[v].lng;
|
|
8035
|
+
w > _ ? C.forEach((k, A) => {
|
|
8036
|
+
var N, V, Z, W, ee, J;
|
|
8037
|
+
if (a < 2) {
|
|
8038
|
+
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
8039
|
+
const $ = H.point([k, v], {
|
|
8040
|
+
val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
|
|
8041
|
+
spd: (Z = L[v].spd) == null ? void 0 : Z[A]
|
|
8042
|
+
});
|
|
8043
|
+
I.push($);
|
|
8044
|
+
}
|
|
8045
|
+
} else if ((k >= w && k <= 180 || k >= -180 && k <= _) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8046
|
+
const $ = H.point([k, v], {
|
|
8047
|
+
val: ((W = L[v].val) == null ? void 0 : W[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
|
|
8048
|
+
spd: (J = L[v].spd) == null ? void 0 : J[A]
|
|
8020
8049
|
});
|
|
8021
8050
|
I.push($);
|
|
8022
8051
|
}
|
|
8023
|
-
}
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
if (
|
|
8034
|
-
const $ = H.point([
|
|
8035
|
-
val: ((
|
|
8036
|
-
spd: (
|
|
8052
|
+
}) : C.forEach((k, A) => {
|
|
8053
|
+
var N, V, Z, W, ee, J;
|
|
8054
|
+
if (w < 2) {
|
|
8055
|
+
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
8056
|
+
const $ = H.point([k, v], {
|
|
8057
|
+
val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
|
|
8058
|
+
spd: (Z = L[v].spd) == null ? void 0 : Z[A]
|
|
8059
|
+
});
|
|
8060
|
+
I.push($);
|
|
8061
|
+
}
|
|
8062
|
+
} else if (k >= w && k <= _ && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8063
|
+
const $ = H.point([k, v], {
|
|
8064
|
+
val: ((W = L[v].val) == null ? void 0 : W[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
|
|
8065
|
+
spd: (J = L[v].spd) == null ? void 0 : J[A]
|
|
8037
8066
|
});
|
|
8038
8067
|
I.push($);
|
|
8039
8068
|
}
|
|
8040
|
-
}
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8069
|
+
});
|
|
8070
|
+
}
|
|
8071
|
+
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
|
|
8072
|
+
const z = this.weatherLayers[T].height;
|
|
8073
|
+
if (z) {
|
|
8074
|
+
if (!z.data) {
|
|
8075
|
+
const v = [];
|
|
8076
|
+
for (const C in (n = z.raw) == null ? void 0 : n.LineString) {
|
|
8077
|
+
const k = z.raw.LineString[C];
|
|
8078
|
+
for (const A of k)
|
|
8079
|
+
v.push(
|
|
8080
|
+
H.lineString(A, {
|
|
8081
|
+
val: Number(C)
|
|
8082
|
+
})
|
|
8083
|
+
);
|
|
8084
|
+
z.data = H.featureCollection(v);
|
|
8046
8085
|
}
|
|
8047
|
-
});
|
|
8048
|
-
}
|
|
8049
|
-
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
|
|
8050
|
-
const k = this.weatherLayers[T].height;
|
|
8051
|
-
if (k) {
|
|
8052
|
-
if (!k.data) {
|
|
8053
|
-
const v = [];
|
|
8054
|
-
for (const C in (x = k.raw) == null ? void 0 : x.LineString) {
|
|
8055
|
-
const _ = k.raw.LineString[C];
|
|
8056
|
-
for (const A of _)
|
|
8057
|
-
v.push(
|
|
8058
|
-
H.lineString(A, {
|
|
8059
|
-
val: Number(C)
|
|
8060
|
-
})
|
|
8061
|
-
);
|
|
8062
|
-
k.data = H.featureCollection(v);
|
|
8063
8086
|
}
|
|
8087
|
+
if (z.data) {
|
|
8088
|
+
const v = this.handleBboxClip(z.data, i);
|
|
8089
|
+
I = I.concat(v);
|
|
8090
|
+
}
|
|
8091
|
+
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
|
|
8064
8092
|
}
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8093
|
+
} else if (T === "current") {
|
|
8094
|
+
O = !0;
|
|
8095
|
+
const L = ((u = this.weatherLayers[T]) == null ? void 0 : u.direction) || {};
|
|
8096
|
+
for (const v in L)
|
|
8097
|
+
if (v > g && v < P && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8098
|
+
const C = L[v].lng;
|
|
8099
|
+
w > _ ? C.forEach((k, A) => {
|
|
8100
|
+
var N, V, Z, W, ee, J;
|
|
8101
|
+
if (a < 2) {
|
|
8102
|
+
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
8103
|
+
const $ = H.point([k, v], {
|
|
8104
|
+
val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
|
|
8105
|
+
spd: (Z = L[v].spd) == null ? void 0 : Z[A]
|
|
8106
|
+
});
|
|
8107
|
+
I.push($);
|
|
8108
|
+
}
|
|
8109
|
+
} else if ((k >= w && k <= 180 || k >= -180 && k <= _) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8110
|
+
const $ = H.point([k, v], {
|
|
8111
|
+
val: ((W = L[v].val) == null ? void 0 : W[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
|
|
8112
|
+
spd: (J = L[v].spd) == null ? void 0 : J[A]
|
|
8084
8113
|
});
|
|
8085
8114
|
I.push($);
|
|
8086
8115
|
}
|
|
8087
|
-
}
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
if (
|
|
8098
|
-
const $ = H.point([
|
|
8099
|
-
val: ((
|
|
8100
|
-
spd: (
|
|
8116
|
+
}) : C.forEach((k, A) => {
|
|
8117
|
+
var N, V, Z, W, ee, J;
|
|
8118
|
+
if (w < 2) {
|
|
8119
|
+
if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
|
|
8120
|
+
const $ = H.point([k, v], {
|
|
8121
|
+
val: ((N = L[v].val) == null ? void 0 : N[A]) || ((V = L[v].dir) == null ? void 0 : V[A]),
|
|
8122
|
+
spd: (Z = L[v].spd) == null ? void 0 : Z[A]
|
|
8123
|
+
});
|
|
8124
|
+
I.push($);
|
|
8125
|
+
}
|
|
8126
|
+
} else if (k >= w && k <= _ && (!(a <= this.zoom) || k % (a < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8127
|
+
const $ = H.point([k, v], {
|
|
8128
|
+
val: ((W = L[v].val) == null ? void 0 : W[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
|
|
8129
|
+
spd: (J = L[v].spd) == null ? void 0 : J[A]
|
|
8101
8130
|
});
|
|
8102
8131
|
I.push($);
|
|
8103
8132
|
}
|
|
8104
|
-
}
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8133
|
+
});
|
|
8134
|
+
}
|
|
8135
|
+
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
|
|
8136
|
+
const z = this.weatherLayers[T].speed;
|
|
8137
|
+
if (z) {
|
|
8138
|
+
if (!z.data) {
|
|
8139
|
+
const C = [];
|
|
8140
|
+
for (const k in (h = z.raw) == null ? void 0 : h.Polygon) {
|
|
8141
|
+
const A = z.raw.Polygon[k];
|
|
8142
|
+
for (const N of A)
|
|
8143
|
+
C.push(
|
|
8144
|
+
H.polygon(N, {
|
|
8145
|
+
val: Number(k)
|
|
8146
|
+
})
|
|
8147
|
+
);
|
|
8110
8148
|
}
|
|
8111
|
-
|
|
8112
|
-
}
|
|
8113
|
-
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
|
|
8114
|
-
const k = this.weatherLayers[T].speed;
|
|
8115
|
-
if (k) {
|
|
8116
|
-
if (!k.data) {
|
|
8117
|
-
const C = [];
|
|
8118
|
-
for (const _ in (g = k.raw) == null ? void 0 : g.Polygon) {
|
|
8119
|
-
const A = k.raw.Polygon[_];
|
|
8120
|
-
for (const N of A)
|
|
8121
|
-
C.push(
|
|
8122
|
-
H.polygon(N, {
|
|
8123
|
-
val: Number(_)
|
|
8124
|
-
})
|
|
8125
|
-
);
|
|
8149
|
+
z.data = H.featureCollection(C);
|
|
8126
8150
|
}
|
|
8127
|
-
|
|
8151
|
+
const v = a < this.zoom ? z.data.features.filter((C) => C.properties.val > 0.5) : z.data.features;
|
|
8152
|
+
I = I.concat(v), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
|
|
8128
8153
|
}
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
|
|
8133
|
-
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
|
|
8154
|
+
} else if (T === "wind") {
|
|
8155
|
+
O = !0;
|
|
8156
|
+
const L = this.weatherLayers.wind.raw;
|
|
8157
|
+
for (const z in L)
|
|
8158
|
+
if (z > g && z < P && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8159
|
+
const v = L[z].lng;
|
|
8160
|
+
w > _ ? v.forEach((C, k) => {
|
|
8161
|
+
var A, N, V, Z;
|
|
8162
|
+
if (a < 2) {
|
|
8163
|
+
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
8164
|
+
const W = H.point([C, z], {
|
|
8165
|
+
dir: ((A = L[z].val) == null ? void 0 : A[k]) || ((N = L[z].dir) == null ? void 0 : N[k]),
|
|
8166
|
+
spd: L[z].spd[k]
|
|
8167
|
+
});
|
|
8168
|
+
I.push(W);
|
|
8169
|
+
}
|
|
8170
|
+
} else if ((C >= w && C <= 180 || C >= -180 && C <= _) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8171
|
+
const W = H.point([C, z], {
|
|
8172
|
+
dir: ((V = L[z].val) == null ? void 0 : V[k]) || ((Z = L[z].dir) == null ? void 0 : Z[k]),
|
|
8173
|
+
spd: L[z].spd[k]
|
|
8145
8174
|
});
|
|
8146
8175
|
I.push(W);
|
|
8147
8176
|
}
|
|
8148
|
-
}
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
if (
|
|
8159
|
-
const W = H.point([C,
|
|
8160
|
-
dir: ((
|
|
8161
|
-
spd: L[
|
|
8177
|
+
}) : v.forEach((C, k) => {
|
|
8178
|
+
var A, N, V, Z;
|
|
8179
|
+
if (a < 2) {
|
|
8180
|
+
if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
|
|
8181
|
+
const W = H.point([C, z], {
|
|
8182
|
+
dir: ((A = L[z].val) == null ? void 0 : A[k]) || ((N = L[z].dir) == null ? void 0 : N[k]),
|
|
8183
|
+
spd: L[z].spd[k]
|
|
8184
|
+
});
|
|
8185
|
+
I.push(W);
|
|
8186
|
+
}
|
|
8187
|
+
} else if (C >= w && C <= _ && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
|
|
8188
|
+
const W = H.point([C, z], {
|
|
8189
|
+
dir: ((V = L[z].val) == null ? void 0 : V[k]) || ((Z = L[z].dir) == null ? void 0 : Z[k]),
|
|
8190
|
+
spd: L[z].spd[k]
|
|
8162
8191
|
});
|
|
8163
8192
|
I.push(W);
|
|
8164
8193
|
}
|
|
8165
|
-
}
|
|
8166
|
-
const W = H.point([C, k], {
|
|
8167
|
-
dir: ((V = L[k].val) == null ? void 0 : V[_]) || ((Z = L[k].dir) == null ? void 0 : Z[_]),
|
|
8168
|
-
spd: L[k].spd[_]
|
|
8169
|
-
});
|
|
8170
|
-
I.push(W);
|
|
8171
|
-
}
|
|
8172
|
-
});
|
|
8173
|
-
}
|
|
8174
|
-
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", o, ", total: ", e += o);
|
|
8175
|
-
} else if (T === "sig-wave-height") {
|
|
8176
|
-
if (this.weatherLayers[T].data)
|
|
8177
|
-
I = this.weatherLayers[T].data;
|
|
8178
|
-
else {
|
|
8179
|
-
O = !0;
|
|
8180
|
-
const L = this.weatherLayers[T].raw;
|
|
8181
|
-
if (L) {
|
|
8182
|
-
const k = [];
|
|
8183
|
-
for (const v in L.Polygon) {
|
|
8184
|
-
const C = L.Polygon[v];
|
|
8185
|
-
for (const _ of C)
|
|
8186
|
-
k.push(
|
|
8187
|
-
H.polygon(_, {
|
|
8188
|
-
val: Number(v)
|
|
8189
|
-
})
|
|
8190
|
-
);
|
|
8191
|
-
}
|
|
8192
|
-
for (const v in L.MultiPolygon) {
|
|
8193
|
-
const C = L.MultiPolygon[v];
|
|
8194
|
-
for (const _ of C)
|
|
8195
|
-
k.push(
|
|
8196
|
-
H.multiPolygon(_, {
|
|
8197
|
-
val: Number(v)
|
|
8198
|
-
})
|
|
8199
|
-
);
|
|
8194
|
+
});
|
|
8200
8195
|
}
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8196
|
+
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", o, ", total: ", e += o);
|
|
8197
|
+
} else if (T === "sig-wave-height") {
|
|
8198
|
+
if (this.weatherLayers[T].data)
|
|
8199
|
+
I = this.weatherLayers[T].data;
|
|
8200
|
+
else {
|
|
8201
|
+
O = !0;
|
|
8202
|
+
const L = this.weatherLayers[T].raw;
|
|
8203
|
+
if (L) {
|
|
8204
|
+
const z = [];
|
|
8205
|
+
for (const v in L.Polygon) {
|
|
8206
|
+
const C = L.Polygon[v];
|
|
8207
|
+
for (const k of C)
|
|
8208
|
+
z.push(
|
|
8209
|
+
H.polygon(k, {
|
|
8210
|
+
val: Number(v)
|
|
8211
|
+
})
|
|
8212
|
+
);
|
|
8213
|
+
}
|
|
8214
|
+
for (const v in L.MultiPolygon) {
|
|
8215
|
+
const C = L.MultiPolygon[v];
|
|
8216
|
+
for (const k of C)
|
|
8217
|
+
z.push(
|
|
8218
|
+
H.multiPolygon(k, {
|
|
8219
|
+
val: Number(v)
|
|
8220
|
+
})
|
|
8221
|
+
);
|
|
8222
|
+
}
|
|
8223
|
+
for (const v in L.Point) {
|
|
8224
|
+
const C = L.Point[v];
|
|
8225
|
+
for (let k = 0; k < ((b = C.lng) == null ? void 0 : b.length); k++)
|
|
8226
|
+
z.push(
|
|
8227
|
+
H.point([C.lng[k], v], {
|
|
8228
|
+
val: Number(C.val[k])
|
|
8229
|
+
})
|
|
8230
|
+
);
|
|
8231
|
+
}
|
|
8232
|
+
I = I.concat(z);
|
|
8209
8233
|
}
|
|
8210
|
-
I = I.concat(k);
|
|
8211
8234
|
}
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8235
|
+
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
|
|
8236
|
+
} else if (T === "prmsl") {
|
|
8237
|
+
if (this.weatherLayers[T].data)
|
|
8238
|
+
I = this.weatherLayers[T].data;
|
|
8239
|
+
else {
|
|
8240
|
+
O = !0;
|
|
8241
|
+
const L = this.weatherLayers[T].raw;
|
|
8242
|
+
if (L) {
|
|
8243
|
+
const z = [];
|
|
8244
|
+
for (const v in L.LineString) {
|
|
8245
|
+
const C = L.LineString[v];
|
|
8246
|
+
for (const k of C)
|
|
8247
|
+
z.push(
|
|
8248
|
+
H.lineString(k, {
|
|
8249
|
+
val: Number(v)
|
|
8250
|
+
})
|
|
8251
|
+
);
|
|
8252
|
+
}
|
|
8253
|
+
for (const v in L.Point)
|
|
8254
|
+
L.Point[v].lng.forEach((C, k) => {
|
|
8255
|
+
C = X.convertToStdLng(C), z.push(
|
|
8256
|
+
H.point([C, v], {
|
|
8257
|
+
val: L.Point[v].val[k],
|
|
8258
|
+
type: L.Point[v].type[k]
|
|
8259
|
+
})
|
|
8260
|
+
);
|
|
8261
|
+
});
|
|
8262
|
+
I = I.concat(z);
|
|
8230
8263
|
}
|
|
8231
|
-
for (const v in L.Point)
|
|
8232
|
-
L.Point[v].lng.forEach((C, _) => {
|
|
8233
|
-
C = X.convertToStdLng(C), k.push(
|
|
8234
|
-
H.point([C, v], {
|
|
8235
|
-
val: L.Point[v].val[_],
|
|
8236
|
-
type: L.Point[v].type[_]
|
|
8237
|
-
})
|
|
8238
|
-
);
|
|
8239
|
-
});
|
|
8240
|
-
I = I.concat(k);
|
|
8241
8264
|
}
|
|
8265
|
+
o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
|
|
8242
8266
|
}
|
|
8243
|
-
|
|
8267
|
+
I.length && (this.weatherLayers[T].data = H.featureCollection(I)), O && (this.weatherLayers[T].version = Math.random() + 1);
|
|
8244
8268
|
}
|
|
8245
|
-
I.length && (this.weatherLayers[T].data = H.featureCollection(I)), O && (this.weatherLayers[T].version = Math.random() + 1);
|
|
8246
8269
|
}
|
|
8247
8270
|
}
|
|
8248
8271
|
},
|
|
@@ -8282,10 +8305,10 @@ const wn = {
|
|
|
8282
8305
|
}, Rn = {
|
|
8283
8306
|
key: 1,
|
|
8284
8307
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
8285
|
-
}, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, jn = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label mb-3" }, Fn = { class: "text-body-1 font-weight-medium" }, Hn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label" }, Un = { class: "text-body-2 text-label mb-3" }, Wn = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Kn = { class: "text-body-2 text-label" },
|
|
8308
|
+
}, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, jn = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label mb-3" }, Fn = { class: "text-body-1 font-weight-medium" }, Hn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label" }, Un = { class: "text-body-2 text-label mb-3" }, Wn = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Kn = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label mb-3" }, Qn = { class: "text-body-1 py-2" }, ec = { class: "text-body-1 font-weight-medium" }, tc = { class: "text-body-2 text-label" }, oc = { class: "text-body-2 text-label" }, ac = { class: "text-body-2 text-label mb-3" };
|
|
8286
8309
|
function ic(t, e, o, i, a, r) {
|
|
8287
|
-
var
|
|
8288
|
-
const l =
|
|
8310
|
+
var Q, ae, he, ce, pe, ge, F, me, ve, Le, Pe, De, Ae, Re, _e;
|
|
8311
|
+
const l = x("VBtn"), c = x("VTooltip"), n = x("VCol"), u = x("VRow"), h = x("VCardText"), b = x("VDivider"), w = x("VCard"), _ = x("VSwitch"), g = x("VCardTitle"), P = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), I = x("VBtnToggle"), L = x("IdmWindBarb"), z = x("IdmSigWaveHeight"), v = x("IdmCurrentDirection"), C = x("IdmPrmsl"), k = x("IdmWindParticle"), A = x("IdmCurrentParticle"), N = x("IdmWave"), V = x("IdmSwell"), Z = x("IdmIceEdge"), W = x("IdmIceCover"), ee = x("IdmIceThickness"), J = x("IdmPrecip3h"), $ = x("IdmVisibility"), ne = x("IdmWaterTemp"), se = x("IdmTemp");
|
|
8289
8312
|
return y(), S("div", xn, [
|
|
8290
8313
|
s("div", {
|
|
8291
8314
|
class: "menu-bar-box transition pa-1",
|
|
@@ -8340,7 +8363,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8340
8363
|
_: 1
|
|
8341
8364
|
})
|
|
8342
8365
|
], 4),
|
|
8343
|
-
a.legendToggle ? (y(), R(
|
|
8366
|
+
a.legendToggle ? (y(), R(w, {
|
|
8344
8367
|
key: 0,
|
|
8345
8368
|
width: "435",
|
|
8346
8369
|
elevation: "16",
|
|
@@ -8453,7 +8476,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8453
8476
|
s("div", Mn, [
|
|
8454
8477
|
s("div", In, [
|
|
8455
8478
|
s("div", Dn, m(t.$t("weather.weather")), 1),
|
|
8456
|
-
p(
|
|
8479
|
+
p(_, {
|
|
8457
8480
|
modelValue: a.autoActive,
|
|
8458
8481
|
"onUpdate:modelValue": e[1] || (e[1] = (G) => a.autoActive = G),
|
|
8459
8482
|
class: "small-switch",
|
|
@@ -8480,7 +8503,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8480
8503
|
s("div", {
|
|
8481
8504
|
class: Ne(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
|
|
8482
8505
|
}, [
|
|
8483
|
-
p(
|
|
8506
|
+
p(w, {
|
|
8484
8507
|
class: "block-bg mx-auto mb-3",
|
|
8485
8508
|
elevation: "0"
|
|
8486
8509
|
}, {
|
|
@@ -8520,7 +8543,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8520
8543
|
]),
|
|
8521
8544
|
_: 1
|
|
8522
8545
|
}),
|
|
8523
|
-
p(
|
|
8546
|
+
p(w, {
|
|
8524
8547
|
class: "block-bg mx-auto mb-3",
|
|
8525
8548
|
elevation: "0"
|
|
8526
8549
|
}, {
|
|
@@ -8559,7 +8582,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8559
8582
|
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
|
|
8560
8583
|
a.renderKey === "wind-particle" && G.key === "wind-particle" ? (y(), S("div", An, [
|
|
8561
8584
|
s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
|
|
8562
|
-
p(
|
|
8585
|
+
p(_, {
|
|
8563
8586
|
modelValue: a.showWindParticle,
|
|
8564
8587
|
"onUpdate:modelValue": e[4] || (e[4] = (te) => a.showWindParticle = te),
|
|
8565
8588
|
label: "",
|
|
@@ -8574,7 +8597,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8574
8597
|
])) : D("", !0),
|
|
8575
8598
|
a.renderKey === "current-particle" && G.key === "current-particle" ? (y(), S("div", Rn, [
|
|
8576
8599
|
s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
|
|
8577
|
-
p(
|
|
8600
|
+
p(_, {
|
|
8578
8601
|
modelValue: a.showCurrentParticle,
|
|
8579
8602
|
"onUpdate:modelValue": e[5] || (e[5] = (te) => a.showCurrentParticle = te),
|
|
8580
8603
|
label: "",
|
|
@@ -8680,7 +8703,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8680
8703
|
]),
|
|
8681
8704
|
_: 1
|
|
8682
8705
|
}),
|
|
8683
|
-
p(
|
|
8706
|
+
p(w, {
|
|
8684
8707
|
class: "block-bg mx-auto mb-3",
|
|
8685
8708
|
elevation: "0"
|
|
8686
8709
|
}, {
|
|
@@ -8701,33 +8724,33 @@ function ic(t, e, o, i, a, r) {
|
|
|
8701
8724
|
}),
|
|
8702
8725
|
p(h, { class: "" }, {
|
|
8703
8726
|
default: f(() => {
|
|
8704
|
-
var G, te, He, Me, ue, fe, U, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke,
|
|
8727
|
+
var G, te, He, Me, ue, fe, U, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke, Je, Qe, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Ut, Wt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo;
|
|
8705
8728
|
return [
|
|
8706
8729
|
s("div", On, m(t.$t("weather.atmospheric")), 1),
|
|
8707
8730
|
s("div", Bn, m((He = (te = (G = a.models) == null ? void 0 : G.weather) == null ? void 0 : te.NOAA) == null ? void 0 : He.source) + " " + m((fe = (ue = (Me = a.models) == null ? void 0 : Me.weather) == null ? void 0 : ue.NOAA) == null ? void 0 : fe.spatialResolution) + m(t.$t("units.km")) + " " + m((re = (oe = (Ce = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : Ce.NOAA) == null ? void 0 : oe.meta) == null ? void 0 : re.days) + m(t.$t("units.days")), 1),
|
|
8708
8731
|
s("div", En, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
8709
8732
|
s("div", jn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((Ie = (ye = (j = (Oe = a.models) == null ? void 0 : Oe.weather) == null ? void 0 : j.NOAA) == null ? void 0 : ye.meta) == null ? void 0 : Ie.availabilityTime)), 1),
|
|
8710
|
-
s("div", Nn, m(t.$t("weather.
|
|
8711
|
-
s("div", Fn, m((Ye = (Ze = (Ve = a.models) == null ? void 0 : Ve.weather) == null ? void 0 : Ze.ECMWF) == null ? void 0 : Ye.source) + " " + m((Xe = (qe = (Te = a.models) == null ? void 0 : Te.weather) == null ? void 0 : qe.ECMWF) == null ? void 0 : Xe.spatialResolution) + m(t.$t("units.km")) + " " + m((
|
|
8733
|
+
s("div", Nn, m(t.$t("weather.referenceTime ")) + ": " + m(r.computeDateZ((q = (E = (Ee = (Be = a.models) == null ? void 0 : Be.weather) == null ? void 0 : Ee.NOAA) == null ? void 0 : E.meta) == null ? void 0 : q.initialisationTime)), 1),
|
|
8734
|
+
s("div", Fn, m((Ye = (Ze = (Ve = a.models) == null ? void 0 : Ve.weather) == null ? void 0 : Ze.ECMWF) == null ? void 0 : Ye.source) + " " + m((Xe = (qe = (Te = a.models) == null ? void 0 : Te.weather) == null ? void 0 : qe.ECMWF) == null ? void 0 : Xe.spatialResolution) + m(t.$t("units.km")) + " " + m((Qe = (Je = (Ke = ($e = a.models) == null ? void 0 : $e.weather) == null ? void 0 : Ke.ECMWF) == null ? void 0 : Je.meta) == null ? void 0 : Qe.days) + m(t.$t("units.days")), 1),
|
|
8712
8735
|
s("div", Hn, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8713
8736
|
s("div", Gn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((at = (ot = (tt = (et = a.models) == null ? void 0 : et.weather) == null ? void 0 : tt.ECMWF) == null ? void 0 : ot.meta) == null ? void 0 : at.availabilityTime)), 1),
|
|
8714
|
-
s("div", Un, m(t.$t("weather.
|
|
8737
|
+
s("div", Un, m(t.$t("weather.referenceTime ")) + ": " + m(r.computeDateZ((lt = (st = (rt = (it = a.models) == null ? void 0 : it.weather) == null ? void 0 : rt.ECMWF) == null ? void 0 : st.meta) == null ? void 0 : lt.initialisationTime)), 1),
|
|
8715
8738
|
p(b),
|
|
8716
8739
|
s("div", Wn, m(t.$t("weather.wave")), 1),
|
|
8717
8740
|
s("div", Vn, m((dt = (mt = (ct = (nt = a.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : dt.source) + " " + m((gt = (ut = (pt = (ht = a.models) == null ? void 0 : ht.marine) == null ? void 0 : pt.wave) == null ? void 0 : ut.NOAA) == null ? void 0 : gt.spatialResolution) + m(t.$t("units.km")) + " " + m((xt = (wt = (bt = (yt = (ft = a.models) == null ? void 0 : ft.marine) == null ? void 0 : yt.wave) == null ? void 0 : bt.NOAA) == null ? void 0 : wt.meta) == null ? void 0 : xt.days) + m(t.$t("units.days")), 1),
|
|
8718
8741
|
s("div", Zn, m(t.$t("weather.source")) + ": NOAA", 1),
|
|
8719
8742
|
s("div", Yn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((Lt = (zt = (kt = (_t = (vt = a.models) == null ? void 0 : vt.marine) == null ? void 0 : _t.wave) == null ? void 0 : kt.NOAA) == null ? void 0 : zt.meta) == null ? void 0 : Lt.availabilityTime)), 1),
|
|
8720
|
-
s("div", qn, m(t.$t("weather.
|
|
8743
|
+
s("div", qn, m(t.$t("weather.referenceTime ")) + ": " + m(r.computeDateZ((Mt = (St = (Tt = (Ct = (Pt = a.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Tt.NOAA) == null ? void 0 : St.meta) == null ? void 0 : Mt.initialisationTime)), 1),
|
|
8721
8744
|
s("div", Xn, m((Rt = (At = (Dt = (It = a.models) == null ? void 0 : It.marine) == null ? void 0 : Dt.wave) == null ? void 0 : At.ECMWF) == null ? void 0 : Rt.source) + " " + m((jt = (Et = (Bt = (Ot = a.models) == null ? void 0 : Ot.marine) == null ? void 0 : Bt.wave) == null ? void 0 : Et.ECMWF) == null ? void 0 : jt.spatialResolution) + m(t.$t("units.km")) + " " + m((Ut = (Gt = (Ht = (Ft = (Nt = a.models) == null ? void 0 : Nt.marine) == null ? void 0 : Ft.wave) == null ? void 0 : Ht.ECMWF) == null ? void 0 : Gt.meta) == null ? void 0 : Ut.days) + m(t.$t("units.days")), 1),
|
|
8722
8745
|
s("div", $n, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8723
8746
|
s("div", Kn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((qt = (Yt = (Zt = (Vt = (Wt = a.models) == null ? void 0 : Wt.marine) == null ? void 0 : Vt.wave) == null ? void 0 : Zt.ECMWF) == null ? void 0 : Yt.meta) == null ? void 0 : qt.availabilityTime)), 1),
|
|
8724
|
-
s("div",
|
|
8747
|
+
s("div", Jn, m(t.$t("weather.referenceTime ")) + ": " + m(r.computeDateZ((eo = (Qt = (Jt = (Kt = (Xt = a.models) == null ? void 0 : Xt.marine) == null ? void 0 : Kt.wave) == null ? void 0 : Jt.ECMWF) == null ? void 0 : Qt.meta) == null ? void 0 : eo.initialisationTime)), 1),
|
|
8725
8748
|
p(b),
|
|
8726
|
-
s("div",
|
|
8749
|
+
s("div", Qn, m(t.$t("weather.currents")), 1),
|
|
8727
8750
|
s("div", ec, m((io = (ao = (oo = (to = a.models) == null ? void 0 : to.marine) == null ? void 0 : oo.current) == null ? void 0 : ao.ECMWF) == null ? void 0 : io.source) + " " + m((no = (lo = (so = (ro = a.models) == null ? void 0 : ro.marine) == null ? void 0 : so.current) == null ? void 0 : lo.ECMWF) == null ? void 0 : no.spatialResolution) + m(t.$t("units.km")) + " " + m((uo = (po = (ho = (mo = (co = a.models) == null ? void 0 : co.marine) == null ? void 0 : mo.current) == null ? void 0 : ho.ECMWF) == null ? void 0 : po.meta) == null ? void 0 : uo.days) + m(t.$t("units.days")), 1),
|
|
8728
8751
|
s("div", tc, m(t.$t("weather.source")) + ": ECMWF", 1),
|
|
8729
8752
|
s("div", oc, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((wo = (bo = (yo = (fo = (go = a.models) == null ? void 0 : go.marine) == null ? void 0 : fo.current) == null ? void 0 : yo.ECMWF) == null ? void 0 : bo.meta) == null ? void 0 : wo.availabilityTime)), 1),
|
|
8730
|
-
s("div", ac, m(t.$t("weather.
|
|
8753
|
+
s("div", ac, m(t.$t("weather.referenceTime ")) + ": " + m(r.computeDateZ((zo = (ko = (_o = (vo = (xo = a.models) == null ? void 0 : xo.marine) == null ? void 0 : vo.current) == null ? void 0 : _o.ECMWF) == null ? void 0 : ko.meta) == null ? void 0 : zo.initialisationTime)), 1)
|
|
8731
8754
|
];
|
|
8732
8755
|
}),
|
|
8733
8756
|
_: 1
|
|
@@ -8743,10 +8766,10 @@ function ic(t, e, o, i, a, r) {
|
|
|
8743
8766
|
map: o.map,
|
|
8744
8767
|
"map-feather": o.mapFeather,
|
|
8745
8768
|
"before-layer": "empty-layer-3",
|
|
8746
|
-
wind: (
|
|
8769
|
+
wind: (Q = a.weatherLayers) == null ? void 0 : Q.wind,
|
|
8747
8770
|
"menu-toggle": o.menuToggle
|
|
8748
8771
|
}, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : D("", !0),
|
|
8749
|
-
o.map ? (y(), R(
|
|
8772
|
+
o.map ? (y(), R(z, B({
|
|
8750
8773
|
key: 2,
|
|
8751
8774
|
map: o.map,
|
|
8752
8775
|
"before-layer": "empty-layer-2",
|
|
@@ -8770,7 +8793,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8770
8793
|
"menu-toggle": o.menuToggle,
|
|
8771
8794
|
"active-weather-layers": a.activeWeatherLayers
|
|
8772
8795
|
}, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : D("", !0),
|
|
8773
|
-
o.map ? (y(), R(
|
|
8796
|
+
o.map ? (y(), R(k, B({
|
|
8774
8797
|
key: 5,
|
|
8775
8798
|
viewport: a.viewport,
|
|
8776
8799
|
factor: (pe = a.weatherLayers) == null ? void 0 : pe["wind-particle"],
|
|
@@ -8799,7 +8822,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8799
8822
|
o.map ? (y(), R(Z, B({
|
|
8800
8823
|
key: 9,
|
|
8801
8824
|
viewport: a.viewport,
|
|
8802
|
-
factor: (
|
|
8825
|
+
factor: (ve = a.weatherLayers) == null ? void 0 : ve["ice-edge"],
|
|
8803
8826
|
"menu-toggle": o.menuToggle
|
|
8804
8827
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8805
8828
|
o.map ? (y(), R(W, B({
|
|
@@ -8814,7 +8837,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8814
8837
|
factor: (Pe = a.weatherLayers) == null ? void 0 : Pe["ice-thickness"],
|
|
8815
8838
|
"menu-toggle": o.menuToggle
|
|
8816
8839
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8817
|
-
o.map ? (y(), R(
|
|
8840
|
+
o.map ? (y(), R(J, B({
|
|
8818
8841
|
key: 12,
|
|
8819
8842
|
viewport: a.viewport,
|
|
8820
8843
|
factor: (De = a.weatherLayers) == null ? void 0 : De.precip3h,
|
|
@@ -9158,18 +9181,18 @@ class Za {
|
|
|
9158
9181
|
const a = e.toLowerCase().split(","), r = [], l = [];
|
|
9159
9182
|
for (const c of a) {
|
|
9160
9183
|
let n = Lo.find((h) => {
|
|
9161
|
-
var b,
|
|
9162
|
-
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((
|
|
9184
|
+
var b, w, _;
|
|
9185
|
+
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((_ = h.name) == null ? void 0 : _.toLowerCase()) === c;
|
|
9163
9186
|
}), u = Po.find((h) => {
|
|
9164
|
-
var b,
|
|
9165
|
-
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((
|
|
9187
|
+
var b, w, _;
|
|
9188
|
+
return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((_ = h.name) == null ? void 0 : _.toLowerCase()) === c;
|
|
9166
9189
|
});
|
|
9167
9190
|
n = n || Lo.find((h) => {
|
|
9168
|
-
var b,
|
|
9169
|
-
return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((
|
|
9191
|
+
var b, w;
|
|
9192
|
+
return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((w = u == null ? void 0 : u.alias) == null ? void 0 : w.toLowerCase());
|
|
9170
9193
|
}), u = u || Po.find((h) => {
|
|
9171
|
-
var b,
|
|
9172
|
-
return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((
|
|
9194
|
+
var b, w;
|
|
9195
|
+
return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((w = n == null ? void 0 : n.alias) == null ? void 0 : w.toLowerCase());
|
|
9173
9196
|
}), n = n || Lo[0], u = u || Po[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), l.push((i = u.models) != null && i.includes(c) ? c : u.model);
|
|
9174
9197
|
}
|
|
9175
9198
|
return {
|
|
@@ -9187,7 +9210,7 @@ class Za {
|
|
|
9187
9210
|
}), a;
|
|
9188
9211
|
}
|
|
9189
9212
|
static pickHourly(e, o) {
|
|
9190
|
-
var i, a, r, l, c, n, u, h, b,
|
|
9213
|
+
var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, ve, Le, Pe, De, Ae, Re, _e, G, te, He, Me;
|
|
9191
9214
|
const ue = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, Ce = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Ce.clone().add((c = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), re = Ce.clone().add((h = (u = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : u.time) == null ? void 0 : h.at(-1), "h"), Oe = [];
|
|
9192
9215
|
if (ue.isBetween(oe, re, "millisecond", "[]")) {
|
|
9193
9216
|
const j = ue.utc().diff(oe, "h", !1);
|
|
@@ -9199,9 +9222,9 @@ class Za {
|
|
|
9199
9222
|
for (let Te = j - (j - 1) % 3; Te <= j; Te++)
|
|
9200
9223
|
Be += (b = q == null ? void 0 : q.precipitation) == null ? void 0 : b.at(Te);
|
|
9201
9224
|
for (let Te = j - (j - 1) % 6; Te <= j; Te++)
|
|
9202
|
-
Ee += (
|
|
9225
|
+
Ee += (w = q == null ? void 0 : q.precipitation) == null ? void 0 : w.at(Te);
|
|
9203
9226
|
ye = {
|
|
9204
|
-
temp: (
|
|
9227
|
+
temp: (_ = q == null ? void 0 : q.temperature_2m) == null ? void 0 : _.at(j),
|
|
9205
9228
|
apparentTemp: (g = q == null ? void 0 : q.apparent_temperature) == null ? void 0 : g.at(j),
|
|
9206
9229
|
rh: (P = q == null ? void 0 : q.relative_humidity_2m) == null ? void 0 : P.at(j),
|
|
9207
9230
|
dp: (T = q == null ? void 0 : q.dew_point_2m) == null ? void 0 : T.at(j),
|
|
@@ -9212,11 +9235,11 @@ class Za {
|
|
|
9212
9235
|
sum6Hours: Math.round(Ee * 100) / 100
|
|
9213
9236
|
},
|
|
9214
9237
|
pmsl: (L = q == null ? void 0 : q.pressure_msl) == null ? void 0 : L.at(j),
|
|
9215
|
-
psurf: (
|
|
9238
|
+
psurf: (z = q == null ? void 0 : q.surface_pressure) == null ? void 0 : z.at(j),
|
|
9216
9239
|
code: (v = q == null ? void 0 : q.weather_code) == null ? void 0 : v.at(j),
|
|
9217
9240
|
visibility: this.m2nm((C = q == null ? void 0 : q.visibility) == null ? void 0 : C.at(j)),
|
|
9218
9241
|
wind: {
|
|
9219
|
-
speed: (
|
|
9242
|
+
speed: (k = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : k.at(j),
|
|
9220
9243
|
kts: (A = q == null ? void 0 : q.wind_speed_10m) == null ? void 0 : A.at(j),
|
|
9221
9244
|
degree: (N = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : N.at(j),
|
|
9222
9245
|
bearing: ((V = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : V.at(j)) !== null ? (((Z = q == null ? void 0 : q.wind_direction_10m) == null ? void 0 : Z.at(j)) + 180) % 360 : null,
|
|
@@ -9239,10 +9262,10 @@ class Za {
|
|
|
9239
9262
|
Ie = {
|
|
9240
9263
|
wave: {
|
|
9241
9264
|
sig: {
|
|
9242
|
-
height: (
|
|
9265
|
+
height: (J = E == null ? void 0 : E.wave_height) == null ? void 0 : J.at(j),
|
|
9243
9266
|
degree: ($ = E == null ? void 0 : E.wave_direction) == null ? void 0 : $.at(j),
|
|
9244
9267
|
bearing: ((ne = E == null ? void 0 : E.wave_direction) == null ? void 0 : ne.at(j)) !== null ? (((se = E == null ? void 0 : E.wave_direction) == null ? void 0 : se.at(j)) + 180) % 360 : null,
|
|
9245
|
-
period: (
|
|
9268
|
+
period: (Q = E == null ? void 0 : E.wave_period) == null ? void 0 : Q.at(j)
|
|
9246
9269
|
},
|
|
9247
9270
|
swell: {
|
|
9248
9271
|
height: (ae = E == null ? void 0 : E.swell_wave_height) == null ? void 0 : ae.at(j),
|
|
@@ -9253,7 +9276,7 @@ class Za {
|
|
|
9253
9276
|
},
|
|
9254
9277
|
wd: {
|
|
9255
9278
|
height: (me = E == null ? void 0 : E.wind_wave_height) == null ? void 0 : me.at(j),
|
|
9256
|
-
degree: (
|
|
9279
|
+
degree: (ve = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : ve.at(j),
|
|
9257
9280
|
bearing: ((Le = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : Le.at(j)) !== null ? (((Pe = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : Pe.at(j)) + 180) % 360 : null,
|
|
9258
9281
|
period: (De = E == null ? void 0 : E.wind_wave_period) == null ? void 0 : De.at(j),
|
|
9259
9282
|
peakPeriod: (Ae = E == null ? void 0 : E.wind_wave_peak_period) == null ? void 0 : Ae.at(j)
|
|
@@ -9296,7 +9319,7 @@ class Za {
|
|
|
9296
9319
|
};
|
|
9297
9320
|
}
|
|
9298
9321
|
static pickDaily(e, o) {
|
|
9299
|
-
var i, a, r, l, c, n, u, h, b,
|
|
9322
|
+
var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, ve, Le, Pe, De, Ae;
|
|
9300
9323
|
const Re = typeof o == "string" ? M(o) : o, _e = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, te = M((r = (a = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = M((n = (c = (l = _e == null ? void 0 : _e[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Me = [];
|
|
9301
9324
|
if (Re.isBetween(te, He, "millisecond", "[]")) {
|
|
9302
9325
|
let ue, fe;
|
|
@@ -9309,10 +9332,10 @@ class Za {
|
|
|
9309
9332
|
temp: {
|
|
9310
9333
|
max: (h = oe.temperature_2m_max) == null ? void 0 : h.at(U),
|
|
9311
9334
|
min: (b = oe.temperature_2m_min) == null ? void 0 : b.at(U),
|
|
9312
|
-
mean: (
|
|
9335
|
+
mean: (w = oe.temperature_2m_mean) == null ? void 0 : w.at(U)
|
|
9313
9336
|
},
|
|
9314
9337
|
apparentTemp: {
|
|
9315
|
-
max: (
|
|
9338
|
+
max: (_ = oe.apparent_temperature_max) == null ? void 0 : _.at(U),
|
|
9316
9339
|
min: (g = oe.apparent_temperature_min) == null ? void 0 : g.at(U)
|
|
9317
9340
|
},
|
|
9318
9341
|
precip: {
|
|
@@ -9321,12 +9344,12 @@ class Za {
|
|
|
9321
9344
|
snowfallSum: (O = oe.snowfall_sum) == null ? void 0 : O.at(U),
|
|
9322
9345
|
showersSum: (I = oe.showers_sum) == null ? void 0 : I.at(U),
|
|
9323
9346
|
hours: (L = oe.precipitation_hours) == null ? void 0 : L.at(U),
|
|
9324
|
-
probability: (
|
|
9347
|
+
probability: (z = oe.precipitation_probability_max) == null ? void 0 : z.at(U)
|
|
9325
9348
|
},
|
|
9326
9349
|
rh: {
|
|
9327
9350
|
max: (v = oe.relative_humidity_2m_max) == null ? void 0 : v.at(U),
|
|
9328
9351
|
min: (C = oe.relative_humidity_2m_min) == null ? void 0 : C.at(U),
|
|
9329
|
-
mean: (
|
|
9352
|
+
mean: (k = oe.relative_humidity_2m_mean) == null ? void 0 : k.at(U)
|
|
9330
9353
|
},
|
|
9331
9354
|
wind: {
|
|
9332
9355
|
speed: (A = oe.wind_speed_10m_max) == null ? void 0 : A.at(U),
|
|
@@ -9350,10 +9373,10 @@ class Za {
|
|
|
9350
9373
|
fe = {
|
|
9351
9374
|
wave: {
|
|
9352
9375
|
sig: {
|
|
9353
|
-
height: (
|
|
9376
|
+
height: (J = re.wave_height_max) == null ? void 0 : J.at(U),
|
|
9354
9377
|
degree: ($ = re.wave_direction_dominant) == null ? void 0 : $.at(U),
|
|
9355
9378
|
period: (ne = re.wave_period_max) == null ? void 0 : ne.at(U),
|
|
9356
|
-
bearing: ((se = re.wave_direction_dominant) == null ? void 0 : se.at(U)) !== null ? (((
|
|
9379
|
+
bearing: ((se = re.wave_direction_dominant) == null ? void 0 : se.at(U)) !== null ? (((Q = re.wave_direction_dominant) == null ? void 0 : Q.at(U)) + 180) % 360 : null
|
|
9357
9380
|
},
|
|
9358
9381
|
swell: {
|
|
9359
9382
|
height: (ae = re.swell_wave_height_max) == null ? void 0 : ae.at(U),
|
|
@@ -9365,7 +9388,7 @@ class Za {
|
|
|
9365
9388
|
},
|
|
9366
9389
|
wd: {
|
|
9367
9390
|
height: (me = re.wind_wave_height_max) == null ? void 0 : me.at(U),
|
|
9368
|
-
degree: (
|
|
9391
|
+
degree: (ve = re.wind_wave_direction_dominant) == null ? void 0 : ve.at(U),
|
|
9369
9392
|
period: (Le = re.wind_wave_period_max) == null ? void 0 : Le.at(U),
|
|
9370
9393
|
peakPeriod: (Pe = re.wind_wave_peak_period_max) == null ? void 0 : Pe.at(U),
|
|
9371
9394
|
bearing: ((De = re.wind_wave_direction_dominant) == null ? void 0 : De.at(U)) !== null ? (((Ae = re.wind_wave_direction_dominant) == null ? void 0 : Ae.at(U)) + 180) % 360 : null
|
|
@@ -9831,7 +9854,7 @@ const sc = {
|
|
|
9831
9854
|
return {
|
|
9832
9855
|
right: 10,
|
|
9833
9856
|
toggle: !1,
|
|
9834
|
-
helper:
|
|
9857
|
+
helper: Ja,
|
|
9835
9858
|
tropicals: void 0,
|
|
9836
9859
|
tropicalCacheKey: "tropicalCacheGL4",
|
|
9837
9860
|
source: "tropicals-source",
|
|
@@ -9983,8 +10006,8 @@ const sc = {
|
|
|
9983
10006
|
},
|
|
9984
10007
|
responseType: /\.(jpg|png)$/.test(u.tropicals) ? "blob" : "json"
|
|
9985
10008
|
}).then((h) => {
|
|
9986
|
-
var
|
|
9987
|
-
const b = Va.convert2Geojson(((
|
|
10009
|
+
var _, g, P;
|
|
10010
|
+
const b = Va.convert2Geojson(((_ = h == null ? void 0 : h.data) == null ? void 0 : _.data) || (h == null ? void 0 : h.data));
|
|
9988
10011
|
((P = (g = h == null ? void 0 : h.config) == null ? void 0 : g.headers) == null ? void 0 : P.key) && b && (this.tropicals = {
|
|
9989
10012
|
data: b,
|
|
9990
10013
|
active: !0,
|
|
@@ -10003,7 +10026,7 @@ const sc = {
|
|
|
10003
10026
|
handleRefresh() {
|
|
10004
10027
|
var e, o;
|
|
10005
10028
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
10006
|
-
var a, r, l, c, n, u, h, b,
|
|
10029
|
+
var a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z;
|
|
10007
10030
|
if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
|
|
10008
10031
|
let v = "";
|
|
10009
10032
|
switch (!0) {
|
|
@@ -10016,10 +10039,10 @@ const sc = {
|
|
|
10016
10039
|
case (((u = i.properties.wind) == null ? void 0 : u.kts) < 63 || ((h = i.properties) == null ? void 0 : h.kts) < 63):
|
|
10017
10040
|
v = "STS";
|
|
10018
10041
|
break;
|
|
10019
|
-
case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((
|
|
10042
|
+
case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((w = i.properties) == null ? void 0 : w.kts) < 79):
|
|
10020
10043
|
v = "TY";
|
|
10021
10044
|
break;
|
|
10022
|
-
case (((
|
|
10045
|
+
case (((_ = i.properties.wind) == null ? void 0 : _.kts) < 94 || ((g = i.properties) == null ? void 0 : g.kts) < 94):
|
|
10023
10046
|
v = "STY";
|
|
10024
10047
|
break;
|
|
10025
10048
|
case (((P = i.properties.wind) == null ? void 0 : P.kts) >= 94 || ((T = i.properties) == null ? void 0 : T.kts) >= 94):
|
|
@@ -10031,7 +10054,7 @@ const sc = {
|
|
|
10031
10054
|
}
|
|
10032
10055
|
i.properties.level = v;
|
|
10033
10056
|
}
|
|
10034
|
-
((O = i.geometry) == null ? void 0 : O.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (
|
|
10057
|
+
((O = i.geometry) == null ? void 0 : O.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (z = (L = M(i.properties.date)) == null ? void 0 : L.utcOffset(this.timeZone)) == null ? void 0 : z.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
10035
10058
|
}), this.handleInit();
|
|
10036
10059
|
},
|
|
10037
10060
|
handleInit() {
|
|
@@ -10042,8 +10065,8 @@ const sc = {
|
|
|
10042
10065
|
var t, e, o, i, a, r, l, c, n, u;
|
|
10043
10066
|
if (this.tropicals && this.map) {
|
|
10044
10067
|
const h = (/* @__PURE__ */ new Date()).valueOf();
|
|
10045
|
-
let b = 0,
|
|
10046
|
-
(t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty),
|
|
10068
|
+
let b = 0, w = 0;
|
|
10069
|
+
(t = this.map) != null && t.getSource(this.source) ? ((o = this.map) == null || o.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropicals] update elapsed: ", w, ", total: ", b += w)) : (this.map.addSource(this.source, {
|
|
10047
10070
|
type: "geojson",
|
|
10048
10071
|
data: (i = this.tropicals) != null && i.active ? (a = this.tropicals) == null ? void 0 : a.data : this.empty
|
|
10049
10072
|
}), this.map.addLayer({
|
|
@@ -10140,7 +10163,7 @@ const sc = {
|
|
|
10140
10163
|
],
|
|
10141
10164
|
"text-halo-width": 4
|
|
10142
10165
|
}
|
|
10143
|
-
}, this.beforeLayer),
|
|
10166
|
+
}, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((l = this.tropicals) != null && l.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] update elapsed: ", w, ", total: ", b += w)) : (this.map.addSource(this.clusterSource, {
|
|
10144
10167
|
type: "geojson",
|
|
10145
10168
|
data: (n = this.tropicals) != null && n.active ? (u = this.tropicals) == null ? void 0 : u.data : this.empty
|
|
10146
10169
|
// cluster: true,
|
|
@@ -10256,9 +10279,9 @@ const sc = {
|
|
|
10256
10279
|
"text-halo-color": "#ffffff",
|
|
10257
10280
|
"text-halo-width": 1
|
|
10258
10281
|
}
|
|
10259
|
-
}, this.beforeLayer),
|
|
10260
|
-
const
|
|
10261
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
10282
|
+
}, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w));
|
|
10283
|
+
const _ = Va.interpolate(this.tropicals, 1);
|
|
10284
|
+
this.interpolateData = JSON.parse(JSON.stringify(_)), this.handleDateChange();
|
|
10262
10285
|
}
|
|
10263
10286
|
},
|
|
10264
10287
|
handleClear() {
|
|
@@ -10266,11 +10289,11 @@ const sc = {
|
|
|
10266
10289
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((a) => a == null ? void 0 : a.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource)), (e = this.map) == null || e.off("click", this.clickLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
|
|
10267
10290
|
},
|
|
10268
10291
|
handleDateChange() {
|
|
10269
|
-
var t, e, o, i, a, r, l, c, n, u, h, b,
|
|
10270
|
-
if ((t = this.interpolateMarkers) == null || t.forEach((
|
|
10271
|
-
const
|
|
10272
|
-
ne.forEach((
|
|
10273
|
-
se.features.push(
|
|
10292
|
+
var t, e, o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee;
|
|
10293
|
+
if ((t = this.interpolateMarkers) == null || t.forEach((J) => J == null ? void 0 : J.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
10294
|
+
const J = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), $ = this.interpolateData.filter((Q) => Q.properties.date === (J == null ? void 0 : J.format()) && !Q.properties.disabled), ne = this.handleComputePolygons($), se = H.featureCollection([...$]);
|
|
10295
|
+
ne.forEach((Q) => {
|
|
10296
|
+
se.features.push(Q);
|
|
10274
10297
|
}), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(se) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
|
|
10275
10298
|
type: "geojson",
|
|
10276
10299
|
data: se
|
|
@@ -10285,10 +10308,10 @@ const sc = {
|
|
|
10285
10308
|
"line-width": 1
|
|
10286
10309
|
}
|
|
10287
10310
|
}, "empty-layer-3")), this.interpolateMarkers = [];
|
|
10288
|
-
for (const
|
|
10289
|
-
if (!
|
|
10311
|
+
for (const Q of $)
|
|
10312
|
+
if (!Q.properties.disabled) {
|
|
10290
10313
|
let ae = "#f44336";
|
|
10291
|
-
((c = (l =
|
|
10314
|
+
((c = (l = Q.properties) == null ? void 0 : l.wind) == null ? void 0 : c.kts) < 32 || !((u = (n = Q.properties) == null ? void 0 : n.wind) != null && u.kts) ? ae = "#03f869" : ((b = (h = Q.properties) == null ? void 0 : h.wind) == null ? void 0 : b.kts) >= 32 && ((_ = (w = Q.properties) == null ? void 0 : w.wind) == null ? void 0 : _.kts) < 47 ? ae = "#f2f202" : ((P = (g = Q.properties) == null ? void 0 : g.wind) == null ? void 0 : P.kts) >= 47 && ((O = (T = Q.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ae = "#ff9100" : ((L = (I = Q.properties) == null ? void 0 : I.wind) == null ? void 0 : L.kts) >= 63 && ((v = (z = Q.properties) == null ? void 0 : z.wind) == null ? void 0 : v.kts) < 79 ? ae = "#f44336" : ((k = (C = Q.properties) == null ? void 0 : C.wind) == null ? void 0 : k.kts) >= 79 && ((N = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : N.kts) < 94 ? ae = "#f903d0" : ((Z = (V = Q.properties) == null ? void 0 : V.wind) == null ? void 0 : Z.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
|
|
10292
10315
|
const he = `<svg t="1719918955501"
|
|
10293
10316
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
10294
10317
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -10304,35 +10327,35 @@ const sc = {
|
|
|
10304
10327
|
d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
|
|
10305
10328
|
fill="#ffffff" p-id="18386"></path>
|
|
10306
10329
|
</svg>`, ce = document.createElement("div");
|
|
10307
|
-
ce.className = "idm-tropical-gl4-hourly-marker", ce.innerHTML = `<div class="${
|
|
10308
|
-
const pe = new
|
|
10330
|
+
ce.className = "idm-tropical-gl4-hourly-marker", ce.innerHTML = `<div class="${Q.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${he}</div>`;
|
|
10331
|
+
const pe = new xe.Marker(ce).setLngLat(Q.geometry.coordinates).addTo(this.map);
|
|
10309
10332
|
this.interpolateMarkers.push(pe);
|
|
10310
10333
|
}
|
|
10311
10334
|
} else
|
|
10312
10335
|
(W = this.map) != null && W.getSource(this.interpolateSource) && ((ee = this.map) == null || ee.getSource(this.interpolateSource).setData(this.empty));
|
|
10313
10336
|
},
|
|
10314
10337
|
handleClick(t) {
|
|
10315
|
-
var a, r, l, c, n, u, h, b,
|
|
10338
|
+
var a, r, l, c, n, u, h, b, w;
|
|
10316
10339
|
const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
|
|
10317
|
-
(
|
|
10340
|
+
(_) => {
|
|
10318
10341
|
var g;
|
|
10319
|
-
return
|
|
10342
|
+
return _.geometry.type === "LineString" && _.properties.type === "forecast" && _.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
|
|
10320
10343
|
}
|
|
10321
10344
|
), i = (c = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : c.features.filter(
|
|
10322
|
-
(
|
|
10345
|
+
(_) => {
|
|
10323
10346
|
var g;
|
|
10324
|
-
return
|
|
10347
|
+
return _.geometry.type === "LineString" && _.properties.type === "history" && _.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
|
|
10325
10348
|
}
|
|
10326
10349
|
);
|
|
10327
10350
|
this.activeTropicals = {
|
|
10328
10351
|
name: (n = e == null ? void 0 : e.properties) == null ? void 0 : n.name,
|
|
10329
10352
|
nameCn: (u = e == null ? void 0 : e.properties) == null ? void 0 : u.nameCn,
|
|
10330
|
-
forecasts: o.map((
|
|
10353
|
+
forecasts: o.map((_) => _.properties),
|
|
10331
10354
|
history: (h = i[0]) == null ? void 0 : h.properties,
|
|
10332
|
-
showCircle: (
|
|
10355
|
+
showCircle: (w = (b = o[0]) == null ? void 0 : b.properties) == null ? void 0 : w.showCircle
|
|
10333
10356
|
}, this.showTropicalsInfo = !0, this.$nextTick(() => {
|
|
10334
|
-
const
|
|
10335
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new
|
|
10357
|
+
const _ = document.getElementById("idm-tropical-gl4-info");
|
|
10358
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new xe.Marker(_).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
10336
10359
|
});
|
|
10337
10360
|
},
|
|
10338
10361
|
handleCloseInfoMarker() {
|
|
@@ -10432,7 +10455,7 @@ const sc = {
|
|
|
10432
10455
|
);
|
|
10433
10456
|
this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], this.hoverPoint.update = (c = (l = i == null ? void 0 : i[0]) == null ? void 0 : l.properties) == null ? void 0 : c.date, (n = this.hoverMarker) == null || n.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
|
|
10434
10457
|
const u = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
|
|
10435
|
-
this.hoverMarker = new
|
|
10458
|
+
this.hoverMarker = new xe.Marker(u).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
|
|
10436
10459
|
}));
|
|
10437
10460
|
},
|
|
10438
10461
|
handleLeave() {
|
|
@@ -10477,9 +10500,9 @@ const sc = {
|
|
|
10477
10500
|
}, $c = { class: "text-label pr-1" }, Kc = {
|
|
10478
10501
|
key: 7,
|
|
10479
10502
|
class: "d-flex justify-start align-center"
|
|
10480
|
-
},
|
|
10503
|
+
}, Jc = { class: "text-label pr-1" }, Qc = { class: "d-flex justify-start align-center" }, em = { class: "text-label pr-1" };
|
|
10481
10504
|
function tm(t, e, o, i, a, r) {
|
|
10482
|
-
const l =
|
|
10505
|
+
const l = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), u = x("VDivider"), h = x("VCardActions"), b = x("VCard"), w = x("v-card-title"), _ = x("v-divider");
|
|
10483
10506
|
return y(), S("div", lc, [
|
|
10484
10507
|
s("div", {
|
|
10485
10508
|
class: "menu-bar-box transition pa-1",
|
|
@@ -10516,7 +10539,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10516
10539
|
default: f(() => [
|
|
10517
10540
|
p(n, null, {
|
|
10518
10541
|
default: f(() => {
|
|
10519
|
-
var g, P, T, O, I, L,
|
|
10542
|
+
var g, P, T, O, I, L, z, v, C, k, A;
|
|
10520
10543
|
return [
|
|
10521
10544
|
s("div", cc, [
|
|
10522
10545
|
s("span", mc, m(o.locale === "en" ? (g = a.activeTropicals) == null ? void 0 : g.name : (P = a.activeTropicals) == null ? void 0 : P.nameCn), 1),
|
|
@@ -10537,7 +10560,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10537
10560
|
}, 8, ["onClick"]),
|
|
10538
10561
|
s("div", hc, [
|
|
10539
10562
|
s("span", pc, m(t.$t("actions.lastUpdate")) + ": ", 1),
|
|
10540
|
-
s("span", null, m(r.computeTime(((v = (
|
|
10563
|
+
s("span", null, m(r.computeTime(((v = (z = a.activeTropicals) == null ? void 0 : z.history) == null ? void 0 : v.updated) || ((A = (k = (C = a.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : k.filter((N) => !N.disabled)[0]) == null ? void 0 : A.date), o.timeZone)), 1)
|
|
10541
10564
|
])
|
|
10542
10565
|
];
|
|
10543
10566
|
}),
|
|
@@ -10546,7 +10569,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10546
10569
|
p(u),
|
|
10547
10570
|
p(n, { class: "text-body-1" }, {
|
|
10548
10571
|
default: f(() => {
|
|
10549
|
-
var g, P, T, O, I, L,
|
|
10572
|
+
var g, P, T, O, I, L, z, v, C;
|
|
10550
10573
|
return [
|
|
10551
10574
|
s("div", uc, [
|
|
10552
10575
|
s("div", gc, [
|
|
@@ -10562,7 +10585,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10562
10585
|
s("div", wc, [
|
|
10563
10586
|
s("div", xc, [
|
|
10564
10587
|
s("label", vc, m(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
10565
|
-
s("span", null, m(((
|
|
10588
|
+
s("span", null, m(((z = r.computeMovement(a.activeTropicals)) == null ? void 0 : z.kts) || "-") + " kts", 1)
|
|
10566
10589
|
]),
|
|
10567
10590
|
s("div", _c, [
|
|
10568
10591
|
s("label", kc, m(t.$t("tropical.moveDir")) + " : ", 1),
|
|
@@ -10572,17 +10595,17 @@ function tm(t, e, o, i, a, r) {
|
|
|
10572
10595
|
s("div", zc, [
|
|
10573
10596
|
s("label", Lc, m(t.$t("weather.forecastModels")) + " : ", 1),
|
|
10574
10597
|
s("div", Pc, [
|
|
10575
|
-
(y(!0), S(be, null, we((C = a.activeTropicals) == null ? void 0 : C.forecasts, (
|
|
10598
|
+
(y(!0), S(be, null, we((C = a.activeTropicals) == null ? void 0 : C.forecasts, (k, A) => (y(), R(l, {
|
|
10576
10599
|
key: A,
|
|
10577
10600
|
density: "compact",
|
|
10578
|
-
variant:
|
|
10579
|
-
color:
|
|
10601
|
+
variant: k.disabled ? "text" : "flat",
|
|
10602
|
+
color: k.disabled ? "" : "primary",
|
|
10580
10603
|
"min-width": 30,
|
|
10581
|
-
class: Ne(["model text-none text-body-1 px-1",
|
|
10582
|
-
onClick: je((N) => r.handleForecastToggle(
|
|
10604
|
+
class: Ne(["model text-none text-body-1 px-1", k.disabled ? "btn-border-1 btn-bg-1" : ""]),
|
|
10605
|
+
onClick: je((N) => r.handleForecastToggle(k), ["stop"])
|
|
10583
10606
|
}, {
|
|
10584
10607
|
default: f(() => [
|
|
10585
|
-
K(m(
|
|
10608
|
+
K(m(k.model), 1)
|
|
10586
10609
|
]),
|
|
10587
10610
|
_: 2
|
|
10588
10611
|
}, 1032, ["variant", "color", "class", "onClick"]))), 128))
|
|
@@ -10712,7 +10735,7 @@ function tm(t, e, o, i, a, r) {
|
|
|
10712
10735
|
"max-width": "280"
|
|
10713
10736
|
}, {
|
|
10714
10737
|
default: f(() => [
|
|
10715
|
-
p(
|
|
10738
|
+
p(w, null, {
|
|
10716
10739
|
default: f(() => {
|
|
10717
10740
|
var g, P, T;
|
|
10718
10741
|
return [
|
|
@@ -10724,10 +10747,10 @@ function tm(t, e, o, i, a, r) {
|
|
|
10724
10747
|
}),
|
|
10725
10748
|
_: 1
|
|
10726
10749
|
}),
|
|
10727
|
-
p(
|
|
10750
|
+
p(_),
|
|
10728
10751
|
p(n, { class: "text-body-1" }, {
|
|
10729
10752
|
default: f(() => {
|
|
10730
|
-
var g, P, T, O, I, L,
|
|
10753
|
+
var g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se;
|
|
10731
10754
|
return [
|
|
10732
10755
|
s("div", Rc, [
|
|
10733
10756
|
((g = a.hoverPoint) == null ? void 0 : g.type) === "forecast" ? (y(), S("div", Oc, [
|
|
@@ -10742,13 +10765,13 @@ function tm(t, e, o, i, a, r) {
|
|
|
10742
10765
|
s("label", Fc, m(t.$t("tropical.forecast")) + " : ", 1),
|
|
10743
10766
|
s("span", null, m(r.computeTzTime((L = a.hoverPoint) == null ? void 0 : L.date, o.timeZone)), 1)
|
|
10744
10767
|
])) : D("", !0),
|
|
10745
|
-
((
|
|
10768
|
+
((z = a.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (y(), S("div", Hc, [
|
|
10746
10769
|
s("label", Gc, m(t.$t("tropical.model")) + " : ", 1),
|
|
10747
10770
|
s("span", null, m(((v = a.hoverPoint) == null ? void 0 : v.model) ?? "-"), 1)
|
|
10748
10771
|
])) : D("", !0),
|
|
10749
10772
|
((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (y(), S("div", Uc, [
|
|
10750
10773
|
s("label", Wc, m(t.$t("weather.wind")) + " : ", 1),
|
|
10751
|
-
s("span", null, m(((A = JSON.parse((
|
|
10774
|
+
s("span", null, m(((A = JSON.parse((k = a.hoverPoint) == null ? void 0 : k.wind)) == null ? void 0 : A.kts) ?? "-") + " kts", 1)
|
|
10752
10775
|
])) : D("", !0),
|
|
10753
10776
|
((N = a.hoverPoint) == null ? void 0 : N.type) === "history" ? (y(), S("div", Vc, [
|
|
10754
10777
|
s("label", Zc, m(t.$t("weather.wind")) + " : ", 1),
|
|
@@ -10760,13 +10783,13 @@ function tm(t, e, o, i, a, r) {
|
|
|
10760
10783
|
]),
|
|
10761
10784
|
((W = a.hoverPoint) == null ? void 0 : W.type) === "history" ? (y(), S("div", Xc, [
|
|
10762
10785
|
s("label", $c, m(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
10763
|
-
s("span", null, m(((
|
|
10786
|
+
s("span", null, m(((J = JSON.parse((ee = a.hoverPoint) == null ? void 0 : ee.movement)) == null ? void 0 : J.kts) ?? "-") + " kts", 1)
|
|
10764
10787
|
])) : D("", !0),
|
|
10765
10788
|
(($ = a.hoverPoint) == null ? void 0 : $.type) === "history" ? (y(), S("div", Kc, [
|
|
10766
|
-
s("label",
|
|
10789
|
+
s("label", Jc, m(t.$t("tropical.moveDir")) + " : ", 1),
|
|
10767
10790
|
s("span", null, m(((se = JSON.parse((ne = a.hoverPoint) == null ? void 0 : ne.movement)) == null ? void 0 : se.deg) ?? "-") + " °", 1)
|
|
10768
10791
|
])) : D("", !0),
|
|
10769
|
-
s("div",
|
|
10792
|
+
s("div", Qc, [
|
|
10770
10793
|
s("label", em, m(t.$t("tropical.position")) + " : ", 1),
|
|
10771
10794
|
s("span", null, m(r.computePosition(a.hoverPoint)), 1)
|
|
10772
10795
|
])
|
|
@@ -10951,7 +10974,7 @@ const om = {
|
|
|
10951
10974
|
style: { height: "56px" }
|
|
10952
10975
|
};
|
|
10953
10976
|
function lm(t, e, o, i, a, r) {
|
|
10954
|
-
const l =
|
|
10977
|
+
const l = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), u = x("VListItemTitle"), h = x("VListItem"), b = x("VList"), w = x("VCardText"), _ = x("VCardActions"), g = x("VCard");
|
|
10955
10978
|
return y(), S("div", am, [
|
|
10956
10979
|
p(l, {
|
|
10957
10980
|
text: "",
|
|
@@ -10970,7 +10993,7 @@ function lm(t, e, o, i, a, r) {
|
|
|
10970
10993
|
class: Ne(["card-box d-flex flex-column", o.position])
|
|
10971
10994
|
}, {
|
|
10972
10995
|
default: f(() => [
|
|
10973
|
-
p(
|
|
10996
|
+
p(w, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
10974
10997
|
default: f(() => [
|
|
10975
10998
|
s("div", im, [
|
|
10976
10999
|
p(c, {
|
|
@@ -11025,7 +11048,7 @@ function lm(t, e, o, i, a, r) {
|
|
|
11025
11048
|
_: 1
|
|
11026
11049
|
}),
|
|
11027
11050
|
p(n),
|
|
11028
|
-
p(
|
|
11051
|
+
p(_, {
|
|
11029
11052
|
class: "justify-end pa-0 pr-4",
|
|
11030
11053
|
style: { height: "50px" }
|
|
11031
11054
|
}, {
|
|
@@ -11303,10 +11326,10 @@ const nm = {
|
|
|
11303
11326
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
|
|
11304
11327
|
},
|
|
11305
11328
|
initTableData(t) {
|
|
11306
|
-
var o, i, a, r, l, c, n, u, h, b,
|
|
11329
|
+
var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, ve;
|
|
11307
11330
|
this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
|
|
11308
11331
|
const e = ((l = Co.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
11309
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((
|
|
11332
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((z = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : z.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((W = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.wd) == null ? void 0 : W.height, 1) ?? "-", this.currentHourData.windwaveDir = (J = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((ne = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((Q = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.swellDir = (he = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((pe = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
|
|
11310
11333
|
},
|
|
11311
11334
|
handleBind() {
|
|
11312
11335
|
var t, e;
|
|
@@ -11332,9 +11355,9 @@ const nm = {
|
|
|
11332
11355
|
var i, a, r;
|
|
11333
11356
|
(i = this.positionMarker) == null || i.remove();
|
|
11334
11357
|
const e = (a = document.getElementById("idm-position-icon")) == null ? void 0 : a.cloneNode(!0);
|
|
11335
|
-
this.positionMarker = new
|
|
11358
|
+
this.positionMarker = new xe.Marker(e).setLngLat(t).setOffset([0, -15]).addTo(this.map);
|
|
11336
11359
|
const o = document.getElementById("idm-gl4-spot-meteo");
|
|
11337
|
-
this.meteoInfoMarker ? (r = this.meteoInfoMarker) == null || r.setLngLat(t) : this.meteoInfoMarker = new
|
|
11360
|
+
this.meteoInfoMarker ? (r = this.meteoInfoMarker) == null || r.setLngLat(t) : this.meteoInfoMarker = new xe.Marker(o).setLngLat(t).setOffset([0, -190]).addTo(this.map);
|
|
11338
11361
|
}));
|
|
11339
11362
|
},
|
|
11340
11363
|
handleMeteoMore() {
|
|
@@ -11415,7 +11438,7 @@ const nm = {
|
|
|
11415
11438
|
"aria-hidden": "true"
|
|
11416
11439
|
}, qm = ["xlink:href"];
|
|
11417
11440
|
function Xm(t, e, o, i, a, r) {
|
|
11418
|
-
const l =
|
|
11441
|
+
const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), u = x("VDivider"), h = x("VTextField"), b = x("VCol"), w = x("VRow"), _ = x("DateTimePicker"), g = x("VBtnToggle"), P = x("VCardText"), T = x("VCardActions"), O = x("VForm"), I = x("VCard"), L = x("VIcon");
|
|
11419
11442
|
return y(), S("div", cm, [
|
|
11420
11443
|
s("div", {
|
|
11421
11444
|
class: "menu-bar-box transition pa-1",
|
|
@@ -11425,8 +11448,8 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11425
11448
|
text: t.$t("spot.spotsMeteo"),
|
|
11426
11449
|
location: "left"
|
|
11427
11450
|
}, {
|
|
11428
|
-
activator: f(({ props:
|
|
11429
|
-
p(l, B(
|
|
11451
|
+
activator: f(({ props: z }) => [
|
|
11452
|
+
p(l, B(z, {
|
|
11430
11453
|
"min-width": "32",
|
|
11431
11454
|
width: "32",
|
|
11432
11455
|
height: "32",
|
|
@@ -11488,7 +11511,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11488
11511
|
])),
|
|
11489
11512
|
s("div", null, m(t.$t("spot.lng")), 1)
|
|
11490
11513
|
]),
|
|
11491
|
-
p(
|
|
11514
|
+
p(w, { class: "ma-0" }, {
|
|
11492
11515
|
default: f(() => [
|
|
11493
11516
|
p(b, {
|
|
11494
11517
|
cols: "4",
|
|
@@ -11497,7 +11520,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11497
11520
|
default: f(() => [
|
|
11498
11521
|
p(h, {
|
|
11499
11522
|
modelValue: a.form.lngDegree,
|
|
11500
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
11523
|
+
"onUpdate:modelValue": e[0] || (e[0] = (z) => a.form.lngDegree = z),
|
|
11501
11524
|
rules: a.formRules.lngDegree,
|
|
11502
11525
|
density: "compact",
|
|
11503
11526
|
variant: "outlined",
|
|
@@ -11517,7 +11540,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11517
11540
|
default: f(() => [
|
|
11518
11541
|
p(h, {
|
|
11519
11542
|
modelValue: a.form.lngMinute,
|
|
11520
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
11543
|
+
"onUpdate:modelValue": e[1] || (e[1] = (z) => a.form.lngMinute = z),
|
|
11521
11544
|
rules: a.formRules.lngMinute,
|
|
11522
11545
|
label: "",
|
|
11523
11546
|
density: "compact",
|
|
@@ -11544,7 +11567,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11544
11567
|
height: "32",
|
|
11545
11568
|
class: "text-body-1 btn-bg-1",
|
|
11546
11569
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
11547
|
-
onClick: e[2] || (e[2] = (
|
|
11570
|
+
onClick: e[2] || (e[2] = (z) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
11548
11571
|
}, {
|
|
11549
11572
|
default: f(() => [
|
|
11550
11573
|
K(m(a.form.lngDirection), 1)
|
|
@@ -11565,7 +11588,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11565
11588
|
])),
|
|
11566
11589
|
s("div", null, m(t.$t("spot.lat")), 1)
|
|
11567
11590
|
]),
|
|
11568
|
-
p(
|
|
11591
|
+
p(w, { class: "ma-0" }, {
|
|
11569
11592
|
default: f(() => [
|
|
11570
11593
|
p(b, {
|
|
11571
11594
|
cols: "4",
|
|
@@ -11574,7 +11597,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11574
11597
|
default: f(() => [
|
|
11575
11598
|
p(h, {
|
|
11576
11599
|
modelValue: a.form.latDegree,
|
|
11577
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
11600
|
+
"onUpdate:modelValue": e[3] || (e[3] = (z) => a.form.latDegree = z),
|
|
11578
11601
|
rules: a.formRules.latDegree,
|
|
11579
11602
|
label: "",
|
|
11580
11603
|
density: "compact",
|
|
@@ -11597,7 +11620,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11597
11620
|
default: f(() => [
|
|
11598
11621
|
p(h, {
|
|
11599
11622
|
modelValue: a.form.latMinute,
|
|
11600
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
11623
|
+
"onUpdate:modelValue": e[4] || (e[4] = (z) => a.form.latMinute = z),
|
|
11601
11624
|
rules: a.formRules.latMinute,
|
|
11602
11625
|
label: "",
|
|
11603
11626
|
density: "compact",
|
|
@@ -11624,7 +11647,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11624
11647
|
height: "32",
|
|
11625
11648
|
class: "text-body-1 btn-bg-1",
|
|
11626
11649
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
11627
|
-
onClick: e[5] || (e[5] = (
|
|
11650
|
+
onClick: e[5] || (e[5] = (z) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
11628
11651
|
}, {
|
|
11629
11652
|
default: f(() => [
|
|
11630
11653
|
K(m(a.form.latDirection), 1)
|
|
@@ -11645,18 +11668,18 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11645
11668
|
])),
|
|
11646
11669
|
s("div", null, m(t.$t("spot.dateTime")), 1)
|
|
11647
11670
|
]),
|
|
11648
|
-
p(
|
|
11671
|
+
p(w, { class: "ma-0 mb-4" }, {
|
|
11649
11672
|
default: f(() => [
|
|
11650
11673
|
p(b, {
|
|
11651
11674
|
cols: "12",
|
|
11652
11675
|
class: "pa-0"
|
|
11653
11676
|
}, {
|
|
11654
11677
|
default: f(() => [
|
|
11655
|
-
p(
|
|
11678
|
+
p(_, B({
|
|
11656
11679
|
"date-time": a.form.dateTime,
|
|
11657
11680
|
"time-zone": o.timeZone
|
|
11658
11681
|
}, t.$attrs, {
|
|
11659
|
-
onDateTime: e[6] || (e[6] = (
|
|
11682
|
+
onDateTime: e[6] || (e[6] = (z) => a.form.dateTime = z)
|
|
11660
11683
|
}), null, 16, ["date-time", "time-zone"])
|
|
11661
11684
|
]),
|
|
11662
11685
|
_: 1
|
|
@@ -11672,7 +11695,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11672
11695
|
])),
|
|
11673
11696
|
s("div", null, m(t.$t("weather.forecastModel")), 1)
|
|
11674
11697
|
]),
|
|
11675
|
-
p(
|
|
11698
|
+
p(w, { class: "ma-0 mb-2" }, {
|
|
11676
11699
|
default: f(() => [
|
|
11677
11700
|
p(b, {
|
|
11678
11701
|
cols: "12",
|
|
@@ -11681,7 +11704,7 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11681
11704
|
default: f(() => [
|
|
11682
11705
|
p(g, {
|
|
11683
11706
|
modelValue: a.form.forecastModel,
|
|
11684
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
11707
|
+
"onUpdate:modelValue": e[7] || (e[7] = (z) => a.form.forecastModel = z),
|
|
11685
11708
|
class: "w-100",
|
|
11686
11709
|
rounded: "",
|
|
11687
11710
|
height: "30",
|
|
@@ -11801,11 +11824,11 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11801
11824
|
p(u),
|
|
11802
11825
|
p(P, { class: "text-body-1 px-0 py-1" }, {
|
|
11803
11826
|
default: f(() => {
|
|
11804
|
-
var
|
|
11827
|
+
var z, v;
|
|
11805
11828
|
return [
|
|
11806
11829
|
s("div", Pm, [
|
|
11807
11830
|
s("div", Cm, m(t.$t("time.time")), 1),
|
|
11808
|
-
s("div", Tm, m(r.computedTzTime((
|
|
11831
|
+
s("div", Tm, m(r.computedTzTime((z = a.currentHourData) == null ? void 0 : z.utc)), 1)
|
|
11809
11832
|
]),
|
|
11810
11833
|
s("div", Sm, [
|
|
11811
11834
|
e[18] || (e[18] = s("div", {
|
|
@@ -11839,9 +11862,9 @@ function Xm(t, e, o, i, a, r) {
|
|
|
11839
11862
|
p(u),
|
|
11840
11863
|
p(T, { class: "d-flex justify-space-between align-center" }, {
|
|
11841
11864
|
default: f(() => [
|
|
11842
|
-
o.followList.some((
|
|
11865
|
+
o.followList.some((z) => {
|
|
11843
11866
|
var v, C;
|
|
11844
|
-
return ((v =
|
|
11867
|
+
return ((v = z == null ? void 0 : z.coordinate) == null ? void 0 : v.lng) === a.form.lng && ((C = z == null ? void 0 : z.coordinate) == null ? void 0 : C.lat) === a.form.lat;
|
|
11845
11868
|
}) ? (y(), R(l, {
|
|
11846
11869
|
key: 0,
|
|
11847
11870
|
class: "text-none text-body-1",
|
|
@@ -12004,21 +12027,21 @@ const Km = {
|
|
|
12004
12027
|
var o, i, a, r, l, c, n, u, h, b;
|
|
12005
12028
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
12006
12029
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12007
|
-
const
|
|
12008
|
-
this.pointMarkers[
|
|
12030
|
+
const w = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
|
|
12031
|
+
this.pointMarkers[w.id].filter((T) => {
|
|
12009
12032
|
var O;
|
|
12010
12033
|
return ((O = T._element) == null ? void 0 : O.id) === e;
|
|
12011
12034
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
|
|
12012
12035
|
let g;
|
|
12013
|
-
|
|
12036
|
+
w.features.forEach((T, O) => {
|
|
12014
12037
|
if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
|
|
12015
12038
|
g = O;
|
|
12016
12039
|
return;
|
|
12017
12040
|
}
|
|
12018
12041
|
});
|
|
12019
|
-
const P =
|
|
12042
|
+
const P = w.features.filter((T) => T.geometry.type === "Point");
|
|
12020
12043
|
this.handleTmpPointUpdate(
|
|
12021
|
-
|
|
12044
|
+
w,
|
|
12022
12045
|
P[g - 1],
|
|
12023
12046
|
{ lng: (u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, lat: (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat, properties: P[g].properties },
|
|
12024
12047
|
g === P.length - 1 ? void 0 : P[g + 1]
|
|
@@ -12029,13 +12052,13 @@ const Km = {
|
|
|
12029
12052
|
var o, i, a, r, l, c, n, u, h, b;
|
|
12030
12053
|
const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
|
|
12031
12054
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
12032
|
-
const
|
|
12033
|
-
this.pointMarkers[
|
|
12055
|
+
const w = this.geojson.filter((P) => P.id === e.split("-")[0])[0];
|
|
12056
|
+
this.pointMarkers[w.id].filter((P) => {
|
|
12034
12057
|
var T;
|
|
12035
12058
|
return ((T = P._element) == null ? void 0 : T.id) === e;
|
|
12036
12059
|
})[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
|
|
12037
|
-
const g =
|
|
12038
|
-
g.geometry.coordinates = [(u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat],
|
|
12060
|
+
const g = w.features.filter((P) => P.geometry.type === "Point" && P.properties.id === e.split("-")[1])[0];
|
|
12061
|
+
g.geometry.coordinates = [(u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat], w.features = w.features.filter((P) => P.geometry.type === "Point"), this.handlePointUpdate(w);
|
|
12039
12062
|
}
|
|
12040
12063
|
},
|
|
12041
12064
|
handleContextmenu(t) {
|
|
@@ -12046,7 +12069,7 @@ const Km = {
|
|
|
12046
12069
|
const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
|
|
12047
12070
|
if (c.length > 2 && c.filter((u) => u.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
12048
12071
|
const u = document.createElement("div");
|
|
12049
|
-
u.className = "idm-gl4-measure-contextmenu-marker", u.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new
|
|
12072
|
+
u.className = "idm-gl4-measure-contextmenu-marker", u.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new xe.Marker(u).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
12050
12073
|
}
|
|
12051
12074
|
}
|
|
12052
12075
|
},
|
|
@@ -12085,10 +12108,10 @@ const Km = {
|
|
|
12085
12108
|
for (let a = 1; a < e.length; a++) {
|
|
12086
12109
|
const r = e[a - 1], l = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, u = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, h = Ge.calculateDistance(n, u, c.mode === "RL", 4), b = Ge.calculateBearing(n, u, c.mode === "RL", 2);
|
|
12087
12110
|
o = X.roundPrecision(o + h, 4);
|
|
12088
|
-
let
|
|
12089
|
-
c.mode === "RL" ?
|
|
12090
|
-
const
|
|
12091
|
-
|
|
12111
|
+
let w;
|
|
12112
|
+
c.mode === "RL" ? w = X.convertToMonotonicLng([n, u]) : w = X.convertToMonotonicLng(Ge.interpolateCoordinates(n, u, 200));
|
|
12113
|
+
const _ = H.lineString(w.map((P) => [P.lng, P.lat]));
|
|
12114
|
+
_.properties.dist = h, _.properties.bearing = b, _.properties.total = o, _.properties.name = "Line " + this.currentLineIndex, i.push(_);
|
|
12092
12115
|
const g = e[a];
|
|
12093
12116
|
g.properties.totalDist = X.roundPrecision((c.totalDist ? c.totalDist : 0) + h, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
|
|
12094
12117
|
}
|
|
@@ -12104,16 +12127,16 @@ const Km = {
|
|
|
12104
12127
|
r = Ge.calculateDistance(u, h, n.mode === "RL", 4), l = Ge.calculateBearing(u, h, n.mode === "RL", 2);
|
|
12105
12128
|
let b;
|
|
12106
12129
|
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(Ge.interpolateCoordinates(u, h, 200));
|
|
12107
|
-
const
|
|
12108
|
-
|
|
12130
|
+
const w = H.lineString(b.map((_) => [_.lng, _.lat]));
|
|
12131
|
+
w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
|
|
12109
12132
|
}
|
|
12110
12133
|
if (i) {
|
|
12111
12134
|
const n = o.properties, u = o, h = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
|
|
12112
12135
|
r = Ge.calculateDistance(u, h, n.mode === "RL", 4), l = Ge.calculateBearing(u, h, n.mode === "RL", 2);
|
|
12113
12136
|
let b;
|
|
12114
12137
|
n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(Ge.interpolateCoordinates(u, h, 200));
|
|
12115
|
-
const
|
|
12116
|
-
|
|
12138
|
+
const w = H.lineString(b.map((_) => [_.lng, _.lat]));
|
|
12139
|
+
w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
|
|
12117
12140
|
}
|
|
12118
12141
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
|
|
12119
12142
|
type: "geojson",
|
|
@@ -12168,7 +12191,7 @@ const Km = {
|
|
|
12168
12191
|
this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([o.lng, o.lat]);
|
|
12169
12192
|
else {
|
|
12170
12193
|
const n = document.createElement("div");
|
|
12171
|
-
n.className = "idm-gl4-measure-tip-marker", n.innerHTML = c, this.tipMarker = new
|
|
12194
|
+
n.className = "idm-gl4-measure-tip-marker", n.innerHTML = c, this.tipMarker = new xe.Marker(n).setOffset([140, 0]).setLngLat([o.lng, o.lat]).addTo(this.map);
|
|
12172
12195
|
}
|
|
12173
12196
|
},
|
|
12174
12197
|
handleMove(t) {
|
|
@@ -12244,27 +12267,27 @@ const Km = {
|
|
|
12244
12267
|
for (const c of l) {
|
|
12245
12268
|
const n = document.createElement("div");
|
|
12246
12269
|
n.id = `${t.id}-${c.properties.id}`, n.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
|
|
12247
|
-
const u = new
|
|
12270
|
+
const u = new xe.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
12248
12271
|
u.on("drag", this.handleDrag), u.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(u) : this.pointMarkers[t.id] = [u];
|
|
12249
12272
|
}
|
|
12250
12273
|
if (t.closed) {
|
|
12251
12274
|
const c = l.at(-1), u = t.features.filter((b) => b.geometry.type === "LineString").at(-1), h = document.createElement("div");
|
|
12252
|
-
h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${u.properties.name}</div>`, this.closeMarkers[t.id] = new
|
|
12275
|
+
h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${u.properties.name}</div>`, this.closeMarkers[t.id] = new xe.Marker(h).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
12253
12276
|
}
|
|
12254
12277
|
}
|
|
12255
12278
|
},
|
|
12256
12279
|
handleClear(t, e = !0) {
|
|
12257
|
-
var l, c, n, u, h, b,
|
|
12280
|
+
var l, c, n, u, h, b, w, _, g, P;
|
|
12258
12281
|
const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
|
|
12259
|
-
(l = this.map) != null && l.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), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (
|
|
12282
|
+
(l = this.map) != null && l.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), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
|
|
12260
12283
|
T == null || T.remove();
|
|
12261
|
-
}), this.pointMarkers[t.id] = [], (
|
|
12284
|
+
}), this.pointMarkers[t.id] = [], (_ = this.tipMarker) == null || _.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(o)) && this.map.removeSource(o), e && ((P = this.map) != null && P.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
12262
12285
|
}
|
|
12263
12286
|
}
|
|
12264
|
-
},
|
|
12265
|
-
function
|
|
12266
|
-
const l =
|
|
12267
|
-
return y(), S("div",
|
|
12287
|
+
}, Jm = { class: "idm-gl4-measure" };
|
|
12288
|
+
function Qm(t, e, o, i, a, r) {
|
|
12289
|
+
const l = x("VBtn"), c = x("VTooltip");
|
|
12290
|
+
return y(), S("div", Jm, [
|
|
12268
12291
|
s("div", {
|
|
12269
12292
|
class: "menu-bar-box transition pa-1",
|
|
12270
12293
|
style: ie({ top: o.top + 214 + "px", right: a.right + "px" })
|
|
@@ -12293,7 +12316,7 @@ function Jm(t, e, o, i, a, r) {
|
|
|
12293
12316
|
], 4)
|
|
12294
12317
|
]);
|
|
12295
12318
|
}
|
|
12296
|
-
const ed = /* @__PURE__ */ Y(Km, [["render",
|
|
12319
|
+
const ed = /* @__PURE__ */ Y(Km, [["render", Qm]]);
|
|
12297
12320
|
const td = {
|
|
12298
12321
|
name: "IdmBottomBar",
|
|
12299
12322
|
components: { DateTimePicker: Do },
|
|
@@ -12424,7 +12447,7 @@ const td = {
|
|
|
12424
12447
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
12425
12448
|
}, nd = ["onClick"], cd = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, md = { class: "text-body-1" };
|
|
12426
12449
|
function dd(t, e, o, i, a, r) {
|
|
12427
|
-
const l =
|
|
12450
|
+
const l = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), u = x("VList"), h = x("VMenu"), b = x("VBtn"), w = x("VDivider"), _ = x("VTooltip");
|
|
12428
12451
|
return y(), S("div", od, [
|
|
12429
12452
|
s("div", {
|
|
12430
12453
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
@@ -12489,7 +12512,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
12489
12512
|
_: 1
|
|
12490
12513
|
})
|
|
12491
12514
|
]),
|
|
12492
|
-
p(
|
|
12515
|
+
p(w, {
|
|
12493
12516
|
vertical: "",
|
|
12494
12517
|
class: "mx-2 my-3",
|
|
12495
12518
|
style: { height: "16px" }
|
|
@@ -12562,13 +12585,13 @@ function dd(t, e, o, i, a, r) {
|
|
|
12562
12585
|
__: [14]
|
|
12563
12586
|
}, 8, ["onClick"])
|
|
12564
12587
|
]),
|
|
12565
|
-
p(
|
|
12588
|
+
p(w, {
|
|
12566
12589
|
vertical: "",
|
|
12567
12590
|
class: "mx-2 my-3",
|
|
12568
12591
|
style: { height: "16px" }
|
|
12569
12592
|
}),
|
|
12570
12593
|
s("div", rd, [
|
|
12571
|
-
p(
|
|
12594
|
+
p(_, {
|
|
12572
12595
|
text: t.$t("weather.windBarbs"),
|
|
12573
12596
|
location: "top"
|
|
12574
12597
|
}, {
|
|
@@ -12594,7 +12617,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
12594
12617
|
}),
|
|
12595
12618
|
_: 1
|
|
12596
12619
|
}, 8, ["text"]),
|
|
12597
|
-
p(
|
|
12620
|
+
p(_, {
|
|
12598
12621
|
text: t.$t("weather.sigWaveHeight"),
|
|
12599
12622
|
location: "top"
|
|
12600
12623
|
}, {
|
|
@@ -12619,7 +12642,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
12619
12642
|
}),
|
|
12620
12643
|
_: 1
|
|
12621
12644
|
}, 8, ["text"]),
|
|
12622
|
-
p(
|
|
12645
|
+
p(_, {
|
|
12623
12646
|
text: t.$t("weather.currentDirection"),
|
|
12624
12647
|
location: "top"
|
|
12625
12648
|
}, {
|
|
@@ -12644,7 +12667,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
12644
12667
|
}),
|
|
12645
12668
|
_: 1
|
|
12646
12669
|
}, 8, ["text"]),
|
|
12647
|
-
p(
|
|
12670
|
+
p(_, {
|
|
12648
12671
|
text: t.$t("weather.weatherLayers"),
|
|
12649
12672
|
location: "top"
|
|
12650
12673
|
}, {
|
|
@@ -12666,7 +12689,7 @@ function dd(t, e, o, i, a, r) {
|
|
|
12666
12689
|
_: 1
|
|
12667
12690
|
}, 8, ["text"])
|
|
12668
12691
|
]),
|
|
12669
|
-
p(
|
|
12692
|
+
p(w, {
|
|
12670
12693
|
vertical: "",
|
|
12671
12694
|
class: "mx-2 mr-3 my-3",
|
|
12672
12695
|
style: { height: "16px" }
|
|
@@ -12781,7 +12804,7 @@ const hd = /* @__PURE__ */ Y(td, [["render", dd]]), pd = {
|
|
|
12781
12804
|
layerVersion: {
|
|
12782
12805
|
handler() {
|
|
12783
12806
|
if (this.map) {
|
|
12784
|
-
const t = this.autoActive && this.weatherCheckList.some((i) => ["wind-particle", "sig-wave", "swell", "current-particle", "water-temp", "temp"].some((a) => a === i)), e = this.otherCheckList.some((i) => ["
|
|
12807
|
+
const t = this.autoActive && this.weatherCheckList.some((i) => ["wind-particle", "sig-wave", "swell", "current-particle", "water-temp", "temp"].some((a) => a === i)), e = this.otherCheckList.some((i) => ["navareas", "eca-zones", "load-lines", "voluntary-reporting-area", "war-zones", "special-area", "ice-areas"].some((a) => a === i)), o = t || e;
|
|
12785
12808
|
this.mapFeather === "nautical" ? t ? (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), this.map.getLayer("i4") && this.map.setLayoutProperty("i4", "visibility", "none"), this.map.getLayer("hi") && this.map.setLayoutProperty("hi", "visibility", "none"), this.map.getLayer("admin-0-boundary-bg") && this.map.setLayoutProperty("admin-0-boundary-bg", "visibility", "visible"), this.map.getLayer("admin-0-boundary") && this.map.setLayoutProperty("admin-0-boundary", "visibility", "visible"), this.map.getLayer("admin-0-boundary-disputed") && this.map.setLayoutProperty("admin-0-boundary-disputed", "visibility", "visible"), this.map.getLayer("country-label") && this.map.setLayoutProperty("country-label", "visibility", "visible"), this.map.getLayer("continent-label") && this.map.setLayoutProperty("continent-label", "visibility", "visible")) : (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), this.map.getLayer("i4") && this.map.setLayoutProperty("i4", "visibility", "visible"), this.map.getLayer("hi") && this.map.setLayoutProperty("hi", "visibility", "visible"), this.map.getLayer("admin-0-boundary-bg") && this.map.setLayoutProperty("admin-0-boundary-bg", "visibility", "none"), this.map.getLayer("admin-0-boundary") && this.map.setLayoutProperty("admin-0-boundary", "visibility", "none"), this.map.getLayer("admin-0-boundary-disputed") && this.map.setLayoutProperty("admin-0-boundary-disputed", "visibility", "none"), this.map.getLayer("country-label") && this.map.setLayoutProperty("country-label", "visibility", "none"), this.map.getLayer("continent-label") && this.map.setLayoutProperty("continent-label", "visibility", "none")) : this.mapFeather === "satellite" ? t ? (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), this.map.getLayer("water-outline") && this.map.setLayoutProperty("water-outline", "visibility", "visible"), this.map.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "country-boundaries"), this.map.getLayer("particle-layer") && this.map.moveLayer("particle-layer", "country-boundaries")) : (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), this.map.getLayer("water-outline") && this.map.setLayoutProperty("water-outline", "visibility", "none")) : o ? (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), this.map.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "visible"), t && (this.map.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "empty-layer-0"), this.map.getLayer("particle-layer") && this.map.moveLayer("particle-layer", "empty-layer-0"))) : (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), this.map.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "none"));
|
|
12786
12809
|
}
|
|
12787
12810
|
},
|
|
@@ -12794,7 +12817,7 @@ const hd = /* @__PURE__ */ Y(td, [["render", dd]]), pd = {
|
|
|
12794
12817
|
class: "map-gl4-home"
|
|
12795
12818
|
};
|
|
12796
12819
|
function gd(t, e, o, i, a, r) {
|
|
12797
|
-
const l =
|
|
12820
|
+
const l = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), u = x("IdmMeasure"), h = x("IdmSpot"), b = x("IdmBottomBar");
|
|
12798
12821
|
return y(), S("div", ud, [
|
|
12799
12822
|
p(l, B({
|
|
12800
12823
|
ref: "idmOtherLayers",
|
|
@@ -12807,8 +12830,8 @@ function gd(t, e, o, i, a, r) {
|
|
|
12807
12830
|
"forecast-model": o.forecastModel,
|
|
12808
12831
|
"map-feather": o.mapFeather
|
|
12809
12832
|
}, t.$attrs, {
|
|
12810
|
-
onOtherCheckList: e[0] || (e[0] = (
|
|
12811
|
-
a.otherCheckList =
|
|
12833
|
+
onOtherCheckList: e[0] || (e[0] = (w) => {
|
|
12834
|
+
a.otherCheckList = w, a.layerVersion = a.layerVersion + 1;
|
|
12812
12835
|
})
|
|
12813
12836
|
}), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12814
12837
|
p(c, B({
|
|
@@ -12822,11 +12845,11 @@ function gd(t, e, o, i, a, r) {
|
|
|
12822
12845
|
"forecast-model": o.forecastModel,
|
|
12823
12846
|
"map-feather": o.mapFeather
|
|
12824
12847
|
}, t.$attrs, {
|
|
12825
|
-
onAutoActive: e[1] || (e[1] = (
|
|
12826
|
-
a.autoActive =
|
|
12848
|
+
onAutoActive: e[1] || (e[1] = (w) => {
|
|
12849
|
+
a.autoActive = w, a.layerVersion = a.layerVersion + 1;
|
|
12827
12850
|
}),
|
|
12828
|
-
onWeatherCheckList: e[2] || (e[2] = (
|
|
12829
|
-
a.weatherCheckList =
|
|
12851
|
+
onWeatherCheckList: e[2] || (e[2] = (w) => {
|
|
12852
|
+
a.weatherCheckList = w, a.layerVersion = a.layerVersion + 1;
|
|
12830
12853
|
})
|
|
12831
12854
|
}), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
|
|
12832
12855
|
p(n, B({
|
|
@@ -12869,7 +12892,7 @@ class yd {
|
|
|
12869
12892
|
de(this, "hi");
|
|
12870
12893
|
de(this, "td");
|
|
12871
12894
|
de(this, "windy");
|
|
12872
|
-
var o, i, a, r, l, c, n, u, h, b,
|
|
12895
|
+
var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, ve, Le, Pe, De, Ae, Re, _e, G, te, He, Me, ue, fe, U, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke, Je, Qe, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Ut, Wt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ao, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Uo, Wo, Vo, Zo, Yo, qo, Xo, $o, Ko, Jo, Qo, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Da, Aa, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga, Ua, Wa;
|
|
12873
12896
|
this.i4 = {
|
|
12874
12897
|
source: {
|
|
12875
12898
|
type: "raster",
|
|
@@ -31515,22 +31538,22 @@ class yd {
|
|
|
31515
31538
|
(c = (l = this.originStyle) == null ? void 0 : l.light.layers) == null ? void 0 : c.find((d) => d.id === "ice-area-fill"),
|
|
31516
31539
|
(u = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : u.find((d) => d.id === "ice-area-line"),
|
|
31517
31540
|
(b = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : b.find((d) => d.id === "loadlines-label"),
|
|
31518
|
-
(
|
|
31541
|
+
(_ = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : _.find((d) => d.id === "loadlines-fill"),
|
|
31519
31542
|
(P = (g = this.originStyle) == null ? void 0 : g.light.layers) == null ? void 0 : P.find((d) => d.id === "empty-layer-0"),
|
|
31520
31543
|
(O = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : O.find((d) => d.id === "empty-layer-1"),
|
|
31521
31544
|
(L = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : L.find((d) => d.id === "country-boundaries"),
|
|
31522
|
-
(v = (
|
|
31523
|
-
(
|
|
31545
|
+
(v = (z = this.originStyle) == null ? void 0 : z.light.layers) == null ? void 0 : v.find((d) => d.id === "water-outline"),
|
|
31546
|
+
(k = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : k.find((d) => d.id === "water-outline2"),
|
|
31524
31547
|
(N = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : N.find((d) => d.id === "empty-layer-2"),
|
|
31525
31548
|
(Z = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : Z.find((d) => d.id === "water-line-label"),
|
|
31526
31549
|
(ee = (W = this.originStyle) == null ? void 0 : W.light.layers) == null ? void 0 : ee.find((d) => d.id === "water-point-label"),
|
|
31527
|
-
($ = (
|
|
31550
|
+
($ = (J = this.originStyle) == null ? void 0 : J.light.layers) == null ? void 0 : $.find((d) => d.id === "world-12nm-v4-20231025"),
|
|
31528
31551
|
(se = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : se.find((d) => d.id === "ne-10m-outline"),
|
|
31529
|
-
(ae = (
|
|
31552
|
+
(ae = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : ae.find((d) => d.id === "ne-10m-label"),
|
|
31530
31553
|
(ce = (he = this.originStyle) == null ? void 0 : he.light.layers) == null ? void 0 : ce.find((d) => d.id === "china-route-line"),
|
|
31531
31554
|
(ge = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : ge.find((d) => d.id === "china-route-fill"),
|
|
31532
31555
|
(me = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : me.find((d) => d.id === "china-route-label"),
|
|
31533
|
-
(Le = (
|
|
31556
|
+
(Le = (ve = this.originStyle) == null ? void 0 : ve.light.layers) == null ? void 0 : Le.find((d) => d.id === "admin-0-boundary-bg"),
|
|
31534
31557
|
(De = (Pe = this.originStyle) == null ? void 0 : Pe.light.layers) == null ? void 0 : De.find((d) => d.id === "admin-0-boundary"),
|
|
31535
31558
|
(Re = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : Re.find((d) => d.id === "admin-0-boundary-disputed"),
|
|
31536
31559
|
(G = (_e = this.originStyle) == null ? void 0 : _e.light.layers) == null ? void 0 : G.find((d) => d.id === "country-label"),
|
|
@@ -31568,7 +31591,7 @@ class yd {
|
|
|
31568
31591
|
(Te = (Ye = this.originStyle) == null ? void 0 : Ye.dark.layers) == null ? void 0 : Te.find((d) => d.id === "ice-area-line"),
|
|
31569
31592
|
(Xe = (qe = this.originStyle) == null ? void 0 : qe.dark.layers) == null ? void 0 : Xe.find((d) => d.id === "loadlines-label"),
|
|
31570
31593
|
(Ke = ($e = this.originStyle) == null ? void 0 : $e.dark.layers) == null ? void 0 : Ke.find((d) => d.id === "loadlines-fill"),
|
|
31571
|
-
(
|
|
31594
|
+
(Qe = (Je = this.originStyle) == null ? void 0 : Je.dark.layers) == null ? void 0 : Qe.find((d) => d.id === "empty-layer-0"),
|
|
31572
31595
|
(tt = (et = this.originStyle) == null ? void 0 : et.dark.layers) == null ? void 0 : tt.find((d) => d.id === "empty-layer-1"),
|
|
31573
31596
|
(at = (ot = this.originStyle) == null ? void 0 : ot.dark.layers) == null ? void 0 : at.find((d) => d.id === "country-boundaries"),
|
|
31574
31597
|
(rt = (it = this.originStyle) == null ? void 0 : it.dark.layers) == null ? void 0 : rt.find((d) => d.id === "water-outline"),
|
|
@@ -31613,7 +31636,7 @@ class yd {
|
|
|
31613
31636
|
layers: [
|
|
31614
31637
|
(qt = (Yt = this.originStyle) == null ? void 0 : Yt.satellite.layers) == null ? void 0 : qt.find((d) => d.id === "background"),
|
|
31615
31638
|
(Kt = (Xt = this.originStyle) == null ? void 0 : Xt.satellite.layers) == null ? void 0 : Kt.find((d) => d.id === "satellite"),
|
|
31616
|
-
(
|
|
31639
|
+
(Qt = (Jt = this.originStyle) == null ? void 0 : Jt.satellite.layers) == null ? void 0 : Qt.find((d) => d.id === "loadlines-label"),
|
|
31617
31640
|
(to = (eo = this.originStyle) == null ? void 0 : eo.satellite.layers) == null ? void 0 : to.find((d) => d.id === "loadlines-fill"),
|
|
31618
31641
|
(ao = (oo = this.originStyle) == null ? void 0 : oo.satellite.layers) == null ? void 0 : ao.find((d) => d.id === "empty-layer-0"),
|
|
31619
31642
|
(ro = (io = this.originStyle) == null ? void 0 : io.satellite.layers) == null ? void 0 : ro.find((d) => d.id === "empty-layer-1"),
|
|
@@ -31695,8 +31718,8 @@ class yd {
|
|
|
31695
31718
|
(qo = (Yo = this.originStyle) == null ? void 0 : Yo.light.layers) == null ? void 0 : qo.find((d) => d.id === "land"),
|
|
31696
31719
|
($o = (Xo = this.originStyle) == null ? void 0 : Xo.light.layers) == null ? void 0 : $o.find((d) => d.id === "water"),
|
|
31697
31720
|
this.i4.layer,
|
|
31698
|
-
(
|
|
31699
|
-
(ea = (
|
|
31721
|
+
(Jo = (Ko = this.originStyle) == null ? void 0 : Ko.light.layers) == null ? void 0 : Jo.find((d) => d.id === "ice-area-fill"),
|
|
31722
|
+
(ea = (Qo = this.originStyle) == null ? void 0 : Qo.light.layers) == null ? void 0 : ea.find((d) => d.id === "ice-area-line"),
|
|
31700
31723
|
(oa = (ta = this.originStyle) == null ? void 0 : ta.light.layers) == null ? void 0 : oa.find((d) => d.id === "loadlines-label"),
|
|
31701
31724
|
(ia = (aa = this.originStyle) == null ? void 0 : aa.light.layers) == null ? void 0 : ia.find((d) => d.id === "loadlines-fill"),
|
|
31702
31725
|
(sa = (ra = this.originStyle) == null ? void 0 : ra.light.layers) == null ? void 0 : sa.find((d) => d.id === "empty-layer-0"),
|
|
@@ -31787,8 +31810,8 @@ const bd = {
|
|
|
31787
31810
|
},
|
|
31788
31811
|
methods: {
|
|
31789
31812
|
async initOnlineMap() {
|
|
31790
|
-
this.helper = new yd(this.token),
|
|
31791
|
-
const t = new
|
|
31813
|
+
this.helper = new yd(this.token), xe.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
31814
|
+
const t = new xe.Map({
|
|
31792
31815
|
container: "map",
|
|
31793
31816
|
// style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
|
|
31794
31817
|
// style: 'mapbox://styles/neatchenheng/cmdqwez32005b01re2w0k3zk4', // dark
|
|
@@ -31815,7 +31838,7 @@ const bd = {
|
|
|
31815
31838
|
},
|
|
31816
31839
|
addScaleControl() {
|
|
31817
31840
|
var e;
|
|
31818
|
-
this.map.addControl(new
|
|
31841
|
+
this.map.addControl(new xe.ScaleControl({ maxWidth: 120, unit: "nautical" }), "bottom-left");
|
|
31819
31842
|
const t = (e = document.getElementsByClassName("mapboxgl-ctrl-scale")) == null ? void 0 : e[0];
|
|
31820
31843
|
t && (t.className = "mapboxgl-ctrl-scale " + this.mapFeather);
|
|
31821
31844
|
},
|
|
@@ -31830,7 +31853,7 @@ const bd = {
|
|
|
31830
31853
|
}
|
|
31831
31854
|
}, wd = { class: "mapbox-initial-gl4" }, xd = { class: "v-btn--variant-elevated rounded" }, vd = { class: "zoom" }, _d = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70" };
|
|
31832
31855
|
function kd(t, e, o, i, a, r) {
|
|
31833
|
-
const l =
|
|
31856
|
+
const l = x("VBtn");
|
|
31834
31857
|
return y(), S("div", wd, [
|
|
31835
31858
|
e[5] || (e[5] = s("div", { id: "map" }, null, -1)),
|
|
31836
31859
|
s("div", {
|
|
@@ -32041,7 +32064,7 @@ const Ld = {
|
|
|
32041
32064
|
ref: "idmGl4DatePicker"
|
|
32042
32065
|
}, Cd = { class: "pa-0" };
|
|
32043
32066
|
function Td(t, e, o, i, a, r) {
|
|
32044
|
-
const l =
|
|
32067
|
+
const l = x("VBtn"), c = x("VDatePicker"), n = x("VCardText"), u = x("VDivider"), h = x("VCardActions"), b = x("VCard");
|
|
32045
32068
|
return y(), S("div", Pd, [
|
|
32046
32069
|
p(l, {
|
|
32047
32070
|
text: "",
|
|
@@ -32065,7 +32088,7 @@ function Td(t, e, o, i, a, r) {
|
|
|
32065
32088
|
s("div", Cd, [
|
|
32066
32089
|
p(c, {
|
|
32067
32090
|
modelValue: a.dateRange,
|
|
32068
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
32091
|
+
"onUpdate:modelValue": e[0] || (e[0] = (w) => a.dateRange = w),
|
|
32069
32092
|
min: a.minDate,
|
|
32070
32093
|
max: a.maxDate,
|
|
32071
32094
|
"mode-icon": () => r.currentYear,
|