@idmwx/idmui-gl3 3.6.3 → 3.6.5
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 +610 -554
- package/dist/index.umd.cjs +11 -11
- package/dist/mapbox/src/components/weather/tropical.vue.d.ts +5 -0
- package/dist/mapbox/src/index.vue.d.ts +5 -3
- 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 L, createElementBlock as x, createElementVNode as l, normalizeStyle as j, normalizeClass as M, Fragment as Ae, renderList as De, toDisplayString as S, createVNode as P, withCtx as nt, createTextVNode as Ke, createCommentVNode as N, pushScopeId as
|
|
3
|
+
var A = (t, e, a) => (ot(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
4
|
+
import { LayerHelper as Ue, CompanyHelper as Me, LngLatHelper as te, convertToMonotonicLng2 as st, calculateDistance as je, calculateBearing as Fe, convertToMonotonicLng as we, interpolateCoordinates as Ve, convertToStandardLng as Re } from "@idmwx/idmwx-base";
|
|
5
|
+
import { resolveComponent as z, openBlock as L, createElementBlock as x, createElementVNode as l, normalizeStyle as j, normalizeClass as M, Fragment as Ae, renderList as De, toDisplayString as S, createVNode as P, withCtx as nt, createTextVNode as Ke, createCommentVNode as N, pushScopeId as G, popScopeId as H, 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
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import ee from "moment";
|
|
9
|
+
import ne from "mapbox-gl";
|
|
10
10
|
import { TropicalHelper as et } from "@idm-plugin/geo";
|
|
11
|
-
import
|
|
11
|
+
import se from "axios";
|
|
12
12
|
const T = (t, e) => {
|
|
13
13
|
const a = t.__vccOpts || t;
|
|
14
14
|
for (const [r, i] of e)
|
|
@@ -46,8 +46,8 @@ const T = (t, e) => {
|
|
|
46
46
|
autoActive: !0,
|
|
47
47
|
otherLayers: [],
|
|
48
48
|
layers: {
|
|
49
|
-
weather: [...
|
|
50
|
-
other: [...
|
|
49
|
+
weather: [...Ue.WEATHER_LAYERS],
|
|
50
|
+
other: [...Ue.OTHER_LAYERS]
|
|
51
51
|
},
|
|
52
52
|
weatherLayersCache: "weatherLayersCache",
|
|
53
53
|
autoActiveCache: "autoActiveCache",
|
|
@@ -141,7 +141,7 @@ const T = (t, e) => {
|
|
|
141
141
|
this.source = t, this.handleConfirm();
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
}, Z = (t) => (
|
|
144
|
+
}, Z = (t) => (G("data-v-cb712a44"), t = t(), H(), t), dt = { class: "idm-gl-layer" }, pt = { class: "bar-item layer-bars" }, mt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), ut = [
|
|
145
145
|
mt
|
|
146
146
|
], yt = { class: "bar-item tool-bars" }, ft = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), gt = [
|
|
147
147
|
ft
|
|
@@ -276,7 +276,7 @@ function Ft(t, e, a, r, i, o) {
|
|
|
276
276
|
], 4)
|
|
277
277
|
]);
|
|
278
278
|
}
|
|
279
|
-
const Vt = /* @__PURE__ */ T(ht, [["render", Ft], ["__scopeId", "data-v-
|
|
279
|
+
const Vt = /* @__PURE__ */ T(ht, [["render", Ft], ["__scopeId", "data-v-cb712a44"]]);
|
|
280
280
|
const Ut = {
|
|
281
281
|
name: "IdmWindBarb",
|
|
282
282
|
props: {
|
|
@@ -383,22 +383,22 @@ const Ut = {
|
|
|
383
383
|
else {
|
|
384
384
|
this.map.addSource(this.source, { type: "geojson", data: s });
|
|
385
385
|
for (let c = 0; c < (this.barbs ?? []).length - 1; c++) {
|
|
386
|
-
const h = (this.barbs ?? [])[c] || 0,
|
|
386
|
+
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`;
|
|
387
387
|
this.map.addLayer(
|
|
388
388
|
{
|
|
389
|
-
id:
|
|
389
|
+
id: p,
|
|
390
390
|
type: "symbol",
|
|
391
391
|
filter: [
|
|
392
392
|
"all",
|
|
393
393
|
// @ts-ignore
|
|
394
394
|
[">=", "spd", h],
|
|
395
395
|
// @ts-ignore
|
|
396
|
-
["<", "spd",
|
|
396
|
+
["<", "spd", d]
|
|
397
397
|
],
|
|
398
398
|
source: this.source,
|
|
399
399
|
layout: {
|
|
400
400
|
"symbol-placement": "point",
|
|
401
|
-
"icon-image":
|
|
401
|
+
"icon-image": p,
|
|
402
402
|
// mapbox sprite
|
|
403
403
|
"icon-size": 0.14,
|
|
404
404
|
"icon-offset": [0, -20],
|
|
@@ -485,17 +485,17 @@ function qt(t, e, a, r, i, o) {
|
|
|
485
485
|
])) : N("", !0);
|
|
486
486
|
}
|
|
487
487
|
const Yt = /* @__PURE__ */ T(Ut, [["render", qt], ["__scopeId", "data-v-f285f28f"]]);
|
|
488
|
-
class
|
|
488
|
+
class Ge {
|
|
489
489
|
constructor(e) {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
490
|
+
A(this, "map");
|
|
491
|
+
A(this, "mercator");
|
|
492
|
+
A(this, "rampColorLayer");
|
|
493
|
+
A(this, "rampColorSource");
|
|
494
|
+
A(this, "particleLayer");
|
|
495
|
+
A(this, "particleSource");
|
|
496
|
+
A(this, "rampColorCanvas");
|
|
497
|
+
A(this, "particleCanvas");
|
|
498
|
+
A(this, "ratio");
|
|
499
499
|
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
500
|
}
|
|
501
501
|
/**
|
|
@@ -530,8 +530,8 @@ class Ue {
|
|
|
530
530
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
531
531
|
*/
|
|
532
532
|
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,
|
|
534
|
-
return [
|
|
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, y] = this.mercator.px([s, i[1]], a), m = Math.round(this.mercator.size * Math.pow(2, a) * (n + c));
|
|
534
|
+
return [p, y, h + m, d];
|
|
535
535
|
}
|
|
536
536
|
/**
|
|
537
537
|
* [视窗边界像素宽度]
|
|
@@ -546,13 +546,13 @@ class Ue {
|
|
|
546
546
|
* @param zoom
|
|
547
547
|
*/
|
|
548
548
|
getWorldCopy(e, a) {
|
|
549
|
-
const r = 2 ** a, [i, o, n, s] = e.map((
|
|
550
|
-
for (let
|
|
551
|
-
for (let
|
|
552
|
-
c.push([
|
|
553
|
-
return c.map((
|
|
554
|
-
const
|
|
555
|
-
return [
|
|
549
|
+
const r = 2 ** a, [i, o, n, s] = e.map((d) => ~~(d / (r * 256))), c = [];
|
|
550
|
+
for (let d = s; d <= o; d++)
|
|
551
|
+
for (let p = i; p <= n; p++)
|
|
552
|
+
c.push([p, d]);
|
|
553
|
+
return c.map((d) => {
|
|
554
|
+
const p = 2 ** a * 256;
|
|
555
|
+
return [d[0] * p, d[1] * p, p];
|
|
556
556
|
});
|
|
557
557
|
}
|
|
558
558
|
resize() {
|
|
@@ -568,7 +568,7 @@ class Ue {
|
|
|
568
568
|
a !== r && this.map.setLayoutProperty(this.particleLayer, "visibility", r);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
class
|
|
571
|
+
class ve {
|
|
572
572
|
/**
|
|
573
573
|
* 创建着色器
|
|
574
574
|
* @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
|
|
@@ -655,8 +655,8 @@ class le {
|
|
|
655
655
|
const s = n.getContext("2d");
|
|
656
656
|
if (s && e) {
|
|
657
657
|
const c = s == null ? void 0 : s.createLinearGradient(0, 0, 256, 0);
|
|
658
|
-
return a.forEach(([h,
|
|
659
|
-
c.addColorStop(h,
|
|
658
|
+
return a.forEach(([h, d]) => {
|
|
659
|
+
c.addColorStop(h, d);
|
|
660
660
|
}), s.fillStyle = c, s.fillRect(0, 0, 256, 1), {
|
|
661
661
|
canvas: n,
|
|
662
662
|
texture: this.createTexture(
|
|
@@ -673,11 +673,11 @@ class le {
|
|
|
673
673
|
}
|
|
674
674
|
setupParticle(e, a = 1e3) {
|
|
675
675
|
const r = Math.ceil(Math.sqrt(a)), i = r * r, o = new Uint8Array(i * 4);
|
|
676
|
-
for (let
|
|
677
|
-
o[
|
|
676
|
+
for (let d = 0; d < o.length; d++)
|
|
677
|
+
o[d] = Math.floor(Math.random() * 256);
|
|
678
678
|
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);
|
|
679
|
-
for (let
|
|
680
|
-
c[
|
|
679
|
+
for (let d = 0; d < i; d++)
|
|
680
|
+
c[d] = d;
|
|
681
681
|
const h = this.createDataBuffer(e, "array", c);
|
|
682
682
|
return { resolution: r, total: i, texture0: n, texture1: s, indexBuffer: h };
|
|
683
683
|
}
|
|
@@ -694,26 +694,26 @@ class le {
|
|
|
694
694
|
return {};
|
|
695
695
|
}
|
|
696
696
|
bindParticle(e, a, r, i, o, n) {
|
|
697
|
-
const s = this.createProgramWrapper(e, a, r), c = this.createProgramWrapper(e, i, o), h = this.createProgramWrapper(e, i, n),
|
|
698
|
-
return { particle: s, screen: c, update: h, quadBuffer:
|
|
697
|
+
const s = this.createProgramWrapper(e, a, 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();
|
|
698
|
+
return { particle: s, screen: c, update: h, quadBuffer: d, frameBuffer: p };
|
|
699
699
|
}
|
|
700
700
|
draw(e, a, r, i, o, n, s) {
|
|
701
701
|
var c, h;
|
|
702
702
|
if (a && r) {
|
|
703
703
|
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
704
|
try {
|
|
705
|
-
const
|
|
706
|
-
if (a.useProgram(r), a.uniform2f(
|
|
707
|
-
const
|
|
708
|
-
a.uniform2f(
|
|
705
|
+
const d = a.getUniformLocation(r, "u_resolution"), p = a.getUniformLocation(r, "u_image"), y = a.getUniformLocation(r, "u_color");
|
|
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(y, 1), s != null && s.uvRange && (s != null && s.sRange)) {
|
|
707
|
+
const u = a.getUniformLocation(r, "u_range_u_v"), v = a.getUniformLocation(r, "u_range_s");
|
|
708
|
+
a.uniform2f(u, s.uvRange[0], s.uvRange[1]), a.uniform2f(v, s.sRange[0], s.sRange[1]);
|
|
709
709
|
}
|
|
710
|
-
const
|
|
711
|
-
for (const
|
|
712
|
-
const v = (
|
|
710
|
+
const m = e.getBoundPixel(), g = e.map.getZoom() + 1, f = e.getWorldCopy(m, g);
|
|
711
|
+
for (const u of f) {
|
|
712
|
+
const v = (u[0] - m[0]) * e.ratio, b = (u[1] - m[3]) * e.ratio, w = u[2] * e.ratio, [k, _, I, D] = [v, w + v, b, w + b], $ = new Float32Array([k, I, _, I, k, D, k, D, _, I, _, D]);
|
|
713
713
|
a.bindBuffer(a.ARRAY_BUFFER, n), a.bufferData(a.ARRAY_BUFFER, $, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
|
|
714
714
|
}
|
|
715
|
-
} catch (
|
|
716
|
-
console.log(`render failed...${
|
|
715
|
+
} catch (d) {
|
|
716
|
+
console.log(`render failed...${d}`);
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
719
|
}
|
|
@@ -761,7 +761,7 @@ class le {
|
|
|
761
761
|
class B {
|
|
762
762
|
}
|
|
763
763
|
// 顶点渲染
|
|
764
|
-
|
|
764
|
+
A(B, "vertexSchema", `
|
|
765
765
|
//canvas 坐标系上的坐标 (x, y)
|
|
766
766
|
attribute vec2 a_position; //像素坐标
|
|
767
767
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -776,7 +776,7 @@ E(B, "vertexSchema", `
|
|
|
776
776
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
777
777
|
v_texCoord = a_texCoord;
|
|
778
778
|
}`), // 类如风、流等u v双变量片元渲染
|
|
779
|
-
|
|
779
|
+
A(B, "uvFragmentSchema", `
|
|
780
780
|
precision mediump float;
|
|
781
781
|
uniform sampler2D u_image;
|
|
782
782
|
uniform vec2 u_range_u_v;
|
|
@@ -795,7 +795,7 @@ E(B, "uvFragmentSchema", `
|
|
|
795
795
|
|
|
796
796
|
gl_FragColor = color;
|
|
797
797
|
}`), // 类如浪、气压等单变量片元渲染
|
|
798
|
-
|
|
798
|
+
A(B, "fragmentSchema", `
|
|
799
799
|
precision mediump float;
|
|
800
800
|
uniform sampler2D u_image; // 灰度
|
|
801
801
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -806,9 +806,9 @@ E(B, "fragmentSchema", `
|
|
|
806
806
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
807
807
|
gl_FragColor = color;
|
|
808
808
|
}`);
|
|
809
|
-
class
|
|
809
|
+
class V {
|
|
810
810
|
}
|
|
811
|
-
|
|
811
|
+
A(V, "vertexSchema", `
|
|
812
812
|
precision mediump float;
|
|
813
813
|
|
|
814
814
|
attribute float a_index; // 索引
|
|
@@ -832,7 +832,7 @@ E(F, "vertexSchema", `
|
|
|
832
832
|
gl_PointSize = 1.0;
|
|
833
833
|
// gl_PointSize = u_point;
|
|
834
834
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
835
|
-
}`),
|
|
835
|
+
}`), A(V, "fragmentSchema", `
|
|
836
836
|
precision mediump float;
|
|
837
837
|
|
|
838
838
|
uniform sampler2D u_factor;
|
|
@@ -854,7 +854,7 @@ E(F, "vertexSchema", `
|
|
|
854
854
|
|
|
855
855
|
float f = 1.0 - uv.b;
|
|
856
856
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
857
|
-
}`),
|
|
857
|
+
}`), A(V, "quadVertSchema", `
|
|
858
858
|
precision mediump float;
|
|
859
859
|
|
|
860
860
|
attribute vec2 a_pos;
|
|
@@ -864,7 +864,7 @@ E(F, "vertexSchema", `
|
|
|
864
864
|
void main() {
|
|
865
865
|
v_tex_pos = a_pos;
|
|
866
866
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
867
|
-
}`),
|
|
867
|
+
}`), A(V, "screenFragmentSchema", `
|
|
868
868
|
precision mediump float;
|
|
869
869
|
|
|
870
870
|
uniform sampler2D u_screen;
|
|
@@ -876,7 +876,7 @@ E(F, "vertexSchema", `
|
|
|
876
876
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
877
877
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
878
878
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
879
|
-
}`),
|
|
879
|
+
}`), A(V, "updateFragmentSchema", `
|
|
880
880
|
precision mediump float;
|
|
881
881
|
|
|
882
882
|
uniform sampler2D u_particles;
|
|
@@ -957,12 +957,12 @@ E(F, "vertexSchema", `
|
|
|
957
957
|
}`);
|
|
958
958
|
class Qt {
|
|
959
959
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
960
|
+
A(this, "token");
|
|
961
|
+
A(this, "mapboxCustomer");
|
|
962
|
+
A(this, "i4");
|
|
963
|
+
A(this, "hi");
|
|
964
|
+
A(this, "td");
|
|
965
|
+
A(this, "windy");
|
|
966
966
|
this.token = e, this.mapboxCustomer = {
|
|
967
967
|
source: this.initialOnlineStyle().sources.composite,
|
|
968
968
|
layers: {
|
|
@@ -2566,7 +2566,7 @@ const Kt = {
|
|
|
2566
2566
|
type: Object
|
|
2567
2567
|
},
|
|
2568
2568
|
viewport: {
|
|
2569
|
-
type:
|
|
2569
|
+
type: Ge
|
|
2570
2570
|
},
|
|
2571
2571
|
bottom: {
|
|
2572
2572
|
type: String,
|
|
@@ -2583,7 +2583,7 @@ const Kt = {
|
|
|
2583
2583
|
texture: void 0,
|
|
2584
2584
|
rampColor: void 0,
|
|
2585
2585
|
aPositionBuffer: void 0,
|
|
2586
|
-
webgl: new
|
|
2586
|
+
webgl: new ve(),
|
|
2587
2587
|
etime: void 0,
|
|
2588
2588
|
wrapper: void 0,
|
|
2589
2589
|
animation: void 0,
|
|
@@ -2687,11 +2687,11 @@ const Kt = {
|
|
|
2687
2687
|
];
|
|
2688
2688
|
this.wrapper = this.webgl.bindParticle(
|
|
2689
2689
|
this.particleContext,
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2690
|
+
V.vertexSchema,
|
|
2691
|
+
V.fragmentSchema,
|
|
2692
|
+
V.quadVertSchema,
|
|
2693
|
+
V.screenFragmentSchema,
|
|
2694
|
+
V.updateFragmentSchema
|
|
2695
2695
|
), this.wrapper.color = this.webgl.setup(this.particleContext, t, !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);
|
|
2696
2696
|
}
|
|
2697
2697
|
},
|
|
@@ -2721,7 +2721,7 @@ const Kt = {
|
|
|
2721
2721
|
});
|
|
2722
2722
|
}
|
|
2723
2723
|
}
|
|
2724
|
-
},
|
|
2724
|
+
}, le = (t) => (G("data-v-41a686d0"), t = t(), H(), t), ea = { key: 0 }, ta = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "kts", -1)), aa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "0", -1)), ia = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "5", -1)), ra = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "10", -1)), oa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "20", -1)), sa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "30", -1)), na = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "40", -1)), la = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "60", -1)), ca = [
|
|
2725
2725
|
ta,
|
|
2726
2726
|
aa,
|
|
2727
2727
|
ia,
|
|
@@ -2957,7 +2957,7 @@ const _a = {
|
|
|
2957
2957
|
type: Object
|
|
2958
2958
|
},
|
|
2959
2959
|
viewport: {
|
|
2960
|
-
type:
|
|
2960
|
+
type: Ge
|
|
2961
2961
|
},
|
|
2962
2962
|
// right: {
|
|
2963
2963
|
// type: String,
|
|
@@ -2978,7 +2978,7 @@ const _a = {
|
|
|
2978
2978
|
texture: void 0,
|
|
2979
2979
|
rampColor: void 0,
|
|
2980
2980
|
aPositionBuffer: void 0,
|
|
2981
|
-
webgl: new
|
|
2981
|
+
webgl: new ve(),
|
|
2982
2982
|
etime: void 0,
|
|
2983
2983
|
wrapper: void 0,
|
|
2984
2984
|
animation: void 0,
|
|
@@ -3073,11 +3073,11 @@ const _a = {
|
|
|
3073
3073
|
];
|
|
3074
3074
|
this.wrapper = this.webgl.bindParticle(
|
|
3075
3075
|
this.particleContext,
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3076
|
+
V.vertexSchema,
|
|
3077
|
+
V.fragmentSchema,
|
|
3078
|
+
V.quadVertSchema,
|
|
3079
|
+
V.screenFragmentSchema,
|
|
3080
|
+
V.updateFragmentSchema
|
|
3081
3081
|
), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = {
|
|
3082
3082
|
...this.wrapper,
|
|
3083
3083
|
...this.webgl.setupParticle(this.particleContext, 12e3),
|
|
@@ -3111,7 +3111,7 @@ const _a = {
|
|
|
3111
3111
|
});
|
|
3112
3112
|
}
|
|
3113
3113
|
}
|
|
3114
|
-
},
|
|
3114
|
+
}, _e = (t) => (G("data-v-a182db4f"), t = t(), H(), 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
3115
|
La,
|
|
3116
3116
|
xa,
|
|
3117
3117
|
Ca,
|
|
@@ -3610,14 +3610,17 @@ const Ua = {
|
|
|
3610
3610
|
showTropicals: !1,
|
|
3611
3611
|
activeTropicals: void 0,
|
|
3612
3612
|
activeTropicalsMarker: void 0,
|
|
3613
|
-
empty: C.featureCollection([])
|
|
3613
|
+
empty: C.featureCollection([]),
|
|
3614
|
+
circleSource: "circle-source",
|
|
3615
|
+
circleSourceData: C.featureCollection([]),
|
|
3616
|
+
circleLayer: "tropical-circle-layer"
|
|
3614
3617
|
};
|
|
3615
3618
|
},
|
|
3616
3619
|
computed: {
|
|
3617
3620
|
computeTime() {
|
|
3618
3621
|
return function(t) {
|
|
3619
3622
|
if (t) {
|
|
3620
|
-
const e =
|
|
3623
|
+
const e = ee(t).utc();
|
|
3621
3624
|
return `${e.format("MMM-DD,HHmm[Z]")} (${e == null ? void 0 : e.fromNow()})`;
|
|
3622
3625
|
}
|
|
3623
3626
|
return "-";
|
|
@@ -3640,30 +3643,30 @@ const Ua = {
|
|
|
3640
3643
|
"tropicals.version": {
|
|
3641
3644
|
handler() {
|
|
3642
3645
|
var r, i;
|
|
3643
|
-
const t = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e =
|
|
3646
|
+
const t = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = ee().utc().hour(), a = [];
|
|
3644
3647
|
t.forEach((o) => {
|
|
3645
3648
|
var n, s, c;
|
|
3646
3649
|
(n = o.properties) != null && n.name && !a.includes((s = o.properties) == null ? void 0 : s.name) && a.push((c = o.properties) == null ? void 0 : c.name);
|
|
3647
3650
|
}), a.forEach((o) => {
|
|
3648
3651
|
var h;
|
|
3649
3652
|
let n = 0, s;
|
|
3650
|
-
const c = t.filter((
|
|
3651
|
-
var
|
|
3652
|
-
return ((y = (
|
|
3653
|
+
const c = t.filter((d) => {
|
|
3654
|
+
var p, y;
|
|
3655
|
+
return ((y = (p = d.properties) == null ? void 0 : p.category) == null ? void 0 : y.split("-")[0]) === o;
|
|
3653
3656
|
});
|
|
3654
|
-
(h = c.filter((
|
|
3655
|
-
var
|
|
3656
|
-
return ((
|
|
3657
|
-
})[0]) == null || h.properties.model, c.forEach((
|
|
3658
|
-
var y,
|
|
3659
|
-
((y =
|
|
3660
|
-
}), c.map((
|
|
3661
|
-
var y,
|
|
3662
|
-
if (((y =
|
|
3663
|
-
const k = ((w = (b =
|
|
3664
|
-
|
|
3657
|
+
(h = c.filter((d) => {
|
|
3658
|
+
var p, y;
|
|
3659
|
+
return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((y = d.properties) == null ? void 0 : y.type) === "forecast";
|
|
3660
|
+
})[0]) == null || h.properties.model, c.forEach((d, p) => {
|
|
3661
|
+
var y, m, g, f, u, v;
|
|
3662
|
+
((y = d.geometry) == null ? void 0 : y.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" && ((f = d.properties) == null ? void 0 : f.type) === "forecast" && s === void 0 && (s = p), ((u = d.geometry) == null ? void 0 : u.type) === "LineString" && ((v = d.properties) == null || v.type);
|
|
3663
|
+
}), c.map((d, p) => {
|
|
3664
|
+
var y, m, g, f, u, v, b, w;
|
|
3665
|
+
if (((y = d.geometry) == null ? void 0 : y.type) === "LineString" && ((m = d.properties) == null || m.type), ((g = d.geometry) == null ? void 0 : g.type) === "Point" && ((f = d.properties) == null ? void 0 : f.type) === "forecast" && (d.properties.name = o), ((u = d.geometry) == null ? void 0 : u.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
|
|
3666
|
+
const k = ((w = (b = d.properties) == null ? void 0 : b.format) == null ? void 0 : w.slice(7, 12)) === ee().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
|
|
3667
|
+
d.properties.showHistoryLabel = k || p === n, d.properties.showNameLabel = p === n, d.properties.name = o;
|
|
3665
3668
|
}
|
|
3666
|
-
return
|
|
3669
|
+
return d;
|
|
3667
3670
|
});
|
|
3668
3671
|
}), this.handleInit();
|
|
3669
3672
|
}
|
|
@@ -3701,16 +3704,16 @@ const Ua = {
|
|
|
3701
3704
|
));
|
|
3702
3705
|
},
|
|
3703
3706
|
handleRender() {
|
|
3704
|
-
var t, e, a, r, i, o, n, s, c, h,
|
|
3707
|
+
var t, e, a, r, i, o, n, s, c, h, d;
|
|
3705
3708
|
if (!this.map)
|
|
3706
3709
|
setTimeout(() => {
|
|
3707
3710
|
this.handleRender();
|
|
3708
3711
|
}, 500);
|
|
3709
3712
|
else {
|
|
3710
3713
|
if (this.tropicals) {
|
|
3711
|
-
const
|
|
3712
|
-
let y = 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),
|
|
3714
|
+
const p = (/* @__PURE__ */ new Date()).valueOf();
|
|
3715
|
+
let y = 0, m = 0;
|
|
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 + y), console.log("[tropicals] update elapsed: ", m, ", total: ", y += m)) : (this.map.addSource(this.source, {
|
|
3714
3717
|
type: "geojson",
|
|
3715
3718
|
data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
|
|
3716
3719
|
}), this.map.addLayer({
|
|
@@ -3807,7 +3810,7 @@ const Ua = {
|
|
|
3807
3810
|
],
|
|
3808
3811
|
"text-halo-width": 4
|
|
3809
3812
|
}
|
|
3810
|
-
}),
|
|
3813
|
+
}), m = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] add elapsed: ", m, ", total: ", y += 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 + y), console.log("[tropical] update elapsed: ", m, ", total: ", y += m)) : (this.map.addSource(this.clusterSource, {
|
|
3811
3814
|
type: "geojson",
|
|
3812
3815
|
data: (c = this.tropicals) != null && c.active ? (h = this.tropicals) == null ? void 0 : h.data : this.empty
|
|
3813
3816
|
// cluster: true,
|
|
@@ -3922,22 +3925,22 @@ const Ua = {
|
|
|
3922
3925
|
"text-halo-color": "#146bf5",
|
|
3923
3926
|
"text-halo-width": 4
|
|
3924
3927
|
}
|
|
3925
|
-
}),
|
|
3928
|
+
}), m = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] add elapsed: ", m, ", total: ", y += m));
|
|
3926
3929
|
}
|
|
3927
|
-
if (!((
|
|
3928
|
-
const
|
|
3930
|
+
if (this.handleDrawCircle(), !((d = this.tropicals) != null && d.cached)) {
|
|
3931
|
+
const p = et.interpolate(this.tropicals, 1), y = JSON.parse(JSON.stringify(p)), m = [];
|
|
3929
3932
|
y.forEach((g) => {
|
|
3930
|
-
var f,
|
|
3931
|
-
(f = g.properties) != null && f.name && !
|
|
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) => {
|
|
3933
3936
|
var v;
|
|
3934
|
-
const
|
|
3937
|
+
const u = (v = y.filter((b) => {
|
|
3935
3938
|
var w;
|
|
3936
3939
|
return ((w = b.properties) == null ? void 0 : w.name) === g;
|
|
3937
3940
|
})[0]) == null ? void 0 : v.properties.model;
|
|
3938
3941
|
y.map((b, w) => {
|
|
3939
3942
|
var k, _;
|
|
3940
|
-
return ((k = b.properties) == null ? void 0 : k.name) === g && (b.properties.disabled = ((_ = b.properties) == null ? void 0 : _.model) !==
|
|
3943
|
+
return ((k = b.properties) == null ? void 0 : k.name) === g && (b.properties.disabled = ((_ = b.properties) == null ? void 0 : _.model) !== u), b;
|
|
3941
3944
|
});
|
|
3942
3945
|
}), this.interpolateData = JSON.parse(JSON.stringify(y));
|
|
3943
3946
|
}
|
|
@@ -3946,17 +3949,17 @@ const Ua = {
|
|
|
3946
3949
|
},
|
|
3947
3950
|
handleClear() {
|
|
3948
3951
|
var t;
|
|
3949
|
-
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));
|
|
3952
|
+
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));
|
|
3950
3953
|
},
|
|
3951
3954
|
handleDateChange() {
|
|
3952
|
-
var t, e, a, r, i, o, n, s, c, h,
|
|
3953
|
-
if ((t = this.interpolateMarkers) == null || t.forEach((X) => X == null ? void 0 : X.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
3954
|
-
const X =
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
}), (a = this.map) != null && a.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(
|
|
3955
|
+
var t, e, a, r, i, o, n, s, c, h, d, p, y, m, g, f, u, v, b, w, k, _, I, D, $, W, O, U, ae, de, pe, me, ue, ye;
|
|
3956
|
+
if ((t = this.interpolateMarkers) == null || t.forEach((X) => X == null ? void 0 : X.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
3957
|
+
const X = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), q = this.interpolateData.filter((R) => R.properties.date === X.format() && !R.properties.disabled), fe = this.handleComputePolygons(q), Y = C.featureCollection([...q]);
|
|
3958
|
+
fe.forEach((R) => {
|
|
3959
|
+
Y.features.push(R);
|
|
3960
|
+
}), (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, {
|
|
3958
3961
|
type: "geojson",
|
|
3959
|
-
data:
|
|
3962
|
+
data: Y
|
|
3960
3963
|
}), (o = this.map) == null || o.addLayer({
|
|
3961
3964
|
id: this.interpolateLineLayer,
|
|
3962
3965
|
type: "line",
|
|
@@ -3968,17 +3971,17 @@ const Ua = {
|
|
|
3968
3971
|
"line-width": 2
|
|
3969
3972
|
}
|
|
3970
3973
|
})), this.interpolateMarkers = [];
|
|
3971
|
-
for (const R of
|
|
3974
|
+
for (const R of q)
|
|
3972
3975
|
if (!R.properties.disabled) {
|
|
3973
|
-
let
|
|
3974
|
-
((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 ?
|
|
3975
|
-
const
|
|
3976
|
+
let F = "#f44336";
|
|
3977
|
+
((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 ? F = "#03f869" : ((h = (c = R.properties) == null ? void 0 : c.wind) == null ? void 0 : h.spd) >= 17.2 && ((p = (d = R.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) < 24.5 ? F = "#f2f202" : ((m = (y = R.properties) == null ? void 0 : y.wind) == null ? void 0 : m.spd) >= 24.5 && ((f = (g = R.properties) == null ? void 0 : g.wind) == null ? void 0 : f.spd) < 32.7 ? F = "#ff9100" : ((v = (u = R.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) >= 32.7 && ((w = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) < 41.5 ? F = "#f44336" : ((_ = (k = R.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) >= 41.5 && ((D = (I = R.properties) == null ? void 0 : I.wind) == null ? void 0 : D.spd) < 51 ? F = "#c604a4" : ((W = ($ = R.properties) == null ? void 0 : $.wind) == null ? void 0 : W.spd) >= 51 ? F = "#6b05bb" : F = "#f44336";
|
|
3978
|
+
const ge = `<svg t="1719918955501"
|
|
3976
3979
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
3977
3980
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
3978
3981
|
<path
|
|
3979
3982
|
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"
|
|
3980
|
-
fill="${
|
|
3981
|
-
<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="${
|
|
3983
|
+
fill="${F}" p-id="18383"></path>
|
|
3984
|
+
<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="${F}"
|
|
3982
3985
|
p-id="18384"></path>
|
|
3983
3986
|
<path
|
|
3984
3987
|
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"
|
|
@@ -3986,39 +3989,50 @@ const Ua = {
|
|
|
3986
3989
|
<path
|
|
3987
3990
|
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"
|
|
3988
3991
|
fill="#ffffff" p-id="18386"></path>
|
|
3989
|
-
</svg>`,
|
|
3990
|
-
|
|
3991
|
-
const
|
|
3992
|
-
this.interpolateMarkers.push(
|
|
3992
|
+
</svg>`, Q = document.createElement("div");
|
|
3993
|
+
Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${R.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ge}</div>`;
|
|
3994
|
+
const be = new ne.Marker(Q).setLngLat(R.geometry.coordinates).addTo(this.map);
|
|
3995
|
+
if (this.interpolateMarkers.push(be), (O = R.properties) != null && O.showCircle) {
|
|
3996
|
+
const ie = { radius: 100, coordinates: R.geometry.coordinates }, re = { radius: 200, coordinates: R.geometry.coordinates }, oe = { radius: 500, coordinates: R.geometry.coordinates };
|
|
3997
|
+
(U = this.circleSourceData) == null || U.features.push(
|
|
3998
|
+
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
|
+
), (de = this.circleSourceData) == null || de.features.push(
|
|
4002
|
+
C.circle(oe.coordinates, oe.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4003
|
+
);
|
|
4004
|
+
}
|
|
4005
|
+
(me = (pe = this.map) == null ? void 0 : pe.getSource(this.circleSource)) == null || me.setData(this.circleSourceData);
|
|
3993
4006
|
}
|
|
3994
4007
|
} else
|
|
3995
|
-
(
|
|
4008
|
+
(ue = this.map) != null && ue.getSource(this.interpolateSource) && ((ye = this.map) == null || ye.getSource(this.interpolateSource).setData(this.empty));
|
|
3996
4009
|
},
|
|
3997
4010
|
handleClick(t) {
|
|
3998
|
-
var o, n, s, c, h, p;
|
|
4011
|
+
var o, n, s, c, h, d, p, y;
|
|
3999
4012
|
const e = t.features[0], a = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
|
|
4000
|
-
(
|
|
4001
|
-
var
|
|
4002
|
-
return
|
|
4013
|
+
(m) => {
|
|
4014
|
+
var g;
|
|
4015
|
+
return m.geometry.type === "LineString" && m.properties.type === "forecast" && m.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
|
|
4003
4016
|
}
|
|
4004
4017
|
);
|
|
4005
|
-
a.sort((
|
|
4006
|
-
var
|
|
4007
|
-
return ((
|
|
4018
|
+
a.sort((m, g) => {
|
|
4019
|
+
var f, u, v, b;
|
|
4020
|
+
return ((f = m.properties) == null ? void 0 : f.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;
|
|
4008
4021
|
});
|
|
4009
4022
|
const r = (c = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : c.features.filter(
|
|
4010
|
-
(
|
|
4011
|
-
var
|
|
4012
|
-
return
|
|
4023
|
+
(m) => {
|
|
4024
|
+
var g;
|
|
4025
|
+
return m.geometry.type === "LineString" && m.properties.type === "history" && m.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
|
|
4013
4026
|
}
|
|
4014
4027
|
);
|
|
4015
4028
|
this.activeTropicals = {
|
|
4016
4029
|
name: (h = e == null ? void 0 : e.properties) == null ? void 0 : h.name,
|
|
4017
|
-
forecasts: a.map((
|
|
4018
|
-
history: (
|
|
4030
|
+
forecasts: a.map((m) => m.properties),
|
|
4031
|
+
history: (d = r[0]) == null ? void 0 : d.properties,
|
|
4032
|
+
showCircle: (y = (p = a[0]) == null ? void 0 : p.properties) == null ? void 0 : y.showCircle
|
|
4019
4033
|
}, this.showTropicals = !0;
|
|
4020
4034
|
const i = document.getElementById("active-tropical");
|
|
4021
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new
|
|
4035
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new ne.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
4022
4036
|
},
|
|
4023
4037
|
handleForecastToggle(t) {
|
|
4024
4038
|
var r, i, o, n, s, c;
|
|
@@ -4033,6 +4047,30 @@ const Ua = {
|
|
|
4033
4047
|
handleStrikeProbability(t) {
|
|
4034
4048
|
this.$emit("tropicalProbability", t);
|
|
4035
4049
|
},
|
|
4050
|
+
handleToggleCircles(t) {
|
|
4051
|
+
var e, a;
|
|
4052
|
+
t.showCircle = !t.showCircle, (a = (e = this.tropicals.data) == null ? void 0 : e.features) == null || a.forEach((r) => {
|
|
4053
|
+
r.properties.name === t.name && (r.properties.showCircle = t.showCircle);
|
|
4054
|
+
}), this.handleRender();
|
|
4055
|
+
},
|
|
4056
|
+
handleDrawCircle() {
|
|
4057
|
+
var t, e;
|
|
4058
|
+
(t = this.map) != null && t.getSource(this.circleSource) ? (e = this.map) == null || e.getSource(this.circleSource).setData(this.circleSourceData) : (this.map.addSource(this.circleSource, {
|
|
4059
|
+
type: "geojson",
|
|
4060
|
+
data: this.circleSourceData
|
|
4061
|
+
}), this.map.addLayer({
|
|
4062
|
+
id: this.circleLayer,
|
|
4063
|
+
type: "line",
|
|
4064
|
+
source: this.circleSource,
|
|
4065
|
+
filter: ["all", ["==", "$type", "Polygon"], ["==", "type", "tropicalCircle"]],
|
|
4066
|
+
paint: {
|
|
4067
|
+
"line-color": "#fff",
|
|
4068
|
+
"line-width": 2,
|
|
4069
|
+
"line-opacity": 1,
|
|
4070
|
+
"line-dasharray": [1, 1]
|
|
4071
|
+
}
|
|
4072
|
+
}));
|
|
4073
|
+
},
|
|
4036
4074
|
handleComputePolygons(t) {
|
|
4037
4075
|
const e = [];
|
|
4038
4076
|
for (const a of t) {
|
|
@@ -4079,7 +4117,7 @@ const Ua = {
|
|
|
4079
4117
|
return C.lineToPolygon(i, { properties: a });
|
|
4080
4118
|
}
|
|
4081
4119
|
}
|
|
4082
|
-
},
|
|
4120
|
+
}, Ne = (t) => (G("data-v-6751acd3"), t = t(), H(), t), Ga = {
|
|
4083
4121
|
id: "active-tropical",
|
|
4084
4122
|
class: "active-tropical"
|
|
4085
4123
|
}, Ha = { class: "header-box" }, Za = { class: "main" }, Xa = { key: 0 }, Ja = { class: "sub" }, qa = {
|
|
@@ -4088,33 +4126,36 @@ const Ua = {
|
|
|
4088
4126
|
}, Ya = { class: "content" }, Qa = { class: "row" }, Ka = {
|
|
4089
4127
|
class: "col col-left",
|
|
4090
4128
|
style: { "justify-content": "flex-start" }
|
|
4091
|
-
}, ei = /* @__PURE__ */
|
|
4129
|
+
}, ei = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Wind speed : ", -1)), ti = {
|
|
4092
4130
|
class: "col col-right",
|
|
4093
4131
|
style: { "justify-content": "flex-start" }
|
|
4094
|
-
}, ai = /* @__PURE__ */
|
|
4132
|
+
}, ai = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), ii = { class: "row" }, ri = {
|
|
4133
|
+
class: "col col-24",
|
|
4134
|
+
style: { "justify-content": "flex-start" }
|
|
4135
|
+
}, oi = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), si = { class: "forecast-models" }, ni = ["onClick"], li = { class: "row" }, ci = {
|
|
4095
4136
|
class: "col col-24",
|
|
4096
4137
|
style: { "justify-content": "flex-start" }
|
|
4097
|
-
},
|
|
4098
|
-
function
|
|
4099
|
-
var n, s, c, h,
|
|
4138
|
+
}, hi = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "showCircles : ", -1)), di = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-6751acd3></div><div class="row" style="padding:2px 10px;" data-v-6751acd3><div class="legend" data-v-6751acd3><div class="icon td" data-v-6751acd3></div><div class="label" data-v-6751acd3>TD</div></div><div class="legend" data-v-6751acd3><div class="icon ts" data-v-6751acd3></div><div class="label" data-v-6751acd3>TS</div></div><div class="legend" data-v-6751acd3><div class="icon sts" data-v-6751acd3></div><div class="label" data-v-6751acd3>STS</div></div><div class="legend" data-v-6751acd3><div class="icon ty" data-v-6751acd3></div><div class="label" data-v-6751acd3>TY</div></div><div class="legend" data-v-6751acd3><div class="icon sty" data-v-6751acd3></div><div class="label" data-v-6751acd3>STY</div></div><div class="legend" data-v-6751acd3><div class="icon supper-ty" data-v-6751acd3></div><div class="label" data-v-6751acd3>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-6751acd3><div class="legend" data-v-6751acd3><div class="icon history" data-v-6751acd3></div><div class="label" data-v-6751acd3>History</div></div><div class="legend" data-v-6751acd3><div class="icon r7" data-v-6751acd3></div><div class="label" data-v-6751acd3>35kts Radii</div></div><div class="legend" data-v-6751acd3><div class="icon r10" data-v-6751acd3></div><div class="label" data-v-6751acd3>50kts Radii</div></div></div>', 3), pi = { class: "more" };
|
|
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, _;
|
|
4100
4141
|
return $e((L(), x("div", Ga, [
|
|
4101
4142
|
l("div", Ha, [
|
|
4102
4143
|
l("div", {
|
|
4103
4144
|
class: "iconfont close-btn",
|
|
4104
|
-
onClick: e[0] || (e[0] = (
|
|
4145
|
+
onClick: e[0] || (e[0] = (I) => i.showTropicals = !1)
|
|
4105
4146
|
}, ""),
|
|
4106
4147
|
l("div", Za, [
|
|
4107
4148
|
(s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (L(), x("span", Xa, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : N("", !0),
|
|
4108
|
-
Ke(S((
|
|
4149
|
+
Ke(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
|
|
4109
4150
|
]),
|
|
4110
|
-
l("div", Ja, " Last update: " + S(o.computeTime(((y = (
|
|
4151
|
+
l("div", Ja, " Last update: " + S(o.computeTime(((y = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : y.updated) || ((f = (g = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : g.filter((I) => !I.disabled)[0]) == null ? void 0 : f.date))), 1)
|
|
4111
4152
|
]),
|
|
4112
4153
|
l("div", qa, [
|
|
4113
4154
|
l("div", Ya, [
|
|
4114
4155
|
l("div", Qa, [
|
|
4115
4156
|
l("div", Ka, [
|
|
4116
4157
|
ei,
|
|
4117
|
-
l("span", null, S(((v = (
|
|
4158
|
+
l("span", null, S(((v = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
|
|
4118
4159
|
]),
|
|
4119
4160
|
l("div", ti, [
|
|
4120
4161
|
ai,
|
|
@@ -4125,31 +4166,45 @@ function hi(t, e, a, r, i, o) {
|
|
|
4125
4166
|
l("div", ri, [
|
|
4126
4167
|
oi,
|
|
4127
4168
|
l("div", si, [
|
|
4128
|
-
(L(!0), x(Ae, null, De((k = i.activeTropicals) == null ? void 0 : k.forecasts, (
|
|
4129
|
-
var
|
|
4169
|
+
(L(!0), x(Ae, null, De((k = i.activeTropicals) == null ? void 0 : k.forecasts, (I, D) => {
|
|
4170
|
+
var $, W, O, U;
|
|
4130
4171
|
return L(), x("div", {
|
|
4131
|
-
key:
|
|
4172
|
+
key: D,
|
|
4132
4173
|
class: M([
|
|
4133
4174
|
"model",
|
|
4134
|
-
|
|
4135
|
-
|
|
4175
|
+
I.disabled ? "" : "active",
|
|
4176
|
+
D > 0 && D < ((W = ($ = i.activeTropicals) == null ? void 0 : $.forecasts) == null ? void 0 : W.length) - 1 && ((U = (O = i.activeTropicals) == null ? void 0 : O.forecasts) == null ? void 0 : U.length) > 2 ? "center-child" : ""
|
|
4136
4177
|
]),
|
|
4137
|
-
onClick: (
|
|
4178
|
+
onClick: (ae) => o.handleForecastToggle(I)
|
|
4138
4179
|
}, [
|
|
4139
4180
|
l("span", {
|
|
4140
|
-
class: M(
|
|
4141
|
-
}, S(
|
|
4181
|
+
class: M(I.model)
|
|
4182
|
+
}, S(I.model), 3)
|
|
4142
4183
|
], 10, ni);
|
|
4143
4184
|
}), 128))
|
|
4144
4185
|
])
|
|
4145
4186
|
])
|
|
4146
4187
|
]),
|
|
4147
|
-
li
|
|
4188
|
+
l("div", li, [
|
|
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
|
|
4148
4203
|
]),
|
|
4149
|
-
l("div",
|
|
4204
|
+
l("div", pi, [
|
|
4150
4205
|
l("div", {
|
|
4151
4206
|
class: "button",
|
|
4152
|
-
onClick: e[
|
|
4207
|
+
onClick: e[3] || (e[3] = (I) => o.handleStrikeProbability(i.activeTropicals))
|
|
4153
4208
|
}, "Strike Probability >>")
|
|
4154
4209
|
])
|
|
4155
4210
|
])
|
|
@@ -4157,8 +4212,8 @@ function hi(t, e, a, r, i, o) {
|
|
|
4157
4212
|
[Be, i.showTropicals && !t.$attrs.hideTropicalsLegend]
|
|
4158
4213
|
]);
|
|
4159
4214
|
}
|
|
4160
|
-
const tt = /* @__PURE__ */ T(Ua, [["render",
|
|
4161
|
-
const
|
|
4215
|
+
const tt = /* @__PURE__ */ T(Ua, [["render", mi], ["__scopeId", "data-v-6751acd3"]]);
|
|
4216
|
+
const ui = {
|
|
4162
4217
|
name: "IdmPrecip3h",
|
|
4163
4218
|
props: {
|
|
4164
4219
|
factor: {
|
|
@@ -4186,7 +4241,7 @@ const di = {
|
|
|
4186
4241
|
texture: void 0,
|
|
4187
4242
|
rampColor: void 0,
|
|
4188
4243
|
aPositionBuffer: void 0,
|
|
4189
|
-
webgl: new
|
|
4244
|
+
webgl: new ve(),
|
|
4190
4245
|
etime: void 0,
|
|
4191
4246
|
right: 10
|
|
4192
4247
|
};
|
|
@@ -4259,27 +4314,27 @@ const di = {
|
|
|
4259
4314
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4260
4315
|
}
|
|
4261
4316
|
}
|
|
4262
|
-
},
|
|
4263
|
-
mi,
|
|
4264
|
-
ui,
|
|
4265
|
-
yi,
|
|
4317
|
+
}, ce = (t) => (G("data-v-dec867b8"), t = t(), H(), t), yi = { key: 0 }, fi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "mm", -1)), gi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), bi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "2", -1)), vi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "3", -1)), _i = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "7", -1)), wi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "10", -1)), Li = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "20", -1)), xi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "30", -1)), Ci = [
|
|
4266
4318
|
fi,
|
|
4267
4319
|
gi,
|
|
4268
4320
|
bi,
|
|
4269
4321
|
vi,
|
|
4270
|
-
_i
|
|
4322
|
+
_i,
|
|
4323
|
+
wi,
|
|
4324
|
+
Li,
|
|
4325
|
+
xi
|
|
4271
4326
|
];
|
|
4272
|
-
function
|
|
4327
|
+
function Si(t, e, a, r, i, o) {
|
|
4273
4328
|
var n;
|
|
4274
|
-
return (n = a.factor) != null && n.active ? (L(), x("div",
|
|
4329
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", yi, [
|
|
4275
4330
|
l("div", {
|
|
4276
4331
|
class: "legend-bars flex-center",
|
|
4277
4332
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4278
|
-
},
|
|
4333
|
+
}, Ci, 4)
|
|
4279
4334
|
])) : N("", !0);
|
|
4280
4335
|
}
|
|
4281
|
-
const
|
|
4282
|
-
const
|
|
4336
|
+
const ki = /* @__PURE__ */ T(ui, [["render", Si], ["__scopeId", "data-v-dec867b8"]]);
|
|
4337
|
+
const zi = {
|
|
4283
4338
|
name: "IdmVisibility",
|
|
4284
4339
|
props: {
|
|
4285
4340
|
factor: {
|
|
@@ -4307,7 +4362,7 @@ const Ci = {
|
|
|
4307
4362
|
texture: void 0,
|
|
4308
4363
|
rampColor: void 0,
|
|
4309
4364
|
aPositionBuffer: void 0,
|
|
4310
|
-
webgl: new
|
|
4365
|
+
webgl: new ve(),
|
|
4311
4366
|
etime: void 0
|
|
4312
4367
|
};
|
|
4313
4368
|
},
|
|
@@ -4373,25 +4428,25 @@ const Ci = {
|
|
|
4373
4428
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4374
4429
|
}
|
|
4375
4430
|
}
|
|
4376
|
-
},
|
|
4377
|
-
ki,
|
|
4378
|
-
zi,
|
|
4379
|
-
Pi,
|
|
4431
|
+
}, Le = (t) => (G("data-v-952dee5c"), t = t(), H(), t), Pi = { key: 0 }, Ti = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "nm", -1)), Ii = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0", -1)), Ei = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Ri = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "1.5", -1)), Ai = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "3", -1)), Di = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "9", -1)), Mi = [
|
|
4380
4432
|
Ti,
|
|
4381
4433
|
Ii,
|
|
4382
|
-
Ei
|
|
4434
|
+
Ei,
|
|
4435
|
+
Ri,
|
|
4436
|
+
Ai,
|
|
4437
|
+
Di
|
|
4383
4438
|
];
|
|
4384
|
-
function
|
|
4439
|
+
function $i(t, e, a, r, i, o) {
|
|
4385
4440
|
var n;
|
|
4386
|
-
return (n = a.factor) != null && n.active ? (L(), x("div",
|
|
4441
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", Pi, [
|
|
4387
4442
|
l("div", {
|
|
4388
4443
|
class: "legend-bars flex-center",
|
|
4389
4444
|
style: j([{ position: "absolute" }, { right: t.right + "px", bottom: a.bottom }])
|
|
4390
|
-
},
|
|
4445
|
+
}, Mi, 4)
|
|
4391
4446
|
])) : N("", !0);
|
|
4392
4447
|
}
|
|
4393
|
-
const
|
|
4394
|
-
const
|
|
4448
|
+
const Bi = /* @__PURE__ */ T(zi, [["render", $i], ["__scopeId", "data-v-952dee5c"]]);
|
|
4449
|
+
const Ni = {
|
|
4395
4450
|
name: "IdmWaterTemp",
|
|
4396
4451
|
props: {
|
|
4397
4452
|
factor: {
|
|
@@ -4419,7 +4474,7 @@ const Mi = {
|
|
|
4419
4474
|
texture: void 0,
|
|
4420
4475
|
rampColor: void 0,
|
|
4421
4476
|
aPositionBuffer: void 0,
|
|
4422
|
-
webgl: new
|
|
4477
|
+
webgl: new ve(),
|
|
4423
4478
|
etime: void 0,
|
|
4424
4479
|
right: 10
|
|
4425
4480
|
};
|
|
@@ -4493,25 +4548,25 @@ const Mi = {
|
|
|
4493
4548
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4494
4549
|
}
|
|
4495
4550
|
}
|
|
4496
|
-
},
|
|
4497
|
-
Bi,
|
|
4498
|
-
Ni,
|
|
4499
|
-
Wi,
|
|
4551
|
+
}, xe = (t) => (G("data-v-67e5094b"), t = t(), H(), t), Wi = { key: 0 }, Oi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "°C", -1)), ji = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0", -1)), Fi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "10", -1)), Vi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "20", -1)), Ui = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "30", -1)), Gi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "40", -1)), Hi = [
|
|
4500
4552
|
Oi,
|
|
4501
4553
|
ji,
|
|
4502
|
-
Fi
|
|
4554
|
+
Fi,
|
|
4555
|
+
Vi,
|
|
4556
|
+
Ui,
|
|
4557
|
+
Gi
|
|
4503
4558
|
];
|
|
4504
|
-
function
|
|
4559
|
+
function Zi(t, e, a, r, i, o) {
|
|
4505
4560
|
var n;
|
|
4506
|
-
return (n = a.factor) != null && n.active ? (L(), x("div",
|
|
4561
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", Wi, [
|
|
4507
4562
|
l("div", {
|
|
4508
4563
|
class: "legend-bars flex-center",
|
|
4509
4564
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4510
|
-
},
|
|
4565
|
+
}, Hi, 4)
|
|
4511
4566
|
])) : N("", !0);
|
|
4512
4567
|
}
|
|
4513
|
-
const
|
|
4514
|
-
const
|
|
4568
|
+
const Xi = /* @__PURE__ */ T(Ni, [["render", Zi], ["__scopeId", "data-v-67e5094b"]]);
|
|
4569
|
+
const Ji = {
|
|
4515
4570
|
name: "IdmTemp",
|
|
4516
4571
|
props: {
|
|
4517
4572
|
factor: {
|
|
@@ -4539,7 +4594,7 @@ const Hi = {
|
|
|
4539
4594
|
texture: void 0,
|
|
4540
4595
|
rampColor: void 0,
|
|
4541
4596
|
aPositionBuffer: void 0,
|
|
4542
|
-
webgl: new
|
|
4597
|
+
webgl: new ve(),
|
|
4543
4598
|
etime: void 0,
|
|
4544
4599
|
right: 10
|
|
4545
4600
|
};
|
|
@@ -4616,27 +4671,27 @@ const Hi = {
|
|
|
4616
4671
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4617
4672
|
}
|
|
4618
4673
|
}
|
|
4619
|
-
},
|
|
4620
|
-
Xi,
|
|
4621
|
-
Ji,
|
|
4622
|
-
qi,
|
|
4674
|
+
}, he = (t) => (G("data-v-389ea886"), t = t(), H(), t), qi = { key: 0 }, Yi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "°C", -1)), Qi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-20", -1)), Ki = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-10", -1)), er = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0", -1)), tr = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "10", -1)), ar = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "20", -1)), ir = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "30", -1)), rr = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "40", -1)), or = [
|
|
4623
4675
|
Yi,
|
|
4624
4676
|
Qi,
|
|
4625
4677
|
Ki,
|
|
4626
4678
|
er,
|
|
4627
|
-
tr
|
|
4679
|
+
tr,
|
|
4680
|
+
ar,
|
|
4681
|
+
ir,
|
|
4682
|
+
rr
|
|
4628
4683
|
];
|
|
4629
|
-
function
|
|
4684
|
+
function sr(t, e, a, r, i, o) {
|
|
4630
4685
|
var n;
|
|
4631
|
-
return (n = a.factor) != null && n.active ? (L(), x("div",
|
|
4686
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", qi, [
|
|
4632
4687
|
l("div", {
|
|
4633
4688
|
class: "legend-bars flex-center",
|
|
4634
4689
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4635
|
-
},
|
|
4690
|
+
}, or, 4)
|
|
4636
4691
|
])) : N("", !0);
|
|
4637
4692
|
}
|
|
4638
|
-
const
|
|
4639
|
-
const
|
|
4693
|
+
const nr = /* @__PURE__ */ T(Ji, [["render", sr], ["__scopeId", "data-v-389ea886"]]);
|
|
4694
|
+
const lr = {
|
|
4640
4695
|
name: "IdmArctic",
|
|
4641
4696
|
props: {
|
|
4642
4697
|
factor: {
|
|
@@ -4664,7 +4719,7 @@ const or = {
|
|
|
4664
4719
|
texture: void 0,
|
|
4665
4720
|
rampColor: void 0,
|
|
4666
4721
|
aPositionBuffer: void 0,
|
|
4667
|
-
webgl: new
|
|
4722
|
+
webgl: new ve(),
|
|
4668
4723
|
etime: void 0,
|
|
4669
4724
|
right: 10
|
|
4670
4725
|
};
|
|
@@ -4732,25 +4787,25 @@ const or = {
|
|
|
4732
4787
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4733
4788
|
}
|
|
4734
4789
|
}
|
|
4735
|
-
},
|
|
4736
|
-
nr,
|
|
4737
|
-
lr,
|
|
4738
|
-
cr,
|
|
4790
|
+
}, Ce = (t) => (G("data-v-db805141"), t = t(), H(), t), cr = { key: 0 }, hr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "m", -1)), dr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0", -1)), pr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0.5", -1)), mr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "1", -1)), ur = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), yr = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "2", -1)), fr = [
|
|
4739
4791
|
hr,
|
|
4740
4792
|
dr,
|
|
4741
|
-
pr
|
|
4793
|
+
pr,
|
|
4794
|
+
mr,
|
|
4795
|
+
ur,
|
|
4796
|
+
yr
|
|
4742
4797
|
];
|
|
4743
|
-
function
|
|
4798
|
+
function gr(t, e, a, r, i, o) {
|
|
4744
4799
|
var n;
|
|
4745
|
-
return (n = a.factor) != null && n.active ? (L(), x("div",
|
|
4800
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", cr, [
|
|
4746
4801
|
l("div", {
|
|
4747
4802
|
class: "legend-bars flex-center",
|
|
4748
4803
|
style: j([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4749
|
-
},
|
|
4804
|
+
}, fr, 4)
|
|
4750
4805
|
])) : N("", !0);
|
|
4751
4806
|
}
|
|
4752
|
-
const
|
|
4753
|
-
const
|
|
4807
|
+
const br = /* @__PURE__ */ T(lr, [["render", gr], ["__scopeId", "data-v-db805141"]]);
|
|
4808
|
+
const vr = {
|
|
4754
4809
|
name: "IdmPoint",
|
|
4755
4810
|
emits: ["point", "more"],
|
|
4756
4811
|
props: {
|
|
@@ -4792,22 +4847,22 @@ const fr = {
|
|
|
4792
4847
|
computed: {
|
|
4793
4848
|
computeTime() {
|
|
4794
4849
|
return function(t) {
|
|
4795
|
-
return t ? `${
|
|
4850
|
+
return t ? `${ee(t).utc().format("MMM-DD,HHmm[Z]")}` : "-";
|
|
4796
4851
|
};
|
|
4797
4852
|
},
|
|
4798
4853
|
computeLat() {
|
|
4799
4854
|
return function(t, e = 4) {
|
|
4800
|
-
return
|
|
4855
|
+
return te.lat2pretty(t, e).pretty;
|
|
4801
4856
|
};
|
|
4802
4857
|
},
|
|
4803
4858
|
computeLng() {
|
|
4804
4859
|
return function(t, e = 4) {
|
|
4805
|
-
return
|
|
4860
|
+
return te.lng2pretty(t, e).pretty;
|
|
4806
4861
|
};
|
|
4807
4862
|
},
|
|
4808
4863
|
roundPrecision() {
|
|
4809
4864
|
return function(t, e = 4) {
|
|
4810
|
-
return isNaN(t) ? "-" :
|
|
4865
|
+
return isNaN(t) ? "-" : te.roundPrecision(t, e);
|
|
4811
4866
|
};
|
|
4812
4867
|
}
|
|
4813
4868
|
},
|
|
@@ -4825,77 +4880,77 @@ const fr = {
|
|
|
4825
4880
|
var t;
|
|
4826
4881
|
if (this.meteo) {
|
|
4827
4882
|
const e = document.getElementById("point-meteo");
|
|
4828
|
-
this.meteoMarker ? (t = this.meteoMarker) == null || t.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new
|
|
4883
|
+
this.meteoMarker ? (t = this.meteoMarker) == null || t.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new ne.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
|
|
4829
4884
|
}
|
|
4830
4885
|
}
|
|
4831
4886
|
}
|
|
4832
|
-
}, J = (t) => (
|
|
4887
|
+
}, J = (t) => (G("data-v-fb5b12d6"), t = t(), H(), t), _r = {
|
|
4833
4888
|
id: "point-meteo",
|
|
4834
4889
|
class: "point-meteo"
|
|
4835
|
-
},
|
|
4890
|
+
}, wr = { class: "meteo-box" }, Lr = { class: "header-box" }, xr = { class: "main" }, Cr = { class: "sub" }, Sr = { class: "main-box" }, kr = { class: "flex-space" }, zr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Pr = { class: "flex-space" }, Tr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), Ir = { class: "flex-space" }, Er = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Rr = { class: "flex-space" }, Ar = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), Dr = { class: "flex-space" }, Mr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Current", -1)), $r = { class: "flex-space" }, Br = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Nr = { class: "flex-space" }, Wr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Or = { class: "flex-space" }, jr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Fr = { class: "flex-space" }, Vr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), Ur = {
|
|
4836
4891
|
key: 0,
|
|
4837
4892
|
class: "flex-space",
|
|
4838
4893
|
style: { "justify-content": "flex-end" }
|
|
4839
|
-
},
|
|
4840
|
-
|
|
4894
|
+
}, Gr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "more" }, "More >>", -1)), Hr = [
|
|
4895
|
+
Gr
|
|
4841
4896
|
];
|
|
4842
|
-
function
|
|
4843
|
-
var n, s, c, h,
|
|
4844
|
-
return $e((L(), x("div",
|
|
4845
|
-
l("div",
|
|
4846
|
-
l("div",
|
|
4897
|
+
function Zr(t, e, a, r, i, o) {
|
|
4898
|
+
var n, s, c, h, d, p, y, m, g, f, u, v, b, w, k, _, I, D, $, W, O, U, ae, de, pe, me, ue, ye, X, q, fe, Y, R, F, ge, Q, be, ie, re, oe, Se, ke, ze, Pe, Te, Ie, Ee;
|
|
4899
|
+
return $e((L(), x("div", _r, [
|
|
4900
|
+
l("div", wr, [
|
|
4901
|
+
l("div", Lr, [
|
|
4847
4902
|
l("div", {
|
|
4848
4903
|
class: "iconfont close",
|
|
4849
|
-
onClick: e[0] || (e[0] = (
|
|
4904
|
+
onClick: e[0] || (e[0] = (Oe) => i.showMeteo = !1)
|
|
4850
4905
|
}, ""),
|
|
4851
|
-
l("div",
|
|
4852
|
-
l("div",
|
|
4906
|
+
l("div", xr, S(o.computeLat((n = a.meteo) == null ? void 0 : n.lat)) + "," + S(o.computeLng((s = a.meteo) == null ? void 0 : s.lng)), 1),
|
|
4907
|
+
l("div", Cr, S(o.computeTime((c = a.meteo) == null ? void 0 : c.utc)), 1)
|
|
4853
4908
|
]),
|
|
4854
|
-
l("div",
|
|
4855
|
-
l("div",
|
|
4856
|
-
|
|
4857
|
-
l("span", null, S(((
|
|
4909
|
+
l("div", Sr, [
|
|
4910
|
+
l("div", kr, [
|
|
4911
|
+
zr,
|
|
4912
|
+
l("span", null, S(((d = (h = a.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((y = (p = a.meteo) == null ? void 0 : p.wind) == null ? void 0 : y.kts, 1)) + "[kts]/" + S((g = (m = a.meteo) == null ? void 0 : m.wind) == null ? void 0 : g.scale) + "[BF]/" + S(o.roundPrecision((u = (f = a.meteo) == null ? void 0 : f.gusts) == null ? void 0 : u.kts, 1)) + "[kts]", 1)
|
|
4858
4913
|
]),
|
|
4859
|
-
l("div",
|
|
4860
|
-
|
|
4861
|
-
l("span", null, S(((w = (b = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((
|
|
4914
|
+
l("div", Pr, [
|
|
4915
|
+
Tr,
|
|
4916
|
+
l("span", null, S(((w = (b = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((I = (_ = (k = a.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : I.height, 1)) + "[m]/" + S(o.roundPrecision((W = ($ = (D = a.meteo) == null ? void 0 : D.wave) == null ? void 0 : $.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
|
|
4862
4917
|
]),
|
|
4863
|
-
l("div",
|
|
4864
|
-
|
|
4865
|
-
l("span", null, S(((
|
|
4918
|
+
l("div", Ir, [
|
|
4919
|
+
Er,
|
|
4920
|
+
l("span", null, S(((ae = (U = (O = a.meteo) == null ? void 0 : O.wave) == null ? void 0 : U.swell) == null ? void 0 : ae.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((X = (ye = (ue = a.meteo) == null ? void 0 : ue.wave) == null ? void 0 : ye.swell) == null ? void 0 : X.period, 1)) + "[s]", 1)
|
|
4866
4921
|
]),
|
|
4867
|
-
l("div",
|
|
4868
|
-
|
|
4869
|
-
l("span", null, S(((
|
|
4922
|
+
l("div", Rr, [
|
|
4923
|
+
Ar,
|
|
4924
|
+
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 = (R = a.meteo) == null ? void 0 : R.wave) == null ? void 0 : F.sig) == null ? void 0 : ge.height, 1)) + "[m]/" + S(o.roundPrecision((ie = (be = (Q = a.meteo) == null ? void 0 : Q.wave) == null ? void 0 : be.sig) == null ? void 0 : ie.period, 1)) + "[s]", 1)
|
|
4870
4925
|
]),
|
|
4871
|
-
l("div",
|
|
4872
|
-
|
|
4873
|
-
l("span", null, S(((
|
|
4926
|
+
l("div", Dr, [
|
|
4927
|
+
Mr,
|
|
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)
|
|
4874
4929
|
]),
|
|
4875
|
-
l("div",
|
|
4876
|
-
|
|
4930
|
+
l("div", $r, [
|
|
4931
|
+
Br,
|
|
4877
4932
|
l("span", null, S(o.roundPrecision((Pe = (ze = a.meteo) == null ? void 0 : ze.precip) == null ? void 0 : Pe.inter6h, 2)) + "[mm]", 1)
|
|
4878
4933
|
]),
|
|
4879
|
-
l("div",
|
|
4880
|
-
|
|
4934
|
+
l("div", Nr, [
|
|
4935
|
+
Wr,
|
|
4881
4936
|
l("span", null, S(o.roundPrecision(((Te = a.meteo) == null ? void 0 : Te.visibility) / 1852, 0)) + "[nm]", 1)
|
|
4882
4937
|
]),
|
|
4883
|
-
l("div",
|
|
4884
|
-
|
|
4938
|
+
l("div", Or, [
|
|
4939
|
+
jr,
|
|
4885
4940
|
l("span", null, S(o.roundPrecision((Ie = a.meteo) == null ? void 0 : Ie.temp, 0)) + "[°C]", 1)
|
|
4886
4941
|
]),
|
|
4887
|
-
l("div",
|
|
4888
|
-
|
|
4942
|
+
l("div", Fr, [
|
|
4943
|
+
Vr,
|
|
4889
4944
|
l("span", null, S(o.roundPrecision((Ee = a.meteo) == null ? void 0 : Ee.waterTemp, 2)) + "[°C]", 1)
|
|
4890
4945
|
])
|
|
4891
4946
|
]),
|
|
4892
|
-
t.$attrs.permission & i.helper.LEVEL.Prime ? (L(), x("div",
|
|
4947
|
+
t.$attrs.permission & i.helper.LEVEL.Prime ? (L(), x("div", Ur, Hr)) : N("", !0)
|
|
4893
4948
|
])
|
|
4894
4949
|
], 512)), [
|
|
4895
4950
|
[Be, i.showMeteo]
|
|
4896
4951
|
]);
|
|
4897
4952
|
}
|
|
4898
|
-
const
|
|
4953
|
+
const Xr = /* @__PURE__ */ T(vr, [["render", Zr], ["__scopeId", "data-v-fb5b12d6"]]), Jr = {
|
|
4899
4954
|
name: "IdmWarZone",
|
|
4900
4955
|
props: {
|
|
4901
4956
|
map: {
|
|
@@ -4985,10 +5040,10 @@ const Gr = /* @__PURE__ */ T(fr, [["render", Ur], ["__scopeId", "data-v-fb5b12d6
|
|
|
4985
5040
|
}
|
|
4986
5041
|
}
|
|
4987
5042
|
};
|
|
4988
|
-
function
|
|
5043
|
+
function qr(t, e, a, r, i, o) {
|
|
4989
5044
|
return L(), x("div");
|
|
4990
5045
|
}
|
|
4991
|
-
const
|
|
5046
|
+
const Yr = /* @__PURE__ */ T(Jr, [["render", qr]]), Qr = {
|
|
4992
5047
|
name: "IdmGmdssArea",
|
|
4993
5048
|
props: {
|
|
4994
5049
|
map: {
|
|
@@ -5108,10 +5163,10 @@ const Xr = /* @__PURE__ */ T(Hr, [["render", Zr]]), Jr = {
|
|
|
5108
5163
|
}
|
|
5109
5164
|
}
|
|
5110
5165
|
};
|
|
5111
|
-
function
|
|
5166
|
+
function Kr(t, e, a, r, i, o) {
|
|
5112
5167
|
return L(), x("div");
|
|
5113
5168
|
}
|
|
5114
|
-
const
|
|
5169
|
+
const eo = /* @__PURE__ */ T(Qr, [["render", Kr]]), to = {
|
|
5115
5170
|
name: "IdmEcaZone",
|
|
5116
5171
|
props: {
|
|
5117
5172
|
map: {
|
|
@@ -5199,11 +5254,11 @@ const Yr = /* @__PURE__ */ T(Jr, [["render", qr]]), Qr = {
|
|
|
5199
5254
|
}
|
|
5200
5255
|
}
|
|
5201
5256
|
};
|
|
5202
|
-
function
|
|
5257
|
+
function ao(t, e, a, r, i, o) {
|
|
5203
5258
|
return L(), x("div");
|
|
5204
5259
|
}
|
|
5205
|
-
const
|
|
5206
|
-
const
|
|
5260
|
+
const io = /* @__PURE__ */ T(to, [["render", ao]]);
|
|
5261
|
+
const ro = {
|
|
5207
5262
|
name: "IdmAlertZone",
|
|
5208
5263
|
props: {
|
|
5209
5264
|
map: {
|
|
@@ -5329,10 +5384,10 @@ const to = {
|
|
|
5329
5384
|
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);
|
|
5330
5385
|
}
|
|
5331
5386
|
}
|
|
5332
|
-
},
|
|
5333
|
-
function
|
|
5387
|
+
}, oo = { id: "zone-info" }, so = ["innerHTML"];
|
|
5388
|
+
function no(t, e, a, r, i, o) {
|
|
5334
5389
|
var n;
|
|
5335
|
-
return $e((L(), x("div",
|
|
5390
|
+
return $e((L(), x("div", oo, [
|
|
5336
5391
|
l("div", {
|
|
5337
5392
|
class: "iconfont close",
|
|
5338
5393
|
onClick: e[0] || (e[0] = (s) => i.showZone = !1)
|
|
@@ -5340,13 +5395,13 @@ function ro(t, e, a, r, i, o) {
|
|
|
5340
5395
|
l("div", {
|
|
5341
5396
|
class: "rich-context",
|
|
5342
5397
|
innerHTML: (n = i.form) == null ? void 0 : n.name
|
|
5343
|
-
}, null, 8,
|
|
5398
|
+
}, null, 8, so)
|
|
5344
5399
|
], 512)), [
|
|
5345
5400
|
[Be, i.showZone]
|
|
5346
5401
|
]);
|
|
5347
5402
|
}
|
|
5348
|
-
const
|
|
5349
|
-
const
|
|
5403
|
+
const lo = /* @__PURE__ */ T(ro, [["render", no], ["__scopeId", "data-v-c0864afc"]]);
|
|
5404
|
+
const co = {
|
|
5350
5405
|
name: "IdmPort",
|
|
5351
5406
|
props: {
|
|
5352
5407
|
map: {
|
|
@@ -5372,12 +5427,12 @@ const so = {
|
|
|
5372
5427
|
computed: {
|
|
5373
5428
|
computeLat() {
|
|
5374
5429
|
return function(t) {
|
|
5375
|
-
return
|
|
5430
|
+
return te.lat2pretty(t, 4).pretty;
|
|
5376
5431
|
};
|
|
5377
5432
|
},
|
|
5378
5433
|
computeLng() {
|
|
5379
5434
|
return function(t) {
|
|
5380
|
-
return
|
|
5435
|
+
return te.lng2pretty(t, 4).pretty;
|
|
5381
5436
|
};
|
|
5382
5437
|
}
|
|
5383
5438
|
},
|
|
@@ -5399,7 +5454,7 @@ const so = {
|
|
|
5399
5454
|
if (a) {
|
|
5400
5455
|
this.showPort = !0, this.form = { ...a.properties }, this.form.lng = a.geometry.coordinates[0], this.form.lat = a.geometry.coordinates[1];
|
|
5401
5456
|
const i = document.getElementById("port-info");
|
|
5402
|
-
this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new
|
|
5457
|
+
this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ne.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
5403
5458
|
}
|
|
5404
5459
|
},
|
|
5405
5460
|
handleEmit() {
|
|
@@ -5438,33 +5493,33 @@ const so = {
|
|
|
5438
5493
|
this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
5439
5494
|
}
|
|
5440
5495
|
}
|
|
5441
|
-
},
|
|
5496
|
+
}, We = (t) => (G("data-v-30e545a2"), t = t(), H(), t), ho = { id: "port-info" }, po = { class: "port-box" }, mo = { class: "flex-start" }, uo = /* @__PURE__ */ We(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), yo = { class: "flex-start" }, fo = /* @__PURE__ */ We(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), go = { class: "flex-start" }, bo = /* @__PURE__ */ We(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), vo = {
|
|
5442
5497
|
class: "flex-start",
|
|
5443
5498
|
style: { "align-items": "flex-start" }
|
|
5444
|
-
},
|
|
5445
|
-
function
|
|
5446
|
-
return $e((L(), x("div",
|
|
5499
|
+
}, _o = /* @__PURE__ */ We(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
|
|
5500
|
+
function wo(t, e, a, r, i, o) {
|
|
5501
|
+
return $e((L(), x("div", ho, [
|
|
5447
5502
|
l("div", {
|
|
5448
5503
|
class: "close iconfont",
|
|
5449
5504
|
onClick: e[0] || (e[0] = (n) => i.showPort = !1)
|
|
5450
5505
|
}, ""),
|
|
5451
|
-
l("div",
|
|
5452
|
-
l("div",
|
|
5453
|
-
|
|
5506
|
+
l("div", po, [
|
|
5507
|
+
l("div", mo, [
|
|
5508
|
+
uo,
|
|
5454
5509
|
l("span", {
|
|
5455
5510
|
onClick: e[1] || (e[1] = (...n) => o.handleEmit && o.handleEmit(...n))
|
|
5456
5511
|
}, S(i.form.name), 1)
|
|
5457
5512
|
]),
|
|
5458
|
-
l("div",
|
|
5459
|
-
|
|
5513
|
+
l("div", yo, [
|
|
5514
|
+
fo,
|
|
5460
5515
|
l("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
|
|
5461
5516
|
]),
|
|
5462
|
-
l("div",
|
|
5463
|
-
|
|
5517
|
+
l("div", go, [
|
|
5518
|
+
bo,
|
|
5464
5519
|
l("span", null, S(i.form.loCode || "-"), 1)
|
|
5465
5520
|
]),
|
|
5466
|
-
l("div",
|
|
5467
|
-
|
|
5521
|
+
l("div", vo, [
|
|
5522
|
+
_o,
|
|
5468
5523
|
l("span", null, S(i.form.city || "-") + ", " + S(i.form.country || "-"), 1)
|
|
5469
5524
|
])
|
|
5470
5525
|
])
|
|
@@ -5472,7 +5527,7 @@ function bo(t, e, a, r, i, o) {
|
|
|
5472
5527
|
[Be, i.showPort]
|
|
5473
5528
|
]);
|
|
5474
5529
|
}
|
|
5475
|
-
const
|
|
5530
|
+
const Lo = /* @__PURE__ */ T(co, [["render", wo], ["__scopeId", "data-v-30e545a2"]]), xo = {
|
|
5476
5531
|
name: "IdmLoadLine",
|
|
5477
5532
|
props: {
|
|
5478
5533
|
map: {
|
|
@@ -5542,10 +5597,10 @@ const vo = /* @__PURE__ */ T(so, [["render", bo], ["__scopeId", "data-v-30e545a2
|
|
|
5542
5597
|
}
|
|
5543
5598
|
}
|
|
5544
5599
|
};
|
|
5545
|
-
function
|
|
5600
|
+
function Co(t, e, a, r, i, o) {
|
|
5546
5601
|
return L(), x("div");
|
|
5547
5602
|
}
|
|
5548
|
-
const
|
|
5603
|
+
const So = /* @__PURE__ */ T(xo, [["render", Co]]), ko = {
|
|
5549
5604
|
name: "IdmTimezone",
|
|
5550
5605
|
props: {
|
|
5551
5606
|
map: {
|
|
@@ -5710,10 +5765,10 @@ const Lo = /* @__PURE__ */ T(_o, [["render", wo]]), xo = {
|
|
|
5710
5765
|
}
|
|
5711
5766
|
}
|
|
5712
5767
|
};
|
|
5713
|
-
function
|
|
5768
|
+
function zo(t, e, a, r, i, o) {
|
|
5714
5769
|
return L(), x("div");
|
|
5715
5770
|
}
|
|
5716
|
-
const
|
|
5771
|
+
const Po = /* @__PURE__ */ T(ko, [["render", zo]]), To = {
|
|
5717
5772
|
name: "IdmVoluntaryReportingArea",
|
|
5718
5773
|
props: {
|
|
5719
5774
|
map: {
|
|
@@ -5801,10 +5856,10 @@ const So = /* @__PURE__ */ T(xo, [["render", Co]]), ko = {
|
|
|
5801
5856
|
}
|
|
5802
5857
|
}
|
|
5803
5858
|
};
|
|
5804
|
-
function
|
|
5859
|
+
function Io(t, e, a, r, i, o) {
|
|
5805
5860
|
return L(), x("div");
|
|
5806
5861
|
}
|
|
5807
|
-
const
|
|
5862
|
+
const Eo = /* @__PURE__ */ T(To, [["render", Io]]), Ro = {
|
|
5808
5863
|
name: "IdmSpecialArea",
|
|
5809
5864
|
props: {
|
|
5810
5865
|
map: {
|
|
@@ -5894,10 +5949,10 @@ const Po = /* @__PURE__ */ T(ko, [["render", zo]]), To = {
|
|
|
5894
5949
|
}
|
|
5895
5950
|
}
|
|
5896
5951
|
};
|
|
5897
|
-
function
|
|
5952
|
+
function Ao(t, e, a, r, i, o) {
|
|
5898
5953
|
return L(), x("div");
|
|
5899
5954
|
}
|
|
5900
|
-
const
|
|
5955
|
+
const Do = /* @__PURE__ */ T(Ro, [["render", Ao]]), Mo = {
|
|
5901
5956
|
name: "IdmTerminator",
|
|
5902
5957
|
props: {
|
|
5903
5958
|
map: {
|
|
@@ -5946,11 +6001,11 @@ const Eo = /* @__PURE__ */ T(To, [["render", Io]]), Ro = {
|
|
|
5946
6001
|
}
|
|
5947
6002
|
}
|
|
5948
6003
|
};
|
|
5949
|
-
function
|
|
6004
|
+
function $o(t, e, a, r, i, o) {
|
|
5950
6005
|
return L(), x("div");
|
|
5951
6006
|
}
|
|
5952
|
-
const
|
|
5953
|
-
const
|
|
6007
|
+
const Bo = /* @__PURE__ */ T(Mo, [["render", $o]]);
|
|
6008
|
+
const No = {
|
|
5954
6009
|
name: "IdmLatLng",
|
|
5955
6010
|
props: {
|
|
5956
6011
|
map: {
|
|
@@ -6008,7 +6063,7 @@ const Mo = {
|
|
|
6008
6063
|
this.show ? ((t = this.map) == null || t.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
6009
6064
|
},
|
|
6010
6065
|
handleMouseMove(t) {
|
|
6011
|
-
const e = t.lngLat, a =
|
|
6066
|
+
const e = t.lngLat, a = te.lng2pretty(e.lng, 2), r = te.lat2pretty(e.lat, 2);
|
|
6012
6067
|
this.lngLat = { lng: a, lat: r };
|
|
6013
6068
|
},
|
|
6014
6069
|
handleComputeLatLngs() {
|
|
@@ -6105,19 +6160,19 @@ const Mo = {
|
|
|
6105
6160
|
(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));
|
|
6106
6161
|
}
|
|
6107
6162
|
}
|
|
6108
|
-
},
|
|
6109
|
-
function
|
|
6163
|
+
}, Wo = (t) => (G("data-v-51cc4052"), t = t(), H(), t), Oo = /* @__PURE__ */ Wo(() => /* @__PURE__ */ l("span", null, ", ", -1));
|
|
6164
|
+
function jo(t, e, a, r, i, o) {
|
|
6110
6165
|
return i.lngLat ? (L(), x("div", {
|
|
6111
6166
|
key: 0,
|
|
6112
6167
|
class: "lat-lng-tip",
|
|
6113
6168
|
style: j({ right: i.right + "px", bottom: a.bottom })
|
|
6114
6169
|
}, [
|
|
6115
6170
|
l("span", null, S(i.lngLat.lat.pretty), 1),
|
|
6116
|
-
|
|
6171
|
+
Oo,
|
|
6117
6172
|
l("span", null, S(i.lngLat.lng.pretty), 1)
|
|
6118
6173
|
], 4)) : N("", !0);
|
|
6119
6174
|
}
|
|
6120
|
-
const at = /* @__PURE__ */ T(
|
|
6175
|
+
const at = /* @__PURE__ */ T(No, [["render", jo], ["__scopeId", "data-v-51cc4052"]]), Fo = {
|
|
6121
6176
|
name: "IdmMeasure",
|
|
6122
6177
|
props: {
|
|
6123
6178
|
map: {
|
|
@@ -6163,8 +6218,8 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6163
6218
|
(t = this.map) == null || t.getCanvas().addEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.on("mousemove", this.handleMove), (a = this.map) == null || a.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");
|
|
6164
6219
|
else {
|
|
6165
6220
|
(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);
|
|
6166
|
-
for (const
|
|
6167
|
-
this.handleClear(
|
|
6221
|
+
for (const d of this.geojson)
|
|
6222
|
+
this.handleClear(d, !0);
|
|
6168
6223
|
this.geojson = [], this.map && (this.map.getCanvas().style.cursor = "grab");
|
|
6169
6224
|
}
|
|
6170
6225
|
},
|
|
@@ -6176,41 +6231,41 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6176
6231
|
}
|
|
6177
6232
|
},
|
|
6178
6233
|
handleDrag(t) {
|
|
6179
|
-
var a, r, i, o, n, s, c, h,
|
|
6234
|
+
var a, r, i, o, n, s, c, h, d, p;
|
|
6180
6235
|
const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
|
|
6181
6236
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6182
|
-
const y = this.geojson.filter((
|
|
6183
|
-
this.pointMarkers[y.id].filter((
|
|
6237
|
+
const y = this.geojson.filter((u) => u.id === e.split("-")[0])[0];
|
|
6238
|
+
this.pointMarkers[y.id].filter((u) => {
|
|
6184
6239
|
var v;
|
|
6185
|
-
return ((v =
|
|
6240
|
+
return ((v = u._element) == null ? void 0 : v.id) === e;
|
|
6186
6241
|
})[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]);
|
|
6187
6242
|
let g;
|
|
6188
|
-
y.features.forEach((
|
|
6189
|
-
if (
|
|
6243
|
+
y.features.forEach((u, v) => {
|
|
6244
|
+
if (u.geometry.type === "Point" && u.properties.id == e.split("-")[1]) {
|
|
6190
6245
|
g = v;
|
|
6191
6246
|
return;
|
|
6192
6247
|
}
|
|
6193
6248
|
});
|
|
6194
|
-
const f = y.features.filter((
|
|
6249
|
+
const f = y.features.filter((u) => u.geometry.type === "Point");
|
|
6195
6250
|
this.handleTmpPointUpdate(
|
|
6196
6251
|
y,
|
|
6197
6252
|
f[g - 1],
|
|
6198
|
-
{ lng: (h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (
|
|
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: f[g].properties },
|
|
6199
6254
|
g === f.length - 1 ? void 0 : f[g + 1]
|
|
6200
6255
|
);
|
|
6201
6256
|
}
|
|
6202
6257
|
},
|
|
6203
6258
|
handleDragEnd(t) {
|
|
6204
|
-
var a, r, i, o, n, s, c, h,
|
|
6259
|
+
var a, r, i, o, n, s, c, h, d, p;
|
|
6205
6260
|
const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
|
|
6206
6261
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6207
6262
|
const y = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
|
|
6208
6263
|
this.pointMarkers[y.id].filter((f) => {
|
|
6209
|
-
var
|
|
6210
|
-
return ((
|
|
6264
|
+
var u;
|
|
6265
|
+
return ((u = f._element) == null ? void 0 : u.id) === e;
|
|
6211
6266
|
})[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]);
|
|
6212
6267
|
const g = y.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
|
|
6213
|
-
g.geometry.coordinates = [(h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (
|
|
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], y.features = y.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(y);
|
|
6214
6269
|
}
|
|
6215
6270
|
},
|
|
6216
6271
|
handleContextmenu(t) {
|
|
@@ -6221,7 +6276,7 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6221
6276
|
const s = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
|
|
6222
6277
|
if (s.length > 2 && s.filter((h) => h.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
6223
6278
|
const h = document.createElement("div");
|
|
6224
|
-
h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new
|
|
6279
|
+
h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ne.Marker(h).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
6225
6280
|
}
|
|
6226
6281
|
}
|
|
6227
6282
|
},
|
|
@@ -6257,12 +6312,12 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6257
6312
|
let a = 0;
|
|
6258
6313
|
const r = [];
|
|
6259
6314
|
for (let i = 1; i < e.length; i++) {
|
|
6260
|
-
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] },
|
|
6261
|
-
a =
|
|
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 = je(c, h, s.mode === "RL", 2), p = Fe(c, h, s.mode === "RL", 2);
|
|
6316
|
+
a = te.roundPrecision(a + d, 2);
|
|
6262
6317
|
let y;
|
|
6263
|
-
s.mode === "RL" ? y =
|
|
6264
|
-
const
|
|
6265
|
-
|
|
6318
|
+
s.mode === "RL" ? y = we([c, h]) : y = we(Ve(c, h, 200));
|
|
6319
|
+
const m = C.lineString(y.map((g) => [g.lng, g.lat]));
|
|
6320
|
+
m.properties.dist = d, m.properties.bearing = p, m.properties.total = a, r.push(m);
|
|
6266
6321
|
}
|
|
6267
6322
|
e.push(...r), t.total = a;
|
|
6268
6323
|
}
|
|
@@ -6272,19 +6327,19 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6272
6327
|
const i = C.featureCollection([]);
|
|
6273
6328
|
let o, n;
|
|
6274
6329
|
if (e) {
|
|
6275
|
-
const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] },
|
|
6276
|
-
o =
|
|
6277
|
-
let
|
|
6278
|
-
c.mode === "RL" ?
|
|
6279
|
-
const y = C.lineString(
|
|
6330
|
+
const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: a.lng, lat: a.lat };
|
|
6331
|
+
o = je(h, d, c.mode === "RL", 2), n = Fe(h, d, c.mode === "RL", 2);
|
|
6332
|
+
let p;
|
|
6333
|
+
c.mode === "RL" ? p = we([h, d]) : p = we(Ve(h, d, 200));
|
|
6334
|
+
const y = C.lineString(p.map((m) => [m.lng, m.lat]));
|
|
6280
6335
|
y.properties.dist = o, y.properties.bearing = n, i.features.push(y);
|
|
6281
6336
|
}
|
|
6282
6337
|
if (r) {
|
|
6283
|
-
const c = a.properties, h = a,
|
|
6284
|
-
o =
|
|
6285
|
-
let
|
|
6286
|
-
c.mode === "RL" ?
|
|
6287
|
-
const y = C.lineString(
|
|
6338
|
+
const c = a.properties, h = a, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
6339
|
+
o = je(h, d, c.mode === "RL", 2), n = Fe(h, d, c.mode === "RL", 2);
|
|
6340
|
+
let p;
|
|
6341
|
+
c.mode === "RL" ? p = we([h, d]) : p = we(Ve(h, d, 200));
|
|
6342
|
+
const y = C.lineString(p.map((m) => [m.lng, m.lat]));
|
|
6288
6343
|
y.properties.dist = o, y.properties.bearing = n, i.features.push(y);
|
|
6289
6344
|
}
|
|
6290
6345
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
@@ -6325,11 +6380,11 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6325
6380
|
}
|
|
6326
6381
|
});
|
|
6327
6382
|
let s;
|
|
6328
|
-
if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${
|
|
6383
|
+
if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${te.roundPrecision((t.total ?? 0) + o, 2)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
|
|
6329
6384
|
this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([a.lng, a.lat]);
|
|
6330
6385
|
else {
|
|
6331
6386
|
const c = document.createElement("div");
|
|
6332
|
-
c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new
|
|
6387
|
+
c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new ne.Marker(c).setOffset([140, 0]).setLngLat([a.lng, a.lat]).addTo(this.map);
|
|
6333
6388
|
}
|
|
6334
6389
|
},
|
|
6335
6390
|
handleMove(t) {
|
|
@@ -6387,29 +6442,29 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6387
6442
|
for (const n of o) {
|
|
6388
6443
|
const s = document.createElement("div");
|
|
6389
6444
|
s.id = `${t.id}-${n.properties.id}`, s.className = `${t.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
|
|
6390
|
-
const c = new
|
|
6445
|
+
const c = new ne.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
6391
6446
|
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];
|
|
6392
6447
|
}
|
|
6393
6448
|
if (t.closed) {
|
|
6394
|
-
const n = o.at(-1), c = t.features.filter((
|
|
6395
|
-
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
|
|
6449
|
+
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 ne.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
6396
6451
|
}
|
|
6397
6452
|
}
|
|
6398
6453
|
},
|
|
6399
6454
|
handleClear(t, e = !0) {
|
|
6400
|
-
var o, n, s, c, h,
|
|
6455
|
+
var o, n, s, c, h, d, p, y, m;
|
|
6401
6456
|
const a = `${t.id}-${this.source}`, r = `${t.id}-${this.layer}`, i = `${t.id}-${this.labelLayer}`;
|
|
6402
|
-
(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, (
|
|
6457
|
+
(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) => {
|
|
6403
6458
|
g == null || g.remove();
|
|
6404
|
-
}), this.pointMarkers[t.id] = [], (
|
|
6459
|
+
}), this.pointMarkers[t.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(a)) && this.map.removeSource(a), e && ((m = this.map) != null && m.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
6405
6460
|
}
|
|
6406
6461
|
}
|
|
6407
6462
|
};
|
|
6408
|
-
function
|
|
6463
|
+
function Vo(t, e, a, r, i, o) {
|
|
6409
6464
|
return L(), x("div");
|
|
6410
6465
|
}
|
|
6411
|
-
const
|
|
6412
|
-
const
|
|
6466
|
+
const Uo = /* @__PURE__ */ T(Fo, [["render", Vo]]);
|
|
6467
|
+
const Go = {
|
|
6413
6468
|
name: "IdmENC",
|
|
6414
6469
|
props: {
|
|
6415
6470
|
map: {
|
|
@@ -6461,32 +6516,32 @@ const Fo = {
|
|
|
6461
6516
|
}
|
|
6462
6517
|
},
|
|
6463
6518
|
methods: {}
|
|
6464
|
-
}, it = (t) => (
|
|
6465
|
-
|
|
6466
|
-
],
|
|
6467
|
-
|
|
6519
|
+
}, it = (t) => (G("data-v-ab627b83"), t = t(), H(), t), Ho = { key: 0 }, Zo = { class: "bar-item" }, Xo = /* @__PURE__ */ it(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), Jo = [
|
|
6520
|
+
Xo
|
|
6521
|
+
], qo = /* @__PURE__ */ it(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), Yo = [
|
|
6522
|
+
qo
|
|
6468
6523
|
];
|
|
6469
|
-
function
|
|
6470
|
-
return a.enabled && a.permission & i.helper.LEVEL.Supper ? (L(), x("div",
|
|
6524
|
+
function Qo(t, e, a, r, i, o) {
|
|
6525
|
+
return a.enabled && a.permission & i.helper.LEVEL.Supper ? (L(), x("div", Ho, [
|
|
6471
6526
|
l("div", {
|
|
6472
6527
|
class: "menu-bar-box",
|
|
6473
6528
|
style: j({ position: "absolute", right: i.right + "px", bottom: a.bottom })
|
|
6474
6529
|
}, [
|
|
6475
|
-
l("div",
|
|
6530
|
+
l("div", Zo, [
|
|
6476
6531
|
l("div", {
|
|
6477
6532
|
class: M(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
6478
6533
|
onClick: e[0] || (e[0] = (n) => i.vendor = "hi")
|
|
6479
|
-
},
|
|
6534
|
+
}, Jo, 2),
|
|
6480
6535
|
l("div", {
|
|
6481
6536
|
class: M(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
6482
6537
|
onClick: e[1] || (e[1] = (n) => i.vendor = "i4")
|
|
6483
|
-
},
|
|
6538
|
+
}, Yo, 2)
|
|
6484
6539
|
])
|
|
6485
6540
|
], 4)
|
|
6486
6541
|
])) : N("", !0);
|
|
6487
6542
|
}
|
|
6488
|
-
const
|
|
6489
|
-
const
|
|
6543
|
+
const Ko = /* @__PURE__ */ T(Go, [["render", Qo], ["__scopeId", "data-v-ab627b83"]]);
|
|
6544
|
+
const es = {
|
|
6490
6545
|
name: "IdmGLV2",
|
|
6491
6546
|
components: {
|
|
6492
6547
|
IdmGlLayer: Vt,
|
|
@@ -6500,29 +6555,30 @@ const Yo = {
|
|
|
6500
6555
|
// IdmIceEdge,
|
|
6501
6556
|
IdmIceberg: Va,
|
|
6502
6557
|
IdmTropicals: tt,
|
|
6503
|
-
IdmPrecip3h:
|
|
6504
|
-
IdmVisibility:
|
|
6505
|
-
IdmWaterTemp:
|
|
6506
|
-
IdmTemp:
|
|
6507
|
-
IdmArctic:
|
|
6508
|
-
IdmWarZone:
|
|
6509
|
-
IdmGmdssArea:
|
|
6510
|
-
IdmEcaZone:
|
|
6511
|
-
IdmAlertZone:
|
|
6512
|
-
IdmPort:
|
|
6513
|
-
IdmLoadLine:
|
|
6514
|
-
IdmTimezone:
|
|
6515
|
-
IdmVRA:
|
|
6516
|
-
IdmSpecialArea:
|
|
6517
|
-
IdmTerminator:
|
|
6558
|
+
IdmPrecip3h: ki,
|
|
6559
|
+
IdmVisibility: Bi,
|
|
6560
|
+
IdmWaterTemp: Xi,
|
|
6561
|
+
IdmTemp: nr,
|
|
6562
|
+
IdmArctic: br,
|
|
6563
|
+
IdmWarZone: Yr,
|
|
6564
|
+
IdmGmdssArea: eo,
|
|
6565
|
+
IdmEcaZone: io,
|
|
6566
|
+
IdmAlertZone: lo,
|
|
6567
|
+
IdmPort: Lo,
|
|
6568
|
+
IdmLoadLine: So,
|
|
6569
|
+
IdmTimezone: Po,
|
|
6570
|
+
IdmVRA: Eo,
|
|
6571
|
+
IdmSpecialArea: Do,
|
|
6572
|
+
IdmTerminator: Bo,
|
|
6518
6573
|
IdmLatLng: at,
|
|
6519
|
-
IdmMeasure:
|
|
6520
|
-
IdmPoint:
|
|
6521
|
-
IdmENC:
|
|
6574
|
+
IdmMeasure: Uo,
|
|
6575
|
+
IdmPoint: Xr,
|
|
6576
|
+
IdmENC: Ko
|
|
6522
6577
|
},
|
|
6523
6578
|
props: {
|
|
6524
6579
|
map: {
|
|
6525
|
-
type: Object
|
|
6580
|
+
type: Object,
|
|
6581
|
+
default: void 0
|
|
6526
6582
|
},
|
|
6527
6583
|
token: {
|
|
6528
6584
|
type: String
|
|
@@ -6566,7 +6622,7 @@ const Yo = {
|
|
|
6566
6622
|
watch: {
|
|
6567
6623
|
ts: {
|
|
6568
6624
|
handler(t, e) {
|
|
6569
|
-
t && e &&
|
|
6625
|
+
t && e && ee(t).utc().format("yyyy-MM-DD HH") !== ee(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
6570
6626
|
this.handleDateChange({ tropicals: !1 });
|
|
6571
6627
|
});
|
|
6572
6628
|
},
|
|
@@ -6574,8 +6630,8 @@ const Yo = {
|
|
|
6574
6630
|
},
|
|
6575
6631
|
map: {
|
|
6576
6632
|
handler() {
|
|
6577
|
-
var t, e, a, r, i, o, n, s, c, h,
|
|
6578
|
-
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new
|
|
6633
|
+
var t, e, a, r, i, o, n, s, c, h, d, p, y, m, g;
|
|
6634
|
+
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Ge(this.map), this.handleRampColorInitial(), this.activeWeatherLayers.length > 0 ? (console.log(1111, 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"), (i = this.map) != null && i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id) && ((n = this.map) == null || n.moveLayer((o = this.viewport) == null ? void 0 : o.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (c = this.map) != null && c.getLayer((s = this.viewport) == null ? void 0 : s.particleLayer) && ((d = this.map) == null || d.moveLayer((h = this.viewport) == null ? void 0 : h.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : (console.log(2222, this.activeWeatherLayers.length), (y = (p = this.map) == null ? void 0 : p.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible"), (g = (m = this.map) == null ? void 0 : m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || g.setLayoutProperty("visibility", "none")));
|
|
6579
6635
|
},
|
|
6580
6636
|
immediate: !0
|
|
6581
6637
|
},
|
|
@@ -6587,10 +6643,10 @@ const Yo = {
|
|
|
6587
6643
|
},
|
|
6588
6644
|
activeWeatherLayers: {
|
|
6589
6645
|
handler() {
|
|
6590
|
-
var t, e, a, r, i, o, n, s, c, h,
|
|
6646
|
+
var t, e, a, r, i, o, n, s, c, h, d, p, y, m, g;
|
|
6591
6647
|
if (!this.map)
|
|
6592
6648
|
return !1;
|
|
6593
|
-
this.activeWeatherLayers.length > 0 ? ((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"), (i = this.map) != null && i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id) && ((n = this.map) == null || n.moveLayer((o = this.viewport) == null ? void 0 : o.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (c = this.map) != null && c.getLayer((s = this.viewport) == null ? void 0 : s.particleLayer) && ((
|
|
6649
|
+
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"), (i = this.map) != null && i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id) && ((n = this.map) == null || n.moveLayer((o = this.viewport) == null ? void 0 : o.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (c = this.map) != null && c.getLayer((s = this.viewport) == null ? void 0 : s.particleLayer) && ((d = this.map) == null || d.moveLayer((h = this.viewport) == null ? void 0 : h.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : (console.log(444, this.activeWeatherLayers.length), (y = (p = this.map) == null ? void 0 : p.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible"), (g = (m = this.map) == null ? void 0 : m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || g.setLayoutProperty("visibility", "none"));
|
|
6594
6650
|
},
|
|
6595
6651
|
immediate: !0
|
|
6596
6652
|
}
|
|
@@ -6637,22 +6693,22 @@ const Yo = {
|
|
|
6637
6693
|
},
|
|
6638
6694
|
methods: {
|
|
6639
6695
|
async fetchWeatherLayers(t = { tropicals: !1 }) {
|
|
6640
|
-
var i, o, n, s, c, h,
|
|
6696
|
+
var i, o, n, s, c, h, d, p;
|
|
6641
6697
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
6642
6698
|
let a = 0, r = 0;
|
|
6643
6699
|
if (this.map) {
|
|
6644
|
-
const y = ((i = this.map) == null ? void 0 : i.getZoom()) + 1,
|
|
6700
|
+
const y = ((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}`;
|
|
6645
6701
|
if (this.handleRampColorState(), this.particleFactor) {
|
|
6646
|
-
const f =
|
|
6702
|
+
const f = Ue.WEATHER_LAYERS.find((u) => {
|
|
6647
6703
|
var v;
|
|
6648
|
-
return ((v =
|
|
6704
|
+
return ((v = u.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
|
|
6649
6705
|
});
|
|
6650
6706
|
this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & f.weight ? this.weatherWeight : this.weatherWeight + f.weight : this.weatherWeight = this.weatherWeight & f.weight ? this.weatherWeight - f.weight : this.weatherWeight;
|
|
6651
6707
|
}
|
|
6652
6708
|
if (this.weatherWeight > 0) {
|
|
6653
|
-
let f = this.weatherWeight,
|
|
6654
|
-
if (t.tropicals || this.weatherWeight & 256 && (
|
|
6655
|
-
const v = await
|
|
6709
|
+
let f = this.weatherWeight, u;
|
|
6710
|
+
if (t.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (f -= 256, u.version = Math.random() + 1)), f > 0) {
|
|
6711
|
+
const v = await se.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${y}&bbox=${g}&t=${this.ts}`, {
|
|
6656
6712
|
headers: {
|
|
6657
6713
|
Authorization: this.token || this.defaultMeteoToken
|
|
6658
6714
|
}
|
|
@@ -6661,35 +6717,35 @@ const Yo = {
|
|
|
6661
6717
|
const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
|
|
6662
6718
|
for (const _ in b)
|
|
6663
6719
|
_ === "ice-edge" && (b[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && w.push(
|
|
6664
|
-
|
|
6720
|
+
se.get(b[_], {
|
|
6665
6721
|
headers: {
|
|
6666
6722
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6667
6723
|
key: _
|
|
6668
6724
|
},
|
|
6669
6725
|
responseType: /\.(jpg|png)$/.test(b[_]) ? "blob" : "json"
|
|
6670
|
-
}).catch((
|
|
6671
|
-
console.log(`[${_}] fetch layer error: ${
|
|
6726
|
+
}).catch((I) => {
|
|
6727
|
+
console.log(`[${_}] fetch layer error: ${I}`);
|
|
6672
6728
|
})
|
|
6673
6729
|
);
|
|
6674
6730
|
const k = await Promise.all(w);
|
|
6675
6731
|
this.weatherLayers = {}, k.map((_) => {
|
|
6676
|
-
var $, W, O,
|
|
6677
|
-
const
|
|
6678
|
-
D &&
|
|
6679
|
-
raw:
|
|
6680
|
-
type: ((
|
|
6732
|
+
var $, W, O, U;
|
|
6733
|
+
const I = (($ = _ == null ? void 0 : _.data) == null ? void 0 : $.data) || (_ == null ? void 0 : _.data), D = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
|
|
6734
|
+
D && I && (this.weatherLayers[D] = {
|
|
6735
|
+
raw: I,
|
|
6736
|
+
type: ((U = _ == null ? void 0 : _.config) == null ? void 0 : U.responseType) === "blob" ? "image" : "json",
|
|
6681
6737
|
etime: this.ts
|
|
6682
6738
|
});
|
|
6683
|
-
}), b.tropicals &&
|
|
6739
|
+
}), b.tropicals && se.get(b.tropicals, {
|
|
6684
6740
|
headers: {
|
|
6685
6741
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6686
6742
|
key: "tropicals"
|
|
6687
6743
|
}
|
|
6688
6744
|
}).then((_) => {
|
|
6689
6745
|
var $, W, O;
|
|
6690
|
-
const
|
|
6746
|
+
const I = et.convert2Geojson((($ = _ == null ? void 0 : _.data) == null ? void 0 : $.data) || (_ == null ? void 0 : _.data)), D = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
|
|
6691
6747
|
this.weatherLayers[D] = {
|
|
6692
|
-
data:
|
|
6748
|
+
data: I,
|
|
6693
6749
|
active: !0,
|
|
6694
6750
|
cached: !1,
|
|
6695
6751
|
type: "json",
|
|
@@ -6708,7 +6764,7 @@ const Yo = {
|
|
|
6708
6764
|
};
|
|
6709
6765
|
}
|
|
6710
6766
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
6711
|
-
const b = (
|
|
6767
|
+
const b = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, w = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
|
|
6712
6768
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
6713
6769
|
type: "json",
|
|
6714
6770
|
direction: b,
|
|
@@ -6717,7 +6773,7 @@ const Yo = {
|
|
|
6717
6773
|
};
|
|
6718
6774
|
}
|
|
6719
6775
|
}
|
|
6720
|
-
|
|
6776
|
+
u && (u.etime = this.ts, u.cached = !0, this.weatherLayers.tropicals = u);
|
|
6721
6777
|
}
|
|
6722
6778
|
this.handleWeatherLayerToggle(), this.handleDragEndWithZoom4Json();
|
|
6723
6779
|
}
|
|
@@ -6731,50 +6787,50 @@ const Yo = {
|
|
|
6731
6787
|
let n = !1;
|
|
6732
6788
|
if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, n = !0), o) {
|
|
6733
6789
|
if (t.all) {
|
|
6734
|
-
const s = await
|
|
6790
|
+
const s = await se.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
|
|
6735
6791
|
headers: {
|
|
6736
6792
|
Authorization: this.token || this.defaultMeteoToken
|
|
6737
6793
|
}
|
|
6738
6794
|
});
|
|
6739
6795
|
if (((e = s == null ? void 0 : s.data) == null ? void 0 : e.code) === 0) {
|
|
6740
6796
|
const c = (a = s == null ? void 0 : s.data) == null ? void 0 : a.data, h = [];
|
|
6741
|
-
for (const
|
|
6797
|
+
for (const p in c)
|
|
6742
6798
|
h.push(
|
|
6743
|
-
|
|
6799
|
+
se.get(c[p], {
|
|
6744
6800
|
headers: {
|
|
6745
6801
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6746
|
-
key:
|
|
6802
|
+
key: p
|
|
6747
6803
|
}
|
|
6748
6804
|
})
|
|
6749
6805
|
);
|
|
6750
|
-
const
|
|
6751
|
-
this.otherLayers = { enc: n },
|
|
6752
|
-
var g, f,
|
|
6753
|
-
const y = ((g =
|
|
6754
|
-
this.otherLayers[
|
|
6806
|
+
const d = await Promise.all(h);
|
|
6807
|
+
this.otherLayers = { enc: n }, d.map((p) => {
|
|
6808
|
+
var g, f, u;
|
|
6809
|
+
const y = ((g = p == null ? void 0 : p.data) == null ? void 0 : g.data) || (p == null ? void 0 : p.data), m = (u = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : u.key;
|
|
6810
|
+
this.otherLayers[m] = y;
|
|
6755
6811
|
});
|
|
6756
6812
|
}
|
|
6757
6813
|
} else if (t.dayNight && o & 1024) {
|
|
6758
|
-
const s = await
|
|
6814
|
+
const s = await se.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
6759
6815
|
headers: {
|
|
6760
6816
|
Authorization: this.token || this.defaultMeteoToken
|
|
6761
6817
|
}
|
|
6762
6818
|
});
|
|
6763
6819
|
if (((r = s == null ? void 0 : s.data) == null ? void 0 : r.code) === 0) {
|
|
6764
6820
|
const c = (i = s == null ? void 0 : s.data) == null ? void 0 : i.data, h = [];
|
|
6765
|
-
for (const
|
|
6821
|
+
for (const p in c)
|
|
6766
6822
|
h.push(
|
|
6767
|
-
|
|
6823
|
+
se.get(c[p], {
|
|
6768
6824
|
headers: {
|
|
6769
6825
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6770
|
-
key:
|
|
6826
|
+
key: p
|
|
6771
6827
|
}
|
|
6772
6828
|
})
|
|
6773
6829
|
);
|
|
6774
|
-
(await Promise.all(h)).map((
|
|
6775
|
-
var g, f,
|
|
6776
|
-
const y = ((g =
|
|
6777
|
-
this.otherLayers[
|
|
6830
|
+
(await Promise.all(h)).map((p) => {
|
|
6831
|
+
var g, f, u;
|
|
6832
|
+
const y = ((g = p == null ? void 0 : p.data) == null ? void 0 : g.data) || (p == null ? void 0 : p.data), m = (u = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : u.key;
|
|
6833
|
+
this.otherLayers[m] = y;
|
|
6778
6834
|
});
|
|
6779
6835
|
}
|
|
6780
6836
|
}
|
|
@@ -6795,7 +6851,7 @@ const Yo = {
|
|
|
6795
6851
|
this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
|
|
6796
6852
|
},
|
|
6797
6853
|
handleRampColorInitial() {
|
|
6798
|
-
var t, e, a, r, i, o, n, s, c, h,
|
|
6854
|
+
var t, e, a, r, i, o, n, s, c, h, d, p;
|
|
6799
6855
|
this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
6800
6856
|
type: "canvas",
|
|
6801
6857
|
canvas: (a = this.viewport) == null ? void 0 : a.rampColorCanvas,
|
|
@@ -6819,8 +6875,8 @@ const Yo = {
|
|
|
6819
6875
|
}), this.viewport.map.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) || this.viewport.map.addLayer(
|
|
6820
6876
|
{
|
|
6821
6877
|
type: "raster",
|
|
6822
|
-
id: (
|
|
6823
|
-
source: (
|
|
6878
|
+
id: (d = this.viewport) == null ? void 0 : d.particleLayer,
|
|
6879
|
+
source: (p = this.viewport) == null ? void 0 : p.particleSource,
|
|
6824
6880
|
layout: {
|
|
6825
6881
|
visibility: "none"
|
|
6826
6882
|
}
|
|
@@ -6829,69 +6885,69 @@ const Yo = {
|
|
|
6829
6885
|
);
|
|
6830
6886
|
},
|
|
6831
6887
|
handleDragEndWithZoom4Json() {
|
|
6832
|
-
var h,
|
|
6888
|
+
var h, d, p, y;
|
|
6833
6889
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
6834
6890
|
let e = 0, a = 0;
|
|
6835
6891
|
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);
|
|
6836
|
-
for (const
|
|
6837
|
-
if (this.weatherLayers[
|
|
6838
|
-
this.weatherLayers[
|
|
6892
|
+
for (const m in this.weatherLayers)
|
|
6893
|
+
if (this.weatherLayers[m].active && this.weatherLayers[m].type === "json") {
|
|
6894
|
+
this.weatherLayers[m].active = !1, this.weatherLayers[m].version = Math.random() + 1;
|
|
6839
6895
|
let g = [];
|
|
6840
|
-
if (["swell", "current"].includes(
|
|
6841
|
-
const f = ((
|
|
6842
|
-
for (const
|
|
6843
|
-
if (
|
|
6844
|
-
const v = f[
|
|
6896
|
+
if (["swell", "current"].includes(m)) {
|
|
6897
|
+
const f = ((d = this.weatherLayers[m]) == null ? void 0 : d.direction) || {};
|
|
6898
|
+
for (const u in f)
|
|
6899
|
+
if (u > s && u < c && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6900
|
+
const v = f[u].lng;
|
|
6845
6901
|
o > n ? v.forEach((b, w) => {
|
|
6846
6902
|
var k;
|
|
6847
6903
|
if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6848
|
-
const _ = C.point([b,
|
|
6849
|
-
val: f[
|
|
6850
|
-
spd: (k = f[
|
|
6904
|
+
const _ = C.point([b, u], {
|
|
6905
|
+
val: f[u].val[w],
|
|
6906
|
+
spd: (k = f[u].spd) == null ? void 0 : k[w]
|
|
6851
6907
|
});
|
|
6852
6908
|
g.push(_);
|
|
6853
6909
|
}
|
|
6854
6910
|
}) : v.forEach((b, w) => {
|
|
6855
6911
|
var k;
|
|
6856
6912
|
if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6857
|
-
const _ = C.point([b,
|
|
6858
|
-
val: f[
|
|
6859
|
-
spd: (k = f[
|
|
6913
|
+
const _ = C.point([b, u], {
|
|
6914
|
+
val: f[u].val[w],
|
|
6915
|
+
spd: (k = f[u].spd) == null ? void 0 : k[w]
|
|
6860
6916
|
});
|
|
6861
6917
|
g.push(_);
|
|
6862
6918
|
}
|
|
6863
6919
|
});
|
|
6864
6920
|
}
|
|
6865
|
-
if (a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("direction elapsed: ", a, ", total: ", e += a),
|
|
6866
|
-
const
|
|
6867
|
-
if (
|
|
6868
|
-
if (!
|
|
6921
|
+
if (a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("direction elapsed: ", a, ", total: ", e += a), m === "swell") {
|
|
6922
|
+
const u = this.weatherLayers[m].height;
|
|
6923
|
+
if (u) {
|
|
6924
|
+
if (!u.data) {
|
|
6869
6925
|
const v = [];
|
|
6870
|
-
for (const b in (
|
|
6871
|
-
const w =
|
|
6926
|
+
for (const b in (p = u.raw) == null ? void 0 : p.LineString) {
|
|
6927
|
+
const w = u.raw.LineString[b];
|
|
6872
6928
|
for (const k of w)
|
|
6873
6929
|
v.push(
|
|
6874
6930
|
C.lineString(k, {
|
|
6875
6931
|
val: Number(b)
|
|
6876
6932
|
})
|
|
6877
6933
|
);
|
|
6878
|
-
|
|
6934
|
+
u.data = C.featureCollection(v);
|
|
6879
6935
|
}
|
|
6880
6936
|
}
|
|
6881
|
-
if (
|
|
6882
|
-
const v = this.handleBboxClip(
|
|
6937
|
+
if (u.data) {
|
|
6938
|
+
const v = this.handleBboxClip(u.data, r);
|
|
6883
6939
|
g = g.concat(v);
|
|
6884
6940
|
}
|
|
6885
6941
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("height elapsed: ", a, ", total: ", e += a);
|
|
6886
6942
|
}
|
|
6887
6943
|
}
|
|
6888
|
-
if (
|
|
6889
|
-
const
|
|
6890
|
-
if (
|
|
6891
|
-
if (!
|
|
6944
|
+
if (m === "current") {
|
|
6945
|
+
const u = this.weatherLayers[m].speed;
|
|
6946
|
+
if (u) {
|
|
6947
|
+
if (!u.data) {
|
|
6892
6948
|
const b = [];
|
|
6893
|
-
for (const w in (y =
|
|
6894
|
-
const k =
|
|
6949
|
+
for (const w in (y = u.raw) == null ? void 0 : y.Polygon) {
|
|
6950
|
+
const k = u.raw.Polygon[w];
|
|
6895
6951
|
for (const _ of k)
|
|
6896
6952
|
b.push(
|
|
6897
6953
|
C.polygon(_, {
|
|
@@ -6899,67 +6955,67 @@ const Yo = {
|
|
|
6899
6955
|
})
|
|
6900
6956
|
);
|
|
6901
6957
|
}
|
|
6902
|
-
|
|
6958
|
+
u.data = C.featureCollection(b);
|
|
6903
6959
|
}
|
|
6904
|
-
const v = i < this.zoom ?
|
|
6960
|
+
const v = i < this.zoom ? u.data.features.filter((b) => b.properties.val > 0.5) : u.data.features;
|
|
6905
6961
|
g = g.concat(v), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("speed elapsed: ", a, ", total: ", e += a);
|
|
6906
6962
|
}
|
|
6907
6963
|
}
|
|
6908
|
-
} else if (
|
|
6964
|
+
} else if (m === "wind") {
|
|
6909
6965
|
const f = this.weatherLayers.wind.raw;
|
|
6910
|
-
for (const
|
|
6911
|
-
if (
|
|
6912
|
-
const v = f[
|
|
6966
|
+
for (const u in f)
|
|
6967
|
+
if (u > s && u < c && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6968
|
+
const v = f[u].lng;
|
|
6913
6969
|
o > n ? v.forEach((b, w) => {
|
|
6914
6970
|
if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6915
|
-
const k = C.point([b,
|
|
6916
|
-
val: f[
|
|
6917
|
-
spd: f[
|
|
6971
|
+
const k = C.point([b, u], {
|
|
6972
|
+
val: f[u].val[w],
|
|
6973
|
+
spd: f[u].spd[w]
|
|
6918
6974
|
});
|
|
6919
6975
|
g.push(k);
|
|
6920
6976
|
}
|
|
6921
6977
|
}) : v.forEach((b, w) => {
|
|
6922
6978
|
if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6923
|
-
const k = C.point([b,
|
|
6924
|
-
val: f[
|
|
6925
|
-
spd: f[
|
|
6979
|
+
const k = C.point([b, u], {
|
|
6980
|
+
val: f[u].val[w],
|
|
6981
|
+
spd: f[u].spd[w]
|
|
6926
6982
|
});
|
|
6927
6983
|
g.push(k);
|
|
6928
6984
|
}
|
|
6929
6985
|
});
|
|
6930
6986
|
}
|
|
6931
6987
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", a, ", total: ", e += a);
|
|
6932
|
-
} else if (
|
|
6933
|
-
if (this.weatherLayers[
|
|
6934
|
-
g = this.weatherLayers[
|
|
6988
|
+
} else if (m === "sig-wave-height") {
|
|
6989
|
+
if (this.weatherLayers[m].data)
|
|
6990
|
+
g = this.weatherLayers[m].data;
|
|
6935
6991
|
else {
|
|
6936
|
-
const f = this.weatherLayers[
|
|
6992
|
+
const f = this.weatherLayers[m].raw;
|
|
6937
6993
|
if (f) {
|
|
6938
|
-
const
|
|
6994
|
+
const u = [];
|
|
6939
6995
|
for (const v in f.Polygon) {
|
|
6940
6996
|
const b = f.Polygon[v];
|
|
6941
6997
|
for (const w of b)
|
|
6942
|
-
|
|
6998
|
+
u.push(
|
|
6943
6999
|
C.polygon(w, {
|
|
6944
7000
|
val: Number(v)
|
|
6945
7001
|
})
|
|
6946
7002
|
);
|
|
6947
7003
|
}
|
|
6948
|
-
g = g.concat(
|
|
7004
|
+
g = g.concat(u);
|
|
6949
7005
|
}
|
|
6950
7006
|
}
|
|
6951
7007
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sigWave elapsed: ", a, ", total: ", e += a);
|
|
6952
|
-
} else if (
|
|
6953
|
-
if (this.weatherLayers[
|
|
6954
|
-
g = this.weatherLayers[
|
|
7008
|
+
} else if (m === "prmsl") {
|
|
7009
|
+
if (this.weatherLayers[m].data)
|
|
7010
|
+
g = this.weatherLayers[m].data;
|
|
6955
7011
|
else {
|
|
6956
|
-
const f = this.weatherLayers[
|
|
7012
|
+
const f = this.weatherLayers[m].raw;
|
|
6957
7013
|
if (f) {
|
|
6958
|
-
const
|
|
7014
|
+
const u = [];
|
|
6959
7015
|
for (const v in f.LineString) {
|
|
6960
7016
|
const b = f.LineString[v];
|
|
6961
7017
|
for (const w of b)
|
|
6962
|
-
|
|
7018
|
+
u.push(
|
|
6963
7019
|
C.lineString(w, {
|
|
6964
7020
|
val: Number(v)
|
|
6965
7021
|
})
|
|
@@ -6967,39 +7023,39 @@ const Yo = {
|
|
|
6967
7023
|
}
|
|
6968
7024
|
for (const v in f.Point)
|
|
6969
7025
|
f.Point[v].lng.forEach((b, w) => {
|
|
6970
|
-
b = Re(b),
|
|
7026
|
+
b = Re(b), u.push(
|
|
6971
7027
|
C.point([b, v], {
|
|
6972
7028
|
val: f.Point[v].val[w],
|
|
6973
7029
|
type: f.Point[v].type[w]
|
|
6974
7030
|
})
|
|
6975
7031
|
);
|
|
6976
7032
|
});
|
|
6977
|
-
g = g.concat(
|
|
7033
|
+
g = g.concat(u);
|
|
6978
7034
|
}
|
|
6979
7035
|
}
|
|
6980
7036
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
|
|
6981
|
-
} else if (
|
|
6982
|
-
if (this.weatherLayers[
|
|
6983
|
-
g = this.weatherLayers[
|
|
7037
|
+
} else if (m === "arctic" || m === "iceberg") {
|
|
7038
|
+
if (this.weatherLayers[m].data)
|
|
7039
|
+
g = this.weatherLayers[m].data;
|
|
6984
7040
|
else {
|
|
6985
|
-
const f = this.weatherLayers[
|
|
7041
|
+
const f = this.weatherLayers[m].raw;
|
|
6986
7042
|
if (f) {
|
|
6987
|
-
const
|
|
7043
|
+
const u = [];
|
|
6988
7044
|
for (const v in f.LineString) {
|
|
6989
7045
|
const b = f.LineString[v];
|
|
6990
7046
|
for (const w of b)
|
|
6991
|
-
|
|
7047
|
+
u.push(
|
|
6992
7048
|
C.lineString(w, {
|
|
6993
7049
|
val: Number(v)
|
|
6994
7050
|
})
|
|
6995
7051
|
);
|
|
6996
7052
|
}
|
|
6997
|
-
g = g.concat(
|
|
7053
|
+
g = g.concat(u);
|
|
6998
7054
|
}
|
|
6999
7055
|
}
|
|
7000
7056
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
7001
7057
|
}
|
|
7002
|
-
console.log(
|
|
7058
|
+
console.log(m, " elapsed: ", a, ", total: ", e += a), g.length && (this.weatherLayers[m].data = C.featureCollection(g)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
|
|
7003
7059
|
}
|
|
7004
7060
|
},
|
|
7005
7061
|
handleDragEndWithZoom4Image() {
|
|
@@ -7032,8 +7088,8 @@ const Yo = {
|
|
|
7032
7088
|
this.handleBeforeLayerToggle();
|
|
7033
7089
|
},
|
|
7034
7090
|
handleBeforeLayerToggle() {
|
|
7035
|
-
var t, e, a, r, i, o, n, s, c, h,
|
|
7036
|
-
(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 || (
|
|
7091
|
+
var t, e, a, r, i, o, n, s, c, h, d, p, y;
|
|
7092
|
+
(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"] || (y = this.otherLayers) != null && y["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
7037
7093
|
},
|
|
7038
7094
|
handleDateChange(t = { tropicals: !1 }) {
|
|
7039
7095
|
this.fetchWeatherLayers(t), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -7062,13 +7118,13 @@ const Yo = {
|
|
|
7062
7118
|
}
|
|
7063
7119
|
},
|
|
7064
7120
|
async handlePointChange(t) {
|
|
7065
|
-
const e = this.ts ?
|
|
7121
|
+
const e = this.ts ? ee(this.ts) : ee(), a = {
|
|
7066
7122
|
lat: t.lat,
|
|
7067
7123
|
lng: t.lng,
|
|
7068
7124
|
ts: e.utc().format(),
|
|
7069
7125
|
wt: !0,
|
|
7070
7126
|
src: this.source
|
|
7071
|
-
}, r = await
|
|
7127
|
+
}, r = await se.get(`${this.gateway}/api/arc/meteo/query`, {
|
|
7072
7128
|
params: a,
|
|
7073
7129
|
headers: {
|
|
7074
7130
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -7086,82 +7142,82 @@ const Yo = {
|
|
|
7086
7142
|
this.particleFactor = t, this.fetchWeatherLayers({ tropicals: !1 });
|
|
7087
7143
|
}
|
|
7088
7144
|
}
|
|
7089
|
-
},
|
|
7145
|
+
}, ts = {
|
|
7090
7146
|
key: 0,
|
|
7091
7147
|
className: "map-gl-home"
|
|
7092
7148
|
};
|
|
7093
|
-
function
|
|
7094
|
-
var q,
|
|
7095
|
-
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"),
|
|
7096
|
-
return a.map ? (L(), x("div",
|
|
7097
|
-
P(n,
|
|
7149
|
+
function as(t, e, a, r, i, o) {
|
|
7150
|
+
var q, fe, Y, R, F, ge, Q, be, ie, re, oe, Se, ke, ze, Pe, Te, Ie, Ee, Oe, He, Ze, Xe, Je, qe, Ye, Qe;
|
|
7151
|
+
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), y = z("IdmTropicals"), m = z("IdmCurrents"), g = z("IdmCurrentParticle"), f = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), I = z("IdmWarZone"), D = z("IdmGmdssArea"), $ = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), U = z("IdmLoadLine"), ae = z("IdmTimezone"), de = z("IdmVRA"), pe = z("IdmSpecialArea"), me = z("IdmTerminator"), ue = z("IdmLatLng"), ye = z("IdmMeasure"), X = z("IdmPoint");
|
|
7152
|
+
return a.map ? (L(), x("div", ts, [
|
|
7153
|
+
P(n, E({
|
|
7098
7154
|
ref: "layer",
|
|
7099
7155
|
map: a.map,
|
|
7100
7156
|
"toggle-version": i.toggleVersion
|
|
7101
7157
|
}, t.$attrs, {
|
|
7102
7158
|
onWeather: o.handleWeatherLayerChange,
|
|
7103
7159
|
onOther: o.handleOtherLayerChange,
|
|
7104
|
-
onCoordinate: e[0] || (e[0] = (
|
|
7105
|
-
onMeasure: e[1] || (e[1] = (
|
|
7106
|
-
onPoint: e[2] || (e[2] = (
|
|
7160
|
+
onCoordinate: e[0] || (e[0] = (K) => i.showCoord = K),
|
|
7161
|
+
onMeasure: e[1] || (e[1] = (K) => i.showMeasure = K),
|
|
7162
|
+
onPoint: e[2] || (e[2] = (K) => i.showPoint = K),
|
|
7107
7163
|
on3d: o.handle3dToggle,
|
|
7108
|
-
onToggleVersion: e[3] || (e[3] = (
|
|
7164
|
+
onToggleVersion: e[3] || (e[3] = (K) => i.toggleVersion = K)
|
|
7109
7165
|
}), null, 16, ["map", "toggle-version", "onWeather", "onOther", "on3d"]),
|
|
7110
|
-
P(s,
|
|
7166
|
+
P(s, E({
|
|
7111
7167
|
map: a.map,
|
|
7112
7168
|
token: a.token,
|
|
7113
7169
|
enabled: (q = i.otherLayers) == null ? void 0 : q.enc,
|
|
7114
7170
|
"toggle-version": i.toggleVersion
|
|
7115
7171
|
}, t.$attrs, {
|
|
7116
|
-
onEnc: e[4] || (e[4] = (
|
|
7172
|
+
onEnc: e[4] || (e[4] = (K) => i.enc = K)
|
|
7117
7173
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
7118
|
-
P(c,
|
|
7174
|
+
P(c, E({
|
|
7119
7175
|
map: a.map,
|
|
7120
|
-
"sig-wave": (
|
|
7176
|
+
"sig-wave": (fe = i.weatherLayers) == null ? void 0 : fe["sig-wave-height"],
|
|
7121
7177
|
"before-layer": a.beforeLayer
|
|
7122
7178
|
}, t.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
|
|
7123
|
-
P(h,
|
|
7179
|
+
P(h, E({
|
|
7124
7180
|
map: a.map,
|
|
7125
|
-
swell: (
|
|
7181
|
+
swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
|
|
7126
7182
|
"before-layer": a.beforeLayer
|
|
7127
7183
|
}, t.$attrs), null, 16, ["map", "swell", "before-layer"]),
|
|
7128
|
-
P(
|
|
7184
|
+
P(d, E({
|
|
7129
7185
|
map: a.map,
|
|
7130
|
-
prmsl: (
|
|
7186
|
+
prmsl: (R = i.weatherLayers) == null ? void 0 : R.prmsl,
|
|
7131
7187
|
"before-layer": a.beforeLayer,
|
|
7132
7188
|
"active-weather-layers": i.activeWeatherLayers
|
|
7133
7189
|
}, t.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
7134
|
-
P(
|
|
7190
|
+
P(p, E({
|
|
7135
7191
|
map: a.map,
|
|
7136
|
-
iceberg: (
|
|
7192
|
+
iceberg: (F = i.weatherLayers) == null ? void 0 : F.iceberg,
|
|
7137
7193
|
"before-layer": a.beforeLayer
|
|
7138
7194
|
}, t.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
7139
|
-
P(y,
|
|
7195
|
+
P(y, E({
|
|
7140
7196
|
map: a.map,
|
|
7141
7197
|
date: a.ts,
|
|
7142
|
-
tropicals: (
|
|
7198
|
+
tropicals: (ge = i.weatherLayers) == null ? void 0 : ge.tropicals,
|
|
7143
7199
|
"before-layer": a.beforeLayer
|
|
7144
7200
|
}, t.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
7145
|
-
P(
|
|
7201
|
+
P(m, E({
|
|
7146
7202
|
map: a.map,
|
|
7147
|
-
current: (
|
|
7203
|
+
current: (Q = i.weatherLayers) == null ? void 0 : Q.current,
|
|
7148
7204
|
"before-layer": a.beforeLayer,
|
|
7149
7205
|
"show-particle": i.showCurrentParticle,
|
|
7150
7206
|
"margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
|
|
7151
7207
|
"toggle-version": i.toggleVersion,
|
|
7152
7208
|
"weather-layers": i.weatherLayers
|
|
7153
7209
|
}, t.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
|
|
7154
|
-
P(g,
|
|
7210
|
+
P(g, E({
|
|
7155
7211
|
viewport: i.viewport,
|
|
7156
|
-
factor: (
|
|
7212
|
+
factor: (be = i.weatherLayers) == null ? void 0 : be["current-particle"],
|
|
7157
7213
|
"before-layer": a.beforeLayer,
|
|
7158
7214
|
"toggle-version": i.toggleVersion
|
|
7159
7215
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7160
|
-
P(f,
|
|
7216
|
+
P(f, E({
|
|
7161
7217
|
ref: "windBarb",
|
|
7162
7218
|
map: a.map,
|
|
7163
|
-
wind: (
|
|
7164
|
-
current: (
|
|
7219
|
+
wind: (ie = i.weatherLayers) == null ? void 0 : ie.wind,
|
|
7220
|
+
current: (re = i.weatherLayers) == null ? void 0 : re.current,
|
|
7165
7221
|
"before-layer": a.beforeLayer,
|
|
7166
7222
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
7167
7223
|
"show-particle": i.showWindParticle
|
|
@@ -7170,120 +7226,120 @@ function Ko(t, e, a, r, i, o) {
|
|
|
7170
7226
|
"weather-layers": i.weatherLayers,
|
|
7171
7227
|
onParticle: o.handleParticle
|
|
7172
7228
|
}), null, 16, ["map", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
|
|
7173
|
-
P(
|
|
7229
|
+
P(u, E({
|
|
7174
7230
|
viewport: i.viewport,
|
|
7175
|
-
factor: (
|
|
7231
|
+
factor: (oe = i.weatherLayers) == null ? void 0 : oe["wind-particle"],
|
|
7176
7232
|
"before-layer": a.beforeLayer,
|
|
7177
7233
|
"toggle-version": i.toggleVersion
|
|
7178
7234
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7179
|
-
P(v,
|
|
7235
|
+
P(v, E({
|
|
7180
7236
|
viewport: i.viewport,
|
|
7181
7237
|
factor: (Se = i.weatherLayers) == null ? void 0 : Se.precip3h,
|
|
7182
7238
|
"before-layer": a.beforeLayer,
|
|
7183
7239
|
"toggle-version": i.toggleVersion
|
|
7184
7240
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7185
|
-
P(b,
|
|
7241
|
+
P(b, E({
|
|
7186
7242
|
viewport: i.viewport,
|
|
7187
7243
|
factor: (ke = i.weatherLayers) == null ? void 0 : ke.visibility,
|
|
7188
7244
|
"before-layer": a.beforeLayer,
|
|
7189
7245
|
"toggle-version": i.toggleVersion
|
|
7190
7246
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7191
|
-
P(w,
|
|
7247
|
+
P(w, E({
|
|
7192
7248
|
viewport: i.viewport,
|
|
7193
7249
|
factor: (ze = i.weatherLayers) == null ? void 0 : ze["water-temp"],
|
|
7194
7250
|
"before-layer": a.beforeLayer,
|
|
7195
7251
|
"toggle-version": i.toggleVersion
|
|
7196
7252
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7197
|
-
P(k,
|
|
7253
|
+
P(k, E({
|
|
7198
7254
|
viewport: i.viewport,
|
|
7199
7255
|
factor: (Pe = i.weatherLayers) == null ? void 0 : Pe.temp,
|
|
7200
7256
|
"before-layer": a.beforeLayer,
|
|
7201
7257
|
"toggle-version": i.toggleVersion
|
|
7202
7258
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7203
|
-
P(_,
|
|
7259
|
+
P(_, E({
|
|
7204
7260
|
viewport: i.viewport,
|
|
7205
7261
|
factor: (Te = i.weatherLayers) == null ? void 0 : Te.arctic,
|
|
7206
7262
|
"before-layer": a.beforeLayer,
|
|
7207
7263
|
"toggle-version": i.toggleVersion
|
|
7208
7264
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7209
|
-
P(
|
|
7265
|
+
P(I, E({
|
|
7210
7266
|
map: a.map,
|
|
7211
7267
|
zone: (Ie = i.otherLayers) == null ? void 0 : Ie["war-zones"],
|
|
7212
7268
|
"before-layer": a.beforeLayer
|
|
7213
7269
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7214
|
-
P(D,
|
|
7270
|
+
P(D, E({
|
|
7215
7271
|
map: a.map,
|
|
7216
7272
|
area: (Ee = i.otherLayers) == null ? void 0 : Ee["gmdss-areas"],
|
|
7217
7273
|
"before-layer": a.beforeLayer
|
|
7218
7274
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7219
|
-
P($,
|
|
7275
|
+
P($, E({
|
|
7220
7276
|
map: a.map,
|
|
7221
|
-
zone: (
|
|
7277
|
+
zone: (Oe = i.otherLayers) == null ? void 0 : Oe["eca-zones"],
|
|
7222
7278
|
"before-layer": a.beforeLayer
|
|
7223
7279
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7224
|
-
P(W,
|
|
7280
|
+
P(W, E({
|
|
7225
7281
|
map: a.map,
|
|
7226
7282
|
zone: (He = i.otherLayers) == null ? void 0 : He["alert-zones"],
|
|
7227
7283
|
"before-layer": a.beforeLayer
|
|
7228
7284
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7229
|
-
P(O,
|
|
7285
|
+
P(O, E({
|
|
7230
7286
|
map: a.map,
|
|
7231
7287
|
port: (Ze = i.otherLayers) == null ? void 0 : Ze.ports,
|
|
7232
7288
|
"before-layer": a.beforeLayer
|
|
7233
7289
|
}, t.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
7234
|
-
P(
|
|
7290
|
+
P(U, E({
|
|
7235
7291
|
map: a.map,
|
|
7236
7292
|
line: (Xe = i.otherLayers) == null ? void 0 : Xe["load-lines"],
|
|
7237
7293
|
"before-layer": a.beforeLayer
|
|
7238
7294
|
}, t.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
7239
|
-
P(
|
|
7295
|
+
P(ae, E({
|
|
7240
7296
|
map: a.map,
|
|
7241
7297
|
zone: (Je = i.otherLayers) == null ? void 0 : Je["time-zones"],
|
|
7242
7298
|
"before-layer": a.beforeLayer
|
|
7243
7299
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7244
|
-
P(
|
|
7300
|
+
P(de, E({
|
|
7245
7301
|
map: a.map,
|
|
7246
7302
|
area: (qe = i.otherLayers) == null ? void 0 : qe["voluntary-reporting-area"],
|
|
7247
7303
|
"before-layer": a.beforeLayer
|
|
7248
7304
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7249
|
-
P(
|
|
7305
|
+
P(pe, E({
|
|
7250
7306
|
map: a.map,
|
|
7251
7307
|
area: (Ye = i.otherLayers) == null ? void 0 : Ye["special-area"],
|
|
7252
7308
|
"before-layer": a.beforeLayer
|
|
7253
7309
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7254
|
-
P(
|
|
7310
|
+
P(me, E({
|
|
7255
7311
|
map: a.map,
|
|
7256
7312
|
area: (Qe = i.otherLayers) == null ? void 0 : Qe["day-night"]
|
|
7257
7313
|
}, t.$attrs), null, 16, ["map", "area"]),
|
|
7258
|
-
P(
|
|
7314
|
+
P(ue, E({
|
|
7259
7315
|
map: a.map,
|
|
7260
7316
|
show: i.showCoord,
|
|
7261
7317
|
"toggle-version": i.toggleVersion
|
|
7262
7318
|
}, t.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
7263
|
-
P(
|
|
7319
|
+
P(ye, E({
|
|
7264
7320
|
map: a.map,
|
|
7265
7321
|
show: i.showMeasure
|
|
7266
7322
|
}, t.$attrs), null, 16, ["map", "show"]),
|
|
7267
|
-
P(
|
|
7323
|
+
P(X, E({
|
|
7268
7324
|
map: a.map,
|
|
7269
7325
|
show: i.showPoint,
|
|
7270
7326
|
meteo: i.meteo
|
|
7271
7327
|
}, t.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
|
|
7272
7328
|
])) : N("", !0);
|
|
7273
7329
|
}
|
|
7274
|
-
const
|
|
7330
|
+
const is = /* @__PURE__ */ T(es, [["render", as]]), ps = {
|
|
7275
7331
|
install(t) {
|
|
7276
|
-
t.component("MapboxGL",
|
|
7332
|
+
t.component("MapboxGL", is), t.component("TropicalGL", tt), t.component("LatLngGL", at);
|
|
7277
7333
|
}
|
|
7278
7334
|
};
|
|
7279
7335
|
export {
|
|
7280
7336
|
at as LatLngGL,
|
|
7281
|
-
|
|
7282
|
-
|
|
7337
|
+
is as MapboxGL,
|
|
7338
|
+
ps as MapboxGLPlugin,
|
|
7283
7339
|
Qt as MapboxHelper,
|
|
7284
|
-
|
|
7340
|
+
V as ParticleSchema,
|
|
7285
7341
|
tt as TropicalGL,
|
|
7286
|
-
|
|
7287
|
-
|
|
7342
|
+
Ge as Viewport,
|
|
7343
|
+
ve as WebGL,
|
|
7288
7344
|
B as WebGLSchema
|
|
7289
7345
|
};
|