@idmwx/idmui-gl3 3.5.8 → 3.6.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var rt = Object.defineProperty;
|
|
2
2
|
var ot = (t, e, a) => e in t ? rt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
3
3
|
var E = (t, e, a) => (ot(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
4
|
-
import { LayerHelper as Fe, CompanyHelper as Ve, LngLatHelper as K, convertToMonotonicLng2 as st, calculateDistance as
|
|
4
|
+
import { LayerHelper as Fe, CompanyHelper as Ve, LngLatHelper as K, convertToMonotonicLng2 as st, calculateDistance as We, calculateBearing as Oe, convertToMonotonicLng as pe, interpolateCoordinates as je, convertToStandardLng as Re } from "@idmwx/idmwx-base";
|
|
5
5
|
import { resolveComponent as z, openBlock as L, createElementBlock as x, createElementVNode as l, normalizeStyle as j, normalizeClass as M, Fragment as Ae, renderList as De, toDisplayString as S, createVNode as P, withCtx as nt, createTextVNode as Ke, createCommentVNode as N, pushScopeId as U, popScopeId as G, withDirectives as Me, vShow as $e, createStaticVNode as lt, mergeProps as I } from "vue";
|
|
6
6
|
import * as C from "@turf/turf";
|
|
7
7
|
import ct from "@mapbox/sphericalmercator";
|
|
@@ -58,7 +58,7 @@ const T = (t, e) => {
|
|
|
58
58
|
showPoint: !1,
|
|
59
59
|
show3d: !1,
|
|
60
60
|
version: {
|
|
61
|
-
v: "0.0.
|
|
61
|
+
v: "0.0.6",
|
|
62
62
|
k: "glCacheVersion"
|
|
63
63
|
},
|
|
64
64
|
right: 10
|
|
@@ -141,7 +141,7 @@ const T = (t, e) => {
|
|
|
141
141
|
this.source = t, this.handleConfirm();
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
}, Z = (t) => (U("data-v-
|
|
144
|
+
}, Z = (t) => (U("data-v-6938e629"), t = t(), G(), t), dt = { class: "idm-gl-layer" }, pt = { class: "bar-item layer-bars" }, mt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), ut = [
|
|
145
145
|
mt
|
|
146
146
|
], yt = { class: "bar-item tool-bars" }, ft = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), gt = [
|
|
147
147
|
ft
|
|
@@ -156,7 +156,7 @@ const T = (t, e) => {
|
|
|
156
156
|
], Pt = { class: "weather-layers" }, Tt = {
|
|
157
157
|
class: "layers-title",
|
|
158
158
|
style: { display: "flex", "align-items": "center", "justify-content": "space-between" }
|
|
159
|
-
}, It = { style: { "font-size": "12px" } }, Et = { class: "layers-body" }, Rt = ["onClick"], At = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Dt = { class: "other-layers" }, Mt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "layers-title" }, "Other Layers", -1)), $t = { class: "layers-body" }, Bt = ["onClick"], Nt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)),
|
|
159
|
+
}, It = { style: { "font-size": "12px" } }, Et = { class: "layers-body" }, Rt = ["onClick"], At = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Dt = { class: "other-layers" }, Mt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "layers-title" }, "Other Layers", -1)), $t = { class: "layers-body" }, Bt = ["onClick"], Nt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Wt = { class: "source-layers" }, Ot = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "layers-title" }, "Forecast Model", -1)), jt = { class: "layers-body model-box" };
|
|
160
160
|
function Ft(t, e, a, r, i, o) {
|
|
161
161
|
const n = z("ElScrollbar");
|
|
162
162
|
return L(), x("div", dt, [
|
|
@@ -256,8 +256,8 @@ function Ft(t, e, a, r, i, o) {
|
|
|
256
256
|
], 10, Bt))), 128))
|
|
257
257
|
])
|
|
258
258
|
]),
|
|
259
|
-
l("div",
|
|
260
|
-
|
|
259
|
+
l("div", Wt, [
|
|
260
|
+
Ot,
|
|
261
261
|
l("div", jt, [
|
|
262
262
|
l("span", {
|
|
263
263
|
class: M(i.source === "GFS" ? "text active" : "text"),
|
|
@@ -276,7 +276,7 @@ function Ft(t, e, a, r, i, o) {
|
|
|
276
276
|
], 4)
|
|
277
277
|
]);
|
|
278
278
|
}
|
|
279
|
-
const Vt = /* @__PURE__ */ T(ht, [["render", Ft], ["__scopeId", "data-v-
|
|
279
|
+
const Vt = /* @__PURE__ */ T(ht, [["render", Ft], ["__scopeId", "data-v-6938e629"]]);
|
|
280
280
|
const Ut = {
|
|
281
281
|
name: "IdmWindBarb",
|
|
282
282
|
props: {
|
|
@@ -3395,6 +3395,9 @@ const Ba = /* @__PURE__ */ T(Ma, [["render", $a]]), Na = {
|
|
|
3395
3395
|
},
|
|
3396
3396
|
beforeLayer: {
|
|
3397
3397
|
type: String
|
|
3398
|
+
},
|
|
3399
|
+
activeWeatherLayers: {
|
|
3400
|
+
type: Array
|
|
3398
3401
|
}
|
|
3399
3402
|
},
|
|
3400
3403
|
data() {
|
|
@@ -3505,14 +3508,14 @@ const Ba = /* @__PURE__ */ T(Ma, [["render", $a]]), Na = {
|
|
|
3505
3508
|
},
|
|
3506
3509
|
handleClear() {
|
|
3507
3510
|
var t, e;
|
|
3508
|
-
(e = (t = this.map) == null ? void 0 : t.getLayer("country-boundaries")) == null || e.setLayoutProperty("visibility", "none"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.labelLayer) && this.map.removeLayer(this.labelLayer), this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
3511
|
+
this.activeWeatherLayers.length === 0 && ((e = (t = this.map) == null ? void 0 : t.getLayer("country-boundaries")) == null || e.setLayoutProperty("visibility", "none")), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.labelLayer) && this.map.removeLayer(this.labelLayer), this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
3509
3512
|
}
|
|
3510
3513
|
}
|
|
3511
3514
|
};
|
|
3512
|
-
function
|
|
3515
|
+
function Wa(t, e, a, r, i, o) {
|
|
3513
3516
|
return L(), x("div");
|
|
3514
3517
|
}
|
|
3515
|
-
const
|
|
3518
|
+
const Oa = /* @__PURE__ */ T(Na, [["render", Wa]]), ja = {
|
|
3516
3519
|
name: "IdmIceberg",
|
|
3517
3520
|
props: {
|
|
3518
3521
|
map: {
|
|
@@ -3945,7 +3948,7 @@ const Ua = {
|
|
|
3945
3948
|
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((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));
|
|
3946
3949
|
},
|
|
3947
3950
|
handleDateChange() {
|
|
3948
|
-
var t, e, a, r, i, o, n, s, c, h, p, d, y, u, g, f, m, v, b, w, k, _, A, D, $,
|
|
3951
|
+
var t, e, a, r, i, o, n, s, c, h, p, d, y, u, g, f, m, v, b, w, k, _, A, D, $, W, O, H;
|
|
3949
3952
|
if ((t = this.interpolateMarkers) == null || t.forEach((X) => X == null ? void 0 : X.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
3950
3953
|
const X = Q(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ee = this.interpolateData.filter((R) => R.properties.date === X.format() && !R.properties.disabled), he = this.handleComputePolygons(ee), te = C.featureCollection([...ee]);
|
|
3951
3954
|
he.forEach((R) => {
|
|
@@ -3967,7 +3970,7 @@ const Ua = {
|
|
|
3967
3970
|
for (const R of ee)
|
|
3968
3971
|
if (!R.properties.disabled) {
|
|
3969
3972
|
let V = "#f44336";
|
|
3970
|
-
((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 ? V = "#03f869" : ((h = (c = R.properties) == null ? void 0 : c.wind) == null ? void 0 : h.spd) >= 17.2 && ((d = (p = R.properties) == null ? void 0 : p.wind) == null ? void 0 : d.spd) < 24.5 ? V = "#f2f202" : ((u = (y = R.properties) == null ? void 0 : y.wind) == null ? void 0 : u.spd) >= 24.5 && ((f = (g = R.properties) == null ? void 0 : g.wind) == null ? void 0 : f.spd) < 32.7 ? V = "#ff9100" : ((v = (m = R.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) >= 32.7 && ((w = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) < 41.5 ? V = "#f44336" : ((_ = (k = R.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) >= 41.5 && ((D = (A = R.properties) == null ? void 0 : A.wind) == null ? void 0 : D.spd) < 51 ? V = "#c604a4" : ((
|
|
3973
|
+
((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 ? V = "#03f869" : ((h = (c = R.properties) == null ? void 0 : c.wind) == null ? void 0 : h.spd) >= 17.2 && ((d = (p = R.properties) == null ? void 0 : p.wind) == null ? void 0 : d.spd) < 24.5 ? V = "#f2f202" : ((u = (y = R.properties) == null ? void 0 : y.wind) == null ? void 0 : u.spd) >= 24.5 && ((f = (g = R.properties) == null ? void 0 : g.wind) == null ? void 0 : f.spd) < 32.7 ? V = "#ff9100" : ((v = (m = R.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) >= 32.7 && ((w = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) < 41.5 ? V = "#f44336" : ((_ = (k = R.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) >= 41.5 && ((D = (A = R.properties) == null ? void 0 : A.wind) == null ? void 0 : D.spd) < 51 ? V = "#c604a4" : ((W = ($ = R.properties) == null ? void 0 : $.wind) == null ? void 0 : W.spd) >= 51 ? V = "#6b05bb" : V = "#f44336";
|
|
3971
3974
|
const de = `<svg t="1719918955501"
|
|
3972
3975
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
3973
3976
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -3988,7 +3991,7 @@ const Ua = {
|
|
|
3988
3991
|
this.interpolateMarkers.push(ne);
|
|
3989
3992
|
}
|
|
3990
3993
|
} else
|
|
3991
|
-
(
|
|
3994
|
+
(O = this.map) != null && O.getSource(this.interpolateSource) && ((H = this.map) == null || H.getSource(this.interpolateSource).setData(this.empty));
|
|
3992
3995
|
},
|
|
3993
3996
|
handleClick(t) {
|
|
3994
3997
|
var o, n, s, c, h, p;
|
|
@@ -4122,13 +4125,13 @@ function hi(t, e, a, r, i, o) {
|
|
|
4122
4125
|
oi,
|
|
4123
4126
|
l("div", si, [
|
|
4124
4127
|
(L(!0), x(Ae, null, De((k = i.activeTropicals) == null ? void 0 : k.forecasts, (_, A) => {
|
|
4125
|
-
var D, $,
|
|
4128
|
+
var D, $, W, O;
|
|
4126
4129
|
return L(), x("div", {
|
|
4127
4130
|
key: A,
|
|
4128
4131
|
class: M([
|
|
4129
4132
|
"model",
|
|
4130
4133
|
_.disabled ? "" : "active",
|
|
4131
|
-
A > 0 && A < (($ = (D = i.activeTropicals) == null ? void 0 : D.forecasts) == null ? void 0 : $.length) - 1 && ((
|
|
4134
|
+
A > 0 && A < (($ = (D = i.activeTropicals) == null ? void 0 : D.forecasts) == null ? void 0 : $.length) - 1 && ((O = (W = i.activeTropicals) == null ? void 0 : W.forecasts) == null ? void 0 : O.length) > 2 ? "center-child" : ""
|
|
4132
4135
|
]),
|
|
4133
4136
|
onClick: (H) => o.handleForecastToggle(_)
|
|
4134
4137
|
}, [
|
|
@@ -4489,11 +4492,11 @@ const Mi = {
|
|
|
4489
4492
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4490
4493
|
}
|
|
4491
4494
|
}
|
|
4492
|
-
}, ue = (t) => (U("data-v-67e5094b"), t = t(), G(), t), $i = { key: 0 }, Bi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ni = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "0", -1)),
|
|
4495
|
+
}, ue = (t) => (U("data-v-67e5094b"), t = t(), G(), t), $i = { key: 0 }, Bi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ni = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "0", -1)), Wi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "10", -1)), Oi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "20", -1)), ji = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "30", -1)), Fi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "40", -1)), Vi = [
|
|
4493
4496
|
Bi,
|
|
4494
4497
|
Ni,
|
|
4495
|
-
Oi,
|
|
4496
4498
|
Wi,
|
|
4499
|
+
Oi,
|
|
4497
4500
|
ji,
|
|
4498
4501
|
Fi
|
|
4499
4502
|
];
|
|
@@ -4828,7 +4831,7 @@ const fr = {
|
|
|
4828
4831
|
}, J = (t) => (U("data-v-fb5b12d6"), t = t(), G(), t), gr = {
|
|
4829
4832
|
id: "point-meteo",
|
|
4830
4833
|
class: "point-meteo"
|
|
4831
|
-
}, br = { class: "meteo-box" }, vr = { class: "header-box" }, _r = { class: "main" }, wr = { class: "sub" }, Lr = { class: "main-box" }, xr = { class: "flex-space" }, Cr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Sr = { class: "flex-space" }, kr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), zr = { class: "flex-space" }, Pr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Tr = { class: "flex-space" }, Ir = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), Er = { class: "flex-space" }, Rr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Current", -1)), Ar = { class: "flex-space" }, Dr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Mr = { class: "flex-space" }, $r = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Br = { class: "flex-space" }, Nr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Temp", -1)),
|
|
4834
|
+
}, br = { class: "meteo-box" }, vr = { class: "header-box" }, _r = { class: "main" }, wr = { class: "sub" }, Lr = { class: "main-box" }, xr = { class: "flex-space" }, Cr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Sr = { class: "flex-space" }, kr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), zr = { class: "flex-space" }, Pr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Tr = { class: "flex-space" }, Ir = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), Er = { class: "flex-space" }, Rr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Current", -1)), Ar = { class: "flex-space" }, Dr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Mr = { class: "flex-space" }, $r = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Br = { class: "flex-space" }, Nr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Wr = { class: "flex-space" }, Or = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), jr = {
|
|
4832
4835
|
key: 0,
|
|
4833
4836
|
class: "flex-space",
|
|
4834
4837
|
style: { "justify-content": "flex-end" }
|
|
@@ -4836,7 +4839,7 @@ const fr = {
|
|
|
4836
4839
|
Fr
|
|
4837
4840
|
];
|
|
4838
4841
|
function Ur(t, e, a, r, i, o) {
|
|
4839
|
-
var n, s, c, h, p, d, y, u, g, f, m, v, b, w, k, _, A, D, $,
|
|
4842
|
+
var n, s, c, h, p, d, y, u, g, f, m, v, b, w, k, _, A, D, $, W, O, H, X, ee, he, te, R, V, de, q, ne, fe, ge, be, ve, _e, we, Le, xe, Ce, Se, ke, ze, Pe, Te, Ie, Ee;
|
|
4840
4843
|
return Me((L(), x("div", gr, [
|
|
4841
4844
|
l("div", br, [
|
|
4842
4845
|
l("div", vr, [
|
|
@@ -4854,11 +4857,11 @@ function Ur(t, e, a, r, i, o) {
|
|
|
4854
4857
|
]),
|
|
4855
4858
|
l("div", Sr, [
|
|
4856
4859
|
kr,
|
|
4857
|
-
l("span", null, S(((w = (b = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((A = (_ = (k = a.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : A.height, 1)) + "[m]/" + S(o.roundPrecision((
|
|
4860
|
+
l("span", null, S(((w = (b = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((A = (_ = (k = a.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : A.height, 1)) + "[m]/" + S(o.roundPrecision((W = ($ = (D = a.meteo) == null ? void 0 : D.wave) == null ? void 0 : $.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
|
|
4858
4861
|
]),
|
|
4859
4862
|
l("div", zr, [
|
|
4860
4863
|
Pr,
|
|
4861
|
-
l("span", null, S(((X = (H = (
|
|
4864
|
+
l("span", null, S(((X = (H = (O = a.meteo) == null ? void 0 : O.wave) == null ? void 0 : H.swell) == null ? void 0 : X.direction) || "-") + "/" + S(o.roundPrecision((te = (he = (ee = a.meteo) == null ? void 0 : ee.wave) == null ? void 0 : he.swell) == null ? void 0 : te.height, 1)) + "[m]/" + S(o.roundPrecision((de = (V = (R = a.meteo) == null ? void 0 : R.wave) == null ? void 0 : V.swell) == null ? void 0 : de.period, 1)) + "[s]", 1)
|
|
4862
4865
|
]),
|
|
4863
4866
|
l("div", Tr, [
|
|
4864
4867
|
Ir,
|
|
@@ -4880,8 +4883,8 @@ function Ur(t, e, a, r, i, o) {
|
|
|
4880
4883
|
Nr,
|
|
4881
4884
|
l("span", null, S(o.roundPrecision((Ie = a.meteo) == null ? void 0 : Ie.temp, 0)) + "[°C]", 1)
|
|
4882
4885
|
]),
|
|
4883
|
-
l("div",
|
|
4884
|
-
|
|
4886
|
+
l("div", Wr, [
|
|
4887
|
+
Or,
|
|
4885
4888
|
l("span", null, S(o.roundPrecision((Ee = a.meteo) == null ? void 0 : Ee.waterTemp, 2)) + "[°C]", 1)
|
|
4886
4889
|
])
|
|
4887
4890
|
]),
|
|
@@ -6113,7 +6116,7 @@ function No(t, e, a, r, i, o) {
|
|
|
6113
6116
|
l("span", null, S(i.lngLat.lng.pretty), 1)
|
|
6114
6117
|
], 4)) : N("", !0);
|
|
6115
6118
|
}
|
|
6116
|
-
const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052"]]),
|
|
6119
|
+
const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052"]]), Wo = {
|
|
6117
6120
|
name: "IdmMeasure",
|
|
6118
6121
|
props: {
|
|
6119
6122
|
map: {
|
|
@@ -6253,7 +6256,7 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6253
6256
|
let a = 0;
|
|
6254
6257
|
const r = [];
|
|
6255
6258
|
for (let i = 1; i < e.length; i++) {
|
|
6256
|
-
const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, p =
|
|
6259
|
+
const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, p = We(c, h, s.mode === "RL", 2), d = Oe(c, h, s.mode === "RL", 2);
|
|
6257
6260
|
a = K.roundPrecision(a + p, 2);
|
|
6258
6261
|
let y;
|
|
6259
6262
|
s.mode === "RL" ? y = pe([c, h]) : y = pe(je(c, h, 200));
|
|
@@ -6269,7 +6272,7 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6269
6272
|
let o, n;
|
|
6270
6273
|
if (e) {
|
|
6271
6274
|
const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: a.lng, lat: a.lat };
|
|
6272
|
-
o =
|
|
6275
|
+
o = We(h, p, c.mode === "RL", 2), n = Oe(h, p, c.mode === "RL", 2);
|
|
6273
6276
|
let d;
|
|
6274
6277
|
c.mode === "RL" ? d = pe([h, p]) : d = pe(je(h, p, 200));
|
|
6275
6278
|
const y = C.lineString(d.map((u) => [u.lng, u.lat]));
|
|
@@ -6277,7 +6280,7 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6277
6280
|
}
|
|
6278
6281
|
if (r) {
|
|
6279
6282
|
const c = a.properties, h = a, p = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
6280
|
-
o =
|
|
6283
|
+
o = We(h, p, c.mode === "RL", 2), n = Oe(h, p, c.mode === "RL", 2);
|
|
6281
6284
|
let d;
|
|
6282
6285
|
c.mode === "RL" ? d = pe([h, p]) : d = pe(je(h, p, 200));
|
|
6283
6286
|
const y = C.lineString(d.map((u) => [u.lng, u.lat]));
|
|
@@ -6401,10 +6404,10 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6401
6404
|
}
|
|
6402
6405
|
}
|
|
6403
6406
|
};
|
|
6404
|
-
function
|
|
6407
|
+
function Oo(t, e, a, r, i, o) {
|
|
6405
6408
|
return L(), x("div");
|
|
6406
6409
|
}
|
|
6407
|
-
const jo = /* @__PURE__ */ T(
|
|
6410
|
+
const jo = /* @__PURE__ */ T(Wo, [["render", Oo]]);
|
|
6408
6411
|
const Fo = {
|
|
6409
6412
|
name: "IdmENC",
|
|
6410
6413
|
props: {
|
|
@@ -6492,7 +6495,7 @@ const Yo = {
|
|
|
6492
6495
|
IdmCurrentParticle: Ea,
|
|
6493
6496
|
IdmSigWave: Da,
|
|
6494
6497
|
IdmSwell: Ba,
|
|
6495
|
-
IdmPrmsl:
|
|
6498
|
+
IdmPrmsl: Oa,
|
|
6496
6499
|
// IdmIceEdge,
|
|
6497
6500
|
IdmIceberg: Va,
|
|
6498
6501
|
IdmTropicals: tt,
|
|
@@ -6669,8 +6672,8 @@ const Yo = {
|
|
|
6669
6672
|
);
|
|
6670
6673
|
const k = await Promise.all(w);
|
|
6671
6674
|
this.weatherLayers = {}, k.map((_) => {
|
|
6672
|
-
var $,
|
|
6673
|
-
const A = (($ = _ == null ? void 0 : _.data) == null ? void 0 : $.data) || (_ == null ? void 0 : _.data), D = (
|
|
6675
|
+
var $, W, O, H;
|
|
6676
|
+
const A = (($ = _ == null ? void 0 : _.data) == null ? void 0 : $.data) || (_ == null ? void 0 : _.data), D = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
|
|
6674
6677
|
D && A && (this.weatherLayers[D] = {
|
|
6675
6678
|
raw: A,
|
|
6676
6679
|
type: ((H = _ == null ? void 0 : _.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
|
|
@@ -6682,8 +6685,8 @@ const Yo = {
|
|
|
6682
6685
|
key: "tropicals"
|
|
6683
6686
|
}
|
|
6684
6687
|
}).then((_) => {
|
|
6685
|
-
var $,
|
|
6686
|
-
const A = et.convert2Geojson((($ = _ == null ? void 0 : _.data) == null ? void 0 : $.data) || (_ == null ? void 0 : _.data)), D = (
|
|
6688
|
+
var $, W, O;
|
|
6689
|
+
const A = et.convert2Geojson((($ = _ == null ? void 0 : _.data) == null ? void 0 : $.data) || (_ == null ? void 0 : _.data)), D = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
|
|
6687
6690
|
this.weatherLayers[D] = {
|
|
6688
6691
|
data: A,
|
|
6689
6692
|
active: !0,
|
|
@@ -7088,7 +7091,7 @@ const Yo = {
|
|
|
7088
7091
|
};
|
|
7089
7092
|
function Ko(t, e, a, r, i, o) {
|
|
7090
7093
|
var q, ne, fe, ge, be, ve, _e, we, Le, xe, Ce, Se, ke, ze, Pe, Te, Ie, Ee, Ne, He, Ze, Xe, Je, qe, Ye, Qe;
|
|
7091
|
-
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), p = z("IdmPrmsl"), d = z("IdmIceberg"), y = z("IdmTropicals"), u = z("IdmCurrents"), g = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), A = z("IdmWarZone"), D = z("IdmGmdssArea"), $ = z("IdmEcaZone"),
|
|
7094
|
+
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), p = z("IdmPrmsl"), d = z("IdmIceberg"), y = z("IdmTropicals"), u = z("IdmCurrents"), g = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), A = z("IdmWarZone"), D = z("IdmGmdssArea"), $ = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), H = z("IdmLoadLine"), X = z("IdmTimezone"), ee = z("IdmVRA"), he = z("IdmSpecialArea"), te = z("IdmTerminator"), R = z("IdmLatLng"), V = z("IdmMeasure"), de = z("IdmPoint");
|
|
7092
7095
|
return a.map ? (L(), x("div", Qo, [
|
|
7093
7096
|
P(n, I({
|
|
7094
7097
|
ref: "layer",
|
|
@@ -7124,8 +7127,9 @@ function Ko(t, e, a, r, i, o) {
|
|
|
7124
7127
|
P(p, I({
|
|
7125
7128
|
map: a.map,
|
|
7126
7129
|
prmsl: (ge = i.weatherLayers) == null ? void 0 : ge.prmsl,
|
|
7127
|
-
"before-layer": a.beforeLayer
|
|
7128
|
-
|
|
7130
|
+
"before-layer": a.beforeLayer,
|
|
7131
|
+
"active-weather-layers": i.activeWeatherLayers
|
|
7132
|
+
}, t.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
7129
7133
|
P(d, I({
|
|
7130
7134
|
map: a.map,
|
|
7131
7135
|
iceberg: (be = i.weatherLayers) == null ? void 0 : be.iceberg,
|
|
@@ -7216,12 +7220,12 @@ function Ko(t, e, a, r, i, o) {
|
|
|
7216
7220
|
zone: (Ne = i.otherLayers) == null ? void 0 : Ne["eca-zones"],
|
|
7217
7221
|
"before-layer": a.beforeLayer
|
|
7218
7222
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7219
|
-
P(
|
|
7223
|
+
P(W, I({
|
|
7220
7224
|
map: a.map,
|
|
7221
7225
|
zone: (He = i.otherLayers) == null ? void 0 : He["alert-zones"],
|
|
7222
7226
|
"before-layer": a.beforeLayer
|
|
7223
7227
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7224
|
-
P(
|
|
7228
|
+
P(O, I({
|
|
7225
7229
|
map: a.map,
|
|
7226
7230
|
port: (Ze = i.otherLayers) == null ? void 0 : Ze.ports,
|
|
7227
7231
|
"before-layer": a.beforeLayer
|