@idmwx/idmui-gl3 5.4.2 → 5.5.0
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 +109 -109
- package/dist/index.umd.cjs +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { LayerHelper as Ke, CompanyHelper as Xe } from "@idm-plugin/tag";
|
|
|
5
5
|
import R from "moment";
|
|
6
6
|
import ne from "axios";
|
|
7
7
|
import Ge from "moment-timezone";
|
|
8
|
-
import { resolveComponent as k, openBlock as u, createElementBlock as A, createElementVNode as s, normalizeStyle as J, createVNode as P, withCtx as te, normalizeClass as _, Fragment as S, renderList as O, toDisplayString as
|
|
8
|
+
import { resolveComponent as k, openBlock as u, createElementBlock as A, createElementVNode as s, normalizeStyle as J, createVNode as P, withCtx as te, normalizeClass as _, Fragment as S, renderList as O, toDisplayString as B, createCommentVNode as H, createBlock as pt, createTextVNode as U, withDirectives as fe, createStaticVNode as mt, vShow as we, defineComponent as ut, withModifiers as Ue, mergeProps as Q } from "vue";
|
|
9
9
|
import * as D from "@turf/turf";
|
|
10
10
|
import gt from "@mapbox/sphericalmercator";
|
|
11
11
|
import ve from "mapbox-gl";
|
|
@@ -391,7 +391,7 @@ function $t(a, e, t, r, i, o) {
|
|
|
391
391
|
s("span", {
|
|
392
392
|
class: "name",
|
|
393
393
|
onClick: (d) => o.handleWeatherLayerPick(n)
|
|
394
|
-
},
|
|
394
|
+
}, B(n.name), 9, xt),
|
|
395
395
|
n.key === "wind" && i.activeWeatherLayers.some((d) => d.key === n.key) ? (u(), A("div", Bt, [
|
|
396
396
|
s("i", {
|
|
397
397
|
class: _(["iconfont sub-layer-icon", t.showWindParticle ? "active" : ""]),
|
|
@@ -457,7 +457,7 @@ function $t(a, e, t, r, i, o) {
|
|
|
457
457
|
s("span", {
|
|
458
458
|
class: "name",
|
|
459
459
|
onClick: (d) => o.handleWeatherLayerPick(n)
|
|
460
|
-
},
|
|
460
|
+
}, B(n.name), 9, St),
|
|
461
461
|
n.key === "wind" && i.activeWeatherLayers.some((d) => d.key === n.key) ? (u(), A("div", _t, [
|
|
462
462
|
s("i", {
|
|
463
463
|
class: _(["iconfont sub-layer-icon", t.showWindParticle ? "active" : ""]),
|
|
@@ -509,7 +509,7 @@ function $t(a, e, t, r, i, o) {
|
|
|
509
509
|
s("div", Ut, [
|
|
510
510
|
(d = o.computeLayerClass(n, i.activeOtherLayers)) != null && d.includes("active") ? (u(), A("i", Yt, "")) : (u(), A("i", Kt, ""))
|
|
511
511
|
]),
|
|
512
|
-
s("span", null,
|
|
512
|
+
s("span", null, B(n.name), 1)
|
|
513
513
|
])
|
|
514
514
|
], 10, Gt);
|
|
515
515
|
}), 128))
|
|
@@ -532,9 +532,9 @@ function $t(a, e, t, r, i, o) {
|
|
|
532
532
|
default: te(() => {
|
|
533
533
|
var w, m, y, f, g, b;
|
|
534
534
|
return [
|
|
535
|
-
U(
|
|
536
|
-
d !== 0 ? (u(), A("span", qt,
|
|
537
|
-
d === 0 ? (u(), A("div", Vt, "Provides the best forecast")) : (y = (m = (w = n == null ? void 0 : n.update) == null ? void 0 : w.default) == null ? void 0 : m.meta) != null && y.initialisationTime ? (u(), A("div", Zt, "Update: " +
|
|
535
|
+
U(B(n.name) + " ", 1),
|
|
536
|
+
d !== 0 ? (u(), A("span", qt, B(n.resolution) + "km " + B(n.length) + "days", 1)) : H("", !0),
|
|
537
|
+
d === 0 ? (u(), A("div", Vt, "Provides the best forecast")) : (y = (m = (w = n == null ? void 0 : n.update) == null ? void 0 : w.default) == null ? void 0 : m.meta) != null && y.initialisationTime ? (u(), A("div", Zt, "Update: " + B(o.computeDateZ((b = (g = (f = n == null ? void 0 : n.update) == null ? void 0 : f.default) == null ? void 0 : g.meta) == null ? void 0 : b.initialisationTime)), 1)) : H("", !0)
|
|
538
538
|
];
|
|
539
539
|
}),
|
|
540
540
|
_: 2
|
|
@@ -922,7 +922,7 @@ class Ce {
|
|
|
922
922
|
}
|
|
923
923
|
const m = e.getBoundPixel(), y = e.map.getZoom() + 1, f = e.getWorldCopy(m, y);
|
|
924
924
|
for (const g of f) {
|
|
925
|
-
const b = (g[0] - m[0]) * e.ratio, v = (g[1] - m[3]) * e.ratio,
|
|
925
|
+
const b = (g[0] - m[0]) * e.ratio, v = (g[1] - m[3]) * e.ratio, x = g[2] * e.ratio, [M, I, N, F] = [b, x + b, v, x + v], G = new Float32Array([M, N, I, N, M, F, M, F, I, N, I, F]);
|
|
926
926
|
t.bindBuffer(t.ARRAY_BUFFER, l), t.bufferData(t.ARRAY_BUFFER, G, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
927
927
|
}
|
|
928
928
|
} catch (n) {
|
|
@@ -4217,8 +4217,8 @@ const Da = {
|
|
|
4217
4217
|
var w, m, y, f, g, b, v;
|
|
4218
4218
|
if (((w = n.geometry) == null ? void 0 : w.type) === "LineString" && ((m = n.properties) == null || m.type), ((y = n.geometry) == null ? void 0 : y.type) === "Point" && ((f = n.properties) == null ? void 0 : f.type) === "forecast" && (n.properties.name = o, n.properties.format = R(n.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((g = n.geometry) == null ? void 0 : g.type) === "Point" && ((b = n.properties) == null ? void 0 : b.type) === "history") {
|
|
4219
4219
|
n.properties.format = R(n.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
4220
|
-
const
|
|
4221
|
-
n.properties.showHistoryLabel =
|
|
4220
|
+
const x = R((v = n.properties) == null ? void 0 : v.date).utc().format("HHmm") === R().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
|
|
4221
|
+
n.properties.showHistoryLabel = x || d === l, n.properties.showNameLabel = d === l, n.properties.name = o;
|
|
4222
4222
|
}
|
|
4223
4223
|
return n;
|
|
4224
4224
|
});
|
|
@@ -4490,7 +4490,7 @@ const Da = {
|
|
|
4490
4490
|
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), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.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), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
|
|
4491
4491
|
},
|
|
4492
4492
|
handleDateChange() {
|
|
4493
|
-
var a, e, t, r, i, o, l, c, h, p, n, d, w, m, y, f, g, b, v,
|
|
4493
|
+
var a, e, t, r, i, o, l, c, h, p, n, d, w, m, y, f, g, b, v, x, M, I, N, F, G, Y, K, $, le, ce, he, de, pe, me, ue, ge;
|
|
4494
4494
|
if ((a = this.interpolateMarkers) == null || a.forEach((ee) => ee == null ? void 0 : ee.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
4495
4495
|
const ee = R(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), re = this.interpolateData.filter((T) => T.properties.date === ee.format() && !T.properties.disabled), Ae = this.handleComputePolygons(re), ae = D.featureCollection([...re]);
|
|
4496
4496
|
Ae.forEach((T) => {
|
|
@@ -4512,7 +4512,7 @@ const Da = {
|
|
|
4512
4512
|
for (const T of re)
|
|
4513
4513
|
if (!T.properties.disabled) {
|
|
4514
4514
|
let q = "#f44336";
|
|
4515
|
-
((c = (l = T.properties) == null ? void 0 : l.wind) == null ? void 0 : c.spd) < 17.2 || !((p = (h = T.properties) == null ? void 0 : h.wind) != null && p.spd) ? q = "#03f869" : ((d = (n = T.properties) == null ? void 0 : n.wind) == null ? void 0 : d.spd) >= 17.2 && ((m = (w = T.properties) == null ? void 0 : w.wind) == null ? void 0 : m.spd) < 24.5 ? q = "#f2f202" : ((f = (y = T.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((b = (g = T.properties) == null ? void 0 : g.wind) == null ? void 0 : b.spd) < 32.7 ? q = "#ff9100" : ((
|
|
4515
|
+
((c = (l = T.properties) == null ? void 0 : l.wind) == null ? void 0 : c.spd) < 17.2 || !((p = (h = T.properties) == null ? void 0 : h.wind) != null && p.spd) ? q = "#03f869" : ((d = (n = T.properties) == null ? void 0 : n.wind) == null ? void 0 : d.spd) >= 17.2 && ((m = (w = T.properties) == null ? void 0 : w.wind) == null ? void 0 : m.spd) < 24.5 ? q = "#f2f202" : ((f = (y = T.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((b = (g = T.properties) == null ? void 0 : g.wind) == null ? void 0 : b.spd) < 32.7 ? q = "#ff9100" : ((x = (v = T.properties) == null ? void 0 : v.wind) == null ? void 0 : x.spd) >= 32.7 && ((I = (M = T.properties) == null ? void 0 : M.wind) == null ? void 0 : I.spd) < 41.5 ? q = "#f44336" : ((F = (N = T.properties) == null ? void 0 : N.wind) == null ? void 0 : F.spd) >= 41.5 && ((Y = (G = T.properties) == null ? void 0 : G.wind) == null ? void 0 : Y.spd) < 51 ? q = "#f903d0" : (($ = (K = T.properties) == null ? void 0 : K.wind) == null ? void 0 : $.spd) >= 51 ? q = "#8702f9" : q = "#f44336";
|
|
4516
4516
|
const ye = `<svg t="1719918955501"
|
|
4517
4517
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
4518
4518
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -4672,7 +4672,7 @@ const Da = {
|
|
|
4672
4672
|
style: { "justify-content": "flex-start" }
|
|
4673
4673
|
}, Ra = { class: "forecast-models" }, Fa = ["onClick"], Ga = { class: "more" };
|
|
4674
4674
|
function Wa(a, e, t, r, i, o) {
|
|
4675
|
-
var l, c, h, p, n, d, w, m, y, f, g, b, v,
|
|
4675
|
+
var l, c, h, p, n, d, w, m, y, f, g, b, v, x, M;
|
|
4676
4676
|
return fe((u(), A("div", Pa, [
|
|
4677
4677
|
s("div", ka, [
|
|
4678
4678
|
s("div", {
|
|
@@ -4680,21 +4680,21 @@ function Wa(a, e, t, r, i, o) {
|
|
|
4680
4680
|
onClick: e[0] || (e[0] = (I) => i.showTropicals = !1)
|
|
4681
4681
|
}, ""),
|
|
4682
4682
|
s("div", Ma, [
|
|
4683
|
-
(c = (l = i.activeTropicals) == null ? void 0 : l.history) != null && c.level ? (u(), A("span", za,
|
|
4684
|
-
U(
|
|
4683
|
+
(c = (l = i.activeTropicals) == null ? void 0 : l.history) != null && c.level ? (u(), A("span", za, B((p = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : p.level) + " , ", 1)) : H("", !0),
|
|
4684
|
+
U(B((n = i.activeTropicals) == null ? void 0 : n.name), 1)
|
|
4685
4685
|
]),
|
|
4686
|
-
s("div", Ta, " Last update: " +
|
|
4686
|
+
s("div", Ta, " Last update: " + B(o.computeTime(((w = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : w.updated) || ((f = (y = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : y.filter((I) => !I.disabled)[0]) == null ? void 0 : f.date))), 1)
|
|
4687
4687
|
]),
|
|
4688
4688
|
s("div", Qa, [
|
|
4689
4689
|
s("div", Sa, [
|
|
4690
4690
|
s("div", _a, [
|
|
4691
4691
|
s("div", Ha, [
|
|
4692
4692
|
e[2] || (e[2] = s("label", null, "Wind speed : ", -1)),
|
|
4693
|
-
s("span", null,
|
|
4693
|
+
s("span", null, B(((b = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : b.kts) || "-") + "[kts]", 1)
|
|
4694
4694
|
]),
|
|
4695
4695
|
s("div", Oa, [
|
|
4696
4696
|
e[3] || (e[3] = s("label", null, "Pressure : ", -1)),
|
|
4697
|
-
s("span", null,
|
|
4697
|
+
s("span", null, B(((x = (v = i.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : x.pressure) || "-") + "[hPa]", 1)
|
|
4698
4698
|
])
|
|
4699
4699
|
]),
|
|
4700
4700
|
s("div", Na, [
|
|
@@ -4714,7 +4714,7 @@ function Wa(a, e, t, r, i, o) {
|
|
|
4714
4714
|
}, [
|
|
4715
4715
|
s("span", {
|
|
4716
4716
|
class: _(I.model)
|
|
4717
|
-
},
|
|
4717
|
+
}, B(I.model), 3)
|
|
4718
4718
|
], 10, Fa);
|
|
4719
4719
|
}), 128))
|
|
4720
4720
|
])
|
|
@@ -5537,7 +5537,7 @@ const ui = {
|
|
|
5537
5537
|
initTableData(a) {
|
|
5538
5538
|
var e, t, r, i, o, l, c, h, p;
|
|
5539
5539
|
this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (l = (o = Ge(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : l.format("MMM-DD/HHmm[LT]"), this.currentHourData = (c = We.pickHourly(a, R(this.ts))) == null ? void 0 : c[0], ((p = (h = this.currentHourData) == null ? void 0 : h.weather) == null ? void 0 : p.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
5540
|
-
var d, w, m, y, f, g, b, v,
|
|
5540
|
+
var d, w, m, y, f, g, b, v, x, M, I, N, F, G, Y, K, $, le, ce, he, de, pe, me, ue, ge, ee, re, Ae, ae, T, q, ye, ie;
|
|
5541
5541
|
if (!document.getElementById("meteoMainBox"))
|
|
5542
5542
|
return !1;
|
|
5543
5543
|
if (!this.currentHourData)
|
|
@@ -5546,7 +5546,7 @@ const ui = {
|
|
|
5546
5546
|
const se = Ge(this.ts).tz(this.positionGmt).add(3 * oe, "h").format();
|
|
5547
5547
|
this.tableData.hours.push(se);
|
|
5548
5548
|
const C = ((d = We.pickHourly(a, se)) == null ? void 0 : d[0]) || {};
|
|
5549
|
-
this.tableData.temp.push(this.roundPrecision((w = C == null ? void 0 : C.weather) == null ? void 0 : w.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((y = (m = C == null ? void 0 : C.weather) == null ? void 0 : m.precip) == null ? void 0 : y.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((g = (f = C == null ? void 0 : C.weather) == null ? void 0 : f.precip) == null ? void 0 : g.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((b = C == null ? void 0 : C.weather) == null ? void 0 : b.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((
|
|
5549
|
+
this.tableData.temp.push(this.roundPrecision((w = C == null ? void 0 : C.weather) == null ? void 0 : w.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((y = (m = C == null ? void 0 : C.weather) == null ? void 0 : m.precip) == null ? void 0 : y.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((g = (f = C == null ? void 0 : C.weather) == null ? void 0 : f.precip) == null ? void 0 : g.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((b = C == null ? void 0 : C.weather) == null ? void 0 : b.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((x = (v = C == null ? void 0 : C.weather) == null ? void 0 : v.wind) == null ? void 0 : x.kts, 1) ?? "-"), this.tableData.windDir.push((I = (M = C == null ? void 0 : C.weather) == null ? void 0 : M.wind) == null ? void 0 : I.bearing), this.tableData.windGust.push(this.roundPrecision((F = (N = C == null ? void 0 : C.weather) == null ? void 0 : N.wind) == null ? void 0 : F.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((Y = (G = C == null ? void 0 : C.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.height, 1) ?? "-"), this.tableData.sigwaveDir.push(($ = (K = C == null ? void 0 : C.wave) == null ? void 0 : K.sig) == null ? void 0 : $.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((ce = (le = C == null ? void 0 : C.wave) == null ? void 0 : le.wd) == null ? void 0 : ce.height, 1) ?? "-"), this.tableData.windwaveDir.push((de = (he = C == null ? void 0 : C.wave) == null ? void 0 : he.wd) == null ? void 0 : de.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((me = (pe = C == null ? void 0 : C.wave) == null ? void 0 : pe.wd) == null ? void 0 : me.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (ue = C == null ? void 0 : C.wave) == null ? void 0 : ue.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((re = (ee = C == null ? void 0 : C.wave) == null ? void 0 : ee.swell) == null ? void 0 : re.bearing), this.tableData.swellPeriod.push(this.roundPrecision((ae = (Ae = C == null ? void 0 : C.wave) == null ? void 0 : Ae.swell) == null ? void 0 : ae.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((T = C == null ? void 0 : C.current) == null ? void 0 : T.speed, 1) ?? "-"), this.tableData.currentDir.push((q = C == null ? void 0 : C.current) == null ? void 0 : q.bearing), this.tableData.seaLevel.push(this.roundPrecision(C == null ? void 0 : C.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(C == null ? void 0 : C.sst, 0) ?? "-"), this.tableData.weatherUrls.push((ye = C == null ? void 0 : C.weather) == null ? void 0 : ye.url), this.tableData.weatherNames.push(((ie = C == null ? void 0 : C.weather) == null ? void 0 : ie.name) ?? "-");
|
|
5550
5550
|
}
|
|
5551
5551
|
});
|
|
5552
5552
|
},
|
|
@@ -5669,7 +5669,7 @@ const ui = {
|
|
|
5669
5669
|
class: "main-box flex-center"
|
|
5670
5670
|
};
|
|
5671
5671
|
function Br(a, e, t, r, i, o) {
|
|
5672
|
-
var p, n, d, w, m, y, f, g, b, v,
|
|
5672
|
+
var p, n, d, w, m, y, f, g, b, v, x, M, I, N, F, G, Y, K, $, le, ce, he, de, pe, me, ue, ge, ee, re, Ae, ae, T, q, ye, ie, oe, se, C, Le, xe, Be, Ie, Ee, De, Pe, ke, Me, ze, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe, X, qe, Ve, Ze, $e, et, tt, at, it, rt;
|
|
5673
5673
|
const l = k("LocationFilled"), c = k("ElIcon"), h = k("ElTooltip");
|
|
5674
5674
|
return fe((u(), A("div", gi, [
|
|
5675
5675
|
s("div", Ai, [
|
|
@@ -5681,7 +5681,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
5681
5681
|
]),
|
|
5682
5682
|
_: 1
|
|
5683
5683
|
}),
|
|
5684
|
-
s("div", wi,
|
|
5684
|
+
s("div", wi, B(o.computeLat((p = i.point) == null ? void 0 : p.lat)) + "," + B(o.computeLng((n = i.point) == null ? void 0 : n.lng)), 1)
|
|
5685
5685
|
]),
|
|
5686
5686
|
s("div", bi, [
|
|
5687
5687
|
i.showTables ? (u(), A("div", {
|
|
@@ -5729,28 +5729,28 @@ function Br(a, e, t, r, i, o) {
|
|
|
5729
5729
|
}, 8, ["content"]),
|
|
5730
5730
|
s("div", Bi, [
|
|
5731
5731
|
s("div", null, [
|
|
5732
|
-
U(
|
|
5732
|
+
U(B(o.roundPrecision((y = (m = i.currentHourData) == null ? void 0 : m.weather) == null ? void 0 : y.temp, 0)), 1),
|
|
5733
5733
|
e[8] || (e[8] = s("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
5734
5734
|
])
|
|
5735
5735
|
]),
|
|
5736
5736
|
s("div", Ii, [
|
|
5737
5737
|
s("div", Ei, [
|
|
5738
5738
|
e[9] || (e[9] = s("label", null, "Precip : ", -1)),
|
|
5739
|
-
s("span", null,
|
|
5739
|
+
s("span", null, B(o.roundPrecision((b = (g = (f = i.currentHourData) == null ? void 0 : f.weather) == null ? void 0 : g.precip) == null ? void 0 : b.sum, 0)) + " mm", 1)
|
|
5740
5740
|
]),
|
|
5741
5741
|
s("div", Di, [
|
|
5742
5742
|
e[10] || (e[10] = s("label", null, "Visibility : ", -1)),
|
|
5743
|
-
s("span", null,
|
|
5743
|
+
s("span", null, B(o.roundPrecision((x = (v = i.currentHourData) == null ? void 0 : v.weather) == null ? void 0 : x.visibility, 0)) + " nm", 1)
|
|
5744
5744
|
]),
|
|
5745
5745
|
s("div", Pi, [
|
|
5746
5746
|
e[11] || (e[11] = s("label", null, "Wind : ", -1)),
|
|
5747
|
-
s("span", null,
|
|
5747
|
+
s("span", null, B(o.roundPrecision((N = (I = (M = i.currentHourData) == null ? void 0 : M.weather) == null ? void 0 : I.wind) == null ? void 0 : N.kts, 1)) + " kts", 1)
|
|
5748
5748
|
])
|
|
5749
5749
|
])
|
|
5750
5750
|
]),
|
|
5751
5751
|
s("div", ki, [
|
|
5752
|
-
s("div", Mi,
|
|
5753
|
-
s("div", zi, "( UTC " +
|
|
5752
|
+
s("div", Mi, B(i.localDate), 1),
|
|
5753
|
+
s("div", zi, "( UTC " + B(i.positionOffset) + " )", 1)
|
|
5754
5754
|
])
|
|
5755
5755
|
]),
|
|
5756
5756
|
fe(s("div", Ti, [
|
|
@@ -5786,7 +5786,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
5786
5786
|
rowspan: "1",
|
|
5787
5787
|
colspan: "1",
|
|
5788
5788
|
key: `HourL${L}`
|
|
5789
|
-
},
|
|
5789
|
+
}, B(o.computeHourL(L)), 1))), 128))
|
|
5790
5790
|
]),
|
|
5791
5791
|
s("tr", Hi, [
|
|
5792
5792
|
e[13] || (e[13] = s("th", {
|
|
@@ -5801,7 +5801,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
5801
5801
|
rowspan: "1",
|
|
5802
5802
|
colspan: "1",
|
|
5803
5803
|
key: `HourZ${L}`
|
|
5804
|
-
},
|
|
5804
|
+
}, B(o.computeHourZ(L)), 1))), 128))
|
|
5805
5805
|
]),
|
|
5806
5806
|
s("tr", Oi, [
|
|
5807
5807
|
e[14] || (e[14] = s("th", {
|
|
@@ -5844,7 +5844,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
5844
5844
|
rowspan: "1",
|
|
5845
5845
|
colspan: "1",
|
|
5846
5846
|
key: `weatherUrls${E}${L}`
|
|
5847
|
-
},
|
|
5847
|
+
}, B(L), 1))), 128))
|
|
5848
5848
|
]),
|
|
5849
5849
|
s("tr", Ri, [
|
|
5850
5850
|
e[16] || (e[16] = s("td", {
|
|
@@ -5859,7 +5859,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
5859
5859
|
rowspan: "1",
|
|
5860
5860
|
colspan: "1",
|
|
5861
5861
|
key: `precip1h${E}${L}`
|
|
5862
|
-
},
|
|
5862
|
+
}, B(L), 1))), 128))
|
|
5863
5863
|
]),
|
|
5864
5864
|
s("tr", Fi, [
|
|
5865
5865
|
e[17] || (e[17] = s("td", {
|
|
@@ -5874,7 +5874,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
5874
5874
|
rowspan: "1",
|
|
5875
5875
|
colspan: "1",
|
|
5876
5876
|
key: `visibility${E}${L}`
|
|
5877
|
-
},
|
|
5877
|
+
}, B(L), 1))), 128))
|
|
5878
5878
|
]),
|
|
5879
5879
|
s("tr", Gi, [
|
|
5880
5880
|
e[18] || (e[18] = s("td", {
|
|
@@ -5895,7 +5895,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
5895
5895
|
class: "iconfont icon blue",
|
|
5896
5896
|
style: J({ display: "inline-block", transform: `rotate(${i.tableData.windDir[E]}deg)` })
|
|
5897
5897
|
}, "", 4)),
|
|
5898
|
-
s("span", null,
|
|
5898
|
+
s("span", null, B(L), 1)
|
|
5899
5899
|
]))), 128))
|
|
5900
5900
|
])
|
|
5901
5901
|
], 512), [
|
|
@@ -5915,7 +5915,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
5915
5915
|
rowspan: "1",
|
|
5916
5916
|
colspan: "1",
|
|
5917
5917
|
key: `currenthoursL${E}${L}`
|
|
5918
|
-
},
|
|
5918
|
+
}, B(o.computeHourL(L)), 1))), 128))
|
|
5919
5919
|
]),
|
|
5920
5920
|
s("tr", Yi, [
|
|
5921
5921
|
e[20] || (e[20] = s("th", {
|
|
@@ -5930,7 +5930,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
5930
5930
|
rowspan: "1",
|
|
5931
5931
|
colspan: "1",
|
|
5932
5932
|
key: `currenthoursZ${E}${L}`
|
|
5933
|
-
},
|
|
5933
|
+
}, B(o.computeHourZ(L)), 1))), 128))
|
|
5934
5934
|
]),
|
|
5935
5935
|
s("tr", Ki, [
|
|
5936
5936
|
e[21] || (e[21] = s("td", {
|
|
@@ -5951,7 +5951,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
5951
5951
|
class: "iconfont icon wind",
|
|
5952
5952
|
style: J({ display: "inline-block", transform: `rotate(${i.tableData.windDir[E]}deg)` })
|
|
5953
5953
|
}, "", 4)),
|
|
5954
|
-
s("span", null,
|
|
5954
|
+
s("span", null, B(L), 1)
|
|
5955
5955
|
]))), 128))
|
|
5956
5956
|
]),
|
|
5957
5957
|
s("tr", Xi, [
|
|
@@ -5973,7 +5973,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
5973
5973
|
class: "iconfont icon sigwave",
|
|
5974
5974
|
style: J({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[E]}deg)` })
|
|
5975
5975
|
}, "", 4)),
|
|
5976
|
-
s("span", null,
|
|
5976
|
+
s("span", null, B(L), 1)
|
|
5977
5977
|
]))), 128))
|
|
5978
5978
|
]),
|
|
5979
5979
|
s("tr", Ji, [
|
|
@@ -5995,7 +5995,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
5995
5995
|
class: "iconfont icon windwave",
|
|
5996
5996
|
style: J({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[E]}deg)` })
|
|
5997
5997
|
}, "", 4)),
|
|
5998
|
-
s("span", null,
|
|
5998
|
+
s("span", null, B(L), 1)
|
|
5999
5999
|
]))), 128))
|
|
6000
6000
|
]),
|
|
6001
6001
|
s("tr", qi, [
|
|
@@ -6017,7 +6017,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
6017
6017
|
class: "iconfont icon swell",
|
|
6018
6018
|
style: J({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[E]}deg)` })
|
|
6019
6019
|
}, "", 4)),
|
|
6020
|
-
s("span", null,
|
|
6020
|
+
s("span", null, B(L), 1)
|
|
6021
6021
|
]))), 128))
|
|
6022
6022
|
]),
|
|
6023
6023
|
s("tr", Vi, [
|
|
@@ -6040,7 +6040,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
6040
6040
|
id: "meteoGrayIcon",
|
|
6041
6041
|
style: J({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[E]}deg)` })
|
|
6042
6042
|
}, "", 4)),
|
|
6043
|
-
s("span", null,
|
|
6043
|
+
s("span", null, B(L), 1)
|
|
6044
6044
|
]))), 128))
|
|
6045
6045
|
])
|
|
6046
6046
|
], 512), [
|
|
@@ -6060,7 +6060,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
6060
6060
|
rowspan: "1",
|
|
6061
6061
|
colspan: "1",
|
|
6062
6062
|
key: `seahoursL${E}${L}`
|
|
6063
|
-
},
|
|
6063
|
+
}, B(o.computeHourL(L)), 1))), 128))
|
|
6064
6064
|
]),
|
|
6065
6065
|
s("tr", er, [
|
|
6066
6066
|
e[27] || (e[27] = s("th", {
|
|
@@ -6075,7 +6075,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
6075
6075
|
rowspan: "1",
|
|
6076
6076
|
colspan: "1",
|
|
6077
6077
|
key: `seahoursZ${E}${L}`
|
|
6078
|
-
},
|
|
6078
|
+
}, B(o.computeHourZ(L)), 1))), 128))
|
|
6079
6079
|
]),
|
|
6080
6080
|
s("tr", tr, [
|
|
6081
6081
|
e[28] || (e[28] = s("td", {
|
|
@@ -6090,7 +6090,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
6090
6090
|
rowspan: "1",
|
|
6091
6091
|
colspan: "1",
|
|
6092
6092
|
key: `SeaLevel${E}${L}`
|
|
6093
|
-
},
|
|
6093
|
+
}, B(L), 1))), 128))
|
|
6094
6094
|
]),
|
|
6095
6095
|
s("tr", ar, [
|
|
6096
6096
|
e[29] || (e[29] = s("td", {
|
|
@@ -6105,7 +6105,7 @@ function Br(a, e, t, r, i, o) {
|
|
|
6105
6105
|
rowspan: "1",
|
|
6106
6106
|
colspan: "1",
|
|
6107
6107
|
key: `SeaTemp${E}${L}`
|
|
6108
|
-
},
|
|
6108
|
+
}, B(L), 1))), 128))
|
|
6109
6109
|
])
|
|
6110
6110
|
], 512), [
|
|
6111
6111
|
[we, i.activeIndex === 3]
|
|
@@ -6119,21 +6119,21 @@ function Br(a, e, t, r, i, o) {
|
|
|
6119
6119
|
rowspan: "1",
|
|
6120
6120
|
colspan: "1",
|
|
6121
6121
|
key: `Tide-tr-${E}${L}`
|
|
6122
|
-
},
|
|
6122
|
+
}, B(L.type) + " Tide", 1))), 128))
|
|
6123
6123
|
]),
|
|
6124
6124
|
s("tr", sr, [
|
|
6125
6125
|
(u(!0), A(S, null, O(i.tideTableData, (L, E) => (u(), A("td", {
|
|
6126
6126
|
rowspan: "1",
|
|
6127
6127
|
colspan: "1",
|
|
6128
6128
|
key: `Tide-date-${E}${L}`
|
|
6129
|
-
},
|
|
6129
|
+
}, B(o.computeHourHmmLT(L == null ? void 0 : L.date)), 1))), 128))
|
|
6130
6130
|
]),
|
|
6131
6131
|
s("tr", nr, [
|
|
6132
6132
|
(u(!0), A(S, null, O(i.tideTableData, (L, E) => (u(), A("td", {
|
|
6133
6133
|
rowspan: "1",
|
|
6134
6134
|
colspan: "1",
|
|
6135
6135
|
key: `Tide-height-${E}${L}`
|
|
6136
|
-
},
|
|
6136
|
+
}, B(o.roundPrecision(L == null ? void 0 : L.height, 2)) + " m", 1))), 128))
|
|
6137
6137
|
]),
|
|
6138
6138
|
e[31] || (e[31] = s("tr", { class: "tr-tide flex-center info" }, [
|
|
6139
6139
|
s("span", null, "Tide Datum: Chart Datum")
|
|
@@ -6148,51 +6148,51 @@ function Br(a, e, t, r, i, o) {
|
|
|
6148
6148
|
s("div", cr, [
|
|
6149
6149
|
s("div", hr, [
|
|
6150
6150
|
e[32] || (e[32] = s("div", null, "Wind", -1)),
|
|
6151
|
-
s("div", null,
|
|
6151
|
+
s("div", null, B(($ = (K = (Y = i.currentHourData) == null ? void 0 : Y.weather) == null ? void 0 : K.wind) == null ? void 0 : $.direction) + "/" + B(o.roundPrecision((he = (ce = (le = i.currentHourData) == null ? void 0 : le.weather) == null ? void 0 : ce.wind) == null ? void 0 : he.kts, 1)) + "kts/BF" + B((me = (pe = (de = i.currentHourData) == null ? void 0 : de.weather) == null ? void 0 : pe.wind) == null ? void 0 : me.scale) + "/" + B(o.roundPrecision((ee = (ge = (ue = i.currentHourData) == null ? void 0 : ue.weather) == null ? void 0 : ge.wind) == null ? void 0 : ee.gusts, 1)) + " kts", 1)
|
|
6152
6152
|
]),
|
|
6153
6153
|
s("div", dr, [
|
|
6154
6154
|
e[33] || (e[33] = s("div", null, "Sig wave", -1)),
|
|
6155
|
-
s("div", null,
|
|
6155
|
+
s("div", null, B((ae = (Ae = (re = i.currentHourData) == null ? void 0 : re.wave) == null ? void 0 : Ae.sig) == null ? void 0 : ae.direction) + "/" + B(o.roundPrecision((ye = (q = (T = i.currentHourData) == null ? void 0 : T.wave) == null ? void 0 : q.sig) == null ? void 0 : ye.height, 1)) + "m/" + B(o.roundPrecision((se = (oe = (ie = i.currentHourData) == null ? void 0 : ie.wave) == null ? void 0 : oe.sig) == null ? void 0 : se.period, 1)) + "s", 1)
|
|
6156
6156
|
])
|
|
6157
6157
|
]),
|
|
6158
6158
|
s("div", pr, [
|
|
6159
6159
|
s("div", mr, [
|
|
6160
6160
|
e[34] || (e[34] = s("div", null, "Wind wave", -1)),
|
|
6161
|
-
s("div", null,
|
|
6161
|
+
s("div", null, B((xe = (Le = (C = i.currentHourData) == null ? void 0 : C.wave) == null ? void 0 : Le.wd) == null ? void 0 : xe.direction) + "/" + B(o.roundPrecision((Ee = (Ie = (Be = i.currentHourData) == null ? void 0 : Be.wave) == null ? void 0 : Ie.wd) == null ? void 0 : Ee.height, 1)) + "m/" + B(o.roundPrecision((ke = (Pe = (De = i.currentHourData) == null ? void 0 : De.wave) == null ? void 0 : Pe.wd) == null ? void 0 : ke.period, 1)) + "s", 1)
|
|
6162
6162
|
]),
|
|
6163
6163
|
s("div", ur, [
|
|
6164
6164
|
e[35] || (e[35] = s("div", null, "Swell", -1)),
|
|
6165
|
-
s("div", null,
|
|
6165
|
+
s("div", null, B((Te = (ze = (Me = i.currentHourData) == null ? void 0 : Me.wave) == null ? void 0 : ze.swell) == null ? void 0 : Te.direction) + "/" + B(o.roundPrecision((_e = (Se = (Qe = i.currentHourData) == null ? void 0 : Qe.wave) == null ? void 0 : Se.swell) == null ? void 0 : _e.height, 1)) + "m/" + B(o.roundPrecision((Ne = (Oe = (He = i.currentHourData) == null ? void 0 : He.wave) == null ? void 0 : Oe.swell) == null ? void 0 : Ne.period, 1)) + "s", 1)
|
|
6166
6166
|
])
|
|
6167
6167
|
]),
|
|
6168
6168
|
s("div", gr, [
|
|
6169
6169
|
s("div", Ar, [
|
|
6170
6170
|
e[36] || (e[36] = s("div", null, "Current", -1)),
|
|
6171
|
-
s("div", null,
|
|
6171
|
+
s("div", null, B((Re = (je = i.currentHourData) == null ? void 0 : je.current) == null ? void 0 : Re.direction) + "/" + B(o.roundPrecision((X = (Fe = i.currentHourData) == null ? void 0 : Fe.current) == null ? void 0 : X.kts, 2)) + "kts", 1)
|
|
6172
6172
|
]),
|
|
6173
6173
|
s("div", yr, [
|
|
6174
6174
|
e[37] || (e[37] = s("div", null, "Sea level", -1)),
|
|
6175
|
-
s("div", null,
|
|
6175
|
+
s("div", null, B(o.roundPrecision((qe = i.currentHourData) == null ? void 0 : qe.height, 1)) + "m", 1)
|
|
6176
6176
|
])
|
|
6177
6177
|
]),
|
|
6178
6178
|
s("div", fr, [
|
|
6179
6179
|
s("div", wr, [
|
|
6180
6180
|
e[38] || (e[38] = s("div", null, "Sea Temp", -1)),
|
|
6181
|
-
s("div", null,
|
|
6181
|
+
s("div", null, B(o.roundPrecision((Ve = i.currentHourData) == null ? void 0 : Ve.sst, 1)) + "°C", 1)
|
|
6182
6182
|
]),
|
|
6183
6183
|
s("div", br, [
|
|
6184
6184
|
e[39] || (e[39] = s("div", null, "Visibility", -1)),
|
|
6185
|
-
s("div", null,
|
|
6185
|
+
s("div", null, B(o.roundPrecision(($e = (Ze = i.currentHourData) == null ? void 0 : Ze.weather) == null ? void 0 : $e.visibility, 1)) + "nm", 1)
|
|
6186
6186
|
])
|
|
6187
6187
|
]),
|
|
6188
6188
|
s("div", vr, [
|
|
6189
6189
|
s("div", Lr, [
|
|
6190
6190
|
e[40] || (e[40] = s("div", null, "Temp", -1)),
|
|
6191
|
-
s("div", null,
|
|
6191
|
+
s("div", null, B(o.roundPrecision((tt = (et = i.currentHourData) == null ? void 0 : et.weather) == null ? void 0 : tt.temp, 1)) + "°C", 1)
|
|
6192
6192
|
]),
|
|
6193
6193
|
s("div", Cr, [
|
|
6194
6194
|
e[41] || (e[41] = s("div", null, "Precip", -1)),
|
|
6195
|
-
s("div", null,
|
|
6195
|
+
s("div", null, B(o.roundPrecision((rt = (it = (at = i.currentHourData) == null ? void 0 : at.weather) == null ? void 0 : it.precip) == null ? void 0 : rt.sum3Hours, 1)) + "mm", 1)
|
|
6196
6196
|
])
|
|
6197
6197
|
])
|
|
6198
6198
|
], 512), [
|
|
@@ -6774,19 +6774,19 @@ function Jr(a, e, t, r, i, o) {
|
|
|
6774
6774
|
s("div", Gr, [
|
|
6775
6775
|
s("div", Wr, [
|
|
6776
6776
|
e[2] || (e[2] = s("label", null, "Name : ", -1)),
|
|
6777
|
-
s("span", null,
|
|
6777
|
+
s("span", null, B(i.form.name), 1)
|
|
6778
6778
|
]),
|
|
6779
6779
|
s("div", Ur, [
|
|
6780
6780
|
e[3] || (e[3] = s("label", null, "Position : ", -1)),
|
|
6781
|
-
s("span", null,
|
|
6781
|
+
s("span", null, B(o.computeLat(i.form.lat)) + ", " + B(o.computeLng(i.form.lng)), 1)
|
|
6782
6782
|
]),
|
|
6783
6783
|
s("div", Yr, [
|
|
6784
6784
|
e[4] || (e[4] = s("label", null, "LoCode : ", -1)),
|
|
6785
|
-
s("span", null,
|
|
6785
|
+
s("span", null, B(i.form.loCode || "-"), 1)
|
|
6786
6786
|
]),
|
|
6787
6787
|
s("div", Kr, [
|
|
6788
6788
|
e[5] || (e[5] = s("label", null, "Region : ", -1)),
|
|
6789
|
-
s("span", null,
|
|
6789
|
+
s("span", null, B(i.form.zoneName || "-"), 1)
|
|
6790
6790
|
]),
|
|
6791
6791
|
s("div", Xr, [
|
|
6792
6792
|
s("span", {
|
|
@@ -7438,9 +7438,9 @@ function uo(a, e, t, r, i, o) {
|
|
|
7438
7438
|
class: "lat-lng-tip",
|
|
7439
7439
|
style: J({ right: i.right + "px", bottom: t.bottom })
|
|
7440
7440
|
}, [
|
|
7441
|
-
s("span", null,
|
|
7441
|
+
s("span", null, B(i.lngLat.lat.pretty), 1),
|
|
7442
7442
|
e[0] || (e[0] = s("span", null, ", ", -1)),
|
|
7443
|
-
s("span", null,
|
|
7443
|
+
s("span", null, B(i.lngLat.lng.pretty), 1)
|
|
7444
7444
|
], 4)) : H("", !0);
|
|
7445
7445
|
}
|
|
7446
7446
|
const ct = /* @__PURE__ */ z(mo, [["render", uo], ["__scopeId", "data-v-ad66a24c"]]), go = {
|
|
@@ -8097,7 +8097,7 @@ const zo = {
|
|
|
8097
8097
|
var a, e, t, r, i, o, l, c, h, p, n, d, w, m, y, f, g, b;
|
|
8098
8098
|
if (!this.map)
|
|
8099
8099
|
return !1;
|
|
8100
|
-
this.activeWeatherLayers.length > 0 ? ((e = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none")
|
|
8100
|
+
this.activeWeatherLayers.length > 0 ? (this.activeWeatherLayers.some((x) => x.key === "wind" && x.particle === !0 || x.key === "current" && x.particle === !0 || x.key === "temp" || x.key === "water-temp") ? (e = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none") : (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible"), (o = (i = this.map) == null ? void 0 : i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || o.setLayoutProperty("visibility", "visible"), (c = this.map) != null && c.getLayer((l = this.viewport) == null ? void 0 : l.rampColorLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((n = this.map) == null || n.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (w = this.map) != null && w.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) && ((m = this.map) != null && m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((f = this.map) == null || f.moveLayer((y = this.viewport) == null ? void 0 : y.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : (b = (g = this.map) == null ? void 0 : g.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || b.setLayoutProperty("visibility", "none"), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
|
|
8101
8101
|
},
|
|
8102
8102
|
immediate: !0
|
|
8103
8103
|
},
|
|
@@ -8170,9 +8170,9 @@ const zo = {
|
|
|
8170
8170
|
}
|
|
8171
8171
|
});
|
|
8172
8172
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l = b == null ? void 0 : b.data) == null ? void 0 : l.code) === 0) {
|
|
8173
|
-
const v = (c = b == null ? void 0 : b.data) == null ? void 0 : c.data,
|
|
8173
|
+
const v = (c = b == null ? void 0 : b.data) == null ? void 0 : c.data, x = [];
|
|
8174
8174
|
for (const I in v)
|
|
8175
|
-
I === "ice-edge" && (v[I] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), I !== "tropicals" &&
|
|
8175
|
+
I === "ice-edge" && (v[I] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), I !== "tropicals" && x.push(
|
|
8176
8176
|
ne.get(v[I], {
|
|
8177
8177
|
headers: {
|
|
8178
8178
|
Authorization: this.token || this.defaultMeteoToken,
|
|
@@ -8183,7 +8183,7 @@ const zo = {
|
|
|
8183
8183
|
console.log(`[${I}] fetch layer error: ${N}`);
|
|
8184
8184
|
})
|
|
8185
8185
|
);
|
|
8186
|
-
const M = await Promise.all(
|
|
8186
|
+
const M = await Promise.all(x);
|
|
8187
8187
|
this.weatherLayers = {}, M.map((I) => {
|
|
8188
8188
|
var G, Y, K, $;
|
|
8189
8189
|
const N = ((G = I == null ? void 0 : I.data) == null ? void 0 : G.data) || (I == null ? void 0 : I.data), F = (K = (Y = I == null ? void 0 : I.config) == null ? void 0 : Y.headers) == null ? void 0 : K.key;
|
|
@@ -8211,20 +8211,20 @@ const zo = {
|
|
|
8211
8211
|
});
|
|
8212
8212
|
}
|
|
8213
8213
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather layers elapsed: ", r, ", total: ", t += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
8214
|
-
const v = (h = this.weatherLayers["swell-direction"]) == null ? void 0 : h.raw,
|
|
8214
|
+
const v = (h = this.weatherLayers["swell-direction"]) == null ? void 0 : h.raw, x = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
|
|
8215
8215
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8216
8216
|
type: "json",
|
|
8217
8217
|
direction: v,
|
|
8218
|
-
height: { raw:
|
|
8218
|
+
height: { raw: x },
|
|
8219
8219
|
etime: this.ts
|
|
8220
8220
|
};
|
|
8221
8221
|
}
|
|
8222
8222
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8223
|
-
const v = (n = this.weatherLayers["current-direction"]) == null ? void 0 : n.raw,
|
|
8223
|
+
const v = (n = this.weatherLayers["current-direction"]) == null ? void 0 : n.raw, x = (d = this.weatherLayers["current-speed"]) == null ? void 0 : d.raw;
|
|
8224
8224
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8225
8225
|
type: "json",
|
|
8226
8226
|
direction: v,
|
|
8227
|
-
speed: { raw:
|
|
8227
|
+
speed: { raw: x },
|
|
8228
8228
|
etime: this.ts
|
|
8229
8229
|
};
|
|
8230
8230
|
}
|
|
@@ -8261,8 +8261,8 @@ const zo = {
|
|
|
8261
8261
|
);
|
|
8262
8262
|
const m = await Promise.all(w);
|
|
8263
8263
|
this.otherLayers = { enc: l, world12nm: c, worldMarine: h, chinaRoute: p }, m.map((y) => {
|
|
8264
|
-
var b, v,
|
|
8265
|
-
const f = ((b = y == null ? void 0 : y.data) == null ? void 0 : b.data) || (y == null ? void 0 : y.data), g = (
|
|
8264
|
+
var b, v, x;
|
|
8265
|
+
const f = ((b = y == null ? void 0 : y.data) == null ? void 0 : b.data) || (y == null ? void 0 : y.data), g = (x = (v = y == null ? void 0 : y.config) == null ? void 0 : v.headers) == null ? void 0 : x.key;
|
|
8266
8266
|
this.otherLayers[g] = f;
|
|
8267
8267
|
});
|
|
8268
8268
|
}
|
|
@@ -8284,8 +8284,8 @@ const zo = {
|
|
|
8284
8284
|
})
|
|
8285
8285
|
);
|
|
8286
8286
|
(await Promise.all(w)).map((y) => {
|
|
8287
|
-
var b, v,
|
|
8288
|
-
const f = ((b = y == null ? void 0 : y.data) == null ? void 0 : b.data) || (y == null ? void 0 : y.data), g = (
|
|
8287
|
+
var b, v, x;
|
|
8288
|
+
const f = ((b = y == null ? void 0 : y.data) == null ? void 0 : b.data) || (y == null ? void 0 : y.data), g = (x = (v = y == null ? void 0 : y.config) == null ? void 0 : v.headers) == null ? void 0 : x.key;
|
|
8289
8289
|
this.otherLayers[g] = f;
|
|
8290
8290
|
});
|
|
8291
8291
|
}
|
|
@@ -8354,21 +8354,21 @@ const zo = {
|
|
|
8354
8354
|
for (const g in f)
|
|
8355
8355
|
if (g > c && g < h && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8356
8356
|
const b = f[g].lng;
|
|
8357
|
-
o > l ? b.forEach((v,
|
|
8357
|
+
o > l ? b.forEach((v, x) => {
|
|
8358
8358
|
var M;
|
|
8359
8359
|
if ((v >= o && v <= 180 || v >= -180 && v <= l) && (!(i <= this.zoom) || v % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8360
8360
|
const I = D.point([v, g], {
|
|
8361
|
-
val: f[g].val[
|
|
8362
|
-
spd: (M = f[g].spd) == null ? void 0 : M[
|
|
8361
|
+
val: f[g].val[x],
|
|
8362
|
+
spd: (M = f[g].spd) == null ? void 0 : M[x]
|
|
8363
8363
|
});
|
|
8364
8364
|
y.push(I);
|
|
8365
8365
|
}
|
|
8366
|
-
}) : b.forEach((v,
|
|
8366
|
+
}) : b.forEach((v, x) => {
|
|
8367
8367
|
var M;
|
|
8368
8368
|
if (v >= o && v <= l && (!(i <= this.zoom) || v % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8369
8369
|
const I = D.point([v, g], {
|
|
8370
|
-
val: f[g].val[
|
|
8371
|
-
spd: (M = f[g].spd) == null ? void 0 : M[
|
|
8370
|
+
val: f[g].val[x],
|
|
8371
|
+
spd: (M = f[g].spd) == null ? void 0 : M[x]
|
|
8372
8372
|
});
|
|
8373
8373
|
y.push(I);
|
|
8374
8374
|
}
|
|
@@ -8380,8 +8380,8 @@ const zo = {
|
|
|
8380
8380
|
if (!g.data) {
|
|
8381
8381
|
const b = [];
|
|
8382
8382
|
for (const v in (d = g.raw) == null ? void 0 : d.LineString) {
|
|
8383
|
-
const
|
|
8384
|
-
for (const M of
|
|
8383
|
+
const x = g.raw.LineString[v];
|
|
8384
|
+
for (const M of x)
|
|
8385
8385
|
b.push(
|
|
8386
8386
|
D.lineString(M, {
|
|
8387
8387
|
val: Number(v)
|
|
@@ -8402,12 +8402,12 @@ const zo = {
|
|
|
8402
8402
|
if (g) {
|
|
8403
8403
|
if (!g.data) {
|
|
8404
8404
|
const v = [];
|
|
8405
|
-
for (const
|
|
8406
|
-
const M = g.raw.Polygon[
|
|
8405
|
+
for (const x in (w = g.raw) == null ? void 0 : w.Polygon) {
|
|
8406
|
+
const M = g.raw.Polygon[x];
|
|
8407
8407
|
for (const I of M)
|
|
8408
8408
|
v.push(
|
|
8409
8409
|
D.polygon(I, {
|
|
8410
|
-
val: Number(
|
|
8410
|
+
val: Number(x)
|
|
8411
8411
|
})
|
|
8412
8412
|
);
|
|
8413
8413
|
}
|
|
@@ -8422,19 +8422,19 @@ const zo = {
|
|
|
8422
8422
|
for (const g in f)
|
|
8423
8423
|
if (g > c && g < h && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8424
8424
|
const b = f[g].lng;
|
|
8425
|
-
o > l ? b.forEach((v,
|
|
8425
|
+
o > l ? b.forEach((v, x) => {
|
|
8426
8426
|
if ((v >= o && v <= 180 || v >= -180 && v <= l) && (!(i <= this.zoom) || v % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8427
8427
|
const M = D.point([v, g], {
|
|
8428
|
-
val: f[g].val[
|
|
8429
|
-
spd: f[g].spd[
|
|
8428
|
+
val: f[g].val[x],
|
|
8429
|
+
spd: f[g].spd[x]
|
|
8430
8430
|
});
|
|
8431
8431
|
y.push(M);
|
|
8432
8432
|
}
|
|
8433
|
-
}) : b.forEach((v,
|
|
8433
|
+
}) : b.forEach((v, x) => {
|
|
8434
8434
|
if (v >= o && v <= l && (!(i <= this.zoom) || v % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8435
8435
|
const M = D.point([v, g], {
|
|
8436
|
-
val: f[g].val[
|
|
8437
|
-
spd: f[g].spd[
|
|
8436
|
+
val: f[g].val[x],
|
|
8437
|
+
spd: f[g].spd[x]
|
|
8438
8438
|
});
|
|
8439
8439
|
y.push(M);
|
|
8440
8440
|
}
|
|
@@ -8450,18 +8450,18 @@ const zo = {
|
|
|
8450
8450
|
const g = [];
|
|
8451
8451
|
for (const b in f.Polygon) {
|
|
8452
8452
|
const v = f.Polygon[b];
|
|
8453
|
-
for (const
|
|
8453
|
+
for (const x of v)
|
|
8454
8454
|
g.push(
|
|
8455
|
-
D.polygon(
|
|
8455
|
+
D.polygon(x, {
|
|
8456
8456
|
val: Number(b)
|
|
8457
8457
|
})
|
|
8458
8458
|
);
|
|
8459
8459
|
}
|
|
8460
8460
|
for (const b in f.Point) {
|
|
8461
8461
|
const v = f.Point[b];
|
|
8462
|
-
for (const
|
|
8462
|
+
for (const x of v)
|
|
8463
8463
|
g.push(
|
|
8464
|
-
...D.points(
|
|
8464
|
+
...D.points(x, {
|
|
8465
8465
|
val: Number(b)
|
|
8466
8466
|
}).features
|
|
8467
8467
|
);
|
|
@@ -8479,19 +8479,19 @@ const zo = {
|
|
|
8479
8479
|
const g = [];
|
|
8480
8480
|
for (const b in f.LineString) {
|
|
8481
8481
|
const v = f.LineString[b];
|
|
8482
|
-
for (const
|
|
8482
|
+
for (const x of v)
|
|
8483
8483
|
g.push(
|
|
8484
|
-
D.lineString(
|
|
8484
|
+
D.lineString(x, {
|
|
8485
8485
|
val: Number(b)
|
|
8486
8486
|
})
|
|
8487
8487
|
);
|
|
8488
8488
|
}
|
|
8489
8489
|
for (const b in f.Point)
|
|
8490
|
-
f.Point[b].lng.forEach((v,
|
|
8490
|
+
f.Point[b].lng.forEach((v, x) => {
|
|
8491
8491
|
v = W.convertToStdLng(v), g.push(
|
|
8492
8492
|
D.point([v, b], {
|
|
8493
|
-
val: f.Point[b].val[
|
|
8494
|
-
type: f.Point[b].type[
|
|
8493
|
+
val: f.Point[b].val[x],
|
|
8494
|
+
type: f.Point[b].type[x]
|
|
8495
8495
|
})
|
|
8496
8496
|
);
|
|
8497
8497
|
});
|
|
@@ -8508,9 +8508,9 @@ const zo = {
|
|
|
8508
8508
|
const g = [];
|
|
8509
8509
|
for (const b in f.LineString) {
|
|
8510
8510
|
const v = f.LineString[b];
|
|
8511
|
-
for (const
|
|
8511
|
+
for (const x of v)
|
|
8512
8512
|
g.push(
|
|
8513
|
-
D.lineString(
|
|
8513
|
+
D.lineString(x, {
|
|
8514
8514
|
val: Number(b)
|
|
8515
8515
|
})
|
|
8516
8516
|
);
|
|
@@ -8588,8 +8588,8 @@ const zo = {
|
|
|
8588
8588
|
}
|
|
8589
8589
|
},
|
|
8590
8590
|
handle3dToggle(a) {
|
|
8591
|
-
var e, t, r, i, o, l, c, h, p, n, d, w, m, y, f, g, b, v,
|
|
8592
|
-
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (c = this.map) != null && c.getLayer((l = this.viewport) == null ? void 0 : l.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((n = this.map) == null || n.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (w = this.map) != null && w.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((m = this.map) != null && m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((y = this.viewport) == null ? void 0 : y.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (b = this.map) != null && b.getLayer((g = this.viewport) == null ? void 0 : g.particleLayer) && ((v = this.map) != null && v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((M = this.map) == null || M.moveLayer((
|
|
8591
|
+
var e, t, r, i, o, l, c, h, p, n, d, w, m, y, f, g, b, v, x, M;
|
|
8592
|
+
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (c = this.map) != null && c.getLayer((l = this.viewport) == null ? void 0 : l.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((n = this.map) == null || n.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (w = this.map) != null && w.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((m = this.map) != null && m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((y = this.viewport) == null ? void 0 : y.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (b = this.map) != null && b.getLayer((g = this.viewport) == null ? void 0 : g.particleLayer) && ((v = this.map) != null && v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((M = this.map) == null || M.moveLayer((x = this.viewport) == null ? void 0 : x.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
8593
8593
|
},
|
|
8594
8594
|
handleParticle(a) {
|
|
8595
8595
|
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
|
|
@@ -8614,7 +8614,7 @@ const zo = {
|
|
|
8614
8614
|
};
|
|
8615
8615
|
function Qo(a, e, t, r, i, o) {
|
|
8616
8616
|
var Ae, ae, T, q, ye, ie, oe, se, C, Le, xe, Be, Ie, Ee, De, Pe, ke, Me, ze, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe;
|
|
8617
|
-
const l = k("IdmGlLayer"), c = k("IdmENC"), h = k("IdmWorld12nm"), p = k("IdmWorldMarine"), n = k("IdmChinaRoute"), d = k("IdmSigWave"), w = k("IdmSwell"), m = k("IdmPrmsl"), y = k("IdmIceberg"), f = k("IdmTropicals"), g = k("IdmCurrents"), b = k("IdmCurrentParticle"), v = k("IdmWindBarb"),
|
|
8617
|
+
const l = k("IdmGlLayer"), c = k("IdmENC"), h = k("IdmWorld12nm"), p = k("IdmWorldMarine"), n = k("IdmChinaRoute"), d = k("IdmSigWave"), w = k("IdmSwell"), m = k("IdmPrmsl"), y = k("IdmIceberg"), f = k("IdmTropicals"), g = k("IdmCurrents"), b = k("IdmCurrentParticle"), v = k("IdmWindBarb"), x = k("IdmWindParticle"), M = k("IdmPrecip3h"), I = k("IdmVisibility"), N = k("IdmWaterTemp"), F = k("IdmTemp"), G = k("IdmArctic"), Y = k("IdmWarZone"), K = k("IdmGmdssArea"), $ = k("IdmEcaZone"), le = k("IdmAlertZone"), ce = k("IdmPort"), he = k("IdmLoadLine"), de = k("IdmTimezone"), pe = k("IdmVRA"), me = k("IdmSpecialArea"), ue = k("IdmTerminator"), ge = k("IdmLatLng"), ee = k("IdmMeasure"), re = k("IdmPoint");
|
|
8618
8618
|
return t.map ? (u(), A("div", To, [
|
|
8619
8619
|
P(l, Q({
|
|
8620
8620
|
ref: "layer",
|
|
@@ -8736,7 +8736,7 @@ function Qo(a, e, t, r, i, o) {
|
|
|
8736
8736
|
"weather-layers": i.weatherLayers,
|
|
8737
8737
|
onParticle: o.handleParticle
|
|
8738
8738
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "showWindFeather", "showWindParticle", "toggleParticeVersion", "toggle-version", "weather-layers", "onParticle"]),
|
|
8739
|
-
P(
|
|
8739
|
+
P(x, Q({
|
|
8740
8740
|
viewport: i.viewport,
|
|
8741
8741
|
factor: (Ee = i.weatherLayers) == null ? void 0 : Ee["wind-particle"],
|
|
8742
8742
|
"before-layer": t.beforeLayer,
|