@idmwx/idmui-gl3 3.9.2 → 3.9.4
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 +603 -594
- package/dist/index.umd.cjs +11 -11
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var R = (t, e, a) => (
|
|
4
|
-
import { LayerHelper as
|
|
5
|
-
import { resolveComponent as z, openBlock as
|
|
1
|
+
var tt = Object.defineProperty;
|
|
2
|
+
var at = (t, e, a) => e in t ? tt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
3
|
+
var R = (t, e, a) => (at(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
4
|
+
import { LayerHelper as Oe, CompanyHelper as Me, convertToStandardLng as Re } from "@idmwx/idmwx-base";
|
|
5
|
+
import { resolveComponent as z, openBlock as L, createElementBlock as x, createElementVNode as l, normalizeStyle as F, normalizeClass as M, Fragment as De, renderList as Ae, toDisplayString as S, createVNode as P, withCtx as it, createTextVNode as qe, createCommentVNode as $, pushScopeId as G, popScopeId as H, withDirectives as $e, vShow as Be, createStaticVNode as rt, mergeProps as I } from "vue";
|
|
6
6
|
import * as C from "@turf/turf";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { TropicalHelper as
|
|
11
|
-
import
|
|
7
|
+
import ot from "@mapbox/sphericalmercator";
|
|
8
|
+
import ae from "moment";
|
|
9
|
+
import le from "mapbox-gl";
|
|
10
|
+
import { TropicalHelper as Ye, LngLatHelper as j, LaneHelper as te } from "@idm-plugin/geo";
|
|
11
|
+
import ne from "axios";
|
|
12
12
|
const T = (t, e) => {
|
|
13
13
|
const a = t.__vccOpts || t;
|
|
14
14
|
for (const [r, i] of e)
|
|
15
15
|
a[r] = i;
|
|
16
16
|
return a;
|
|
17
|
-
},
|
|
17
|
+
}, st = {
|
|
18
18
|
name: "IdmGlLayer",
|
|
19
19
|
props: {
|
|
20
20
|
map: {
|
|
@@ -49,8 +49,8 @@ const T = (t, e) => {
|
|
|
49
49
|
autoActive: !0,
|
|
50
50
|
otherLayers: [],
|
|
51
51
|
layers: {
|
|
52
|
-
weather: [...
|
|
53
|
-
other: [...
|
|
52
|
+
weather: [...Oe.WEATHER_LAYERS],
|
|
53
|
+
other: [...Oe.OTHER_LAYERS]
|
|
54
54
|
},
|
|
55
55
|
weatherLayersCache: "weatherLayersCache",
|
|
56
56
|
autoActiveCache: "autoActiveCache",
|
|
@@ -150,124 +150,124 @@ const T = (t, e) => {
|
|
|
150
150
|
this.source = t, this.handleConfirm();
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
],
|
|
153
|
+
}, X = (t) => (G("data-v-63871fba"), t = t(), H(), t), nt = { class: "idm-gl-layer" }, lt = { class: "bar-item layer-bars" }, ct = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), ht = [
|
|
154
|
+
ct
|
|
155
|
+
], dt = { class: "bar-item tool-bars" }, pt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), mt = [
|
|
156
|
+
pt
|
|
157
|
+
], ut = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), yt = [
|
|
158
|
+
ut
|
|
159
|
+
], ft = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), gt = [
|
|
156
160
|
ft
|
|
157
|
-
], bt = /* @__PURE__ */
|
|
161
|
+
], bt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), vt = [
|
|
158
162
|
bt
|
|
159
|
-
], _t = /* @__PURE__ */
|
|
160
|
-
_t
|
|
161
|
-
], Lt = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), xt = [
|
|
163
|
+
], _t = ["onClick"], wt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Lt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("i", { class: "iconfont" }, "", -1)), xt = [
|
|
162
164
|
Lt
|
|
163
|
-
], Ct =
|
|
164
|
-
kt
|
|
165
|
-
], Pt = { class: "weather-layers" }, Tt = {
|
|
165
|
+
], Ct = { class: "weather-layers" }, St = {
|
|
166
166
|
class: "layers-title",
|
|
167
167
|
style: { display: "flex", "align-items": "center", "justify-content": "space-between" }
|
|
168
|
-
},
|
|
169
|
-
function
|
|
168
|
+
}, kt = { style: { "font-size": "12px" } }, zt = { class: "layers-body" }, Pt = ["onClick"], Tt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Et = { class: "other-layers" }, It = /* @__PURE__ */ X(() => /* @__PURE__ */ l("div", { class: "layers-title" }, "Other Layers", -1)), Rt = { class: "layers-body" }, Dt = ["onClick"], At = /* @__PURE__ */ X(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Mt = { class: "source-layers" }, $t = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "layers-title" }, "Forecast Model", -1)), Bt = { class: "layers-body model-box" };
|
|
169
|
+
function Nt(t, e, a, r, i, o) {
|
|
170
170
|
const n = z("ElScrollbar");
|
|
171
|
-
return
|
|
171
|
+
return L(), x("div", nt, [
|
|
172
172
|
l("div", {
|
|
173
173
|
class: "menu-bar-box",
|
|
174
|
-
style:
|
|
174
|
+
style: F({ top: a.top + 10 + "px", right: i.right + "px" })
|
|
175
175
|
}, [
|
|
176
|
-
l("div",
|
|
176
|
+
l("div", lt, [
|
|
177
177
|
l("div", {
|
|
178
178
|
class: M(i.showLayers ? "menu-icon active" : "menu-icon"),
|
|
179
179
|
onClick: e[0] || (e[0] = (...s) => o.handleMenuToggle && o.handleMenuToggle(...s))
|
|
180
|
-
},
|
|
180
|
+
}, ht, 2)
|
|
181
181
|
])
|
|
182
182
|
], 4),
|
|
183
183
|
l("div", {
|
|
184
184
|
class: "menu-bar-box",
|
|
185
|
-
style:
|
|
185
|
+
style: F({ top: a.top + 160 + "px", right: i.right + "px" })
|
|
186
186
|
}, [
|
|
187
|
-
l("div",
|
|
187
|
+
l("div", dt, [
|
|
188
188
|
l("div", {
|
|
189
189
|
class: M(i.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
190
190
|
onClick: e[1] || (e[1] = (...s) => o.handleMeasureToggle && o.handleMeasureToggle(...s))
|
|
191
|
-
},
|
|
191
|
+
}, mt, 2),
|
|
192
192
|
l("div", {
|
|
193
193
|
class: M(i.showPoint ? "menu-icon active" : "menu-icon"),
|
|
194
194
|
onClick: e[2] || (e[2] = (...s) => o.handlePointToggle && o.handlePointToggle(...s))
|
|
195
|
-
},
|
|
195
|
+
}, yt, 2),
|
|
196
196
|
l("div", {
|
|
197
197
|
class: M(i.showCoord ? "menu-icon active" : "menu-icon"),
|
|
198
198
|
onClick: e[3] || (e[3] = (...s) => o.handleCoordToggle && o.handleCoordToggle(...s))
|
|
199
|
-
},
|
|
199
|
+
}, gt, 2),
|
|
200
200
|
l("div", {
|
|
201
201
|
class: M(i.show3d ? "menu-icon active" : "menu-icon"),
|
|
202
202
|
onClick: e[4] || (e[4] = (...s) => o.handle3DToggle && o.handle3DToggle(...s))
|
|
203
|
-
},
|
|
203
|
+
}, vt, 2)
|
|
204
204
|
])
|
|
205
205
|
], 4),
|
|
206
206
|
l("div", {
|
|
207
207
|
class: "active-layers",
|
|
208
|
-
style:
|
|
208
|
+
style: F({ right: i.right + "px", bottom: "100px" })
|
|
209
209
|
}, [
|
|
210
|
-
(
|
|
210
|
+
(L(!0), x(De, null, Ae(i.weatherLayers, (s) => (L(), x("div", {
|
|
211
211
|
key: s.key,
|
|
212
212
|
class: M(o.computeLayerClass(s, i.activeWeatherLayers)),
|
|
213
213
|
onClick: (c) => o.handleActiveWeatherLayerPick(s)
|
|
214
214
|
}, [
|
|
215
|
-
|
|
215
|
+
wt,
|
|
216
216
|
l("span", null, S(s.name), 1)
|
|
217
|
-
], 10,
|
|
217
|
+
], 10, _t))), 128))
|
|
218
218
|
], 4),
|
|
219
219
|
l("div", {
|
|
220
220
|
class: "available-layers flex-center",
|
|
221
|
-
style:
|
|
221
|
+
style: F({ top: a.top + "px", right: i.showLayers ? "0px" : "-240px" })
|
|
222
222
|
}, [
|
|
223
223
|
l("div", {
|
|
224
224
|
class: "side-bar",
|
|
225
|
-
style:
|
|
225
|
+
style: F({ right: i.showLayers ? "0px" : "-240px" }),
|
|
226
226
|
onClick: e[5] || (e[5] = (...s) => o.handleMenuToggle && o.handleMenuToggle(...s))
|
|
227
|
-
},
|
|
227
|
+
}, xt, 4),
|
|
228
228
|
l("div", {
|
|
229
229
|
class: M(["list-box", i.showLayers ? "available-layers-show" : ""])
|
|
230
230
|
}, [
|
|
231
231
|
P(n, { style: { flex: "1" } }, {
|
|
232
|
-
default:
|
|
233
|
-
l("div",
|
|
234
|
-
l("div",
|
|
232
|
+
default: it(() => [
|
|
233
|
+
l("div", Ct, [
|
|
234
|
+
l("div", St, [
|
|
235
235
|
l("div", null, [
|
|
236
|
-
|
|
237
|
-
l("span",
|
|
236
|
+
qe(" Weather Layers "),
|
|
237
|
+
l("span", kt, "(" + S(i.weatherLayers.length) + "/12)", 1)
|
|
238
238
|
])
|
|
239
239
|
]),
|
|
240
|
-
l("div",
|
|
241
|
-
(
|
|
240
|
+
l("div", zt, [
|
|
241
|
+
(L(!0), x(De, null, Ae(i.layers.weather, (s) => (L(), x(De, {
|
|
242
242
|
key: s.key
|
|
243
243
|
}, [
|
|
244
|
-
s.hide ? $("", !0) : (
|
|
244
|
+
s.hide ? $("", !0) : (L(), x("div", {
|
|
245
245
|
key: 0,
|
|
246
246
|
class: M(o.computeLayerClass(s, i.weatherLayers)),
|
|
247
247
|
onClick: (c) => o.handleWeatherLayerPick(s)
|
|
248
248
|
}, [
|
|
249
|
-
|
|
249
|
+
Tt,
|
|
250
250
|
l("span", null, S(s.name), 1)
|
|
251
|
-
], 10,
|
|
251
|
+
], 10, Pt))
|
|
252
252
|
], 64))), 128))
|
|
253
253
|
])
|
|
254
254
|
]),
|
|
255
|
-
l("div",
|
|
256
|
-
|
|
257
|
-
l("div",
|
|
258
|
-
(
|
|
255
|
+
l("div", Et, [
|
|
256
|
+
It,
|
|
257
|
+
l("div", Rt, [
|
|
258
|
+
(L(!0), x(De, null, Ae(i.layers.other, (s) => (L(), x("div", {
|
|
259
259
|
key: s.key,
|
|
260
260
|
class: M(o.computeLayerClass(s, i.otherLayers)),
|
|
261
261
|
onClick: (c) => o.handleOtherLayerPick(s)
|
|
262
262
|
}, [
|
|
263
|
-
|
|
263
|
+
At,
|
|
264
264
|
l("span", null, S(s.name), 1)
|
|
265
|
-
], 10,
|
|
265
|
+
], 10, Dt))), 128))
|
|
266
266
|
])
|
|
267
267
|
]),
|
|
268
|
-
l("div",
|
|
269
|
-
|
|
270
|
-
l("div",
|
|
268
|
+
l("div", Mt, [
|
|
269
|
+
$t,
|
|
270
|
+
l("div", Bt, [
|
|
271
271
|
l("span", {
|
|
272
272
|
class: M(i.source === "GFS" ? "text active" : "text"),
|
|
273
273
|
onClick: e[6] || (e[6] = (s) => o.handleSourceToggle("GFS"))
|
|
@@ -285,8 +285,8 @@ function Ft(t, e, a, r, i, o) {
|
|
|
285
285
|
], 4)
|
|
286
286
|
]);
|
|
287
287
|
}
|
|
288
|
-
const
|
|
289
|
-
const
|
|
288
|
+
const Wt = /* @__PURE__ */ T(st, [["render", Nt], ["__scopeId", "data-v-63871fba"]]);
|
|
289
|
+
const Ot = {
|
|
290
290
|
name: "IdmWindBarb",
|
|
291
291
|
props: {
|
|
292
292
|
map: {
|
|
@@ -445,43 +445,43 @@ const Ut = {
|
|
|
445
445
|
this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
},
|
|
448
|
+
}, jt = { key: 0 }, Ft = {
|
|
449
449
|
key: 0,
|
|
450
450
|
class: "iconfont active"
|
|
451
|
-
},
|
|
451
|
+
}, Vt = {
|
|
452
452
|
key: 1,
|
|
453
453
|
class: "iconfont"
|
|
454
|
-
},
|
|
454
|
+
}, Ut = {
|
|
455
455
|
key: 0,
|
|
456
456
|
class: "iconfont active"
|
|
457
|
-
},
|
|
457
|
+
}, Gt = {
|
|
458
458
|
key: 1,
|
|
459
459
|
class: "iconfont"
|
|
460
460
|
};
|
|
461
|
-
function
|
|
461
|
+
function Ht(t, e, a, r, i, o) {
|
|
462
462
|
var n;
|
|
463
|
-
return (n = a.wind) != null && n.active ? (
|
|
463
|
+
return (n = a.wind) != null && n.active ? (L(), x("div", jt, [
|
|
464
464
|
l("div", {
|
|
465
465
|
class: "flex-center tool-bars",
|
|
466
|
-
style:
|
|
466
|
+
style: F([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
|
|
467
467
|
}, [
|
|
468
|
-
a.mapProjection === "mercator" ? (
|
|
468
|
+
a.mapProjection === "mercator" ? (L(), x("div", {
|
|
469
469
|
key: 0,
|
|
470
470
|
class: "flex-start",
|
|
471
471
|
onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
|
|
472
472
|
}, [
|
|
473
|
-
a.showParticle ? (
|
|
473
|
+
a.showParticle ? (L(), x("i", Ft, "")) : (L(), x("i", Vt, "")),
|
|
474
474
|
l("span", {
|
|
475
475
|
class: M(a.showParticle ? "active" : "")
|
|
476
476
|
}, "Wind Particles", 2)
|
|
477
477
|
])) : $("", !0),
|
|
478
|
-
a.showParticle ? (
|
|
478
|
+
a.showParticle ? (L(), x("div", {
|
|
479
479
|
key: 1,
|
|
480
480
|
class: "flex-start",
|
|
481
481
|
style: { "margin-left": "16px" },
|
|
482
482
|
onClick: e[1] || (e[1] = (s) => i.showFeather = !i.showFeather)
|
|
483
483
|
}, [
|
|
484
|
-
i.showFeather ? (
|
|
484
|
+
i.showFeather ? (L(), x("i", Ut, "")) : (L(), x("i", Gt, "")),
|
|
485
485
|
l("span", {
|
|
486
486
|
class: M(i.showFeather ? "active" : "")
|
|
487
487
|
}, "Wind Feather", 2)
|
|
@@ -489,8 +489,8 @@ function qt(t, e, a, r, i, o) {
|
|
|
489
489
|
], 4)
|
|
490
490
|
])) : $("", !0);
|
|
491
491
|
}
|
|
492
|
-
const
|
|
493
|
-
class
|
|
492
|
+
const Zt = /* @__PURE__ */ T(Ot, [["render", Ht], ["__scopeId", "data-v-b6fb74d9"]]);
|
|
493
|
+
class je {
|
|
494
494
|
constructor(e) {
|
|
495
495
|
R(this, "map");
|
|
496
496
|
R(this, "mercator");
|
|
@@ -501,7 +501,7 @@ class Ue {
|
|
|
501
501
|
R(this, "rampColorCanvas");
|
|
502
502
|
R(this, "particleCanvas");
|
|
503
503
|
R(this, "ratio");
|
|
504
|
-
this.map = e, this.mercator = new
|
|
504
|
+
this.map = e, this.mercator = new ot(), 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;
|
|
505
505
|
}
|
|
506
506
|
/**
|
|
507
507
|
* 转换为[-180, 180]的经度,且包含转换次数
|
|
@@ -573,7 +573,7 @@ class Ue {
|
|
|
573
573
|
a !== r && this.map.setLayoutProperty(this.particleLayer, "visibility", r);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
class
|
|
576
|
+
class Le {
|
|
577
577
|
/**
|
|
578
578
|
* 创建着色器
|
|
579
579
|
* @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
|
|
@@ -712,9 +712,9 @@ class we {
|
|
|
712
712
|
const u = a.getUniformLocation(r, "u_range_u_v"), v = a.getUniformLocation(r, "u_range_s");
|
|
713
713
|
a.uniform2f(u, s.uvRange[0], s.uvRange[1]), a.uniform2f(v, s.sRange[0], s.sRange[1]);
|
|
714
714
|
}
|
|
715
|
-
const m = e.getBoundPixel(),
|
|
715
|
+
const m = e.getBoundPixel(), b = e.map.getZoom() + 1, y = e.getWorldCopy(m, b);
|
|
716
716
|
for (const u of y) {
|
|
717
|
-
const v = (u[0] - m[0]) * e.ratio,
|
|
717
|
+
const v = (u[0] - m[0]) * e.ratio, g = (u[1] - m[3]) * e.ratio, w = u[2] * e.ratio, [k, _, D, A] = [v, w + v, g, w + g], B = new Float32Array([k, D, _, D, k, A, k, A, _, D, _, A]);
|
|
718
718
|
a.bindBuffer(a.ARRAY_BUFFER, n), a.bufferData(a.ARRAY_BUFFER, B, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
|
|
719
719
|
}
|
|
720
720
|
} catch (d) {
|
|
@@ -811,9 +811,9 @@ R(N, "fragmentSchema", `
|
|
|
811
811
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
812
812
|
gl_FragColor = color;
|
|
813
813
|
}`);
|
|
814
|
-
class
|
|
814
|
+
class U {
|
|
815
815
|
}
|
|
816
|
-
R(
|
|
816
|
+
R(U, "vertexSchema", `
|
|
817
817
|
precision mediump float;
|
|
818
818
|
|
|
819
819
|
attribute float a_index; // 索引
|
|
@@ -837,7 +837,7 @@ R(V, "vertexSchema", `
|
|
|
837
837
|
gl_PointSize = 1.0;
|
|
838
838
|
// gl_PointSize = u_point;
|
|
839
839
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
840
|
-
}`), R(
|
|
840
|
+
}`), R(U, "fragmentSchema", `
|
|
841
841
|
precision mediump float;
|
|
842
842
|
|
|
843
843
|
uniform sampler2D u_factor;
|
|
@@ -859,7 +859,7 @@ R(V, "vertexSchema", `
|
|
|
859
859
|
|
|
860
860
|
float f = 1.0 - uv.b;
|
|
861
861
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
862
|
-
}`), R(
|
|
862
|
+
}`), R(U, "quadVertSchema", `
|
|
863
863
|
precision mediump float;
|
|
864
864
|
|
|
865
865
|
attribute vec2 a_pos;
|
|
@@ -869,7 +869,7 @@ R(V, "vertexSchema", `
|
|
|
869
869
|
void main() {
|
|
870
870
|
v_tex_pos = a_pos;
|
|
871
871
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
872
|
-
}`), R(
|
|
872
|
+
}`), R(U, "screenFragmentSchema", `
|
|
873
873
|
precision mediump float;
|
|
874
874
|
|
|
875
875
|
uniform sampler2D u_screen;
|
|
@@ -881,7 +881,7 @@ R(V, "vertexSchema", `
|
|
|
881
881
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
882
882
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
883
883
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
884
|
-
}`), R(
|
|
884
|
+
}`), R(U, "updateFragmentSchema", `
|
|
885
885
|
precision mediump float;
|
|
886
886
|
|
|
887
887
|
uniform sampler2D u_particles;
|
|
@@ -960,7 +960,7 @@ R(V, "vertexSchema", `
|
|
|
960
960
|
fract(pos * 255.0),
|
|
961
961
|
floor(pos * 255.0) / 255.0);
|
|
962
962
|
}`);
|
|
963
|
-
class
|
|
963
|
+
class Jt {
|
|
964
964
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
965
965
|
R(this, "token");
|
|
966
966
|
R(this, "mapboxCustomer");
|
|
@@ -2564,14 +2564,14 @@ class Qt {
|
|
|
2564
2564
|
};
|
|
2565
2565
|
}
|
|
2566
2566
|
}
|
|
2567
|
-
const
|
|
2567
|
+
const Xt = {
|
|
2568
2568
|
name: "IdmWindParticle",
|
|
2569
2569
|
props: {
|
|
2570
2570
|
factor: {
|
|
2571
2571
|
type: Object
|
|
2572
2572
|
},
|
|
2573
2573
|
viewport: {
|
|
2574
|
-
type:
|
|
2574
|
+
type: je
|
|
2575
2575
|
},
|
|
2576
2576
|
bottom: {
|
|
2577
2577
|
type: String,
|
|
@@ -2588,7 +2588,7 @@ const Kt = {
|
|
|
2588
2588
|
texture: void 0,
|
|
2589
2589
|
rampColor: void 0,
|
|
2590
2590
|
aPositionBuffer: void 0,
|
|
2591
|
-
webgl: new
|
|
2591
|
+
webgl: new Le(),
|
|
2592
2592
|
etime: void 0,
|
|
2593
2593
|
wrapper: void 0,
|
|
2594
2594
|
animation: void 0,
|
|
@@ -2692,11 +2692,11 @@ const Kt = {
|
|
|
2692
2692
|
];
|
|
2693
2693
|
this.wrapper = this.webgl.bindParticle(
|
|
2694
2694
|
this.particleContext,
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2695
|
+
U.vertexSchema,
|
|
2696
|
+
U.fragmentSchema,
|
|
2697
|
+
U.quadVertSchema,
|
|
2698
|
+
U.screenFragmentSchema,
|
|
2699
|
+
U.updateFragmentSchema
|
|
2700
2700
|
), 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);
|
|
2701
2701
|
}
|
|
2702
2702
|
},
|
|
@@ -2726,27 +2726,27 @@ const Kt = {
|
|
|
2726
2726
|
});
|
|
2727
2727
|
}
|
|
2728
2728
|
}
|
|
2729
|
-
},
|
|
2729
|
+
}, ce = (t) => (G("data-v-41a686d0"), t = t(), H(), t), qt = { key: 0 }, Yt = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "kts", -1)), Qt = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "0", -1)), Kt = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "5", -1)), ea = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "10", -1)), ta = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "20", -1)), aa = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "30", -1)), ia = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "40", -1)), ra = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "60", -1)), oa = [
|
|
2730
|
+
Yt,
|
|
2731
|
+
Qt,
|
|
2732
|
+
Kt,
|
|
2733
|
+
ea,
|
|
2730
2734
|
ta,
|
|
2731
2735
|
aa,
|
|
2732
2736
|
ia,
|
|
2733
|
-
ra
|
|
2734
|
-
oa,
|
|
2735
|
-
sa,
|
|
2736
|
-
na,
|
|
2737
|
-
la
|
|
2737
|
+
ra
|
|
2738
2738
|
];
|
|
2739
|
-
function
|
|
2739
|
+
function sa(t, e, a, r, i, o) {
|
|
2740
2740
|
var n;
|
|
2741
|
-
return (n = a.factor) != null && n.active ? (
|
|
2741
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", qt, [
|
|
2742
2742
|
l("div", {
|
|
2743
2743
|
class: "legend-bars flex-center",
|
|
2744
|
-
style:
|
|
2745
|
-
},
|
|
2744
|
+
style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
2745
|
+
}, oa, 4)
|
|
2746
2746
|
])) : $("", !0);
|
|
2747
2747
|
}
|
|
2748
|
-
const
|
|
2749
|
-
const
|
|
2748
|
+
const na = /* @__PURE__ */ T(Xt, [["render", sa], ["__scopeId", "data-v-41a686d0"]]);
|
|
2749
|
+
const la = {
|
|
2750
2750
|
name: "IdmCurrent",
|
|
2751
2751
|
props: {
|
|
2752
2752
|
map: {
|
|
@@ -2906,43 +2906,43 @@ const pa = {
|
|
|
2906
2906
|
this.map.getLayer(this.speedLayer) && this.map.removeLayer(this.speedLayer), this.map.getLayer(this.speedLabelLayer) && this.map.removeLayer(this.speedLabelLayer), this.map.getLayer(this.directionLayer) && this.map.removeLayer(this.directionLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
2907
2907
|
}
|
|
2908
2908
|
}
|
|
2909
|
-
},
|
|
2909
|
+
}, ca = { key: 0 }, ha = {
|
|
2910
2910
|
key: 0,
|
|
2911
2911
|
class: "iconfont active"
|
|
2912
|
-
},
|
|
2912
|
+
}, da = {
|
|
2913
2913
|
key: 1,
|
|
2914
2914
|
class: "iconfont"
|
|
2915
|
-
},
|
|
2915
|
+
}, pa = {
|
|
2916
2916
|
key: 0,
|
|
2917
2917
|
class: "iconfont active"
|
|
2918
|
-
},
|
|
2918
|
+
}, ma = {
|
|
2919
2919
|
key: 1,
|
|
2920
2920
|
class: "iconfont"
|
|
2921
2921
|
};
|
|
2922
|
-
function
|
|
2922
|
+
function ua(t, e, a, r, i, o) {
|
|
2923
2923
|
var n;
|
|
2924
|
-
return (n = a.current) != null && n.active ? (
|
|
2924
|
+
return (n = a.current) != null && n.active ? (L(), x("div", ca, [
|
|
2925
2925
|
l("div", {
|
|
2926
2926
|
class: "flex-center tool-bars",
|
|
2927
|
-
style:
|
|
2927
|
+
style: F([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
|
|
2928
2928
|
}, [
|
|
2929
|
-
a.mapProjection === "mercator" ? (
|
|
2929
|
+
a.mapProjection === "mercator" ? (L(), x("div", {
|
|
2930
2930
|
key: 0,
|
|
2931
2931
|
class: "flex-start",
|
|
2932
2932
|
onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
|
|
2933
2933
|
}, [
|
|
2934
|
-
a.showParticle ? (
|
|
2934
|
+
a.showParticle ? (L(), x("i", ha, "")) : (L(), x("i", da, "")),
|
|
2935
2935
|
l("span", {
|
|
2936
2936
|
class: M(a.showParticle ? "active" : "")
|
|
2937
2937
|
}, "Current Particles", 2)
|
|
2938
2938
|
])) : $("", !0),
|
|
2939
|
-
a.showParticle ? (
|
|
2939
|
+
a.showParticle ? (L(), x("div", {
|
|
2940
2940
|
key: 1,
|
|
2941
2941
|
class: "flex-start",
|
|
2942
2942
|
style: { "margin-left": "16px" },
|
|
2943
2943
|
onClick: e[1] || (e[1] = (s) => i.showJson = !i.showJson)
|
|
2944
2944
|
}, [
|
|
2945
|
-
i.showJson ? (
|
|
2945
|
+
i.showJson ? (L(), x("i", pa, "")) : (L(), x("i", ma, "")),
|
|
2946
2946
|
l("span", {
|
|
2947
2947
|
class: M(i.showJson ? "active" : "")
|
|
2948
2948
|
}, "Current", 2)
|
|
@@ -2950,15 +2950,15 @@ function ba(t, e, a, r, i, o) {
|
|
|
2950
2950
|
], 4)
|
|
2951
2951
|
])) : $("", !0);
|
|
2952
2952
|
}
|
|
2953
|
-
const
|
|
2954
|
-
const
|
|
2953
|
+
const ya = /* @__PURE__ */ T(la, [["render", ua], ["__scopeId", "data-v-ae630f43"]]);
|
|
2954
|
+
const fa = {
|
|
2955
2955
|
name: "IdmCurrentParticle",
|
|
2956
2956
|
props: {
|
|
2957
2957
|
factor: {
|
|
2958
2958
|
type: Object
|
|
2959
2959
|
},
|
|
2960
2960
|
viewport: {
|
|
2961
|
-
type:
|
|
2961
|
+
type: je
|
|
2962
2962
|
},
|
|
2963
2963
|
bottom: {
|
|
2964
2964
|
type: String,
|
|
@@ -2975,7 +2975,7 @@ const _a = {
|
|
|
2975
2975
|
texture: void 0,
|
|
2976
2976
|
rampColor: void 0,
|
|
2977
2977
|
aPositionBuffer: void 0,
|
|
2978
|
-
webgl: new
|
|
2978
|
+
webgl: new Le(),
|
|
2979
2979
|
etime: void 0,
|
|
2980
2980
|
wrapper: void 0,
|
|
2981
2981
|
animation: void 0,
|
|
@@ -3070,11 +3070,11 @@ const _a = {
|
|
|
3070
3070
|
];
|
|
3071
3071
|
this.wrapper = this.webgl.bindParticle(
|
|
3072
3072
|
this.particleContext,
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3073
|
+
U.vertexSchema,
|
|
3074
|
+
U.fragmentSchema,
|
|
3075
|
+
U.quadVertSchema,
|
|
3076
|
+
U.screenFragmentSchema,
|
|
3077
|
+
U.updateFragmentSchema
|
|
3078
3078
|
), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = {
|
|
3079
3079
|
...this.wrapper,
|
|
3080
3080
|
...this.webgl.setupParticle(this.particleContext, 12e3),
|
|
@@ -3108,25 +3108,25 @@ const _a = {
|
|
|
3108
3108
|
});
|
|
3109
3109
|
}
|
|
3110
3110
|
}
|
|
3111
|
-
},
|
|
3111
|
+
}, xe = (t) => (G("data-v-9115889b"), t = t(), H(), t), ga = { key: 0 }, ba = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "kts", -1)), va = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0", -1)), _a = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0.4", -1)), wa = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0.8", -1)), La = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "1.6", -1)), xa = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "2", -1)), Ca = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Sa = [
|
|
3112
|
+
ba,
|
|
3113
|
+
va,
|
|
3114
|
+
_a,
|
|
3115
|
+
wa,
|
|
3112
3116
|
La,
|
|
3113
3117
|
xa,
|
|
3114
|
-
Ca
|
|
3115
|
-
Sa,
|
|
3116
|
-
ka,
|
|
3117
|
-
za,
|
|
3118
|
-
Pa
|
|
3118
|
+
Ca
|
|
3119
3119
|
];
|
|
3120
|
-
function
|
|
3120
|
+
function ka(t, e, a, r, i, o) {
|
|
3121
3121
|
var n;
|
|
3122
|
-
return (n = a.factor) != null && n.active ? (
|
|
3122
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", ga, [
|
|
3123
3123
|
l("div", {
|
|
3124
3124
|
class: "legend-bars flex-center",
|
|
3125
|
-
style:
|
|
3126
|
-
},
|
|
3125
|
+
style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
3126
|
+
}, Sa, 4)
|
|
3127
3127
|
])) : $("", !0);
|
|
3128
3128
|
}
|
|
3129
|
-
const
|
|
3129
|
+
const za = /* @__PURE__ */ T(fa, [["render", ka], ["__scopeId", "data-v-9115889b"]]), Pa = {
|
|
3130
3130
|
name: "IdmSigWave",
|
|
3131
3131
|
props: {
|
|
3132
3132
|
map: {
|
|
@@ -3212,11 +3212,11 @@ const Ia = /* @__PURE__ */ T(_a, [["render", Ea], ["__scopeId", "data-v-9115889b
|
|
|
3212
3212
|
id: this.heightLabelLayer,
|
|
3213
3213
|
type: "symbol",
|
|
3214
3214
|
source: this.source,
|
|
3215
|
-
filter: ["==", "$type", "
|
|
3215
|
+
filter: ["==", "$type", "Point"],
|
|
3216
3216
|
layout: {
|
|
3217
|
-
|
|
3217
|
+
// 'symbol-placement': 'line',
|
|
3218
3218
|
"symbol-avoid-edges": !0,
|
|
3219
|
-
|
|
3219
|
+
// 'symbol-sort-key': ['get', 'val'],
|
|
3220
3220
|
// 'text-field': '{index} - {val} m',
|
|
3221
3221
|
"text-field": "{val} m",
|
|
3222
3222
|
"text-rotation-alignment": "viewport",
|
|
@@ -3235,10 +3235,10 @@ const Ia = /* @__PURE__ */ T(_a, [["render", Ea], ["__scopeId", "data-v-9115889b
|
|
|
3235
3235
|
}
|
|
3236
3236
|
}
|
|
3237
3237
|
};
|
|
3238
|
-
function
|
|
3239
|
-
return
|
|
3238
|
+
function Ta(t, e, a, r, i, o) {
|
|
3239
|
+
return L(), x("div");
|
|
3240
3240
|
}
|
|
3241
|
-
const
|
|
3241
|
+
const Ea = /* @__PURE__ */ T(Pa, [["render", Ta]]), Ia = {
|
|
3242
3242
|
name: "IdmSwell",
|
|
3243
3243
|
props: {
|
|
3244
3244
|
map: {
|
|
@@ -3376,10 +3376,10 @@ const Aa = /* @__PURE__ */ T(Ra, [["render", Da]]), Ma = {
|
|
|
3376
3376
|
}
|
|
3377
3377
|
}
|
|
3378
3378
|
};
|
|
3379
|
-
function
|
|
3380
|
-
return
|
|
3379
|
+
function Ra(t, e, a, r, i, o) {
|
|
3380
|
+
return L(), x("div");
|
|
3381
3381
|
}
|
|
3382
|
-
const
|
|
3382
|
+
const Da = /* @__PURE__ */ T(Ia, [["render", Ra]]), Aa = {
|
|
3383
3383
|
name: "IdmPrmsl",
|
|
3384
3384
|
props: {
|
|
3385
3385
|
map: {
|
|
@@ -3507,10 +3507,10 @@ const Ba = /* @__PURE__ */ T(Ma, [["render", $a]]), Na = {
|
|
|
3507
3507
|
}
|
|
3508
3508
|
}
|
|
3509
3509
|
};
|
|
3510
|
-
function
|
|
3511
|
-
return
|
|
3510
|
+
function Ma(t, e, a, r, i, o) {
|
|
3511
|
+
return L(), x("div");
|
|
3512
3512
|
}
|
|
3513
|
-
const
|
|
3513
|
+
const $a = /* @__PURE__ */ T(Aa, [["render", Ma]]), Ba = {
|
|
3514
3514
|
name: "IdmIceberg",
|
|
3515
3515
|
props: {
|
|
3516
3516
|
map: {
|
|
@@ -3567,11 +3567,11 @@ const Oa = /* @__PURE__ */ T(Na, [["render", Wa]]), ja = {
|
|
|
3567
3567
|
}
|
|
3568
3568
|
}
|
|
3569
3569
|
};
|
|
3570
|
-
function
|
|
3571
|
-
return
|
|
3570
|
+
function Na(t, e, a, r, i, o) {
|
|
3571
|
+
return L(), x("div");
|
|
3572
3572
|
}
|
|
3573
|
-
const
|
|
3574
|
-
const
|
|
3573
|
+
const Wa = /* @__PURE__ */ T(Ba, [["render", Na]]);
|
|
3574
|
+
const Oa = {
|
|
3575
3575
|
name: "IdmTropicals",
|
|
3576
3576
|
props: {
|
|
3577
3577
|
map: {
|
|
@@ -3615,7 +3615,7 @@ const Ua = {
|
|
|
3615
3615
|
computeTime() {
|
|
3616
3616
|
return function(t) {
|
|
3617
3617
|
if (t) {
|
|
3618
|
-
const e =
|
|
3618
|
+
const e = ae(t).utc();
|
|
3619
3619
|
return `${e.format("MMM-DD,HHmm[Z]")} (${e == null ? void 0 : e.fromNow()})`;
|
|
3620
3620
|
}
|
|
3621
3621
|
return "-";
|
|
@@ -3638,7 +3638,7 @@ const Ua = {
|
|
|
3638
3638
|
"tropicals.version": {
|
|
3639
3639
|
handler() {
|
|
3640
3640
|
var r, i;
|
|
3641
|
-
const t = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e =
|
|
3641
|
+
const t = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = ae().utc().hour(), a = [];
|
|
3642
3642
|
t.forEach((o) => {
|
|
3643
3643
|
var n, s, c;
|
|
3644
3644
|
(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);
|
|
@@ -3653,12 +3653,12 @@ const Ua = {
|
|
|
3653
3653
|
var p, f;
|
|
3654
3654
|
return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((f = d.properties) == null ? void 0 : f.type) === "forecast";
|
|
3655
3655
|
})[0]) == null || h.properties.model, c.forEach((d, p) => {
|
|
3656
|
-
var f, m,
|
|
3657
|
-
((f = d.geometry) == null ? void 0 : f.type) === "Point" && ((m = d.properties) == null ? void 0 : m.type) === "history" && (n = p, s = s === void 0 ? p : s), ((
|
|
3656
|
+
var f, m, b, y, u, v;
|
|
3657
|
+
((f = d.geometry) == null ? void 0 : f.type) === "Point" && ((m = d.properties) == null ? void 0 : m.type) === "history" && (n = p, s = s === void 0 ? p : s), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && s === void 0 && (s = p), ((u = d.geometry) == null ? void 0 : u.type) === "LineString" && ((v = d.properties) == null || v.type);
|
|
3658
3658
|
}), c.map((d, p) => {
|
|
3659
|
-
var f, m,
|
|
3660
|
-
if (((f = d.geometry) == null ? void 0 : f.type) === "LineString" && ((m = d.properties) == null || m.type), ((
|
|
3661
|
-
const k = ((
|
|
3659
|
+
var f, m, b, y, u, v, g, w;
|
|
3660
|
+
if (((f = d.geometry) == null ? void 0 : f.type) === "LineString" && ((m = d.properties) == null || m.type), ((b = d.geometry) == null ? void 0 : b.type) === "Point" && ((y = d.properties) == null ? void 0 : y.type) === "forecast" && (d.properties.name = o), ((u = d.geometry) == null ? void 0 : u.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
|
|
3661
|
+
const k = ((w = (g = d.properties) == null ? void 0 : g.format) == null ? void 0 : w.slice(7, 12)) === ae().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
|
|
3662
3662
|
d.properties.showHistoryLabel = k || p === n, d.properties.showNameLabel = p === n, d.properties.name = o;
|
|
3663
3663
|
}
|
|
3664
3664
|
return d;
|
|
@@ -3925,7 +3925,7 @@ const Ua = {
|
|
|
3925
3925
|
}), m = (/* @__PURE__ */ new Date()).valueOf() - (p + f), console.log("[tropical] add elapsed: ", m, ", total: ", f += m));
|
|
3926
3926
|
}
|
|
3927
3927
|
this.handleDrawCircle();
|
|
3928
|
-
const d =
|
|
3928
|
+
const d = Ye.interpolate(this.tropicals, 1);
|
|
3929
3929
|
this.interpolateData = JSON.parse(JSON.stringify(d)), this.handleDateChange();
|
|
3930
3930
|
}
|
|
3931
3931
|
},
|
|
@@ -3934,14 +3934,14 @@ const Ua = {
|
|
|
3934
3934
|
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));
|
|
3935
3935
|
},
|
|
3936
3936
|
handleDateChange() {
|
|
3937
|
-
var t, e, a, r, i, o, n, s, c, h, d, p, f, m,
|
|
3938
|
-
if ((t = this.interpolateMarkers) == null || t.forEach((
|
|
3939
|
-
const
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
}), (a = this.map) != null && a.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(
|
|
3937
|
+
var t, e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, D, A, B, W, O, Z, pe, me, ue, ye, fe, ge, be, ie;
|
|
3938
|
+
if ((t = this.interpolateMarkers) == null || t.forEach((J) => J == null ? void 0 : J.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
3939
|
+
const J = ae(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), Y = this.interpolateData.filter((E) => E.properties.date === J.format() && !E.properties.disabled), ve = this.handleComputePolygons(Y), Q = C.featureCollection([...Y]);
|
|
3940
|
+
ve.forEach((E) => {
|
|
3941
|
+
Q.features.push(E);
|
|
3942
|
+
}), (a = this.map) != null && a.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(Q) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
3943
3943
|
type: "geojson",
|
|
3944
|
-
data:
|
|
3944
|
+
data: Q
|
|
3945
3945
|
}), (o = this.map) == null || o.addLayer({
|
|
3946
3946
|
id: this.interpolateLineLayer,
|
|
3947
3947
|
type: "line",
|
|
@@ -3953,17 +3953,17 @@ const Ua = {
|
|
|
3953
3953
|
"line-width": 1
|
|
3954
3954
|
}
|
|
3955
3955
|
})), this.interpolateMarkers = [];
|
|
3956
|
-
for (const E of
|
|
3956
|
+
for (const E of Y)
|
|
3957
3957
|
if (!E.properties.disabled) {
|
|
3958
|
-
let
|
|
3959
|
-
((s = (n = E.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = E.properties) == null ? void 0 : c.wind) != null && h.spd) ?
|
|
3960
|
-
const
|
|
3958
|
+
let V = "#f44336";
|
|
3959
|
+
((s = (n = E.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = E.properties) == null ? void 0 : c.wind) != null && h.spd) ? V = "#03f869" : ((p = (d = E.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((m = (f = E.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? V = "#f2f202" : ((y = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : y.spd) >= 24.5 && ((v = (u = E.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) < 32.7 ? V = "#ff9100" : ((w = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : w.spd) >= 32.7 && ((_ = (k = E.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) < 41.5 ? V = "#f44336" : ((A = (D = E.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((W = (B = E.properties) == null ? void 0 : B.wind) == null ? void 0 : W.spd) < 51 ? V = "#f903d0" : ((Z = (O = E.properties) == null ? void 0 : O.wind) == null ? void 0 : Z.spd) >= 51 ? V = "#8702f9" : V = "#f44336";
|
|
3960
|
+
const _e = `<svg t="1719918955501"
|
|
3961
3961
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
3962
3962
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
3963
3963
|
<path
|
|
3964
3964
|
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"
|
|
3965
|
-
fill="${
|
|
3966
|
-
<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="${
|
|
3965
|
+
fill="${V}" p-id="18383"></path>
|
|
3966
|
+
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${V}"
|
|
3967
3967
|
p-id="18384"></path>
|
|
3968
3968
|
<path
|
|
3969
3969
|
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"
|
|
@@ -3971,40 +3971,40 @@ const Ua = {
|
|
|
3971
3971
|
<path
|
|
3972
3972
|
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"
|
|
3973
3973
|
fill="#ffffff" p-id="18386"></path>
|
|
3974
|
-
</svg>`,
|
|
3975
|
-
|
|
3976
|
-
const
|
|
3977
|
-
if (this.interpolateMarkers.push(
|
|
3978
|
-
const
|
|
3979
|
-
(
|
|
3980
|
-
C.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3981
|
-
), (me = this.circleSourceData) == null || me.features.push(
|
|
3974
|
+
</svg>`, K = document.createElement("div");
|
|
3975
|
+
K.className = "hurricane-hourly-marker", K.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${_e}</div>`;
|
|
3976
|
+
const we = new le.Marker(K).setLngLat(E.geometry.coordinates).addTo(this.map);
|
|
3977
|
+
if (this.interpolateMarkers.push(we), (pe = E.properties) != null && pe.showCircle) {
|
|
3978
|
+
const re = { radius: 100, coordinates: E.geometry.coordinates }, oe = { radius: 200, coordinates: E.geometry.coordinates }, se = { radius: 500, coordinates: E.geometry.coordinates };
|
|
3979
|
+
(me = this.circleSourceData) == null || me.features.push(
|
|
3982
3980
|
C.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3983
3981
|
), (ue = this.circleSourceData) == null || ue.features.push(
|
|
3984
3982
|
C.circle(oe.coordinates, oe.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3983
|
+
), (ye = this.circleSourceData) == null || ye.features.push(
|
|
3984
|
+
C.circle(se.coordinates, se.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3985
3985
|
);
|
|
3986
3986
|
}
|
|
3987
|
-
(
|
|
3987
|
+
(ge = (fe = this.map) == null ? void 0 : fe.getSource(this.circleSource)) == null || ge.setData(this.circleSourceData);
|
|
3988
3988
|
}
|
|
3989
3989
|
} else
|
|
3990
|
-
(
|
|
3990
|
+
(be = this.map) != null && be.getSource(this.interpolateSource) && ((ie = this.map) == null || ie.getSource(this.interpolateSource).setData(this.empty));
|
|
3991
3991
|
},
|
|
3992
3992
|
handleClick(t) {
|
|
3993
3993
|
var o, n, s, c, h, d, p, f;
|
|
3994
3994
|
const e = t.features[0], a = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
|
|
3995
3995
|
(m) => {
|
|
3996
|
-
var
|
|
3997
|
-
return m.geometry.type === "LineString" && m.properties.type === "forecast" && m.properties.name === ((
|
|
3996
|
+
var b;
|
|
3997
|
+
return m.geometry.type === "LineString" && m.properties.type === "forecast" && m.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
|
|
3998
3998
|
}
|
|
3999
3999
|
);
|
|
4000
|
-
a.sort((m,
|
|
4001
|
-
var y, u, v,
|
|
4002
|
-
return ((y = m.properties) == null ? void 0 : y.model) === "cma" ? -1 : ((u = m.properties) == null ? void 0 : u.model) === "jma" ? ((v =
|
|
4000
|
+
a.sort((m, b) => {
|
|
4001
|
+
var y, u, v, g;
|
|
4002
|
+
return ((y = m.properties) == null ? void 0 : y.model) === "cma" ? -1 : ((u = m.properties) == null ? void 0 : u.model) === "jma" ? ((v = b.properties) == null ? void 0 : v.model) === "cma" ? 1 : -1 : m.properties.model === "ecmwf" ? ["jma", "cma"].includes((g = b.properties) == null ? void 0 : g.model) ? 1 : -1 : 0;
|
|
4003
4003
|
});
|
|
4004
4004
|
const r = (c = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : c.features.filter(
|
|
4005
4005
|
(m) => {
|
|
4006
|
-
var
|
|
4007
|
-
return m.geometry.type === "LineString" && m.properties.type === "history" && m.properties.name === ((
|
|
4006
|
+
var b;
|
|
4007
|
+
return m.geometry.type === "LineString" && m.properties.type === "history" && m.properties.name === ((b = e == null ? void 0 : e.properties) == null ? void 0 : b.name);
|
|
4008
4008
|
}
|
|
4009
4009
|
);
|
|
4010
4010
|
this.activeTropicals = {
|
|
@@ -4014,7 +4014,7 @@ const Ua = {
|
|
|
4014
4014
|
showCircle: (f = (p = a[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
|
|
4015
4015
|
}, this.showTropicals = !0;
|
|
4016
4016
|
const i = document.getElementById("active-tropical");
|
|
4017
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new
|
|
4017
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new le.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
4018
4018
|
},
|
|
4019
4019
|
handleForecastToggle(t) {
|
|
4020
4020
|
var r, i, o, n, s, c;
|
|
@@ -4099,74 +4099,74 @@ const Ua = {
|
|
|
4099
4099
|
return C.lineToPolygon(i, { properties: a });
|
|
4100
4100
|
}
|
|
4101
4101
|
}
|
|
4102
|
-
},
|
|
4102
|
+
}, Fe = (t) => (G("data-v-b5b42393"), t = t(), H(), t), ja = {
|
|
4103
4103
|
id: "active-tropical",
|
|
4104
4104
|
class: "active-tropical"
|
|
4105
|
-
},
|
|
4105
|
+
}, Fa = { class: "header-box" }, Va = { class: "main" }, Ua = { key: 0 }, Ga = { class: "sub" }, Ha = {
|
|
4106
4106
|
id: "meteoBox",
|
|
4107
4107
|
class: "main-box"
|
|
4108
|
-
},
|
|
4108
|
+
}, Za = { class: "content" }, Ja = { class: "row" }, Xa = {
|
|
4109
4109
|
class: "col col-left",
|
|
4110
4110
|
style: { "justify-content": "flex-start" }
|
|
4111
|
-
},
|
|
4111
|
+
}, qa = /* @__PURE__ */ Fe(() => /* @__PURE__ */ l("label", null, "Wind speed : ", -1)), Ya = {
|
|
4112
4112
|
class: "col col-right",
|
|
4113
4113
|
style: { "justify-content": "flex-start" }
|
|
4114
|
-
},
|
|
4114
|
+
}, Qa = /* @__PURE__ */ Fe(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), Ka = { class: "row" }, ei = {
|
|
4115
4115
|
class: "col col-24",
|
|
4116
4116
|
style: { "justify-content": "flex-start" }
|
|
4117
|
-
},
|
|
4118
|
-
function
|
|
4119
|
-
var n, s, c, h, d, p, f, m,
|
|
4120
|
-
return $e((
|
|
4121
|
-
l("div",
|
|
4117
|
+
}, ti = /* @__PURE__ */ Fe(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), ai = { class: "forecast-models" }, ii = ["onClick"], ri = /* @__PURE__ */ rt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-b5b42393></div><div class="row" style="padding:2px 10px;" data-v-b5b42393><div class="legend" data-v-b5b42393><div class="icon td" data-v-b5b42393></div><div class="label" data-v-b5b42393>TD</div></div><div class="legend" data-v-b5b42393><div class="icon ts" data-v-b5b42393></div><div class="label" data-v-b5b42393>TS</div></div><div class="legend" data-v-b5b42393><div class="icon sts" data-v-b5b42393></div><div class="label" data-v-b5b42393>STS</div></div><div class="legend" data-v-b5b42393><div class="icon ty" data-v-b5b42393></div><div class="label" data-v-b5b42393>TY</div></div><div class="legend" data-v-b5b42393><div class="icon sty" data-v-b5b42393></div><div class="label" data-v-b5b42393>STY</div></div><div class="legend" data-v-b5b42393><div class="icon supper-ty" data-v-b5b42393></div><div class="label" data-v-b5b42393>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-b5b42393><div class="legend" data-v-b5b42393><div class="icon history" data-v-b5b42393></div><div class="label" data-v-b5b42393>History</div></div><div class="legend" data-v-b5b42393><div class="icon r7" data-v-b5b42393></div><div class="label" data-v-b5b42393>35kts Radii</div></div><div class="legend" data-v-b5b42393><div class="icon r10" data-v-b5b42393></div><div class="label" data-v-b5b42393>50kts Radii</div></div></div>', 3), oi = { class: "more" };
|
|
4118
|
+
function si(t, e, a, r, i, o) {
|
|
4119
|
+
var n, s, c, h, d, p, f, m, b, y, u, v, g, w, k;
|
|
4120
|
+
return $e((L(), x("div", ja, [
|
|
4121
|
+
l("div", Fa, [
|
|
4122
4122
|
l("div", {
|
|
4123
4123
|
class: "iconfont close-btn",
|
|
4124
4124
|
onClick: e[0] || (e[0] = (_) => i.showTropicals = !1)
|
|
4125
4125
|
}, ""),
|
|
4126
|
-
l("div",
|
|
4127
|
-
(s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (
|
|
4128
|
-
|
|
4126
|
+
l("div", Va, [
|
|
4127
|
+
(s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (L(), x("span", Ua, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : $("", !0),
|
|
4128
|
+
qe(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
|
|
4129
4129
|
]),
|
|
4130
|
-
l("div",
|
|
4130
|
+
l("div", Ga, " Last update: " + S(o.computeTime(((f = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : f.updated) || ((y = (b = (m = i.activeTropicals) == null ? void 0 : m.forecasts) == null ? void 0 : b.filter((_) => !_.disabled)[0]) == null ? void 0 : y.date))), 1)
|
|
4131
4131
|
]),
|
|
4132
|
-
l("div",
|
|
4133
|
-
l("div",
|
|
4134
|
-
l("div",
|
|
4135
|
-
l("div",
|
|
4136
|
-
|
|
4132
|
+
l("div", Ha, [
|
|
4133
|
+
l("div", Za, [
|
|
4134
|
+
l("div", Ja, [
|
|
4135
|
+
l("div", Xa, [
|
|
4136
|
+
qa,
|
|
4137
4137
|
l("span", null, S(((v = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
|
|
4138
4138
|
]),
|
|
4139
|
-
l("div",
|
|
4140
|
-
|
|
4141
|
-
l("span", null, S(((
|
|
4139
|
+
l("div", Ya, [
|
|
4140
|
+
Qa,
|
|
4141
|
+
l("span", null, S(((w = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : w.pressure) || "-") + "[hPa]", 1)
|
|
4142
4142
|
])
|
|
4143
4143
|
]),
|
|
4144
|
-
l("div",
|
|
4145
|
-
l("div",
|
|
4146
|
-
|
|
4147
|
-
l("div",
|
|
4148
|
-
(
|
|
4144
|
+
l("div", Ka, [
|
|
4145
|
+
l("div", ei, [
|
|
4146
|
+
ti,
|
|
4147
|
+
l("div", ai, [
|
|
4148
|
+
(L(!0), x(De, null, Ae((k = i.activeTropicals) == null ? void 0 : k.forecasts, (_, D) => {
|
|
4149
4149
|
var A, B, W, O;
|
|
4150
|
-
return
|
|
4150
|
+
return L(), x("div", {
|
|
4151
4151
|
key: D,
|
|
4152
4152
|
class: M([
|
|
4153
4153
|
"model",
|
|
4154
4154
|
_.disabled ? "" : "active",
|
|
4155
4155
|
D > 0 && D < ((B = (A = i.activeTropicals) == null ? void 0 : A.forecasts) == null ? void 0 : B.length) - 1 && ((O = (W = i.activeTropicals) == null ? void 0 : W.forecasts) == null ? void 0 : O.length) > 2 ? "center-child" : ""
|
|
4156
4156
|
]),
|
|
4157
|
-
onClick: (
|
|
4157
|
+
onClick: (Z) => o.handleForecastToggle(_)
|
|
4158
4158
|
}, [
|
|
4159
4159
|
l("span", {
|
|
4160
4160
|
class: M(_.model)
|
|
4161
4161
|
}, S(_.model), 3)
|
|
4162
|
-
], 10,
|
|
4162
|
+
], 10, ii);
|
|
4163
4163
|
}), 128))
|
|
4164
4164
|
])
|
|
4165
4165
|
])
|
|
4166
4166
|
]),
|
|
4167
|
-
|
|
4167
|
+
ri
|
|
4168
4168
|
]),
|
|
4169
|
-
l("div",
|
|
4169
|
+
l("div", oi, [
|
|
4170
4170
|
l("div", {
|
|
4171
4171
|
class: "button",
|
|
4172
4172
|
onClick: e[1] || (e[1] = (_) => o.handleStrikeProbability(i.activeTropicals))
|
|
@@ -4177,8 +4177,8 @@ function hi(t, e, a, r, i, o) {
|
|
|
4177
4177
|
[Be, i.showTropicals && !t.$attrs.hideTropicalsLegend]
|
|
4178
4178
|
]);
|
|
4179
4179
|
}
|
|
4180
|
-
const
|
|
4181
|
-
const
|
|
4180
|
+
const Qe = /* @__PURE__ */ T(Oa, [["render", si], ["__scopeId", "data-v-b5b42393"]]);
|
|
4181
|
+
const ni = {
|
|
4182
4182
|
name: "IdmPrecip3h",
|
|
4183
4183
|
props: {
|
|
4184
4184
|
factor: {
|
|
@@ -4206,7 +4206,7 @@ const di = {
|
|
|
4206
4206
|
texture: void 0,
|
|
4207
4207
|
rampColor: void 0,
|
|
4208
4208
|
aPositionBuffer: void 0,
|
|
4209
|
-
webgl: new
|
|
4209
|
+
webgl: new Le(),
|
|
4210
4210
|
etime: void 0,
|
|
4211
4211
|
right: 10
|
|
4212
4212
|
};
|
|
@@ -4279,27 +4279,27 @@ const di = {
|
|
|
4279
4279
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4280
4280
|
}
|
|
4281
4281
|
}
|
|
4282
|
-
},
|
|
4282
|
+
}, he = (t) => (G("data-v-dec867b8"), t = t(), H(), t), li = { key: 0 }, ci = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "mm", -1)), hi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "1.5", -1)), di = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "2", -1)), pi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "3", -1)), mi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "7", -1)), ui = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "10", -1)), yi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "20", -1)), fi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "30", -1)), gi = [
|
|
4283
|
+
ci,
|
|
4284
|
+
hi,
|
|
4285
|
+
di,
|
|
4286
|
+
pi,
|
|
4283
4287
|
mi,
|
|
4284
4288
|
ui,
|
|
4285
4289
|
yi,
|
|
4286
|
-
fi
|
|
4287
|
-
gi,
|
|
4288
|
-
bi,
|
|
4289
|
-
vi,
|
|
4290
|
-
_i
|
|
4290
|
+
fi
|
|
4291
4291
|
];
|
|
4292
|
-
function
|
|
4292
|
+
function bi(t, e, a, r, i, o) {
|
|
4293
4293
|
var n;
|
|
4294
|
-
return (n = a.factor) != null && n.active ? (
|
|
4294
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", li, [
|
|
4295
4295
|
l("div", {
|
|
4296
4296
|
class: "legend-bars flex-center",
|
|
4297
|
-
style:
|
|
4298
|
-
},
|
|
4297
|
+
style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4298
|
+
}, gi, 4)
|
|
4299
4299
|
])) : $("", !0);
|
|
4300
4300
|
}
|
|
4301
|
-
const
|
|
4302
|
-
const
|
|
4301
|
+
const vi = /* @__PURE__ */ T(ni, [["render", bi], ["__scopeId", "data-v-dec867b8"]]);
|
|
4302
|
+
const _i = {
|
|
4303
4303
|
name: "IdmVisibility",
|
|
4304
4304
|
props: {
|
|
4305
4305
|
factor: {
|
|
@@ -4327,7 +4327,7 @@ const Ci = {
|
|
|
4327
4327
|
texture: void 0,
|
|
4328
4328
|
rampColor: void 0,
|
|
4329
4329
|
aPositionBuffer: void 0,
|
|
4330
|
-
webgl: new
|
|
4330
|
+
webgl: new Le(),
|
|
4331
4331
|
etime: void 0
|
|
4332
4332
|
};
|
|
4333
4333
|
},
|
|
@@ -4393,25 +4393,25 @@ const Ci = {
|
|
|
4393
4393
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4394
4394
|
}
|
|
4395
4395
|
}
|
|
4396
|
-
}, Ce = (t) => (
|
|
4396
|
+
}, Ce = (t) => (G("data-v-952dee5c"), t = t(), H(), t), wi = { key: 0 }, Li = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "nm", -1)), xi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0", -1)), Ci = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Si = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), ki = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "3", -1)), zi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "9", -1)), Pi = [
|
|
4397
|
+
Li,
|
|
4398
|
+
xi,
|
|
4399
|
+
Ci,
|
|
4400
|
+
Si,
|
|
4397
4401
|
ki,
|
|
4398
|
-
zi
|
|
4399
|
-
Pi,
|
|
4400
|
-
Ti,
|
|
4401
|
-
Ei,
|
|
4402
|
-
Ii
|
|
4402
|
+
zi
|
|
4403
4403
|
];
|
|
4404
|
-
function
|
|
4404
|
+
function Ti(t, e, a, r, i, o) {
|
|
4405
4405
|
var n;
|
|
4406
|
-
return (n = a.factor) != null && n.active ? (
|
|
4406
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", wi, [
|
|
4407
4407
|
l("div", {
|
|
4408
4408
|
class: "legend-bars flex-center",
|
|
4409
|
-
style:
|
|
4410
|
-
},
|
|
4409
|
+
style: F([{ position: "absolute" }, { right: t.right + "px", bottom: a.bottom }])
|
|
4410
|
+
}, Pi, 4)
|
|
4411
4411
|
])) : $("", !0);
|
|
4412
4412
|
}
|
|
4413
|
-
const
|
|
4414
|
-
const
|
|
4413
|
+
const Ei = /* @__PURE__ */ T(_i, [["render", Ti], ["__scopeId", "data-v-952dee5c"]]);
|
|
4414
|
+
const Ii = {
|
|
4415
4415
|
name: "IdmWaterTemp",
|
|
4416
4416
|
props: {
|
|
4417
4417
|
factor: {
|
|
@@ -4439,7 +4439,7 @@ const Mi = {
|
|
|
4439
4439
|
texture: void 0,
|
|
4440
4440
|
rampColor: void 0,
|
|
4441
4441
|
aPositionBuffer: void 0,
|
|
4442
|
-
webgl: new
|
|
4442
|
+
webgl: new Le(),
|
|
4443
4443
|
etime: void 0,
|
|
4444
4444
|
right: 10
|
|
4445
4445
|
};
|
|
@@ -4513,25 +4513,25 @@ const Mi = {
|
|
|
4513
4513
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4514
4514
|
}
|
|
4515
4515
|
}
|
|
4516
|
-
}, Se = (t) => (
|
|
4516
|
+
}, Se = (t) => (G("data-v-67e5094b"), t = t(), H(), t), Ri = { key: 0 }, Di = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ai = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "0", -1)), Mi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "10", -1)), $i = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "20", -1)), Bi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "30", -1)), Ni = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "40", -1)), Wi = [
|
|
4517
|
+
Di,
|
|
4518
|
+
Ai,
|
|
4519
|
+
Mi,
|
|
4520
|
+
$i,
|
|
4517
4521
|
Bi,
|
|
4518
|
-
Ni
|
|
4519
|
-
Wi,
|
|
4520
|
-
Oi,
|
|
4521
|
-
ji,
|
|
4522
|
-
Fi
|
|
4522
|
+
Ni
|
|
4523
4523
|
];
|
|
4524
|
-
function
|
|
4524
|
+
function Oi(t, e, a, r, i, o) {
|
|
4525
4525
|
var n;
|
|
4526
|
-
return (n = a.factor) != null && n.active ? (
|
|
4526
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", Ri, [
|
|
4527
4527
|
l("div", {
|
|
4528
4528
|
class: "legend-bars flex-center",
|
|
4529
|
-
style:
|
|
4530
|
-
},
|
|
4529
|
+
style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4530
|
+
}, Wi, 4)
|
|
4531
4531
|
])) : $("", !0);
|
|
4532
4532
|
}
|
|
4533
|
-
const
|
|
4534
|
-
const
|
|
4533
|
+
const ji = /* @__PURE__ */ T(Ii, [["render", Oi], ["__scopeId", "data-v-67e5094b"]]);
|
|
4534
|
+
const Fi = {
|
|
4535
4535
|
name: "IdmTemp",
|
|
4536
4536
|
props: {
|
|
4537
4537
|
factor: {
|
|
@@ -4559,7 +4559,7 @@ const Hi = {
|
|
|
4559
4559
|
texture: void 0,
|
|
4560
4560
|
rampColor: void 0,
|
|
4561
4561
|
aPositionBuffer: void 0,
|
|
4562
|
-
webgl: new
|
|
4562
|
+
webgl: new Le(),
|
|
4563
4563
|
etime: void 0,
|
|
4564
4564
|
right: 10
|
|
4565
4565
|
};
|
|
@@ -4636,27 +4636,27 @@ const Hi = {
|
|
|
4636
4636
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4637
4637
|
}
|
|
4638
4638
|
}
|
|
4639
|
-
},
|
|
4639
|
+
}, de = (t) => (G("data-v-389ea886"), t = t(), H(), t), Vi = { key: 0 }, Ui = /* @__PURE__ */ de(() => /* @__PURE__ */ l("span", null, "°C", -1)), Gi = /* @__PURE__ */ de(() => /* @__PURE__ */ l("span", null, "-20", -1)), Hi = /* @__PURE__ */ de(() => /* @__PURE__ */ l("span", null, "-10", -1)), Zi = /* @__PURE__ */ de(() => /* @__PURE__ */ l("span", null, "0", -1)), Ji = /* @__PURE__ */ de(() => /* @__PURE__ */ l("span", null, "10", -1)), Xi = /* @__PURE__ */ de(() => /* @__PURE__ */ l("span", null, "20", -1)), qi = /* @__PURE__ */ de(() => /* @__PURE__ */ l("span", null, "30", -1)), Yi = /* @__PURE__ */ de(() => /* @__PURE__ */ l("span", null, "40", -1)), Qi = [
|
|
4640
|
+
Ui,
|
|
4641
|
+
Gi,
|
|
4642
|
+
Hi,
|
|
4643
|
+
Zi,
|
|
4640
4644
|
Ji,
|
|
4641
4645
|
Xi,
|
|
4642
4646
|
qi,
|
|
4643
|
-
Yi
|
|
4644
|
-
Qi,
|
|
4645
|
-
Ki,
|
|
4646
|
-
er,
|
|
4647
|
-
tr
|
|
4647
|
+
Yi
|
|
4648
4648
|
];
|
|
4649
|
-
function
|
|
4649
|
+
function Ki(t, e, a, r, i, o) {
|
|
4650
4650
|
var n;
|
|
4651
|
-
return (n = a.factor) != null && n.active ? (
|
|
4651
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", Vi, [
|
|
4652
4652
|
l("div", {
|
|
4653
4653
|
class: "legend-bars flex-center",
|
|
4654
|
-
style:
|
|
4655
|
-
},
|
|
4654
|
+
style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4655
|
+
}, Qi, 4)
|
|
4656
4656
|
])) : $("", !0);
|
|
4657
4657
|
}
|
|
4658
|
-
const
|
|
4659
|
-
const
|
|
4658
|
+
const er = /* @__PURE__ */ T(Fi, [["render", Ki], ["__scopeId", "data-v-389ea886"]]);
|
|
4659
|
+
const tr = {
|
|
4660
4660
|
name: "IdmArctic",
|
|
4661
4661
|
props: {
|
|
4662
4662
|
factor: {
|
|
@@ -4684,7 +4684,7 @@ const or = {
|
|
|
4684
4684
|
texture: void 0,
|
|
4685
4685
|
rampColor: void 0,
|
|
4686
4686
|
aPositionBuffer: void 0,
|
|
4687
|
-
webgl: new
|
|
4687
|
+
webgl: new Le(),
|
|
4688
4688
|
etime: void 0,
|
|
4689
4689
|
right: 10
|
|
4690
4690
|
};
|
|
@@ -4752,25 +4752,25 @@ const or = {
|
|
|
4752
4752
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4753
4753
|
}
|
|
4754
4754
|
}
|
|
4755
|
-
}, ke = (t) => (
|
|
4755
|
+
}, ke = (t) => (G("data-v-db805141"), t = t(), H(), t), ar = { key: 0 }, ir = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "m", -1)), rr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "0", -1)), or = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "0.5", -1)), sr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "1", -1)), nr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "1.5", -1)), lr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "2", -1)), cr = [
|
|
4756
|
+
ir,
|
|
4757
|
+
rr,
|
|
4758
|
+
or,
|
|
4759
|
+
sr,
|
|
4756
4760
|
nr,
|
|
4757
|
-
lr
|
|
4758
|
-
cr,
|
|
4759
|
-
hr,
|
|
4760
|
-
dr,
|
|
4761
|
-
pr
|
|
4761
|
+
lr
|
|
4762
4762
|
];
|
|
4763
|
-
function
|
|
4763
|
+
function hr(t, e, a, r, i, o) {
|
|
4764
4764
|
var n;
|
|
4765
|
-
return (n = a.factor) != null && n.active ? (
|
|
4765
|
+
return (n = a.factor) != null && n.active ? (L(), x("div", ar, [
|
|
4766
4766
|
l("div", {
|
|
4767
4767
|
class: "legend-bars flex-center",
|
|
4768
|
-
style:
|
|
4769
|
-
},
|
|
4768
|
+
style: F([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4769
|
+
}, cr, 4)
|
|
4770
4770
|
])) : $("", !0);
|
|
4771
4771
|
}
|
|
4772
|
-
const
|
|
4773
|
-
const
|
|
4772
|
+
const dr = /* @__PURE__ */ T(tr, [["render", hr], ["__scopeId", "data-v-db805141"]]);
|
|
4773
|
+
const pr = {
|
|
4774
4774
|
name: "IdmPoint",
|
|
4775
4775
|
emits: ["point", "more"],
|
|
4776
4776
|
props: {
|
|
@@ -4812,22 +4812,22 @@ const fr = {
|
|
|
4812
4812
|
computed: {
|
|
4813
4813
|
computeTime() {
|
|
4814
4814
|
return function(t) {
|
|
4815
|
-
return t ? `${
|
|
4815
|
+
return t ? `${ae(t).utc().format("MMM-DD,HHmm[Z]")}` : "-";
|
|
4816
4816
|
};
|
|
4817
4817
|
},
|
|
4818
4818
|
computeLat() {
|
|
4819
4819
|
return function(t, e = 4) {
|
|
4820
|
-
return
|
|
4820
|
+
return j.lat2pretty(t, e).pretty;
|
|
4821
4821
|
};
|
|
4822
4822
|
},
|
|
4823
4823
|
computeLng() {
|
|
4824
4824
|
return function(t, e = 4) {
|
|
4825
|
-
return
|
|
4825
|
+
return j.lng2pretty(t, e).pretty;
|
|
4826
4826
|
};
|
|
4827
4827
|
},
|
|
4828
4828
|
roundPrecision() {
|
|
4829
4829
|
return function(t, e = 4) {
|
|
4830
|
-
return isNaN(t) ? "-" :
|
|
4830
|
+
return isNaN(t) ? "-" : j.roundPrecision(t, e);
|
|
4831
4831
|
};
|
|
4832
4832
|
}
|
|
4833
4833
|
},
|
|
@@ -4845,77 +4845,77 @@ const fr = {
|
|
|
4845
4845
|
var t;
|
|
4846
4846
|
if (this.meteo) {
|
|
4847
4847
|
const e = document.getElementById("point-meteo");
|
|
4848
|
-
this.meteoMarker ? (t = this.meteoMarker) == null || t.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new
|
|
4848
|
+
this.meteoMarker ? (t = this.meteoMarker) == null || t.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new le.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
|
|
4849
4849
|
}
|
|
4850
4850
|
}
|
|
4851
4851
|
}
|
|
4852
|
-
},
|
|
4852
|
+
}, q = (t) => (G("data-v-ef7fa87d"), t = t(), H(), t), mr = {
|
|
4853
4853
|
id: "point-meteo",
|
|
4854
4854
|
class: "point-meteo"
|
|
4855
|
-
},
|
|
4855
|
+
}, ur = { class: "meteo-box" }, yr = { class: "header-box" }, fr = { class: "main" }, gr = { class: "sub" }, br = { class: "main-box" }, vr = { class: "flex-space" }, _r = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Wind", -1)), wr = { class: "flex-space" }, Lr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), xr = { class: "flex-space" }, Cr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Sr = { class: "flex-space" }, kr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), zr = { class: "flex-space" }, Pr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Current", -1)), Tr = { class: "flex-space" }, Er = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Ir = { class: "flex-space" }, Rr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Dr = { class: "flex-space" }, Ar = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Mr = { class: "flex-space" }, $r = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), Br = {
|
|
4856
4856
|
key: 0,
|
|
4857
4857
|
class: "flex-space",
|
|
4858
4858
|
style: { "justify-content": "flex-end" }
|
|
4859
|
-
},
|
|
4860
|
-
|
|
4859
|
+
}, Nr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("span", { class: "more" }, "More >>", -1)), Wr = [
|
|
4860
|
+
Nr
|
|
4861
4861
|
];
|
|
4862
|
-
function
|
|
4863
|
-
var n, s, c, h, d, p, f, m,
|
|
4864
|
-
return $e((
|
|
4865
|
-
l("div",
|
|
4866
|
-
l("div",
|
|
4862
|
+
function Or(t, e, a, r, i, o) {
|
|
4863
|
+
var n, s, c, h, d, p, f, m, b, y, u, v, g, w, k, _, D, A, B, W, O, Z, pe, me, ue, ye, fe, ge, be, ie, J, Y, ve, Q, E, V, _e, K, we, re, oe, se, ze, Pe, Te, Ee, Ie;
|
|
4864
|
+
return $e((L(), x("div", mr, [
|
|
4865
|
+
l("div", ur, [
|
|
4866
|
+
l("div", yr, [
|
|
4867
4867
|
l("div", {
|
|
4868
4868
|
class: "iconfont close",
|
|
4869
4869
|
onClick: e[0] || (e[0] = (We) => i.showMeteo = !1)
|
|
4870
4870
|
}, ""),
|
|
4871
|
-
l("div",
|
|
4872
|
-
l("div",
|
|
4871
|
+
l("div", fr, S(o.computeLat((n = a.meteo) == null ? void 0 : n.lat)) + "," + S(o.computeLng((s = a.meteo) == null ? void 0 : s.lng)), 1),
|
|
4872
|
+
l("div", gr, S(o.computeTime((c = a.meteo) == null ? void 0 : c.utc)), 1)
|
|
4873
4873
|
]),
|
|
4874
|
-
l("div",
|
|
4874
|
+
l("div", br, [
|
|
4875
|
+
l("div", vr, [
|
|
4876
|
+
_r,
|
|
4877
|
+
l("span", null, S(((d = (h = a.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((f = (p = a.meteo) == null ? void 0 : p.wind) == null ? void 0 : f.kts, 1)) + "[kts]/" + S((b = (m = a.meteo) == null ? void 0 : m.wind) == null ? void 0 : b.scale) + "[BF]/" + S(o.roundPrecision((u = (y = a.meteo) == null ? void 0 : y.gusts) == null ? void 0 : u.kts, 1)) + "[kts]", 1)
|
|
4878
|
+
]),
|
|
4879
|
+
l("div", wr, [
|
|
4880
|
+
Lr,
|
|
4881
|
+
l("span", null, S(((w = (g = (v = a.meteo) == null ? void 0 : v.wave) == null ? void 0 : g.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((D = (_ = (k = a.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : D.height, 1)) + "[m]/" + S(o.roundPrecision((W = (B = (A = a.meteo) == null ? void 0 : A.wave) == null ? void 0 : B.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
|
|
4882
|
+
]),
|
|
4875
4883
|
l("div", xr, [
|
|
4876
4884
|
Cr,
|
|
4877
|
-
l("span", null, S(((
|
|
4885
|
+
l("span", null, S(((pe = (Z = (O = a.meteo) == null ? void 0 : O.wave) == null ? void 0 : Z.swell) == null ? void 0 : pe.direction) || "-") + "/" + S(o.roundPrecision((ye = (ue = (me = a.meteo) == null ? void 0 : me.wave) == null ? void 0 : ue.swell) == null ? void 0 : ye.height, 1)) + "[m]/" + S(o.roundPrecision((be = (ge = (fe = a.meteo) == null ? void 0 : fe.wave) == null ? void 0 : ge.swell) == null ? void 0 : be.period, 1)) + "[s]", 1)
|
|
4878
4886
|
]),
|
|
4879
4887
|
l("div", Sr, [
|
|
4880
4888
|
kr,
|
|
4881
|
-
l("span", null, S(((
|
|
4889
|
+
l("span", null, S(((Y = (J = (ie = a.meteo) == null ? void 0 : ie.wave) == null ? void 0 : J.sig) == null ? void 0 : Y.direction) || "-") + "/" + S(o.roundPrecision((E = (Q = (ve = a.meteo) == null ? void 0 : ve.wave) == null ? void 0 : Q.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((K = (_e = (V = a.meteo) == null ? void 0 : V.wave) == null ? void 0 : _e.sig) == null ? void 0 : K.period, 1)) + "[s]", 1)
|
|
4882
4890
|
]),
|
|
4883
4891
|
l("div", zr, [
|
|
4884
4892
|
Pr,
|
|
4885
|
-
l("span", null, S(((
|
|
4893
|
+
l("span", null, S(((re = (we = a.meteo) == null ? void 0 : we.current) == null ? void 0 : re.direction) || "-") + "/" + S(o.roundPrecision((se = (oe = a.meteo) == null ? void 0 : oe.current) == null ? void 0 : se.kts, 2)) + "[kts]", 1)
|
|
4886
4894
|
]),
|
|
4887
4895
|
l("div", Tr, [
|
|
4888
4896
|
Er,
|
|
4889
|
-
l("span", null, S(
|
|
4897
|
+
l("span", null, S(o.roundPrecision((Pe = (ze = a.meteo) == null ? void 0 : ze.precip) == null ? void 0 : Pe.inter6h, 2)) + "[mm]", 1)
|
|
4890
4898
|
]),
|
|
4891
4899
|
l("div", Ir, [
|
|
4892
4900
|
Rr,
|
|
4893
|
-
l("span", null, S(
|
|
4901
|
+
l("span", null, S(o.roundPrecision(((Te = a.meteo) == null ? void 0 : Te.visibility) / 1852, 0)) + "[nm]", 1)
|
|
4894
4902
|
]),
|
|
4895
4903
|
l("div", Dr, [
|
|
4896
4904
|
Ar,
|
|
4897
|
-
l("span", null, S(o.roundPrecision((
|
|
4905
|
+
l("span", null, S(o.roundPrecision((Ee = a.meteo) == null ? void 0 : Ee.temp, 0)) + "[°C]", 1)
|
|
4898
4906
|
]),
|
|
4899
4907
|
l("div", Mr, [
|
|
4900
4908
|
$r,
|
|
4901
|
-
l("span", null, S(o.roundPrecision(((Te = a.meteo) == null ? void 0 : Te.visibility) / 1852, 0)) + "[nm]", 1)
|
|
4902
|
-
]),
|
|
4903
|
-
l("div", Br, [
|
|
4904
|
-
Nr,
|
|
4905
|
-
l("span", null, S(o.roundPrecision((Ee = a.meteo) == null ? void 0 : Ee.temp, 0)) + "[°C]", 1)
|
|
4906
|
-
]),
|
|
4907
|
-
l("div", Wr, [
|
|
4908
|
-
Or,
|
|
4909
4909
|
l("span", null, S(o.roundPrecision((Ie = a.meteo) == null ? void 0 : Ie.waterTemp, 2)) + "[°C]", 1)
|
|
4910
4910
|
])
|
|
4911
4911
|
]),
|
|
4912
|
-
t.$attrs.permission & i.helper.LEVEL.Prime ? (
|
|
4912
|
+
t.$attrs.permission & i.helper.LEVEL.Prime ? (L(), x("div", Br, Wr)) : $("", !0)
|
|
4913
4913
|
])
|
|
4914
4914
|
], 512)), [
|
|
4915
4915
|
[Be, i.showMeteo]
|
|
4916
4916
|
]);
|
|
4917
4917
|
}
|
|
4918
|
-
const
|
|
4918
|
+
const jr = /* @__PURE__ */ T(pr, [["render", Or], ["__scopeId", "data-v-ef7fa87d"]]), Fr = {
|
|
4919
4919
|
name: "IdmWarZone",
|
|
4920
4920
|
props: {
|
|
4921
4921
|
map: {
|
|
@@ -5005,10 +5005,10 @@ const Gr = /* @__PURE__ */ T(fr, [["render", Ur], ["__scopeId", "data-v-24f49eee
|
|
|
5005
5005
|
}
|
|
5006
5006
|
}
|
|
5007
5007
|
};
|
|
5008
|
-
function
|
|
5009
|
-
return
|
|
5008
|
+
function Vr(t, e, a, r, i, o) {
|
|
5009
|
+
return L(), x("div");
|
|
5010
5010
|
}
|
|
5011
|
-
const
|
|
5011
|
+
const Ur = /* @__PURE__ */ T(Fr, [["render", Vr]]), Gr = {
|
|
5012
5012
|
name: "IdmGmdssArea",
|
|
5013
5013
|
props: {
|
|
5014
5014
|
map: {
|
|
@@ -5128,10 +5128,10 @@ const Jr = /* @__PURE__ */ T(Hr, [["render", Zr]]), Xr = {
|
|
|
5128
5128
|
}
|
|
5129
5129
|
}
|
|
5130
5130
|
};
|
|
5131
|
-
function
|
|
5132
|
-
return
|
|
5131
|
+
function Hr(t, e, a, r, i, o) {
|
|
5132
|
+
return L(), x("div");
|
|
5133
5133
|
}
|
|
5134
|
-
const
|
|
5134
|
+
const Zr = /* @__PURE__ */ T(Gr, [["render", Hr]]), Jr = {
|
|
5135
5135
|
name: "IdmEcaZone",
|
|
5136
5136
|
props: {
|
|
5137
5137
|
map: {
|
|
@@ -5219,11 +5219,11 @@ const Yr = /* @__PURE__ */ T(Xr, [["render", qr]]), Qr = {
|
|
|
5219
5219
|
}
|
|
5220
5220
|
}
|
|
5221
5221
|
};
|
|
5222
|
-
function
|
|
5223
|
-
return
|
|
5222
|
+
function Xr(t, e, a, r, i, o) {
|
|
5223
|
+
return L(), x("div");
|
|
5224
5224
|
}
|
|
5225
|
-
const
|
|
5226
|
-
const
|
|
5225
|
+
const qr = /* @__PURE__ */ T(Jr, [["render", Xr]]);
|
|
5226
|
+
const Yr = {
|
|
5227
5227
|
name: "IdmAlertZone",
|
|
5228
5228
|
props: {
|
|
5229
5229
|
map: {
|
|
@@ -5349,10 +5349,10 @@ const to = {
|
|
|
5349
5349
|
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);
|
|
5350
5350
|
}
|
|
5351
5351
|
}
|
|
5352
|
-
},
|
|
5353
|
-
function
|
|
5352
|
+
}, Qr = { id: "zone-info" }, Kr = ["innerHTML"];
|
|
5353
|
+
function eo(t, e, a, r, i, o) {
|
|
5354
5354
|
var n;
|
|
5355
|
-
return $e((
|
|
5355
|
+
return $e((L(), x("div", Qr, [
|
|
5356
5356
|
l("div", {
|
|
5357
5357
|
class: "iconfont close",
|
|
5358
5358
|
onClick: e[0] || (e[0] = (s) => i.showZone = !1)
|
|
@@ -5360,13 +5360,13 @@ function ro(t, e, a, r, i, o) {
|
|
|
5360
5360
|
l("div", {
|
|
5361
5361
|
class: "rich-context",
|
|
5362
5362
|
innerHTML: (n = i.form) == null ? void 0 : n.name
|
|
5363
|
-
}, null, 8,
|
|
5363
|
+
}, null, 8, Kr)
|
|
5364
5364
|
], 512)), [
|
|
5365
5365
|
[Be, i.showZone]
|
|
5366
5366
|
]);
|
|
5367
5367
|
}
|
|
5368
|
-
const
|
|
5369
|
-
const
|
|
5368
|
+
const to = /* @__PURE__ */ T(Yr, [["render", eo], ["__scopeId", "data-v-c0864afc"]]);
|
|
5369
|
+
const ao = {
|
|
5370
5370
|
name: "IdmPort",
|
|
5371
5371
|
props: {
|
|
5372
5372
|
map: {
|
|
@@ -5392,12 +5392,12 @@ const so = {
|
|
|
5392
5392
|
computed: {
|
|
5393
5393
|
computeLat() {
|
|
5394
5394
|
return function(t) {
|
|
5395
|
-
return
|
|
5395
|
+
return j.lat2pretty(t, 4).pretty;
|
|
5396
5396
|
};
|
|
5397
5397
|
},
|
|
5398
5398
|
computeLng() {
|
|
5399
5399
|
return function(t) {
|
|
5400
|
-
return
|
|
5400
|
+
return j.lng2pretty(t, 4).pretty;
|
|
5401
5401
|
};
|
|
5402
5402
|
}
|
|
5403
5403
|
},
|
|
@@ -5419,7 +5419,7 @@ const so = {
|
|
|
5419
5419
|
if (a) {
|
|
5420
5420
|
this.showPort = !0, this.form = { ...a.properties }, this.form.lng = a.geometry.coordinates[0], this.form.lat = a.geometry.coordinates[1];
|
|
5421
5421
|
const i = document.getElementById("port-info");
|
|
5422
|
-
this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new
|
|
5422
|
+
this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new le.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
5423
5423
|
}
|
|
5424
5424
|
},
|
|
5425
5425
|
handleEmit() {
|
|
@@ -5458,33 +5458,33 @@ const so = {
|
|
|
5458
5458
|
this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
5459
5459
|
}
|
|
5460
5460
|
}
|
|
5461
|
-
}, Ne = (t) => (
|
|
5461
|
+
}, Ne = (t) => (G("data-v-4ab013cc"), t = t(), H(), t), io = { id: "port-info" }, ro = { class: "port-box" }, oo = { class: "flex-start" }, so = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), no = { class: "flex-start" }, lo = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), co = { class: "flex-start" }, ho = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), po = {
|
|
5462
5462
|
class: "flex-start",
|
|
5463
5463
|
style: { "align-items": "flex-start" }
|
|
5464
|
-
},
|
|
5465
|
-
function
|
|
5466
|
-
return $e((
|
|
5464
|
+
}, mo = /* @__PURE__ */ Ne(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
|
|
5465
|
+
function uo(t, e, a, r, i, o) {
|
|
5466
|
+
return $e((L(), x("div", io, [
|
|
5467
5467
|
l("div", {
|
|
5468
5468
|
class: "close iconfont",
|
|
5469
5469
|
onClick: e[0] || (e[0] = (n) => i.showPort = !1)
|
|
5470
5470
|
}, ""),
|
|
5471
|
-
l("div",
|
|
5472
|
-
l("div",
|
|
5473
|
-
|
|
5471
|
+
l("div", ro, [
|
|
5472
|
+
l("div", oo, [
|
|
5473
|
+
so,
|
|
5474
5474
|
l("span", {
|
|
5475
5475
|
onClick: e[1] || (e[1] = (...n) => o.handleEmit && o.handleEmit(...n))
|
|
5476
5476
|
}, S(i.form.name), 1)
|
|
5477
5477
|
]),
|
|
5478
|
-
l("div",
|
|
5479
|
-
|
|
5478
|
+
l("div", no, [
|
|
5479
|
+
lo,
|
|
5480
5480
|
l("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
|
|
5481
5481
|
]),
|
|
5482
|
-
l("div",
|
|
5483
|
-
|
|
5482
|
+
l("div", co, [
|
|
5483
|
+
ho,
|
|
5484
5484
|
l("span", null, S(i.form.loCode || "-"), 1)
|
|
5485
5485
|
]),
|
|
5486
|
-
l("div",
|
|
5487
|
-
|
|
5486
|
+
l("div", po, [
|
|
5487
|
+
mo,
|
|
5488
5488
|
l("span", null, S(i.form.city || "-") + ", " + S(i.form.country || "-"), 1)
|
|
5489
5489
|
])
|
|
5490
5490
|
])
|
|
@@ -5492,7 +5492,7 @@ function bo(t, e, a, r, i, o) {
|
|
|
5492
5492
|
[Be, i.showPort]
|
|
5493
5493
|
]);
|
|
5494
5494
|
}
|
|
5495
|
-
const
|
|
5495
|
+
const yo = /* @__PURE__ */ T(ao, [["render", uo], ["__scopeId", "data-v-4ab013cc"]]), fo = {
|
|
5496
5496
|
name: "IdmLoadLine",
|
|
5497
5497
|
props: {
|
|
5498
5498
|
map: {
|
|
@@ -5562,10 +5562,10 @@ const vo = /* @__PURE__ */ T(so, [["render", bo], ["__scopeId", "data-v-30e545a2
|
|
|
5562
5562
|
}
|
|
5563
5563
|
}
|
|
5564
5564
|
};
|
|
5565
|
-
function
|
|
5566
|
-
return
|
|
5565
|
+
function go(t, e, a, r, i, o) {
|
|
5566
|
+
return L(), x("div");
|
|
5567
5567
|
}
|
|
5568
|
-
const
|
|
5568
|
+
const bo = /* @__PURE__ */ T(fo, [["render", go]]), vo = {
|
|
5569
5569
|
name: "IdmTimezone",
|
|
5570
5570
|
props: {
|
|
5571
5571
|
map: {
|
|
@@ -5730,10 +5730,10 @@ const Lo = /* @__PURE__ */ T(_o, [["render", wo]]), xo = {
|
|
|
5730
5730
|
}
|
|
5731
5731
|
}
|
|
5732
5732
|
};
|
|
5733
|
-
function
|
|
5734
|
-
return
|
|
5733
|
+
function _o(t, e, a, r, i, o) {
|
|
5734
|
+
return L(), x("div");
|
|
5735
5735
|
}
|
|
5736
|
-
const
|
|
5736
|
+
const wo = /* @__PURE__ */ T(vo, [["render", _o]]), Lo = {
|
|
5737
5737
|
name: "IdmVoluntaryReportingArea",
|
|
5738
5738
|
props: {
|
|
5739
5739
|
map: {
|
|
@@ -5821,10 +5821,10 @@ const So = /* @__PURE__ */ T(xo, [["render", Co]]), ko = {
|
|
|
5821
5821
|
}
|
|
5822
5822
|
}
|
|
5823
5823
|
};
|
|
5824
|
-
function
|
|
5825
|
-
return
|
|
5824
|
+
function xo(t, e, a, r, i, o) {
|
|
5825
|
+
return L(), x("div");
|
|
5826
5826
|
}
|
|
5827
|
-
const
|
|
5827
|
+
const Co = /* @__PURE__ */ T(Lo, [["render", xo]]), So = {
|
|
5828
5828
|
name: "IdmSpecialArea",
|
|
5829
5829
|
props: {
|
|
5830
5830
|
map: {
|
|
@@ -5854,7 +5854,7 @@ const Po = /* @__PURE__ */ T(ko, [["render", zo]]), To = {
|
|
|
5854
5854
|
methods: {
|
|
5855
5855
|
handleRender() {
|
|
5856
5856
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((t) => {
|
|
5857
|
-
t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) =>
|
|
5857
|
+
t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) => j.convertToMonotonicLng2(e));
|
|
5858
5858
|
}), this.map.addSource(this.source, {
|
|
5859
5859
|
type: "geojson",
|
|
5860
5860
|
data: this.area
|
|
@@ -5914,10 +5914,10 @@ const Po = /* @__PURE__ */ T(ko, [["render", zo]]), To = {
|
|
|
5914
5914
|
}
|
|
5915
5915
|
}
|
|
5916
5916
|
};
|
|
5917
|
-
function
|
|
5918
|
-
return
|
|
5917
|
+
function ko(t, e, a, r, i, o) {
|
|
5918
|
+
return L(), x("div");
|
|
5919
5919
|
}
|
|
5920
|
-
const
|
|
5920
|
+
const zo = /* @__PURE__ */ T(So, [["render", ko]]), Po = {
|
|
5921
5921
|
name: "IdmTerminator",
|
|
5922
5922
|
props: {
|
|
5923
5923
|
map: {
|
|
@@ -5966,11 +5966,11 @@ const Io = /* @__PURE__ */ T(To, [["render", Eo]]), Ro = {
|
|
|
5966
5966
|
}
|
|
5967
5967
|
}
|
|
5968
5968
|
};
|
|
5969
|
-
function
|
|
5970
|
-
return
|
|
5969
|
+
function To(t, e, a, r, i, o) {
|
|
5970
|
+
return L(), x("div");
|
|
5971
5971
|
}
|
|
5972
|
-
const
|
|
5973
|
-
const
|
|
5972
|
+
const Eo = /* @__PURE__ */ T(Po, [["render", To]]);
|
|
5973
|
+
const Io = {
|
|
5974
5974
|
name: "IdmLatLng",
|
|
5975
5975
|
props: {
|
|
5976
5976
|
map: {
|
|
@@ -6028,7 +6028,7 @@ const Mo = {
|
|
|
6028
6028
|
this.show ? ((t = this.map) == null || t.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
6029
6029
|
},
|
|
6030
6030
|
handleMouseMove(t) {
|
|
6031
|
-
const e = t.lngLat, a =
|
|
6031
|
+
const e = t.lngLat, a = j.lng2pretty(e.lng, 2), r = j.lat2pretty(e.lat, 2);
|
|
6032
6032
|
this.lngLat = { lng: a, lat: r };
|
|
6033
6033
|
},
|
|
6034
6034
|
handleComputeLatLngs() {
|
|
@@ -6125,19 +6125,19 @@ const Mo = {
|
|
|
6125
6125
|
(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));
|
|
6126
6126
|
}
|
|
6127
6127
|
}
|
|
6128
|
-
},
|
|
6129
|
-
function
|
|
6130
|
-
return i.lngLat ? (
|
|
6128
|
+
}, Ro = (t) => (G("data-v-7367f59b"), t = t(), H(), t), Do = /* @__PURE__ */ Ro(() => /* @__PURE__ */ l("span", null, ", ", -1));
|
|
6129
|
+
function Ao(t, e, a, r, i, o) {
|
|
6130
|
+
return i.lngLat ? (L(), x("div", {
|
|
6131
6131
|
key: 0,
|
|
6132
6132
|
class: "lat-lng-tip",
|
|
6133
|
-
style:
|
|
6133
|
+
style: F({ right: i.right + "px", bottom: a.bottom })
|
|
6134
6134
|
}, [
|
|
6135
6135
|
l("span", null, S(i.lngLat.lat.pretty), 1),
|
|
6136
|
-
|
|
6136
|
+
Do,
|
|
6137
6137
|
l("span", null, S(i.lngLat.lng.pretty), 1)
|
|
6138
6138
|
], 4)) : $("", !0);
|
|
6139
6139
|
}
|
|
6140
|
-
const
|
|
6140
|
+
const Ke = /* @__PURE__ */ T(Io, [["render", Ao], ["__scopeId", "data-v-7367f59b"]]), Mo = {
|
|
6141
6141
|
name: "IdmMeasure",
|
|
6142
6142
|
props: {
|
|
6143
6143
|
map: {
|
|
@@ -6204,19 +6204,19 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6204
6204
|
var v;
|
|
6205
6205
|
return ((v = u._element) == null ? void 0 : v.id) === e;
|
|
6206
6206
|
})[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]);
|
|
6207
|
-
let
|
|
6207
|
+
let b;
|
|
6208
6208
|
f.features.forEach((u, v) => {
|
|
6209
6209
|
if (u.geometry.type === "Point" && u.properties.id == e.split("-")[1]) {
|
|
6210
|
-
|
|
6210
|
+
b = v;
|
|
6211
6211
|
return;
|
|
6212
6212
|
}
|
|
6213
6213
|
});
|
|
6214
6214
|
const y = f.features.filter((u) => u.geometry.type === "Point");
|
|
6215
6215
|
this.handleTmpPointUpdate(
|
|
6216
6216
|
f,
|
|
6217
|
-
y[
|
|
6218
|
-
{ lng: (h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties: y[
|
|
6219
|
-
|
|
6217
|
+
y[b - 1],
|
|
6218
|
+
{ lng: (h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties: y[b].properties },
|
|
6219
|
+
b === y.length - 1 ? void 0 : y[b + 1]
|
|
6220
6220
|
);
|
|
6221
6221
|
}
|
|
6222
6222
|
},
|
|
@@ -6229,8 +6229,8 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6229
6229
|
var u;
|
|
6230
6230
|
return ((u = y._element) == null ? void 0 : u.id) === e;
|
|
6231
6231
|
})[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]);
|
|
6232
|
-
const
|
|
6233
|
-
|
|
6232
|
+
const b = f.features.filter((y) => y.geometry.type === "Point" && y.properties.id == e.split("-")[1])[0];
|
|
6233
|
+
b.geometry.coordinates = [(h = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (p = (d = t.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat], f.features = f.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(f);
|
|
6234
6234
|
}
|
|
6235
6235
|
},
|
|
6236
6236
|
handleContextmenu(t) {
|
|
@@ -6241,7 +6241,7 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6241
6241
|
const s = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
|
|
6242
6242
|
if (s.length > 2 && s.filter((h) => h.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
6243
6243
|
const h = document.createElement("div");
|
|
6244
|
-
h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new
|
|
6244
|
+
h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new le.Marker(h).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
6245
6245
|
}
|
|
6246
6246
|
}
|
|
6247
6247
|
},
|
|
@@ -6277,11 +6277,11 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6277
6277
|
let a = 0;
|
|
6278
6278
|
const r = [];
|
|
6279
6279
|
for (let i = 1; i < e.length; i++) {
|
|
6280
|
-
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 =
|
|
6281
|
-
a =
|
|
6280
|
+
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 = te.calculateDistance(c, h, s.mode === "RL", 2), p = te.calculateBearing(c, h, s.mode === "RL", 2);
|
|
6281
|
+
a = j.roundPrecision(a + d, 2);
|
|
6282
6282
|
let f;
|
|
6283
|
-
s.mode === "RL" ? f =
|
|
6284
|
-
const m = C.lineString(f.map((
|
|
6283
|
+
s.mode === "RL" ? f = j.convertToMonotonicLng([c, h]) : f = j.convertToMonotonicLng(te.interpolateCoordinates(c, h, 200));
|
|
6284
|
+
const m = C.lineString(f.map((b) => [b.lng, b.lat]));
|
|
6285
6285
|
m.properties.dist = d, m.properties.bearing = p, m.properties.total = a, r.push(m);
|
|
6286
6286
|
}
|
|
6287
6287
|
e.push(...r), t.total = a;
|
|
@@ -6293,17 +6293,17 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6293
6293
|
let o, n;
|
|
6294
6294
|
if (e) {
|
|
6295
6295
|
const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: a.lng, lat: a.lat };
|
|
6296
|
-
o =
|
|
6296
|
+
o = te.calculateDistance(h, d, c.mode === "RL", 2), n = te.calculateBearing(h, d, c.mode === "RL", 2);
|
|
6297
6297
|
let p;
|
|
6298
|
-
c.mode === "RL" ? p =
|
|
6298
|
+
c.mode === "RL" ? p = j.convertToMonotonicLng([h, d]) : p = j.convertToMonotonicLng(te.interpolateCoordinates(h, d, 200));
|
|
6299
6299
|
const f = C.lineString(p.map((m) => [m.lng, m.lat]));
|
|
6300
6300
|
f.properties.dist = o, f.properties.bearing = n, i.features.push(f);
|
|
6301
6301
|
}
|
|
6302
6302
|
if (r) {
|
|
6303
6303
|
const c = a.properties, h = a, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
6304
|
-
o =
|
|
6304
|
+
o = te.calculateDistance(h, d, c.mode === "RL", 2), n = te.calculateBearing(h, d, c.mode === "RL", 2);
|
|
6305
6305
|
let p;
|
|
6306
|
-
c.mode === "RL" ? p =
|
|
6306
|
+
c.mode === "RL" ? p = j.convertToMonotonicLng([h, d]) : p = j.convertToMonotonicLng(te.interpolateCoordinates(h, d, 200));
|
|
6307
6307
|
const f = C.lineString(p.map((m) => [m.lng, m.lat]));
|
|
6308
6308
|
f.properties.dist = o, f.properties.bearing = n, i.features.push(f);
|
|
6309
6309
|
}
|
|
@@ -6345,11 +6345,11 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6345
6345
|
}
|
|
6346
6346
|
});
|
|
6347
6347
|
let s;
|
|
6348
|
-
if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${
|
|
6348
|
+
if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${j.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)
|
|
6349
6349
|
this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([a.lng, a.lat]);
|
|
6350
6350
|
else {
|
|
6351
6351
|
const c = document.createElement("div");
|
|
6352
|
-
c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new
|
|
6352
|
+
c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new le.Marker(c).setOffset([140, 0]).setLngLat([a.lng, a.lat]).addTo(this.map);
|
|
6353
6353
|
}
|
|
6354
6354
|
},
|
|
6355
6355
|
handleMove(t) {
|
|
@@ -6407,29 +6407,29 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6407
6407
|
for (const n of o) {
|
|
6408
6408
|
const s = document.createElement("div");
|
|
6409
6409
|
s.id = `${t.id}-${n.properties.id}`, s.className = `${t.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
|
|
6410
|
-
const c = new
|
|
6410
|
+
const c = new le.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
6411
6411
|
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];
|
|
6412
6412
|
}
|
|
6413
6413
|
if (t.closed) {
|
|
6414
6414
|
const n = o.at(-1), c = t.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
|
|
6415
|
-
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
|
|
6415
|
+
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 le.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
6416
6416
|
}
|
|
6417
6417
|
}
|
|
6418
6418
|
},
|
|
6419
6419
|
handleClear(t, e = !0) {
|
|
6420
6420
|
var o, n, s, c, h, d, p, f, m;
|
|
6421
6421
|
const a = `${t.id}-${this.source}`, r = `${t.id}-${this.layer}`, i = `${t.id}-${this.labelLayer}`;
|
|
6422
|
-
(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((
|
|
6423
|
-
|
|
6422
|
+
(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((b) => {
|
|
6423
|
+
b == null || b.remove();
|
|
6424
6424
|
}), this.pointMarkers[t.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(a)) && this.map.removeSource(a), e && ((m = this.map) != null && m.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
6425
6425
|
}
|
|
6426
6426
|
}
|
|
6427
6427
|
};
|
|
6428
|
-
function
|
|
6429
|
-
return
|
|
6428
|
+
function $o(t, e, a, r, i, o) {
|
|
6429
|
+
return L(), x("div");
|
|
6430
6430
|
}
|
|
6431
|
-
const
|
|
6432
|
-
const
|
|
6431
|
+
const Bo = /* @__PURE__ */ T(Mo, [["render", $o]]);
|
|
6432
|
+
const No = {
|
|
6433
6433
|
name: "IdmENC",
|
|
6434
6434
|
props: {
|
|
6435
6435
|
map: {
|
|
@@ -6481,64 +6481,64 @@ const Fo = {
|
|
|
6481
6481
|
}
|
|
6482
6482
|
},
|
|
6483
6483
|
methods: {}
|
|
6484
|
-
},
|
|
6485
|
-
|
|
6486
|
-
],
|
|
6487
|
-
|
|
6484
|
+
}, et = (t) => (G("data-v-ab627b83"), t = t(), H(), t), Wo = { key: 0 }, Oo = { class: "bar-item" }, jo = /* @__PURE__ */ et(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), Fo = [
|
|
6485
|
+
jo
|
|
6486
|
+
], Vo = /* @__PURE__ */ et(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), Uo = [
|
|
6487
|
+
Vo
|
|
6488
6488
|
];
|
|
6489
|
-
function
|
|
6490
|
-
return a.enabled && a.permission & i.helper.LEVEL.Supper ? (
|
|
6489
|
+
function Go(t, e, a, r, i, o) {
|
|
6490
|
+
return a.enabled && a.permission & i.helper.LEVEL.Supper ? (L(), x("div", Wo, [
|
|
6491
6491
|
l("div", {
|
|
6492
6492
|
class: "menu-bar-box",
|
|
6493
|
-
style:
|
|
6493
|
+
style: F({ position: "absolute", right: i.right + "px", bottom: a.bottom })
|
|
6494
6494
|
}, [
|
|
6495
|
-
l("div",
|
|
6495
|
+
l("div", Oo, [
|
|
6496
6496
|
l("div", {
|
|
6497
6497
|
class: M(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
6498
6498
|
onClick: e[0] || (e[0] = (n) => i.vendor = "hi")
|
|
6499
|
-
},
|
|
6499
|
+
}, Fo, 2),
|
|
6500
6500
|
l("div", {
|
|
6501
6501
|
class: M(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
6502
6502
|
onClick: e[1] || (e[1] = (n) => i.vendor = "i4")
|
|
6503
|
-
},
|
|
6503
|
+
}, Uo, 2)
|
|
6504
6504
|
])
|
|
6505
6505
|
], 4)
|
|
6506
6506
|
])) : $("", !0);
|
|
6507
6507
|
}
|
|
6508
|
-
const
|
|
6509
|
-
const
|
|
6508
|
+
const Ho = /* @__PURE__ */ T(No, [["render", Go], ["__scopeId", "data-v-ab627b83"]]);
|
|
6509
|
+
const Zo = {
|
|
6510
6510
|
name: "IdmGLV2",
|
|
6511
6511
|
components: {
|
|
6512
|
-
IdmGlLayer:
|
|
6513
|
-
IdmWindBarb:
|
|
6514
|
-
IdmWindParticle:
|
|
6515
|
-
IdmCurrents:
|
|
6516
|
-
IdmCurrentParticle:
|
|
6517
|
-
IdmSigWave:
|
|
6518
|
-
IdmSwell:
|
|
6519
|
-
IdmPrmsl:
|
|
6512
|
+
IdmGlLayer: Wt,
|
|
6513
|
+
IdmWindBarb: Zt,
|
|
6514
|
+
IdmWindParticle: na,
|
|
6515
|
+
IdmCurrents: ya,
|
|
6516
|
+
IdmCurrentParticle: za,
|
|
6517
|
+
IdmSigWave: Ea,
|
|
6518
|
+
IdmSwell: Da,
|
|
6519
|
+
IdmPrmsl: $a,
|
|
6520
6520
|
// IdmIceEdge,
|
|
6521
|
-
IdmIceberg:
|
|
6522
|
-
IdmTropicals:
|
|
6523
|
-
IdmPrecip3h:
|
|
6524
|
-
IdmVisibility:
|
|
6525
|
-
IdmWaterTemp:
|
|
6526
|
-
IdmTemp:
|
|
6527
|
-
IdmArctic:
|
|
6528
|
-
IdmWarZone:
|
|
6529
|
-
IdmGmdssArea:
|
|
6530
|
-
IdmEcaZone:
|
|
6531
|
-
IdmAlertZone:
|
|
6532
|
-
IdmPort:
|
|
6533
|
-
IdmLoadLine:
|
|
6534
|
-
IdmTimezone:
|
|
6535
|
-
IdmVRA:
|
|
6536
|
-
IdmSpecialArea:
|
|
6537
|
-
IdmTerminator:
|
|
6538
|
-
IdmLatLng:
|
|
6539
|
-
IdmMeasure:
|
|
6540
|
-
IdmPoint:
|
|
6541
|
-
IdmENC:
|
|
6521
|
+
IdmIceberg: Wa,
|
|
6522
|
+
IdmTropicals: Qe,
|
|
6523
|
+
IdmPrecip3h: vi,
|
|
6524
|
+
IdmVisibility: Ei,
|
|
6525
|
+
IdmWaterTemp: ji,
|
|
6526
|
+
IdmTemp: er,
|
|
6527
|
+
IdmArctic: dr,
|
|
6528
|
+
IdmWarZone: Ur,
|
|
6529
|
+
IdmGmdssArea: Zr,
|
|
6530
|
+
IdmEcaZone: qr,
|
|
6531
|
+
IdmAlertZone: to,
|
|
6532
|
+
IdmPort: yo,
|
|
6533
|
+
IdmLoadLine: bo,
|
|
6534
|
+
IdmTimezone: wo,
|
|
6535
|
+
IdmVRA: Co,
|
|
6536
|
+
IdmSpecialArea: zo,
|
|
6537
|
+
IdmTerminator: Eo,
|
|
6538
|
+
IdmLatLng: Ke,
|
|
6539
|
+
IdmMeasure: Bo,
|
|
6540
|
+
IdmPoint: jr,
|
|
6541
|
+
IdmENC: Ho
|
|
6542
6542
|
},
|
|
6543
6543
|
props: {
|
|
6544
6544
|
map: {
|
|
@@ -6582,13 +6582,13 @@ const Yo = {
|
|
|
6582
6582
|
enc: "",
|
|
6583
6583
|
// enc: 'i4',
|
|
6584
6584
|
defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
|
|
6585
|
-
helper: new
|
|
6585
|
+
helper: new Jt()
|
|
6586
6586
|
};
|
|
6587
6587
|
},
|
|
6588
6588
|
watch: {
|
|
6589
6589
|
ts: {
|
|
6590
6590
|
handler(t, e) {
|
|
6591
|
-
t && e &&
|
|
6591
|
+
t && e && ae(t).utc().format("yyyy-MM-DD HH") !== ae(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
6592
6592
|
this.handleDateChange({ tropicals: !1 });
|
|
6593
6593
|
});
|
|
6594
6594
|
},
|
|
@@ -6596,7 +6596,7 @@ const Yo = {
|
|
|
6596
6596
|
},
|
|
6597
6597
|
map: {
|
|
6598
6598
|
handler() {
|
|
6599
|
-
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new
|
|
6599
|
+
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new je(this.map), this.handleRampColorInitial());
|
|
6600
6600
|
},
|
|
6601
6601
|
immediate: !0
|
|
6602
6602
|
},
|
|
@@ -6608,10 +6608,10 @@ const Yo = {
|
|
|
6608
6608
|
},
|
|
6609
6609
|
activeWeatherLayers: {
|
|
6610
6610
|
handler() {
|
|
6611
|
-
var t, e, a, r, i, o, n, s, c, h, d, p, f, m,
|
|
6611
|
+
var t, e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v;
|
|
6612
6612
|
if (!this.map)
|
|
6613
6613
|
return !1;
|
|
6614
|
-
this.activeWeatherLayers.length > 0 ? (
|
|
6614
|
+
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"), (o = this.map) != null && o.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((c = this.map) == null || c.moveLayer((s = this.viewport) == null ? void 0 : s.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) && ((p = this.map) != null && p.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((m = this.map) == null || m.moveLayer((f = this.viewport) == null ? void 0 : f.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((y = (b = this.map) == null ? void 0 : b.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible"), (v = (u = this.map) == null ? void 0 : u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none"));
|
|
6615
6615
|
},
|
|
6616
6616
|
immediate: !0
|
|
6617
6617
|
}
|
|
@@ -6662,9 +6662,9 @@ const Yo = {
|
|
|
6662
6662
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
6663
6663
|
let a = 0, r = 0;
|
|
6664
6664
|
if (this.map) {
|
|
6665
|
-
const f = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, m = (o = this.map) == null ? void 0 : o.getBounds(),
|
|
6665
|
+
const f = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, m = (o = this.map) == null ? void 0 : o.getBounds(), b = `${m._sw.lng},${m._sw.lat},${m._ne.lng},${m._ne.lat}`;
|
|
6666
6666
|
if (this.handleRampColorState(), this.particleFactor) {
|
|
6667
|
-
const y =
|
|
6667
|
+
const y = Oe.WEATHER_LAYERS.find((u) => {
|
|
6668
6668
|
var v;
|
|
6669
6669
|
return ((v = u.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
|
|
6670
6670
|
});
|
|
@@ -6673,42 +6673,42 @@ const Yo = {
|
|
|
6673
6673
|
if (this.weatherWeight > 0) {
|
|
6674
6674
|
let y = this.weatherWeight, u;
|
|
6675
6675
|
if (t.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (y -= 256, u.version = Math.random() + 1)), y > 0) {
|
|
6676
|
-
const v = await
|
|
6676
|
+
const v = await ne.get(`${this.gateway}/api/arc/weather/layers/links?l=${y}&v=${this.source}&z=${f}&bbox=${b}&t=${this.ts}`, {
|
|
6677
6677
|
headers: {
|
|
6678
6678
|
Authorization: this.token || this.defaultMeteoToken
|
|
6679
6679
|
}
|
|
6680
6680
|
});
|
|
6681
6681
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", r, ", total: ", a += r), ((n = v == null ? void 0 : v.data) == null ? void 0 : n.code) === 0) {
|
|
6682
|
-
const
|
|
6683
|
-
for (const _ in
|
|
6684
|
-
_ === "ice-edge" && (
|
|
6685
|
-
|
|
6682
|
+
const g = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
|
|
6683
|
+
for (const _ in g)
|
|
6684
|
+
_ === "ice-edge" && (g[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && w.push(
|
|
6685
|
+
ne.get(g[_], {
|
|
6686
6686
|
headers: {
|
|
6687
6687
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6688
6688
|
key: _
|
|
6689
6689
|
},
|
|
6690
|
-
responseType: /\.(jpg|png)$/.test(
|
|
6690
|
+
responseType: /\.(jpg|png)$/.test(g[_]) ? "blob" : "json"
|
|
6691
6691
|
}).catch((D) => {
|
|
6692
6692
|
console.log(`[${_}] fetch layer error: ${D}`);
|
|
6693
6693
|
})
|
|
6694
6694
|
);
|
|
6695
|
-
const k = await Promise.all(
|
|
6695
|
+
const k = await Promise.all(w);
|
|
6696
6696
|
this.weatherLayers = {}, k.map((_) => {
|
|
6697
|
-
var B, W, O,
|
|
6697
|
+
var B, W, O, Z;
|
|
6698
6698
|
const D = ((B = _ == null ? void 0 : _.data) == null ? void 0 : B.data) || (_ == null ? void 0 : _.data), A = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
|
|
6699
6699
|
A && D && (this.weatherLayers[A] = {
|
|
6700
6700
|
raw: D,
|
|
6701
|
-
type: ((
|
|
6701
|
+
type: ((Z = _ == null ? void 0 : _.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
|
|
6702
6702
|
etime: this.ts
|
|
6703
6703
|
});
|
|
6704
|
-
}),
|
|
6704
|
+
}), g.tropicals && ne.get(g.tropicals, {
|
|
6705
6705
|
headers: {
|
|
6706
6706
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6707
6707
|
key: "tropicals"
|
|
6708
6708
|
}
|
|
6709
6709
|
}).then((_) => {
|
|
6710
6710
|
var B, W, O;
|
|
6711
|
-
const D =
|
|
6711
|
+
const D = Ye.convert2Geojson(((B = _ == null ? void 0 : _.data) == null ? void 0 : B.data) || (_ == null ? void 0 : _.data)), A = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
|
|
6712
6712
|
this.weatherLayers[A] = {
|
|
6713
6713
|
data: D,
|
|
6714
6714
|
active: !0,
|
|
@@ -6720,20 +6720,20 @@ const Yo = {
|
|
|
6720
6720
|
});
|
|
6721
6721
|
}
|
|
6722
6722
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather layers elapsed: ", r, ", total: ", a += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
6723
|
-
const
|
|
6723
|
+
const g = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw, w = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
|
|
6724
6724
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
6725
6725
|
type: "json",
|
|
6726
|
-
direction:
|
|
6727
|
-
height: { raw:
|
|
6726
|
+
direction: g,
|
|
6727
|
+
height: { raw: w },
|
|
6728
6728
|
etime: this.ts
|
|
6729
6729
|
};
|
|
6730
6730
|
}
|
|
6731
6731
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
6732
|
-
const
|
|
6732
|
+
const g = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, w = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
|
|
6733
6733
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
6734
6734
|
type: "json",
|
|
6735
|
-
direction:
|
|
6736
|
-
speed: { raw:
|
|
6735
|
+
direction: g,
|
|
6736
|
+
speed: { raw: w },
|
|
6737
6737
|
etime: this.ts
|
|
6738
6738
|
};
|
|
6739
6739
|
}
|
|
@@ -6752,7 +6752,7 @@ const Yo = {
|
|
|
6752
6752
|
let n = !1;
|
|
6753
6753
|
if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, n = !0), o) {
|
|
6754
6754
|
if (t.all) {
|
|
6755
|
-
const s = await
|
|
6755
|
+
const s = await ne.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
|
|
6756
6756
|
headers: {
|
|
6757
6757
|
Authorization: this.token || this.defaultMeteoToken
|
|
6758
6758
|
}
|
|
@@ -6761,7 +6761,7 @@ const Yo = {
|
|
|
6761
6761
|
const c = (a = s == null ? void 0 : s.data) == null ? void 0 : a.data, h = [];
|
|
6762
6762
|
for (const p in c)
|
|
6763
6763
|
h.push(
|
|
6764
|
-
|
|
6764
|
+
ne.get(c[p], {
|
|
6765
6765
|
headers: {
|
|
6766
6766
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6767
6767
|
key: p
|
|
@@ -6770,13 +6770,13 @@ const Yo = {
|
|
|
6770
6770
|
);
|
|
6771
6771
|
const d = await Promise.all(h);
|
|
6772
6772
|
this.otherLayers = { enc: n }, d.map((p) => {
|
|
6773
|
-
var
|
|
6774
|
-
const f = ((
|
|
6773
|
+
var b, y, u;
|
|
6774
|
+
const f = ((b = p == null ? void 0 : p.data) == null ? void 0 : b.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
|
|
6775
6775
|
this.otherLayers[m] = f;
|
|
6776
6776
|
});
|
|
6777
6777
|
}
|
|
6778
6778
|
} else if (t.dayNight && o & 1024) {
|
|
6779
|
-
const s = await
|
|
6779
|
+
const s = await ne.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
6780
6780
|
headers: {
|
|
6781
6781
|
Authorization: this.token || this.defaultMeteoToken
|
|
6782
6782
|
}
|
|
@@ -6785,7 +6785,7 @@ const Yo = {
|
|
|
6785
6785
|
const c = (i = s == null ? void 0 : s.data) == null ? void 0 : i.data, h = [];
|
|
6786
6786
|
for (const p in c)
|
|
6787
6787
|
h.push(
|
|
6788
|
-
|
|
6788
|
+
ne.get(c[p], {
|
|
6789
6789
|
headers: {
|
|
6790
6790
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6791
6791
|
key: p
|
|
@@ -6793,8 +6793,8 @@ const Yo = {
|
|
|
6793
6793
|
})
|
|
6794
6794
|
);
|
|
6795
6795
|
(await Promise.all(h)).map((p) => {
|
|
6796
|
-
var
|
|
6797
|
-
const f = ((
|
|
6796
|
+
var b, y, u;
|
|
6797
|
+
const f = ((b = p == null ? void 0 : p.data) == null ? void 0 : b.data) || (p == null ? void 0 : p.data), m = (u = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : u.key;
|
|
6798
6798
|
this.otherLayers[m] = f;
|
|
6799
6799
|
});
|
|
6800
6800
|
}
|
|
@@ -6857,29 +6857,29 @@ const Yo = {
|
|
|
6857
6857
|
for (const m in this.weatherLayers)
|
|
6858
6858
|
if (this.weatherLayers[m].active && this.weatherLayers[m].type === "json") {
|
|
6859
6859
|
this.weatherLayers[m].active = !1, this.weatherLayers[m].version = Math.random() + 1;
|
|
6860
|
-
let
|
|
6860
|
+
let b = [];
|
|
6861
6861
|
if (["swell", "current"].includes(m)) {
|
|
6862
6862
|
const y = ((d = this.weatherLayers[m]) == null ? void 0 : d.direction) || {};
|
|
6863
6863
|
for (const u in y)
|
|
6864
6864
|
if (u > s && u < c && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6865
6865
|
const v = y[u].lng;
|
|
6866
|
-
o > n ? v.forEach((
|
|
6866
|
+
o > n ? v.forEach((g, w) => {
|
|
6867
6867
|
var k;
|
|
6868
|
-
if ((
|
|
6869
|
-
const _ = C.point([
|
|
6870
|
-
val: y[u].val[
|
|
6871
|
-
spd: (k = y[u].spd) == null ? void 0 : k[
|
|
6868
|
+
if ((g >= o && g <= 180 || g >= -180 && g <= n) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6869
|
+
const _ = C.point([g, u], {
|
|
6870
|
+
val: y[u].val[w],
|
|
6871
|
+
spd: (k = y[u].spd) == null ? void 0 : k[w]
|
|
6872
6872
|
});
|
|
6873
|
-
|
|
6873
|
+
b.push(_);
|
|
6874
6874
|
}
|
|
6875
|
-
}) : v.forEach((
|
|
6875
|
+
}) : v.forEach((g, w) => {
|
|
6876
6876
|
var k;
|
|
6877
|
-
if (
|
|
6878
|
-
const _ = C.point([
|
|
6879
|
-
val: y[u].val[
|
|
6880
|
-
spd: (k = y[u].spd) == null ? void 0 : k[
|
|
6877
|
+
if (g >= o && g <= n && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6878
|
+
const _ = C.point([g, u], {
|
|
6879
|
+
val: y[u].val[w],
|
|
6880
|
+
spd: (k = y[u].spd) == null ? void 0 : k[w]
|
|
6881
6881
|
});
|
|
6882
|
-
|
|
6882
|
+
b.push(_);
|
|
6883
6883
|
}
|
|
6884
6884
|
});
|
|
6885
6885
|
}
|
|
@@ -6888,12 +6888,12 @@ const Yo = {
|
|
|
6888
6888
|
if (u) {
|
|
6889
6889
|
if (!u.data) {
|
|
6890
6890
|
const v = [];
|
|
6891
|
-
for (const
|
|
6892
|
-
const
|
|
6893
|
-
for (const k of
|
|
6891
|
+
for (const g in (p = u.raw) == null ? void 0 : p.LineString) {
|
|
6892
|
+
const w = u.raw.LineString[g];
|
|
6893
|
+
for (const k of w)
|
|
6894
6894
|
v.push(
|
|
6895
6895
|
C.lineString(k, {
|
|
6896
|
-
val: Number(
|
|
6896
|
+
val: Number(g)
|
|
6897
6897
|
})
|
|
6898
6898
|
);
|
|
6899
6899
|
u.data = C.featureCollection(v);
|
|
@@ -6901,7 +6901,7 @@ const Yo = {
|
|
|
6901
6901
|
}
|
|
6902
6902
|
if (u.data) {
|
|
6903
6903
|
const v = this.handleBboxClip(u.data, r);
|
|
6904
|
-
|
|
6904
|
+
b = b.concat(v);
|
|
6905
6905
|
}
|
|
6906
6906
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("height elapsed: ", a, ", total: ", e += a);
|
|
6907
6907
|
}
|
|
@@ -6910,20 +6910,20 @@ const Yo = {
|
|
|
6910
6910
|
const u = this.weatherLayers[m].speed;
|
|
6911
6911
|
if (u) {
|
|
6912
6912
|
if (!u.data) {
|
|
6913
|
-
const
|
|
6914
|
-
for (const
|
|
6915
|
-
const k = u.raw.Polygon[
|
|
6913
|
+
const g = [];
|
|
6914
|
+
for (const w in (f = u.raw) == null ? void 0 : f.Polygon) {
|
|
6915
|
+
const k = u.raw.Polygon[w];
|
|
6916
6916
|
for (const _ of k)
|
|
6917
|
-
|
|
6917
|
+
g.push(
|
|
6918
6918
|
C.polygon(_, {
|
|
6919
|
-
val: Number(
|
|
6919
|
+
val: Number(w)
|
|
6920
6920
|
})
|
|
6921
6921
|
);
|
|
6922
6922
|
}
|
|
6923
|
-
u.data = C.featureCollection(
|
|
6923
|
+
u.data = C.featureCollection(g);
|
|
6924
6924
|
}
|
|
6925
|
-
const v = i < this.zoom ? u.data.features.filter((
|
|
6926
|
-
|
|
6925
|
+
const v = i < this.zoom ? u.data.features.filter((g) => g.properties.val > 0.5) : u.data.features;
|
|
6926
|
+
b = b.concat(v), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("speed elapsed: ", a, ", total: ", e += a);
|
|
6927
6927
|
}
|
|
6928
6928
|
}
|
|
6929
6929
|
} else if (m === "wind") {
|
|
@@ -6931,96 +6931,105 @@ const Yo = {
|
|
|
6931
6931
|
for (const u in y)
|
|
6932
6932
|
if (u > s && u < c && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6933
6933
|
const v = y[u].lng;
|
|
6934
|
-
o > n ? v.forEach((
|
|
6935
|
-
if ((
|
|
6936
|
-
const k = C.point([
|
|
6937
|
-
val: y[u].val[
|
|
6938
|
-
spd: y[u].spd[
|
|
6934
|
+
o > n ? v.forEach((g, w) => {
|
|
6935
|
+
if ((g >= o && g <= 180 || g >= -180 && g <= n) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6936
|
+
const k = C.point([g, u], {
|
|
6937
|
+
val: y[u].val[w],
|
|
6938
|
+
spd: y[u].spd[w]
|
|
6939
6939
|
});
|
|
6940
|
-
|
|
6940
|
+
b.push(k);
|
|
6941
6941
|
}
|
|
6942
|
-
}) : v.forEach((
|
|
6943
|
-
if (
|
|
6944
|
-
const k = C.point([
|
|
6945
|
-
val: y[u].val[
|
|
6946
|
-
spd: y[u].spd[
|
|
6942
|
+
}) : v.forEach((g, w) => {
|
|
6943
|
+
if (g >= o && g <= n && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6944
|
+
const k = C.point([g, u], {
|
|
6945
|
+
val: y[u].val[w],
|
|
6946
|
+
spd: y[u].spd[w]
|
|
6947
6947
|
});
|
|
6948
|
-
|
|
6948
|
+
b.push(k);
|
|
6949
6949
|
}
|
|
6950
6950
|
});
|
|
6951
6951
|
}
|
|
6952
6952
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", a, ", total: ", e += a);
|
|
6953
6953
|
} else if (m === "sig-wave-height") {
|
|
6954
6954
|
if (this.weatherLayers[m].data)
|
|
6955
|
-
|
|
6955
|
+
b = this.weatherLayers[m].data;
|
|
6956
6956
|
else {
|
|
6957
6957
|
const y = this.weatherLayers[m].raw;
|
|
6958
6958
|
if (y) {
|
|
6959
6959
|
const u = [];
|
|
6960
6960
|
for (const v in y.Polygon) {
|
|
6961
|
-
const
|
|
6962
|
-
for (const
|
|
6961
|
+
const g = y.Polygon[v];
|
|
6962
|
+
for (const w of g)
|
|
6963
6963
|
u.push(
|
|
6964
|
-
C.polygon(
|
|
6964
|
+
C.polygon(w, {
|
|
6965
6965
|
val: Number(v)
|
|
6966
6966
|
})
|
|
6967
6967
|
);
|
|
6968
6968
|
}
|
|
6969
|
-
|
|
6969
|
+
for (const v in y.Point) {
|
|
6970
|
+
const g = y.Point[v];
|
|
6971
|
+
for (const w of g)
|
|
6972
|
+
u.push(
|
|
6973
|
+
...C.points(w, {
|
|
6974
|
+
val: Number(v)
|
|
6975
|
+
}).features
|
|
6976
|
+
);
|
|
6977
|
+
}
|
|
6978
|
+
b = b.concat(u);
|
|
6970
6979
|
}
|
|
6971
6980
|
}
|
|
6972
6981
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sigWave elapsed: ", a, ", total: ", e += a);
|
|
6973
6982
|
} else if (m === "prmsl") {
|
|
6974
6983
|
if (this.weatherLayers[m].data)
|
|
6975
|
-
|
|
6984
|
+
b = this.weatherLayers[m].data;
|
|
6976
6985
|
else {
|
|
6977
6986
|
const y = this.weatherLayers[m].raw;
|
|
6978
6987
|
if (y) {
|
|
6979
6988
|
const u = [];
|
|
6980
6989
|
for (const v in y.LineString) {
|
|
6981
|
-
const
|
|
6982
|
-
for (const
|
|
6990
|
+
const g = y.LineString[v];
|
|
6991
|
+
for (const w of g)
|
|
6983
6992
|
u.push(
|
|
6984
|
-
C.lineString(
|
|
6993
|
+
C.lineString(w, {
|
|
6985
6994
|
val: Number(v)
|
|
6986
6995
|
})
|
|
6987
6996
|
);
|
|
6988
6997
|
}
|
|
6989
6998
|
for (const v in y.Point)
|
|
6990
|
-
y.Point[v].lng.forEach((
|
|
6991
|
-
|
|
6992
|
-
C.point([
|
|
6993
|
-
val: y.Point[v].val[
|
|
6994
|
-
type: y.Point[v].type[
|
|
6999
|
+
y.Point[v].lng.forEach((g, w) => {
|
|
7000
|
+
g = Re(g), u.push(
|
|
7001
|
+
C.point([g, v], {
|
|
7002
|
+
val: y.Point[v].val[w],
|
|
7003
|
+
type: y.Point[v].type[w]
|
|
6995
7004
|
})
|
|
6996
7005
|
);
|
|
6997
7006
|
});
|
|
6998
|
-
|
|
7007
|
+
b = b.concat(u);
|
|
6999
7008
|
}
|
|
7000
7009
|
}
|
|
7001
7010
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
|
|
7002
7011
|
} else if (m === "arctic" || m === "iceberg") {
|
|
7003
7012
|
if (this.weatherLayers[m].data)
|
|
7004
|
-
|
|
7013
|
+
b = this.weatherLayers[m].data;
|
|
7005
7014
|
else {
|
|
7006
7015
|
const y = this.weatherLayers[m].raw;
|
|
7007
7016
|
if (y) {
|
|
7008
7017
|
const u = [];
|
|
7009
7018
|
for (const v in y.LineString) {
|
|
7010
|
-
const
|
|
7011
|
-
for (const
|
|
7019
|
+
const g = y.LineString[v];
|
|
7020
|
+
for (const w of g)
|
|
7012
7021
|
u.push(
|
|
7013
|
-
C.lineString(
|
|
7022
|
+
C.lineString(w, {
|
|
7014
7023
|
val: Number(v)
|
|
7015
7024
|
})
|
|
7016
7025
|
);
|
|
7017
7026
|
}
|
|
7018
|
-
|
|
7027
|
+
b = b.concat(u);
|
|
7019
7028
|
}
|
|
7020
7029
|
}
|
|
7021
7030
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
7022
7031
|
}
|
|
7023
|
-
console.log(m, " elapsed: ", a, ", total: ", e += a),
|
|
7032
|
+
console.log(m, " elapsed: ", a, ", total: ", e += a), b.length && (this.weatherLayers[m].data = C.featureCollection(b)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
|
|
7024
7033
|
}
|
|
7025
7034
|
},
|
|
7026
7035
|
handleDragEndWithZoom4Image() {
|
|
@@ -7083,13 +7092,13 @@ const Yo = {
|
|
|
7083
7092
|
}
|
|
7084
7093
|
},
|
|
7085
7094
|
async handlePointChange(t) {
|
|
7086
|
-
const e = this.ts ?
|
|
7095
|
+
const e = this.ts ? ae(this.ts) : ae(), a = {
|
|
7087
7096
|
lat: t.lat,
|
|
7088
7097
|
lng: t.lng,
|
|
7089
7098
|
ts: e.utc().format(),
|
|
7090
7099
|
wt: !0,
|
|
7091
7100
|
src: this.source
|
|
7092
|
-
}, r = await
|
|
7101
|
+
}, r = await ne.get(`${this.gateway}/api/arc/meteo/query`, {
|
|
7093
7102
|
params: a,
|
|
7094
7103
|
headers: {
|
|
7095
7104
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -7101,21 +7110,21 @@ const Yo = {
|
|
|
7101
7110
|
});
|
|
7102
7111
|
},
|
|
7103
7112
|
handle3dToggle(t) {
|
|
7104
|
-
var e, a, r, i, o, n, s, c, h, d, p, f, m,
|
|
7105
|
-
t ? (this.map.setProjection("globe"), this.mapProjection = "globe", (a = this.map) != null && a.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((d = this.map) == null || d.moveLayer((h = this.viewport) == null ? void 0 : h.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (f = this.map) != null && f.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((m = this.map) != null && m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((y = this.map) == null || y.moveLayer((
|
|
7113
|
+
var e, a, r, i, o, n, s, c, h, d, p, f, m, b, y, u, v, g, w, k;
|
|
7114
|
+
t ? (this.map.setProjection("globe"), this.mapProjection = "globe", (a = this.map) != null && a.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((d = this.map) == null || d.moveLayer((h = this.viewport) == null ? void 0 : h.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (f = this.map) != null && f.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((m = this.map) != null && m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((y = this.map) == null || y.moveLayer((b = this.viewport) == null ? void 0 : b.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) && ((g = this.map) != null && g.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((k = this.map) == null || k.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
7106
7115
|
},
|
|
7107
7116
|
handleParticle(t) {
|
|
7108
7117
|
this.particleFactor = t, this.fetchWeatherLayers({ tropicals: !1 });
|
|
7109
7118
|
}
|
|
7110
7119
|
}
|
|
7111
|
-
},
|
|
7120
|
+
}, Jo = {
|
|
7112
7121
|
key: 0,
|
|
7113
7122
|
className: "map-gl-home"
|
|
7114
7123
|
};
|
|
7115
|
-
function
|
|
7116
|
-
var
|
|
7117
|
-
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), f = z("IdmTropicals"), m = z("IdmCurrents"),
|
|
7118
|
-
return a.map ? (
|
|
7124
|
+
function Xo(t, e, a, r, i, o) {
|
|
7125
|
+
var ie, J, Y, ve, Q, E, V, _e, K, we, re, oe, se, ze, Pe, Te, Ee, Ie, We, Ve, Ue, Ge, He, Ze, Je, Xe;
|
|
7126
|
+
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), f = z("IdmTropicals"), m = z("IdmCurrents"), b = z("IdmCurrentParticle"), y = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), g = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), B = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), Z = z("IdmLoadLine"), pe = z("IdmTimezone"), me = z("IdmVRA"), ue = z("IdmSpecialArea"), ye = z("IdmTerminator"), fe = z("IdmLatLng"), ge = z("IdmMeasure"), be = z("IdmPoint");
|
|
7127
|
+
return a.map ? (L(), x("div", Jo, [
|
|
7119
7128
|
P(n, I({
|
|
7120
7129
|
ref: "layer",
|
|
7121
7130
|
map: a.map,
|
|
@@ -7124,39 +7133,39 @@ function Ko(t, e, a, r, i, o) {
|
|
|
7124
7133
|
}, t.$attrs, {
|
|
7125
7134
|
onWeather: o.handleWeatherLayerChange,
|
|
7126
7135
|
onOther: o.handleOtherLayerChange,
|
|
7127
|
-
onCoordinate: e[0] || (e[0] = (
|
|
7128
|
-
onMeasure: e[1] || (e[1] = (
|
|
7129
|
-
onPoint: e[2] || (e[2] = (
|
|
7136
|
+
onCoordinate: e[0] || (e[0] = (ee) => i.showCoord = ee),
|
|
7137
|
+
onMeasure: e[1] || (e[1] = (ee) => i.showMeasure = ee),
|
|
7138
|
+
onPoint: e[2] || (e[2] = (ee) => i.showPoint = ee),
|
|
7130
7139
|
on3d: o.handle3dToggle,
|
|
7131
|
-
onToggleVersion: e[3] || (e[3] = (
|
|
7140
|
+
onToggleVersion: e[3] || (e[3] = (ee) => i.toggleVersion = ee)
|
|
7132
7141
|
}), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d"]),
|
|
7133
7142
|
P(s, I({
|
|
7134
7143
|
map: a.map,
|
|
7135
7144
|
token: a.token,
|
|
7136
|
-
enabled: (
|
|
7145
|
+
enabled: (ie = i.otherLayers) == null ? void 0 : ie.enc,
|
|
7137
7146
|
"toggle-version": i.toggleVersion
|
|
7138
7147
|
}, t.$attrs, {
|
|
7139
|
-
onEnc: e[4] || (e[4] = (
|
|
7148
|
+
onEnc: e[4] || (e[4] = (ee) => i.enc = ee)
|
|
7140
7149
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
7141
7150
|
P(c, I({
|
|
7142
7151
|
map: a.map,
|
|
7143
|
-
"sig-wave": (
|
|
7152
|
+
"sig-wave": (J = i.weatherLayers) == null ? void 0 : J["sig-wave-height"],
|
|
7144
7153
|
"before-layer": a.beforeLayer
|
|
7145
7154
|
}, t.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
|
|
7146
7155
|
P(h, I({
|
|
7147
7156
|
map: a.map,
|
|
7148
|
-
swell: (
|
|
7157
|
+
swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
|
|
7149
7158
|
"before-layer": a.beforeLayer
|
|
7150
7159
|
}, t.$attrs), null, 16, ["map", "swell", "before-layer"]),
|
|
7151
7160
|
P(d, I({
|
|
7152
7161
|
map: a.map,
|
|
7153
|
-
prmsl: (
|
|
7162
|
+
prmsl: (ve = i.weatherLayers) == null ? void 0 : ve.prmsl,
|
|
7154
7163
|
"before-layer": a.beforeLayer,
|
|
7155
7164
|
"active-weather-layers": i.activeWeatherLayers
|
|
7156
7165
|
}, t.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
7157
7166
|
P(p, I({
|
|
7158
7167
|
map: a.map,
|
|
7159
|
-
iceberg: (
|
|
7168
|
+
iceberg: (Q = i.weatherLayers) == null ? void 0 : Q.iceberg,
|
|
7160
7169
|
"before-layer": a.beforeLayer
|
|
7161
7170
|
}, t.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
7162
7171
|
P(f, I({
|
|
@@ -7168,16 +7177,16 @@ function Ko(t, e, a, r, i, o) {
|
|
|
7168
7177
|
P(m, I({
|
|
7169
7178
|
map: a.map,
|
|
7170
7179
|
"map-projection": i.mapProjection,
|
|
7171
|
-
current: (
|
|
7180
|
+
current: (V = i.weatherLayers) == null ? void 0 : V.current,
|
|
7172
7181
|
"before-layer": a.beforeLayer,
|
|
7173
7182
|
"show-particle": i.showCurrentParticle,
|
|
7174
7183
|
"margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
|
|
7175
7184
|
"toggle-version": i.toggleVersion,
|
|
7176
7185
|
"weather-layers": i.weatherLayers
|
|
7177
7186
|
}, t.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
|
|
7178
|
-
P(
|
|
7187
|
+
P(b, I({
|
|
7179
7188
|
viewport: i.viewport,
|
|
7180
|
-
factor: (
|
|
7189
|
+
factor: (_e = i.weatherLayers) == null ? void 0 : _e["current-particle"],
|
|
7181
7190
|
"before-layer": a.beforeLayer,
|
|
7182
7191
|
"toggle-version": i.toggleVersion
|
|
7183
7192
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
@@ -7185,8 +7194,8 @@ function Ko(t, e, a, r, i, o) {
|
|
|
7185
7194
|
ref: "windBarb",
|
|
7186
7195
|
map: a.map,
|
|
7187
7196
|
"map-projection": i.mapProjection,
|
|
7188
|
-
wind: (
|
|
7189
|
-
current: (
|
|
7197
|
+
wind: (K = i.weatherLayers) == null ? void 0 : K.wind,
|
|
7198
|
+
current: (we = i.weatherLayers) == null ? void 0 : we.current,
|
|
7190
7199
|
"before-layer": a.beforeLayer,
|
|
7191
7200
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
7192
7201
|
"show-particle": i.showWindParticle
|
|
@@ -7197,23 +7206,23 @@ function Ko(t, e, a, r, i, o) {
|
|
|
7197
7206
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
|
|
7198
7207
|
P(u, I({
|
|
7199
7208
|
viewport: i.viewport,
|
|
7200
|
-
factor: (
|
|
7209
|
+
factor: (re = i.weatherLayers) == null ? void 0 : re["wind-particle"],
|
|
7201
7210
|
"before-layer": a.beforeLayer,
|
|
7202
7211
|
"toggle-version": i.toggleVersion
|
|
7203
7212
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7204
7213
|
P(v, I({
|
|
7205
7214
|
viewport: i.viewport,
|
|
7206
|
-
factor: (
|
|
7215
|
+
factor: (oe = i.weatherLayers) == null ? void 0 : oe.precip3h,
|
|
7207
7216
|
"before-layer": a.beforeLayer,
|
|
7208
7217
|
"toggle-version": i.toggleVersion
|
|
7209
7218
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7210
|
-
P(
|
|
7219
|
+
P(g, I({
|
|
7211
7220
|
viewport: i.viewport,
|
|
7212
|
-
factor: (
|
|
7221
|
+
factor: (se = i.weatherLayers) == null ? void 0 : se.visibility,
|
|
7213
7222
|
"before-layer": a.beforeLayer,
|
|
7214
7223
|
"toggle-version": i.toggleVersion
|
|
7215
7224
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7216
|
-
P(
|
|
7225
|
+
P(w, I({
|
|
7217
7226
|
viewport: i.viewport,
|
|
7218
7227
|
factor: (ze = i.weatherLayers) == null ? void 0 : ze["water-temp"],
|
|
7219
7228
|
"before-layer": a.beforeLayer,
|
|
@@ -7248,67 +7257,67 @@ function Ko(t, e, a, r, i, o) {
|
|
|
7248
7257
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7249
7258
|
P(W, I({
|
|
7250
7259
|
map: a.map,
|
|
7251
|
-
zone: (
|
|
7260
|
+
zone: (Ve = i.otherLayers) == null ? void 0 : Ve["alert-zones"],
|
|
7252
7261
|
"before-layer": a.beforeLayer
|
|
7253
7262
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7254
7263
|
P(O, I({
|
|
7255
7264
|
map: a.map,
|
|
7256
|
-
port: (
|
|
7265
|
+
port: (Ue = i.otherLayers) == null ? void 0 : Ue.ports,
|
|
7257
7266
|
"before-layer": a.beforeLayer
|
|
7258
7267
|
}, t.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
7259
|
-
P(
|
|
7268
|
+
P(Z, I({
|
|
7260
7269
|
map: a.map,
|
|
7261
|
-
line: (
|
|
7270
|
+
line: (Ge = i.otherLayers) == null ? void 0 : Ge["load-lines"],
|
|
7262
7271
|
"before-layer": a.beforeLayer
|
|
7263
7272
|
}, t.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
7264
|
-
P(
|
|
7273
|
+
P(pe, I({
|
|
7265
7274
|
map: a.map,
|
|
7266
|
-
zone: (
|
|
7275
|
+
zone: (He = i.otherLayers) == null ? void 0 : He["time-zones"],
|
|
7267
7276
|
"before-layer": a.beforeLayer
|
|
7268
7277
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7269
|
-
P(
|
|
7278
|
+
P(me, I({
|
|
7270
7279
|
map: a.map,
|
|
7271
|
-
area: (
|
|
7280
|
+
area: (Ze = i.otherLayers) == null ? void 0 : Ze["voluntary-reporting-area"],
|
|
7272
7281
|
"before-layer": a.beforeLayer
|
|
7273
7282
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7274
|
-
P(
|
|
7283
|
+
P(ue, I({
|
|
7275
7284
|
map: a.map,
|
|
7276
|
-
area: (
|
|
7285
|
+
area: (Je = i.otherLayers) == null ? void 0 : Je["special-area"],
|
|
7277
7286
|
"before-layer": a.beforeLayer
|
|
7278
7287
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7279
|
-
P(
|
|
7288
|
+
P(ye, I({
|
|
7280
7289
|
map: a.map,
|
|
7281
|
-
area: (
|
|
7290
|
+
area: (Xe = i.otherLayers) == null ? void 0 : Xe["day-night"]
|
|
7282
7291
|
}, t.$attrs), null, 16, ["map", "area"]),
|
|
7283
|
-
P(
|
|
7292
|
+
P(fe, I({
|
|
7284
7293
|
map: a.map,
|
|
7285
7294
|
show: i.showCoord,
|
|
7286
7295
|
"toggle-version": i.toggleVersion
|
|
7287
7296
|
}, t.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
7288
|
-
P(
|
|
7297
|
+
P(ge, I({
|
|
7289
7298
|
map: a.map,
|
|
7290
7299
|
show: i.showMeasure
|
|
7291
7300
|
}, t.$attrs), null, 16, ["map", "show"]),
|
|
7292
|
-
P(
|
|
7301
|
+
P(be, I({
|
|
7293
7302
|
map: a.map,
|
|
7294
7303
|
show: i.showPoint,
|
|
7295
7304
|
meteo: i.meteo
|
|
7296
7305
|
}, t.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
|
|
7297
7306
|
])) : $("", !0);
|
|
7298
7307
|
}
|
|
7299
|
-
const
|
|
7308
|
+
const qo = /* @__PURE__ */ T(Zo, [["render", Xo]]), os = {
|
|
7300
7309
|
install(t) {
|
|
7301
|
-
t.component("MapboxGL",
|
|
7310
|
+
t.component("MapboxGL", qo), t.component("TropicalGL", Qe), t.component("LatLngGL", Ke);
|
|
7302
7311
|
}
|
|
7303
7312
|
};
|
|
7304
7313
|
export {
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7314
|
+
Ke as LatLngGL,
|
|
7315
|
+
qo as MapboxGL,
|
|
7316
|
+
os as MapboxGLPlugin,
|
|
7317
|
+
Jt as MapboxHelper,
|
|
7318
|
+
U as ParticleSchema,
|
|
7319
|
+
Qe as TropicalGL,
|
|
7320
|
+
je as Viewport,
|
|
7321
|
+
Le as WebGL,
|
|
7313
7322
|
N as WebGLSchema
|
|
7314
7323
|
};
|