@idmwx/idmui-gl3 3.6.7 → 3.6.9
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 +522 -550
- package/dist/index.umd.cjs +11 -11
- 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 +2 -2
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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
|
-
var
|
|
4
|
-
import { LayerHelper as
|
|
5
|
-
import { resolveComponent as z, openBlock as
|
|
3
|
+
var R = (t, e, a) => (ot(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
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 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";
|
|
9
|
-
import
|
|
9
|
+
import se from "mapbox-gl";
|
|
10
10
|
import { TropicalHelper as et } from "@idm-plugin/geo";
|
|
11
|
-
import
|
|
11
|
+
import oe from "axios";
|
|
12
12
|
const T = (t, e) => {
|
|
13
13
|
const a = t.__vccOpts || t;
|
|
14
14
|
for (const [r, i] of e)
|
|
@@ -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
|
|
@@ -46,8 +49,8 @@ const T = (t, e) => {
|
|
|
46
49
|
autoActive: !0,
|
|
47
50
|
otherLayers: [],
|
|
48
51
|
layers: {
|
|
49
|
-
weather: [...
|
|
50
|
-
other: [...
|
|
52
|
+
weather: [...Ve.WEATHER_LAYERS],
|
|
53
|
+
other: [...Ve.OTHER_LAYERS]
|
|
51
54
|
},
|
|
52
55
|
weatherLayersCache: "weatherLayersCache",
|
|
53
56
|
autoActiveCache: "autoActiveCache",
|
|
@@ -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: ["wind", "current", "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) => (
|
|
153
|
+
}, Z = (t) => (U("data-v-fc1c05ef"), 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,10 +165,10 @@ 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
|
-
return
|
|
171
|
+
return w(), L("div", dt, [
|
|
163
172
|
l("div", {
|
|
164
173
|
class: "menu-bar-box",
|
|
165
174
|
style: j({ top: a.top + 10 + "px", right: i.right + "px" })
|
|
@@ -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
|
-
(
|
|
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
|
-
(
|
|
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
|
-
(
|
|
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-fc1c05ef"]]);
|
|
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,55 +451,56 @@ 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
|
};
|
|
457
461
|
function qt(t, e, a, r, i, o) {
|
|
458
462
|
var n;
|
|
459
|
-
return (n = a.wind) != null && n.active ? (
|
|
463
|
+
return (n = a.wind) != null && n.active ? (w(), L("div", Gt, [
|
|
460
464
|
l("div", {
|
|
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
|
}, [
|
|
468
|
-
a.showParticle ? (
|
|
473
|
+
a.showParticle ? (w(), L("i", Ht, "")) : (w(), L("i", Zt, "")),
|
|
469
474
|
l("span", {
|
|
470
475
|
class: M(a.showParticle ? "active" : "")
|
|
471
476
|
}, "Wind Particles", 2)
|
|
472
|
-
]),
|
|
473
|
-
a.showParticle ? (
|
|
474
|
-
key:
|
|
477
|
+
])) : $("", !0),
|
|
478
|
+
a.showParticle ? (w(), L("div", {
|
|
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 ? (
|
|
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-
|
|
488
|
-
class
|
|
492
|
+
const Yt = /* @__PURE__ */ T(Ut, [["render", qt], ["__scopeId", "data-v-f409772c"]]);
|
|
493
|
+
class Ue {
|
|
489
494
|
constructor(e) {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
495
|
+
R(this, "map");
|
|
496
|
+
R(this, "mercator");
|
|
497
|
+
R(this, "rampColorLayer");
|
|
498
|
+
R(this, "rampColorSource");
|
|
499
|
+
R(this, "particleLayer");
|
|
500
|
+
R(this, "particleSource");
|
|
501
|
+
R(this, "rampColorCanvas");
|
|
502
|
+
R(this, "particleCanvas");
|
|
503
|
+
R(this, "ratio");
|
|
499
504
|
this.map = e, this.mercator = new ct(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
|
|
500
505
|
}
|
|
501
506
|
/**
|
|
@@ -530,8 +535,8 @@ class Ge {
|
|
|
530
535
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
531
536
|
*/
|
|
532
537
|
getBoundPixel() {
|
|
533
|
-
const e = this.map.getBounds(), a = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, n] = this.convertNLng(r[0]), [s, c] = this.convertNLng(i[0]), [h, d] = this.mercator.px([o, r[1]], a), [p,
|
|
534
|
-
return [p,
|
|
538
|
+
const e = this.map.getBounds(), a = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, n] = this.convertNLng(r[0]), [s, c] = this.convertNLng(i[0]), [h, d] = this.mercator.px([o, r[1]], a), [p, f] = this.mercator.px([s, i[1]], a), m = Math.round(this.mercator.size * Math.pow(2, a) * (n + c));
|
|
539
|
+
return [p, f, h + m, d];
|
|
535
540
|
}
|
|
536
541
|
/**
|
|
537
542
|
* [视窗边界像素宽度]
|
|
@@ -702,15 +707,15 @@ class ve {
|
|
|
702
707
|
if (a && r) {
|
|
703
708
|
e.resize(), a == null || a.viewport(0, 0, (c = a == null ? void 0 : a.canvas) == null ? void 0 : c.width, (h = a == null ? void 0 : a.canvas) == null ? void 0 : h.height), a.clearColor(0, 0, 0, 0), a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT);
|
|
704
709
|
try {
|
|
705
|
-
const d = a.getUniformLocation(r, "u_resolution"), p = a.getUniformLocation(r, "u_image"),
|
|
706
|
-
if (a.useProgram(r), a.uniform2f(d, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, i), a.uniform1i(p, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, o), a.uniform1i(
|
|
710
|
+
const d = a.getUniformLocation(r, "u_resolution"), p = a.getUniformLocation(r, "u_image"), f = a.getUniformLocation(r, "u_color");
|
|
711
|
+
if (a.useProgram(r), a.uniform2f(d, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, i), a.uniform1i(p, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, o), a.uniform1i(f, 1), s != null && s.uvRange && (s != null && s.sRange)) {
|
|
707
712
|
const u = a.getUniformLocation(r, "u_range_u_v"), v = a.getUniformLocation(r, "u_range_s");
|
|
708
713
|
a.uniform2f(u, s.uvRange[0], s.uvRange[1]), a.uniform2f(v, s.sRange[0], s.sRange[1]);
|
|
709
714
|
}
|
|
710
|
-
const m = e.getBoundPixel(), g = e.map.getZoom() + 1,
|
|
711
|
-
for (const u of
|
|
712
|
-
const v = (u[0] - m[0]) * e.ratio, b = (u[1] - m[3]) * e.ratio,
|
|
713
|
-
a.bindBuffer(a.ARRAY_BUFFER, n), a.bufferData(a.ARRAY_BUFFER,
|
|
715
|
+
const m = e.getBoundPixel(), g = e.map.getZoom() + 1, y = e.getWorldCopy(m, g);
|
|
716
|
+
for (const u of y) {
|
|
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
|
-
|
|
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 @@ A(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
|
-
|
|
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 @@ A(B, "uvFragmentSchema", `
|
|
|
795
800
|
|
|
796
801
|
gl_FragColor = color;
|
|
797
802
|
}`), // 类如浪、气压等单变量片元渲染
|
|
798
|
-
|
|
803
|
+
R(N, "fragmentSchema", `
|
|
799
804
|
precision mediump float;
|
|
800
805
|
uniform sampler2D u_image; // 灰度
|
|
801
806
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -808,7 +813,7 @@ A(B, "fragmentSchema", `
|
|
|
808
813
|
}`);
|
|
809
814
|
class V {
|
|
810
815
|
}
|
|
811
|
-
|
|
816
|
+
R(V, "vertexSchema", `
|
|
812
817
|
precision mediump float;
|
|
813
818
|
|
|
814
819
|
attribute float a_index; // 索引
|
|
@@ -832,7 +837,7 @@ A(V, "vertexSchema", `
|
|
|
832
837
|
gl_PointSize = 1.0;
|
|
833
838
|
// gl_PointSize = u_point;
|
|
834
839
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
835
|
-
}`),
|
|
840
|
+
}`), R(V, "fragmentSchema", `
|
|
836
841
|
precision mediump float;
|
|
837
842
|
|
|
838
843
|
uniform sampler2D u_factor;
|
|
@@ -854,7 +859,7 @@ A(V, "vertexSchema", `
|
|
|
854
859
|
|
|
855
860
|
float f = 1.0 - uv.b;
|
|
856
861
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
857
|
-
}`),
|
|
862
|
+
}`), R(V, "quadVertSchema", `
|
|
858
863
|
precision mediump float;
|
|
859
864
|
|
|
860
865
|
attribute vec2 a_pos;
|
|
@@ -864,7 +869,7 @@ A(V, "vertexSchema", `
|
|
|
864
869
|
void main() {
|
|
865
870
|
v_tex_pos = a_pos;
|
|
866
871
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
867
|
-
}`),
|
|
872
|
+
}`), R(V, "screenFragmentSchema", `
|
|
868
873
|
precision mediump float;
|
|
869
874
|
|
|
870
875
|
uniform sampler2D u_screen;
|
|
@@ -876,7 +881,7 @@ A(V, "vertexSchema", `
|
|
|
876
881
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
877
882
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
878
883
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
879
|
-
}`),
|
|
884
|
+
}`), R(V, "updateFragmentSchema", `
|
|
880
885
|
precision mediump float;
|
|
881
886
|
|
|
882
887
|
uniform sampler2D u_particles;
|
|
@@ -957,12 +962,12 @@ A(V, "vertexSchema", `
|
|
|
957
962
|
}`);
|
|
958
963
|
class Qt {
|
|
959
964
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
965
|
+
R(this, "token");
|
|
966
|
+
R(this, "mapboxCustomer");
|
|
967
|
+
R(this, "i4");
|
|
968
|
+
R(this, "hi");
|
|
969
|
+
R(this, "td");
|
|
970
|
+
R(this, "windy");
|
|
966
971
|
this.token = e, this.mapboxCustomer = {
|
|
967
972
|
source: this.initialOnlineStyle().sources.composite,
|
|
968
973
|
layers: {
|
|
@@ -2566,7 +2571,7 @@ const Kt = {
|
|
|
2566
2571
|
type: Object
|
|
2567
2572
|
},
|
|
2568
2573
|
viewport: {
|
|
2569
|
-
type:
|
|
2574
|
+
type: Ue
|
|
2570
2575
|
},
|
|
2571
2576
|
bottom: {
|
|
2572
2577
|
type: String,
|
|
@@ -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
|
-
},
|
|
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,
|
|
@@ -2733,14 +2738,14 @@ const Kt = {
|
|
|
2733
2738
|
];
|
|
2734
2739
|
function ha(t, e, a, r, i, o) {
|
|
2735
2740
|
var n;
|
|
2736
|
-
return (n = a.factor) != null && n.active ? (
|
|
2741
|
+
return (n = a.factor) != null && n.active ? (w(), L("div", ea, [
|
|
2737
2742
|
l("div", {
|
|
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
|
|
@@ -2921,35 +2921,36 @@ const pa = {
|
|
|
2921
2921
|
};
|
|
2922
2922
|
function ba(t, e, a, r, i, o) {
|
|
2923
2923
|
var n;
|
|
2924
|
-
return (n = a.current) != null && n.active ? (
|
|
2924
|
+
return (n = a.current) != null && n.active ? (w(), L("div", ma, [
|
|
2925
2925
|
l("div", {
|
|
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
|
}, [
|
|
2933
|
-
a.showParticle ? (
|
|
2934
|
+
a.showParticle ? (w(), L("i", ua, "")) : (w(), L("i", ya, "")),
|
|
2934
2935
|
l("span", {
|
|
2935
2936
|
class: M(a.showParticle ? "active" : "")
|
|
2936
2937
|
}, "Current Particles", 2)
|
|
2937
|
-
]),
|
|
2938
|
-
a.showParticle ? (
|
|
2939
|
-
key:
|
|
2938
|
+
])) : $("", !0),
|
|
2939
|
+
a.showParticle ? (w(), L("div", {
|
|
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)
|
|
2943
2944
|
}, [
|
|
2944
|
-
i.showJson ? (
|
|
2945
|
+
i.showJson ? (w(), L("i", fa, "")) : (w(), L("i", ga, "")),
|
|
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: {
|
|
@@ -2957,12 +2958,8 @@ const _a = {
|
|
|
2957
2958
|
type: Object
|
|
2958
2959
|
},
|
|
2959
2960
|
viewport: {
|
|
2960
|
-
type:
|
|
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) => (
|
|
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
|
-
return (n = a.factor) != null && n.active ? (
|
|
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
|
|
3244
|
-
return
|
|
3240
|
+
function Da(t, e, a, r, i, o) {
|
|
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: {
|
|
@@ -3382,7 +3379,7 @@ const Da = /* @__PURE__ */ T(Ra, [["render", Aa]]), Ma = {
|
|
|
3382
3379
|
}
|
|
3383
3380
|
};
|
|
3384
3381
|
function $a(t, e, a, r, i, o) {
|
|
3385
|
-
return
|
|
3382
|
+
return w(), L("div");
|
|
3386
3383
|
}
|
|
3387
3384
|
const Ba = /* @__PURE__ */ T(Ma, [["render", $a]]), Na = {
|
|
3388
3385
|
name: "IdmPrmsl",
|
|
@@ -3513,7 +3510,7 @@ const Ba = /* @__PURE__ */ T(Ma, [["render", $a]]), Na = {
|
|
|
3513
3510
|
}
|
|
3514
3511
|
};
|
|
3515
3512
|
function Wa(t, e, a, r, i, o) {
|
|
3516
|
-
return
|
|
3513
|
+
return w(), L("div");
|
|
3517
3514
|
}
|
|
3518
3515
|
const Oa = /* @__PURE__ */ T(Na, [["render", Wa]]), ja = {
|
|
3519
3516
|
name: "IdmIceberg",
|
|
@@ -3573,7 +3570,7 @@ const Oa = /* @__PURE__ */ T(Na, [["render", Wa]]), ja = {
|
|
|
3573
3570
|
}
|
|
3574
3571
|
};
|
|
3575
3572
|
function Fa(t, e, a, r, i, o) {
|
|
3576
|
-
return
|
|
3573
|
+
return w(), L("div");
|
|
3577
3574
|
}
|
|
3578
3575
|
const Va = /* @__PURE__ */ T(ja, [["render", Fa]]);
|
|
3579
3576
|
const Ua = {
|
|
@@ -3651,19 +3648,19 @@ const Ua = {
|
|
|
3651
3648
|
var h;
|
|
3652
3649
|
let n = 0, s;
|
|
3653
3650
|
const c = t.filter((d) => {
|
|
3654
|
-
var p,
|
|
3655
|
-
return ((
|
|
3651
|
+
var p, f;
|
|
3652
|
+
return ((f = (p = d.properties) == null ? void 0 : p.category) == null ? void 0 : f.split("-")[0]) === o;
|
|
3656
3653
|
});
|
|
3657
3654
|
(h = c.filter((d) => {
|
|
3658
|
-
var p,
|
|
3659
|
-
return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((
|
|
3655
|
+
var p, f;
|
|
3656
|
+
return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((f = d.properties) == null ? void 0 : f.type) === "forecast";
|
|
3660
3657
|
})[0]) == null || h.properties.model, c.forEach((d, p) => {
|
|
3661
|
-
var
|
|
3662
|
-
((
|
|
3658
|
+
var f, m, g, y, u, v;
|
|
3659
|
+
((f = d.geometry) == null ? void 0 : f.type) === "Point" && ((m = d.properties) == null ? void 0 : m.type) === "history" && (n = p, s = s === void 0 ? p : s), ((g = d.geometry) == null ? void 0 : g.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && s === void 0 && (s = p), ((u = d.geometry) == null ? void 0 : u.type) === "LineString" && ((v = d.properties) == null || v.type);
|
|
3663
3660
|
}), c.map((d, p) => {
|
|
3664
|
-
var
|
|
3665
|
-
if (((
|
|
3666
|
-
const k = ((
|
|
3661
|
+
var f, m, g, y, u, v, b, x;
|
|
3662
|
+
if (((f = d.geometry) == null ? void 0 : f.type) === "LineString" && ((m = d.properties) == null || m.type), ((g = d.geometry) == null ? void 0 : g.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && (d.properties.name = o), ((u = d.geometry) == null ? void 0 : u.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
|
|
3663
|
+
const k = ((x = (b = d.properties) == null ? void 0 : b.format) == null ? void 0 : x.slice(7, 12)) === ee().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
|
|
3667
3664
|
d.properties.showHistoryLabel = k || p === n, d.properties.showNameLabel = p === n, d.properties.name = o;
|
|
3668
3665
|
}
|
|
3669
3666
|
return d;
|
|
@@ -3712,8 +3709,8 @@ const Ua = {
|
|
|
3712
3709
|
else {
|
|
3713
3710
|
if (this.tropicals) {
|
|
3714
3711
|
const p = (/* @__PURE__ */ new Date()).valueOf();
|
|
3715
|
-
let
|
|
3716
|
-
(t = this.map) != null && t.getSource(this.source) ? ((a = this.map) == null || a.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p +
|
|
3712
|
+
let f = 0, m = 0;
|
|
3713
|
+
(t = this.map) != null && t.getSource(this.source) ? ((a = this.map) == null || a.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropicals] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.source, {
|
|
3717
3714
|
type: "geojson",
|
|
3718
3715
|
data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
|
|
3719
3716
|
}), this.map.addLayer({
|
|
@@ -3788,7 +3785,7 @@ const Ua = {
|
|
|
3788
3785
|
"#fff",
|
|
3789
3786
|
"noaa-ep",
|
|
3790
3787
|
"#fff",
|
|
3791
|
-
"#
|
|
3788
|
+
"#000"
|
|
3792
3789
|
],
|
|
3793
3790
|
"text-opacity": 1,
|
|
3794
3791
|
"text-halo-color": [
|
|
@@ -3810,7 +3807,7 @@ const Ua = {
|
|
|
3810
3807
|
],
|
|
3811
3808
|
"text-halo-width": 4
|
|
3812
3809
|
}
|
|
3813
|
-
}), m = (/* @__PURE__ */ new Date()).valueOf() - (p +
|
|
3810
|
+
}), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((s = this.map) == null || s.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] update elapsed: ", m, ", total: ", f += m)) : (this.map.addSource(this.clusterSource, {
|
|
3814
3811
|
type: "geojson",
|
|
3815
3812
|
data: (c = this.tropicals) != null && c.active ? (h = this.tropicals) == null ? void 0 : h.data : this.empty
|
|
3816
3813
|
// cluster: true,
|
|
@@ -3925,24 +3922,11 @@ const Ua = {
|
|
|
3925
3922
|
"text-halo-color": "#146bf5",
|
|
3926
3923
|
"text-halo-width": 4
|
|
3927
3924
|
}
|
|
3928
|
-
}), m = (/* @__PURE__ */ new Date()).valueOf() - (p +
|
|
3925
|
+
}), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m));
|
|
3929
3926
|
}
|
|
3930
3927
|
if (this.handleDrawCircle(), !((d = this.tropicals) != null && d.cached)) {
|
|
3931
|
-
const p = et.interpolate(this.tropicals, 1)
|
|
3932
|
-
|
|
3933
|
-
var f, u, v;
|
|
3934
|
-
(f = g.properties) != null && f.name && !m.includes((u = g.properties) == null ? void 0 : u.name) && m.push((v = g.properties) == null ? void 0 : v.name);
|
|
3935
|
-
}), m.forEach((g) => {
|
|
3936
|
-
var v;
|
|
3937
|
-
const u = (v = y.filter((b) => {
|
|
3938
|
-
var w;
|
|
3939
|
-
return ((w = b.properties) == null ? void 0 : w.name) === g;
|
|
3940
|
-
})[0]) == null ? void 0 : v.properties.model;
|
|
3941
|
-
y.map((b, w) => {
|
|
3942
|
-
var k, _;
|
|
3943
|
-
return ((k = b.properties) == null ? void 0 : k.name) === g && (b.properties.disabled = ((_ = b.properties) == null ? void 0 : _.model) !== u), b;
|
|
3944
|
-
});
|
|
3945
|
-
}), this.interpolateData = JSON.parse(JSON.stringify(y));
|
|
3928
|
+
const p = et.interpolate(this.tropicals, 1);
|
|
3929
|
+
this.interpolateData = JSON.parse(JSON.stringify(p));
|
|
3946
3930
|
}
|
|
3947
3931
|
this.handleDateChange();
|
|
3948
3932
|
}
|
|
@@ -3952,11 +3936,11 @@ const Ua = {
|
|
|
3952
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));
|
|
3953
3937
|
},
|
|
3954
3938
|
handleDateChange() {
|
|
3955
|
-
var t, e, a, r, i, o, n, s, c, h, d, p,
|
|
3956
|
-
if ((t = this.interpolateMarkers) == null || t.forEach((
|
|
3957
|
-
const
|
|
3958
|
-
fe.forEach((
|
|
3959
|
-
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);
|
|
3960
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, {
|
|
3961
3945
|
type: "geojson",
|
|
3962
3946
|
data: Y
|
|
@@ -3971,10 +3955,10 @@ const Ua = {
|
|
|
3971
3955
|
"line-width": 2
|
|
3972
3956
|
}
|
|
3973
3957
|
})), this.interpolateMarkers = [];
|
|
3974
|
-
for (const
|
|
3975
|
-
if (!
|
|
3958
|
+
for (const I of q)
|
|
3959
|
+
if (!I.properties.disabled) {
|
|
3976
3960
|
let F = "#f44336";
|
|
3977
|
-
((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";
|
|
3978
3962
|
const ge = `<svg t="1719918955501"
|
|
3979
3963
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
3980
3964
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -3990,16 +3974,16 @@ const Ua = {
|
|
|
3990
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"
|
|
3991
3975
|
fill="#ffffff" p-id="18386"></path>
|
|
3992
3976
|
</svg>`, Q = document.createElement("div");
|
|
3993
|
-
Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${
|
|
3994
|
-
const be = new
|
|
3995
|
-
if (this.interpolateMarkers.push(be), (O =
|
|
3996
|
-
const
|
|
3997
|
-
(
|
|
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 };
|
|
3981
|
+
(H = this.circleSourceData) == null || H.features.push(
|
|
3982
|
+
C.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3983
|
+
), (he = this.circleSourceData) == null || he.features.push(
|
|
3998
3984
|
C.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3999
|
-
), (ae = this.circleSourceData) == null || ae.features.push(
|
|
4000
|
-
C.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4001
3985
|
), (de = this.circleSourceData) == null || de.features.push(
|
|
4002
|
-
C.circle(
|
|
3986
|
+
C.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4003
3987
|
);
|
|
4004
3988
|
}
|
|
4005
3989
|
(me = (pe = this.map) == null ? void 0 : pe.getSource(this.circleSource)) == null || me.setData(this.circleSourceData);
|
|
@@ -4008,7 +3992,7 @@ const Ua = {
|
|
|
4008
3992
|
(ue = this.map) != null && ue.getSource(this.interpolateSource) && ((ye = this.map) == null || ye.getSource(this.interpolateSource).setData(this.empty));
|
|
4009
3993
|
},
|
|
4010
3994
|
handleClick(t) {
|
|
4011
|
-
var o, n, s, c, h, d, p,
|
|
3995
|
+
var o, n, s, c, h, d, p, f;
|
|
4012
3996
|
const e = t.features[0], a = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
|
|
4013
3997
|
(m) => {
|
|
4014
3998
|
var g;
|
|
@@ -4016,8 +4000,8 @@ const Ua = {
|
|
|
4016
4000
|
}
|
|
4017
4001
|
);
|
|
4018
4002
|
a.sort((m, g) => {
|
|
4019
|
-
var
|
|
4020
|
-
return ((
|
|
4003
|
+
var y, u, v, b;
|
|
4004
|
+
return ((y = m.properties) == null ? void 0 : y.model) === "cma" ? -1 : ((u = m.properties) == null ? void 0 : u.model) === "jma" ? ((v = g.properties) == null ? void 0 : v.model) === "cma" ? 1 : -1 : m.properties.model === "ecmwf" ? ["jma", "cma"].includes((b = g.properties) == null ? void 0 : b.model) ? 1 : -1 : 0;
|
|
4021
4005
|
});
|
|
4022
4006
|
const r = (c = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : c.features.filter(
|
|
4023
4007
|
(m) => {
|
|
@@ -4029,10 +4013,10 @@ const Ua = {
|
|
|
4029
4013
|
name: (h = e == null ? void 0 : e.properties) == null ? void 0 : h.name,
|
|
4030
4014
|
forecasts: a.map((m) => m.properties),
|
|
4031
4015
|
history: (d = r[0]) == null ? void 0 : d.properties,
|
|
4032
|
-
showCircle: (
|
|
4016
|
+
showCircle: (f = (p = a[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
|
|
4033
4017
|
}, this.showTropicals = !0;
|
|
4034
4018
|
const i = document.getElementById("active-tropical");
|
|
4035
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new
|
|
4019
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new se.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
4036
4020
|
},
|
|
4037
4021
|
handleForecastToggle(t) {
|
|
4038
4022
|
var r, i, o, n, s, c;
|
|
@@ -4117,38 +4101,35 @@ const Ua = {
|
|
|
4117
4101
|
return C.lineToPolygon(i, { properties: a });
|
|
4118
4102
|
}
|
|
4119
4103
|
}
|
|
4120
|
-
},
|
|
4104
|
+
}, Ge = (t) => (U("data-v-813afc6d"), t = t(), G(), t), Ga = {
|
|
4121
4105
|
id: "active-tropical",
|
|
4122
4106
|
class: "active-tropical"
|
|
4123
|
-
}, Ha = { class: "header-box" }, Za = { class: "main" },
|
|
4107
|
+
}, Ha = { class: "header-box" }, Za = { class: "main" }, Ja = { key: 0 }, Xa = { class: "sub" }, qa = {
|
|
4124
4108
|
id: "meteoBox",
|
|
4125
4109
|
class: "main-box"
|
|
4126
4110
|
}, Ya = { class: "content" }, Qa = { class: "row" }, Ka = {
|
|
4127
4111
|
class: "col col-left",
|
|
4128
4112
|
style: { "justify-content": "flex-start" }
|
|
4129
|
-
}, ei = /* @__PURE__ */
|
|
4113
|
+
}, ei = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", null, "Wind speed : ", -1)), ti = {
|
|
4130
4114
|
class: "col col-right",
|
|
4131
4115
|
style: { "justify-content": "flex-start" }
|
|
4132
|
-
}, ai = /* @__PURE__ */
|
|
4116
|
+
}, ai = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), ii = { class: "row" }, ri = {
|
|
4133
4117
|
class: "col col-24",
|
|
4134
4118
|
style: { "justify-content": "flex-start" }
|
|
4135
|
-
}, oi = /* @__PURE__ */
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
function mi(t, e, a, r, i, o) {
|
|
4140
|
-
var n, s, c, h, d, p, y, m, g, f, u, v, b, w, k, _;
|
|
4141
|
-
return $e((L(), x("div", Ga, [
|
|
4119
|
+
}, oi = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), si = { class: "forecast-models" }, ni = ["onClick"], li = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-813afc6d></div><div class="row" style="padding:2px 10px;" data-v-813afc6d><div class="legend" data-v-813afc6d><div class="icon td" data-v-813afc6d></div><div class="label" data-v-813afc6d>TD</div></div><div class="legend" data-v-813afc6d><div class="icon ts" data-v-813afc6d></div><div class="label" data-v-813afc6d>TS</div></div><div class="legend" data-v-813afc6d><div class="icon sts" data-v-813afc6d></div><div class="label" data-v-813afc6d>STS</div></div><div class="legend" data-v-813afc6d><div class="icon ty" data-v-813afc6d></div><div class="label" data-v-813afc6d>TY</div></div><div class="legend" data-v-813afc6d><div class="icon sty" data-v-813afc6d></div><div class="label" data-v-813afc6d>STY</div></div><div class="legend" data-v-813afc6d><div class="icon supper-ty" data-v-813afc6d></div><div class="label" data-v-813afc6d>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-813afc6d><div class="legend" data-v-813afc6d><div class="icon history" data-v-813afc6d></div><div class="label" data-v-813afc6d>History</div></div><div class="legend" data-v-813afc6d><div class="icon r7" data-v-813afc6d></div><div class="label" data-v-813afc6d>35kts Radii</div></div><div class="legend" data-v-813afc6d><div class="icon r10" data-v-813afc6d></div><div class="label" data-v-813afc6d>50kts Radii</div></div></div>', 3), ci = { class: "more" };
|
|
4120
|
+
function hi(t, e, a, r, i, o) {
|
|
4121
|
+
var n, s, c, h, d, p, f, m, g, y, u, v, b, x, k;
|
|
4122
|
+
return $e((w(), L("div", Ga, [
|
|
4142
4123
|
l("div", Ha, [
|
|
4143
4124
|
l("div", {
|
|
4144
4125
|
class: "iconfont close-btn",
|
|
4145
|
-
onClick: e[0] || (e[0] = (
|
|
4126
|
+
onClick: e[0] || (e[0] = (_) => i.showTropicals = !1)
|
|
4146
4127
|
}, ""),
|
|
4147
4128
|
l("div", Za, [
|
|
4148
|
-
(s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (
|
|
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),
|
|
4149
4130
|
Ke(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
|
|
4150
4131
|
]),
|
|
4151
|
-
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)
|
|
4152
4133
|
]),
|
|
4153
4134
|
l("div", qa, [
|
|
4154
4135
|
l("div", Ya, [
|
|
@@ -4159,52 +4140,38 @@ function mi(t, e, a, r, i, o) {
|
|
|
4159
4140
|
]),
|
|
4160
4141
|
l("div", ti, [
|
|
4161
4142
|
ai,
|
|
4162
|
-
l("span", null, S(((
|
|
4143
|
+
l("span", null, S(((x = (b = i.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : x.pressure) || "-") + "[hPa]", 1)
|
|
4163
4144
|
])
|
|
4164
4145
|
]),
|
|
4165
4146
|
l("div", ii, [
|
|
4166
4147
|
l("div", ri, [
|
|
4167
4148
|
oi,
|
|
4168
4149
|
l("div", si, [
|
|
4169
|
-
(
|
|
4170
|
-
var
|
|
4171
|
-
return
|
|
4150
|
+
(w(!0), L(De, null, Ae((k = i.activeTropicals) == null ? void 0 : k.forecasts, (_, D) => {
|
|
4151
|
+
var A, B, W, O;
|
|
4152
|
+
return w(), L("div", {
|
|
4172
4153
|
key: D,
|
|
4173
4154
|
class: M([
|
|
4174
4155
|
"model",
|
|
4175
|
-
|
|
4176
|
-
D > 0 && D < ((
|
|
4156
|
+
_.disabled ? "" : "active",
|
|
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" : ""
|
|
4177
4158
|
]),
|
|
4178
|
-
onClick: (
|
|
4159
|
+
onClick: (H) => o.handleForecastToggle(_)
|
|
4179
4160
|
}, [
|
|
4180
4161
|
l("span", {
|
|
4181
|
-
class: M(
|
|
4182
|
-
}, S(
|
|
4162
|
+
class: M(_.model)
|
|
4163
|
+
}, S(_.model), 3)
|
|
4183
4164
|
], 10, ni);
|
|
4184
4165
|
}), 128))
|
|
4185
4166
|
])
|
|
4186
4167
|
])
|
|
4187
4168
|
]),
|
|
4188
|
-
|
|
4189
|
-
l("div", ci, [
|
|
4190
|
-
hi,
|
|
4191
|
-
(_ = i.activeTropicals) != null && _.showCircle ? (L(), x("i", {
|
|
4192
|
-
key: 0,
|
|
4193
|
-
class: "iconfont icon active",
|
|
4194
|
-
onClick: e[1] || (e[1] = (I) => o.handleToggleCircles(i.activeTropicals))
|
|
4195
|
-
}, "")) : (L(), x("i", {
|
|
4196
|
-
key: 1,
|
|
4197
|
-
class: "iconfont icon",
|
|
4198
|
-
onClick: e[2] || (e[2] = (I) => o.handleToggleCircles(i.activeTropicals))
|
|
4199
|
-
}, ""))
|
|
4200
|
-
])
|
|
4201
|
-
]),
|
|
4202
|
-
di
|
|
4169
|
+
li
|
|
4203
4170
|
]),
|
|
4204
|
-
l("div",
|
|
4171
|
+
l("div", ci, [
|
|
4205
4172
|
l("div", {
|
|
4206
4173
|
class: "button",
|
|
4207
|
-
onClick: e[
|
|
4174
|
+
onClick: e[1] || (e[1] = (_) => o.handleStrikeProbability(i.activeTropicals))
|
|
4208
4175
|
}, "Strike Probability >>")
|
|
4209
4176
|
])
|
|
4210
4177
|
])
|
|
@@ -4212,8 +4179,8 @@ function mi(t, e, a, r, i, o) {
|
|
|
4212
4179
|
[Be, i.showTropicals && !t.$attrs.hideTropicalsLegend]
|
|
4213
4180
|
]);
|
|
4214
4181
|
}
|
|
4215
|
-
const tt = /* @__PURE__ */ T(Ua, [["render",
|
|
4216
|
-
const
|
|
4182
|
+
const tt = /* @__PURE__ */ T(Ua, [["render", hi], ["__scopeId", "data-v-813afc6d"]]);
|
|
4183
|
+
const di = {
|
|
4217
4184
|
name: "IdmPrecip3h",
|
|
4218
4185
|
props: {
|
|
4219
4186
|
factor: {
|
|
@@ -4301,7 +4268,7 @@ const ui = {
|
|
|
4301
4268
|
[1, "rgba(197,5,58,0.8)"]
|
|
4302
4269
|
];
|
|
4303
4270
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4304
|
-
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);
|
|
4305
4272
|
this.program = e, this.aPositionBuffer = a;
|
|
4306
4273
|
}
|
|
4307
4274
|
},
|
|
@@ -4314,27 +4281,27 @@ const ui = {
|
|
|
4314
4281
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4315
4282
|
}
|
|
4316
4283
|
}
|
|
4317
|
-
},
|
|
4284
|
+
}, le = (t) => (U("data-v-dec867b8"), t = t(), G(), t), pi = { key: 0 }, mi = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "mm", -1)), ui = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "1.5", -1)), yi = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "2", -1)), fi = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "3", -1)), gi = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "7", -1)), bi = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "10", -1)), vi = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "20", -1)), _i = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "30", -1)), wi = [
|
|
4285
|
+
mi,
|
|
4286
|
+
ui,
|
|
4287
|
+
yi,
|
|
4318
4288
|
fi,
|
|
4319
4289
|
gi,
|
|
4320
4290
|
bi,
|
|
4321
4291
|
vi,
|
|
4322
|
-
_i
|
|
4323
|
-
wi,
|
|
4324
|
-
Li,
|
|
4325
|
-
xi
|
|
4292
|
+
_i
|
|
4326
4293
|
];
|
|
4327
|
-
function
|
|
4294
|
+
function Li(t, e, a, r, i, o) {
|
|
4328
4295
|
var n;
|
|
4329
|
-
return (n = a.factor) != null && n.active ? (
|
|
4296
|
+
return (n = a.factor) != null && n.active ? (w(), L("div", pi, [
|
|
4330
4297
|
l("div", {
|
|
4331
4298
|
class: "legend-bars flex-center",
|
|
4332
4299
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4333
|
-
},
|
|
4334
|
-
])) :
|
|
4300
|
+
}, wi, 4)
|
|
4301
|
+
])) : $("", !0);
|
|
4335
4302
|
}
|
|
4336
|
-
const
|
|
4337
|
-
const
|
|
4303
|
+
const xi = /* @__PURE__ */ T(di, [["render", Li], ["__scopeId", "data-v-dec867b8"]]);
|
|
4304
|
+
const Ci = {
|
|
4338
4305
|
name: "IdmVisibility",
|
|
4339
4306
|
props: {
|
|
4340
4307
|
factor: {
|
|
@@ -4415,7 +4382,7 @@ const zi = {
|
|
|
4415
4382
|
[1, "rgba(144,144,144,0)"]
|
|
4416
4383
|
];
|
|
4417
4384
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4418
|
-
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);
|
|
4419
4386
|
this.program = e, this.aPositionBuffer = a;
|
|
4420
4387
|
}
|
|
4421
4388
|
},
|
|
@@ -4428,25 +4395,25 @@ const zi = {
|
|
|
4428
4395
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4429
4396
|
}
|
|
4430
4397
|
}
|
|
4431
|
-
}, Le = (t) => (
|
|
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 = [
|
|
4399
|
+
ki,
|
|
4400
|
+
zi,
|
|
4401
|
+
Pi,
|
|
4432
4402
|
Ti,
|
|
4433
|
-
Ii,
|
|
4434
4403
|
Ei,
|
|
4435
|
-
|
|
4436
|
-
Ai,
|
|
4437
|
-
Di
|
|
4404
|
+
Ii
|
|
4438
4405
|
];
|
|
4439
|
-
function
|
|
4406
|
+
function Di(t, e, a, r, i, o) {
|
|
4440
4407
|
var n;
|
|
4441
|
-
return (n = a.factor) != null && n.active ? (
|
|
4408
|
+
return (n = a.factor) != null && n.active ? (w(), L("div", Si, [
|
|
4442
4409
|
l("div", {
|
|
4443
4410
|
class: "legend-bars flex-center",
|
|
4444
4411
|
style: j([{ position: "absolute" }, { right: t.right + "px", bottom: a.bottom }])
|
|
4445
|
-
},
|
|
4446
|
-
])) :
|
|
4412
|
+
}, Ri, 4)
|
|
4413
|
+
])) : $("", !0);
|
|
4447
4414
|
}
|
|
4448
|
-
const
|
|
4449
|
-
const
|
|
4415
|
+
const Ai = /* @__PURE__ */ T(Ci, [["render", Di], ["__scopeId", "data-v-952dee5c"]]);
|
|
4416
|
+
const Mi = {
|
|
4450
4417
|
name: "IdmWaterTemp",
|
|
4451
4418
|
props: {
|
|
4452
4419
|
factor: {
|
|
@@ -4535,7 +4502,7 @@ const Ni = {
|
|
|
4535
4502
|
//
|
|
4536
4503
|
];
|
|
4537
4504
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4538
|
-
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);
|
|
4539
4506
|
this.program = e, this.aPositionBuffer = a;
|
|
4540
4507
|
}
|
|
4541
4508
|
},
|
|
@@ -4548,25 +4515,25 @@ const Ni = {
|
|
|
4548
4515
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4549
4516
|
}
|
|
4550
4517
|
}
|
|
4551
|
-
}, xe = (t) => (
|
|
4518
|
+
}, xe = (t) => (U("data-v-67e5094b"), t = t(), G(), t), $i = { key: 0 }, Bi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ni = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0", -1)), Wi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "10", -1)), Oi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "20", -1)), ji = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "30", -1)), Fi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "40", -1)), Vi = [
|
|
4519
|
+
Bi,
|
|
4520
|
+
Ni,
|
|
4521
|
+
Wi,
|
|
4552
4522
|
Oi,
|
|
4553
4523
|
ji,
|
|
4554
|
-
Fi
|
|
4555
|
-
Vi,
|
|
4556
|
-
Ui,
|
|
4557
|
-
Gi
|
|
4524
|
+
Fi
|
|
4558
4525
|
];
|
|
4559
|
-
function
|
|
4526
|
+
function Ui(t, e, a, r, i, o) {
|
|
4560
4527
|
var n;
|
|
4561
|
-
return (n = a.factor) != null && n.active ? (
|
|
4528
|
+
return (n = a.factor) != null && n.active ? (w(), L("div", $i, [
|
|
4562
4529
|
l("div", {
|
|
4563
4530
|
class: "legend-bars flex-center",
|
|
4564
4531
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4565
|
-
},
|
|
4566
|
-
])) :
|
|
4532
|
+
}, Vi, 4)
|
|
4533
|
+
])) : $("", !0);
|
|
4567
4534
|
}
|
|
4568
|
-
const
|
|
4569
|
-
const
|
|
4535
|
+
const Gi = /* @__PURE__ */ T(Mi, [["render", Ui], ["__scopeId", "data-v-67e5094b"]]);
|
|
4536
|
+
const Hi = {
|
|
4570
4537
|
name: "IdmTemp",
|
|
4571
4538
|
props: {
|
|
4572
4539
|
factor: {
|
|
@@ -4658,7 +4625,7 @@ const Ji = {
|
|
|
4658
4625
|
[1, "rgb(138, 43, 10)"]
|
|
4659
4626
|
];
|
|
4660
4627
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4661
|
-
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);
|
|
4662
4629
|
this.program = e, this.aPositionBuffer = a;
|
|
4663
4630
|
}
|
|
4664
4631
|
},
|
|
@@ -4671,27 +4638,27 @@ const Ji = {
|
|
|
4671
4638
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4672
4639
|
}
|
|
4673
4640
|
}
|
|
4674
|
-
},
|
|
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 = [
|
|
4642
|
+
Ji,
|
|
4643
|
+
Xi,
|
|
4644
|
+
qi,
|
|
4675
4645
|
Yi,
|
|
4676
4646
|
Qi,
|
|
4677
4647
|
Ki,
|
|
4678
4648
|
er,
|
|
4679
|
-
tr
|
|
4680
|
-
ar,
|
|
4681
|
-
ir,
|
|
4682
|
-
rr
|
|
4649
|
+
tr
|
|
4683
4650
|
];
|
|
4684
|
-
function
|
|
4651
|
+
function ir(t, e, a, r, i, o) {
|
|
4685
4652
|
var n;
|
|
4686
|
-
return (n = a.factor) != null && n.active ? (
|
|
4653
|
+
return (n = a.factor) != null && n.active ? (w(), L("div", Zi, [
|
|
4687
4654
|
l("div", {
|
|
4688
4655
|
class: "legend-bars flex-center",
|
|
4689
4656
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4690
|
-
},
|
|
4691
|
-
])) :
|
|
4657
|
+
}, ar, 4)
|
|
4658
|
+
])) : $("", !0);
|
|
4692
4659
|
}
|
|
4693
|
-
const
|
|
4694
|
-
const
|
|
4660
|
+
const rr = /* @__PURE__ */ T(Hi, [["render", ir], ["__scopeId", "data-v-389ea886"]]);
|
|
4661
|
+
const or = {
|
|
4695
4662
|
name: "IdmArctic",
|
|
4696
4663
|
props: {
|
|
4697
4664
|
factor: {
|
|
@@ -4774,7 +4741,7 @@ const lr = {
|
|
|
4774
4741
|
// 2m
|
|
4775
4742
|
];
|
|
4776
4743
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4777
|
-
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);
|
|
4778
4745
|
this.program = e, this.aPositionBuffer = a;
|
|
4779
4746
|
}
|
|
4780
4747
|
},
|
|
@@ -4787,25 +4754,25 @@ const lr = {
|
|
|
4787
4754
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4788
4755
|
}
|
|
4789
4756
|
}
|
|
4790
|
-
}, Ce = (t) => (
|
|
4757
|
+
}, Ce = (t) => (U("data-v-db805141"), t = t(), G(), t), sr = { key: 0 }, nr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "m", -1)), lr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0", -1)), cr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0.5", -1)), hr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "1", -1)), dr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), pr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "2", -1)), mr = [
|
|
4758
|
+
nr,
|
|
4759
|
+
lr,
|
|
4760
|
+
cr,
|
|
4791
4761
|
hr,
|
|
4792
4762
|
dr,
|
|
4793
|
-
pr
|
|
4794
|
-
mr,
|
|
4795
|
-
ur,
|
|
4796
|
-
yr
|
|
4763
|
+
pr
|
|
4797
4764
|
];
|
|
4798
|
-
function
|
|
4765
|
+
function ur(t, e, a, r, i, o) {
|
|
4799
4766
|
var n;
|
|
4800
|
-
return (n = a.factor) != null && n.active ? (
|
|
4767
|
+
return (n = a.factor) != null && n.active ? (w(), L("div", sr, [
|
|
4801
4768
|
l("div", {
|
|
4802
4769
|
class: "legend-bars flex-center",
|
|
4803
4770
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4804
|
-
},
|
|
4805
|
-
])) :
|
|
4771
|
+
}, mr, 4)
|
|
4772
|
+
])) : $("", !0);
|
|
4806
4773
|
}
|
|
4807
|
-
const
|
|
4808
|
-
const
|
|
4774
|
+
const yr = /* @__PURE__ */ T(or, [["render", ur], ["__scopeId", "data-v-db805141"]]);
|
|
4775
|
+
const fr = {
|
|
4809
4776
|
name: "IdmPoint",
|
|
4810
4777
|
emits: ["point", "more"],
|
|
4811
4778
|
props: {
|
|
@@ -4880,77 +4847,77 @@ const vr = {
|
|
|
4880
4847
|
var t;
|
|
4881
4848
|
if (this.meteo) {
|
|
4882
4849
|
const e = document.getElementById("point-meteo");
|
|
4883
|
-
this.meteoMarker ? (t = this.meteoMarker) == null || t.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new
|
|
4850
|
+
this.meteoMarker ? (t = this.meteoMarker) == null || t.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new se.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
|
|
4884
4851
|
}
|
|
4885
4852
|
}
|
|
4886
4853
|
}
|
|
4887
|
-
},
|
|
4854
|
+
}, X = (t) => (U("data-v-fb5b12d6"), t = t(), G(), t), gr = {
|
|
4888
4855
|
id: "point-meteo",
|
|
4889
4856
|
class: "point-meteo"
|
|
4890
|
-
},
|
|
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 = {
|
|
4891
4858
|
key: 0,
|
|
4892
4859
|
class: "flex-space",
|
|
4893
4860
|
style: { "justify-content": "flex-end" }
|
|
4894
|
-
},
|
|
4895
|
-
|
|
4861
|
+
}, Fr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "more" }, "More >>", -1)), Vr = [
|
|
4862
|
+
Fr
|
|
4896
4863
|
];
|
|
4897
|
-
function
|
|
4898
|
-
var n, s, c, h, d, p,
|
|
4899
|
-
return $e((
|
|
4900
|
-
l("div",
|
|
4901
|
-
l("div",
|
|
4864
|
+
function Ur(t, e, a, r, i, o) {
|
|
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;
|
|
4866
|
+
return $e((w(), L("div", gr, [
|
|
4867
|
+
l("div", br, [
|
|
4868
|
+
l("div", vr, [
|
|
4902
4869
|
l("div", {
|
|
4903
4870
|
class: "iconfont close",
|
|
4904
|
-
onClick: e[0] || (e[0] = (
|
|
4871
|
+
onClick: e[0] || (e[0] = (We) => i.showMeteo = !1)
|
|
4905
4872
|
}, ""),
|
|
4906
|
-
l("div",
|
|
4907
|
-
l("div",
|
|
4873
|
+
l("div", _r, S(o.computeLat((n = a.meteo) == null ? void 0 : n.lat)) + "," + S(o.computeLng((s = a.meteo) == null ? void 0 : s.lng)), 1),
|
|
4874
|
+
l("div", wr, S(o.computeTime((c = a.meteo) == null ? void 0 : c.utc)), 1)
|
|
4908
4875
|
]),
|
|
4909
|
-
l("div",
|
|
4910
|
-
l("div",
|
|
4911
|
-
|
|
4912
|
-
l("span", null, S(((d = (h = a.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((
|
|
4876
|
+
l("div", Lr, [
|
|
4877
|
+
l("div", xr, [
|
|
4878
|
+
Cr,
|
|
4879
|
+
l("span", null, S(((d = (h = a.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((f = (p = a.meteo) == null ? void 0 : p.wind) == null ? void 0 : f.kts, 1)) + "[kts]/" + S((g = (m = a.meteo) == null ? void 0 : m.wind) == null ? void 0 : g.scale) + "[BF]/" + S(o.roundPrecision((u = (y = a.meteo) == null ? void 0 : y.gusts) == null ? void 0 : u.kts, 1)) + "[kts]", 1)
|
|
4913
4880
|
]),
|
|
4914
|
-
l("div",
|
|
4915
|
-
|
|
4916
|
-
l("span", null, S(((
|
|
4881
|
+
l("div", Sr, [
|
|
4882
|
+
kr,
|
|
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)
|
|
4917
4884
|
]),
|
|
4918
|
-
l("div",
|
|
4885
|
+
l("div", zr, [
|
|
4886
|
+
Pr,
|
|
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)
|
|
4888
|
+
]),
|
|
4889
|
+
l("div", Tr, [
|
|
4919
4890
|
Er,
|
|
4920
|
-
l("span", null, S(((
|
|
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)
|
|
4921
4892
|
]),
|
|
4922
|
-
l("div",
|
|
4923
|
-
|
|
4924
|
-
l("span", null, S(((
|
|
4893
|
+
l("div", Ir, [
|
|
4894
|
+
Rr,
|
|
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)
|
|
4925
4896
|
]),
|
|
4926
4897
|
l("div", Dr, [
|
|
4927
|
-
|
|
4928
|
-
l("span", null, S(((oe = (re = a.meteo) == null ? void 0 : re.current) == null ? void 0 : oe.direction) || "-") + "/" + S(o.roundPrecision((ke = (Se = a.meteo) == null ? void 0 : Se.current) == null ? void 0 : ke.kts, 2)) + "[kts]", 1)
|
|
4929
|
-
]),
|
|
4930
|
-
l("div", $r, [
|
|
4931
|
-
Br,
|
|
4898
|
+
Ar,
|
|
4932
4899
|
l("span", null, S(o.roundPrecision((Pe = (ze = a.meteo) == null ? void 0 : ze.precip) == null ? void 0 : Pe.inter6h, 2)) + "[mm]", 1)
|
|
4933
4900
|
]),
|
|
4934
|
-
l("div",
|
|
4935
|
-
|
|
4901
|
+
l("div", Mr, [
|
|
4902
|
+
$r,
|
|
4936
4903
|
l("span", null, S(o.roundPrecision(((Te = a.meteo) == null ? void 0 : Te.visibility) / 1852, 0)) + "[nm]", 1)
|
|
4937
4904
|
]),
|
|
4938
|
-
l("div",
|
|
4939
|
-
|
|
4940
|
-
l("span", null, S(o.roundPrecision((
|
|
4905
|
+
l("div", Br, [
|
|
4906
|
+
Nr,
|
|
4907
|
+
l("span", null, S(o.roundPrecision((Ee = a.meteo) == null ? void 0 : Ee.temp, 0)) + "[°C]", 1)
|
|
4941
4908
|
]),
|
|
4942
|
-
l("div",
|
|
4943
|
-
|
|
4944
|
-
l("span", null, S(o.roundPrecision((
|
|
4909
|
+
l("div", Wr, [
|
|
4910
|
+
Or,
|
|
4911
|
+
l("span", null, S(o.roundPrecision((Ie = a.meteo) == null ? void 0 : Ie.waterTemp, 2)) + "[°C]", 1)
|
|
4945
4912
|
])
|
|
4946
4913
|
]),
|
|
4947
|
-
t.$attrs.permission & i.helper.LEVEL.Prime ? (
|
|
4914
|
+
t.$attrs.permission & i.helper.LEVEL.Prime ? (w(), L("div", jr, Vr)) : $("", !0)
|
|
4948
4915
|
])
|
|
4949
4916
|
], 512)), [
|
|
4950
4917
|
[Be, i.showMeteo]
|
|
4951
4918
|
]);
|
|
4952
4919
|
}
|
|
4953
|
-
const
|
|
4920
|
+
const Gr = /* @__PURE__ */ T(fr, [["render", Ur], ["__scopeId", "data-v-fb5b12d6"]]), Hr = {
|
|
4954
4921
|
name: "IdmWarZone",
|
|
4955
4922
|
props: {
|
|
4956
4923
|
map: {
|
|
@@ -5040,10 +5007,10 @@ const Xr = /* @__PURE__ */ T(vr, [["render", Zr], ["__scopeId", "data-v-fb5b12d6
|
|
|
5040
5007
|
}
|
|
5041
5008
|
}
|
|
5042
5009
|
};
|
|
5043
|
-
function
|
|
5044
|
-
return
|
|
5010
|
+
function Zr(t, e, a, r, i, o) {
|
|
5011
|
+
return w(), L("div");
|
|
5045
5012
|
}
|
|
5046
|
-
const
|
|
5013
|
+
const Jr = /* @__PURE__ */ T(Hr, [["render", Zr]]), Xr = {
|
|
5047
5014
|
name: "IdmGmdssArea",
|
|
5048
5015
|
props: {
|
|
5049
5016
|
map: {
|
|
@@ -5163,10 +5130,10 @@ const Yr = /* @__PURE__ */ T(Jr, [["render", qr]]), Qr = {
|
|
|
5163
5130
|
}
|
|
5164
5131
|
}
|
|
5165
5132
|
};
|
|
5166
|
-
function
|
|
5167
|
-
return
|
|
5133
|
+
function qr(t, e, a, r, i, o) {
|
|
5134
|
+
return w(), L("div");
|
|
5168
5135
|
}
|
|
5169
|
-
const
|
|
5136
|
+
const Yr = /* @__PURE__ */ T(Xr, [["render", qr]]), Qr = {
|
|
5170
5137
|
name: "IdmEcaZone",
|
|
5171
5138
|
props: {
|
|
5172
5139
|
map: {
|
|
@@ -5254,11 +5221,11 @@ const eo = /* @__PURE__ */ T(Qr, [["render", Kr]]), to = {
|
|
|
5254
5221
|
}
|
|
5255
5222
|
}
|
|
5256
5223
|
};
|
|
5257
|
-
function
|
|
5258
|
-
return
|
|
5224
|
+
function Kr(t, e, a, r, i, o) {
|
|
5225
|
+
return w(), L("div");
|
|
5259
5226
|
}
|
|
5260
|
-
const
|
|
5261
|
-
const
|
|
5227
|
+
const eo = /* @__PURE__ */ T(Qr, [["render", Kr]]);
|
|
5228
|
+
const to = {
|
|
5262
5229
|
name: "IdmAlertZone",
|
|
5263
5230
|
props: {
|
|
5264
5231
|
map: {
|
|
@@ -5384,10 +5351,10 @@ const ro = {
|
|
|
5384
5351
|
this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
5385
5352
|
}
|
|
5386
5353
|
}
|
|
5387
|
-
},
|
|
5388
|
-
function
|
|
5354
|
+
}, ao = { id: "zone-info" }, io = ["innerHTML"];
|
|
5355
|
+
function ro(t, e, a, r, i, o) {
|
|
5389
5356
|
var n;
|
|
5390
|
-
return $e((
|
|
5357
|
+
return $e((w(), L("div", ao, [
|
|
5391
5358
|
l("div", {
|
|
5392
5359
|
class: "iconfont close",
|
|
5393
5360
|
onClick: e[0] || (e[0] = (s) => i.showZone = !1)
|
|
@@ -5395,13 +5362,13 @@ function no(t, e, a, r, i, o) {
|
|
|
5395
5362
|
l("div", {
|
|
5396
5363
|
class: "rich-context",
|
|
5397
5364
|
innerHTML: (n = i.form) == null ? void 0 : n.name
|
|
5398
|
-
}, null, 8,
|
|
5365
|
+
}, null, 8, io)
|
|
5399
5366
|
], 512)), [
|
|
5400
5367
|
[Be, i.showZone]
|
|
5401
5368
|
]);
|
|
5402
5369
|
}
|
|
5403
|
-
const
|
|
5404
|
-
const
|
|
5370
|
+
const oo = /* @__PURE__ */ T(to, [["render", ro], ["__scopeId", "data-v-c0864afc"]]);
|
|
5371
|
+
const so = {
|
|
5405
5372
|
name: "IdmPort",
|
|
5406
5373
|
props: {
|
|
5407
5374
|
map: {
|
|
@@ -5454,7 +5421,7 @@ const co = {
|
|
|
5454
5421
|
if (a) {
|
|
5455
5422
|
this.showPort = !0, this.form = { ...a.properties }, this.form.lng = a.geometry.coordinates[0], this.form.lat = a.geometry.coordinates[1];
|
|
5456
5423
|
const i = document.getElementById("port-info");
|
|
5457
|
-
this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new
|
|
5424
|
+
this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new se.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
5458
5425
|
}
|
|
5459
5426
|
},
|
|
5460
5427
|
handleEmit() {
|
|
@@ -5493,33 +5460,33 @@ const co = {
|
|
|
5493
5460
|
this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
5494
5461
|
}
|
|
5495
5462
|
}
|
|
5496
|
-
},
|
|
5463
|
+
}, Ne = (t) => (U("data-v-30e545a2"), t = t(), G(), t), no = { id: "port-info" }, lo = { class: "port-box" }, co = { class: "flex-start" }, ho = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), po = { class: "flex-start" }, mo = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), uo = { class: "flex-start" }, yo = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), fo = {
|
|
5497
5464
|
class: "flex-start",
|
|
5498
5465
|
style: { "align-items": "flex-start" }
|
|
5499
|
-
},
|
|
5500
|
-
function
|
|
5501
|
-
return $e((
|
|
5466
|
+
}, go = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
|
|
5467
|
+
function bo(t, e, a, r, i, o) {
|
|
5468
|
+
return $e((w(), L("div", no, [
|
|
5502
5469
|
l("div", {
|
|
5503
5470
|
class: "close iconfont",
|
|
5504
5471
|
onClick: e[0] || (e[0] = (n) => i.showPort = !1)
|
|
5505
5472
|
}, ""),
|
|
5506
|
-
l("div",
|
|
5507
|
-
l("div",
|
|
5508
|
-
|
|
5473
|
+
l("div", lo, [
|
|
5474
|
+
l("div", co, [
|
|
5475
|
+
ho,
|
|
5509
5476
|
l("span", {
|
|
5510
5477
|
onClick: e[1] || (e[1] = (...n) => o.handleEmit && o.handleEmit(...n))
|
|
5511
5478
|
}, S(i.form.name), 1)
|
|
5512
5479
|
]),
|
|
5513
|
-
l("div",
|
|
5514
|
-
|
|
5480
|
+
l("div", po, [
|
|
5481
|
+
mo,
|
|
5515
5482
|
l("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
|
|
5516
5483
|
]),
|
|
5517
|
-
l("div",
|
|
5518
|
-
|
|
5484
|
+
l("div", uo, [
|
|
5485
|
+
yo,
|
|
5519
5486
|
l("span", null, S(i.form.loCode || "-"), 1)
|
|
5520
5487
|
]),
|
|
5521
|
-
l("div",
|
|
5522
|
-
|
|
5488
|
+
l("div", fo, [
|
|
5489
|
+
go,
|
|
5523
5490
|
l("span", null, S(i.form.city || "-") + ", " + S(i.form.country || "-"), 1)
|
|
5524
5491
|
])
|
|
5525
5492
|
])
|
|
@@ -5527,7 +5494,7 @@ function wo(t, e, a, r, i, o) {
|
|
|
5527
5494
|
[Be, i.showPort]
|
|
5528
5495
|
]);
|
|
5529
5496
|
}
|
|
5530
|
-
const
|
|
5497
|
+
const vo = /* @__PURE__ */ T(so, [["render", bo], ["__scopeId", "data-v-30e545a2"]]), _o = {
|
|
5531
5498
|
name: "IdmLoadLine",
|
|
5532
5499
|
props: {
|
|
5533
5500
|
map: {
|
|
@@ -5597,10 +5564,10 @@ const Lo = /* @__PURE__ */ T(co, [["render", wo], ["__scopeId", "data-v-30e545a2
|
|
|
5597
5564
|
}
|
|
5598
5565
|
}
|
|
5599
5566
|
};
|
|
5600
|
-
function
|
|
5601
|
-
return
|
|
5567
|
+
function wo(t, e, a, r, i, o) {
|
|
5568
|
+
return w(), L("div");
|
|
5602
5569
|
}
|
|
5603
|
-
const
|
|
5570
|
+
const Lo = /* @__PURE__ */ T(_o, [["render", wo]]), xo = {
|
|
5604
5571
|
name: "IdmTimezone",
|
|
5605
5572
|
props: {
|
|
5606
5573
|
map: {
|
|
@@ -5765,10 +5732,10 @@ const So = /* @__PURE__ */ T(xo, [["render", Co]]), ko = {
|
|
|
5765
5732
|
}
|
|
5766
5733
|
}
|
|
5767
5734
|
};
|
|
5768
|
-
function
|
|
5769
|
-
return
|
|
5735
|
+
function Co(t, e, a, r, i, o) {
|
|
5736
|
+
return w(), L("div");
|
|
5770
5737
|
}
|
|
5771
|
-
const
|
|
5738
|
+
const So = /* @__PURE__ */ T(xo, [["render", Co]]), ko = {
|
|
5772
5739
|
name: "IdmVoluntaryReportingArea",
|
|
5773
5740
|
props: {
|
|
5774
5741
|
map: {
|
|
@@ -5856,10 +5823,10 @@ const Po = /* @__PURE__ */ T(ko, [["render", zo]]), To = {
|
|
|
5856
5823
|
}
|
|
5857
5824
|
}
|
|
5858
5825
|
};
|
|
5859
|
-
function
|
|
5860
|
-
return
|
|
5826
|
+
function zo(t, e, a, r, i, o) {
|
|
5827
|
+
return w(), L("div");
|
|
5861
5828
|
}
|
|
5862
|
-
const
|
|
5829
|
+
const Po = /* @__PURE__ */ T(ko, [["render", zo]]), To = {
|
|
5863
5830
|
name: "IdmSpecialArea",
|
|
5864
5831
|
props: {
|
|
5865
5832
|
map: {
|
|
@@ -5949,10 +5916,10 @@ const Eo = /* @__PURE__ */ T(To, [["render", Io]]), Ro = {
|
|
|
5949
5916
|
}
|
|
5950
5917
|
}
|
|
5951
5918
|
};
|
|
5952
|
-
function
|
|
5953
|
-
return
|
|
5919
|
+
function Eo(t, e, a, r, i, o) {
|
|
5920
|
+
return w(), L("div");
|
|
5954
5921
|
}
|
|
5955
|
-
const
|
|
5922
|
+
const Io = /* @__PURE__ */ T(To, [["render", Eo]]), Ro = {
|
|
5956
5923
|
name: "IdmTerminator",
|
|
5957
5924
|
props: {
|
|
5958
5925
|
map: {
|
|
@@ -6001,11 +5968,11 @@ const Do = /* @__PURE__ */ T(Ro, [["render", Ao]]), Mo = {
|
|
|
6001
5968
|
}
|
|
6002
5969
|
}
|
|
6003
5970
|
};
|
|
6004
|
-
function
|
|
6005
|
-
return
|
|
5971
|
+
function Do(t, e, a, r, i, o) {
|
|
5972
|
+
return w(), L("div");
|
|
6006
5973
|
}
|
|
6007
|
-
const
|
|
6008
|
-
const
|
|
5974
|
+
const Ao = /* @__PURE__ */ T(Ro, [["render", Do]]);
|
|
5975
|
+
const Mo = {
|
|
6009
5976
|
name: "IdmLatLng",
|
|
6010
5977
|
props: {
|
|
6011
5978
|
map: {
|
|
@@ -6160,19 +6127,19 @@ const No = {
|
|
|
6160
6127
|
(t = this.map) != null && t.getLayer(this.layer) && ((e = this.map) == null || e.removeLayer(this.layer)), (a = this.map) != null && a.getLayer(this.labelLayer) && ((r = this.map) == null || r.removeLayer(this.labelLayer)), (i = this.map) != null && i.getSource(this.source) && ((o = this.map) == null || o.removeSource(this.source));
|
|
6161
6128
|
}
|
|
6162
6129
|
}
|
|
6163
|
-
},
|
|
6164
|
-
function
|
|
6165
|
-
return i.lngLat ? (
|
|
6130
|
+
}, $o = (t) => (U("data-v-51cc4052"), t = t(), G(), t), Bo = /* @__PURE__ */ $o(() => /* @__PURE__ */ l("span", null, ", ", -1));
|
|
6131
|
+
function No(t, e, a, r, i, o) {
|
|
6132
|
+
return i.lngLat ? (w(), L("div", {
|
|
6166
6133
|
key: 0,
|
|
6167
6134
|
class: "lat-lng-tip",
|
|
6168
6135
|
style: j({ right: i.right + "px", bottom: a.bottom })
|
|
6169
6136
|
}, [
|
|
6170
6137
|
l("span", null, S(i.lngLat.lat.pretty), 1),
|
|
6171
|
-
|
|
6138
|
+
Bo,
|
|
6172
6139
|
l("span", null, S(i.lngLat.lng.pretty), 1)
|
|
6173
|
-
], 4)) :
|
|
6140
|
+
], 4)) : $("", !0);
|
|
6174
6141
|
}
|
|
6175
|
-
const at = /* @__PURE__ */ T(
|
|
6142
|
+
const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052"]]), Wo = {
|
|
6176
6143
|
name: "IdmMeasure",
|
|
6177
6144
|
props: {
|
|
6178
6145
|
map: {
|
|
@@ -6234,24 +6201,24 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
|
|
|
6234
6201
|
var a, r, i, o, n, s, c, h, d, p;
|
|
6235
6202
|
const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
|
|
6236
6203
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6237
|
-
const
|
|
6238
|
-
this.pointMarkers[
|
|
6204
|
+
const f = this.geojson.filter((u) => u.id === e.split("-")[0])[0];
|
|
6205
|
+
this.pointMarkers[f.id].filter((u) => {
|
|
6239
6206
|
var v;
|
|
6240
6207
|
return ((v = u._element) == null ? void 0 : v.id) === e;
|
|
6241
6208
|
})[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
|
|
6242
6209
|
let g;
|
|
6243
|
-
|
|
6210
|
+
f.features.forEach((u, v) => {
|
|
6244
6211
|
if (u.geometry.type === "Point" && u.properties.id == e.split("-")[1]) {
|
|
6245
6212
|
g = v;
|
|
6246
6213
|
return;
|
|
6247
6214
|
}
|
|
6248
6215
|
});
|
|
6249
|
-
const
|
|
6216
|
+
const y = f.features.filter((u) => u.geometry.type === "Point");
|
|
6250
6217
|
this.handleTmpPointUpdate(
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
{ lng: (h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties:
|
|
6254
|
-
g ===
|
|
6218
|
+
f,
|
|
6219
|
+
y[g - 1],
|
|
6220
|
+
{ lng: (h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties: y[g].properties },
|
|
6221
|
+
g === y.length - 1 ? void 0 : y[g + 1]
|
|
6255
6222
|
);
|
|
6256
6223
|
}
|
|
6257
6224
|
},
|
|
@@ -6259,13 +6226,13 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
|
|
|
6259
6226
|
var a, r, i, o, n, s, c, h, d, p;
|
|
6260
6227
|
const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
|
|
6261
6228
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6262
|
-
const
|
|
6263
|
-
this.pointMarkers[
|
|
6229
|
+
const f = this.geojson.filter((y) => y.id === e.split("-")[0])[0];
|
|
6230
|
+
this.pointMarkers[f.id].filter((y) => {
|
|
6264
6231
|
var u;
|
|
6265
|
-
return ((u =
|
|
6232
|
+
return ((u = y._element) == null ? void 0 : u.id) === e;
|
|
6266
6233
|
})[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
|
|
6267
|
-
const g =
|
|
6268
|
-
g.geometry.coordinates = [(h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat],
|
|
6234
|
+
const g = f.features.filter((y) => y.geometry.type === "Point" && y.properties.id == e.split("-")[1])[0];
|
|
6235
|
+
g.geometry.coordinates = [(h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat], f.features = f.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(f);
|
|
6269
6236
|
}
|
|
6270
6237
|
},
|
|
6271
6238
|
handleContextmenu(t) {
|
|
@@ -6276,7 +6243,7 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
|
|
|
6276
6243
|
const s = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
|
|
6277
6244
|
if (s.length > 2 && s.filter((h) => h.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
6278
6245
|
const h = document.createElement("div");
|
|
6279
|
-
h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new
|
|
6246
|
+
h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new se.Marker(h).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
6280
6247
|
}
|
|
6281
6248
|
}
|
|
6282
6249
|
},
|
|
@@ -6312,11 +6279,11 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
|
|
|
6312
6279
|
let a = 0;
|
|
6313
6280
|
const r = [];
|
|
6314
6281
|
for (let i = 1; i < e.length; i++) {
|
|
6315
|
-
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] }, d =
|
|
6282
|
+
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] }, d = Oe(c, h, s.mode === "RL", 2), p = je(c, h, s.mode === "RL", 2);
|
|
6316
6283
|
a = te.roundPrecision(a + d, 2);
|
|
6317
|
-
let
|
|
6318
|
-
s.mode === "RL" ?
|
|
6319
|
-
const m = C.lineString(
|
|
6284
|
+
let f;
|
|
6285
|
+
s.mode === "RL" ? f = we([c, h]) : f = we(Fe(c, h, 200));
|
|
6286
|
+
const m = C.lineString(f.map((g) => [g.lng, g.lat]));
|
|
6320
6287
|
m.properties.dist = d, m.properties.bearing = p, m.properties.total = a, r.push(m);
|
|
6321
6288
|
}
|
|
6322
6289
|
e.push(...r), t.total = a;
|
|
@@ -6328,19 +6295,19 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
|
|
|
6328
6295
|
let o, n;
|
|
6329
6296
|
if (e) {
|
|
6330
6297
|
const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: a.lng, lat: a.lat };
|
|
6331
|
-
o =
|
|
6298
|
+
o = Oe(h, d, c.mode === "RL", 2), n = je(h, d, c.mode === "RL", 2);
|
|
6332
6299
|
let p;
|
|
6333
|
-
c.mode === "RL" ? p = we([h, d]) : p = we(
|
|
6334
|
-
const
|
|
6335
|
-
|
|
6300
|
+
c.mode === "RL" ? p = we([h, d]) : p = we(Fe(h, d, 200));
|
|
6301
|
+
const f = C.lineString(p.map((m) => [m.lng, m.lat]));
|
|
6302
|
+
f.properties.dist = o, f.properties.bearing = n, i.features.push(f);
|
|
6336
6303
|
}
|
|
6337
6304
|
if (r) {
|
|
6338
6305
|
const c = a.properties, h = a, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
6339
|
-
o =
|
|
6306
|
+
o = Oe(h, d, c.mode === "RL", 2), n = je(h, d, c.mode === "RL", 2);
|
|
6340
6307
|
let p;
|
|
6341
|
-
c.mode === "RL" ? p = we([h, d]) : p = we(
|
|
6342
|
-
const
|
|
6343
|
-
|
|
6308
|
+
c.mode === "RL" ? p = we([h, d]) : p = we(Fe(h, d, 200));
|
|
6309
|
+
const f = C.lineString(p.map((m) => [m.lng, m.lat]));
|
|
6310
|
+
f.properties.dist = o, f.properties.bearing = n, i.features.push(f);
|
|
6344
6311
|
}
|
|
6345
6312
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
6346
6313
|
type: "geojson",
|
|
@@ -6384,7 +6351,7 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
|
|
|
6384
6351
|
this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([a.lng, a.lat]);
|
|
6385
6352
|
else {
|
|
6386
6353
|
const c = document.createElement("div");
|
|
6387
|
-
c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new
|
|
6354
|
+
c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new se.Marker(c).setOffset([140, 0]).setLngLat([a.lng, a.lat]).addTo(this.map);
|
|
6388
6355
|
}
|
|
6389
6356
|
},
|
|
6390
6357
|
handleMove(t) {
|
|
@@ -6442,29 +6409,29 @@ const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052
|
|
|
6442
6409
|
for (const n of o) {
|
|
6443
6410
|
const s = document.createElement("div");
|
|
6444
6411
|
s.id = `${t.id}-${n.properties.id}`, s.className = `${t.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
|
|
6445
|
-
const c = new
|
|
6412
|
+
const c = new se.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
6446
6413
|
c.on("drag", this.handleDrag), c.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(c) : this.pointMarkers[t.id] = [c];
|
|
6447
6414
|
}
|
|
6448
6415
|
if (t.closed) {
|
|
6449
6416
|
const n = o.at(-1), c = t.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
|
|
6450
|
-
h.className = "point-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[t.id] = new
|
|
6417
|
+
h.className = "point-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[t.id] = new se.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
6451
6418
|
}
|
|
6452
6419
|
}
|
|
6453
6420
|
},
|
|
6454
6421
|
handleClear(t, e = !0) {
|
|
6455
|
-
var o, n, s, c, h, d, p,
|
|
6422
|
+
var o, n, s, c, h, d, p, f, m;
|
|
6456
6423
|
const a = `${t.id}-${this.source}`, r = `${t.id}-${this.layer}`, i = `${t.id}-${this.labelLayer}`;
|
|
6457
6424
|
(o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (h = this.closeMarkers[t.id]) == null || h.remove(), this.closeMarkers[t.id] = void 0, (d = this.pointMarkers[t.id]) == null || d.forEach((g) => {
|
|
6458
6425
|
g == null || g.remove();
|
|
6459
|
-
}), this.pointMarkers[t.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((
|
|
6426
|
+
}), this.pointMarkers[t.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(a)) && this.map.removeSource(a), e && ((m = this.map) != null && m.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
6460
6427
|
}
|
|
6461
6428
|
}
|
|
6462
6429
|
};
|
|
6463
|
-
function
|
|
6464
|
-
return
|
|
6430
|
+
function Oo(t, e, a, r, i, o) {
|
|
6431
|
+
return w(), L("div");
|
|
6465
6432
|
}
|
|
6466
|
-
const
|
|
6467
|
-
const
|
|
6433
|
+
const jo = /* @__PURE__ */ T(Wo, [["render", Oo]]);
|
|
6434
|
+
const Fo = {
|
|
6468
6435
|
name: "IdmENC",
|
|
6469
6436
|
props: {
|
|
6470
6437
|
map: {
|
|
@@ -6516,64 +6483,64 @@ const Go = {
|
|
|
6516
6483
|
}
|
|
6517
6484
|
},
|
|
6518
6485
|
methods: {}
|
|
6519
|
-
}, it = (t) => (
|
|
6520
|
-
|
|
6521
|
-
],
|
|
6522
|
-
|
|
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 = [
|
|
6487
|
+
Go
|
|
6488
|
+
], Zo = /* @__PURE__ */ it(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), Jo = [
|
|
6489
|
+
Zo
|
|
6523
6490
|
];
|
|
6524
|
-
function
|
|
6525
|
-
return a.enabled && a.permission & i.helper.LEVEL.Supper ? (
|
|
6491
|
+
function Xo(t, e, a, r, i, o) {
|
|
6492
|
+
return a.enabled && a.permission & i.helper.LEVEL.Supper ? (w(), L("div", Vo, [
|
|
6526
6493
|
l("div", {
|
|
6527
6494
|
class: "menu-bar-box",
|
|
6528
6495
|
style: j({ position: "absolute", right: i.right + "px", bottom: a.bottom })
|
|
6529
6496
|
}, [
|
|
6530
|
-
l("div",
|
|
6497
|
+
l("div", Uo, [
|
|
6531
6498
|
l("div", {
|
|
6532
6499
|
class: M(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
6533
6500
|
onClick: e[0] || (e[0] = (n) => i.vendor = "hi")
|
|
6534
|
-
},
|
|
6501
|
+
}, Ho, 2),
|
|
6535
6502
|
l("div", {
|
|
6536
6503
|
class: M(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
6537
6504
|
onClick: e[1] || (e[1] = (n) => i.vendor = "i4")
|
|
6538
|
-
},
|
|
6505
|
+
}, Jo, 2)
|
|
6539
6506
|
])
|
|
6540
6507
|
], 4)
|
|
6541
|
-
])) :
|
|
6508
|
+
])) : $("", !0);
|
|
6542
6509
|
}
|
|
6543
|
-
const
|
|
6544
|
-
const
|
|
6510
|
+
const qo = /* @__PURE__ */ T(Fo, [["render", Xo], ["__scopeId", "data-v-ab627b83"]]);
|
|
6511
|
+
const Yo = {
|
|
6545
6512
|
name: "IdmGLV2",
|
|
6546
6513
|
components: {
|
|
6547
6514
|
IdmGlLayer: Vt,
|
|
6548
6515
|
IdmWindBarb: Yt,
|
|
6549
6516
|
IdmWindParticle: da,
|
|
6550
6517
|
IdmCurrents: va,
|
|
6551
|
-
IdmCurrentParticle:
|
|
6552
|
-
IdmSigWave:
|
|
6518
|
+
IdmCurrentParticle: Ia,
|
|
6519
|
+
IdmSigWave: Aa,
|
|
6553
6520
|
IdmSwell: Ba,
|
|
6554
6521
|
IdmPrmsl: Oa,
|
|
6555
6522
|
// IdmIceEdge,
|
|
6556
6523
|
IdmIceberg: Va,
|
|
6557
6524
|
IdmTropicals: tt,
|
|
6558
|
-
IdmPrecip3h:
|
|
6559
|
-
IdmVisibility:
|
|
6560
|
-
IdmWaterTemp:
|
|
6561
|
-
IdmTemp:
|
|
6562
|
-
IdmArctic:
|
|
6563
|
-
IdmWarZone:
|
|
6564
|
-
IdmGmdssArea:
|
|
6565
|
-
IdmEcaZone:
|
|
6566
|
-
IdmAlertZone:
|
|
6567
|
-
IdmPort:
|
|
6568
|
-
IdmLoadLine:
|
|
6569
|
-
IdmTimezone:
|
|
6570
|
-
IdmVRA:
|
|
6571
|
-
IdmSpecialArea:
|
|
6572
|
-
IdmTerminator:
|
|
6525
|
+
IdmPrecip3h: xi,
|
|
6526
|
+
IdmVisibility: Ai,
|
|
6527
|
+
IdmWaterTemp: Gi,
|
|
6528
|
+
IdmTemp: rr,
|
|
6529
|
+
IdmArctic: yr,
|
|
6530
|
+
IdmWarZone: Jr,
|
|
6531
|
+
IdmGmdssArea: Yr,
|
|
6532
|
+
IdmEcaZone: eo,
|
|
6533
|
+
IdmAlertZone: oo,
|
|
6534
|
+
IdmPort: vo,
|
|
6535
|
+
IdmLoadLine: Lo,
|
|
6536
|
+
IdmTimezone: So,
|
|
6537
|
+
IdmVRA: Po,
|
|
6538
|
+
IdmSpecialArea: Io,
|
|
6539
|
+
IdmTerminator: Ao,
|
|
6573
6540
|
IdmLatLng: at,
|
|
6574
|
-
IdmMeasure:
|
|
6575
|
-
IdmPoint:
|
|
6576
|
-
IdmENC:
|
|
6541
|
+
IdmMeasure: jo,
|
|
6542
|
+
IdmPoint: Gr,
|
|
6543
|
+
IdmENC: qo
|
|
6577
6544
|
},
|
|
6578
6545
|
props: {
|
|
6579
6546
|
map: {
|
|
@@ -6605,6 +6572,7 @@ const es = {
|
|
|
6605
6572
|
meteo: void 0,
|
|
6606
6573
|
source: "",
|
|
6607
6574
|
gateway: "https://cbe.idmwx.com",
|
|
6575
|
+
mapProjection: "mercator",
|
|
6608
6576
|
zoom: 6,
|
|
6609
6577
|
viewport: void 0,
|
|
6610
6578
|
particleFactor: void 0,
|
|
@@ -6630,7 +6598,7 @@ const es = {
|
|
|
6630
6598
|
},
|
|
6631
6599
|
map: {
|
|
6632
6600
|
handler() {
|
|
6633
|
-
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new
|
|
6601
|
+
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Ue(this.map), this.handleRampColorInitial(), console.log(1111, "gl3-map-watch"));
|
|
6634
6602
|
},
|
|
6635
6603
|
immediate: !0
|
|
6636
6604
|
},
|
|
@@ -6642,10 +6610,10 @@ const es = {
|
|
|
6642
6610
|
},
|
|
6643
6611
|
activeWeatherLayers: {
|
|
6644
6612
|
handler() {
|
|
6645
|
-
var t, e, a, r, i, o, n, s, c, h, d, p,
|
|
6613
|
+
var t, e, a, r, i, o, n, s, c, h, d, p, f, m, g, y, u, v;
|
|
6646
6614
|
if (!this.map)
|
|
6647
6615
|
return !1;
|
|
6648
|
-
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"));
|
|
6649
6617
|
},
|
|
6650
6618
|
immediate: !0
|
|
6651
6619
|
}
|
|
@@ -6696,55 +6664,55 @@ const es = {
|
|
|
6696
6664
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
6697
6665
|
let a = 0, r = 0;
|
|
6698
6666
|
if (this.map) {
|
|
6699
|
-
const
|
|
6667
|
+
const f = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, m = (o = this.map) == null ? void 0 : o.getBounds(), g = `${m._sw.lng},${m._sw.lat},${m._ne.lng},${m._ne.lat}`;
|
|
6700
6668
|
if (this.handleRampColorState(), this.particleFactor) {
|
|
6701
|
-
const
|
|
6669
|
+
const y = Ve.WEATHER_LAYERS.find((u) => {
|
|
6702
6670
|
var v;
|
|
6703
6671
|
return ((v = u.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
|
|
6704
6672
|
});
|
|
6705
|
-
this.particleFactor.particle ? this.weatherWeight = this.weatherWeight &
|
|
6673
|
+
this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & y.weight ? this.weatherWeight : this.weatherWeight + y.weight : this.weatherWeight = this.weatherWeight & y.weight ? this.weatherWeight - y.weight : this.weatherWeight;
|
|
6706
6674
|
}
|
|
6707
6675
|
if (this.weatherWeight > 0) {
|
|
6708
|
-
let
|
|
6709
|
-
if (t.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (
|
|
6710
|
-
const v = await
|
|
6676
|
+
let y = this.weatherWeight, u;
|
|
6677
|
+
if (t.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (y -= 256, u.version = Math.random() + 1)), y > 0) {
|
|
6678
|
+
const v = await oe.get(`${this.gateway}/api/arc/weather/layers/links?l=${y}&v=${this.source}&z=${f}&bbox=${g}&t=${this.ts}`, {
|
|
6711
6679
|
headers: {
|
|
6712
6680
|
Authorization: this.token || this.defaultMeteoToken
|
|
6713
6681
|
}
|
|
6714
6682
|
});
|
|
6715
6683
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", r, ", total: ", a += r), ((n = v == null ? void 0 : v.data) == null ? void 0 : n.code) === 0) {
|
|
6716
|
-
const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data,
|
|
6684
|
+
const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, x = [];
|
|
6717
6685
|
for (const _ in b)
|
|
6718
|
-
_ === "ice-edge" && (b[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" &&
|
|
6719
|
-
|
|
6686
|
+
_ === "ice-edge" && (b[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && x.push(
|
|
6687
|
+
oe.get(b[_], {
|
|
6720
6688
|
headers: {
|
|
6721
6689
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6722
6690
|
key: _
|
|
6723
6691
|
},
|
|
6724
6692
|
responseType: /\.(jpg|png)$/.test(b[_]) ? "blob" : "json"
|
|
6725
|
-
}).catch((
|
|
6726
|
-
console.log(`[${_}] fetch layer error: ${
|
|
6693
|
+
}).catch((D) => {
|
|
6694
|
+
console.log(`[${_}] fetch layer error: ${D}`);
|
|
6727
6695
|
})
|
|
6728
6696
|
);
|
|
6729
|
-
const k = await Promise.all(
|
|
6697
|
+
const k = await Promise.all(x);
|
|
6730
6698
|
this.weatherLayers = {}, k.map((_) => {
|
|
6731
|
-
var
|
|
6732
|
-
const
|
|
6733
|
-
|
|
6734
|
-
raw:
|
|
6735
|
-
type: ((
|
|
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,
|
|
6703
|
+
type: ((H = _ == null ? void 0 : _.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
|
|
6736
6704
|
etime: this.ts
|
|
6737
6705
|
});
|
|
6738
|
-
}), b.tropicals &&
|
|
6706
|
+
}), b.tropicals && oe.get(b.tropicals, {
|
|
6739
6707
|
headers: {
|
|
6740
6708
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6741
6709
|
key: "tropicals"
|
|
6742
6710
|
}
|
|
6743
6711
|
}).then((_) => {
|
|
6744
|
-
var
|
|
6745
|
-
const
|
|
6746
|
-
this.weatherLayers[
|
|
6747
|
-
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,
|
|
6748
6716
|
active: !0,
|
|
6749
6717
|
cached: !1,
|
|
6750
6718
|
type: "json",
|
|
@@ -6754,20 +6722,20 @@ const es = {
|
|
|
6754
6722
|
});
|
|
6755
6723
|
}
|
|
6756
6724
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather layers elapsed: ", r, ", total: ", a += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
6757
|
-
const b = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw,
|
|
6725
|
+
const b = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw, x = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
|
|
6758
6726
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
6759
6727
|
type: "json",
|
|
6760
6728
|
direction: b,
|
|
6761
|
-
height: { raw:
|
|
6729
|
+
height: { raw: x },
|
|
6762
6730
|
etime: this.ts
|
|
6763
6731
|
};
|
|
6764
6732
|
}
|
|
6765
6733
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
6766
|
-
const b = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw,
|
|
6734
|
+
const b = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, x = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
|
|
6767
6735
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
6768
6736
|
type: "json",
|
|
6769
6737
|
direction: b,
|
|
6770
|
-
speed: { raw:
|
|
6738
|
+
speed: { raw: x },
|
|
6771
6739
|
etime: this.ts
|
|
6772
6740
|
};
|
|
6773
6741
|
}
|
|
@@ -6786,7 +6754,7 @@ const es = {
|
|
|
6786
6754
|
let n = !1;
|
|
6787
6755
|
if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, n = !0), o) {
|
|
6788
6756
|
if (t.all) {
|
|
6789
|
-
const s = await
|
|
6757
|
+
const s = await oe.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
|
|
6790
6758
|
headers: {
|
|
6791
6759
|
Authorization: this.token || this.defaultMeteoToken
|
|
6792
6760
|
}
|
|
@@ -6795,7 +6763,7 @@ const es = {
|
|
|
6795
6763
|
const c = (a = s == null ? void 0 : s.data) == null ? void 0 : a.data, h = [];
|
|
6796
6764
|
for (const p in c)
|
|
6797
6765
|
h.push(
|
|
6798
|
-
|
|
6766
|
+
oe.get(c[p], {
|
|
6799
6767
|
headers: {
|
|
6800
6768
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6801
6769
|
key: p
|
|
@@ -6804,13 +6772,13 @@ const es = {
|
|
|
6804
6772
|
);
|
|
6805
6773
|
const d = await Promise.all(h);
|
|
6806
6774
|
this.otherLayers = { enc: n }, d.map((p) => {
|
|
6807
|
-
var g,
|
|
6808
|
-
const
|
|
6809
|
-
this.otherLayers[m] =
|
|
6775
|
+
var g, y, u;
|
|
6776
|
+
const f = ((g = p == null ? void 0 : p.data) == null ? void 0 : g.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
|
|
6777
|
+
this.otherLayers[m] = f;
|
|
6810
6778
|
});
|
|
6811
6779
|
}
|
|
6812
6780
|
} else if (t.dayNight && o & 1024) {
|
|
6813
|
-
const s = await
|
|
6781
|
+
const s = await oe.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
6814
6782
|
headers: {
|
|
6815
6783
|
Authorization: this.token || this.defaultMeteoToken
|
|
6816
6784
|
}
|
|
@@ -6819,7 +6787,7 @@ const es = {
|
|
|
6819
6787
|
const c = (i = s == null ? void 0 : s.data) == null ? void 0 : i.data, h = [];
|
|
6820
6788
|
for (const p in c)
|
|
6821
6789
|
h.push(
|
|
6822
|
-
|
|
6790
|
+
oe.get(c[p], {
|
|
6823
6791
|
headers: {
|
|
6824
6792
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6825
6793
|
key: p
|
|
@@ -6827,9 +6795,9 @@ const es = {
|
|
|
6827
6795
|
})
|
|
6828
6796
|
);
|
|
6829
6797
|
(await Promise.all(h)).map((p) => {
|
|
6830
|
-
var g,
|
|
6831
|
-
const
|
|
6832
|
-
this.otherLayers[m] =
|
|
6798
|
+
var g, y, u;
|
|
6799
|
+
const f = ((g = p == null ? void 0 : p.data) == null ? void 0 : g.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
|
|
6800
|
+
this.otherLayers[m] = f;
|
|
6833
6801
|
});
|
|
6834
6802
|
}
|
|
6835
6803
|
}
|
|
@@ -6884,7 +6852,7 @@ const es = {
|
|
|
6884
6852
|
);
|
|
6885
6853
|
},
|
|
6886
6854
|
handleDragEndWithZoom4Json() {
|
|
6887
|
-
var h, d, p,
|
|
6855
|
+
var h, d, p, f;
|
|
6888
6856
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
6889
6857
|
let e = 0, a = 0;
|
|
6890
6858
|
const r = (h = this.map) == null ? void 0 : h.getBounds(), i = this.map.getZoom(), o = Re(r._sw.lng), n = Re(r._ne.lng), s = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
|
|
@@ -6893,25 +6861,25 @@ const es = {
|
|
|
6893
6861
|
this.weatherLayers[m].active = !1, this.weatherLayers[m].version = Math.random() + 1;
|
|
6894
6862
|
let g = [];
|
|
6895
6863
|
if (["swell", "current"].includes(m)) {
|
|
6896
|
-
const
|
|
6897
|
-
for (const u in
|
|
6864
|
+
const y = ((d = this.weatherLayers[m]) == null ? void 0 : d.direction) || {};
|
|
6865
|
+
for (const u in y)
|
|
6898
6866
|
if (u > s && u < c && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6899
|
-
const v =
|
|
6900
|
-
o > n ? v.forEach((b,
|
|
6867
|
+
const v = y[u].lng;
|
|
6868
|
+
o > n ? v.forEach((b, x) => {
|
|
6901
6869
|
var k;
|
|
6902
6870
|
if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6903
6871
|
const _ = C.point([b, u], {
|
|
6904
|
-
val:
|
|
6905
|
-
spd: (k =
|
|
6872
|
+
val: y[u].val[x],
|
|
6873
|
+
spd: (k = y[u].spd) == null ? void 0 : k[x]
|
|
6906
6874
|
});
|
|
6907
6875
|
g.push(_);
|
|
6908
6876
|
}
|
|
6909
|
-
}) : v.forEach((b,
|
|
6877
|
+
}) : v.forEach((b, x) => {
|
|
6910
6878
|
var k;
|
|
6911
6879
|
if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6912
6880
|
const _ = C.point([b, u], {
|
|
6913
|
-
val:
|
|
6914
|
-
spd: (k =
|
|
6881
|
+
val: y[u].val[x],
|
|
6882
|
+
spd: (k = y[u].spd) == null ? void 0 : k[x]
|
|
6915
6883
|
});
|
|
6916
6884
|
g.push(_);
|
|
6917
6885
|
}
|
|
@@ -6923,8 +6891,8 @@ const es = {
|
|
|
6923
6891
|
if (!u.data) {
|
|
6924
6892
|
const v = [];
|
|
6925
6893
|
for (const b in (p = u.raw) == null ? void 0 : p.LineString) {
|
|
6926
|
-
const
|
|
6927
|
-
for (const k of
|
|
6894
|
+
const x = u.raw.LineString[b];
|
|
6895
|
+
for (const k of x)
|
|
6928
6896
|
v.push(
|
|
6929
6897
|
C.lineString(k, {
|
|
6930
6898
|
val: Number(b)
|
|
@@ -6945,12 +6913,12 @@ const es = {
|
|
|
6945
6913
|
if (u) {
|
|
6946
6914
|
if (!u.data) {
|
|
6947
6915
|
const b = [];
|
|
6948
|
-
for (const
|
|
6949
|
-
const k = u.raw.Polygon[
|
|
6916
|
+
for (const x in (f = u.raw) == null ? void 0 : f.Polygon) {
|
|
6917
|
+
const k = u.raw.Polygon[x];
|
|
6950
6918
|
for (const _ of k)
|
|
6951
6919
|
b.push(
|
|
6952
6920
|
C.polygon(_, {
|
|
6953
|
-
val: Number(
|
|
6921
|
+
val: Number(x)
|
|
6954
6922
|
})
|
|
6955
6923
|
);
|
|
6956
6924
|
}
|
|
@@ -6961,23 +6929,23 @@ const es = {
|
|
|
6961
6929
|
}
|
|
6962
6930
|
}
|
|
6963
6931
|
} else if (m === "wind") {
|
|
6964
|
-
const
|
|
6965
|
-
for (const u in
|
|
6932
|
+
const y = this.weatherLayers.wind.raw;
|
|
6933
|
+
for (const u in y)
|
|
6966
6934
|
if (u > s && u < c && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6967
|
-
const v =
|
|
6968
|
-
o > n ? v.forEach((b,
|
|
6935
|
+
const v = y[u].lng;
|
|
6936
|
+
o > n ? v.forEach((b, x) => {
|
|
6969
6937
|
if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6970
6938
|
const k = C.point([b, u], {
|
|
6971
|
-
val:
|
|
6972
|
-
spd:
|
|
6939
|
+
val: y[u].val[x],
|
|
6940
|
+
spd: y[u].spd[x]
|
|
6973
6941
|
});
|
|
6974
6942
|
g.push(k);
|
|
6975
6943
|
}
|
|
6976
|
-
}) : v.forEach((b,
|
|
6944
|
+
}) : v.forEach((b, x) => {
|
|
6977
6945
|
if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6978
6946
|
const k = C.point([b, u], {
|
|
6979
|
-
val:
|
|
6980
|
-
spd:
|
|
6947
|
+
val: y[u].val[x],
|
|
6948
|
+
spd: y[u].spd[x]
|
|
6981
6949
|
});
|
|
6982
6950
|
g.push(k);
|
|
6983
6951
|
}
|
|
@@ -6988,14 +6956,14 @@ const es = {
|
|
|
6988
6956
|
if (this.weatherLayers[m].data)
|
|
6989
6957
|
g = this.weatherLayers[m].data;
|
|
6990
6958
|
else {
|
|
6991
|
-
const
|
|
6992
|
-
if (
|
|
6959
|
+
const y = this.weatherLayers[m].raw;
|
|
6960
|
+
if (y) {
|
|
6993
6961
|
const u = [];
|
|
6994
|
-
for (const v in
|
|
6995
|
-
const b =
|
|
6996
|
-
for (const
|
|
6962
|
+
for (const v in y.Polygon) {
|
|
6963
|
+
const b = y.Polygon[v];
|
|
6964
|
+
for (const x of b)
|
|
6997
6965
|
u.push(
|
|
6998
|
-
C.polygon(
|
|
6966
|
+
C.polygon(x, {
|
|
6999
6967
|
val: Number(v)
|
|
7000
6968
|
})
|
|
7001
6969
|
);
|
|
@@ -7008,24 +6976,24 @@ const es = {
|
|
|
7008
6976
|
if (this.weatherLayers[m].data)
|
|
7009
6977
|
g = this.weatherLayers[m].data;
|
|
7010
6978
|
else {
|
|
7011
|
-
const
|
|
7012
|
-
if (
|
|
6979
|
+
const y = this.weatherLayers[m].raw;
|
|
6980
|
+
if (y) {
|
|
7013
6981
|
const u = [];
|
|
7014
|
-
for (const v in
|
|
7015
|
-
const b =
|
|
7016
|
-
for (const
|
|
6982
|
+
for (const v in y.LineString) {
|
|
6983
|
+
const b = y.LineString[v];
|
|
6984
|
+
for (const x of b)
|
|
7017
6985
|
u.push(
|
|
7018
|
-
C.lineString(
|
|
6986
|
+
C.lineString(x, {
|
|
7019
6987
|
val: Number(v)
|
|
7020
6988
|
})
|
|
7021
6989
|
);
|
|
7022
6990
|
}
|
|
7023
|
-
for (const v in
|
|
7024
|
-
|
|
6991
|
+
for (const v in y.Point)
|
|
6992
|
+
y.Point[v].lng.forEach((b, x) => {
|
|
7025
6993
|
b = Re(b), u.push(
|
|
7026
6994
|
C.point([b, v], {
|
|
7027
|
-
val:
|
|
7028
|
-
type:
|
|
6995
|
+
val: y.Point[v].val[x],
|
|
6996
|
+
type: y.Point[v].type[x]
|
|
7029
6997
|
})
|
|
7030
6998
|
);
|
|
7031
6999
|
});
|
|
@@ -7037,14 +7005,14 @@ const es = {
|
|
|
7037
7005
|
if (this.weatherLayers[m].data)
|
|
7038
7006
|
g = this.weatherLayers[m].data;
|
|
7039
7007
|
else {
|
|
7040
|
-
const
|
|
7041
|
-
if (
|
|
7008
|
+
const y = this.weatherLayers[m].raw;
|
|
7009
|
+
if (y) {
|
|
7042
7010
|
const u = [];
|
|
7043
|
-
for (const v in
|
|
7044
|
-
const b =
|
|
7045
|
-
for (const
|
|
7011
|
+
for (const v in y.LineString) {
|
|
7012
|
+
const b = y.LineString[v];
|
|
7013
|
+
for (const x of b)
|
|
7046
7014
|
u.push(
|
|
7047
|
-
C.lineString(
|
|
7015
|
+
C.lineString(x, {
|
|
7048
7016
|
val: Number(v)
|
|
7049
7017
|
})
|
|
7050
7018
|
);
|
|
@@ -7087,8 +7055,8 @@ const es = {
|
|
|
7087
7055
|
this.handleBeforeLayerToggle();
|
|
7088
7056
|
},
|
|
7089
7057
|
handleBeforeLayerToggle() {
|
|
7090
|
-
var t, e, a, r, i, o, n, s, c, h, d, p,
|
|
7091
|
-
(t = this.map) != null && t.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (a = this.otherLayers) != null && a["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (s = this.otherLayers) != null && s.pirates || (c = this.otherLayers) != null && c.ports || (h = this.otherLayers) != null && h.enc || (d = this.otherLayers) != null && d["voluntary-reporting-area"] || (p = this.otherLayers) != null && p["eca-zones"] || (
|
|
7058
|
+
var t, e, a, r, i, o, n, s, c, h, d, p, f;
|
|
7059
|
+
(t = this.map) != null && t.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (a = this.otherLayers) != null && a["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (s = this.otherLayers) != null && s.pirates || (c = this.otherLayers) != null && c.ports || (h = this.otherLayers) != null && h.enc || (d = this.otherLayers) != null && d["voluntary-reporting-area"] || (p = this.otherLayers) != null && p["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
7092
7060
|
},
|
|
7093
7061
|
handleDateChange(t = { tropicals: !1 }) {
|
|
7094
7062
|
this.fetchWeatherLayers(t), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -7123,7 +7091,7 @@ const es = {
|
|
|
7123
7091
|
ts: e.utc().format(),
|
|
7124
7092
|
wt: !0,
|
|
7125
7093
|
src: this.source
|
|
7126
|
-
}, r = await
|
|
7094
|
+
}, r = await oe.get(`${this.gateway}/api/arc/meteo/query`, {
|
|
7127
7095
|
params: a,
|
|
7128
7096
|
headers: {
|
|
7129
7097
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -7135,24 +7103,26 @@ const es = {
|
|
|
7135
7103
|
});
|
|
7136
7104
|
},
|
|
7137
7105
|
handle3dToggle(t) {
|
|
7138
|
-
|
|
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)));
|
|
7139
7108
|
},
|
|
7140
7109
|
handleParticle(t) {
|
|
7141
7110
|
this.particleFactor = t, this.fetchWeatherLayers({ tropicals: !1 });
|
|
7142
7111
|
}
|
|
7143
7112
|
}
|
|
7144
|
-
},
|
|
7113
|
+
}, Qo = {
|
|
7145
7114
|
key: 0,
|
|
7146
7115
|
className: "map-gl-home"
|
|
7147
7116
|
};
|
|
7148
|
-
function
|
|
7149
|
-
var q, fe, Y,
|
|
7150
|
-
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"),
|
|
7151
|
-
return a.map ? (
|
|
7117
|
+
function Ko(t, e, a, r, i, o) {
|
|
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");
|
|
7120
|
+
return a.map ? (w(), L("div", Qo, [
|
|
7152
7121
|
P(n, E({
|
|
7153
7122
|
ref: "layer",
|
|
7154
7123
|
map: a.map,
|
|
7155
|
-
"toggle-version": i.toggleVersion
|
|
7124
|
+
"toggle-version": i.toggleVersion,
|
|
7125
|
+
"map-projection": i.mapProjection
|
|
7156
7126
|
}, t.$attrs, {
|
|
7157
7127
|
onWeather: o.handleWeatherLayerChange,
|
|
7158
7128
|
onOther: o.handleOtherLayerChange,
|
|
@@ -7161,7 +7131,7 @@ function as(t, e, a, r, i, o) {
|
|
|
7161
7131
|
onPoint: e[2] || (e[2] = (K) => i.showPoint = K),
|
|
7162
7132
|
on3d: o.handle3dToggle,
|
|
7163
7133
|
onToggleVersion: e[3] || (e[3] = (K) => i.toggleVersion = K)
|
|
7164
|
-
}), null, 16, ["map", "toggle-version", "onWeather", "onOther", "on3d"]),
|
|
7134
|
+
}), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d"]),
|
|
7165
7135
|
P(s, E({
|
|
7166
7136
|
map: a.map,
|
|
7167
7137
|
token: a.token,
|
|
@@ -7182,7 +7152,7 @@ function as(t, e, a, r, i, o) {
|
|
|
7182
7152
|
}, t.$attrs), null, 16, ["map", "swell", "before-layer"]),
|
|
7183
7153
|
P(d, E({
|
|
7184
7154
|
map: a.map,
|
|
7185
|
-
prmsl: (
|
|
7155
|
+
prmsl: (I = i.weatherLayers) == null ? void 0 : I.prmsl,
|
|
7186
7156
|
"before-layer": a.beforeLayer,
|
|
7187
7157
|
"active-weather-layers": i.activeWeatherLayers
|
|
7188
7158
|
}, t.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
@@ -7191,7 +7161,7 @@ function as(t, e, a, r, i, o) {
|
|
|
7191
7161
|
iceberg: (F = i.weatherLayers) == null ? void 0 : F.iceberg,
|
|
7192
7162
|
"before-layer": a.beforeLayer
|
|
7193
7163
|
}, t.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
7194
|
-
P(
|
|
7164
|
+
P(f, E({
|
|
7195
7165
|
map: a.map,
|
|
7196
7166
|
date: a.ts,
|
|
7197
7167
|
tropicals: (ge = i.weatherLayers) == null ? void 0 : ge.tropicals,
|
|
@@ -7199,24 +7169,26 @@ function as(t, e, a, r, i, o) {
|
|
|
7199
7169
|
}, t.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
7200
7170
|
P(m, E({
|
|
7201
7171
|
map: a.map,
|
|
7172
|
+
"map-projection": i.mapProjection,
|
|
7202
7173
|
current: (Q = i.weatherLayers) == null ? void 0 : Q.current,
|
|
7203
7174
|
"before-layer": a.beforeLayer,
|
|
7204
7175
|
"show-particle": i.showCurrentParticle,
|
|
7205
7176
|
"margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
|
|
7206
7177
|
"toggle-version": i.toggleVersion,
|
|
7207
7178
|
"weather-layers": i.weatherLayers
|
|
7208
|
-
}, t.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
|
|
7179
|
+
}, t.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
|
|
7209
7180
|
P(g, E({
|
|
7210
7181
|
viewport: i.viewport,
|
|
7211
7182
|
factor: (be = i.weatherLayers) == null ? void 0 : be["current-particle"],
|
|
7212
7183
|
"before-layer": a.beforeLayer,
|
|
7213
7184
|
"toggle-version": i.toggleVersion
|
|
7214
7185
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7215
|
-
P(
|
|
7186
|
+
P(y, E({
|
|
7216
7187
|
ref: "windBarb",
|
|
7217
7188
|
map: a.map,
|
|
7218
|
-
|
|
7219
|
-
|
|
7189
|
+
"map-projection": i.mapProjection,
|
|
7190
|
+
wind: (ae = i.weatherLayers) == null ? void 0 : ae.wind,
|
|
7191
|
+
current: (ie = i.weatherLayers) == null ? void 0 : ie.current,
|
|
7220
7192
|
"before-layer": a.beforeLayer,
|
|
7221
7193
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
7222
7194
|
"show-particle": i.showWindParticle
|
|
@@ -7224,10 +7196,10 @@ function as(t, e, a, r, i, o) {
|
|
|
7224
7196
|
"toggle-version": i.toggleVersion,
|
|
7225
7197
|
"weather-layers": i.weatherLayers,
|
|
7226
7198
|
onParticle: o.handleParticle
|
|
7227
|
-
}), null, 16, ["map", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
|
|
7199
|
+
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
|
|
7228
7200
|
P(u, E({
|
|
7229
7201
|
viewport: i.viewport,
|
|
7230
|
-
factor: (
|
|
7202
|
+
factor: (re = i.weatherLayers) == null ? void 0 : re["wind-particle"],
|
|
7231
7203
|
"before-layer": a.beforeLayer,
|
|
7232
7204
|
"toggle-version": i.toggleVersion
|
|
7233
7205
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
@@ -7243,7 +7215,7 @@ function as(t, e, a, r, i, o) {
|
|
|
7243
7215
|
"before-layer": a.beforeLayer,
|
|
7244
7216
|
"toggle-version": i.toggleVersion
|
|
7245
7217
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7246
|
-
P(
|
|
7218
|
+
P(x, E({
|
|
7247
7219
|
viewport: i.viewport,
|
|
7248
7220
|
factor: (ze = i.weatherLayers) == null ? void 0 : ze["water-temp"],
|
|
7249
7221
|
"before-layer": a.beforeLayer,
|
|
@@ -7261,19 +7233,19 @@ function as(t, e, a, r, i, o) {
|
|
|
7261
7233
|
"before-layer": a.beforeLayer,
|
|
7262
7234
|
"toggle-version": i.toggleVersion
|
|
7263
7235
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7264
|
-
P(
|
|
7236
|
+
P(D, E({
|
|
7265
7237
|
map: a.map,
|
|
7266
|
-
zone: (
|
|
7238
|
+
zone: (Ee = i.otherLayers) == null ? void 0 : Ee["war-zones"],
|
|
7267
7239
|
"before-layer": a.beforeLayer
|
|
7268
7240
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7269
|
-
P(
|
|
7241
|
+
P(A, E({
|
|
7270
7242
|
map: a.map,
|
|
7271
|
-
area: (
|
|
7243
|
+
area: (Ie = i.otherLayers) == null ? void 0 : Ie["gmdss-areas"],
|
|
7272
7244
|
"before-layer": a.beforeLayer
|
|
7273
7245
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7274
|
-
P(
|
|
7246
|
+
P(B, E({
|
|
7275
7247
|
map: a.map,
|
|
7276
|
-
zone: (
|
|
7248
|
+
zone: (We = i.otherLayers) == null ? void 0 : We["eca-zones"],
|
|
7277
7249
|
"before-layer": a.beforeLayer
|
|
7278
7250
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7279
7251
|
P(W, E({
|
|
@@ -7286,14 +7258,14 @@ function as(t, e, a, r, i, o) {
|
|
|
7286
7258
|
port: (Ze = i.otherLayers) == null ? void 0 : Ze.ports,
|
|
7287
7259
|
"before-layer": a.beforeLayer
|
|
7288
7260
|
}, t.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
7289
|
-
P(
|
|
7261
|
+
P(H, E({
|
|
7290
7262
|
map: a.map,
|
|
7291
|
-
line: (
|
|
7263
|
+
line: (Je = i.otherLayers) == null ? void 0 : Je["load-lines"],
|
|
7292
7264
|
"before-layer": a.beforeLayer
|
|
7293
7265
|
}, t.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
7294
|
-
P(
|
|
7266
|
+
P(he, E({
|
|
7295
7267
|
map: a.map,
|
|
7296
|
-
zone: (
|
|
7268
|
+
zone: (Xe = i.otherLayers) == null ? void 0 : Xe["time-zones"],
|
|
7297
7269
|
"before-layer": a.beforeLayer
|
|
7298
7270
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7299
7271
|
P(de, E({
|
|
@@ -7319,26 +7291,26 @@ function as(t, e, a, r, i, o) {
|
|
|
7319
7291
|
map: a.map,
|
|
7320
7292
|
show: i.showMeasure
|
|
7321
7293
|
}, t.$attrs), null, 16, ["map", "show"]),
|
|
7322
|
-
P(
|
|
7294
|
+
P(J, E({
|
|
7323
7295
|
map: a.map,
|
|
7324
7296
|
show: i.showPoint,
|
|
7325
7297
|
meteo: i.meteo
|
|
7326
7298
|
}, t.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
|
|
7327
|
-
])) :
|
|
7299
|
+
])) : $("", !0);
|
|
7328
7300
|
}
|
|
7329
|
-
const
|
|
7301
|
+
const es = /* @__PURE__ */ T(Yo, [["render", Ko]]), cs = {
|
|
7330
7302
|
install(t) {
|
|
7331
|
-
t.component("MapboxGL",
|
|
7303
|
+
t.component("MapboxGL", es), t.component("TropicalGL", tt), t.component("LatLngGL", at);
|
|
7332
7304
|
}
|
|
7333
7305
|
};
|
|
7334
7306
|
export {
|
|
7335
7307
|
at as LatLngGL,
|
|
7336
|
-
|
|
7337
|
-
|
|
7308
|
+
es as MapboxGL,
|
|
7309
|
+
cs as MapboxGLPlugin,
|
|
7338
7310
|
Qt as MapboxHelper,
|
|
7339
7311
|
V as ParticleSchema,
|
|
7340
7312
|
tt as TropicalGL,
|
|
7341
|
-
|
|
7313
|
+
Ue as Viewport,
|
|
7342
7314
|
ve as WebGL,
|
|
7343
|
-
|
|
7315
|
+
N as WebGLSchema
|
|
7344
7316
|
};
|