@idmwx/idmui-gl3 4.3.9 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -2,13 +2,13 @@ var Fe = Object.defineProperty;
|
|
|
2
2
|
var $e = (a, e, t) => e in a ? Fe(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
3
|
var I = (a, e, t) => ($e(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import { LayerHelper as Pe, CompanyHelper as Ce, convertToStandardLng as we } from "@idmwx/idmwx-base";
|
|
5
|
-
import { resolveComponent as z, openBlock as x, createElementBlock as _, createElementVNode as l, normalizeStyle as $, normalizeClass as M, Fragment as xe, renderList as _e, toDisplayString as S, createVNode as P, withCtx as
|
|
5
|
+
import { resolveComponent as z, openBlock as x, createElementBlock as _, createElementVNode as l, normalizeStyle as $, normalizeClass as M, Fragment as xe, renderList as _e, toDisplayString as S, createVNode as P, withCtx as Ve, createTextVNode as Oe, createCommentVNode as B, withDirectives as Se, createStaticVNode as Ue, vShow as ke, mergeProps as E } from "vue";
|
|
6
6
|
import * as C from "@turf/turf";
|
|
7
7
|
import Ze from "@mapbox/sphericalmercator";
|
|
8
8
|
import Z from "moment";
|
|
9
|
-
import
|
|
10
|
-
import { TropicalHelper as Ne, LngLatHelper as F, LaneHelper as
|
|
11
|
-
import
|
|
9
|
+
import Q from "mapbox-gl";
|
|
10
|
+
import { TropicalHelper as Ne, LngLatHelper as F, LaneHelper as Y } from "@idm-plugin/geo";
|
|
11
|
+
import ie from "axios";
|
|
12
12
|
const T = (a, e) => {
|
|
13
13
|
const t = a.__vccOpts || a;
|
|
14
14
|
for (const [r, i] of e)
|
|
@@ -27,7 +27,7 @@ const T = (a, e) => {
|
|
|
27
27
|
type: Number,
|
|
28
28
|
default: 60
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
layerToggle: {
|
|
31
31
|
type: Boolean,
|
|
32
32
|
default: !1
|
|
33
33
|
},
|
|
@@ -39,10 +39,9 @@ const T = (a, e) => {
|
|
|
39
39
|
default: void 0
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
emits: ["weather", "other", "coordinate", "measure", "point", "3d", "
|
|
42
|
+
emits: ["weather", "other", "coordinate", "measure", "point", "3d", "layerToggle", "handleToggleVersion"],
|
|
43
43
|
data() {
|
|
44
44
|
return {
|
|
45
|
-
showLayers: !1,
|
|
46
45
|
source: "",
|
|
47
46
|
weatherLayers: [],
|
|
48
47
|
activeWeatherLayers: [],
|
|
@@ -77,19 +76,11 @@ const T = (a, e) => {
|
|
|
77
76
|
}
|
|
78
77
|
},
|
|
79
78
|
watch: {
|
|
80
|
-
|
|
81
|
-
handler() {
|
|
82
|
-
this.$nextTick(() => {
|
|
83
|
-
var a;
|
|
84
|
-
this.$emit("menu", this.showLayers ? !1 : this.toggleMenu), this.$emit("toggleVersion", Math.random()), this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
toggleMenu: {
|
|
79
|
+
toggleVersion: {
|
|
89
80
|
handler() {
|
|
90
81
|
this.$nextTick(() => {
|
|
91
82
|
var a;
|
|
92
|
-
this.
|
|
83
|
+
this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
|
|
93
84
|
});
|
|
94
85
|
}
|
|
95
86
|
}
|
|
@@ -132,13 +123,13 @@ const T = (a, e) => {
|
|
|
132
123
|
this.otherLayers.some((e) => e.key === a.key) ? this.otherLayers = this.otherLayers.filter((e) => e.key !== a.key) : a.enabled && this.otherLayers.push(a), localStorage.setItem(this.otherLayersCache, JSON.stringify(this.otherLayers)), this.$emit("other", this.otherLayers);
|
|
133
124
|
},
|
|
134
125
|
handleMenuToggle() {
|
|
135
|
-
this
|
|
126
|
+
this.$emit("layerToggle", !this.layerToggle);
|
|
136
127
|
},
|
|
137
128
|
handleCoordToggle() {
|
|
138
129
|
this.showCoord = !this.showCoord, this.$emit("coordinate", this.showCoord);
|
|
139
130
|
},
|
|
140
131
|
handlePointToggle() {
|
|
141
|
-
this.isLogin ? (this.showPoint = !this.showPoint, this.$emit("point", this.showPoint)) : this.$emit("
|
|
132
|
+
this.isLogin ? (this.showPoint = !this.showPoint, this.$emit("point", this.showPoint)) : this.$emit("handleToggleVersion");
|
|
142
133
|
},
|
|
143
134
|
handleMeasureToggle() {
|
|
144
135
|
this.showMeasure = !this.showMeasure, this.$emit("measure", this.showMeasure);
|
|
@@ -163,7 +154,7 @@ function nt(a, e, t, r, i, o) {
|
|
|
163
154
|
}, [
|
|
164
155
|
l("div", Je, [
|
|
165
156
|
l("div", {
|
|
166
|
-
class: M(
|
|
157
|
+
class: M(t.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
167
158
|
onClick: e[0] || (e[0] = (...s) => o.handleMenuToggle && o.handleMenuToggle(...s))
|
|
168
159
|
}, e[8] || (e[8] = [
|
|
169
160
|
l("span", { class: "iconfont" }, "", -1)
|
|
@@ -216,20 +207,20 @@ function nt(a, e, t, r, i, o) {
|
|
|
216
207
|
], 4),
|
|
217
208
|
l("div", {
|
|
218
209
|
class: "available-layers flex-center",
|
|
219
|
-
style: $({ top: t.top + "px", right:
|
|
210
|
+
style: $({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
|
|
220
211
|
}, [
|
|
221
212
|
l("div", {
|
|
222
213
|
class: "side-bar",
|
|
223
|
-
style: $({ right:
|
|
214
|
+
style: $({ right: t.layerToggle ? "0px" : "-240px" }),
|
|
224
215
|
onClick: e[5] || (e[5] = (...s) => o.handleMenuToggle && o.handleMenuToggle(...s))
|
|
225
216
|
}, e[14] || (e[14] = [
|
|
226
217
|
l("i", { class: "iconfont" }, "", -1)
|
|
227
218
|
]), 4),
|
|
228
219
|
l("div", {
|
|
229
|
-
class: M(["list-box",
|
|
220
|
+
class: M(["list-box", t.layerToggle ? "right-bar" : ""])
|
|
230
221
|
}, [
|
|
231
222
|
P(n, { style: { flex: "1" } }, {
|
|
232
|
-
default:
|
|
223
|
+
default: Ve(() => [
|
|
233
224
|
l("div", Ye, [
|
|
234
225
|
l("div", Qe, [
|
|
235
226
|
l("div", null, [
|
|
@@ -387,22 +378,22 @@ const ct = {
|
|
|
387
378
|
else {
|
|
388
379
|
this.map.addSource(this.source, { type: "geojson", data: s });
|
|
389
380
|
for (let c = 0; c < (this.barbs ?? []).length - 1; c++) {
|
|
390
|
-
const h = (this.barbs ?? [])[c] || 0,
|
|
381
|
+
const h = (this.barbs ?? [])[c] || 0, d = (this.barbs ?? [])[c + 1] || 0, p = h < 10 ? `00${h}kts` : h < 100 ? `0${h}kts` : `${h}kts`;
|
|
391
382
|
this.map.addLayer(
|
|
392
383
|
{
|
|
393
|
-
id:
|
|
384
|
+
id: p,
|
|
394
385
|
type: "symbol",
|
|
395
386
|
filter: [
|
|
396
387
|
"all",
|
|
397
388
|
// @ts-ignore
|
|
398
389
|
[">=", "spd", h],
|
|
399
390
|
// @ts-ignore
|
|
400
|
-
["<", "spd",
|
|
391
|
+
["<", "spd", d]
|
|
401
392
|
],
|
|
402
393
|
source: this.source,
|
|
403
394
|
layout: {
|
|
404
395
|
"symbol-placement": "point",
|
|
405
|
-
"icon-image":
|
|
396
|
+
"icon-image": p,
|
|
406
397
|
// mapbox sprite
|
|
407
398
|
"icon-size": 0.14,
|
|
408
399
|
"icon-offset": [0, -20],
|
|
@@ -445,10 +436,10 @@ const ct = {
|
|
|
445
436
|
this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
|
|
446
437
|
}
|
|
447
438
|
}
|
|
448
|
-
}, ht = { key: 0 },
|
|
439
|
+
}, ht = { key: 0 }, dt = {
|
|
449
440
|
key: 0,
|
|
450
441
|
class: "iconfont active"
|
|
451
|
-
},
|
|
442
|
+
}, pt = {
|
|
452
443
|
key: 1,
|
|
453
444
|
class: "iconfont"
|
|
454
445
|
}, mt = {
|
|
@@ -470,7 +461,7 @@ function yt(a, e, t, r, i, o) {
|
|
|
470
461
|
class: "flex-start",
|
|
471
462
|
onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
|
|
472
463
|
}, [
|
|
473
|
-
t.showParticle ? (x(), _("i",
|
|
464
|
+
t.showParticle ? (x(), _("i", dt, "")) : (x(), _("i", pt, "")),
|
|
474
465
|
l("span", {
|
|
475
466
|
class: M(t.showParticle ? "active" : "")
|
|
476
467
|
}, "Wind Particles", 2)
|
|
@@ -535,8 +526,8 @@ class Te {
|
|
|
535
526
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
536
527
|
*/
|
|
537
528
|
getBoundPixel() {
|
|
538
|
-
const e = this.map.getBounds(), t = 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,
|
|
539
|
-
return [
|
|
529
|
+
const e = this.map.getBounds(), t = 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]], t), [p, g] = this.mercator.px([s, i[1]], t), u = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
|
|
530
|
+
return [p, g, h + u, d];
|
|
540
531
|
}
|
|
541
532
|
/**
|
|
542
533
|
* [视窗边界像素宽度]
|
|
@@ -551,13 +542,13 @@ class Te {
|
|
|
551
542
|
* @param zoom
|
|
552
543
|
*/
|
|
553
544
|
getWorldCopy(e, t) {
|
|
554
|
-
const r = 2 ** t, [i, o, n, s] = e.map((
|
|
555
|
-
for (let
|
|
556
|
-
for (let
|
|
557
|
-
c.push([
|
|
558
|
-
return c.map((
|
|
559
|
-
const
|
|
560
|
-
return [
|
|
545
|
+
const r = 2 ** t, [i, o, n, s] = e.map((d) => ~~(d / (r * 256))), c = [];
|
|
546
|
+
for (let d = s; d <= o; d++)
|
|
547
|
+
for (let p = i; p <= n; p++)
|
|
548
|
+
c.push([p, d]);
|
|
549
|
+
return c.map((d) => {
|
|
550
|
+
const p = 2 ** t * 256;
|
|
551
|
+
return [d[0] * p, d[1] * p, p];
|
|
561
552
|
});
|
|
562
553
|
}
|
|
563
554
|
resize() {
|
|
@@ -660,8 +651,8 @@ class ye {
|
|
|
660
651
|
const s = n.getContext("2d");
|
|
661
652
|
if (s && e) {
|
|
662
653
|
const c = s == null ? void 0 : s.createLinearGradient(0, 0, 256, 0);
|
|
663
|
-
return t.forEach(([h,
|
|
664
|
-
c.addColorStop(h,
|
|
654
|
+
return t.forEach(([h, d]) => {
|
|
655
|
+
c.addColorStop(h, d);
|
|
665
656
|
}), s.fillStyle = c, s.fillRect(0, 0, 256, 1), {
|
|
666
657
|
canvas: n,
|
|
667
658
|
texture: this.createTexture(
|
|
@@ -678,11 +669,11 @@ class ye {
|
|
|
678
669
|
}
|
|
679
670
|
setupParticle(e, t = 1e3) {
|
|
680
671
|
const r = Math.ceil(Math.sqrt(t)), i = r * r, o = new Uint8Array(i * 4);
|
|
681
|
-
for (let
|
|
682
|
-
o[
|
|
672
|
+
for (let d = 0; d < o.length; d++)
|
|
673
|
+
o[d] = Math.floor(Math.random() * 256);
|
|
683
674
|
const n = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), c = new Float32Array(i);
|
|
684
|
-
for (let
|
|
685
|
-
c[
|
|
675
|
+
for (let d = 0; d < i; d++)
|
|
676
|
+
c[d] = d;
|
|
686
677
|
const h = this.createDataBuffer(e, "array", c);
|
|
687
678
|
return { resolution: r, total: i, texture0: n, texture1: s, indexBuffer: h };
|
|
688
679
|
}
|
|
@@ -699,16 +690,16 @@ class ye {
|
|
|
699
690
|
return {};
|
|
700
691
|
}
|
|
701
692
|
bindParticle(e, t, r, i, o, n) {
|
|
702
|
-
const s = this.createProgramWrapper(e, t, r), c = this.createProgramWrapper(e, i, o), h = this.createProgramWrapper(e, i, n),
|
|
703
|
-
return { particle: s, screen: c, update: h, quadBuffer:
|
|
693
|
+
const s = this.createProgramWrapper(e, t, r), c = this.createProgramWrapper(e, i, o), h = this.createProgramWrapper(e, i, n), d = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), p = e.createFramebuffer();
|
|
694
|
+
return { particle: s, screen: c, update: h, quadBuffer: d, frameBuffer: p };
|
|
704
695
|
}
|
|
705
696
|
draw(e, t, r, i, o, n, s) {
|
|
706
697
|
var c, h;
|
|
707
698
|
if (t && r) {
|
|
708
699
|
e.resize(), t == null || t.viewport(0, 0, (c = t == null ? void 0 : t.canvas) == null ? void 0 : c.width, (h = t == null ? void 0 : t.canvas) == null ? void 0 : h.height), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT);
|
|
709
700
|
try {
|
|
710
|
-
const
|
|
711
|
-
if (t.useProgram(r), t.uniform2f(
|
|
701
|
+
const d = t.getUniformLocation(r, "u_resolution"), p = t.getUniformLocation(r, "u_image"), g = t.getUniformLocation(r, "u_color");
|
|
702
|
+
if (t.useProgram(r), t.uniform2f(d, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), t.uniform1i(p, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, o), t.uniform1i(g, 1), s != null && s.uvRange && (s != null && s.sRange)) {
|
|
712
703
|
const m = t.getUniformLocation(r, "u_range_u_v"), v = t.getUniformLocation(r, "u_range_s");
|
|
713
704
|
t.uniform2f(m, s.uvRange[0], s.uvRange[1]), t.uniform2f(v, s.sRange[0], s.sRange[1]);
|
|
714
705
|
}
|
|
@@ -717,8 +708,8 @@ class ye {
|
|
|
717
708
|
const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio, w = m[2] * e.ratio, [k, L, D, A] = [v, w + v, b, w + b], O = new Float32Array([k, D, L, D, k, A, k, A, L, D, L, A]);
|
|
718
709
|
t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, O, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
719
710
|
}
|
|
720
|
-
} catch (
|
|
721
|
-
console.log(`render failed...${
|
|
711
|
+
} catch (d) {
|
|
712
|
+
console.log(`render failed...${d}`);
|
|
722
713
|
}
|
|
723
714
|
}
|
|
724
715
|
}
|
|
@@ -811,9 +802,9 @@ I(N, "fragmentSchema", `
|
|
|
811
802
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
812
803
|
gl_FragColor = color;
|
|
813
804
|
}`);
|
|
814
|
-
class
|
|
805
|
+
class U {
|
|
815
806
|
}
|
|
816
|
-
I(
|
|
807
|
+
I(U, "vertexSchema", `
|
|
817
808
|
precision mediump float;
|
|
818
809
|
|
|
819
810
|
attribute float a_index; // 索引
|
|
@@ -837,7 +828,7 @@ I(V, "vertexSchema", `
|
|
|
837
828
|
gl_PointSize = 1.0;
|
|
838
829
|
// gl_PointSize = u_point;
|
|
839
830
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
840
|
-
}`), I(
|
|
831
|
+
}`), I(U, "fragmentSchema", `
|
|
841
832
|
precision mediump float;
|
|
842
833
|
|
|
843
834
|
uniform sampler2D u_factor;
|
|
@@ -859,7 +850,7 @@ I(V, "vertexSchema", `
|
|
|
859
850
|
|
|
860
851
|
float f = 1.0 - uv.b;
|
|
861
852
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
862
|
-
}`), I(
|
|
853
|
+
}`), I(U, "quadVertSchema", `
|
|
863
854
|
precision mediump float;
|
|
864
855
|
|
|
865
856
|
attribute vec2 a_pos;
|
|
@@ -869,7 +860,7 @@ I(V, "vertexSchema", `
|
|
|
869
860
|
void main() {
|
|
870
861
|
v_tex_pos = a_pos;
|
|
871
862
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
872
|
-
}`), I(
|
|
863
|
+
}`), I(U, "screenFragmentSchema", `
|
|
873
864
|
precision mediump float;
|
|
874
865
|
|
|
875
866
|
uniform sampler2D u_screen;
|
|
@@ -881,7 +872,7 @@ I(V, "vertexSchema", `
|
|
|
881
872
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
882
873
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
883
874
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
884
|
-
}`), I(
|
|
875
|
+
}`), I(U, "updateFragmentSchema", `
|
|
885
876
|
precision mediump float;
|
|
886
877
|
|
|
887
878
|
uniform sampler2D u_particles;
|
|
@@ -2692,11 +2683,11 @@ const bt = {
|
|
|
2692
2683
|
];
|
|
2693
2684
|
this.wrapper = this.webgl.bindParticle(
|
|
2694
2685
|
this.particleContext,
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2686
|
+
U.vertexSchema,
|
|
2687
|
+
U.fragmentSchema,
|
|
2688
|
+
U.quadVertSchema,
|
|
2689
|
+
U.screenFragmentSchema,
|
|
2690
|
+
U.updateFragmentSchema
|
|
2700
2691
|
), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
|
|
2701
2692
|
}
|
|
2702
2693
|
},
|
|
@@ -3070,11 +3061,11 @@ const Rt = {
|
|
|
3070
3061
|
];
|
|
3071
3062
|
this.wrapper = this.webgl.bindParticle(
|
|
3072
3063
|
this.particleContext,
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3064
|
+
U.vertexSchema,
|
|
3065
|
+
U.fragmentSchema,
|
|
3066
|
+
U.quadVertSchema,
|
|
3067
|
+
U.screenFragmentSchema,
|
|
3068
|
+
U.updateFragmentSchema
|
|
3078
3069
|
), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = {
|
|
3079
3070
|
...this.wrapper,
|
|
3080
3071
|
...this.webgl.setupParticle(this.particleContext, 12e3),
|
|
@@ -3509,7 +3500,7 @@ const jt = /* @__PURE__ */ T(Ot, [["render", Nt]]), Wt = {
|
|
|
3509
3500
|
function Ft(a, e, t, r, i, o) {
|
|
3510
3501
|
return x(), _("div");
|
|
3511
3502
|
}
|
|
3512
|
-
const $t = /* @__PURE__ */ T(Wt, [["render", Ft]]),
|
|
3503
|
+
const $t = /* @__PURE__ */ T(Wt, [["render", Ft]]), Vt = {
|
|
3513
3504
|
name: "IdmIceberg",
|
|
3514
3505
|
props: {
|
|
3515
3506
|
map: {
|
|
@@ -3566,10 +3557,10 @@ const $t = /* @__PURE__ */ T(Wt, [["render", Ft]]), Ut = {
|
|
|
3566
3557
|
}
|
|
3567
3558
|
}
|
|
3568
3559
|
};
|
|
3569
|
-
function
|
|
3560
|
+
function Ut(a, e, t, r, i, o) {
|
|
3570
3561
|
return x(), _("div");
|
|
3571
3562
|
}
|
|
3572
|
-
const Zt = /* @__PURE__ */ T(
|
|
3563
|
+
const Zt = /* @__PURE__ */ T(Vt, [["render", Ut]]);
|
|
3573
3564
|
const Ht = {
|
|
3574
3565
|
name: "IdmTropicals",
|
|
3575
3566
|
props: {
|
|
@@ -3662,24 +3653,24 @@ const Ht = {
|
|
|
3662
3653
|
}), t.forEach((o) => {
|
|
3663
3654
|
var h;
|
|
3664
3655
|
let n = 0, s;
|
|
3665
|
-
const c = a.filter((
|
|
3666
|
-
var
|
|
3667
|
-
return ((g = (
|
|
3656
|
+
const c = a.filter((d) => {
|
|
3657
|
+
var p, g;
|
|
3658
|
+
return ((g = (p = d.properties) == null ? void 0 : p.category) == null ? void 0 : g.split("-")[0]) === o;
|
|
3668
3659
|
});
|
|
3669
|
-
(h = c.filter((
|
|
3670
|
-
var
|
|
3671
|
-
return ((
|
|
3672
|
-
})[0]) == null || h.properties.model, c.forEach((
|
|
3660
|
+
(h = c.filter((d) => {
|
|
3661
|
+
var p, g;
|
|
3662
|
+
return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((g = d.properties) == null ? void 0 : g.type) === "forecast";
|
|
3663
|
+
})[0]) == null || h.properties.model, c.forEach((d, p) => {
|
|
3673
3664
|
var g, u, y, f, m, v;
|
|
3674
|
-
((g =
|
|
3675
|
-
}), c.map((
|
|
3665
|
+
((g = d.geometry) == null ? void 0 : g.type) === "Point" && ((u = d.properties) == null ? void 0 : u.type) === "history" && (n = p, s = s === void 0 ? p : s), ((y = d.geometry) == null ? void 0 : y.type) === "Point" && ((f = d.properties) == null ? void 0 : f.type) === "forecast" && s === void 0 && (s = p), ((m = d.geometry) == null ? void 0 : m.type) === "LineString" && ((v = d.properties) == null || v.type);
|
|
3666
|
+
}), c.map((d, p) => {
|
|
3676
3667
|
var g, u, y, f, m, v, b;
|
|
3677
|
-
if (((g =
|
|
3678
|
-
|
|
3679
|
-
const w = Z((b =
|
|
3680
|
-
|
|
3668
|
+
if (((g = d.geometry) == null ? void 0 : g.type) === "LineString" && ((u = d.properties) == null || u.type), ((y = d.geometry) == null ? void 0 : y.type) === "Point" && ((f = d.properties) == null ? void 0 : f.type) === "forecast" && (d.properties.name = o, d.properties.format = Z(d.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((m = d.geometry) == null ? void 0 : m.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
|
|
3669
|
+
d.properties.format = Z(d.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
3670
|
+
const w = Z((b = d.properties) == null ? void 0 : b.date).utc().format("HHmm") === Z().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
|
|
3671
|
+
d.properties.showHistoryLabel = w || p === n, d.properties.showNameLabel = p === n, d.properties.name = o;
|
|
3681
3672
|
}
|
|
3682
|
-
return
|
|
3673
|
+
return d;
|
|
3683
3674
|
});
|
|
3684
3675
|
}), this.handleInit();
|
|
3685
3676
|
},
|
|
@@ -3940,10 +3931,10 @@ const Ht = {
|
|
|
3940
3931
|
}), y = (/* @__PURE__ */ new Date()).valueOf() - (g + u), console.log("[tropical] add elapsed: ", y, ", total: ", u += y));
|
|
3941
3932
|
}
|
|
3942
3933
|
this.handleDrawCircle();
|
|
3943
|
-
const
|
|
3944
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
3945
|
-
const
|
|
3946
|
-
console.log(
|
|
3934
|
+
const d = Ne.interpolate(this.tropicals, 1);
|
|
3935
|
+
this.interpolateData = JSON.parse(JSON.stringify(d));
|
|
3936
|
+
const p = this.interpolateData.filter((g) => g.properties.name === "kristy" && g.properties.model === "ecmwf");
|
|
3937
|
+
console.log(p), this.handleDateChange();
|
|
3947
3938
|
}
|
|
3948
3939
|
},
|
|
3949
3940
|
handleClear() {
|
|
@@ -3951,7 +3942,7 @@ const Ht = {
|
|
|
3951
3942
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
|
|
3952
3943
|
},
|
|
3953
3944
|
handleDateChange() {
|
|
3954
|
-
var a, e, t, r, i, o, n, s, c, h,
|
|
3945
|
+
var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, O, j, W, H, re, oe, se, ne, le, ce, he, K;
|
|
3955
3946
|
if ((a = this.interpolateMarkers) == null || a.forEach((G) => G == null ? void 0 : G.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
3956
3947
|
const G = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = this.interpolateData.filter((R) => R.properties.date === G.format() && !R.properties.disabled), de = this.handleComputePolygons(J), X = C.featureCollection([...J]);
|
|
3957
3948
|
de.forEach((R) => {
|
|
@@ -3972,15 +3963,15 @@ const Ht = {
|
|
|
3972
3963
|
})), this.interpolateMarkers = [];
|
|
3973
3964
|
for (const R of J)
|
|
3974
3965
|
if (!R.properties.disabled) {
|
|
3975
|
-
let
|
|
3976
|
-
((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = R.properties) == null ? void 0 : c.wind) != null && h.spd) ?
|
|
3977
|
-
const
|
|
3966
|
+
let V = "#f44336";
|
|
3967
|
+
((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = R.properties) == null ? void 0 : c.wind) != null && h.spd) ? V = "#03f869" : ((p = (d = R.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((u = (g = R.properties) == null ? void 0 : g.wind) == null ? void 0 : u.spd) < 24.5 ? V = "#f2f202" : ((f = (y = R.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((v = (m = R.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? V = "#ff9100" : ((w = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) >= 32.7 && ((L = (k = R.properties) == null ? void 0 : k.wind) == null ? void 0 : L.spd) < 41.5 ? V = "#f44336" : ((A = (D = R.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((j = (O = R.properties) == null ? void 0 : O.wind) == null ? void 0 : j.spd) < 51 ? V = "#f903d0" : ((H = (W = R.properties) == null ? void 0 : W.wind) == null ? void 0 : H.spd) >= 51 ? V = "#8702f9" : V = "#f44336";
|
|
3968
|
+
const pe = `<svg t="1719918955501"
|
|
3978
3969
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
3979
3970
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
3980
3971
|
<path
|
|
3981
3972
|
d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
|
|
3982
|
-
fill="${
|
|
3983
|
-
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${
|
|
3973
|
+
fill="${V}" p-id="18383"></path>
|
|
3974
|
+
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${V}"
|
|
3984
3975
|
p-id="18384"></path>
|
|
3985
3976
|
<path
|
|
3986
3977
|
d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
|
|
@@ -3989,25 +3980,25 @@ const Ht = {
|
|
|
3989
3980
|
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"
|
|
3990
3981
|
fill="#ffffff" p-id="18386"></path>
|
|
3991
3982
|
</svg>`, q = document.createElement("div");
|
|
3992
|
-
q.className = "hurricane-hourly-marker", q.innerHTML = `<div class="${R.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${
|
|
3993
|
-
const
|
|
3994
|
-
if (this.interpolateMarkers.push(
|
|
3995
|
-
const
|
|
3996
|
-
(
|
|
3983
|
+
q.className = "hurricane-hourly-marker", q.innerHTML = `<div class="${R.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${pe}</div>`;
|
|
3984
|
+
const me = new Q.Marker(q).setLngLat(R.geometry.coordinates).addTo(this.map);
|
|
3985
|
+
if (this.interpolateMarkers.push(me), (re = R.properties) != null && re.showCircle) {
|
|
3986
|
+
const ee = { radius: 100, coordinates: R.geometry.coordinates }, te = { radius: 200, coordinates: R.geometry.coordinates }, ae = { radius: 500, coordinates: R.geometry.coordinates };
|
|
3987
|
+
(oe = this.circleSourceData) == null || oe.features.push(
|
|
3988
|
+
C.circle(ee.coordinates, ee.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3989
|
+
), (se = this.circleSourceData) == null || se.features.push(
|
|
3997
3990
|
C.circle(te.coordinates, te.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3998
3991
|
), (ne = this.circleSourceData) == null || ne.features.push(
|
|
3999
3992
|
C.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4000
|
-
), (le = this.circleSourceData) == null || le.features.push(
|
|
4001
|
-
C.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4002
3993
|
);
|
|
4003
3994
|
}
|
|
4004
|
-
(
|
|
3995
|
+
(ce = (le = this.map) == null ? void 0 : le.getSource(this.circleSource)) == null || ce.setData(this.circleSourceData);
|
|
4005
3996
|
}
|
|
4006
3997
|
} else
|
|
4007
|
-
(
|
|
3998
|
+
(he = this.map) != null && he.getSource(this.interpolateSource) && ((K = this.map) == null || K.getSource(this.interpolateSource).setData(this.empty));
|
|
4008
3999
|
},
|
|
4009
4000
|
handleClick(a) {
|
|
4010
|
-
var o, n, s, c, h,
|
|
4001
|
+
var o, n, s, c, h, d, p, g;
|
|
4011
4002
|
const e = a.features[0], t = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
|
|
4012
4003
|
(u) => {
|
|
4013
4004
|
var y;
|
|
@@ -4027,11 +4018,11 @@ const Ht = {
|
|
|
4027
4018
|
this.activeTropicals = {
|
|
4028
4019
|
name: (h = e == null ? void 0 : e.properties) == null ? void 0 : h.name,
|
|
4029
4020
|
forecasts: t.map((u) => u.properties),
|
|
4030
|
-
history: (
|
|
4031
|
-
showCircle: (g = (
|
|
4021
|
+
history: (d = r[0]) == null ? void 0 : d.properties,
|
|
4022
|
+
showCircle: (g = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : g.showCircle
|
|
4032
4023
|
}, this.showTropicals = !0;
|
|
4033
4024
|
const i = document.getElementById("active-tropical");
|
|
4034
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new
|
|
4025
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new Q.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
4035
4026
|
},
|
|
4036
4027
|
handleForecastToggle(a) {
|
|
4037
4028
|
var r, i, o, n, s, c;
|
|
@@ -4133,7 +4124,7 @@ const Ht = {
|
|
|
4133
4124
|
style: { "justify-content": "flex-start" }
|
|
4134
4125
|
}, oa = { class: "forecast-models" }, sa = ["onClick"], na = { class: "more" };
|
|
4135
4126
|
function la(a, e, t, r, i, o) {
|
|
4136
|
-
var n, s, c, h,
|
|
4127
|
+
var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k;
|
|
4137
4128
|
return Se((x(), _("div", Gt, [
|
|
4138
4129
|
l("div", Jt, [
|
|
4139
4130
|
l("div", {
|
|
@@ -4142,9 +4133,9 @@ function la(a, e, t, r, i, o) {
|
|
|
4142
4133
|
}, ""),
|
|
4143
4134
|
l("div", Xt, [
|
|
4144
4135
|
(s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (x(), _("span", qt, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : B("", !0),
|
|
4145
|
-
Oe(S((
|
|
4136
|
+
Oe(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
|
|
4146
4137
|
]),
|
|
4147
|
-
l("div", Yt, " Last update: " + S(o.computeTime(((g = (
|
|
4138
|
+
l("div", Yt, " Last update: " + S(o.computeTime(((g = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : g.updated) || ((f = (y = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : y.filter((L) => !L.disabled)[0]) == null ? void 0 : f.date))), 1)
|
|
4148
4139
|
]),
|
|
4149
4140
|
l("div", Qt, [
|
|
4150
4141
|
l("div", Kt, [
|
|
@@ -4181,7 +4172,7 @@ function la(a, e, t, r, i, o) {
|
|
|
4181
4172
|
])
|
|
4182
4173
|
])
|
|
4183
4174
|
]),
|
|
4184
|
-
e[5] || (e[5] =
|
|
4175
|
+
e[5] || (e[5] = Ue('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-b521de47></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon td" data-v-b521de47></div><div class="label" data-v-b521de47>TD</div></div><div class="legend" data-v-b521de47><div class="icon ts" data-v-b521de47></div><div class="label" data-v-b521de47>TS</div></div><div class="legend" data-v-b521de47><div class="icon sts" data-v-b521de47></div><div class="label" data-v-b521de47>STS</div></div><div class="legend" data-v-b521de47><div class="icon ty" data-v-b521de47></div><div class="label" data-v-b521de47>TY</div></div><div class="legend" data-v-b521de47><div class="icon sty" data-v-b521de47></div><div class="label" data-v-b521de47>STY</div></div><div class="legend" data-v-b521de47><div class="icon supper-ty" data-v-b521de47></div><div class="label" data-v-b521de47>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon history" data-v-b521de47></div><div class="label" data-v-b521de47>History</div></div><div class="legend" data-v-b521de47><div class="icon r7" data-v-b521de47></div><div class="label" data-v-b521de47>35kts Radii</div></div><div class="legend" data-v-b521de47><div class="icon r10" data-v-b521de47></div><div class="label" data-v-b521de47>50kts Radii</div></div></div>', 3))
|
|
4185
4176
|
]),
|
|
4186
4177
|
l("div", na, [
|
|
4187
4178
|
l("div", {
|
|
@@ -4297,7 +4288,7 @@ const ca = {
|
|
|
4297
4288
|
}
|
|
4298
4289
|
}
|
|
4299
4290
|
}, ha = { key: 0 };
|
|
4300
|
-
function
|
|
4291
|
+
function da(a, e, t, r, i, o) {
|
|
4301
4292
|
var n;
|
|
4302
4293
|
return (n = t.factor) != null && n.active ? (x(), _("div", ha, [
|
|
4303
4294
|
l("div", {
|
|
@@ -4315,7 +4306,7 @@ function pa(a, e, t, r, i, o) {
|
|
|
4315
4306
|
]), 4)
|
|
4316
4307
|
])) : B("", !0);
|
|
4317
4308
|
}
|
|
4318
|
-
const
|
|
4309
|
+
const pa = /* @__PURE__ */ T(ca, [["render", da], ["__scopeId", "data-v-39b1d5ab"]]);
|
|
4319
4310
|
const ma = {
|
|
4320
4311
|
name: "IdmVisibility",
|
|
4321
4312
|
props: {
|
|
@@ -4870,16 +4861,16 @@ const Ta = {
|
|
|
4870
4861
|
var a;
|
|
4871
4862
|
if (this.meteo) {
|
|
4872
4863
|
const e = document.getElementById("point-meteo");
|
|
4873
|
-
this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new
|
|
4864
|
+
this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new Q.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
|
|
4874
4865
|
}
|
|
4875
4866
|
}
|
|
4876
4867
|
}
|
|
4877
4868
|
}, Ra = {
|
|
4878
4869
|
id: "point-meteo",
|
|
4879
4870
|
class: "point-meteo"
|
|
4880
|
-
}, Ea = { class: "meteo-box" }, Ia = { class: "header-box" }, Da = { class: "main" }, Aa = { class: "sub" }, Ma = { class: "main-box" }, Ba = { class: "flex-space" }, Oa = { class: "flex-space" }, Na = { class: "flex-space" }, ja = { class: "flex-space" }, Wa = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" },
|
|
4871
|
+
}, Ea = { class: "meteo-box" }, Ia = { class: "header-box" }, Da = { class: "main" }, Aa = { class: "sub" }, Ma = { class: "main-box" }, Ba = { class: "flex-space" }, Oa = { class: "flex-space" }, Na = { class: "flex-space" }, ja = { class: "flex-space" }, Wa = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" }, Va = { class: "flex-space" }, Ua = { class: "flex-space" };
|
|
4881
4872
|
function Za(a, e, t, r, i, o) {
|
|
4882
|
-
var n, s, c, h,
|
|
4873
|
+
var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, O, j, W, H, re, oe, se, ne, le, ce, he, K, G, J, de, X, R, V, pe, q, me, ee, te, ae, fe, ge, be, ve, Le;
|
|
4883
4874
|
return Se((x(), _("div", Ra, [
|
|
4884
4875
|
l("div", Ea, [
|
|
4885
4876
|
l("div", Ia, [
|
|
@@ -4893,7 +4884,7 @@ function Za(a, e, t, r, i, o) {
|
|
|
4893
4884
|
l("div", Ma, [
|
|
4894
4885
|
l("div", Ba, [
|
|
4895
4886
|
e[1] || (e[1] = l("label", null, "Wind", -1)),
|
|
4896
|
-
l("span", null, S(((
|
|
4887
|
+
l("span", null, S(((d = (h = t.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((g = (p = t.meteo) == null ? void 0 : p.wind) == null ? void 0 : g.kts, 1)) + "[kts]/" + S((y = (u = t.meteo) == null ? void 0 : u.wind) == null ? void 0 : y.scale) + "[BF]/" + S(o.roundPrecision((m = (f = t.meteo) == null ? void 0 : f.gusts) == null ? void 0 : m.kts, 1)) + "[kts]", 1)
|
|
4897
4888
|
]),
|
|
4898
4889
|
l("div", Oa, [
|
|
4899
4890
|
e[2] || (e[2] = l("label", null, "Wind.Wave", -1)),
|
|
@@ -4901,15 +4892,15 @@ function Za(a, e, t, r, i, o) {
|
|
|
4901
4892
|
]),
|
|
4902
4893
|
l("div", Na, [
|
|
4903
4894
|
e[3] || (e[3] = l("label", null, "Swell", -1)),
|
|
4904
|
-
l("span", null, S(((
|
|
4895
|
+
l("span", null, S(((re = (H = (W = t.meteo) == null ? void 0 : W.wave) == null ? void 0 : H.swell) == null ? void 0 : re.direction) || "-") + "/" + S(o.roundPrecision((ne = (se = (oe = t.meteo) == null ? void 0 : oe.wave) == null ? void 0 : se.swell) == null ? void 0 : ne.height, 1)) + "[m]/" + S(o.roundPrecision((he = (ce = (le = t.meteo) == null ? void 0 : le.wave) == null ? void 0 : ce.swell) == null ? void 0 : he.period, 1)) + "[s]", 1)
|
|
4905
4896
|
]),
|
|
4906
4897
|
l("div", ja, [
|
|
4907
4898
|
e[4] || (e[4] = l("label", null, "Sig.Wave", -1)),
|
|
4908
|
-
l("span", null, S(((J = (G = (
|
|
4899
|
+
l("span", null, S(((J = (G = (K = t.meteo) == null ? void 0 : K.wave) == null ? void 0 : G.sig) == null ? void 0 : J.direction) || "-") + "/" + S(o.roundPrecision((R = (X = (de = t.meteo) == null ? void 0 : de.wave) == null ? void 0 : X.sig) == null ? void 0 : R.height, 1)) + "[m]/" + S(o.roundPrecision((q = (pe = (V = t.meteo) == null ? void 0 : V.wave) == null ? void 0 : pe.sig) == null ? void 0 : q.period, 1)) + "[s]", 1)
|
|
4909
4900
|
]),
|
|
4910
4901
|
l("div", Wa, [
|
|
4911
4902
|
e[5] || (e[5] = l("label", null, "Current", -1)),
|
|
4912
|
-
l("span", null, S(((
|
|
4903
|
+
l("span", null, S(((ee = (me = t.meteo) == null ? void 0 : me.current) == null ? void 0 : ee.direction) || "-") + "/" + S(o.roundPrecision((ae = (te = t.meteo) == null ? void 0 : te.current) == null ? void 0 : ae.kts, 2)) + "[kts]", 1)
|
|
4913
4904
|
]),
|
|
4914
4905
|
l("div", Fa, [
|
|
4915
4906
|
e[6] || (e[6] = l("label", null, "Precip", -1)),
|
|
@@ -4919,11 +4910,11 @@ function Za(a, e, t, r, i, o) {
|
|
|
4919
4910
|
e[7] || (e[7] = l("label", null, "Visibility", -1)),
|
|
4920
4911
|
l("span", null, S(o.roundPrecision(((be = t.meteo) == null ? void 0 : be.visibility) / 1852, 0)) + "[nm]", 1)
|
|
4921
4912
|
]),
|
|
4922
|
-
l("div",
|
|
4913
|
+
l("div", Va, [
|
|
4923
4914
|
e[8] || (e[8] = l("label", null, "Temp", -1)),
|
|
4924
4915
|
l("span", null, S(o.roundPrecision((ve = t.meteo) == null ? void 0 : ve.temp, 0)) + "[°C]", 1)
|
|
4925
4916
|
]),
|
|
4926
|
-
l("div",
|
|
4917
|
+
l("div", Ua, [
|
|
4927
4918
|
e[9] || (e[9] = l("label", null, "Water Temp", -1)),
|
|
4928
4919
|
l("span", null, S(o.roundPrecision((Le = t.meteo) == null ? void 0 : Le.waterTemp, 2)) + "[°C]", 1)
|
|
4929
4920
|
])
|
|
@@ -5285,7 +5276,7 @@ const ai = {
|
|
|
5285
5276
|
if (t) {
|
|
5286
5277
|
this.showZone = !0, this.form = { ...t.properties };
|
|
5287
5278
|
const i = document.getElementById("idm-gl3-zone-info");
|
|
5288
|
-
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new
|
|
5279
|
+
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new Q.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
|
|
5289
5280
|
}
|
|
5290
5281
|
},
|
|
5291
5282
|
handleRender() {
|
|
@@ -5442,7 +5433,7 @@ const ni = {
|
|
|
5442
5433
|
if (t) {
|
|
5443
5434
|
this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
|
|
5444
5435
|
const i = document.getElementById("port-info");
|
|
5445
|
-
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new
|
|
5436
|
+
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new Q.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
5446
5437
|
}
|
|
5447
5438
|
},
|
|
5448
5439
|
handleEmit() {
|
|
@@ -5481,7 +5472,7 @@ const ni = {
|
|
|
5481
5472
|
this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
5482
5473
|
}
|
|
5483
5474
|
}
|
|
5484
|
-
}, li = { id: "port-info" }, ci = { class: "port-box" }, hi = { class: "flex-start" },
|
|
5475
|
+
}, li = { id: "port-info" }, ci = { class: "port-box" }, hi = { class: "flex-start" }, di = { class: "flex-start" }, pi = { class: "flex-start" }, mi = {
|
|
5485
5476
|
class: "flex-start",
|
|
5486
5477
|
style: { "align-items": "flex-start" }
|
|
5487
5478
|
};
|
|
@@ -5498,11 +5489,11 @@ function ui(a, e, t, r, i, o) {
|
|
|
5498
5489
|
onClick: e[1] || (e[1] = (...n) => o.handleEmit && o.handleEmit(...n))
|
|
5499
5490
|
}, S(i.form.name), 1)
|
|
5500
5491
|
]),
|
|
5501
|
-
l("div",
|
|
5492
|
+
l("div", di, [
|
|
5502
5493
|
e[3] || (e[3] = l("label", null, "Position : ", -1)),
|
|
5503
5494
|
l("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
|
|
5504
5495
|
]),
|
|
5505
|
-
l("div",
|
|
5496
|
+
l("div", pi, [
|
|
5506
5497
|
e[4] || (e[4] = l("label", null, "LoCode : ", -1)),
|
|
5507
5498
|
l("span", null, S(i.form.loCode || "-"), 1)
|
|
5508
5499
|
]),
|
|
@@ -6206,8 +6197,8 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6206
6197
|
(a = this.map) == null || a.getCanvas().addEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.on("mousemove", this.handleMove), (t = this.map) == null || t.on("dblclick", this.handleDblClick), (r = this.map) == null || r.on("click", this.handleClick), (i = this.map) == null || i.on("contextmenu", this.handleContextmenu), this.map && (this.map.getCanvas().style.cursor = "crosshair");
|
|
6207
6198
|
else {
|
|
6208
6199
|
(o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (n = this.map) == null || n.off("mousemove", this.handleMove), (s = this.map) == null || s.off("dblclick", this.handleDblClick), (c = this.map) == null || c.off("click", this.handleClick), (h = this.map) == null || h.off("contextmenu", this.handleContextmenu);
|
|
6209
|
-
for (const
|
|
6210
|
-
this.handleClear(
|
|
6200
|
+
for (const d of this.geojson)
|
|
6201
|
+
this.handleClear(d, !0);
|
|
6211
6202
|
this.geojson = [], this.map && (this.map.getCanvas().style.cursor = "grab");
|
|
6212
6203
|
}
|
|
6213
6204
|
},
|
|
@@ -6219,7 +6210,7 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6219
6210
|
}
|
|
6220
6211
|
},
|
|
6221
6212
|
handleDrag(a) {
|
|
6222
|
-
var t, r, i, o, n, s, c, h,
|
|
6213
|
+
var t, r, i, o, n, s, c, h, d, p;
|
|
6223
6214
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
6224
6215
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6225
6216
|
const g = this.geojson.filter((m) => m.id === e.split("-")[0])[0];
|
|
@@ -6238,13 +6229,13 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6238
6229
|
this.handleTmpPointUpdate(
|
|
6239
6230
|
g,
|
|
6240
6231
|
f[y - 1],
|
|
6241
|
-
{ lng: (h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (
|
|
6232
|
+
{ lng: (h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = a.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties: f[y].properties },
|
|
6242
6233
|
y === f.length - 1 ? void 0 : f[y + 1]
|
|
6243
6234
|
);
|
|
6244
6235
|
}
|
|
6245
6236
|
},
|
|
6246
6237
|
handleDragEnd(a) {
|
|
6247
|
-
var t, r, i, o, n, s, c, h,
|
|
6238
|
+
var t, r, i, o, n, s, c, h, d, p;
|
|
6248
6239
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
6249
6240
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6250
6241
|
const g = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
|
|
@@ -6253,7 +6244,7 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6253
6244
|
return ((m = f._element) == null ? void 0 : m.id) === e;
|
|
6254
6245
|
})[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
|
|
6255
6246
|
const y = g.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
|
|
6256
|
-
y.geometry.coordinates = [(h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (
|
|
6247
|
+
y.geometry.coordinates = [(h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (p = (d = a.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat], g.features = g.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(g);
|
|
6257
6248
|
}
|
|
6258
6249
|
},
|
|
6259
6250
|
handleContextmenu(a) {
|
|
@@ -6264,7 +6255,7 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6264
6255
|
const s = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
|
|
6265
6256
|
if (s.length > 2 && s.filter((h) => h.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
6266
6257
|
const h = document.createElement("div");
|
|
6267
|
-
h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new
|
|
6258
|
+
h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new Q.Marker(h).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
|
|
6268
6259
|
}
|
|
6269
6260
|
}
|
|
6270
6261
|
},
|
|
@@ -6300,12 +6291,12 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6300
6291
|
let t = 0;
|
|
6301
6292
|
const r = [];
|
|
6302
6293
|
for (let i = 1; i < e.length; i++) {
|
|
6303
|
-
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] },
|
|
6304
|
-
t = F.roundPrecision(t +
|
|
6294
|
+
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 = Y.calculateDistance(c, h, s.mode === "RL", 2), p = Y.calculateBearing(c, h, s.mode === "RL", 2);
|
|
6295
|
+
t = F.roundPrecision(t + d, 2);
|
|
6305
6296
|
let g;
|
|
6306
|
-
s.mode === "RL" ? g = F.convertToMonotonicLng([c, h]) : g = F.convertToMonotonicLng(
|
|
6297
|
+
s.mode === "RL" ? g = F.convertToMonotonicLng([c, h]) : g = F.convertToMonotonicLng(Y.interpolateCoordinates(c, h, 200));
|
|
6307
6298
|
const u = C.lineString(g.map((y) => [y.lng, y.lat]));
|
|
6308
|
-
u.properties.dist =
|
|
6299
|
+
u.properties.dist = d, u.properties.bearing = p, u.properties.total = t, r.push(u);
|
|
6309
6300
|
}
|
|
6310
6301
|
e.push(...r), a.total = t;
|
|
6311
6302
|
}
|
|
@@ -6315,19 +6306,19 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6315
6306
|
const i = C.featureCollection([]);
|
|
6316
6307
|
let o, n;
|
|
6317
6308
|
if (e) {
|
|
6318
|
-
const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] },
|
|
6319
|
-
o =
|
|
6320
|
-
let
|
|
6321
|
-
c.mode === "RL" ?
|
|
6322
|
-
const g = C.lineString(
|
|
6309
|
+
const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: t.lng, lat: t.lat };
|
|
6310
|
+
o = Y.calculateDistance(h, d, c.mode === "RL", 2), n = Y.calculateBearing(h, d, c.mode === "RL", 2);
|
|
6311
|
+
let p;
|
|
6312
|
+
c.mode === "RL" ? p = F.convertToMonotonicLng([h, d]) : p = F.convertToMonotonicLng(Y.interpolateCoordinates(h, d, 200));
|
|
6313
|
+
const g = C.lineString(p.map((u) => [u.lng, u.lat]));
|
|
6323
6314
|
g.properties.dist = o, g.properties.bearing = n, i.features.push(g);
|
|
6324
6315
|
}
|
|
6325
6316
|
if (r) {
|
|
6326
|
-
const c = t.properties, h = t,
|
|
6327
|
-
o =
|
|
6328
|
-
let
|
|
6329
|
-
c.mode === "RL" ?
|
|
6330
|
-
const g = C.lineString(
|
|
6317
|
+
const c = t.properties, h = t, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
6318
|
+
o = Y.calculateDistance(h, d, c.mode === "RL", 2), n = Y.calculateBearing(h, d, c.mode === "RL", 2);
|
|
6319
|
+
let p;
|
|
6320
|
+
c.mode === "RL" ? p = F.convertToMonotonicLng([h, d]) : p = F.convertToMonotonicLng(Y.interpolateCoordinates(h, d, 200));
|
|
6321
|
+
const g = C.lineString(p.map((u) => [u.lng, u.lat]));
|
|
6331
6322
|
g.properties.dist = o, g.properties.bearing = n, i.features.push(g);
|
|
6332
6323
|
}
|
|
6333
6324
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
@@ -6372,7 +6363,7 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6372
6363
|
this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
6373
6364
|
else {
|
|
6374
6365
|
const c = document.createElement("div");
|
|
6375
|
-
c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new
|
|
6366
|
+
c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new Q.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
|
|
6376
6367
|
}
|
|
6377
6368
|
},
|
|
6378
6369
|
handleMove(a) {
|
|
@@ -6430,21 +6421,21 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6430
6421
|
for (const n of o) {
|
|
6431
6422
|
const s = document.createElement("div");
|
|
6432
6423
|
s.id = `${a.id}-${n.properties.id}`, s.className = `${a.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
|
|
6433
|
-
const c = new
|
|
6424
|
+
const c = new Q.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
6434
6425
|
c.on("drag", this.handleDrag), c.on("dragend", this.handleDragEnd), this.pointMarkers[a.id] ? this.pointMarkers[a.id].push(c) : this.pointMarkers[a.id] = [c];
|
|
6435
6426
|
}
|
|
6436
6427
|
if (a.closed) {
|
|
6437
|
-
const n = o.at(-1), c = a.features.filter((
|
|
6438
|
-
h.className = "point-summary-marker", h.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new
|
|
6428
|
+
const n = o.at(-1), c = a.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
|
|
6429
|
+
h.className = "point-summary-marker", h.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new Q.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
6439
6430
|
}
|
|
6440
6431
|
}
|
|
6441
6432
|
},
|
|
6442
6433
|
handleClear(a, e = !0) {
|
|
6443
|
-
var o, n, s, c, h,
|
|
6434
|
+
var o, n, s, c, h, d, p, g, u;
|
|
6444
6435
|
const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
|
|
6445
|
-
(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[a.id]) == null || h.remove(), this.closeMarkers[a.id] = void 0, (
|
|
6436
|
+
(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[a.id]) == null || h.remove(), this.closeMarkers[a.id] = void 0, (d = this.pointMarkers[a.id]) == null || d.forEach((y) => {
|
|
6446
6437
|
y == null || y.remove();
|
|
6447
|
-
}), this.pointMarkers[a.id] = [], (
|
|
6438
|
+
}), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(t)) && this.map.removeSource(t), e && ((u = this.map) != null && u.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
6448
6439
|
}
|
|
6449
6440
|
}
|
|
6450
6441
|
};
|
|
@@ -6543,7 +6534,7 @@ const Fi = {
|
|
|
6543
6534
|
// IdmIceEdge,
|
|
6544
6535
|
IdmIceberg: Zt,
|
|
6545
6536
|
IdmTropicals: je,
|
|
6546
|
-
IdmPrecip3h:
|
|
6537
|
+
IdmPrecip3h: pa,
|
|
6547
6538
|
IdmVisibility: fa,
|
|
6548
6539
|
IdmWaterTemp: La,
|
|
6549
6540
|
IdmTemp: Ca,
|
|
@@ -6577,8 +6568,12 @@ const Fi = {
|
|
|
6577
6568
|
beforeLayer: {
|
|
6578
6569
|
type: String,
|
|
6579
6570
|
default: ""
|
|
6571
|
+
},
|
|
6572
|
+
toggleVersion: {
|
|
6573
|
+
type: Number
|
|
6580
6574
|
}
|
|
6581
6575
|
},
|
|
6576
|
+
emits: ["toggleVersion"],
|
|
6582
6577
|
data() {
|
|
6583
6578
|
return {
|
|
6584
6579
|
weatherLayers: {},
|
|
@@ -6601,7 +6596,6 @@ const Fi = {
|
|
|
6601
6596
|
activeWindLayer: !1,
|
|
6602
6597
|
showWindParticle: !1,
|
|
6603
6598
|
showCurrentParticle: !1,
|
|
6604
|
-
toggleVersion: 0,
|
|
6605
6599
|
enc: "",
|
|
6606
6600
|
// enc: 'i4',
|
|
6607
6601
|
defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
|
|
@@ -6631,10 +6625,10 @@ const Fi = {
|
|
|
6631
6625
|
},
|
|
6632
6626
|
activeWeatherLayers: {
|
|
6633
6627
|
handler() {
|
|
6634
|
-
var a, e, t, r, i, o, n, s, c, h,
|
|
6628
|
+
var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v;
|
|
6635
6629
|
if (!this.map)
|
|
6636
6630
|
return !1;
|
|
6637
|
-
this.activeWeatherLayers.length > 0 ? ((e = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (t = this.map) == null ? void 0 : t.getLayer(this.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)), (
|
|
6631
|
+
this.activeWeatherLayers.length > 0 ? ((e = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (t = this.map) == null ? void 0 : t.getLayer(this.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" && ((u = this.map) == null || u.moveLayer((g = this.viewport) == null ? void 0 : g.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((f = (y = this.map) == null ? void 0 : y.getLayer(this.enc)) == null || f.setLayoutProperty("visibility", "visible"), (v = (m = this.map) == null ? void 0 : m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none"));
|
|
6638
6632
|
},
|
|
6639
6633
|
immediate: !0
|
|
6640
6634
|
}
|
|
@@ -6681,7 +6675,7 @@ const Fi = {
|
|
|
6681
6675
|
},
|
|
6682
6676
|
methods: {
|
|
6683
6677
|
async fetchWeatherLayers(a = { tropicals: !1 }) {
|
|
6684
|
-
var i, o, n, s, c, h,
|
|
6678
|
+
var i, o, n, s, c, h, d, p;
|
|
6685
6679
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
6686
6680
|
let t = 0, r = 0;
|
|
6687
6681
|
if (this.map) {
|
|
@@ -6696,7 +6690,7 @@ const Fi = {
|
|
|
6696
6690
|
if (this.weatherWeight > 0) {
|
|
6697
6691
|
let f = this.weatherWeight, m;
|
|
6698
6692
|
if (a.tropicals || this.weatherWeight & 256 && (m = this.weatherLayers.tropicals, m && (f -= 256, m.version = Math.random() + 1)), f > 0) {
|
|
6699
|
-
const v = await
|
|
6693
|
+
const v = await ie.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${g}&bbox=${y}&t=${this.ts}`, {
|
|
6700
6694
|
headers: {
|
|
6701
6695
|
Authorization: this.token || this.defaultMeteoToken
|
|
6702
6696
|
}
|
|
@@ -6705,7 +6699,7 @@ const Fi = {
|
|
|
6705
6699
|
const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
|
|
6706
6700
|
for (const L in b)
|
|
6707
6701
|
L === "ice-edge" && (b[L] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), L !== "tropicals" && w.push(
|
|
6708
|
-
|
|
6702
|
+
ie.get(b[L], {
|
|
6709
6703
|
headers: {
|
|
6710
6704
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6711
6705
|
key: L
|
|
@@ -6724,7 +6718,7 @@ const Fi = {
|
|
|
6724
6718
|
type: ((H = L == null ? void 0 : L.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
|
|
6725
6719
|
etime: this.ts
|
|
6726
6720
|
});
|
|
6727
|
-
}), b.tropicals &&
|
|
6721
|
+
}), b.tropicals && ie.get(b.tropicals, {
|
|
6728
6722
|
headers: {
|
|
6729
6723
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6730
6724
|
key: "tropicals"
|
|
@@ -6752,7 +6746,7 @@ const Fi = {
|
|
|
6752
6746
|
};
|
|
6753
6747
|
}
|
|
6754
6748
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
6755
|
-
const b = (
|
|
6749
|
+
const b = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, w = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
|
|
6756
6750
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
6757
6751
|
type: "json",
|
|
6758
6752
|
direction: b,
|
|
@@ -6765,7 +6759,7 @@ const Fi = {
|
|
|
6765
6759
|
}
|
|
6766
6760
|
this.handleWeatherLayerToggle(), this.handleDragEndWithZoom4Json();
|
|
6767
6761
|
}
|
|
6768
|
-
this
|
|
6762
|
+
this.$emit("toggleVersion", Math.random());
|
|
6769
6763
|
},
|
|
6770
6764
|
async fetchOtherLayers(a = { all: !1, dayNight: !1, enc: !1 }) {
|
|
6771
6765
|
var e, t, r, i;
|
|
@@ -6775,49 +6769,49 @@ const Fi = {
|
|
|
6775
6769
|
let n = !1;
|
|
6776
6770
|
if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, n = !0), o) {
|
|
6777
6771
|
if (a.all) {
|
|
6778
|
-
const s = await
|
|
6772
|
+
const s = await ie.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
|
|
6779
6773
|
headers: {
|
|
6780
6774
|
Authorization: this.token || this.defaultMeteoToken
|
|
6781
6775
|
}
|
|
6782
6776
|
});
|
|
6783
6777
|
if (((e = s == null ? void 0 : s.data) == null ? void 0 : e.code) === 0) {
|
|
6784
6778
|
const c = (t = s == null ? void 0 : s.data) == null ? void 0 : t.data, h = [];
|
|
6785
|
-
for (const
|
|
6779
|
+
for (const p in c)
|
|
6786
6780
|
h.push(
|
|
6787
|
-
|
|
6781
|
+
ie.get(c[p], {
|
|
6788
6782
|
headers: {
|
|
6789
6783
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6790
|
-
key:
|
|
6784
|
+
key: p
|
|
6791
6785
|
}
|
|
6792
6786
|
})
|
|
6793
6787
|
);
|
|
6794
|
-
const
|
|
6795
|
-
this.otherLayers = { enc: n },
|
|
6788
|
+
const d = await Promise.all(h);
|
|
6789
|
+
this.otherLayers = { enc: n }, d.map((p) => {
|
|
6796
6790
|
var y, f, m;
|
|
6797
|
-
const g = ((y =
|
|
6791
|
+
const g = ((y = p == null ? void 0 : p.data) == null ? void 0 : y.data) || (p == null ? void 0 : p.data), u = (m = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
|
|
6798
6792
|
this.otherLayers[u] = g;
|
|
6799
6793
|
});
|
|
6800
6794
|
}
|
|
6801
6795
|
} else if (a.dayNight && o & 1024) {
|
|
6802
|
-
const s = await
|
|
6796
|
+
const s = await ie.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
6803
6797
|
headers: {
|
|
6804
6798
|
Authorization: this.token || this.defaultMeteoToken
|
|
6805
6799
|
}
|
|
6806
6800
|
});
|
|
6807
6801
|
if (((r = s == null ? void 0 : s.data) == null ? void 0 : r.code) === 0) {
|
|
6808
6802
|
const c = (i = s == null ? void 0 : s.data) == null ? void 0 : i.data, h = [];
|
|
6809
|
-
for (const
|
|
6803
|
+
for (const p in c)
|
|
6810
6804
|
h.push(
|
|
6811
|
-
|
|
6805
|
+
ie.get(c[p], {
|
|
6812
6806
|
headers: {
|
|
6813
6807
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6814
|
-
key:
|
|
6808
|
+
key: p
|
|
6815
6809
|
}
|
|
6816
6810
|
})
|
|
6817
6811
|
);
|
|
6818
|
-
(await Promise.all(h)).map((
|
|
6812
|
+
(await Promise.all(h)).map((p) => {
|
|
6819
6813
|
var y, f, m;
|
|
6820
|
-
const g = ((y =
|
|
6814
|
+
const g = ((y = p == null ? void 0 : p.data) == null ? void 0 : y.data) || (p == null ? void 0 : p.data), u = (m = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
|
|
6821
6815
|
this.otherLayers[u] = g;
|
|
6822
6816
|
});
|
|
6823
6817
|
}
|
|
@@ -6839,7 +6833,7 @@ const Fi = {
|
|
|
6839
6833
|
this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
|
|
6840
6834
|
},
|
|
6841
6835
|
handleRampColorInitial() {
|
|
6842
|
-
var a, e, t, r, i, o, n, s, c, h,
|
|
6836
|
+
var a, e, t, r, i, o, n, s, c, h, d, p;
|
|
6843
6837
|
this.viewport.map.getSource((a = this.viewport) == null ? void 0 : a.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
6844
6838
|
type: "canvas",
|
|
6845
6839
|
canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
|
|
@@ -6863,8 +6857,8 @@ const Fi = {
|
|
|
6863
6857
|
}), this.viewport.map.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) || this.viewport.map.addLayer(
|
|
6864
6858
|
{
|
|
6865
6859
|
type: "raster",
|
|
6866
|
-
id: (
|
|
6867
|
-
source: (
|
|
6860
|
+
id: (d = this.viewport) == null ? void 0 : d.particleLayer,
|
|
6861
|
+
source: (p = this.viewport) == null ? void 0 : p.particleSource,
|
|
6868
6862
|
layout: {
|
|
6869
6863
|
visibility: "none"
|
|
6870
6864
|
}
|
|
@@ -6873,7 +6867,7 @@ const Fi = {
|
|
|
6873
6867
|
);
|
|
6874
6868
|
},
|
|
6875
6869
|
handleDragEndWithZoom4Json() {
|
|
6876
|
-
var h,
|
|
6870
|
+
var h, d, p, g;
|
|
6877
6871
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
6878
6872
|
let e = 0, t = 0;
|
|
6879
6873
|
const r = (h = this.map) == null ? void 0 : h.getBounds(), i = this.map.getZoom(), o = we(r._sw.lng), n = we(r._ne.lng), s = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
|
|
@@ -6882,7 +6876,7 @@ const Fi = {
|
|
|
6882
6876
|
this.weatherLayers[u].active = !1, this.weatherLayers[u].version = Math.random() + 1;
|
|
6883
6877
|
let y = [];
|
|
6884
6878
|
if (["swell", "current"].includes(u)) {
|
|
6885
|
-
const f = ((
|
|
6879
|
+
const f = ((d = this.weatherLayers[u]) == null ? void 0 : d.direction) || {};
|
|
6886
6880
|
for (const m in f)
|
|
6887
6881
|
if (m > s && m < c && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6888
6882
|
const v = f[m].lng;
|
|
@@ -6911,7 +6905,7 @@ const Fi = {
|
|
|
6911
6905
|
if (m) {
|
|
6912
6906
|
if (!m.data) {
|
|
6913
6907
|
const v = [];
|
|
6914
|
-
for (const b in (
|
|
6908
|
+
for (const b in (p = m.raw) == null ? void 0 : p.LineString) {
|
|
6915
6909
|
const w = m.raw.LineString[b];
|
|
6916
6910
|
for (const k of w)
|
|
6917
6911
|
v.push(
|
|
@@ -7085,8 +7079,8 @@ const Fi = {
|
|
|
7085
7079
|
this.handleBeforeLayerToggle();
|
|
7086
7080
|
},
|
|
7087
7081
|
handleBeforeLayerToggle() {
|
|
7088
|
-
var a, e, t, r, i, o, n, s, c, h,
|
|
7089
|
-
(a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["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 || (
|
|
7082
|
+
var a, e, t, r, i, o, n, s, c, h, d, p, g;
|
|
7083
|
+
(a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["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"] || (g = this.otherLayers) != null && g["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
7090
7084
|
},
|
|
7091
7085
|
handleDateChange(a = { tropicals: !1 }) {
|
|
7092
7086
|
this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -7121,7 +7115,7 @@ const Fi = {
|
|
|
7121
7115
|
ts: e.utc().format(),
|
|
7122
7116
|
wt: !0,
|
|
7123
7117
|
src: this.source
|
|
7124
|
-
}, r = await
|
|
7118
|
+
}, r = await ie.get(`${this.gateway}/api/arc/meteo/query`, {
|
|
7125
7119
|
params: t,
|
|
7126
7120
|
headers: {
|
|
7127
7121
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -7133,42 +7127,45 @@ const Fi = {
|
|
|
7133
7127
|
});
|
|
7134
7128
|
},
|
|
7135
7129
|
handle3dToggle(a) {
|
|
7136
|
-
var e, t, r, i, o, n, s, c, h,
|
|
7137
|
-
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (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)) && ((
|
|
7130
|
+
var e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k;
|
|
7131
|
+
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (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(), (g = this.map) != null && g.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((u = this.map) != null && u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((y = this.viewport) == null ? void 0 : y.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((m = this.viewport) == null ? void 0 : m.particleLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((k = this.map) == null || k.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
7138
7132
|
},
|
|
7139
7133
|
handleParticle(a) {
|
|
7140
7134
|
this.particleFactor = a, this.fetchWeatherLayers({ tropicals: !1 });
|
|
7135
|
+
},
|
|
7136
|
+
handleToggleVersion() {
|
|
7137
|
+
this.$emit("toggleVersion", Math.random());
|
|
7141
7138
|
}
|
|
7142
7139
|
}
|
|
7143
7140
|
}, $i = {
|
|
7144
7141
|
key: 0,
|
|
7145
7142
|
className: "map-gl-home"
|
|
7146
7143
|
};
|
|
7147
|
-
function
|
|
7148
|
-
var
|
|
7149
|
-
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"),
|
|
7144
|
+
function Vi(a, e, t, r, i, o) {
|
|
7145
|
+
var K, G, J, de, X, R, V, pe, q, me, ee, te, ae, fe, ge, be, ve, Le, ze, Re, Ee, Ie, De, Ae, Me, Be;
|
|
7146
|
+
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), g = z("IdmTropicals"), u = z("IdmCurrents"), y = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), L = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), O = z("IdmEcaZone"), j = z("IdmAlertZone"), W = z("IdmPort"), H = z("IdmLoadLine"), re = z("IdmTimezone"), oe = z("IdmVRA"), se = z("IdmSpecialArea"), ne = z("IdmTerminator"), le = z("IdmLatLng"), ce = z("IdmMeasure"), he = z("IdmPoint");
|
|
7150
7147
|
return t.map ? (x(), _("div", $i, [
|
|
7151
7148
|
P(n, E({
|
|
7152
7149
|
ref: "layer",
|
|
7153
7150
|
map: t.map,
|
|
7154
|
-
"toggle-version":
|
|
7151
|
+
"toggle-version": t.toggleVersion,
|
|
7155
7152
|
"map-projection": i.mapProjection
|
|
7156
7153
|
}, a.$attrs, {
|
|
7157
7154
|
onWeather: o.handleWeatherLayerChange,
|
|
7158
7155
|
onOther: o.handleOtherLayerChange,
|
|
7159
|
-
onCoordinate: e[0] || (e[0] = (
|
|
7160
|
-
onMeasure: e[1] || (e[1] = (
|
|
7161
|
-
onPoint: e[2] || (e[2] = (
|
|
7156
|
+
onCoordinate: e[0] || (e[0] = (ue) => i.showCoord = ue),
|
|
7157
|
+
onMeasure: e[1] || (e[1] = (ue) => i.showMeasure = ue),
|
|
7158
|
+
onPoint: e[2] || (e[2] = (ue) => i.showPoint = ue),
|
|
7162
7159
|
on3d: o.handle3dToggle,
|
|
7163
|
-
|
|
7164
|
-
}), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d"]),
|
|
7160
|
+
onHandleToggleVersion: o.handleToggleVersion
|
|
7161
|
+
}), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
7165
7162
|
P(s, E({
|
|
7166
7163
|
map: t.map,
|
|
7167
7164
|
token: t.token,
|
|
7168
|
-
enabled: (
|
|
7169
|
-
"toggle-version":
|
|
7165
|
+
enabled: (K = i.otherLayers) == null ? void 0 : K.enc,
|
|
7166
|
+
"toggle-version": t.toggleVersion
|
|
7170
7167
|
}, a.$attrs, {
|
|
7171
|
-
onEnc: e[
|
|
7168
|
+
onEnc: e[3] || (e[3] = (ue) => i.enc = ue)
|
|
7172
7169
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
7173
7170
|
P(c, E({
|
|
7174
7171
|
map: t.map,
|
|
@@ -7180,13 +7177,13 @@ function Ui(a, e, t, r, i, o) {
|
|
|
7180
7177
|
swell: (J = i.weatherLayers) == null ? void 0 : J.swell,
|
|
7181
7178
|
"before-layer": t.beforeLayer
|
|
7182
7179
|
}, a.$attrs), null, 16, ["map", "swell", "before-layer"]),
|
|
7183
|
-
P(
|
|
7180
|
+
P(d, E({
|
|
7184
7181
|
map: t.map,
|
|
7185
7182
|
prmsl: (de = i.weatherLayers) == null ? void 0 : de.prmsl,
|
|
7186
7183
|
"before-layer": t.beforeLayer,
|
|
7187
7184
|
"active-weather-layers": i.activeWeatherLayers
|
|
7188
7185
|
}, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
7189
|
-
P(
|
|
7186
|
+
P(p, E({
|
|
7190
7187
|
map: t.map,
|
|
7191
7188
|
iceberg: (X = i.weatherLayers) == null ? void 0 : X.iceberg,
|
|
7192
7189
|
"before-layer": t.beforeLayer
|
|
@@ -7200,68 +7197,68 @@ function Ui(a, e, t, r, i, o) {
|
|
|
7200
7197
|
P(u, E({
|
|
7201
7198
|
map: t.map,
|
|
7202
7199
|
"map-projection": i.mapProjection,
|
|
7203
|
-
current: (
|
|
7200
|
+
current: (V = i.weatherLayers) == null ? void 0 : V.current,
|
|
7204
7201
|
"before-layer": t.beforeLayer,
|
|
7205
7202
|
"show-particle": i.showCurrentParticle,
|
|
7206
7203
|
"margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
|
|
7207
|
-
"toggle-version":
|
|
7204
|
+
"toggle-version": t.toggleVersion,
|
|
7208
7205
|
"weather-layers": i.weatherLayers
|
|
7209
7206
|
}, a.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
|
|
7210
7207
|
P(y, E({
|
|
7211
7208
|
viewport: i.viewport,
|
|
7212
|
-
factor: (
|
|
7209
|
+
factor: (pe = i.weatherLayers) == null ? void 0 : pe["current-particle"],
|
|
7213
7210
|
"before-layer": t.beforeLayer,
|
|
7214
|
-
"toggle-version":
|
|
7211
|
+
"toggle-version": t.toggleVersion
|
|
7215
7212
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7216
7213
|
P(f, E({
|
|
7217
7214
|
ref: "windBarb",
|
|
7218
7215
|
map: t.map,
|
|
7219
7216
|
"map-projection": i.mapProjection,
|
|
7220
7217
|
wind: (q = i.weatherLayers) == null ? void 0 : q.wind,
|
|
7221
|
-
current: (
|
|
7218
|
+
current: (me = i.weatherLayers) == null ? void 0 : me.current,
|
|
7222
7219
|
"before-layer": t.beforeLayer,
|
|
7223
7220
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
7224
7221
|
"show-particle": i.showWindParticle
|
|
7225
7222
|
}, a.$attrs, {
|
|
7226
|
-
"toggle-version":
|
|
7223
|
+
"toggle-version": t.toggleVersion,
|
|
7227
7224
|
"weather-layers": i.weatherLayers,
|
|
7228
7225
|
onParticle: o.handleParticle
|
|
7229
7226
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
|
|
7230
7227
|
P(m, E({
|
|
7231
7228
|
viewport: i.viewport,
|
|
7232
|
-
factor: (
|
|
7229
|
+
factor: (ee = i.weatherLayers) == null ? void 0 : ee["wind-particle"],
|
|
7233
7230
|
"before-layer": t.beforeLayer,
|
|
7234
|
-
"toggle-version":
|
|
7231
|
+
"toggle-version": t.toggleVersion
|
|
7235
7232
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7236
7233
|
P(v, E({
|
|
7237
7234
|
viewport: i.viewport,
|
|
7238
|
-
factor: (
|
|
7235
|
+
factor: (te = i.weatherLayers) == null ? void 0 : te.precip3h,
|
|
7239
7236
|
"before-layer": t.beforeLayer,
|
|
7240
|
-
"toggle-version":
|
|
7237
|
+
"toggle-version": t.toggleVersion
|
|
7241
7238
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7242
7239
|
P(b, E({
|
|
7243
7240
|
viewport: i.viewport,
|
|
7244
|
-
factor: (
|
|
7241
|
+
factor: (ae = i.weatherLayers) == null ? void 0 : ae.visibility,
|
|
7245
7242
|
"before-layer": t.beforeLayer,
|
|
7246
|
-
"toggle-version":
|
|
7243
|
+
"toggle-version": t.toggleVersion
|
|
7247
7244
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7248
7245
|
P(w, E({
|
|
7249
7246
|
viewport: i.viewport,
|
|
7250
7247
|
factor: (fe = i.weatherLayers) == null ? void 0 : fe["water-temp"],
|
|
7251
7248
|
"before-layer": t.beforeLayer,
|
|
7252
|
-
"toggle-version":
|
|
7249
|
+
"toggle-version": t.toggleVersion
|
|
7253
7250
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7254
7251
|
P(k, E({
|
|
7255
7252
|
viewport: i.viewport,
|
|
7256
7253
|
factor: (ge = i.weatherLayers) == null ? void 0 : ge.temp,
|
|
7257
7254
|
"before-layer": t.beforeLayer,
|
|
7258
|
-
"toggle-version":
|
|
7255
|
+
"toggle-version": t.toggleVersion
|
|
7259
7256
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7260
7257
|
P(L, E({
|
|
7261
7258
|
viewport: i.viewport,
|
|
7262
7259
|
factor: (be = i.weatherLayers) == null ? void 0 : be.arctic,
|
|
7263
7260
|
"before-layer": t.beforeLayer,
|
|
7264
|
-
"toggle-version":
|
|
7261
|
+
"toggle-version": t.toggleVersion
|
|
7265
7262
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7266
7263
|
P(D, E({
|
|
7267
7264
|
map: t.map,
|
|
@@ -7293,52 +7290,52 @@ function Ui(a, e, t, r, i, o) {
|
|
|
7293
7290
|
line: (Ie = i.otherLayers) == null ? void 0 : Ie["load-lines"],
|
|
7294
7291
|
"before-layer": t.beforeLayer
|
|
7295
7292
|
}, a.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
7296
|
-
P(
|
|
7293
|
+
P(re, E({
|
|
7297
7294
|
map: t.map,
|
|
7298
7295
|
zone: (De = i.otherLayers) == null ? void 0 : De["time-zones"],
|
|
7299
7296
|
"before-layer": t.beforeLayer
|
|
7300
7297
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7301
|
-
P(
|
|
7298
|
+
P(oe, E({
|
|
7302
7299
|
map: t.map,
|
|
7303
7300
|
area: (Ae = i.otherLayers) == null ? void 0 : Ae["voluntary-reporting-area"],
|
|
7304
7301
|
"before-layer": t.beforeLayer
|
|
7305
7302
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7306
|
-
P(
|
|
7303
|
+
P(se, E({
|
|
7307
7304
|
map: t.map,
|
|
7308
7305
|
area: (Me = i.otherLayers) == null ? void 0 : Me["special-area"],
|
|
7309
7306
|
"before-layer": t.beforeLayer
|
|
7310
7307
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7311
|
-
P(
|
|
7308
|
+
P(ne, E({
|
|
7312
7309
|
map: t.map,
|
|
7313
7310
|
area: (Be = i.otherLayers) == null ? void 0 : Be["day-night"]
|
|
7314
7311
|
}, a.$attrs), null, 16, ["map", "area"]),
|
|
7315
|
-
P(
|
|
7312
|
+
P(le, E({
|
|
7316
7313
|
map: t.map,
|
|
7317
7314
|
show: i.showCoord,
|
|
7318
|
-
"toggle-version":
|
|
7315
|
+
"toggle-version": t.toggleVersion
|
|
7319
7316
|
}, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
7320
|
-
P(
|
|
7317
|
+
P(ce, E({
|
|
7321
7318
|
map: t.map,
|
|
7322
7319
|
show: i.showMeasure
|
|
7323
7320
|
}, a.$attrs), null, 16, ["map", "show"]),
|
|
7324
|
-
P(
|
|
7321
|
+
P(he, E({
|
|
7325
7322
|
map: t.map,
|
|
7326
7323
|
show: i.showPoint,
|
|
7327
7324
|
meteo: i.meteo
|
|
7328
7325
|
}, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
|
|
7329
7326
|
])) : B("", !0);
|
|
7330
7327
|
}
|
|
7331
|
-
const
|
|
7328
|
+
const Ui = /* @__PURE__ */ T(Fi, [["render", Vi]]), Ki = {
|
|
7332
7329
|
install(a) {
|
|
7333
|
-
a.component("MapboxGL",
|
|
7330
|
+
a.component("MapboxGL", Ui), a.component("TropicalGL", je), a.component("LatLngGL", We);
|
|
7334
7331
|
}
|
|
7335
7332
|
};
|
|
7336
7333
|
export {
|
|
7337
7334
|
We as LatLngGL,
|
|
7338
|
-
|
|
7335
|
+
Ui as MapboxGL,
|
|
7339
7336
|
Ki as MapboxGLPlugin,
|
|
7340
7337
|
gt as MapboxHelper,
|
|
7341
|
-
|
|
7338
|
+
U as ParticleSchema,
|
|
7342
7339
|
je as TropicalGL,
|
|
7343
7340
|
Te as Viewport,
|
|
7344
7341
|
ye as WebGL,
|