@idmwx/idmui-gl3 3.6.8 → 3.7.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 +191 -189
- package/dist/index.umd.cjs +4 -4
- package/dist/mapbox/src/components/layer.vue.d.ts +16 -11
- package/dist/mapbox/src/components/weather/current.vue.d.ts +12 -8
- package/dist/mapbox/src/components/weather/wind.vue.d.ts +10 -6
- package/dist/mapbox/src/index.vue.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ 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 R = (t, e, a) => (ot(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
4
4
|
import { LayerHelper as Ve, CompanyHelper as Me, LngLatHelper as te, convertToMonotonicLng2 as st, calculateDistance as Oe, calculateBearing as je, convertToMonotonicLng as we, interpolateCoordinates as Fe, convertToStandardLng as Re } from "@idmwx/idmwx-base";
|
|
5
|
-
import { resolveComponent as z, openBlock as w, createElementBlock as L, createElementVNode as l, normalizeStyle as j, normalizeClass as M, Fragment as
|
|
5
|
+
import { resolveComponent as z, openBlock as w, createElementBlock as L, createElementVNode as l, normalizeStyle as j, normalizeClass as M, Fragment as De, renderList as Ae, toDisplayString as S, createVNode as P, withCtx as nt, createTextVNode as Ke, createCommentVNode as $, pushScopeId as U, popScopeId as G, withDirectives as $e, vShow as Be, createStaticVNode as lt, mergeProps as E } from "vue";
|
|
6
6
|
import * as C from "@turf/turf";
|
|
7
7
|
import ct from "@mapbox/sphericalmercator";
|
|
8
8
|
import ee from "moment";
|
|
@@ -20,6 +20,9 @@ const T = (t, e) => {
|
|
|
20
20
|
map: {
|
|
21
21
|
type: Object
|
|
22
22
|
},
|
|
23
|
+
mapProjection: {
|
|
24
|
+
type: String
|
|
25
|
+
},
|
|
23
26
|
top: {
|
|
24
27
|
type: Number,
|
|
25
28
|
default: 60
|
|
@@ -61,13 +64,15 @@ const T = (t, e) => {
|
|
|
61
64
|
v: "0.0.6",
|
|
62
65
|
k: "glCacheVersion"
|
|
63
66
|
},
|
|
64
|
-
right: 10
|
|
67
|
+
right: 10,
|
|
68
|
+
rampColorLayers: ["visibility", "precip3h", "temp", "water-temp", "arctic"]
|
|
65
69
|
};
|
|
66
70
|
},
|
|
67
71
|
computed: {
|
|
68
72
|
computeLayerClass() {
|
|
69
73
|
return function(t, e) {
|
|
70
|
-
|
|
74
|
+
let a = "layer";
|
|
75
|
+
return e.some((r) => r.key === t.key) && (a = "layer active"), (!t.enabled || this.rampColorLayers.includes(t.key) && this.mapProjection === "globe") && (a = "layer disabled"), a;
|
|
71
76
|
};
|
|
72
77
|
}
|
|
73
78
|
},
|
|
@@ -107,9 +112,13 @@ const T = (t, e) => {
|
|
|
107
112
|
this.$emit("weather", this.weatherLayers, this.activeWeatherLayers, this.source), this.$emit("other", this.otherLayers), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
|
|
108
113
|
},
|
|
109
114
|
handleWeatherLayerPick(t) {
|
|
115
|
+
if (this.rampColorLayers.includes(t.key) && this.mapProjection === "globe")
|
|
116
|
+
return !1;
|
|
110
117
|
this.weatherLayers.some((e) => e.key === t.key) ? (this.weatherLayers = this.weatherLayers.filter((e) => e.key !== t.key), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== t.key)) : this.weatherLayers.length < 12 && t.enabled && (["png", "jpg"].includes(t.type) && (this.weatherLayers = this.weatherLayers.filter((e) => e.type === "json"), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json")), this.weatherLayers.push(t), this.activeWeatherLayers.push(t)), localStorage.setItem(this.weatherLayersCache, JSON.stringify(this.weatherLayers)), this.$emit("weather", this.weatherLayers, this.activeWeatherLayers, this.source), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
|
|
111
118
|
},
|
|
112
119
|
handleActiveWeatherLayerPick(t) {
|
|
120
|
+
if (this.rampColorLayers.includes(t.key) && this.mapProjection === "globe")
|
|
121
|
+
return !1;
|
|
113
122
|
if (this.activeWeatherLayers.some((e) => e.key === t.key))
|
|
114
123
|
this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== t.key);
|
|
115
124
|
else if (t.enabled) {
|
|
@@ -141,7 +150,7 @@ const T = (t, e) => {
|
|
|
141
150
|
this.source = t, this.handleConfirm();
|
|
142
151
|
}
|
|
143
152
|
}
|
|
144
|
-
}, Z = (t) => (U("data-v-
|
|
153
|
+
}, Z = (t) => (U("data-v-c4783062"), 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
154
|
mt
|
|
146
155
|
], yt = { class: "bar-item tool-bars" }, ft = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), gt = [
|
|
147
156
|
ft
|
|
@@ -156,7 +165,7 @@ const T = (t, e) => {
|
|
|
156
165
|
], Pt = { class: "weather-layers" }, Tt = {
|
|
157
166
|
class: "layers-title",
|
|
158
167
|
style: { display: "flex", "align-items": "center", "justify-content": "space-between" }
|
|
159
|
-
},
|
|
168
|
+
}, Et = { style: { "font-size": "12px" } }, It = { class: "layers-body" }, Rt = ["onClick"], Dt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), At = { 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
169
|
function Ft(t, e, a, r, i, o) {
|
|
161
170
|
const n = z("ElScrollbar");
|
|
162
171
|
return w(), L("div", dt, [
|
|
@@ -198,7 +207,7 @@ function Ft(t, e, a, r, i, o) {
|
|
|
198
207
|
class: "active-layers",
|
|
199
208
|
style: j({ right: i.right + "px", bottom: "100px" })
|
|
200
209
|
}, [
|
|
201
|
-
(w(!0), L(
|
|
210
|
+
(w(!0), L(De, null, Ae(i.weatherLayers, (s) => (w(), L("div", {
|
|
202
211
|
key: s.key,
|
|
203
212
|
class: M(o.computeLayerClass(s, i.activeWeatherLayers)),
|
|
204
213
|
onClick: (c) => o.handleActiveWeatherLayerPick(s)
|
|
@@ -225,28 +234,28 @@ function Ft(t, e, a, r, i, o) {
|
|
|
225
234
|
l("div", Tt, [
|
|
226
235
|
l("div", null, [
|
|
227
236
|
Ke(" Weather Layers "),
|
|
228
|
-
l("span",
|
|
237
|
+
l("span", Et, "(" + S(i.weatherLayers.length) + "/12)", 1)
|
|
229
238
|
])
|
|
230
239
|
]),
|
|
231
|
-
l("div",
|
|
232
|
-
(w(!0), L(
|
|
240
|
+
l("div", It, [
|
|
241
|
+
(w(!0), L(De, null, Ae(i.layers.weather, (s) => (w(), L(De, {
|
|
233
242
|
key: s.key
|
|
234
243
|
}, [
|
|
235
|
-
s.hide ?
|
|
244
|
+
s.hide ? $("", !0) : (w(), L("div", {
|
|
236
245
|
key: 0,
|
|
237
246
|
class: M(o.computeLayerClass(s, i.weatherLayers)),
|
|
238
247
|
onClick: (c) => o.handleWeatherLayerPick(s)
|
|
239
248
|
}, [
|
|
240
|
-
|
|
249
|
+
Dt,
|
|
241
250
|
l("span", null, S(s.name), 1)
|
|
242
251
|
], 10, Rt))
|
|
243
252
|
], 64))), 128))
|
|
244
253
|
])
|
|
245
254
|
]),
|
|
246
|
-
l("div",
|
|
255
|
+
l("div", At, [
|
|
247
256
|
Mt,
|
|
248
257
|
l("div", $t, [
|
|
249
|
-
(w(!0), L(
|
|
258
|
+
(w(!0), L(De, null, Ae(i.layers.other, (s) => (w(), L("div", {
|
|
250
259
|
key: s.key,
|
|
251
260
|
class: M(o.computeLayerClass(s, i.otherLayers)),
|
|
252
261
|
onClick: (c) => o.handleOtherLayerPick(s)
|
|
@@ -276,7 +285,7 @@ function Ft(t, e, a, r, i, o) {
|
|
|
276
285
|
], 4)
|
|
277
286
|
]);
|
|
278
287
|
}
|
|
279
|
-
const Vt = /* @__PURE__ */ T(ht, [["render", Ft], ["__scopeId", "data-v-
|
|
288
|
+
const Vt = /* @__PURE__ */ T(ht, [["render", Ft], ["__scopeId", "data-v-c4783062"]]);
|
|
280
289
|
const Ut = {
|
|
281
290
|
name: "IdmWindBarb",
|
|
282
291
|
props: {
|
|
@@ -292,14 +301,9 @@ const Ut = {
|
|
|
292
301
|
beforeLayer: {
|
|
293
302
|
type: String
|
|
294
303
|
},
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
// },
|
|
299
|
-
// bottom: {
|
|
300
|
-
// type: String,
|
|
301
|
-
// default: '125px',
|
|
302
|
-
// },
|
|
304
|
+
mapProjection: {
|
|
305
|
+
type: String
|
|
306
|
+
},
|
|
303
307
|
showParticle: {
|
|
304
308
|
type: Boolean,
|
|
305
309
|
default: !1
|
|
@@ -447,10 +451,10 @@ const Ut = {
|
|
|
447
451
|
}, Zt = {
|
|
448
452
|
key: 1,
|
|
449
453
|
class: "iconfont"
|
|
450
|
-
},
|
|
454
|
+
}, Jt = {
|
|
451
455
|
key: 0,
|
|
452
456
|
class: "iconfont active"
|
|
453
|
-
},
|
|
457
|
+
}, Xt = {
|
|
454
458
|
key: 1,
|
|
455
459
|
class: "iconfont"
|
|
456
460
|
};
|
|
@@ -461,7 +465,8 @@ function qt(t, e, a, r, i, o) {
|
|
|
461
465
|
class: "flex-center tool-bars",
|
|
462
466
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
|
|
463
467
|
}, [
|
|
464
|
-
|
|
468
|
+
a.mapProjection === "mercator" ? (w(), L("div", {
|
|
469
|
+
key: 0,
|
|
465
470
|
class: "flex-start",
|
|
466
471
|
onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
|
|
467
472
|
}, [
|
|
@@ -469,22 +474,22 @@ function qt(t, e, a, r, i, o) {
|
|
|
469
474
|
l("span", {
|
|
470
475
|
class: M(a.showParticle ? "active" : "")
|
|
471
476
|
}, "Wind Particles", 2)
|
|
472
|
-
]),
|
|
477
|
+
])) : $("", !0),
|
|
473
478
|
a.showParticle ? (w(), L("div", {
|
|
474
|
-
key:
|
|
479
|
+
key: 1,
|
|
475
480
|
class: "flex-start",
|
|
476
481
|
style: { "margin-left": "16px" },
|
|
477
482
|
onClick: e[1] || (e[1] = (s) => i.showFeather = !i.showFeather)
|
|
478
483
|
}, [
|
|
479
|
-
i.showFeather ? (w(), L("i",
|
|
484
|
+
i.showFeather ? (w(), L("i", Jt, "")) : (w(), L("i", Xt, "")),
|
|
480
485
|
l("span", {
|
|
481
486
|
class: M(i.showFeather ? "active" : "")
|
|
482
487
|
}, "Wind Feather", 2)
|
|
483
|
-
])) :
|
|
488
|
+
])) : $("", !0)
|
|
484
489
|
], 4)
|
|
485
|
-
])) :
|
|
490
|
+
])) : $("", !0);
|
|
486
491
|
}
|
|
487
|
-
const Yt = /* @__PURE__ */ T(Ut, [["render", qt], ["__scopeId", "data-v-
|
|
492
|
+
const Yt = /* @__PURE__ */ T(Ut, [["render", qt], ["__scopeId", "data-v-f409772c"]]);
|
|
488
493
|
class Ue {
|
|
489
494
|
constructor(e) {
|
|
490
495
|
R(this, "map");
|
|
@@ -709,8 +714,8 @@ class ve {
|
|
|
709
714
|
}
|
|
710
715
|
const m = e.getBoundPixel(), g = e.map.getZoom() + 1, y = e.getWorldCopy(m, g);
|
|
711
716
|
for (const u of y) {
|
|
712
|
-
const v = (u[0] - m[0]) * e.ratio, b = (u[1] - m[3]) * e.ratio, x = u[2] * e.ratio, [k, _,
|
|
713
|
-
a.bindBuffer(a.ARRAY_BUFFER, n), a.bufferData(a.ARRAY_BUFFER,
|
|
717
|
+
const v = (u[0] - m[0]) * e.ratio, b = (u[1] - m[3]) * e.ratio, x = u[2] * e.ratio, [k, _, D, A] = [v, x + v, b, x + b], B = new Float32Array([k, D, _, D, k, A, k, A, _, D, _, A]);
|
|
718
|
+
a.bindBuffer(a.ARRAY_BUFFER, n), a.bufferData(a.ARRAY_BUFFER, B, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
|
|
714
719
|
}
|
|
715
720
|
} catch (d) {
|
|
716
721
|
console.log(`render failed...${d}`);
|
|
@@ -758,10 +763,10 @@ class ve {
|
|
|
758
763
|
});
|
|
759
764
|
}
|
|
760
765
|
}
|
|
761
|
-
class
|
|
766
|
+
class N {
|
|
762
767
|
}
|
|
763
768
|
// 顶点渲染
|
|
764
|
-
R(
|
|
769
|
+
R(N, "vertexSchema", `
|
|
765
770
|
//canvas 坐标系上的坐标 (x, y)
|
|
766
771
|
attribute vec2 a_position; //像素坐标
|
|
767
772
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -776,7 +781,7 @@ R(B, "vertexSchema", `
|
|
|
776
781
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
777
782
|
v_texCoord = a_texCoord;
|
|
778
783
|
}`), // 类如风、流等u v双变量片元渲染
|
|
779
|
-
R(
|
|
784
|
+
R(N, "uvFragmentSchema", `
|
|
780
785
|
precision mediump float;
|
|
781
786
|
uniform sampler2D u_image;
|
|
782
787
|
uniform vec2 u_range_u_v;
|
|
@@ -795,7 +800,7 @@ R(B, "uvFragmentSchema", `
|
|
|
795
800
|
|
|
796
801
|
gl_FragColor = color;
|
|
797
802
|
}`), // 类如浪、气压等单变量片元渲染
|
|
798
|
-
R(
|
|
803
|
+
R(N, "fragmentSchema", `
|
|
799
804
|
precision mediump float;
|
|
800
805
|
uniform sampler2D u_image; // 灰度
|
|
801
806
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -2673,7 +2678,7 @@ const Kt = {
|
|
|
2673
2678
|
[1, "rgb(91, 136, 161)"]
|
|
2674
2679
|
];
|
|
2675
2680
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
2676
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
2681
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
|
|
2677
2682
|
this.program = e, this.aPositionBuffer = a;
|
|
2678
2683
|
}
|
|
2679
2684
|
this.handleParticleSetup();
|
|
@@ -2721,7 +2726,7 @@ const Kt = {
|
|
|
2721
2726
|
});
|
|
2722
2727
|
}
|
|
2723
2728
|
}
|
|
2724
|
-
}, ne = (t) => (U("data-v-
|
|
2729
|
+
}, ne = (t) => (U("data-v-6e0050df"), t = t(), G(), t), ea = { key: 0 }, ta = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "kts", -1)), aa = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "0", -1)), ia = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "5", -1)), ra = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "10", -1)), oa = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "20", -1)), sa = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "30", -1)), na = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "40", -1)), la = /* @__PURE__ */ ne(() => /* @__PURE__ */ l("span", null, "60", -1)), ca = [
|
|
2725
2730
|
ta,
|
|
2726
2731
|
aa,
|
|
2727
2732
|
ia,
|
|
@@ -2738,9 +2743,9 @@ function ha(t, e, a, r, i, o) {
|
|
|
2738
2743
|
class: "legend-bars flex-center",
|
|
2739
2744
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
2740
2745
|
}, ca, 4)
|
|
2741
|
-
])) :
|
|
2746
|
+
])) : $("", !0);
|
|
2742
2747
|
}
|
|
2743
|
-
const da = /* @__PURE__ */ T(Kt, [["render", ha], ["__scopeId", "data-v-
|
|
2748
|
+
const da = /* @__PURE__ */ T(Kt, [["render", ha], ["__scopeId", "data-v-6e0050df"]]);
|
|
2744
2749
|
const pa = {
|
|
2745
2750
|
name: "IdmCurrent",
|
|
2746
2751
|
props: {
|
|
@@ -2753,14 +2758,9 @@ const pa = {
|
|
|
2753
2758
|
beforeLayer: {
|
|
2754
2759
|
type: String
|
|
2755
2760
|
},
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
// },
|
|
2760
|
-
// bottom: {
|
|
2761
|
-
// type: String,
|
|
2762
|
-
// default: '95px',
|
|
2763
|
-
// },
|
|
2761
|
+
mapProjection: {
|
|
2762
|
+
type: String
|
|
2763
|
+
},
|
|
2764
2764
|
showParticle: {
|
|
2765
2765
|
type: Boolean,
|
|
2766
2766
|
default: !1
|
|
@@ -2926,7 +2926,8 @@ function ba(t, e, a, r, i, o) {
|
|
|
2926
2926
|
class: "flex-center tool-bars",
|
|
2927
2927
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
|
|
2928
2928
|
}, [
|
|
2929
|
-
|
|
2929
|
+
a.mapProjection === "mercator" ? (w(), L("div", {
|
|
2930
|
+
key: 0,
|
|
2930
2931
|
class: "flex-start",
|
|
2931
2932
|
onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
|
|
2932
2933
|
}, [
|
|
@@ -2934,9 +2935,9 @@ function ba(t, e, a, r, i, o) {
|
|
|
2934
2935
|
l("span", {
|
|
2935
2936
|
class: M(a.showParticle ? "active" : "")
|
|
2936
2937
|
}, "Current Particles", 2)
|
|
2937
|
-
]),
|
|
2938
|
+
])) : $("", !0),
|
|
2938
2939
|
a.showParticle ? (w(), L("div", {
|
|
2939
|
-
key:
|
|
2940
|
+
key: 1,
|
|
2940
2941
|
class: "flex-start",
|
|
2941
2942
|
style: { "margin-left": "16px" },
|
|
2942
2943
|
onClick: e[1] || (e[1] = (s) => i.showJson = !i.showJson)
|
|
@@ -2945,11 +2946,11 @@ function ba(t, e, a, r, i, o) {
|
|
|
2945
2946
|
l("span", {
|
|
2946
2947
|
class: M(i.showJson ? "active" : "")
|
|
2947
2948
|
}, "Current", 2)
|
|
2948
|
-
])) :
|
|
2949
|
+
])) : $("", !0)
|
|
2949
2950
|
], 4)
|
|
2950
|
-
])) :
|
|
2951
|
+
])) : $("", !0);
|
|
2951
2952
|
}
|
|
2952
|
-
const va = /* @__PURE__ */ T(pa, [["render", ba], ["__scopeId", "data-v-
|
|
2953
|
+
const va = /* @__PURE__ */ T(pa, [["render", ba], ["__scopeId", "data-v-4f257fc7"]]);
|
|
2953
2954
|
const _a = {
|
|
2954
2955
|
name: "IdmCurrentParticle",
|
|
2955
2956
|
props: {
|
|
@@ -2959,10 +2960,6 @@ const _a = {
|
|
|
2959
2960
|
viewport: {
|
|
2960
2961
|
type: Ue
|
|
2961
2962
|
},
|
|
2962
|
-
// right: {
|
|
2963
|
-
// type: String,
|
|
2964
|
-
// default: '10px',
|
|
2965
|
-
// },
|
|
2966
2963
|
bottom: {
|
|
2967
2964
|
type: String,
|
|
2968
2965
|
default: "70px"
|
|
@@ -3059,7 +3056,7 @@ const _a = {
|
|
|
3059
3056
|
[1, "rgb(195,194,194)"]
|
|
3060
3057
|
];
|
|
3061
3058
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
3062
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
3059
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
|
|
3063
3060
|
this.program = e, this.aPositionBuffer = a;
|
|
3064
3061
|
}
|
|
3065
3062
|
this.handleParticleSetup();
|
|
@@ -3111,7 +3108,7 @@ const _a = {
|
|
|
3111
3108
|
});
|
|
3112
3109
|
}
|
|
3113
3110
|
}
|
|
3114
|
-
}, _e = (t) => (U("data-v-
|
|
3111
|
+
}, _e = (t) => (U("data-v-ec0ae348"), t = t(), G(), t), wa = { key: 0 }, La = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "kts", -1)), xa = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "0", -1)), Ca = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "0.4", -1)), Sa = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "0.8", -1)), ka = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "1.6", -1)), za = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "2", -1)), Pa = /* @__PURE__ */ _e(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ta = [
|
|
3115
3112
|
La,
|
|
3116
3113
|
xa,
|
|
3117
3114
|
Ca,
|
|
@@ -3120,16 +3117,16 @@ const _a = {
|
|
|
3120
3117
|
za,
|
|
3121
3118
|
Pa
|
|
3122
3119
|
];
|
|
3123
|
-
function
|
|
3120
|
+
function Ea(t, e, a, r, i, o) {
|
|
3124
3121
|
var n;
|
|
3125
3122
|
return (n = a.factor) != null && n.active ? (w(), L("div", wa, [
|
|
3126
3123
|
l("div", {
|
|
3127
3124
|
class: "legend-bars flex-center",
|
|
3128
3125
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
3129
3126
|
}, Ta, 4)
|
|
3130
|
-
])) :
|
|
3127
|
+
])) : $("", !0);
|
|
3131
3128
|
}
|
|
3132
|
-
const
|
|
3129
|
+
const Ia = /* @__PURE__ */ T(_a, [["render", Ea], ["__scopeId", "data-v-ec0ae348"]]), Ra = {
|
|
3133
3130
|
name: "IdmSigWave",
|
|
3134
3131
|
props: {
|
|
3135
3132
|
map: {
|
|
@@ -3240,10 +3237,10 @@ const Ea = /* @__PURE__ */ T(_a, [["render", Ia], ["__scopeId", "data-v-a182db4f
|
|
|
3240
3237
|
}
|
|
3241
3238
|
}
|
|
3242
3239
|
};
|
|
3243
|
-
function
|
|
3240
|
+
function Da(t, e, a, r, i, o) {
|
|
3244
3241
|
return w(), L("div");
|
|
3245
3242
|
}
|
|
3246
|
-
const
|
|
3243
|
+
const Aa = /* @__PURE__ */ T(Ra, [["render", Da]]), Ma = {
|
|
3247
3244
|
name: "IdmSwell",
|
|
3248
3245
|
props: {
|
|
3249
3246
|
map: {
|
|
@@ -3939,11 +3936,11 @@ const Ua = {
|
|
|
3939
3936
|
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), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
|
|
3940
3937
|
},
|
|
3941
3938
|
handleDateChange() {
|
|
3942
|
-
var t, e, a, r, i, o, n, s, c, h, d, p, f, m, g, y, u, v, b, x, k, _, A,
|
|
3943
|
-
if ((t = this.interpolateMarkers) == null || t.forEach((
|
|
3944
|
-
const
|
|
3945
|
-
fe.forEach((
|
|
3946
|
-
Y.features.push(
|
|
3939
|
+
var t, e, a, r, i, o, n, s, c, h, d, p, f, m, g, y, u, v, b, x, k, _, D, A, B, W, O, H, he, de, pe, me, ue, ye;
|
|
3940
|
+
if ((t = this.interpolateMarkers) == null || t.forEach((J) => J == null ? void 0 : J.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
3941
|
+
const J = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), q = this.interpolateData.filter((I) => I.properties.date === J.format() && !I.properties.disabled), fe = this.handleComputePolygons(q), Y = C.featureCollection([...q]);
|
|
3942
|
+
fe.forEach((I) => {
|
|
3943
|
+
Y.features.push(I);
|
|
3947
3944
|
}), (a = this.map) != null && a.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(Y) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
3948
3945
|
type: "geojson",
|
|
3949
3946
|
data: Y
|
|
@@ -3958,10 +3955,10 @@ const Ua = {
|
|
|
3958
3955
|
"line-width": 2
|
|
3959
3956
|
}
|
|
3960
3957
|
})), this.interpolateMarkers = [];
|
|
3961
|
-
for (const
|
|
3962
|
-
if (!
|
|
3958
|
+
for (const I of q)
|
|
3959
|
+
if (!I.properties.disabled) {
|
|
3963
3960
|
let F = "#f44336";
|
|
3964
|
-
((s = (n =
|
|
3961
|
+
((s = (n = I.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 ? F = "#03f869" : ((h = (c = I.properties) == null ? void 0 : c.wind) == null ? void 0 : h.spd) >= 17.2 && ((p = (d = I.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) < 24.5 ? F = "#f2f202" : ((m = (f = I.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) >= 24.5 && ((y = (g = I.properties) == null ? void 0 : g.wind) == null ? void 0 : y.spd) < 32.7 ? F = "#ff9100" : ((v = (u = I.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) >= 32.7 && ((x = (b = I.properties) == null ? void 0 : b.wind) == null ? void 0 : x.spd) < 41.5 ? F = "#f44336" : ((_ = (k = I.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) >= 41.5 && ((A = (D = I.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) < 51 ? F = "#c604a4" : ((W = (B = I.properties) == null ? void 0 : B.wind) == null ? void 0 : W.spd) >= 51 ? F = "#6b05bb" : F = "#f44336";
|
|
3965
3962
|
const ge = `<svg t="1719918955501"
|
|
3966
3963
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
3967
3964
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -3977,10 +3974,10 @@ const Ua = {
|
|
|
3977
3974
|
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"
|
|
3978
3975
|
fill="#ffffff" p-id="18386"></path>
|
|
3979
3976
|
</svg>`, Q = document.createElement("div");
|
|
3980
|
-
Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${
|
|
3981
|
-
const be = new se.Marker(Q).setLngLat(
|
|
3982
|
-
if (this.interpolateMarkers.push(be), (O =
|
|
3983
|
-
const ae = { radius: 100, coordinates:
|
|
3977
|
+
Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${I.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ge}</div>`;
|
|
3978
|
+
const be = new se.Marker(Q).setLngLat(I.geometry.coordinates).addTo(this.map);
|
|
3979
|
+
if (this.interpolateMarkers.push(be), (O = I.properties) != null && O.showCircle) {
|
|
3980
|
+
const ae = { radius: 100, coordinates: I.geometry.coordinates }, ie = { radius: 200, coordinates: I.geometry.coordinates }, re = { radius: 500, coordinates: I.geometry.coordinates };
|
|
3984
3981
|
(H = this.circleSourceData) == null || H.features.push(
|
|
3985
3982
|
C.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3986
3983
|
), (he = this.circleSourceData) == null || he.features.push(
|
|
@@ -4107,7 +4104,7 @@ const Ua = {
|
|
|
4107
4104
|
}, Ge = (t) => (U("data-v-813afc6d"), t = t(), G(), t), Ga = {
|
|
4108
4105
|
id: "active-tropical",
|
|
4109
4106
|
class: "active-tropical"
|
|
4110
|
-
}, Ha = { class: "header-box" }, Za = { class: "main" },
|
|
4107
|
+
}, Ha = { class: "header-box" }, Za = { class: "main" }, Ja = { key: 0 }, Xa = { class: "sub" }, qa = {
|
|
4111
4108
|
id: "meteoBox",
|
|
4112
4109
|
class: "main-box"
|
|
4113
4110
|
}, Ya = { class: "content" }, Qa = { class: "row" }, Ka = {
|
|
@@ -4129,10 +4126,10 @@ function hi(t, e, a, r, i, o) {
|
|
|
4129
4126
|
onClick: e[0] || (e[0] = (_) => i.showTropicals = !1)
|
|
4130
4127
|
}, ""),
|
|
4131
4128
|
l("div", Za, [
|
|
4132
|
-
(s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (w(), L("span",
|
|
4129
|
+
(s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (w(), L("span", Ja, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : $("", !0),
|
|
4133
4130
|
Ke(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
|
|
4134
4131
|
]),
|
|
4135
|
-
l("div",
|
|
4132
|
+
l("div", Xa, " Last update: " + S(o.computeTime(((f = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : f.updated) || ((y = (g = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : g.filter((_) => !_.disabled)[0]) == null ? void 0 : y.date))), 1)
|
|
4136
4133
|
]),
|
|
4137
4134
|
l("div", qa, [
|
|
4138
4135
|
l("div", Ya, [
|
|
@@ -4150,14 +4147,14 @@ function hi(t, e, a, r, i, o) {
|
|
|
4150
4147
|
l("div", ri, [
|
|
4151
4148
|
oi,
|
|
4152
4149
|
l("div", si, [
|
|
4153
|
-
(w(!0), L(
|
|
4154
|
-
var
|
|
4150
|
+
(w(!0), L(De, null, Ae((k = i.activeTropicals) == null ? void 0 : k.forecasts, (_, D) => {
|
|
4151
|
+
var A, B, W, O;
|
|
4155
4152
|
return w(), L("div", {
|
|
4156
|
-
key:
|
|
4153
|
+
key: D,
|
|
4157
4154
|
class: M([
|
|
4158
4155
|
"model",
|
|
4159
4156
|
_.disabled ? "" : "active",
|
|
4160
|
-
|
|
4157
|
+
D > 0 && D < ((B = (A = i.activeTropicals) == null ? void 0 : A.forecasts) == null ? void 0 : B.length) - 1 && ((O = (W = i.activeTropicals) == null ? void 0 : W.forecasts) == null ? void 0 : O.length) > 2 ? "center-child" : ""
|
|
4161
4158
|
]),
|
|
4162
4159
|
onClick: (H) => o.handleForecastToggle(_)
|
|
4163
4160
|
}, [
|
|
@@ -4271,7 +4268,7 @@ const di = {
|
|
|
4271
4268
|
[1, "rgba(197,5,58,0.8)"]
|
|
4272
4269
|
];
|
|
4273
4270
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4274
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
4271
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
|
|
4275
4272
|
this.program = e, this.aPositionBuffer = a;
|
|
4276
4273
|
}
|
|
4277
4274
|
},
|
|
@@ -4301,7 +4298,7 @@ function Li(t, e, a, r, i, o) {
|
|
|
4301
4298
|
class: "legend-bars flex-center",
|
|
4302
4299
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4303
4300
|
}, wi, 4)
|
|
4304
|
-
])) :
|
|
4301
|
+
])) : $("", !0);
|
|
4305
4302
|
}
|
|
4306
4303
|
const xi = /* @__PURE__ */ T(di, [["render", Li], ["__scopeId", "data-v-dec867b8"]]);
|
|
4307
4304
|
const Ci = {
|
|
@@ -4385,7 +4382,7 @@ const Ci = {
|
|
|
4385
4382
|
[1, "rgba(144,144,144,0)"]
|
|
4386
4383
|
];
|
|
4387
4384
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4388
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
4385
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
|
|
4389
4386
|
this.program = e, this.aPositionBuffer = a;
|
|
4390
4387
|
}
|
|
4391
4388
|
},
|
|
@@ -4398,24 +4395,24 @@ const Ci = {
|
|
|
4398
4395
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4399
4396
|
}
|
|
4400
4397
|
}
|
|
4401
|
-
}, Le = (t) => (U("data-v-952dee5c"), t = t(), G(), t), Si = { key: 0 }, ki = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "nm", -1)), zi = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0", -1)), Pi = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Ti = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "1.5", -1)),
|
|
4398
|
+
}, Le = (t) => (U("data-v-952dee5c"), t = t(), G(), t), Si = { key: 0 }, ki = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "nm", -1)), zi = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0", -1)), Pi = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Ti = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "1.5", -1)), Ei = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "3", -1)), Ii = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "9", -1)), Ri = [
|
|
4402
4399
|
ki,
|
|
4403
4400
|
zi,
|
|
4404
4401
|
Pi,
|
|
4405
4402
|
Ti,
|
|
4406
|
-
|
|
4407
|
-
|
|
4403
|
+
Ei,
|
|
4404
|
+
Ii
|
|
4408
4405
|
];
|
|
4409
|
-
function
|
|
4406
|
+
function Di(t, e, a, r, i, o) {
|
|
4410
4407
|
var n;
|
|
4411
4408
|
return (n = a.factor) != null && n.active ? (w(), L("div", Si, [
|
|
4412
4409
|
l("div", {
|
|
4413
4410
|
class: "legend-bars flex-center",
|
|
4414
4411
|
style: j([{ position: "absolute" }, { right: t.right + "px", bottom: a.bottom }])
|
|
4415
4412
|
}, Ri, 4)
|
|
4416
|
-
])) :
|
|
4413
|
+
])) : $("", !0);
|
|
4417
4414
|
}
|
|
4418
|
-
const
|
|
4415
|
+
const Ai = /* @__PURE__ */ T(Ci, [["render", Di], ["__scopeId", "data-v-952dee5c"]]);
|
|
4419
4416
|
const Mi = {
|
|
4420
4417
|
name: "IdmWaterTemp",
|
|
4421
4418
|
props: {
|
|
@@ -4505,7 +4502,7 @@ const Mi = {
|
|
|
4505
4502
|
//
|
|
4506
4503
|
];
|
|
4507
4504
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4508
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
4505
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
|
|
4509
4506
|
this.program = e, this.aPositionBuffer = a;
|
|
4510
4507
|
}
|
|
4511
4508
|
},
|
|
@@ -4533,7 +4530,7 @@ function Ui(t, e, a, r, i, o) {
|
|
|
4533
4530
|
class: "legend-bars flex-center",
|
|
4534
4531
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4535
4532
|
}, Vi, 4)
|
|
4536
|
-
])) :
|
|
4533
|
+
])) : $("", !0);
|
|
4537
4534
|
}
|
|
4538
4535
|
const Gi = /* @__PURE__ */ T(Mi, [["render", Ui], ["__scopeId", "data-v-67e5094b"]]);
|
|
4539
4536
|
const Hi = {
|
|
@@ -4628,7 +4625,7 @@ const Hi = {
|
|
|
4628
4625
|
[1, "rgb(138, 43, 10)"]
|
|
4629
4626
|
];
|
|
4630
4627
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4631
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
4628
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
|
|
4632
4629
|
this.program = e, this.aPositionBuffer = a;
|
|
4633
4630
|
}
|
|
4634
4631
|
},
|
|
@@ -4641,9 +4638,9 @@ const Hi = {
|
|
|
4641
4638
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4642
4639
|
}
|
|
4643
4640
|
}
|
|
4644
|
-
}, ce = (t) => (U("data-v-389ea886"), t = t(), G(), t), Zi = { key: 0 },
|
|
4645
|
-
Xi,
|
|
4641
|
+
}, ce = (t) => (U("data-v-389ea886"), t = t(), G(), t), Zi = { key: 0 }, Ji = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "°C", -1)), Xi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "-20", -1)), qi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "-10", -1)), Yi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "0", -1)), Qi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "10", -1)), Ki = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "20", -1)), er = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "30", -1)), tr = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "40", -1)), ar = [
|
|
4646
4642
|
Ji,
|
|
4643
|
+
Xi,
|
|
4647
4644
|
qi,
|
|
4648
4645
|
Yi,
|
|
4649
4646
|
Qi,
|
|
@@ -4658,7 +4655,7 @@ function ir(t, e, a, r, i, o) {
|
|
|
4658
4655
|
class: "legend-bars flex-center",
|
|
4659
4656
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4660
4657
|
}, ar, 4)
|
|
4661
|
-
])) :
|
|
4658
|
+
])) : $("", !0);
|
|
4662
4659
|
}
|
|
4663
4660
|
const rr = /* @__PURE__ */ T(Hi, [["render", ir], ["__scopeId", "data-v-389ea886"]]);
|
|
4664
4661
|
const or = {
|
|
@@ -4744,7 +4741,7 @@ const or = {
|
|
|
4744
4741
|
// 2m
|
|
4745
4742
|
];
|
|
4746
4743
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4747
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
4744
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
|
|
4748
4745
|
this.program = e, this.aPositionBuffer = a;
|
|
4749
4746
|
}
|
|
4750
4747
|
},
|
|
@@ -4772,7 +4769,7 @@ function ur(t, e, a, r, i, o) {
|
|
|
4772
4769
|
class: "legend-bars flex-center",
|
|
4773
4770
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4774
4771
|
}, mr, 4)
|
|
4775
|
-
])) :
|
|
4772
|
+
])) : $("", !0);
|
|
4776
4773
|
}
|
|
4777
4774
|
const yr = /* @__PURE__ */ T(or, [["render", ur], ["__scopeId", "data-v-db805141"]]);
|
|
4778
4775
|
const fr = {
|
|
@@ -4854,18 +4851,18 @@ const fr = {
|
|
|
4854
4851
|
}
|
|
4855
4852
|
}
|
|
4856
4853
|
}
|
|
4857
|
-
},
|
|
4854
|
+
}, X = (t) => (U("data-v-fb5b12d6"), t = t(), G(), t), gr = {
|
|
4858
4855
|
id: "point-meteo",
|
|
4859
4856
|
class: "point-meteo"
|
|
4860
|
-
}, br = { class: "meteo-box" }, vr = { class: "header-box" }, _r = { class: "main" }, wr = { class: "sub" }, Lr = { class: "main-box" }, xr = { class: "flex-space" }, Cr = /* @__PURE__ */
|
|
4857
|
+
}, br = { class: "meteo-box" }, vr = { class: "header-box" }, _r = { class: "main" }, wr = { class: "sub" }, Lr = { class: "main-box" }, xr = { class: "flex-space" }, Cr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Sr = { class: "flex-space" }, kr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), zr = { class: "flex-space" }, Pr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Tr = { class: "flex-space" }, Er = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), Ir = { class: "flex-space" }, Rr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Current", -1)), Dr = { class: "flex-space" }, Ar = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Mr = { class: "flex-space" }, $r = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Br = { class: "flex-space" }, Nr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Wr = { class: "flex-space" }, Or = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), jr = {
|
|
4861
4858
|
key: 0,
|
|
4862
4859
|
class: "flex-space",
|
|
4863
4860
|
style: { "justify-content": "flex-end" }
|
|
4864
|
-
}, Fr = /* @__PURE__ */
|
|
4861
|
+
}, Fr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "more" }, "More >>", -1)), Vr = [
|
|
4865
4862
|
Fr
|
|
4866
4863
|
];
|
|
4867
4864
|
function Ur(t, e, a, r, i, o) {
|
|
4868
|
-
var n, s, c, h, d, p, f, m, g, y, u, v, b, x, k, _, A,
|
|
4865
|
+
var n, s, c, h, d, p, f, m, g, y, u, v, b, x, k, _, D, A, B, W, O, H, he, de, pe, me, ue, ye, J, q, fe, Y, I, F, ge, Q, be, ae, ie, re, Se, ke, ze, Pe, Te, Ee, Ie;
|
|
4869
4866
|
return $e((w(), L("div", gr, [
|
|
4870
4867
|
l("div", br, [
|
|
4871
4868
|
l("div", vr, [
|
|
@@ -4883,22 +4880,22 @@ function Ur(t, e, a, r, i, o) {
|
|
|
4883
4880
|
]),
|
|
4884
4881
|
l("div", Sr, [
|
|
4885
4882
|
kr,
|
|
4886
|
-
l("span", null, S(((x = (b = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : x.direction) || "-") + "/" + S(o.roundPrecision((
|
|
4883
|
+
l("span", null, S(((x = (b = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : x.direction) || "-") + "/" + S(o.roundPrecision((D = (_ = (k = a.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : D.height, 1)) + "[m]/" + S(o.roundPrecision((W = (B = (A = a.meteo) == null ? void 0 : A.wave) == null ? void 0 : B.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
|
|
4887
4884
|
]),
|
|
4888
4885
|
l("div", zr, [
|
|
4889
4886
|
Pr,
|
|
4890
|
-
l("span", null, S(((he = (H = (O = a.meteo) == null ? void 0 : O.wave) == null ? void 0 : H.swell) == null ? void 0 : he.direction) || "-") + "/" + S(o.roundPrecision((me = (pe = (de = a.meteo) == null ? void 0 : de.wave) == null ? void 0 : pe.swell) == null ? void 0 : me.height, 1)) + "[m]/" + S(o.roundPrecision((
|
|
4887
|
+
l("span", null, S(((he = (H = (O = a.meteo) == null ? void 0 : O.wave) == null ? void 0 : H.swell) == null ? void 0 : he.direction) || "-") + "/" + S(o.roundPrecision((me = (pe = (de = a.meteo) == null ? void 0 : de.wave) == null ? void 0 : pe.swell) == null ? void 0 : me.height, 1)) + "[m]/" + S(o.roundPrecision((J = (ye = (ue = a.meteo) == null ? void 0 : ue.wave) == null ? void 0 : ye.swell) == null ? void 0 : J.period, 1)) + "[s]", 1)
|
|
4891
4888
|
]),
|
|
4892
4889
|
l("div", Tr, [
|
|
4893
|
-
|
|
4894
|
-
l("span", null, S(((Y = (fe = (q = a.meteo) == null ? void 0 : q.wave) == null ? void 0 : fe.sig) == null ? void 0 : Y.direction) || "-") + "/" + S(o.roundPrecision((ge = (F = (
|
|
4890
|
+
Er,
|
|
4891
|
+
l("span", null, S(((Y = (fe = (q = a.meteo) == null ? void 0 : q.wave) == null ? void 0 : fe.sig) == null ? void 0 : Y.direction) || "-") + "/" + S(o.roundPrecision((ge = (F = (I = a.meteo) == null ? void 0 : I.wave) == null ? void 0 : F.sig) == null ? void 0 : ge.height, 1)) + "[m]/" + S(o.roundPrecision((ae = (be = (Q = a.meteo) == null ? void 0 : Q.wave) == null ? void 0 : be.sig) == null ? void 0 : ae.period, 1)) + "[s]", 1)
|
|
4895
4892
|
]),
|
|
4896
|
-
l("div",
|
|
4893
|
+
l("div", Ir, [
|
|
4897
4894
|
Rr,
|
|
4898
4895
|
l("span", null, S(((re = (ie = a.meteo) == null ? void 0 : ie.current) == null ? void 0 : re.direction) || "-") + "/" + S(o.roundPrecision((ke = (Se = a.meteo) == null ? void 0 : Se.current) == null ? void 0 : ke.kts, 2)) + "[kts]", 1)
|
|
4899
4896
|
]),
|
|
4900
|
-
l("div",
|
|
4901
|
-
|
|
4897
|
+
l("div", Dr, [
|
|
4898
|
+
Ar,
|
|
4902
4899
|
l("span", null, S(o.roundPrecision((Pe = (ze = a.meteo) == null ? void 0 : ze.precip) == null ? void 0 : Pe.inter6h, 2)) + "[mm]", 1)
|
|
4903
4900
|
]),
|
|
4904
4901
|
l("div", Mr, [
|
|
@@ -4907,14 +4904,14 @@ function Ur(t, e, a, r, i, o) {
|
|
|
4907
4904
|
]),
|
|
4908
4905
|
l("div", Br, [
|
|
4909
4906
|
Nr,
|
|
4910
|
-
l("span", null, S(o.roundPrecision((
|
|
4907
|
+
l("span", null, S(o.roundPrecision((Ee = a.meteo) == null ? void 0 : Ee.temp, 0)) + "[°C]", 1)
|
|
4911
4908
|
]),
|
|
4912
4909
|
l("div", Wr, [
|
|
4913
4910
|
Or,
|
|
4914
|
-
l("span", null, S(o.roundPrecision((
|
|
4911
|
+
l("span", null, S(o.roundPrecision((Ie = a.meteo) == null ? void 0 : Ie.waterTemp, 2)) + "[°C]", 1)
|
|
4915
4912
|
])
|
|
4916
4913
|
]),
|
|
4917
|
-
t.$attrs.permission & i.helper.LEVEL.Prime ? (w(), L("div", jr, Vr)) :
|
|
4914
|
+
t.$attrs.permission & i.helper.LEVEL.Prime ? (w(), L("div", jr, Vr)) : $("", !0)
|
|
4918
4915
|
])
|
|
4919
4916
|
], 512)), [
|
|
4920
4917
|
[Be, i.showMeteo]
|
|
@@ -5013,7 +5010,7 @@ const Gr = /* @__PURE__ */ T(fr, [["render", Ur], ["__scopeId", "data-v-fb5b12d6
|
|
|
5013
5010
|
function Zr(t, e, a, r, i, o) {
|
|
5014
5011
|
return w(), L("div");
|
|
5015
5012
|
}
|
|
5016
|
-
const
|
|
5013
|
+
const Jr = /* @__PURE__ */ T(Hr, [["render", Zr]]), Xr = {
|
|
5017
5014
|
name: "IdmGmdssArea",
|
|
5018
5015
|
props: {
|
|
5019
5016
|
map: {
|
|
@@ -5136,7 +5133,7 @@ const Xr = /* @__PURE__ */ T(Hr, [["render", Zr]]), Jr = {
|
|
|
5136
5133
|
function qr(t, e, a, r, i, o) {
|
|
5137
5134
|
return w(), L("div");
|
|
5138
5135
|
}
|
|
5139
|
-
const Yr = /* @__PURE__ */ T(
|
|
5136
|
+
const Yr = /* @__PURE__ */ T(Xr, [["render", qr]]), Qr = {
|
|
5140
5137
|
name: "IdmEcaZone",
|
|
5141
5138
|
props: {
|
|
5142
5139
|
map: {
|
|
@@ -5919,10 +5916,10 @@ const Po = /* @__PURE__ */ T(ko, [["render", zo]]), To = {
|
|
|
5919
5916
|
}
|
|
5920
5917
|
}
|
|
5921
5918
|
};
|
|
5922
|
-
function
|
|
5919
|
+
function Eo(t, e, a, r, i, o) {
|
|
5923
5920
|
return w(), L("div");
|
|
5924
5921
|
}
|
|
5925
|
-
const
|
|
5922
|
+
const Io = /* @__PURE__ */ T(To, [["render", Eo]]), Ro = {
|
|
5926
5923
|
name: "IdmTerminator",
|
|
5927
5924
|
props: {
|
|
5928
5925
|
map: {
|
|
@@ -5971,10 +5968,10 @@ const Eo = /* @__PURE__ */ T(To, [["render", Io]]), Ro = {
|
|
|
5971
5968
|
}
|
|
5972
5969
|
}
|
|
5973
5970
|
};
|
|
5974
|
-
function
|
|
5971
|
+
function Do(t, e, a, r, i, o) {
|
|
5975
5972
|
return w(), L("div");
|
|
5976
5973
|
}
|
|
5977
|
-
const
|
|
5974
|
+
const Ao = /* @__PURE__ */ T(Ro, [["render", Do]]);
|
|
5978
5975
|
const Mo = {
|
|
5979
5976
|
name: "IdmLatLng",
|
|
5980
5977
|
props: {
|
|
@@ -6140,7 +6137,7 @@ function No(t, e, a, r, i, o) {
|
|
|
6140
6137
|
l("span", null, S(i.lngLat.lat.pretty), 1),
|
|
6141
6138
|
Bo,
|
|
6142
6139
|
l("span", null, S(i.lngLat.lng.pretty), 1)
|
|
6143
|
-
], 4)) :
|
|
6140
|
+
], 4)) : $("", !0);
|
|
6144
6141
|
}
|
|
6145
6142
|
const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052"]]), Wo = {
|
|
6146
6143
|
name: "IdmMeasure",
|
|
@@ -6488,10 +6485,10 @@ const Fo = {
|
|
|
6488
6485
|
methods: {}
|
|
6489
6486
|
}, it = (t) => (U("data-v-ab627b83"), t = t(), G(), t), Vo = { key: 0 }, Uo = { class: "bar-item" }, Go = /* @__PURE__ */ it(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), Ho = [
|
|
6490
6487
|
Go
|
|
6491
|
-
], Zo = /* @__PURE__ */ it(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)),
|
|
6488
|
+
], Zo = /* @__PURE__ */ it(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), Jo = [
|
|
6492
6489
|
Zo
|
|
6493
6490
|
];
|
|
6494
|
-
function
|
|
6491
|
+
function Xo(t, e, a, r, i, o) {
|
|
6495
6492
|
return a.enabled && a.permission & i.helper.LEVEL.Supper ? (w(), L("div", Vo, [
|
|
6496
6493
|
l("div", {
|
|
6497
6494
|
class: "menu-bar-box",
|
|
@@ -6505,12 +6502,12 @@ function Jo(t, e, a, r, i, o) {
|
|
|
6505
6502
|
l("div", {
|
|
6506
6503
|
class: M(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
6507
6504
|
onClick: e[1] || (e[1] = (n) => i.vendor = "i4")
|
|
6508
|
-
},
|
|
6505
|
+
}, Jo, 2)
|
|
6509
6506
|
])
|
|
6510
6507
|
], 4)
|
|
6511
|
-
])) :
|
|
6508
|
+
])) : $("", !0);
|
|
6512
6509
|
}
|
|
6513
|
-
const qo = /* @__PURE__ */ T(Fo, [["render",
|
|
6510
|
+
const qo = /* @__PURE__ */ T(Fo, [["render", Xo], ["__scopeId", "data-v-ab627b83"]]);
|
|
6514
6511
|
const Yo = {
|
|
6515
6512
|
name: "IdmGLV2",
|
|
6516
6513
|
components: {
|
|
@@ -6518,19 +6515,19 @@ const Yo = {
|
|
|
6518
6515
|
IdmWindBarb: Yt,
|
|
6519
6516
|
IdmWindParticle: da,
|
|
6520
6517
|
IdmCurrents: va,
|
|
6521
|
-
IdmCurrentParticle:
|
|
6522
|
-
IdmSigWave:
|
|
6518
|
+
IdmCurrentParticle: Ia,
|
|
6519
|
+
IdmSigWave: Aa,
|
|
6523
6520
|
IdmSwell: Ba,
|
|
6524
6521
|
IdmPrmsl: Oa,
|
|
6525
6522
|
// IdmIceEdge,
|
|
6526
6523
|
IdmIceberg: Va,
|
|
6527
6524
|
IdmTropicals: tt,
|
|
6528
6525
|
IdmPrecip3h: xi,
|
|
6529
|
-
IdmVisibility:
|
|
6526
|
+
IdmVisibility: Ai,
|
|
6530
6527
|
IdmWaterTemp: Gi,
|
|
6531
6528
|
IdmTemp: rr,
|
|
6532
6529
|
IdmArctic: yr,
|
|
6533
|
-
IdmWarZone:
|
|
6530
|
+
IdmWarZone: Jr,
|
|
6534
6531
|
IdmGmdssArea: Yr,
|
|
6535
6532
|
IdmEcaZone: eo,
|
|
6536
6533
|
IdmAlertZone: oo,
|
|
@@ -6538,8 +6535,8 @@ const Yo = {
|
|
|
6538
6535
|
IdmLoadLine: Lo,
|
|
6539
6536
|
IdmTimezone: So,
|
|
6540
6537
|
IdmVRA: Po,
|
|
6541
|
-
IdmSpecialArea:
|
|
6542
|
-
IdmTerminator:
|
|
6538
|
+
IdmSpecialArea: Io,
|
|
6539
|
+
IdmTerminator: Ao,
|
|
6543
6540
|
IdmLatLng: at,
|
|
6544
6541
|
IdmMeasure: jo,
|
|
6545
6542
|
IdmPoint: Gr,
|
|
@@ -6575,6 +6572,7 @@ const Yo = {
|
|
|
6575
6572
|
meteo: void 0,
|
|
6576
6573
|
source: "",
|
|
6577
6574
|
gateway: "https://cbe.idmwx.com",
|
|
6575
|
+
mapProjection: "mercator",
|
|
6578
6576
|
zoom: 6,
|
|
6579
6577
|
viewport: void 0,
|
|
6580
6578
|
particleFactor: void 0,
|
|
@@ -6612,10 +6610,10 @@ const Yo = {
|
|
|
6612
6610
|
},
|
|
6613
6611
|
activeWeatherLayers: {
|
|
6614
6612
|
handler() {
|
|
6615
|
-
var t, e, a, r, i, o, n, s, c, h, d, p, f, m, g;
|
|
6613
|
+
var t, e, a, r, i, o, n, s, c, h, d, p, f, m, g, y, u, v;
|
|
6616
6614
|
if (!this.map)
|
|
6617
6615
|
return !1;
|
|
6618
|
-
this.activeWeatherLayers.length > 0 ? (console.log(3333, this.activeWeatherLayers.length), (e = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (a = this.map) == null ? void 0 : a.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (
|
|
6616
|
+
this.activeWeatherLayers.length > 0 ? (console.log(3333, this.activeWeatherLayers.length), (e = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (a = this.map) == null ? void 0 : a.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((c = this.map) == null || c.moveLayer((s = this.viewport) == null ? void 0 : s.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) && ((p = this.map) != null && p.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((m = this.map) == null || m.moveLayer((f = this.viewport) == null ? void 0 : f.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : (console.log(444, this.activeWeatherLayers.length), (y = (g = this.map) == null ? void 0 : g.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible"), (v = (u = this.map) == null ? void 0 : u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none"));
|
|
6619
6617
|
},
|
|
6620
6618
|
immediate: !0
|
|
6621
6619
|
}
|
|
@@ -6692,16 +6690,16 @@ const Yo = {
|
|
|
6692
6690
|
key: _
|
|
6693
6691
|
},
|
|
6694
6692
|
responseType: /\.(jpg|png)$/.test(b[_]) ? "blob" : "json"
|
|
6695
|
-
}).catch((
|
|
6696
|
-
console.log(`[${_}] fetch layer error: ${
|
|
6693
|
+
}).catch((D) => {
|
|
6694
|
+
console.log(`[${_}] fetch layer error: ${D}`);
|
|
6697
6695
|
})
|
|
6698
6696
|
);
|
|
6699
6697
|
const k = await Promise.all(x);
|
|
6700
6698
|
this.weatherLayers = {}, k.map((_) => {
|
|
6701
|
-
var
|
|
6702
|
-
const
|
|
6703
|
-
|
|
6704
|
-
raw:
|
|
6699
|
+
var B, W, O, H;
|
|
6700
|
+
const D = ((B = _ == null ? void 0 : _.data) == null ? void 0 : B.data) || (_ == null ? void 0 : _.data), A = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
|
|
6701
|
+
A && D && (this.weatherLayers[A] = {
|
|
6702
|
+
raw: D,
|
|
6705
6703
|
type: ((H = _ == null ? void 0 : _.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
|
|
6706
6704
|
etime: this.ts
|
|
6707
6705
|
});
|
|
@@ -6711,10 +6709,10 @@ const Yo = {
|
|
|
6711
6709
|
key: "tropicals"
|
|
6712
6710
|
}
|
|
6713
6711
|
}).then((_) => {
|
|
6714
|
-
var
|
|
6715
|
-
const
|
|
6716
|
-
this.weatherLayers[
|
|
6717
|
-
data:
|
|
6712
|
+
var B, W, O;
|
|
6713
|
+
const D = et.convert2Geojson(((B = _ == null ? void 0 : _.data) == null ? void 0 : B.data) || (_ == null ? void 0 : _.data)), A = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
|
|
6714
|
+
this.weatherLayers[A] = {
|
|
6715
|
+
data: D,
|
|
6718
6716
|
active: !0,
|
|
6719
6717
|
cached: !1,
|
|
6720
6718
|
type: "json",
|
|
@@ -7105,7 +7103,8 @@ const Yo = {
|
|
|
7105
7103
|
});
|
|
7106
7104
|
},
|
|
7107
7105
|
handle3dToggle(t) {
|
|
7108
|
-
|
|
7106
|
+
var e, a, r, i, o, n, s, c, h, d, p, f, m, g, y, u, v, b, x, k;
|
|
7107
|
+
t ? (this.map.setProjection("globe"), this.mapProjection = "globe", (a = this.map) != null && a.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)), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((d = this.map) == null || d.moveLayer((h = this.viewport) == null ? void 0 : h.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(), (f = this.map) != null && f.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((m = this.map) != null && m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((y = this.map) == null || y.moveLayer((g = this.viewport) == null ? void 0 : g.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((k = this.map) == null || k.moveLayer((x = this.viewport) == null ? void 0 : x.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
7109
7108
|
},
|
|
7110
7109
|
handleParticle(t) {
|
|
7111
7110
|
this.particleFactor = t, this.fetchWeatherLayers({ tropicals: !1 });
|
|
@@ -7116,13 +7115,14 @@ const Yo = {
|
|
|
7116
7115
|
className: "map-gl-home"
|
|
7117
7116
|
};
|
|
7118
7117
|
function Ko(t, e, a, r, i, o) {
|
|
7119
|
-
var q, fe, Y,
|
|
7120
|
-
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), f = z("IdmTropicals"), m = z("IdmCurrents"), g = z("IdmCurrentParticle"), y = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), x = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"),
|
|
7118
|
+
var q, fe, Y, I, F, ge, Q, be, ae, ie, re, Se, ke, ze, Pe, Te, Ee, Ie, We, He, Ze, Je, Xe, qe, Ye, Qe;
|
|
7119
|
+
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), f = z("IdmTropicals"), m = z("IdmCurrents"), g = z("IdmCurrentParticle"), y = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), x = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), B = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), H = z("IdmLoadLine"), he = z("IdmTimezone"), de = z("IdmVRA"), pe = z("IdmSpecialArea"), me = z("IdmTerminator"), ue = z("IdmLatLng"), ye = z("IdmMeasure"), J = z("IdmPoint");
|
|
7121
7120
|
return a.map ? (w(), L("div", Qo, [
|
|
7122
|
-
P(n,
|
|
7121
|
+
P(n, E({
|
|
7123
7122
|
ref: "layer",
|
|
7124
7123
|
map: a.map,
|
|
7125
|
-
"toggle-version": i.toggleVersion
|
|
7124
|
+
"toggle-version": i.toggleVersion,
|
|
7125
|
+
"map-projection": i.mapProjection
|
|
7126
7126
|
}, t.$attrs, {
|
|
7127
7127
|
onWeather: o.handleWeatherLayerChange,
|
|
7128
7128
|
onOther: o.handleOtherLayerChange,
|
|
@@ -7131,8 +7131,8 @@ function Ko(t, e, a, r, i, o) {
|
|
|
7131
7131
|
onPoint: e[2] || (e[2] = (K) => i.showPoint = K),
|
|
7132
7132
|
on3d: o.handle3dToggle,
|
|
7133
7133
|
onToggleVersion: e[3] || (e[3] = (K) => i.toggleVersion = K)
|
|
7134
|
-
}), null, 16, ["map", "toggle-version", "onWeather", "onOther", "on3d"]),
|
|
7135
|
-
P(s,
|
|
7134
|
+
}), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d"]),
|
|
7135
|
+
P(s, E({
|
|
7136
7136
|
map: a.map,
|
|
7137
7137
|
token: a.token,
|
|
7138
7138
|
enabled: (q = i.otherLayers) == null ? void 0 : q.enc,
|
|
@@ -7140,51 +7140,53 @@ function Ko(t, e, a, r, i, o) {
|
|
|
7140
7140
|
}, t.$attrs, {
|
|
7141
7141
|
onEnc: e[4] || (e[4] = (K) => i.enc = K)
|
|
7142
7142
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
7143
|
-
P(c,
|
|
7143
|
+
P(c, E({
|
|
7144
7144
|
map: a.map,
|
|
7145
7145
|
"sig-wave": (fe = i.weatherLayers) == null ? void 0 : fe["sig-wave-height"],
|
|
7146
7146
|
"before-layer": a.beforeLayer
|
|
7147
7147
|
}, t.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
|
|
7148
|
-
P(h,
|
|
7148
|
+
P(h, E({
|
|
7149
7149
|
map: a.map,
|
|
7150
7150
|
swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
|
|
7151
7151
|
"before-layer": a.beforeLayer
|
|
7152
7152
|
}, t.$attrs), null, 16, ["map", "swell", "before-layer"]),
|
|
7153
|
-
P(d,
|
|
7153
|
+
P(d, E({
|
|
7154
7154
|
map: a.map,
|
|
7155
|
-
prmsl: (
|
|
7155
|
+
prmsl: (I = i.weatherLayers) == null ? void 0 : I.prmsl,
|
|
7156
7156
|
"before-layer": a.beforeLayer,
|
|
7157
7157
|
"active-weather-layers": i.activeWeatherLayers
|
|
7158
7158
|
}, t.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
7159
|
-
P(p,
|
|
7159
|
+
P(p, E({
|
|
7160
7160
|
map: a.map,
|
|
7161
7161
|
iceberg: (F = i.weatherLayers) == null ? void 0 : F.iceberg,
|
|
7162
7162
|
"before-layer": a.beforeLayer
|
|
7163
7163
|
}, t.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
7164
|
-
P(f,
|
|
7164
|
+
P(f, E({
|
|
7165
7165
|
map: a.map,
|
|
7166
7166
|
date: a.ts,
|
|
7167
7167
|
tropicals: (ge = i.weatherLayers) == null ? void 0 : ge.tropicals,
|
|
7168
7168
|
"before-layer": a.beforeLayer
|
|
7169
7169
|
}, t.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
7170
|
-
P(m,
|
|
7170
|
+
P(m, E({
|
|
7171
7171
|
map: a.map,
|
|
7172
|
+
"map-projection": i.mapProjection,
|
|
7172
7173
|
current: (Q = i.weatherLayers) == null ? void 0 : Q.current,
|
|
7173
7174
|
"before-layer": a.beforeLayer,
|
|
7174
7175
|
"show-particle": i.showCurrentParticle,
|
|
7175
7176
|
"margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
|
|
7176
7177
|
"toggle-version": i.toggleVersion,
|
|
7177
7178
|
"weather-layers": i.weatherLayers
|
|
7178
|
-
}, t.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
|
|
7179
|
-
P(g,
|
|
7179
|
+
}, t.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
|
|
7180
|
+
P(g, E({
|
|
7180
7181
|
viewport: i.viewport,
|
|
7181
7182
|
factor: (be = i.weatherLayers) == null ? void 0 : be["current-particle"],
|
|
7182
7183
|
"before-layer": a.beforeLayer,
|
|
7183
7184
|
"toggle-version": i.toggleVersion
|
|
7184
7185
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7185
|
-
P(y,
|
|
7186
|
+
P(y, E({
|
|
7186
7187
|
ref: "windBarb",
|
|
7187
7188
|
map: a.map,
|
|
7189
|
+
"map-projection": i.mapProjection,
|
|
7188
7190
|
wind: (ae = i.weatherLayers) == null ? void 0 : ae.wind,
|
|
7189
7191
|
current: (ie = i.weatherLayers) == null ? void 0 : ie.current,
|
|
7190
7192
|
"before-layer": a.beforeLayer,
|
|
@@ -7194,107 +7196,107 @@ function Ko(t, e, a, r, i, o) {
|
|
|
7194
7196
|
"toggle-version": i.toggleVersion,
|
|
7195
7197
|
"weather-layers": i.weatherLayers,
|
|
7196
7198
|
onParticle: o.handleParticle
|
|
7197
|
-
}), null, 16, ["map", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
|
|
7198
|
-
P(u,
|
|
7199
|
+
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
|
|
7200
|
+
P(u, E({
|
|
7199
7201
|
viewport: i.viewport,
|
|
7200
7202
|
factor: (re = i.weatherLayers) == null ? void 0 : re["wind-particle"],
|
|
7201
7203
|
"before-layer": a.beforeLayer,
|
|
7202
7204
|
"toggle-version": i.toggleVersion
|
|
7203
7205
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7204
|
-
P(v,
|
|
7206
|
+
P(v, E({
|
|
7205
7207
|
viewport: i.viewport,
|
|
7206
7208
|
factor: (Se = i.weatherLayers) == null ? void 0 : Se.precip3h,
|
|
7207
7209
|
"before-layer": a.beforeLayer,
|
|
7208
7210
|
"toggle-version": i.toggleVersion
|
|
7209
7211
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7210
|
-
P(b,
|
|
7212
|
+
P(b, E({
|
|
7211
7213
|
viewport: i.viewport,
|
|
7212
7214
|
factor: (ke = i.weatherLayers) == null ? void 0 : ke.visibility,
|
|
7213
7215
|
"before-layer": a.beforeLayer,
|
|
7214
7216
|
"toggle-version": i.toggleVersion
|
|
7215
7217
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7216
|
-
P(x,
|
|
7218
|
+
P(x, E({
|
|
7217
7219
|
viewport: i.viewport,
|
|
7218
7220
|
factor: (ze = i.weatherLayers) == null ? void 0 : ze["water-temp"],
|
|
7219
7221
|
"before-layer": a.beforeLayer,
|
|
7220
7222
|
"toggle-version": i.toggleVersion
|
|
7221
7223
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7222
|
-
P(k,
|
|
7224
|
+
P(k, E({
|
|
7223
7225
|
viewport: i.viewport,
|
|
7224
7226
|
factor: (Pe = i.weatherLayers) == null ? void 0 : Pe.temp,
|
|
7225
7227
|
"before-layer": a.beforeLayer,
|
|
7226
7228
|
"toggle-version": i.toggleVersion
|
|
7227
7229
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7228
|
-
P(_,
|
|
7230
|
+
P(_, E({
|
|
7229
7231
|
viewport: i.viewport,
|
|
7230
7232
|
factor: (Te = i.weatherLayers) == null ? void 0 : Te.arctic,
|
|
7231
7233
|
"before-layer": a.beforeLayer,
|
|
7232
7234
|
"toggle-version": i.toggleVersion
|
|
7233
7235
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7234
|
-
P(
|
|
7236
|
+
P(D, E({
|
|
7235
7237
|
map: a.map,
|
|
7236
|
-
zone: (
|
|
7238
|
+
zone: (Ee = i.otherLayers) == null ? void 0 : Ee["war-zones"],
|
|
7237
7239
|
"before-layer": a.beforeLayer
|
|
7238
7240
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7239
|
-
P(
|
|
7241
|
+
P(A, E({
|
|
7240
7242
|
map: a.map,
|
|
7241
|
-
area: (
|
|
7243
|
+
area: (Ie = i.otherLayers) == null ? void 0 : Ie["gmdss-areas"],
|
|
7242
7244
|
"before-layer": a.beforeLayer
|
|
7243
7245
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7244
|
-
P(
|
|
7246
|
+
P(B, E({
|
|
7245
7247
|
map: a.map,
|
|
7246
7248
|
zone: (We = i.otherLayers) == null ? void 0 : We["eca-zones"],
|
|
7247
7249
|
"before-layer": a.beforeLayer
|
|
7248
7250
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7249
|
-
P(W,
|
|
7251
|
+
P(W, E({
|
|
7250
7252
|
map: a.map,
|
|
7251
7253
|
zone: (He = i.otherLayers) == null ? void 0 : He["alert-zones"],
|
|
7252
7254
|
"before-layer": a.beforeLayer
|
|
7253
7255
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7254
|
-
P(O,
|
|
7256
|
+
P(O, E({
|
|
7255
7257
|
map: a.map,
|
|
7256
7258
|
port: (Ze = i.otherLayers) == null ? void 0 : Ze.ports,
|
|
7257
7259
|
"before-layer": a.beforeLayer
|
|
7258
7260
|
}, t.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
7259
|
-
P(H,
|
|
7261
|
+
P(H, E({
|
|
7260
7262
|
map: a.map,
|
|
7261
|
-
line: (
|
|
7263
|
+
line: (Je = i.otherLayers) == null ? void 0 : Je["load-lines"],
|
|
7262
7264
|
"before-layer": a.beforeLayer
|
|
7263
7265
|
}, t.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
7264
|
-
P(he,
|
|
7266
|
+
P(he, E({
|
|
7265
7267
|
map: a.map,
|
|
7266
|
-
zone: (
|
|
7268
|
+
zone: (Xe = i.otherLayers) == null ? void 0 : Xe["time-zones"],
|
|
7267
7269
|
"before-layer": a.beforeLayer
|
|
7268
7270
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7269
|
-
P(de,
|
|
7271
|
+
P(de, E({
|
|
7270
7272
|
map: a.map,
|
|
7271
7273
|
area: (qe = i.otherLayers) == null ? void 0 : qe["voluntary-reporting-area"],
|
|
7272
7274
|
"before-layer": a.beforeLayer
|
|
7273
7275
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7274
|
-
P(pe,
|
|
7276
|
+
P(pe, E({
|
|
7275
7277
|
map: a.map,
|
|
7276
7278
|
area: (Ye = i.otherLayers) == null ? void 0 : Ye["special-area"],
|
|
7277
7279
|
"before-layer": a.beforeLayer
|
|
7278
7280
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7279
|
-
P(me,
|
|
7281
|
+
P(me, E({
|
|
7280
7282
|
map: a.map,
|
|
7281
7283
|
area: (Qe = i.otherLayers) == null ? void 0 : Qe["day-night"]
|
|
7282
7284
|
}, t.$attrs), null, 16, ["map", "area"]),
|
|
7283
|
-
P(ue,
|
|
7285
|
+
P(ue, E({
|
|
7284
7286
|
map: a.map,
|
|
7285
7287
|
show: i.showCoord,
|
|
7286
7288
|
"toggle-version": i.toggleVersion
|
|
7287
7289
|
}, t.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
7288
|
-
P(ye,
|
|
7290
|
+
P(ye, E({
|
|
7289
7291
|
map: a.map,
|
|
7290
7292
|
show: i.showMeasure
|
|
7291
7293
|
}, t.$attrs), null, 16, ["map", "show"]),
|
|
7292
|
-
P(
|
|
7294
|
+
P(J, E({
|
|
7293
7295
|
map: a.map,
|
|
7294
7296
|
show: i.showPoint,
|
|
7295
7297
|
meteo: i.meteo
|
|
7296
7298
|
}, t.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
|
|
7297
|
-
])) :
|
|
7299
|
+
])) : $("", !0);
|
|
7298
7300
|
}
|
|
7299
7301
|
const es = /* @__PURE__ */ T(Yo, [["render", Ko]]), cs = {
|
|
7300
7302
|
install(t) {
|
|
@@ -7310,5 +7312,5 @@ export {
|
|
|
7310
7312
|
tt as TropicalGL,
|
|
7311
7313
|
Ue as Viewport,
|
|
7312
7314
|
ve as WebGL,
|
|
7313
|
-
|
|
7315
|
+
N as WebGLSchema
|
|
7314
7316
|
};
|