@idmwx/idmui-gl3 4.1.4 → 4.1.6
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 +612 -608
- package/dist/index.umd.cjs +13 -13
- 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
|
|
4
|
-
import { LayerHelper as
|
|
5
|
-
import { resolveComponent as z, openBlock as
|
|
1
|
+
var Fe = Object.defineProperty;
|
|
2
|
+
var $e = (a, e, t) => e in a ? Fe(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
|
+
var I = (a, e, t) => ($e(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { LayerHelper as Pe, CompanyHelper as Ce, convertToStandardLng as we } from "@idmwx/idmwx-base";
|
|
5
|
+
import { resolveComponent as z, openBlock as x, createElementBlock as _, createElementVNode as l, normalizeStyle as $, normalizeClass as M, Fragment as xe, renderList as _e, toDisplayString as S, createVNode as P, withCtx as Ue, createTextVNode as Ne, createCommentVNode as B, withDirectives as Se, createStaticVNode as Ve, vShow as ke, mergeProps as R } from "vue";
|
|
6
6
|
import * as C from "@turf/turf";
|
|
7
|
-
import
|
|
7
|
+
import Ze from "@mapbox/sphericalmercator";
|
|
8
8
|
import Z from "moment";
|
|
9
|
-
import
|
|
10
|
-
import { TropicalHelper as
|
|
11
|
-
import
|
|
9
|
+
import K from "mapbox-gl";
|
|
10
|
+
import { TropicalHelper as We, LngLatHelper as F, LaneHelper as Q } from "@idm-plugin/geo";
|
|
11
|
+
import re from "axios";
|
|
12
12
|
const T = (a, e) => {
|
|
13
13
|
const t = a.__vccOpts || a;
|
|
14
14
|
for (const [r, i] of e)
|
|
15
15
|
t[r] = i;
|
|
16
16
|
return t;
|
|
17
|
-
},
|
|
17
|
+
}, He = {
|
|
18
18
|
name: "IdmGlLayer",
|
|
19
19
|
props: {
|
|
20
20
|
map: {
|
|
@@ -49,8 +49,8 @@ const T = (a, e) => {
|
|
|
49
49
|
autoActive: !0,
|
|
50
50
|
otherLayers: [],
|
|
51
51
|
layers: {
|
|
52
|
-
weather: [...
|
|
53
|
-
other: [...
|
|
52
|
+
weather: [...Pe.WEATHER_LAYERS],
|
|
53
|
+
other: [...Pe.OTHER_LAYERS]
|
|
54
54
|
},
|
|
55
55
|
weatherLayersCache: "weatherLayersCache",
|
|
56
56
|
autoActiveCache: "autoActiveCache",
|
|
@@ -150,124 +150,124 @@ const T = (a, e) => {
|
|
|
150
150
|
this.source = a, this.handleConfirm();
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
},
|
|
154
|
-
lt
|
|
155
|
-
], ht = { class: "bar-item tool-bars" }, dt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), pt = [
|
|
156
|
-
dt
|
|
157
|
-
], mt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), ut = [
|
|
158
|
-
mt
|
|
159
|
-
], yt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), ft = [
|
|
160
|
-
yt
|
|
161
|
-
], gt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), bt = [
|
|
162
|
-
gt
|
|
163
|
-
], vt = ["onClick"], _t = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), wt = /* @__PURE__ */ l("i", { class: "iconfont" }, "", -1), Lt = [
|
|
164
|
-
wt
|
|
165
|
-
], xt = { class: "weather-layers" }, Ct = {
|
|
153
|
+
}, Ge = { class: "idm-gl3-layer" }, Je = { class: "bar-item layer-bars" }, Xe = { class: "bar-item tool-bars" }, qe = ["onClick"], Ye = { class: "weather-layers" }, Qe = {
|
|
166
154
|
class: "layers-title",
|
|
167
155
|
style: { display: "flex", "align-items": "center", "justify-content": "space-between" }
|
|
168
|
-
},
|
|
169
|
-
function
|
|
156
|
+
}, Ke = { style: { "font-size": "12px" } }, et = { class: "layers-body" }, tt = ["onClick"], at = { class: "other-layers" }, it = { class: "layers-body" }, rt = ["onClick"], ot = { class: "source-layers" }, st = { class: "layers-body model-box" };
|
|
157
|
+
function nt(a, e, t, r, i, o) {
|
|
170
158
|
const n = z("ElScrollbar");
|
|
171
|
-
return
|
|
159
|
+
return x(), _("div", Ge, [
|
|
172
160
|
l("div", {
|
|
173
161
|
class: "menu-bar-box",
|
|
174
|
-
style:
|
|
162
|
+
style: $({ top: t.top + 10 + "px", right: i.right + "px" })
|
|
175
163
|
}, [
|
|
176
|
-
l("div",
|
|
164
|
+
l("div", Je, [
|
|
177
165
|
l("div", {
|
|
178
166
|
class: M(i.showLayers ? "menu-icon active" : "menu-icon"),
|
|
179
167
|
onClick: e[0] || (e[0] = (...s) => o.handleMenuToggle && o.handleMenuToggle(...s))
|
|
180
|
-
},
|
|
168
|
+
}, e[8] || (e[8] = [
|
|
169
|
+
l("span", { class: "iconfont" }, "", -1)
|
|
170
|
+
]), 2)
|
|
181
171
|
])
|
|
182
172
|
], 4),
|
|
183
173
|
l("div", {
|
|
184
174
|
class: "menu-bar-box",
|
|
185
|
-
style:
|
|
175
|
+
style: $({ top: t.top + 160 + "px", right: i.right + "px" })
|
|
186
176
|
}, [
|
|
187
|
-
l("div",
|
|
177
|
+
l("div", Xe, [
|
|
188
178
|
l("div", {
|
|
189
179
|
class: M(i.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
190
180
|
onClick: e[1] || (e[1] = (...s) => o.handleMeasureToggle && o.handleMeasureToggle(...s))
|
|
191
|
-
},
|
|
181
|
+
}, e[9] || (e[9] = [
|
|
182
|
+
l("span", { class: "iconfont" }, "", -1)
|
|
183
|
+
]), 2),
|
|
192
184
|
l("div", {
|
|
193
185
|
class: M(i.showPoint ? "menu-icon active" : "menu-icon"),
|
|
194
186
|
onClick: e[2] || (e[2] = (...s) => o.handlePointToggle && o.handlePointToggle(...s))
|
|
195
|
-
},
|
|
187
|
+
}, e[10] || (e[10] = [
|
|
188
|
+
l("span", { class: "iconfont" }, "", -1)
|
|
189
|
+
]), 2),
|
|
196
190
|
l("div", {
|
|
197
191
|
class: M(i.showCoord ? "menu-icon active" : "menu-icon"),
|
|
198
192
|
onClick: e[3] || (e[3] = (...s) => o.handleCoordToggle && o.handleCoordToggle(...s))
|
|
199
|
-
},
|
|
193
|
+
}, e[11] || (e[11] = [
|
|
194
|
+
l("span", { class: "iconfont" }, "", -1)
|
|
195
|
+
]), 2),
|
|
200
196
|
l("div", {
|
|
201
197
|
class: M(i.show3d ? "menu-icon active" : "menu-icon"),
|
|
202
198
|
onClick: e[4] || (e[4] = (...s) => o.handle3DToggle && o.handle3DToggle(...s))
|
|
203
|
-
},
|
|
199
|
+
}, e[12] || (e[12] = [
|
|
200
|
+
l("span", { class: "iconfont" }, "", -1)
|
|
201
|
+
]), 2)
|
|
204
202
|
])
|
|
205
203
|
], 4),
|
|
206
204
|
l("div", {
|
|
207
205
|
class: "active-layers",
|
|
208
|
-
style:
|
|
206
|
+
style: $({ right: i.right + "px", bottom: "100px" })
|
|
209
207
|
}, [
|
|
210
|
-
(
|
|
208
|
+
(x(!0), _(xe, null, _e(i.weatherLayers, (s) => (x(), _("div", {
|
|
211
209
|
key: s.key,
|
|
212
210
|
class: M(o.computeLayerClass(s, i.activeWeatherLayers)),
|
|
213
211
|
onClick: (c) => o.handleActiveWeatherLayerPick(s)
|
|
214
212
|
}, [
|
|
215
|
-
|
|
213
|
+
e[13] || (e[13] = l("div", { class: "checkbox" }, null, -1)),
|
|
216
214
|
l("span", null, S(s.name), 1)
|
|
217
|
-
], 10,
|
|
215
|
+
], 10, qe))), 128))
|
|
218
216
|
], 4),
|
|
219
217
|
l("div", {
|
|
220
218
|
class: "available-layers flex-center",
|
|
221
|
-
style:
|
|
219
|
+
style: $({ top: t.top + "px", right: i.showLayers ? "0px" : "-240px" })
|
|
222
220
|
}, [
|
|
223
221
|
l("div", {
|
|
224
222
|
class: "side-bar",
|
|
225
|
-
style:
|
|
223
|
+
style: $({ right: i.showLayers ? "0px" : "-240px" }),
|
|
226
224
|
onClick: e[5] || (e[5] = (...s) => o.handleMenuToggle && o.handleMenuToggle(...s))
|
|
227
|
-
},
|
|
225
|
+
}, e[14] || (e[14] = [
|
|
226
|
+
l("i", { class: "iconfont" }, "", -1)
|
|
227
|
+
]), 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: Ue(() => [
|
|
233
|
+
l("div", Ye, [
|
|
234
|
+
l("div", Qe, [
|
|
235
235
|
l("div", null, [
|
|
236
|
-
|
|
237
|
-
l("span",
|
|
236
|
+
e[15] || (e[15] = Ne(" Weather Layers ")),
|
|
237
|
+
l("span", Ke, "(" + S(i.weatherLayers.length) + "/12)", 1)
|
|
238
238
|
])
|
|
239
239
|
]),
|
|
240
|
-
l("div",
|
|
241
|
-
(
|
|
240
|
+
l("div", et, [
|
|
241
|
+
(x(!0), _(xe, null, _e(i.layers.weather, (s) => (x(), _(xe, {
|
|
242
242
|
key: s.key
|
|
243
243
|
}, [
|
|
244
|
-
s.hide ?
|
|
244
|
+
s.hide ? B("", !0) : (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
|
+
e[16] || (e[16] = l("div", { class: "checkbox" }, null, -1)),
|
|
250
250
|
l("span", null, S(s.name), 1)
|
|
251
|
-
], 10,
|
|
251
|
+
], 10, tt))
|
|
252
252
|
], 64))), 128))
|
|
253
253
|
])
|
|
254
254
|
]),
|
|
255
|
-
l("div",
|
|
256
|
-
|
|
257
|
-
l("div",
|
|
258
|
-
(
|
|
255
|
+
l("div", at, [
|
|
256
|
+
e[18] || (e[18] = l("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
257
|
+
l("div", it, [
|
|
258
|
+
(x(!0), _(xe, null, _e(i.layers.other, (s) => (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
|
+
e[17] || (e[17] = l("div", { class: "checkbox" }, null, -1)),
|
|
264
264
|
l("span", null, S(s.name), 1)
|
|
265
|
-
], 10,
|
|
265
|
+
], 10, rt))), 128))
|
|
266
266
|
])
|
|
267
267
|
]),
|
|
268
|
-
l("div",
|
|
269
|
-
|
|
270
|
-
l("div",
|
|
268
|
+
l("div", ot, [
|
|
269
|
+
e[19] || (e[19] = l("span", { class: "layers-title" }, "Forecast Model", -1)),
|
|
270
|
+
l("div", st, [
|
|
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 Bt(a, e, t, r, i, o) {
|
|
|
285
285
|
], 4)
|
|
286
286
|
]);
|
|
287
287
|
}
|
|
288
|
-
const
|
|
289
|
-
const
|
|
288
|
+
const lt = /* @__PURE__ */ T(He, [["render", nt]]);
|
|
289
|
+
const ct = {
|
|
290
290
|
name: "IdmWindBarb",
|
|
291
291
|
props: {
|
|
292
292
|
map: {
|
|
@@ -445,63 +445,63 @@ const Wt = {
|
|
|
445
445
|
this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
},
|
|
448
|
+
}, ht = { key: 0 }, dt = {
|
|
449
449
|
key: 0,
|
|
450
450
|
class: "iconfont active"
|
|
451
|
-
},
|
|
451
|
+
}, pt = {
|
|
452
452
|
key: 1,
|
|
453
453
|
class: "iconfont"
|
|
454
|
-
},
|
|
454
|
+
}, mt = {
|
|
455
455
|
key: 0,
|
|
456
456
|
class: "iconfont active"
|
|
457
|
-
},
|
|
457
|
+
}, ut = {
|
|
458
458
|
key: 1,
|
|
459
459
|
class: "iconfont"
|
|
460
460
|
};
|
|
461
|
-
function
|
|
461
|
+
function yt(a, e, t, r, i, o) {
|
|
462
462
|
var n;
|
|
463
|
-
return (n = t.wind) != null && n.active ? (
|
|
463
|
+
return (n = t.wind) != null && n.active ? (x(), _("div", ht, [
|
|
464
464
|
l("div", {
|
|
465
465
|
class: "flex-center tool-bars",
|
|
466
|
-
style:
|
|
466
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
|
|
467
467
|
}, [
|
|
468
|
-
t.mapProjection === "mercator" ? (
|
|
468
|
+
t.mapProjection === "mercator" ? (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
|
-
t.showParticle ? (
|
|
473
|
+
t.showParticle ? (x(), _("i", dt, "")) : (x(), _("i", pt, "")),
|
|
474
474
|
l("span", {
|
|
475
475
|
class: M(t.showParticle ? "active" : "")
|
|
476
476
|
}, "Wind Particles", 2)
|
|
477
|
-
])) :
|
|
478
|
-
t.showParticle ? (
|
|
477
|
+
])) : B("", !0),
|
|
478
|
+
t.showParticle ? (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 ? (x(), _("i", mt, "")) : (x(), _("i", ut, "")),
|
|
485
485
|
l("span", {
|
|
486
486
|
class: M(i.showFeather ? "active" : "")
|
|
487
487
|
}, "Wind Feather", 2)
|
|
488
|
-
])) :
|
|
488
|
+
])) : B("", !0)
|
|
489
489
|
], 4)
|
|
490
|
-
])) :
|
|
490
|
+
])) : B("", !0);
|
|
491
491
|
}
|
|
492
|
-
const
|
|
493
|
-
class
|
|
492
|
+
const ft = /* @__PURE__ */ T(ct, [["render", yt], ["__scopeId", "data-v-b6fb74d9"]]);
|
|
493
|
+
class Te {
|
|
494
494
|
constructor(e) {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
this.map = e, this.mercator = new
|
|
495
|
+
I(this, "map");
|
|
496
|
+
I(this, "mercator");
|
|
497
|
+
I(this, "rampColorLayer");
|
|
498
|
+
I(this, "rampColorSource");
|
|
499
|
+
I(this, "particleLayer");
|
|
500
|
+
I(this, "particleSource");
|
|
501
|
+
I(this, "rampColorCanvas");
|
|
502
|
+
I(this, "particleCanvas");
|
|
503
|
+
I(this, "ratio");
|
|
504
|
+
this.map = e, this.mercator = new Ze(), 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 Oe {
|
|
|
573
573
|
t !== r && this.map.setLayoutProperty(this.particleLayer, "visibility", r);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
class
|
|
576
|
+
class ye {
|
|
577
577
|
/**
|
|
578
578
|
* 创建着色器
|
|
579
579
|
* @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
|
|
@@ -714,8 +714,8 @@ class we {
|
|
|
714
714
|
}
|
|
715
715
|
const u = e.getBoundPixel(), y = e.map.getZoom() + 1, f = e.getWorldCopy(u, y);
|
|
716
716
|
for (const m of f) {
|
|
717
|
-
const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio, w = m[2] * e.ratio, [k,
|
|
718
|
-
t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER,
|
|
717
|
+
const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio, w = m[2] * e.ratio, [k, L, D, A] = [v, w + v, b, w + b], N = new Float32Array([k, D, L, D, k, A, k, A, L, D, L, A]);
|
|
718
|
+
t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, N, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
719
719
|
}
|
|
720
720
|
} catch (d) {
|
|
721
721
|
console.log(`render failed...${d}`);
|
|
@@ -763,10 +763,10 @@ class we {
|
|
|
763
763
|
});
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
|
-
class
|
|
766
|
+
class W {
|
|
767
767
|
}
|
|
768
768
|
// 顶点渲染
|
|
769
|
-
|
|
769
|
+
I(W, "vertexSchema", `
|
|
770
770
|
//canvas 坐标系上的坐标 (x, y)
|
|
771
771
|
attribute vec2 a_position; //像素坐标
|
|
772
772
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -781,7 +781,7 @@ R(N, "vertexSchema", `
|
|
|
781
781
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
782
782
|
v_texCoord = a_texCoord;
|
|
783
783
|
}`), // 类如风、流等u v双变量片元渲染
|
|
784
|
-
|
|
784
|
+
I(W, "uvFragmentSchema", `
|
|
785
785
|
precision mediump float;
|
|
786
786
|
uniform sampler2D u_image;
|
|
787
787
|
uniform vec2 u_range_u_v;
|
|
@@ -800,7 +800,7 @@ R(N, "uvFragmentSchema", `
|
|
|
800
800
|
|
|
801
801
|
gl_FragColor = color;
|
|
802
802
|
}`), // 类如浪、气压等单变量片元渲染
|
|
803
|
-
|
|
803
|
+
I(W, "fragmentSchema", `
|
|
804
804
|
precision mediump float;
|
|
805
805
|
uniform sampler2D u_image; // 灰度
|
|
806
806
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -813,7 +813,7 @@ R(N, "fragmentSchema", `
|
|
|
813
813
|
}`);
|
|
814
814
|
class V {
|
|
815
815
|
}
|
|
816
|
-
|
|
816
|
+
I(V, "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
|
-
}`),
|
|
840
|
+
}`), I(V, "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
|
-
}`),
|
|
862
|
+
}`), I(V, "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
|
-
}`),
|
|
872
|
+
}`), I(V, "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
|
-
}`),
|
|
884
|
+
}`), I(V, "updateFragmentSchema", `
|
|
885
885
|
precision mediump float;
|
|
886
886
|
|
|
887
887
|
uniform sampler2D u_particles;
|
|
@@ -960,14 +960,14 @@ R(V, "vertexSchema", `
|
|
|
960
960
|
fract(pos * 255.0),
|
|
961
961
|
floor(pos * 255.0) / 255.0);
|
|
962
962
|
}`);
|
|
963
|
-
class
|
|
963
|
+
class gt {
|
|
964
964
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
965
|
+
I(this, "token");
|
|
966
|
+
I(this, "mapboxCustomer");
|
|
967
|
+
I(this, "i4");
|
|
968
|
+
I(this, "hi");
|
|
969
|
+
I(this, "td");
|
|
970
|
+
I(this, "windy");
|
|
971
971
|
this.token = e, this.mapboxCustomer = {
|
|
972
972
|
source: this.initialOnlineStyle().sources.composite,
|
|
973
973
|
layers: {
|
|
@@ -2564,14 +2564,14 @@ class Gt {
|
|
|
2564
2564
|
};
|
|
2565
2565
|
}
|
|
2566
2566
|
}
|
|
2567
|
-
const
|
|
2567
|
+
const bt = {
|
|
2568
2568
|
name: "IdmWindParticle",
|
|
2569
2569
|
props: {
|
|
2570
2570
|
factor: {
|
|
2571
2571
|
type: Object
|
|
2572
2572
|
},
|
|
2573
2573
|
viewport: {
|
|
2574
|
-
type:
|
|
2574
|
+
type: Te
|
|
2575
2575
|
},
|
|
2576
2576
|
bottom: {
|
|
2577
2577
|
type: String,
|
|
@@ -2588,7 +2588,7 @@ const Jt = {
|
|
|
2588
2588
|
texture: void 0,
|
|
2589
2589
|
rampColor: void 0,
|
|
2590
2590
|
aPositionBuffer: void 0,
|
|
2591
|
-
webgl: new
|
|
2591
|
+
webgl: new ye(),
|
|
2592
2592
|
etime: void 0,
|
|
2593
2593
|
wrapper: void 0,
|
|
2594
2594
|
animation: void 0,
|
|
@@ -2678,7 +2678,7 @@ const Jt = {
|
|
|
2678
2678
|
[1, "rgb(91, 136, 161)"]
|
|
2679
2679
|
];
|
|
2680
2680
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
2681
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
2681
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.uvFragmentSchema);
|
|
2682
2682
|
this.program = e, this.aPositionBuffer = t;
|
|
2683
2683
|
}
|
|
2684
2684
|
this.handleParticleSetup();
|
|
@@ -2726,27 +2726,27 @@ const Jt = {
|
|
|
2726
2726
|
});
|
|
2727
2727
|
}
|
|
2728
2728
|
}
|
|
2729
|
-
},
|
|
2730
|
-
|
|
2731
|
-
Yt,
|
|
2732
|
-
Qt,
|
|
2733
|
-
Kt,
|
|
2734
|
-
ea,
|
|
2735
|
-
ta,
|
|
2736
|
-
aa,
|
|
2737
|
-
ia
|
|
2738
|
-
];
|
|
2739
|
-
function oa(a, e, t, r, i, o) {
|
|
2729
|
+
}, vt = { key: 0 };
|
|
2730
|
+
function Lt(a, e, t, r, i, o) {
|
|
2740
2731
|
var n;
|
|
2741
|
-
return (n = t.factor) != null && n.active ? (
|
|
2732
|
+
return (n = t.factor) != null && n.active ? (x(), _("div", vt, [
|
|
2742
2733
|
l("div", {
|
|
2743
2734
|
class: "legend-bars flex-center",
|
|
2744
|
-
style:
|
|
2745
|
-
},
|
|
2746
|
-
|
|
2735
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
2736
|
+
}, e[0] || (e[0] = [
|
|
2737
|
+
l("span", null, "kts", -1),
|
|
2738
|
+
l("span", null, "0", -1),
|
|
2739
|
+
l("span", null, "5", -1),
|
|
2740
|
+
l("span", null, "10", -1),
|
|
2741
|
+
l("span", null, "20", -1),
|
|
2742
|
+
l("span", null, "30", -1),
|
|
2743
|
+
l("span", null, "40", -1),
|
|
2744
|
+
l("span", null, "60", -1)
|
|
2745
|
+
]), 4)
|
|
2746
|
+
])) : B("", !0);
|
|
2747
2747
|
}
|
|
2748
|
-
const
|
|
2749
|
-
const
|
|
2748
|
+
const wt = /* @__PURE__ */ T(bt, [["render", Lt], ["__scopeId", "data-v-41a686d0"]]);
|
|
2749
|
+
const xt = {
|
|
2750
2750
|
name: "IdmCurrent",
|
|
2751
2751
|
props: {
|
|
2752
2752
|
map: {
|
|
@@ -2906,59 +2906,59 @@ const na = {
|
|
|
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
|
+
}, _t = { key: 0 }, Ct = {
|
|
2910
2910
|
key: 0,
|
|
2911
2911
|
class: "iconfont active"
|
|
2912
|
-
},
|
|
2912
|
+
}, St = {
|
|
2913
2913
|
key: 1,
|
|
2914
2914
|
class: "iconfont"
|
|
2915
|
-
},
|
|
2915
|
+
}, kt = {
|
|
2916
2916
|
key: 0,
|
|
2917
2917
|
class: "iconfont active"
|
|
2918
|
-
},
|
|
2918
|
+
}, zt = {
|
|
2919
2919
|
key: 1,
|
|
2920
2920
|
class: "iconfont"
|
|
2921
2921
|
};
|
|
2922
|
-
function
|
|
2922
|
+
function Pt(a, e, t, r, i, o) {
|
|
2923
2923
|
var n;
|
|
2924
|
-
return (n = t.current) != null && n.active ? (
|
|
2924
|
+
return (n = t.current) != null && n.active ? (x(), _("div", _t, [
|
|
2925
2925
|
l("div", {
|
|
2926
2926
|
class: "flex-center tool-bars",
|
|
2927
|
-
style:
|
|
2927
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
|
|
2928
2928
|
}, [
|
|
2929
|
-
t.mapProjection === "mercator" ? (
|
|
2929
|
+
t.mapProjection === "mercator" ? (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
|
-
t.showParticle ? (
|
|
2934
|
+
t.showParticle ? (x(), _("i", Ct, "")) : (x(), _("i", St, "")),
|
|
2935
2935
|
l("span", {
|
|
2936
2936
|
class: M(t.showParticle ? "active" : "")
|
|
2937
2937
|
}, "Current Particles", 2)
|
|
2938
|
-
])) :
|
|
2939
|
-
t.showParticle ? (
|
|
2938
|
+
])) : B("", !0),
|
|
2939
|
+
t.showParticle ? (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 ? (x(), _("i", kt, "")) : (x(), _("i", zt, "")),
|
|
2946
2946
|
l("span", {
|
|
2947
2947
|
class: M(i.showJson ? "active" : "")
|
|
2948
2948
|
}, "Current", 2)
|
|
2949
|
-
])) :
|
|
2949
|
+
])) : B("", !0)
|
|
2950
2950
|
], 4)
|
|
2951
|
-
])) :
|
|
2951
|
+
])) : B("", !0);
|
|
2952
2952
|
}
|
|
2953
|
-
const
|
|
2954
|
-
const
|
|
2953
|
+
const Tt = /* @__PURE__ */ T(xt, [["render", Pt], ["__scopeId", "data-v-ae630f43"]]);
|
|
2954
|
+
const Et = {
|
|
2955
2955
|
name: "IdmCurrentParticle",
|
|
2956
2956
|
props: {
|
|
2957
2957
|
factor: {
|
|
2958
2958
|
type: Object
|
|
2959
2959
|
},
|
|
2960
2960
|
viewport: {
|
|
2961
|
-
type:
|
|
2961
|
+
type: Te
|
|
2962
2962
|
},
|
|
2963
2963
|
bottom: {
|
|
2964
2964
|
type: String,
|
|
@@ -2975,7 +2975,7 @@ const ya = {
|
|
|
2975
2975
|
texture: void 0,
|
|
2976
2976
|
rampColor: void 0,
|
|
2977
2977
|
aPositionBuffer: void 0,
|
|
2978
|
-
webgl: new
|
|
2978
|
+
webgl: new ye(),
|
|
2979
2979
|
etime: void 0,
|
|
2980
2980
|
wrapper: void 0,
|
|
2981
2981
|
animation: void 0,
|
|
@@ -3056,7 +3056,7 @@ const ya = {
|
|
|
3056
3056
|
[1, "rgb(195,194,194)"]
|
|
3057
3057
|
];
|
|
3058
3058
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3059
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3059
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.uvFragmentSchema);
|
|
3060
3060
|
this.program = e, this.aPositionBuffer = t;
|
|
3061
3061
|
}
|
|
3062
3062
|
this.handleParticleSetup();
|
|
@@ -3108,25 +3108,25 @@ const ya = {
|
|
|
3108
3108
|
});
|
|
3109
3109
|
}
|
|
3110
3110
|
}
|
|
3111
|
-
},
|
|
3112
|
-
|
|
3113
|
-
ba,
|
|
3114
|
-
va,
|
|
3115
|
-
_a,
|
|
3116
|
-
wa,
|
|
3117
|
-
La,
|
|
3118
|
-
xa
|
|
3119
|
-
];
|
|
3120
|
-
function Sa(a, e, t, r, i, o) {
|
|
3111
|
+
}, Rt = { key: 0 };
|
|
3112
|
+
function It(a, e, t, r, i, o) {
|
|
3121
3113
|
var n;
|
|
3122
|
-
return (n = t.factor) != null && n.active ? (
|
|
3114
|
+
return (n = t.factor) != null && n.active ? (x(), _("div", Rt, [
|
|
3123
3115
|
l("div", {
|
|
3124
3116
|
class: "legend-bars flex-center",
|
|
3125
|
-
style:
|
|
3126
|
-
},
|
|
3127
|
-
|
|
3117
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3118
|
+
}, e[0] || (e[0] = [
|
|
3119
|
+
l("span", null, "kts", -1),
|
|
3120
|
+
l("span", null, "0", -1),
|
|
3121
|
+
l("span", null, "0.4", -1),
|
|
3122
|
+
l("span", null, "0.8", -1),
|
|
3123
|
+
l("span", null, "1.6", -1),
|
|
3124
|
+
l("span", null, "2", -1),
|
|
3125
|
+
l("span", null, "3.2", -1)
|
|
3126
|
+
]), 4)
|
|
3127
|
+
])) : B("", !0);
|
|
3128
3128
|
}
|
|
3129
|
-
const
|
|
3129
|
+
const Dt = /* @__PURE__ */ T(Et, [["render", It], ["__scopeId", "data-v-9115889b"]]), At = {
|
|
3130
3130
|
name: "IdmSigWave",
|
|
3131
3131
|
props: {
|
|
3132
3132
|
map: {
|
|
@@ -3237,10 +3237,10 @@ const ka = /* @__PURE__ */ T(ya, [["render", Sa], ["__scopeId", "data-v-9115889b
|
|
|
3237
3237
|
}
|
|
3238
3238
|
}
|
|
3239
3239
|
};
|
|
3240
|
-
function
|
|
3241
|
-
return
|
|
3240
|
+
function Mt(a, e, t, r, i, o) {
|
|
3241
|
+
return x(), _("div");
|
|
3242
3242
|
}
|
|
3243
|
-
const
|
|
3243
|
+
const Bt = /* @__PURE__ */ T(At, [["render", Mt]]), Nt = {
|
|
3244
3244
|
name: "IdmSwell",
|
|
3245
3245
|
props: {
|
|
3246
3246
|
map: {
|
|
@@ -3378,10 +3378,10 @@ const Ta = /* @__PURE__ */ T(za, [["render", Pa]]), Ea = {
|
|
|
3378
3378
|
}
|
|
3379
3379
|
}
|
|
3380
3380
|
};
|
|
3381
|
-
function
|
|
3382
|
-
return
|
|
3381
|
+
function Wt(a, e, t, r, i, o) {
|
|
3382
|
+
return x(), _("div");
|
|
3383
3383
|
}
|
|
3384
|
-
const
|
|
3384
|
+
const Ot = /* @__PURE__ */ T(Nt, [["render", Wt]]), jt = {
|
|
3385
3385
|
name: "IdmPrmsl",
|
|
3386
3386
|
props: {
|
|
3387
3387
|
map: {
|
|
@@ -3506,10 +3506,10 @@ const Ra = /* @__PURE__ */ T(Ea, [["render", Ia]]), Da = {
|
|
|
3506
3506
|
}
|
|
3507
3507
|
}
|
|
3508
3508
|
};
|
|
3509
|
-
function
|
|
3510
|
-
return
|
|
3509
|
+
function Ft(a, e, t, r, i, o) {
|
|
3510
|
+
return x(), _("div");
|
|
3511
3511
|
}
|
|
3512
|
-
const
|
|
3512
|
+
const $t = /* @__PURE__ */ T(jt, [["render", Ft]]), Ut = {
|
|
3513
3513
|
name: "IdmIceberg",
|
|
3514
3514
|
props: {
|
|
3515
3515
|
map: {
|
|
@@ -3566,11 +3566,11 @@ const Ma = /* @__PURE__ */ T(Da, [["render", Aa]]), $a = {
|
|
|
3566
3566
|
}
|
|
3567
3567
|
}
|
|
3568
3568
|
};
|
|
3569
|
-
function
|
|
3570
|
-
return
|
|
3569
|
+
function Vt(a, e, t, r, i, o) {
|
|
3570
|
+
return x(), _("div");
|
|
3571
3571
|
}
|
|
3572
|
-
const
|
|
3573
|
-
const
|
|
3572
|
+
const Zt = /* @__PURE__ */ T(Ut, [["render", Vt]]);
|
|
3573
|
+
const Ht = {
|
|
3574
3574
|
name: "IdmTropicals",
|
|
3575
3575
|
props: {
|
|
3576
3576
|
map: {
|
|
@@ -3590,7 +3590,7 @@ const Wa = {
|
|
|
3590
3590
|
emits: ["tropical", "tropicalProbability"],
|
|
3591
3591
|
data() {
|
|
3592
3592
|
return {
|
|
3593
|
-
helper:
|
|
3593
|
+
helper: Ce,
|
|
3594
3594
|
source: "tropicals-source",
|
|
3595
3595
|
clusterSource: "tropicals-cluster-source",
|
|
3596
3596
|
historyLayer: "tropicals-history-layer",
|
|
@@ -3940,7 +3940,7 @@ const Wa = {
|
|
|
3940
3940
|
}), y = (/* @__PURE__ */ new Date()).valueOf() - (g + u), console.log("[tropical] add elapsed: ", y, ", total: ", u += y));
|
|
3941
3941
|
}
|
|
3942
3942
|
this.handleDrawCircle();
|
|
3943
|
-
const d =
|
|
3943
|
+
const d = We.interpolate(this.tropicals, 1);
|
|
3944
3944
|
this.interpolateData = JSON.parse(JSON.stringify(d));
|
|
3945
3945
|
const p = this.interpolateData.filter((g) => g.properties.name === "kristy" && g.properties.model === "ecmwf");
|
|
3946
3946
|
console.log(p), this.handleDateChange();
|
|
@@ -3951,14 +3951,14 @@ const Wa = {
|
|
|
3951
3951
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
|
|
3952
3952
|
},
|
|
3953
3953
|
handleDateChange() {
|
|
3954
|
-
var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k,
|
|
3955
|
-
if ((a = this.interpolateMarkers) == null || a.forEach((
|
|
3956
|
-
const
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(
|
|
3954
|
+
var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, N, O, j, H, oe, se, ne, le, ce, he, de, ee;
|
|
3955
|
+
if ((a = this.interpolateMarkers) == null || a.forEach((G) => G == null ? void 0 : G.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
3956
|
+
const G = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = this.interpolateData.filter((E) => E.properties.date === G.format() && !E.properties.disabled), pe = this.handleComputePolygons(J), X = C.featureCollection([...J]);
|
|
3957
|
+
pe.forEach((E) => {
|
|
3958
|
+
X.features.push(E);
|
|
3959
|
+
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(X) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
3960
3960
|
type: "geojson",
|
|
3961
|
-
data:
|
|
3961
|
+
data: X
|
|
3962
3962
|
}), (o = this.map) == null || o.addLayer({
|
|
3963
3963
|
id: this.interpolateLineLayer,
|
|
3964
3964
|
type: "line",
|
|
@@ -3970,11 +3970,11 @@ const Wa = {
|
|
|
3970
3970
|
"line-width": 1
|
|
3971
3971
|
}
|
|
3972
3972
|
})), this.interpolateMarkers = [];
|
|
3973
|
-
for (const E of
|
|
3973
|
+
for (const E of J)
|
|
3974
3974
|
if (!E.properties.disabled) {
|
|
3975
3975
|
let U = "#f44336";
|
|
3976
|
-
((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) ? U = "#03f869" : ((p = (d = E.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((u = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : u.spd) < 24.5 ? U = "#f2f202" : ((f = (y = E.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((v = (m = E.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? U = "#ff9100" : ((w = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) >= 32.7 && ((
|
|
3977
|
-
const
|
|
3976
|
+
((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) ? U = "#03f869" : ((p = (d = E.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((u = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : u.spd) < 24.5 ? U = "#f2f202" : ((f = (y = E.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((v = (m = E.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? U = "#ff9100" : ((w = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) >= 32.7 && ((L = (k = E.properties) == null ? void 0 : k.wind) == null ? void 0 : L.spd) < 41.5 ? U = "#f44336" : ((A = (D = E.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((O = (N = E.properties) == null ? void 0 : N.wind) == null ? void 0 : O.spd) < 51 ? U = "#f903d0" : ((H = (j = E.properties) == null ? void 0 : j.wind) == null ? void 0 : H.spd) >= 51 ? U = "#8702f9" : U = "#f44336";
|
|
3977
|
+
const me = `<svg t="1719918955501"
|
|
3978
3978
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
3979
3979
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
3980
3980
|
<path
|
|
@@ -3988,23 +3988,23 @@ const Wa = {
|
|
|
3988
3988
|
<path
|
|
3989
3989
|
d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
|
|
3990
3990
|
fill="#ffffff" p-id="18386"></path>
|
|
3991
|
-
</svg>`,
|
|
3992
|
-
|
|
3993
|
-
const
|
|
3994
|
-
if (this.interpolateMarkers.push(
|
|
3995
|
-
const
|
|
3996
|
-
(
|
|
3991
|
+
</svg>`, q = document.createElement("div");
|
|
3992
|
+
q.className = "hurricane-hourly-marker", q.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${me}</div>`;
|
|
3993
|
+
const ue = new K.Marker(q).setLngLat(E.geometry.coordinates).addTo(this.map);
|
|
3994
|
+
if (this.interpolateMarkers.push(ue), (oe = E.properties) != null && oe.showCircle) {
|
|
3995
|
+
const te = { radius: 100, coordinates: E.geometry.coordinates }, ae = { radius: 200, coordinates: E.geometry.coordinates }, ie = { radius: 500, coordinates: E.geometry.coordinates };
|
|
3996
|
+
(se = this.circleSourceData) == null || se.features.push(
|
|
3997
|
+
C.circle(te.coordinates, te.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3998
|
+
), (ne = this.circleSourceData) == null || ne.features.push(
|
|
3999
|
+
C.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4000
|
+
), (le = this.circleSourceData) == null || le.features.push(
|
|
3997
4001
|
C.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3998
|
-
), (me = this.circleSourceData) == null || me.features.push(
|
|
3999
|
-
C.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4000
|
-
), (ue = this.circleSourceData) == null || ue.features.push(
|
|
4001
|
-
C.circle(oe.coordinates, oe.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4002
4002
|
);
|
|
4003
4003
|
}
|
|
4004
|
-
(
|
|
4004
|
+
(he = (ce = this.map) == null ? void 0 : ce.getSource(this.circleSource)) == null || he.setData(this.circleSourceData);
|
|
4005
4005
|
}
|
|
4006
4006
|
} else
|
|
4007
|
-
(
|
|
4007
|
+
(de = this.map) != null && de.getSource(this.interpolateSource) && ((ee = this.map) == null || ee.getSource(this.interpolateSource).setData(this.empty));
|
|
4008
4008
|
},
|
|
4009
4009
|
handleClick(a) {
|
|
4010
4010
|
var o, n, s, c, h, d, p, g;
|
|
@@ -4031,7 +4031,7 @@ const Wa = {
|
|
|
4031
4031
|
showCircle: (g = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : g.showCircle
|
|
4032
4032
|
}, this.showTropicals = !0;
|
|
4033
4033
|
const i = document.getElementById("active-tropical");
|
|
4034
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new
|
|
4034
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new K.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
4035
4035
|
},
|
|
4036
4036
|
handleForecastToggle(a) {
|
|
4037
4037
|
var r, i, o, n, s, c;
|
|
@@ -4116,86 +4116,86 @@ const Wa = {
|
|
|
4116
4116
|
return C.lineToPolygon(i, { properties: t });
|
|
4117
4117
|
}
|
|
4118
4118
|
}
|
|
4119
|
-
},
|
|
4119
|
+
}, Gt = {
|
|
4120
4120
|
id: "active-tropical",
|
|
4121
4121
|
class: "active-tropical"
|
|
4122
|
-
},
|
|
4122
|
+
}, Jt = { class: "header-box" }, Xt = { class: "main" }, qt = { key: 0 }, Yt = { class: "sub" }, Qt = {
|
|
4123
4123
|
id: "meteoBox",
|
|
4124
4124
|
class: "main-box"
|
|
4125
|
-
},
|
|
4125
|
+
}, Kt = { class: "content" }, ea = { class: "row" }, ta = {
|
|
4126
4126
|
class: "col col-left",
|
|
4127
4127
|
style: { "justify-content": "flex-start" }
|
|
4128
|
-
},
|
|
4128
|
+
}, aa = {
|
|
4129
4129
|
class: "col col-right",
|
|
4130
4130
|
style: { "justify-content": "flex-start" }
|
|
4131
|
-
},
|
|
4131
|
+
}, ia = { class: "row" }, ra = {
|
|
4132
4132
|
class: "col col-24",
|
|
4133
4133
|
style: { "justify-content": "flex-start" }
|
|
4134
|
-
},
|
|
4135
|
-
function
|
|
4134
|
+
}, oa = { class: "forecast-models" }, sa = ["onClick"], na = { class: "more" };
|
|
4135
|
+
function la(a, e, t, r, i, o) {
|
|
4136
4136
|
var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k;
|
|
4137
|
-
return
|
|
4138
|
-
l("div",
|
|
4137
|
+
return Se((x(), _("div", Gt, [
|
|
4138
|
+
l("div", Jt, [
|
|
4139
4139
|
l("div", {
|
|
4140
4140
|
class: "iconfont close-btn",
|
|
4141
|
-
onClick: e[0] || (e[0] = (
|
|
4141
|
+
onClick: e[0] || (e[0] = (L) => i.showTropicals = !1)
|
|
4142
4142
|
}, ""),
|
|
4143
|
-
l("div",
|
|
4144
|
-
(s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (
|
|
4145
|
-
|
|
4143
|
+
l("div", Xt, [
|
|
4144
|
+
(s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (x(), _("span", qt, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : B("", !0),
|
|
4145
|
+
Ne(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
|
|
4146
4146
|
]),
|
|
4147
|
-
l("div",
|
|
4147
|
+
l("div", Yt, " Last update: " + S(o.computeTime(((g = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : g.updated) || ((f = (y = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : y.filter((L) => !L.disabled)[0]) == null ? void 0 : f.date))), 1)
|
|
4148
4148
|
]),
|
|
4149
|
-
l("div",
|
|
4150
|
-
l("div",
|
|
4151
|
-
l("div",
|
|
4152
|
-
l("div",
|
|
4153
|
-
|
|
4149
|
+
l("div", Qt, [
|
|
4150
|
+
l("div", Kt, [
|
|
4151
|
+
l("div", ea, [
|
|
4152
|
+
l("div", ta, [
|
|
4153
|
+
e[2] || (e[2] = l("label", null, "Wind speed : ", -1)),
|
|
4154
4154
|
l("span", null, S(((v = (m = i.activeTropicals) == null ? void 0 : m.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
|
|
4155
4155
|
]),
|
|
4156
|
-
l("div",
|
|
4157
|
-
|
|
4156
|
+
l("div", aa, [
|
|
4157
|
+
e[3] || (e[3] = l("label", null, "Pressure : ", -1)),
|
|
4158
4158
|
l("span", null, S(((w = (b = i.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : w.pressure) || "-") + "[hPa]", 1)
|
|
4159
4159
|
])
|
|
4160
4160
|
]),
|
|
4161
|
-
l("div",
|
|
4162
|
-
l("div",
|
|
4163
|
-
|
|
4164
|
-
l("div",
|
|
4165
|
-
(
|
|
4166
|
-
var A,
|
|
4167
|
-
return
|
|
4161
|
+
l("div", ia, [
|
|
4162
|
+
l("div", ra, [
|
|
4163
|
+
e[4] || (e[4] = l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
4164
|
+
l("div", oa, [
|
|
4165
|
+
(x(!0), _(xe, null, _e((k = i.activeTropicals) == null ? void 0 : k.forecasts, (L, D) => {
|
|
4166
|
+
var A, N, O, j;
|
|
4167
|
+
return x(), _("div", {
|
|
4168
4168
|
key: D,
|
|
4169
4169
|
class: M([
|
|
4170
4170
|
"model",
|
|
4171
|
-
|
|
4172
|
-
D > 0 && D < ((
|
|
4171
|
+
L.disabled ? "" : "active",
|
|
4172
|
+
D > 0 && D < ((N = (A = i.activeTropicals) == null ? void 0 : A.forecasts) == null ? void 0 : N.length) - 1 && ((j = (O = i.activeTropicals) == null ? void 0 : O.forecasts) == null ? void 0 : j.length) > 2 ? "center-child" : ""
|
|
4173
4173
|
]),
|
|
4174
|
-
onClick: (
|
|
4174
|
+
onClick: (H) => o.handleForecastToggle(L)
|
|
4175
4175
|
}, [
|
|
4176
4176
|
l("span", {
|
|
4177
|
-
class: M(
|
|
4178
|
-
}, S(
|
|
4179
|
-
], 10,
|
|
4177
|
+
class: M(L.model)
|
|
4178
|
+
}, S(L.model), 3)
|
|
4179
|
+
], 10, sa);
|
|
4180
4180
|
}), 128))
|
|
4181
4181
|
])
|
|
4182
4182
|
])
|
|
4183
4183
|
]),
|
|
4184
|
-
|
|
4184
|
+
e[5] || (e[5] = Ve('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-b521de47></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon td" data-v-b521de47></div><div class="label" data-v-b521de47>TD</div></div><div class="legend" data-v-b521de47><div class="icon ts" data-v-b521de47></div><div class="label" data-v-b521de47>TS</div></div><div class="legend" data-v-b521de47><div class="icon sts" data-v-b521de47></div><div class="label" data-v-b521de47>STS</div></div><div class="legend" data-v-b521de47><div class="icon ty" data-v-b521de47></div><div class="label" data-v-b521de47>TY</div></div><div class="legend" data-v-b521de47><div class="icon sty" data-v-b521de47></div><div class="label" data-v-b521de47>STY</div></div><div class="legend" data-v-b521de47><div class="icon supper-ty" data-v-b521de47></div><div class="label" data-v-b521de47>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon history" data-v-b521de47></div><div class="label" data-v-b521de47>History</div></div><div class="legend" data-v-b521de47><div class="icon r7" data-v-b521de47></div><div class="label" data-v-b521de47>35kts Radii</div></div><div class="legend" data-v-b521de47><div class="icon r10" data-v-b521de47></div><div class="label" data-v-b521de47>50kts Radii</div></div></div>', 3))
|
|
4185
4185
|
]),
|
|
4186
|
-
l("div",
|
|
4186
|
+
l("div", na, [
|
|
4187
4187
|
l("div", {
|
|
4188
4188
|
class: "button",
|
|
4189
|
-
onClick: e[1] || (e[1] = (
|
|
4189
|
+
onClick: e[1] || (e[1] = (L) => o.handleStrikeProbability(i.activeTropicals))
|
|
4190
4190
|
}, "Strike Probability >>")
|
|
4191
4191
|
])
|
|
4192
4192
|
])
|
|
4193
4193
|
], 512)), [
|
|
4194
|
-
[
|
|
4194
|
+
[ke, i.showTropicals && !a.$attrs.hideTropicalsLegend]
|
|
4195
4195
|
]);
|
|
4196
4196
|
}
|
|
4197
|
-
const
|
|
4198
|
-
const
|
|
4197
|
+
const Oe = /* @__PURE__ */ T(Ht, [["render", la], ["__scopeId", "data-v-b521de47"]]);
|
|
4198
|
+
const ca = {
|
|
4199
4199
|
name: "IdmPrecip3h",
|
|
4200
4200
|
props: {
|
|
4201
4201
|
factor: {
|
|
@@ -4223,7 +4223,7 @@ const si = {
|
|
|
4223
4223
|
texture: void 0,
|
|
4224
4224
|
rampColor: void 0,
|
|
4225
4225
|
aPositionBuffer: void 0,
|
|
4226
|
-
webgl: new
|
|
4226
|
+
webgl: new ye(),
|
|
4227
4227
|
etime: void 0,
|
|
4228
4228
|
right: 10
|
|
4229
4229
|
};
|
|
@@ -4283,7 +4283,7 @@ const si = {
|
|
|
4283
4283
|
[1, "rgba(197,5,58,0.8)"]
|
|
4284
4284
|
];
|
|
4285
4285
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4286
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4286
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
|
|
4287
4287
|
this.program = e, this.aPositionBuffer = t;
|
|
4288
4288
|
}
|
|
4289
4289
|
},
|
|
@@ -4296,27 +4296,27 @@ const si = {
|
|
|
4296
4296
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4297
4297
|
}
|
|
4298
4298
|
}
|
|
4299
|
-
},
|
|
4300
|
-
|
|
4301
|
-
ci,
|
|
4302
|
-
hi,
|
|
4303
|
-
di,
|
|
4304
|
-
pi,
|
|
4305
|
-
mi,
|
|
4306
|
-
ui,
|
|
4307
|
-
yi
|
|
4308
|
-
];
|
|
4309
|
-
function gi(a, e, t, r, i, o) {
|
|
4299
|
+
}, ha = { key: 0 };
|
|
4300
|
+
function da(a, e, t, r, i, o) {
|
|
4310
4301
|
var n;
|
|
4311
|
-
return (n = t.factor) != null && n.active ? (
|
|
4302
|
+
return (n = t.factor) != null && n.active ? (x(), _("div", ha, [
|
|
4312
4303
|
l("div", {
|
|
4313
4304
|
class: "legend-bars flex-center",
|
|
4314
|
-
style:
|
|
4315
|
-
},
|
|
4316
|
-
|
|
4305
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4306
|
+
}, e[0] || (e[0] = [
|
|
4307
|
+
l("span", null, "mm", -1),
|
|
4308
|
+
l("span", null, "1.5", -1),
|
|
4309
|
+
l("span", null, "2", -1),
|
|
4310
|
+
l("span", null, "3", -1),
|
|
4311
|
+
l("span", null, "7", -1),
|
|
4312
|
+
l("span", null, "10", -1),
|
|
4313
|
+
l("span", null, "20", -1),
|
|
4314
|
+
l("span", null, "30", -1)
|
|
4315
|
+
]), 4)
|
|
4316
|
+
])) : B("", !0);
|
|
4317
4317
|
}
|
|
4318
|
-
const
|
|
4319
|
-
const
|
|
4318
|
+
const pa = /* @__PURE__ */ T(ca, [["render", da], ["__scopeId", "data-v-dec867b8"]]);
|
|
4319
|
+
const ma = {
|
|
4320
4320
|
name: "IdmVisibility",
|
|
4321
4321
|
props: {
|
|
4322
4322
|
factor: {
|
|
@@ -4344,7 +4344,7 @@ const vi = {
|
|
|
4344
4344
|
texture: void 0,
|
|
4345
4345
|
rampColor: void 0,
|
|
4346
4346
|
aPositionBuffer: void 0,
|
|
4347
|
-
webgl: new
|
|
4347
|
+
webgl: new ye(),
|
|
4348
4348
|
etime: void 0
|
|
4349
4349
|
};
|
|
4350
4350
|
},
|
|
@@ -4397,7 +4397,7 @@ const vi = {
|
|
|
4397
4397
|
[1, "rgba(144,144,144,0)"]
|
|
4398
4398
|
];
|
|
4399
4399
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4400
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4400
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
|
|
4401
4401
|
this.program = e, this.aPositionBuffer = t;
|
|
4402
4402
|
}
|
|
4403
4403
|
},
|
|
@@ -4410,25 +4410,25 @@ const vi = {
|
|
|
4410
4410
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4411
4411
|
}
|
|
4412
4412
|
}
|
|
4413
|
-
},
|
|
4414
|
-
|
|
4415
|
-
Li,
|
|
4416
|
-
xi,
|
|
4417
|
-
Ci,
|
|
4418
|
-
Si,
|
|
4419
|
-
ki
|
|
4420
|
-
];
|
|
4421
|
-
function Pi(a, e, t, r, i, o) {
|
|
4413
|
+
}, ua = { key: 0 };
|
|
4414
|
+
function ya(a, e, t, r, i, o) {
|
|
4422
4415
|
var n;
|
|
4423
|
-
return (n = t.factor) != null && n.active ? (
|
|
4416
|
+
return (n = t.factor) != null && n.active ? (x(), _("div", ua, [
|
|
4424
4417
|
l("div", {
|
|
4425
4418
|
class: "legend-bars flex-center",
|
|
4426
|
-
style:
|
|
4427
|
-
},
|
|
4428
|
-
|
|
4419
|
+
style: $([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
4420
|
+
}, e[0] || (e[0] = [
|
|
4421
|
+
l("span", null, "nm", -1),
|
|
4422
|
+
l("span", null, "0", -1),
|
|
4423
|
+
l("span", null, "0.5", -1),
|
|
4424
|
+
l("span", null, "1.5", -1),
|
|
4425
|
+
l("span", null, "3", -1),
|
|
4426
|
+
l("span", null, "9", -1)
|
|
4427
|
+
]), 4)
|
|
4428
|
+
])) : B("", !0);
|
|
4429
4429
|
}
|
|
4430
|
-
const
|
|
4431
|
-
const
|
|
4430
|
+
const fa = /* @__PURE__ */ T(ma, [["render", ya], ["__scopeId", "data-v-952dee5c"]]);
|
|
4431
|
+
const ga = {
|
|
4432
4432
|
name: "IdmWaterTemp",
|
|
4433
4433
|
props: {
|
|
4434
4434
|
factor: {
|
|
@@ -4456,7 +4456,7 @@ const Ei = {
|
|
|
4456
4456
|
texture: void 0,
|
|
4457
4457
|
rampColor: void 0,
|
|
4458
4458
|
aPositionBuffer: void 0,
|
|
4459
|
-
webgl: new
|
|
4459
|
+
webgl: new ye(),
|
|
4460
4460
|
etime: void 0,
|
|
4461
4461
|
right: 10
|
|
4462
4462
|
};
|
|
@@ -4517,7 +4517,7 @@ const Ei = {
|
|
|
4517
4517
|
//
|
|
4518
4518
|
];
|
|
4519
4519
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4520
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4520
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
|
|
4521
4521
|
this.program = e, this.aPositionBuffer = t;
|
|
4522
4522
|
}
|
|
4523
4523
|
},
|
|
@@ -4530,25 +4530,25 @@ const Ei = {
|
|
|
4530
4530
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4531
4531
|
}
|
|
4532
4532
|
}
|
|
4533
|
-
},
|
|
4534
|
-
|
|
4535
|
-
Di,
|
|
4536
|
-
Ai,
|
|
4537
|
-
Mi,
|
|
4538
|
-
$i,
|
|
4539
|
-
Bi
|
|
4540
|
-
];
|
|
4541
|
-
function Wi(a, e, t, r, i, o) {
|
|
4533
|
+
}, ba = { key: 0 };
|
|
4534
|
+
function va(a, e, t, r, i, o) {
|
|
4542
4535
|
var n;
|
|
4543
|
-
return (n = t.factor) != null && n.active ? (
|
|
4536
|
+
return (n = t.factor) != null && n.active ? (x(), _("div", ba, [
|
|
4544
4537
|
l("div", {
|
|
4545
4538
|
class: "legend-bars flex-center",
|
|
4546
|
-
style:
|
|
4547
|
-
},
|
|
4548
|
-
|
|
4539
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4540
|
+
}, e[0] || (e[0] = [
|
|
4541
|
+
l("span", null, "°C", -1),
|
|
4542
|
+
l("span", null, "0", -1),
|
|
4543
|
+
l("span", null, "10", -1),
|
|
4544
|
+
l("span", null, "20", -1),
|
|
4545
|
+
l("span", null, "30", -1),
|
|
4546
|
+
l("span", null, "40", -1)
|
|
4547
|
+
]), 4)
|
|
4548
|
+
])) : B("", !0);
|
|
4549
4549
|
}
|
|
4550
|
-
const
|
|
4551
|
-
const
|
|
4550
|
+
const La = /* @__PURE__ */ T(ga, [["render", va], ["__scopeId", "data-v-67e5094b"]]);
|
|
4551
|
+
const wa = {
|
|
4552
4552
|
name: "IdmTemp",
|
|
4553
4553
|
props: {
|
|
4554
4554
|
factor: {
|
|
@@ -4576,7 +4576,7 @@ const ji = {
|
|
|
4576
4576
|
texture: void 0,
|
|
4577
4577
|
rampColor: void 0,
|
|
4578
4578
|
aPositionBuffer: void 0,
|
|
4579
|
-
webgl: new
|
|
4579
|
+
webgl: new ye(),
|
|
4580
4580
|
etime: void 0,
|
|
4581
4581
|
right: 10
|
|
4582
4582
|
};
|
|
@@ -4640,7 +4640,7 @@ const ji = {
|
|
|
4640
4640
|
[1, "rgb(138, 43, 10)"]
|
|
4641
4641
|
];
|
|
4642
4642
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4643
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4643
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
|
|
4644
4644
|
this.program = e, this.aPositionBuffer = t;
|
|
4645
4645
|
}
|
|
4646
4646
|
},
|
|
@@ -4653,27 +4653,27 @@ const ji = {
|
|
|
4653
4653
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4654
4654
|
}
|
|
4655
4655
|
}
|
|
4656
|
-
},
|
|
4657
|
-
|
|
4658
|
-
Vi,
|
|
4659
|
-
Zi,
|
|
4660
|
-
Hi,
|
|
4661
|
-
Gi,
|
|
4662
|
-
Ji,
|
|
4663
|
-
Xi,
|
|
4664
|
-
qi
|
|
4665
|
-
];
|
|
4666
|
-
function Qi(a, e, t, r, i, o) {
|
|
4656
|
+
}, xa = { key: 0 };
|
|
4657
|
+
function _a(a, e, t, r, i, o) {
|
|
4667
4658
|
var n;
|
|
4668
|
-
return (n = t.factor) != null && n.active ? (
|
|
4659
|
+
return (n = t.factor) != null && n.active ? (x(), _("div", xa, [
|
|
4669
4660
|
l("div", {
|
|
4670
4661
|
class: "legend-bars flex-center",
|
|
4671
|
-
style:
|
|
4672
|
-
},
|
|
4673
|
-
|
|
4662
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4663
|
+
}, e[0] || (e[0] = [
|
|
4664
|
+
l("span", null, "°C", -1),
|
|
4665
|
+
l("span", null, "-20", -1),
|
|
4666
|
+
l("span", null, "-10", -1),
|
|
4667
|
+
l("span", null, "0", -1),
|
|
4668
|
+
l("span", null, "10", -1),
|
|
4669
|
+
l("span", null, "20", -1),
|
|
4670
|
+
l("span", null, "30", -1),
|
|
4671
|
+
l("span", null, "40", -1)
|
|
4672
|
+
]), 4)
|
|
4673
|
+
])) : B("", !0);
|
|
4674
4674
|
}
|
|
4675
|
-
const
|
|
4676
|
-
const
|
|
4675
|
+
const Ca = /* @__PURE__ */ T(wa, [["render", _a], ["__scopeId", "data-v-389ea886"]]);
|
|
4676
|
+
const Sa = {
|
|
4677
4677
|
name: "IdmArctic",
|
|
4678
4678
|
props: {
|
|
4679
4679
|
factor: {
|
|
@@ -4701,7 +4701,7 @@ const er = {
|
|
|
4701
4701
|
texture: void 0,
|
|
4702
4702
|
rampColor: void 0,
|
|
4703
4703
|
aPositionBuffer: void 0,
|
|
4704
|
-
webgl: new
|
|
4704
|
+
webgl: new ye(),
|
|
4705
4705
|
etime: void 0,
|
|
4706
4706
|
right: 10
|
|
4707
4707
|
};
|
|
@@ -4756,7 +4756,7 @@ const er = {
|
|
|
4756
4756
|
// 2m
|
|
4757
4757
|
];
|
|
4758
4758
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4759
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4759
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
|
|
4760
4760
|
this.program = e, this.aPositionBuffer = t;
|
|
4761
4761
|
}
|
|
4762
4762
|
},
|
|
@@ -4769,25 +4769,25 @@ const er = {
|
|
|
4769
4769
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4770
4770
|
}
|
|
4771
4771
|
}
|
|
4772
|
-
},
|
|
4773
|
-
|
|
4774
|
-
ir,
|
|
4775
|
-
rr,
|
|
4776
|
-
or,
|
|
4777
|
-
sr,
|
|
4778
|
-
nr
|
|
4779
|
-
];
|
|
4780
|
-
function cr(a, e, t, r, i, o) {
|
|
4772
|
+
}, ka = { key: 0 };
|
|
4773
|
+
function za(a, e, t, r, i, o) {
|
|
4781
4774
|
var n;
|
|
4782
|
-
return (n = t.factor) != null && n.active ? (
|
|
4775
|
+
return (n = t.factor) != null && n.active ? (x(), _("div", ka, [
|
|
4783
4776
|
l("div", {
|
|
4784
4777
|
class: "legend-bars flex-center",
|
|
4785
|
-
style:
|
|
4786
|
-
},
|
|
4787
|
-
|
|
4778
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4779
|
+
}, e[0] || (e[0] = [
|
|
4780
|
+
l("span", null, "m", -1),
|
|
4781
|
+
l("span", null, "0", -1),
|
|
4782
|
+
l("span", null, "0.5", -1),
|
|
4783
|
+
l("span", null, "1", -1),
|
|
4784
|
+
l("span", null, "1.5", -1),
|
|
4785
|
+
l("span", null, "2", -1)
|
|
4786
|
+
]), 4)
|
|
4787
|
+
])) : B("", !0);
|
|
4788
4788
|
}
|
|
4789
|
-
const
|
|
4790
|
-
const
|
|
4789
|
+
const Pa = /* @__PURE__ */ T(Sa, [["render", za], ["__scopeId", "data-v-db805141"]]);
|
|
4790
|
+
const Ta = {
|
|
4791
4791
|
name: "IdmPoint",
|
|
4792
4792
|
emits: ["point", "more"],
|
|
4793
4793
|
props: {
|
|
@@ -4809,7 +4809,7 @@ const dr = {
|
|
|
4809
4809
|
return {
|
|
4810
4810
|
showMeteo: !1,
|
|
4811
4811
|
meteoMarker: void 0,
|
|
4812
|
-
helper:
|
|
4812
|
+
helper: Ce
|
|
4813
4813
|
};
|
|
4814
4814
|
},
|
|
4815
4815
|
watch: {
|
|
@@ -4842,17 +4842,17 @@ const dr = {
|
|
|
4842
4842
|
},
|
|
4843
4843
|
computeLat() {
|
|
4844
4844
|
return function(a, e = 4) {
|
|
4845
|
-
return
|
|
4845
|
+
return F.lat2pretty(a, e).pretty;
|
|
4846
4846
|
};
|
|
4847
4847
|
},
|
|
4848
4848
|
computeLng() {
|
|
4849
4849
|
return function(a, e = 4) {
|
|
4850
|
-
return
|
|
4850
|
+
return F.lng2pretty(a, e).pretty;
|
|
4851
4851
|
};
|
|
4852
4852
|
},
|
|
4853
4853
|
roundPrecision() {
|
|
4854
4854
|
return function(a, e = 4) {
|
|
4855
|
-
return isNaN(a) ? "-" :
|
|
4855
|
+
return isNaN(a) ? "-" : F.roundPrecision(a, e);
|
|
4856
4856
|
};
|
|
4857
4857
|
}
|
|
4858
4858
|
},
|
|
@@ -4870,77 +4870,77 @@ const dr = {
|
|
|
4870
4870
|
var a;
|
|
4871
4871
|
if (this.meteo) {
|
|
4872
4872
|
const e = document.getElementById("point-meteo");
|
|
4873
|
-
this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new
|
|
4873
|
+
this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new K.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
|
|
4874
4874
|
}
|
|
4875
4875
|
}
|
|
4876
4876
|
}
|
|
4877
|
-
},
|
|
4877
|
+
}, Ea = {
|
|
4878
4878
|
id: "point-meteo",
|
|
4879
4879
|
class: "point-meteo"
|
|
4880
|
-
},
|
|
4880
|
+
}, Ra = { class: "meteo-box" }, Ia = { class: "header-box" }, Da = { class: "main" }, Aa = { class: "sub" }, Ma = { class: "main-box" }, Ba = { class: "flex-space" }, Na = { class: "flex-space" }, Wa = { class: "flex-space" }, Oa = { class: "flex-space" }, ja = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" }, Ua = { class: "flex-space" }, Va = { class: "flex-space" }, Za = {
|
|
4881
4881
|
key: 0,
|
|
4882
4882
|
class: "flex-space",
|
|
4883
4883
|
style: { "justify-content": "flex-end" }
|
|
4884
|
-
}
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
l("div", mr, [
|
|
4891
|
-
l("div", ur, [
|
|
4884
|
+
};
|
|
4885
|
+
function Ha(a, e, t, r, i, o) {
|
|
4886
|
+
var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, N, O, j, H, oe, se, ne, le, ce, he, de, ee, G, J, pe, X, E, U, me, q, ue, te, ae, ie, fe, ge, be, ve, Le;
|
|
4887
|
+
return Se((x(), _("div", Ea, [
|
|
4888
|
+
l("div", Ra, [
|
|
4889
|
+
l("div", Ia, [
|
|
4892
4890
|
l("div", {
|
|
4893
4891
|
class: "iconfont close",
|
|
4894
|
-
onClick: e[0] || (e[0] = (
|
|
4892
|
+
onClick: e[0] || (e[0] = (ze) => i.showMeteo = !1)
|
|
4895
4893
|
}, ""),
|
|
4896
|
-
l("div",
|
|
4897
|
-
l("div",
|
|
4894
|
+
l("div", Da, S(o.computeLat((n = t.meteo) == null ? void 0 : n.lat)) + "," + S(o.computeLng((s = t.meteo) == null ? void 0 : s.lng)), 1),
|
|
4895
|
+
l("div", Aa, S(o.computeTime((c = t.meteo) == null ? void 0 : c.utc)), 1)
|
|
4898
4896
|
]),
|
|
4899
|
-
l("div",
|
|
4900
|
-
l("div",
|
|
4901
|
-
|
|
4897
|
+
l("div", Ma, [
|
|
4898
|
+
l("div", Ba, [
|
|
4899
|
+
e[1] || (e[1] = l("label", null, "Wind", -1)),
|
|
4902
4900
|
l("span", null, S(((d = (h = t.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((g = (p = t.meteo) == null ? void 0 : p.wind) == null ? void 0 : g.kts, 1)) + "[kts]/" + S((y = (u = t.meteo) == null ? void 0 : u.wind) == null ? void 0 : y.scale) + "[BF]/" + S(o.roundPrecision((m = (f = t.meteo) == null ? void 0 : f.gusts) == null ? void 0 : m.kts, 1)) + "[kts]", 1)
|
|
4903
4901
|
]),
|
|
4904
|
-
l("div",
|
|
4905
|
-
|
|
4906
|
-
l("span", null, S(((w = (b = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((D = (
|
|
4902
|
+
l("div", Na, [
|
|
4903
|
+
e[2] || (e[2] = l("label", null, "Wind.Wave", -1)),
|
|
4904
|
+
l("span", null, S(((w = (b = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((D = (L = (k = t.meteo) == null ? void 0 : k.wave) == null ? void 0 : L.wd) == null ? void 0 : D.height, 1)) + "[m]/" + S(o.roundPrecision((O = (N = (A = t.meteo) == null ? void 0 : A.wave) == null ? void 0 : N.wd) == null ? void 0 : O.period, 1)) + "[s]", 1)
|
|
4907
4905
|
]),
|
|
4908
|
-
l("div",
|
|
4909
|
-
|
|
4910
|
-
l("span", null, S(((
|
|
4906
|
+
l("div", Wa, [
|
|
4907
|
+
e[3] || (e[3] = l("label", null, "Swell", -1)),
|
|
4908
|
+
l("span", null, S(((oe = (H = (j = t.meteo) == null ? void 0 : j.wave) == null ? void 0 : H.swell) == null ? void 0 : oe.direction) || "-") + "/" + S(o.roundPrecision((le = (ne = (se = t.meteo) == null ? void 0 : se.wave) == null ? void 0 : ne.swell) == null ? void 0 : le.height, 1)) + "[m]/" + S(o.roundPrecision((de = (he = (ce = t.meteo) == null ? void 0 : ce.wave) == null ? void 0 : he.swell) == null ? void 0 : de.period, 1)) + "[s]", 1)
|
|
4911
4909
|
]),
|
|
4912
|
-
l("div",
|
|
4913
|
-
|
|
4914
|
-
l("span", null, S(((
|
|
4910
|
+
l("div", Oa, [
|
|
4911
|
+
e[4] || (e[4] = l("label", null, "Sig.Wave", -1)),
|
|
4912
|
+
l("span", null, S(((J = (G = (ee = t.meteo) == null ? void 0 : ee.wave) == null ? void 0 : G.sig) == null ? void 0 : J.direction) || "-") + "/" + S(o.roundPrecision((E = (X = (pe = t.meteo) == null ? void 0 : pe.wave) == null ? void 0 : X.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((q = (me = (U = t.meteo) == null ? void 0 : U.wave) == null ? void 0 : me.sig) == null ? void 0 : q.period, 1)) + "[s]", 1)
|
|
4915
4913
|
]),
|
|
4916
|
-
l("div",
|
|
4917
|
-
|
|
4918
|
-
l("span", null, S(((
|
|
4914
|
+
l("div", ja, [
|
|
4915
|
+
e[5] || (e[5] = l("label", null, "Current", -1)),
|
|
4916
|
+
l("span", null, S(((te = (ue = t.meteo) == null ? void 0 : ue.current) == null ? void 0 : te.direction) || "-") + "/" + S(o.roundPrecision((ie = (ae = t.meteo) == null ? void 0 : ae.current) == null ? void 0 : ie.kts, 2)) + "[kts]", 1)
|
|
4919
4917
|
]),
|
|
4920
|
-
l("div",
|
|
4921
|
-
|
|
4922
|
-
l("span", null, S(o.roundPrecision((
|
|
4918
|
+
l("div", Fa, [
|
|
4919
|
+
e[6] || (e[6] = l("label", null, "Precip", -1)),
|
|
4920
|
+
l("span", null, S(o.roundPrecision((ge = (fe = t.meteo) == null ? void 0 : fe.precip) == null ? void 0 : ge.inter6h, 2)) + "[mm]", 1)
|
|
4923
4921
|
]),
|
|
4924
|
-
l("div",
|
|
4925
|
-
|
|
4926
|
-
l("span", null, S(o.roundPrecision(((
|
|
4922
|
+
l("div", $a, [
|
|
4923
|
+
e[7] || (e[7] = l("label", null, "Visibility", -1)),
|
|
4924
|
+
l("span", null, S(o.roundPrecision(((be = t.meteo) == null ? void 0 : be.visibility) / 1852, 0)) + "[nm]", 1)
|
|
4927
4925
|
]),
|
|
4928
|
-
l("div",
|
|
4929
|
-
|
|
4930
|
-
l("span", null, S(o.roundPrecision((
|
|
4926
|
+
l("div", Ua, [
|
|
4927
|
+
e[8] || (e[8] = l("label", null, "Temp", -1)),
|
|
4928
|
+
l("span", null, S(o.roundPrecision((ve = t.meteo) == null ? void 0 : ve.temp, 0)) + "[°C]", 1)
|
|
4931
4929
|
]),
|
|
4932
|
-
l("div",
|
|
4933
|
-
|
|
4934
|
-
l("span", null, S(o.roundPrecision((
|
|
4930
|
+
l("div", Va, [
|
|
4931
|
+
e[9] || (e[9] = l("label", null, "Water Temp", -1)),
|
|
4932
|
+
l("span", null, S(o.roundPrecision((Le = t.meteo) == null ? void 0 : Le.waterTemp, 2)) + "[°C]", 1)
|
|
4935
4933
|
])
|
|
4936
4934
|
]),
|
|
4937
|
-
a.$attrs.permission & i.helper.LEVEL.Prime ? (
|
|
4935
|
+
a.$attrs.permission & i.helper.LEVEL.Prime ? (x(), _("div", Za, e[10] || (e[10] = [
|
|
4936
|
+
l("span", { class: "more" }, "More >>", -1)
|
|
4937
|
+
]))) : B("", !0)
|
|
4938
4938
|
])
|
|
4939
4939
|
], 512)), [
|
|
4940
|
-
[
|
|
4940
|
+
[ke, i.showMeteo]
|
|
4941
4941
|
]);
|
|
4942
4942
|
}
|
|
4943
|
-
const
|
|
4943
|
+
const Ga = /* @__PURE__ */ T(Ta, [["render", Ha], ["__scopeId", "data-v-22c5d8c1"]]), Ja = {
|
|
4944
4944
|
name: "IdmWarZone",
|
|
4945
4945
|
props: {
|
|
4946
4946
|
map: {
|
|
@@ -5030,10 +5030,10 @@ const Or = /* @__PURE__ */ T(dr, [["render", Wr], ["__scopeId", "data-v-22c5d8c1
|
|
|
5030
5030
|
}
|
|
5031
5031
|
}
|
|
5032
5032
|
};
|
|
5033
|
-
function
|
|
5034
|
-
return
|
|
5033
|
+
function Xa(a, e, t, r, i, o) {
|
|
5034
|
+
return x(), _("div");
|
|
5035
5035
|
}
|
|
5036
|
-
const
|
|
5036
|
+
const qa = /* @__PURE__ */ T(Ja, [["render", Xa]]), Ya = {
|
|
5037
5037
|
name: "IdmGmdssArea",
|
|
5038
5038
|
props: {
|
|
5039
5039
|
map: {
|
|
@@ -5153,10 +5153,10 @@ const Ur = /* @__PURE__ */ T(jr, [["render", Fr]]), Vr = {
|
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
5155
5155
|
};
|
|
5156
|
-
function
|
|
5157
|
-
return
|
|
5156
|
+
function Qa(a, e, t, r, i, o) {
|
|
5157
|
+
return x(), _("div");
|
|
5158
5158
|
}
|
|
5159
|
-
const
|
|
5159
|
+
const Ka = /* @__PURE__ */ T(Ya, [["render", Qa]]), ei = {
|
|
5160
5160
|
name: "IdmEcaZone",
|
|
5161
5161
|
props: {
|
|
5162
5162
|
map: {
|
|
@@ -5244,11 +5244,11 @@ const Hr = /* @__PURE__ */ T(Vr, [["render", Zr]]), Gr = {
|
|
|
5244
5244
|
}
|
|
5245
5245
|
}
|
|
5246
5246
|
};
|
|
5247
|
-
function
|
|
5248
|
-
return
|
|
5247
|
+
function ti(a, e, t, r, i, o) {
|
|
5248
|
+
return x(), _("div");
|
|
5249
5249
|
}
|
|
5250
|
-
const
|
|
5251
|
-
const
|
|
5250
|
+
const ai = /* @__PURE__ */ T(ei, [["render", ti]]);
|
|
5251
|
+
const ii = {
|
|
5252
5252
|
name: "IdmAlertZone",
|
|
5253
5253
|
props: {
|
|
5254
5254
|
map: {
|
|
@@ -5288,7 +5288,11 @@ const qr = {
|
|
|
5288
5288
|
var o;
|
|
5289
5289
|
return i.properties.id === ((o = e == null ? void 0 : e.properties) == null ? void 0 : o.id);
|
|
5290
5290
|
})[0];
|
|
5291
|
-
|
|
5291
|
+
if (t) {
|
|
5292
|
+
this.showZone = !0, this.form = { ...t.properties };
|
|
5293
|
+
const i = document.getElementById("idm-gl3-zone-info");
|
|
5294
|
+
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new K.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
|
|
5295
|
+
}
|
|
5292
5296
|
},
|
|
5293
5297
|
handleRender() {
|
|
5294
5298
|
var a;
|
|
@@ -5374,10 +5378,10 @@ const qr = {
|
|
|
5374
5378
|
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);
|
|
5375
5379
|
}
|
|
5376
5380
|
}
|
|
5377
|
-
},
|
|
5378
|
-
function
|
|
5381
|
+
}, ri = { id: "idm-gl3-zone-info" }, oi = ["innerHTML"];
|
|
5382
|
+
function si(a, e, t, r, i, o) {
|
|
5379
5383
|
var n;
|
|
5380
|
-
return
|
|
5384
|
+
return Se((x(), _("div", ri, [
|
|
5381
5385
|
l("div", {
|
|
5382
5386
|
class: "iconfont close",
|
|
5383
5387
|
onClick: e[0] || (e[0] = (s) => i.showZone = !1)
|
|
@@ -5385,13 +5389,13 @@ function Kr(a, e, t, r, i, o) {
|
|
|
5385
5389
|
l("div", {
|
|
5386
5390
|
class: "rich-context",
|
|
5387
5391
|
innerHTML: (n = i.form) == null ? void 0 : n.name
|
|
5388
|
-
}, null, 8,
|
|
5392
|
+
}, null, 8, oi)
|
|
5389
5393
|
], 512)), [
|
|
5390
|
-
[
|
|
5394
|
+
[ke, i.showZone]
|
|
5391
5395
|
]);
|
|
5392
5396
|
}
|
|
5393
|
-
const
|
|
5394
|
-
const
|
|
5397
|
+
const ni = /* @__PURE__ */ T(ii, [["render", si]]);
|
|
5398
|
+
const li = {
|
|
5395
5399
|
name: "IdmPort",
|
|
5396
5400
|
props: {
|
|
5397
5401
|
map: {
|
|
@@ -5417,12 +5421,12 @@ const to = {
|
|
|
5417
5421
|
computed: {
|
|
5418
5422
|
computeLat() {
|
|
5419
5423
|
return function(a) {
|
|
5420
|
-
return
|
|
5424
|
+
return F.lat2pretty(a, 4).pretty;
|
|
5421
5425
|
};
|
|
5422
5426
|
},
|
|
5423
5427
|
computeLng() {
|
|
5424
5428
|
return function(a) {
|
|
5425
|
-
return
|
|
5429
|
+
return F.lng2pretty(a, 4).pretty;
|
|
5426
5430
|
};
|
|
5427
5431
|
}
|
|
5428
5432
|
},
|
|
@@ -5444,7 +5448,7 @@ const to = {
|
|
|
5444
5448
|
if (t) {
|
|
5445
5449
|
this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
|
|
5446
5450
|
const i = document.getElementById("port-info");
|
|
5447
|
-
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new
|
|
5451
|
+
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new K.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
5448
5452
|
}
|
|
5449
5453
|
},
|
|
5450
5454
|
handleEmit() {
|
|
@@ -5483,41 +5487,41 @@ const to = {
|
|
|
5483
5487
|
this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
5484
5488
|
}
|
|
5485
5489
|
}
|
|
5486
|
-
},
|
|
5490
|
+
}, ci = { id: "port-info" }, hi = { class: "port-box" }, di = { class: "flex-start" }, pi = { class: "flex-start" }, mi = { class: "flex-start" }, ui = {
|
|
5487
5491
|
class: "flex-start",
|
|
5488
5492
|
style: { "align-items": "flex-start" }
|
|
5489
|
-
}
|
|
5490
|
-
function
|
|
5491
|
-
return
|
|
5493
|
+
};
|
|
5494
|
+
function yi(a, e, t, r, i, o) {
|
|
5495
|
+
return Se((x(), _("div", ci, [
|
|
5492
5496
|
l("div", {
|
|
5493
5497
|
class: "close iconfont",
|
|
5494
5498
|
onClick: e[0] || (e[0] = (n) => i.showPort = !1)
|
|
5495
5499
|
}, ""),
|
|
5496
|
-
l("div",
|
|
5497
|
-
l("div",
|
|
5498
|
-
|
|
5500
|
+
l("div", hi, [
|
|
5501
|
+
l("div", di, [
|
|
5502
|
+
e[2] || (e[2] = l("label", null, "Name : ", -1)),
|
|
5499
5503
|
l("span", {
|
|
5500
5504
|
onClick: e[1] || (e[1] = (...n) => o.handleEmit && o.handleEmit(...n))
|
|
5501
5505
|
}, S(i.form.name), 1)
|
|
5502
5506
|
]),
|
|
5503
|
-
l("div",
|
|
5504
|
-
|
|
5507
|
+
l("div", pi, [
|
|
5508
|
+
e[3] || (e[3] = l("label", null, "Position : ", -1)),
|
|
5505
5509
|
l("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
|
|
5506
5510
|
]),
|
|
5507
|
-
l("div",
|
|
5508
|
-
|
|
5511
|
+
l("div", mi, [
|
|
5512
|
+
e[4] || (e[4] = l("label", null, "LoCode : ", -1)),
|
|
5509
5513
|
l("span", null, S(i.form.loCode || "-"), 1)
|
|
5510
5514
|
]),
|
|
5511
|
-
l("div",
|
|
5512
|
-
|
|
5515
|
+
l("div", ui, [
|
|
5516
|
+
e[5] || (e[5] = l("label", null, "Region : ", -1)),
|
|
5513
5517
|
l("span", null, S(i.form.city || "-") + ", " + S(i.form.country || "-"), 1)
|
|
5514
5518
|
])
|
|
5515
5519
|
])
|
|
5516
5520
|
], 512)), [
|
|
5517
|
-
[
|
|
5521
|
+
[ke, i.showPort]
|
|
5518
5522
|
]);
|
|
5519
5523
|
}
|
|
5520
|
-
const
|
|
5524
|
+
const fi = /* @__PURE__ */ T(li, [["render", yi], ["__scopeId", "data-v-4ab013cc"]]), gi = {
|
|
5521
5525
|
name: "IdmLoadLine",
|
|
5522
5526
|
props: {
|
|
5523
5527
|
map: {
|
|
@@ -5587,10 +5591,10 @@ const uo = /* @__PURE__ */ T(to, [["render", mo], ["__scopeId", "data-v-4ab013cc
|
|
|
5587
5591
|
}
|
|
5588
5592
|
}
|
|
5589
5593
|
};
|
|
5590
|
-
function
|
|
5591
|
-
return
|
|
5594
|
+
function bi(a, e, t, r, i, o) {
|
|
5595
|
+
return x(), _("div");
|
|
5592
5596
|
}
|
|
5593
|
-
const
|
|
5597
|
+
const vi = /* @__PURE__ */ T(gi, [["render", bi]]), Li = {
|
|
5594
5598
|
name: "IdmTimezone",
|
|
5595
5599
|
props: {
|
|
5596
5600
|
map: {
|
|
@@ -5755,10 +5759,10 @@ const go = /* @__PURE__ */ T(yo, [["render", fo]]), bo = {
|
|
|
5755
5759
|
}
|
|
5756
5760
|
}
|
|
5757
5761
|
};
|
|
5758
|
-
function
|
|
5759
|
-
return
|
|
5762
|
+
function wi(a, e, t, r, i, o) {
|
|
5763
|
+
return x(), _("div");
|
|
5760
5764
|
}
|
|
5761
|
-
const
|
|
5765
|
+
const xi = /* @__PURE__ */ T(Li, [["render", wi]]), _i = {
|
|
5762
5766
|
name: "IdmVoluntaryReportingArea",
|
|
5763
5767
|
props: {
|
|
5764
5768
|
map: {
|
|
@@ -5846,10 +5850,10 @@ const _o = /* @__PURE__ */ T(bo, [["render", vo]]), wo = {
|
|
|
5846
5850
|
}
|
|
5847
5851
|
}
|
|
5848
5852
|
};
|
|
5849
|
-
function
|
|
5850
|
-
return
|
|
5853
|
+
function Ci(a, e, t, r, i, o) {
|
|
5854
|
+
return x(), _("div");
|
|
5851
5855
|
}
|
|
5852
|
-
const
|
|
5856
|
+
const Si = /* @__PURE__ */ T(_i, [["render", Ci]]), ki = {
|
|
5853
5857
|
name: "IdmSpecialArea",
|
|
5854
5858
|
props: {
|
|
5855
5859
|
map: {
|
|
@@ -5879,7 +5883,7 @@ const xo = /* @__PURE__ */ T(wo, [["render", Lo]]), Co = {
|
|
|
5879
5883
|
methods: {
|
|
5880
5884
|
handleRender() {
|
|
5881
5885
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
|
|
5882
|
-
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) =>
|
|
5886
|
+
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => F.convertToMonotonicLng2(e));
|
|
5883
5887
|
}), this.map.addSource(this.source, {
|
|
5884
5888
|
type: "geojson",
|
|
5885
5889
|
data: this.area
|
|
@@ -5939,10 +5943,10 @@ const xo = /* @__PURE__ */ T(wo, [["render", Lo]]), Co = {
|
|
|
5939
5943
|
}
|
|
5940
5944
|
}
|
|
5941
5945
|
};
|
|
5942
|
-
function
|
|
5943
|
-
return
|
|
5946
|
+
function zi(a, e, t, r, i, o) {
|
|
5947
|
+
return x(), _("div");
|
|
5944
5948
|
}
|
|
5945
|
-
const
|
|
5949
|
+
const Pi = /* @__PURE__ */ T(ki, [["render", zi]]), Ti = {
|
|
5946
5950
|
name: "IdmTerminator",
|
|
5947
5951
|
props: {
|
|
5948
5952
|
map: {
|
|
@@ -5991,11 +5995,11 @@ const ko = /* @__PURE__ */ T(Co, [["render", So]]), zo = {
|
|
|
5991
5995
|
}
|
|
5992
5996
|
}
|
|
5993
5997
|
};
|
|
5994
|
-
function
|
|
5995
|
-
return
|
|
5998
|
+
function Ei(a, e, t, r, i, o) {
|
|
5999
|
+
return x(), _("div");
|
|
5996
6000
|
}
|
|
5997
|
-
const
|
|
5998
|
-
const
|
|
6001
|
+
const Ri = /* @__PURE__ */ T(Ti, [["render", Ei]]);
|
|
6002
|
+
const Ii = {
|
|
5999
6003
|
name: "IdmLatLng",
|
|
6000
6004
|
props: {
|
|
6001
6005
|
map: {
|
|
@@ -6053,7 +6057,7 @@ const Eo = {
|
|
|
6053
6057
|
this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
6054
6058
|
},
|
|
6055
6059
|
handleMouseMove(a) {
|
|
6056
|
-
const e = a.lngLat, t =
|
|
6060
|
+
const e = a.lngLat, t = F.lng2pretty(e.lng, 2), r = F.lat2pretty(e.lat, 2);
|
|
6057
6061
|
this.lngLat = { lng: t, lat: r };
|
|
6058
6062
|
},
|
|
6059
6063
|
handleComputeLatLngs() {
|
|
@@ -6150,19 +6154,19 @@ const Eo = {
|
|
|
6150
6154
|
(a = this.map) != null && a.getLayer(this.layer) && ((e = this.map) == null || e.removeLayer(this.layer)), (t = this.map) != null && t.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));
|
|
6151
6155
|
}
|
|
6152
6156
|
}
|
|
6153
|
-
}
|
|
6154
|
-
function
|
|
6155
|
-
return i.lngLat ? (
|
|
6157
|
+
};
|
|
6158
|
+
function Di(a, e, t, r, i, o) {
|
|
6159
|
+
return i.lngLat ? (x(), _("div", {
|
|
6156
6160
|
key: 0,
|
|
6157
6161
|
class: "lat-lng-tip",
|
|
6158
|
-
style:
|
|
6162
|
+
style: $({ right: i.right + "px", bottom: t.bottom })
|
|
6159
6163
|
}, [
|
|
6160
6164
|
l("span", null, S(i.lngLat.lat.pretty), 1),
|
|
6161
|
-
|
|
6165
|
+
e[0] || (e[0] = l("span", null, ", ", -1)),
|
|
6162
6166
|
l("span", null, S(i.lngLat.lng.pretty), 1)
|
|
6163
|
-
], 4)) :
|
|
6167
|
+
], 4)) : B("", !0);
|
|
6164
6168
|
}
|
|
6165
|
-
const
|
|
6169
|
+
const je = /* @__PURE__ */ T(Ii, [["render", Di], ["__scopeId", "data-v-7367f59b"]]), Ai = {
|
|
6166
6170
|
name: "IdmMeasure",
|
|
6167
6171
|
props: {
|
|
6168
6172
|
map: {
|
|
@@ -6266,7 +6270,7 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
|
|
|
6266
6270
|
const s = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
|
|
6267
6271
|
if (s.length > 2 && s.filter((h) => h.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
6268
6272
|
const h = document.createElement("div");
|
|
6269
|
-
h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new
|
|
6273
|
+
h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new K.Marker(h).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
|
|
6270
6274
|
}
|
|
6271
6275
|
}
|
|
6272
6276
|
},
|
|
@@ -6302,10 +6306,10 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
|
|
|
6302
6306
|
let t = 0;
|
|
6303
6307
|
const r = [];
|
|
6304
6308
|
for (let i = 1; i < e.length; i++) {
|
|
6305
|
-
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 =
|
|
6306
|
-
t =
|
|
6309
|
+
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 = Q.calculateDistance(c, h, s.mode === "RL", 2), p = Q.calculateBearing(c, h, s.mode === "RL", 2);
|
|
6310
|
+
t = F.roundPrecision(t + d, 2);
|
|
6307
6311
|
let g;
|
|
6308
|
-
s.mode === "RL" ? g =
|
|
6312
|
+
s.mode === "RL" ? g = F.convertToMonotonicLng([c, h]) : g = F.convertToMonotonicLng(Q.interpolateCoordinates(c, h, 200));
|
|
6309
6313
|
const u = C.lineString(g.map((y) => [y.lng, y.lat]));
|
|
6310
6314
|
u.properties.dist = d, u.properties.bearing = p, u.properties.total = t, r.push(u);
|
|
6311
6315
|
}
|
|
@@ -6318,17 +6322,17 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
|
|
|
6318
6322
|
let o, n;
|
|
6319
6323
|
if (e) {
|
|
6320
6324
|
const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: t.lng, lat: t.lat };
|
|
6321
|
-
o =
|
|
6325
|
+
o = Q.calculateDistance(h, d, c.mode === "RL", 2), n = Q.calculateBearing(h, d, c.mode === "RL", 2);
|
|
6322
6326
|
let p;
|
|
6323
|
-
c.mode === "RL" ? p =
|
|
6327
|
+
c.mode === "RL" ? p = F.convertToMonotonicLng([h, d]) : p = F.convertToMonotonicLng(Q.interpolateCoordinates(h, d, 200));
|
|
6324
6328
|
const g = C.lineString(p.map((u) => [u.lng, u.lat]));
|
|
6325
6329
|
g.properties.dist = o, g.properties.bearing = n, i.features.push(g);
|
|
6326
6330
|
}
|
|
6327
6331
|
if (r) {
|
|
6328
6332
|
const c = t.properties, h = t, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
6329
|
-
o =
|
|
6333
|
+
o = Q.calculateDistance(h, d, c.mode === "RL", 2), n = Q.calculateBearing(h, d, c.mode === "RL", 2);
|
|
6330
6334
|
let p;
|
|
6331
|
-
c.mode === "RL" ? p =
|
|
6335
|
+
c.mode === "RL" ? p = F.convertToMonotonicLng([h, d]) : p = F.convertToMonotonicLng(Q.interpolateCoordinates(h, d, 200));
|
|
6332
6336
|
const g = C.lineString(p.map((u) => [u.lng, u.lat]));
|
|
6333
6337
|
g.properties.dist = o, g.properties.bearing = n, i.features.push(g);
|
|
6334
6338
|
}
|
|
@@ -6370,11 +6374,11 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
|
|
|
6370
6374
|
}
|
|
6371
6375
|
});
|
|
6372
6376
|
let s;
|
|
6373
|
-
if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${
|
|
6377
|
+
if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${F.roundPrecision((a.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)
|
|
6374
6378
|
this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
6375
6379
|
else {
|
|
6376
6380
|
const c = document.createElement("div");
|
|
6377
|
-
c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new
|
|
6381
|
+
c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new K.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
|
|
6378
6382
|
}
|
|
6379
6383
|
},
|
|
6380
6384
|
handleMove(a) {
|
|
@@ -6432,12 +6436,12 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
|
|
|
6432
6436
|
for (const n of o) {
|
|
6433
6437
|
const s = document.createElement("div");
|
|
6434
6438
|
s.id = `${a.id}-${n.properties.id}`, s.className = `${a.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
|
|
6435
|
-
const c = new
|
|
6439
|
+
const c = new K.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
6436
6440
|
c.on("drag", this.handleDrag), c.on("dragend", this.handleDragEnd), this.pointMarkers[a.id] ? this.pointMarkers[a.id].push(c) : this.pointMarkers[a.id] = [c];
|
|
6437
6441
|
}
|
|
6438
6442
|
if (a.closed) {
|
|
6439
6443
|
const n = o.at(-1), c = a.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
|
|
6440
|
-
h.className = "point-summary-marker", h.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new
|
|
6444
|
+
h.className = "point-summary-marker", h.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new K.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
6441
6445
|
}
|
|
6442
6446
|
}
|
|
6443
6447
|
},
|
|
@@ -6450,11 +6454,11 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
|
|
|
6450
6454
|
}
|
|
6451
6455
|
}
|
|
6452
6456
|
};
|
|
6453
|
-
function
|
|
6454
|
-
return
|
|
6457
|
+
function Mi(a, e, t, r, i, o) {
|
|
6458
|
+
return x(), _("div");
|
|
6455
6459
|
}
|
|
6456
|
-
const
|
|
6457
|
-
const
|
|
6460
|
+
const Bi = /* @__PURE__ */ T(Ai, [["render", Mi]]);
|
|
6461
|
+
const Ni = {
|
|
6458
6462
|
name: "IdmENC",
|
|
6459
6463
|
props: {
|
|
6460
6464
|
map: {
|
|
@@ -6485,8 +6489,8 @@ const Bo = {
|
|
|
6485
6489
|
emits: ["enc"],
|
|
6486
6490
|
data() {
|
|
6487
6491
|
return {
|
|
6488
|
-
helper:
|
|
6489
|
-
vendor: this.$attrs.permission &
|
|
6492
|
+
helper: Ce,
|
|
6493
|
+
vendor: this.$attrs.permission & Ce.LEVEL.Supper ? "hi" : "i4",
|
|
6490
6494
|
right: 10
|
|
6491
6495
|
};
|
|
6492
6496
|
},
|
|
@@ -6506,64 +6510,64 @@ const Bo = {
|
|
|
6506
6510
|
}
|
|
6507
6511
|
},
|
|
6508
6512
|
methods: {}
|
|
6509
|
-
},
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
Fo
|
|
6513
|
-
];
|
|
6514
|
-
function Vo(a, e, t, r, i, o) {
|
|
6515
|
-
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (L(), x("div", No, [
|
|
6513
|
+
}, Wi = { key: 0 }, Oi = { class: "bar-item" };
|
|
6514
|
+
function ji(a, e, t, r, i, o) {
|
|
6515
|
+
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (x(), _("div", Wi, [
|
|
6516
6516
|
l("div", {
|
|
6517
6517
|
class: "menu-bar-box",
|
|
6518
|
-
style:
|
|
6518
|
+
style: $({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
6519
6519
|
}, [
|
|
6520
|
-
l("div",
|
|
6520
|
+
l("div", Oi, [
|
|
6521
6521
|
l("div", {
|
|
6522
6522
|
class: M(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
6523
6523
|
onClick: e[0] || (e[0] = (n) => i.vendor = "hi")
|
|
6524
|
-
},
|
|
6524
|
+
}, e[2] || (e[2] = [
|
|
6525
|
+
l("span", { class: "iconfont" }, "HI", -1)
|
|
6526
|
+
]), 2),
|
|
6525
6527
|
l("div", {
|
|
6526
6528
|
class: M(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
6527
6529
|
onClick: e[1] || (e[1] = (n) => i.vendor = "i4")
|
|
6528
|
-
},
|
|
6530
|
+
}, e[3] || (e[3] = [
|
|
6531
|
+
l("span", { class: "iconfont" }, "I4", -1)
|
|
6532
|
+
]), 2)
|
|
6529
6533
|
])
|
|
6530
6534
|
], 4)
|
|
6531
|
-
])) :
|
|
6535
|
+
])) : B("", !0);
|
|
6532
6536
|
}
|
|
6533
|
-
const
|
|
6534
|
-
const
|
|
6537
|
+
const Fi = /* @__PURE__ */ T(Ni, [["render", ji], ["__scopeId", "data-v-ab627b83"]]);
|
|
6538
|
+
const $i = {
|
|
6535
6539
|
name: "IdmGLV2",
|
|
6536
6540
|
components: {
|
|
6537
|
-
IdmGlLayer:
|
|
6538
|
-
IdmWindBarb:
|
|
6539
|
-
IdmWindParticle:
|
|
6540
|
-
IdmCurrents:
|
|
6541
|
-
IdmCurrentParticle:
|
|
6542
|
-
IdmSigWave:
|
|
6543
|
-
IdmSwell:
|
|
6544
|
-
IdmPrmsl:
|
|
6541
|
+
IdmGlLayer: lt,
|
|
6542
|
+
IdmWindBarb: ft,
|
|
6543
|
+
IdmWindParticle: wt,
|
|
6544
|
+
IdmCurrents: Tt,
|
|
6545
|
+
IdmCurrentParticle: Dt,
|
|
6546
|
+
IdmSigWave: Bt,
|
|
6547
|
+
IdmSwell: Ot,
|
|
6548
|
+
IdmPrmsl: $t,
|
|
6545
6549
|
// IdmIceEdge,
|
|
6546
|
-
IdmIceberg:
|
|
6547
|
-
IdmTropicals:
|
|
6548
|
-
IdmPrecip3h:
|
|
6549
|
-
IdmVisibility:
|
|
6550
|
-
IdmWaterTemp:
|
|
6551
|
-
IdmTemp:
|
|
6552
|
-
IdmArctic:
|
|
6553
|
-
IdmWarZone:
|
|
6554
|
-
IdmGmdssArea:
|
|
6555
|
-
IdmEcaZone:
|
|
6556
|
-
IdmAlertZone:
|
|
6557
|
-
IdmPort:
|
|
6558
|
-
IdmLoadLine:
|
|
6559
|
-
IdmTimezone:
|
|
6560
|
-
IdmVRA:
|
|
6561
|
-
IdmSpecialArea:
|
|
6562
|
-
IdmTerminator:
|
|
6563
|
-
IdmLatLng:
|
|
6564
|
-
IdmMeasure:
|
|
6565
|
-
IdmPoint:
|
|
6566
|
-
IdmENC:
|
|
6550
|
+
IdmIceberg: Zt,
|
|
6551
|
+
IdmTropicals: Oe,
|
|
6552
|
+
IdmPrecip3h: pa,
|
|
6553
|
+
IdmVisibility: fa,
|
|
6554
|
+
IdmWaterTemp: La,
|
|
6555
|
+
IdmTemp: Ca,
|
|
6556
|
+
IdmArctic: Pa,
|
|
6557
|
+
IdmWarZone: qa,
|
|
6558
|
+
IdmGmdssArea: Ka,
|
|
6559
|
+
IdmEcaZone: ai,
|
|
6560
|
+
IdmAlertZone: ni,
|
|
6561
|
+
IdmPort: fi,
|
|
6562
|
+
IdmLoadLine: vi,
|
|
6563
|
+
IdmTimezone: xi,
|
|
6564
|
+
IdmVRA: Si,
|
|
6565
|
+
IdmSpecialArea: Pi,
|
|
6566
|
+
IdmTerminator: Ri,
|
|
6567
|
+
IdmLatLng: je,
|
|
6568
|
+
IdmMeasure: Bi,
|
|
6569
|
+
IdmPoint: Ga,
|
|
6570
|
+
IdmENC: Fi
|
|
6567
6571
|
},
|
|
6568
6572
|
props: {
|
|
6569
6573
|
map: {
|
|
@@ -6607,7 +6611,7 @@ const Ho = {
|
|
|
6607
6611
|
enc: "",
|
|
6608
6612
|
// enc: 'i4',
|
|
6609
6613
|
defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
|
|
6610
|
-
helper: new
|
|
6614
|
+
helper: new gt()
|
|
6611
6615
|
};
|
|
6612
6616
|
},
|
|
6613
6617
|
watch: {
|
|
@@ -6621,7 +6625,7 @@ const Ho = {
|
|
|
6621
6625
|
},
|
|
6622
6626
|
map: {
|
|
6623
6627
|
handler() {
|
|
6624
|
-
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new
|
|
6628
|
+
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Te(this.map), this.handleRampColorInitial());
|
|
6625
6629
|
},
|
|
6626
6630
|
immediate: !0
|
|
6627
6631
|
},
|
|
@@ -6689,7 +6693,7 @@ const Ho = {
|
|
|
6689
6693
|
if (this.map) {
|
|
6690
6694
|
const g = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, u = (o = this.map) == null ? void 0 : o.getBounds(), y = `${u._sw.lng},${u._sw.lat},${u._ne.lng},${u._ne.lat}`;
|
|
6691
6695
|
if (this.handleRampColorState(), this.particleFactor) {
|
|
6692
|
-
const f =
|
|
6696
|
+
const f = Pe.WEATHER_LAYERS.find((m) => {
|
|
6693
6697
|
var v;
|
|
6694
6698
|
return ((v = m.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
|
|
6695
6699
|
});
|
|
@@ -6698,42 +6702,42 @@ const Ho = {
|
|
|
6698
6702
|
if (this.weatherWeight > 0) {
|
|
6699
6703
|
let f = this.weatherWeight, m;
|
|
6700
6704
|
if (a.tropicals || this.weatherWeight & 256 && (m = this.weatherLayers.tropicals, m && (f -= 256, m.version = Math.random() + 1)), f > 0) {
|
|
6701
|
-
const v = await
|
|
6705
|
+
const v = await re.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${g}&bbox=${y}&t=${this.ts}`, {
|
|
6702
6706
|
headers: {
|
|
6703
6707
|
Authorization: this.token || this.defaultMeteoToken
|
|
6704
6708
|
}
|
|
6705
6709
|
});
|
|
6706
6710
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((n = v == null ? void 0 : v.data) == null ? void 0 : n.code) === 0) {
|
|
6707
6711
|
const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
|
|
6708
|
-
for (const
|
|
6709
|
-
|
|
6710
|
-
|
|
6712
|
+
for (const L in b)
|
|
6713
|
+
L === "ice-edge" && (b[L] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), L !== "tropicals" && w.push(
|
|
6714
|
+
re.get(b[L], {
|
|
6711
6715
|
headers: {
|
|
6712
6716
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6713
|
-
key:
|
|
6717
|
+
key: L
|
|
6714
6718
|
},
|
|
6715
|
-
responseType: /\.(jpg|png)$/.test(b[
|
|
6719
|
+
responseType: /\.(jpg|png)$/.test(b[L]) ? "blob" : "json"
|
|
6716
6720
|
}).catch((D) => {
|
|
6717
|
-
console.log(`[${
|
|
6721
|
+
console.log(`[${L}] fetch layer error: ${D}`);
|
|
6718
6722
|
})
|
|
6719
6723
|
);
|
|
6720
6724
|
const k = await Promise.all(w);
|
|
6721
|
-
this.weatherLayers = {}, k.map((
|
|
6722
|
-
var
|
|
6723
|
-
const D = ((
|
|
6725
|
+
this.weatherLayers = {}, k.map((L) => {
|
|
6726
|
+
var N, O, j, H;
|
|
6727
|
+
const D = ((N = L == null ? void 0 : L.data) == null ? void 0 : N.data) || (L == null ? void 0 : L.data), A = (j = (O = L == null ? void 0 : L.config) == null ? void 0 : O.headers) == null ? void 0 : j.key;
|
|
6724
6728
|
A && D && (this.weatherLayers[A] = {
|
|
6725
6729
|
raw: D,
|
|
6726
|
-
type: ((
|
|
6730
|
+
type: ((H = L == null ? void 0 : L.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
|
|
6727
6731
|
etime: this.ts
|
|
6728
6732
|
});
|
|
6729
|
-
}), b.tropicals &&
|
|
6733
|
+
}), b.tropicals && re.get(b.tropicals, {
|
|
6730
6734
|
headers: {
|
|
6731
6735
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6732
6736
|
key: "tropicals"
|
|
6733
6737
|
}
|
|
6734
|
-
}).then((
|
|
6735
|
-
var
|
|
6736
|
-
const D =
|
|
6738
|
+
}).then((L) => {
|
|
6739
|
+
var N, O, j;
|
|
6740
|
+
const D = We.convert2Geojson(((N = L == null ? void 0 : L.data) == null ? void 0 : N.data) || (L == null ? void 0 : L.data)), A = (j = (O = L == null ? void 0 : L.config) == null ? void 0 : O.headers) == null ? void 0 : j.key;
|
|
6737
6741
|
this.weatherLayers[A] = {
|
|
6738
6742
|
data: D,
|
|
6739
6743
|
active: !0,
|
|
@@ -6777,7 +6781,7 @@ const Ho = {
|
|
|
6777
6781
|
let n = !1;
|
|
6778
6782
|
if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, n = !0), o) {
|
|
6779
6783
|
if (a.all) {
|
|
6780
|
-
const s = await
|
|
6784
|
+
const s = await re.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
|
|
6781
6785
|
headers: {
|
|
6782
6786
|
Authorization: this.token || this.defaultMeteoToken
|
|
6783
6787
|
}
|
|
@@ -6786,7 +6790,7 @@ const Ho = {
|
|
|
6786
6790
|
const c = (t = s == null ? void 0 : s.data) == null ? void 0 : t.data, h = [];
|
|
6787
6791
|
for (const p in c)
|
|
6788
6792
|
h.push(
|
|
6789
|
-
|
|
6793
|
+
re.get(c[p], {
|
|
6790
6794
|
headers: {
|
|
6791
6795
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6792
6796
|
key: p
|
|
@@ -6801,7 +6805,7 @@ const Ho = {
|
|
|
6801
6805
|
});
|
|
6802
6806
|
}
|
|
6803
6807
|
} else if (a.dayNight && o & 1024) {
|
|
6804
|
-
const s = await
|
|
6808
|
+
const s = await re.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
6805
6809
|
headers: {
|
|
6806
6810
|
Authorization: this.token || this.defaultMeteoToken
|
|
6807
6811
|
}
|
|
@@ -6810,7 +6814,7 @@ const Ho = {
|
|
|
6810
6814
|
const c = (i = s == null ? void 0 : s.data) == null ? void 0 : i.data, h = [];
|
|
6811
6815
|
for (const p in c)
|
|
6812
6816
|
h.push(
|
|
6813
|
-
|
|
6817
|
+
re.get(c[p], {
|
|
6814
6818
|
headers: {
|
|
6815
6819
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6816
6820
|
key: p
|
|
@@ -6878,7 +6882,7 @@ const Ho = {
|
|
|
6878
6882
|
var h, d, p, g;
|
|
6879
6883
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
6880
6884
|
let e = 0, t = 0;
|
|
6881
|
-
const r = (h = this.map) == null ? void 0 : h.getBounds(), i = this.map.getZoom(), o =
|
|
6885
|
+
const r = (h = this.map) == null ? void 0 : h.getBounds(), i = this.map.getZoom(), o = we(r._sw.lng), n = we(r._ne.lng), s = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
|
|
6882
6886
|
for (const u in this.weatherLayers)
|
|
6883
6887
|
if (this.weatherLayers[u].active && this.weatherLayers[u].type === "json") {
|
|
6884
6888
|
this.weatherLayers[u].active = !1, this.weatherLayers[u].version = Math.random() + 1;
|
|
@@ -6891,20 +6895,20 @@ const Ho = {
|
|
|
6891
6895
|
o > n ? v.forEach((b, w) => {
|
|
6892
6896
|
var k;
|
|
6893
6897
|
if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6894
|
-
const
|
|
6898
|
+
const L = C.point([b, m], {
|
|
6895
6899
|
val: f[m].val[w],
|
|
6896
6900
|
spd: (k = f[m].spd) == null ? void 0 : k[w]
|
|
6897
6901
|
});
|
|
6898
|
-
y.push(
|
|
6902
|
+
y.push(L);
|
|
6899
6903
|
}
|
|
6900
6904
|
}) : v.forEach((b, w) => {
|
|
6901
6905
|
var k;
|
|
6902
6906
|
if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6903
|
-
const
|
|
6907
|
+
const L = C.point([b, m], {
|
|
6904
6908
|
val: f[m].val[w],
|
|
6905
6909
|
spd: (k = f[m].spd) == null ? void 0 : k[w]
|
|
6906
6910
|
});
|
|
6907
|
-
y.push(
|
|
6911
|
+
y.push(L);
|
|
6908
6912
|
}
|
|
6909
6913
|
});
|
|
6910
6914
|
}
|
|
@@ -6938,9 +6942,9 @@ const Ho = {
|
|
|
6938
6942
|
const b = [];
|
|
6939
6943
|
for (const w in (g = m.raw) == null ? void 0 : g.Polygon) {
|
|
6940
6944
|
const k = m.raw.Polygon[w];
|
|
6941
|
-
for (const
|
|
6945
|
+
for (const L of k)
|
|
6942
6946
|
b.push(
|
|
6943
|
-
C.polygon(
|
|
6947
|
+
C.polygon(L, {
|
|
6944
6948
|
val: Number(w)
|
|
6945
6949
|
})
|
|
6946
6950
|
);
|
|
@@ -7022,7 +7026,7 @@ const Ho = {
|
|
|
7022
7026
|
}
|
|
7023
7027
|
for (const v in f.Point)
|
|
7024
7028
|
f.Point[v].lng.forEach((b, w) => {
|
|
7025
|
-
b =
|
|
7029
|
+
b = we(b), m.push(
|
|
7026
7030
|
C.point([b, v], {
|
|
7027
7031
|
val: f.Point[v].val[w],
|
|
7028
7032
|
type: f.Point[v].type[w]
|
|
@@ -7062,7 +7066,7 @@ const Ho = {
|
|
|
7062
7066
|
this.weatherLayers[a].active && this.weatherLayers[a].type === "image" && (this.weatherLayers[a].active = !0, this.weatherLayers[a].version = Math.random() + 1);
|
|
7063
7067
|
},
|
|
7064
7068
|
handleBboxClip(a, e) {
|
|
7065
|
-
const t = [], r =
|
|
7069
|
+
const t = [], r = we(e._sw.lng), i = we(e._ne.lng);
|
|
7066
7070
|
return a.features.forEach((o) => {
|
|
7067
7071
|
if (o.geometry.type !== "Point")
|
|
7068
7072
|
if (r > i) {
|
|
@@ -7123,7 +7127,7 @@ const Ho = {
|
|
|
7123
7127
|
ts: e.utc().format(),
|
|
7124
7128
|
wt: !0,
|
|
7125
7129
|
src: this.source
|
|
7126
|
-
}, r = await
|
|
7130
|
+
}, r = await re.get(`${this.gateway}/api/arc/meteo/query`, {
|
|
7127
7131
|
params: t,
|
|
7128
7132
|
headers: {
|
|
7129
7133
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -7142,15 +7146,15 @@ const Ho = {
|
|
|
7142
7146
|
this.particleFactor = a, this.fetchWeatherLayers({ tropicals: !1 });
|
|
7143
7147
|
}
|
|
7144
7148
|
}
|
|
7145
|
-
},
|
|
7149
|
+
}, Ui = {
|
|
7146
7150
|
key: 0,
|
|
7147
7151
|
className: "map-gl-home"
|
|
7148
7152
|
};
|
|
7149
|
-
function
|
|
7150
|
-
var
|
|
7151
|
-
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), g = z("IdmTropicals"), u = z("IdmCurrents"), y = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"),
|
|
7152
|
-
return t.map ? (
|
|
7153
|
-
P(n,
|
|
7153
|
+
function Vi(a, e, t, r, i, o) {
|
|
7154
|
+
var ee, G, J, pe, X, E, U, me, q, ue, te, ae, ie, fe, ge, be, ve, Le, ze, Ee, Re, Ie, De, Ae, Me, Be;
|
|
7155
|
+
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), g = z("IdmTropicals"), u = z("IdmCurrents"), y = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), L = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), N = z("IdmEcaZone"), O = z("IdmAlertZone"), j = z("IdmPort"), H = z("IdmLoadLine"), oe = z("IdmTimezone"), se = z("IdmVRA"), ne = z("IdmSpecialArea"), le = z("IdmTerminator"), ce = z("IdmLatLng"), he = z("IdmMeasure"), de = z("IdmPoint");
|
|
7156
|
+
return t.map ? (x(), _("div", Ui, [
|
|
7157
|
+
P(n, R({
|
|
7154
7158
|
ref: "layer",
|
|
7155
7159
|
map: t.map,
|
|
7156
7160
|
"toggle-version": i.toggleVersion,
|
|
@@ -7158,48 +7162,48 @@ function Jo(a, e, t, r, i, o) {
|
|
|
7158
7162
|
}, a.$attrs, {
|
|
7159
7163
|
onWeather: o.handleWeatherLayerChange,
|
|
7160
7164
|
onOther: o.handleOtherLayerChange,
|
|
7161
|
-
onCoordinate: e[0] || (e[0] = (
|
|
7162
|
-
onMeasure: e[1] || (e[1] = (
|
|
7163
|
-
onPoint: e[2] || (e[2] = (
|
|
7165
|
+
onCoordinate: e[0] || (e[0] = (Y) => i.showCoord = Y),
|
|
7166
|
+
onMeasure: e[1] || (e[1] = (Y) => i.showMeasure = Y),
|
|
7167
|
+
onPoint: e[2] || (e[2] = (Y) => i.showPoint = Y),
|
|
7164
7168
|
on3d: o.handle3dToggle,
|
|
7165
|
-
onToggleVersion: e[3] || (e[3] = (
|
|
7169
|
+
onToggleVersion: e[3] || (e[3] = (Y) => i.toggleVersion = Y)
|
|
7166
7170
|
}), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d"]),
|
|
7167
|
-
P(s,
|
|
7171
|
+
P(s, R({
|
|
7168
7172
|
map: t.map,
|
|
7169
7173
|
token: t.token,
|
|
7170
|
-
enabled: (
|
|
7174
|
+
enabled: (ee = i.otherLayers) == null ? void 0 : ee.enc,
|
|
7171
7175
|
"toggle-version": i.toggleVersion
|
|
7172
7176
|
}, a.$attrs, {
|
|
7173
|
-
onEnc: e[4] || (e[4] = (
|
|
7177
|
+
onEnc: e[4] || (e[4] = (Y) => i.enc = Y)
|
|
7174
7178
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
7175
|
-
P(c,
|
|
7179
|
+
P(c, R({
|
|
7176
7180
|
map: t.map,
|
|
7177
|
-
"sig-wave": (
|
|
7181
|
+
"sig-wave": (G = i.weatherLayers) == null ? void 0 : G["sig-wave-height"],
|
|
7178
7182
|
"before-layer": t.beforeLayer
|
|
7179
7183
|
}, a.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
|
|
7180
|
-
P(h,
|
|
7184
|
+
P(h, R({
|
|
7181
7185
|
map: t.map,
|
|
7182
|
-
swell: (
|
|
7186
|
+
swell: (J = i.weatherLayers) == null ? void 0 : J.swell,
|
|
7183
7187
|
"before-layer": t.beforeLayer
|
|
7184
7188
|
}, a.$attrs), null, 16, ["map", "swell", "before-layer"]),
|
|
7185
|
-
P(d,
|
|
7189
|
+
P(d, R({
|
|
7186
7190
|
map: t.map,
|
|
7187
|
-
prmsl: (
|
|
7191
|
+
prmsl: (pe = i.weatherLayers) == null ? void 0 : pe.prmsl,
|
|
7188
7192
|
"before-layer": t.beforeLayer,
|
|
7189
7193
|
"active-weather-layers": i.activeWeatherLayers
|
|
7190
7194
|
}, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
7191
|
-
P(p,
|
|
7195
|
+
P(p, R({
|
|
7192
7196
|
map: t.map,
|
|
7193
|
-
iceberg: (
|
|
7197
|
+
iceberg: (X = i.weatherLayers) == null ? void 0 : X.iceberg,
|
|
7194
7198
|
"before-layer": t.beforeLayer
|
|
7195
7199
|
}, a.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
7196
|
-
P(g,
|
|
7200
|
+
P(g, R({
|
|
7197
7201
|
map: t.map,
|
|
7198
7202
|
date: t.ts,
|
|
7199
7203
|
tropicals: (E = i.weatherLayers) == null ? void 0 : E.tropicals,
|
|
7200
7204
|
"before-layer": t.beforeLayer
|
|
7201
7205
|
}, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
7202
|
-
P(u,
|
|
7206
|
+
P(u, R({
|
|
7203
7207
|
map: t.map,
|
|
7204
7208
|
"map-projection": i.mapProjection,
|
|
7205
7209
|
current: (U = i.weatherLayers) == null ? void 0 : U.current,
|
|
@@ -7209,18 +7213,18 @@ function Jo(a, e, t, r, i, o) {
|
|
|
7209
7213
|
"toggle-version": i.toggleVersion,
|
|
7210
7214
|
"weather-layers": i.weatherLayers
|
|
7211
7215
|
}, a.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
|
|
7212
|
-
P(y,
|
|
7216
|
+
P(y, R({
|
|
7213
7217
|
viewport: i.viewport,
|
|
7214
|
-
factor: (
|
|
7218
|
+
factor: (me = i.weatherLayers) == null ? void 0 : me["current-particle"],
|
|
7215
7219
|
"before-layer": t.beforeLayer,
|
|
7216
7220
|
"toggle-version": i.toggleVersion
|
|
7217
7221
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7218
|
-
P(f,
|
|
7222
|
+
P(f, R({
|
|
7219
7223
|
ref: "windBarb",
|
|
7220
7224
|
map: t.map,
|
|
7221
7225
|
"map-projection": i.mapProjection,
|
|
7222
|
-
wind: (
|
|
7223
|
-
current: (
|
|
7226
|
+
wind: (q = i.weatherLayers) == null ? void 0 : q.wind,
|
|
7227
|
+
current: (ue = i.weatherLayers) == null ? void 0 : ue.current,
|
|
7224
7228
|
"before-layer": t.beforeLayer,
|
|
7225
7229
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
7226
7230
|
"show-particle": i.showWindParticle
|
|
@@ -7229,120 +7233,120 @@ function Jo(a, e, t, r, i, o) {
|
|
|
7229
7233
|
"weather-layers": i.weatherLayers,
|
|
7230
7234
|
onParticle: o.handleParticle
|
|
7231
7235
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
|
|
7232
|
-
P(m,
|
|
7236
|
+
P(m, R({
|
|
7233
7237
|
viewport: i.viewport,
|
|
7234
|
-
factor: (
|
|
7238
|
+
factor: (te = i.weatherLayers) == null ? void 0 : te["wind-particle"],
|
|
7235
7239
|
"before-layer": t.beforeLayer,
|
|
7236
7240
|
"toggle-version": i.toggleVersion
|
|
7237
7241
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7238
|
-
P(v,
|
|
7242
|
+
P(v, R({
|
|
7239
7243
|
viewport: i.viewport,
|
|
7240
|
-
factor: (
|
|
7244
|
+
factor: (ae = i.weatherLayers) == null ? void 0 : ae.precip3h,
|
|
7241
7245
|
"before-layer": t.beforeLayer,
|
|
7242
7246
|
"toggle-version": i.toggleVersion
|
|
7243
7247
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7244
|
-
P(b,
|
|
7248
|
+
P(b, R({
|
|
7245
7249
|
viewport: i.viewport,
|
|
7246
|
-
factor: (
|
|
7250
|
+
factor: (ie = i.weatherLayers) == null ? void 0 : ie.visibility,
|
|
7247
7251
|
"before-layer": t.beforeLayer,
|
|
7248
7252
|
"toggle-version": i.toggleVersion
|
|
7249
7253
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7250
|
-
P(w,
|
|
7254
|
+
P(w, R({
|
|
7251
7255
|
viewport: i.viewport,
|
|
7252
|
-
factor: (
|
|
7256
|
+
factor: (fe = i.weatherLayers) == null ? void 0 : fe["water-temp"],
|
|
7253
7257
|
"before-layer": t.beforeLayer,
|
|
7254
7258
|
"toggle-version": i.toggleVersion
|
|
7255
7259
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7256
|
-
P(k,
|
|
7260
|
+
P(k, R({
|
|
7257
7261
|
viewport: i.viewport,
|
|
7258
|
-
factor: (
|
|
7262
|
+
factor: (ge = i.weatherLayers) == null ? void 0 : ge.temp,
|
|
7259
7263
|
"before-layer": t.beforeLayer,
|
|
7260
7264
|
"toggle-version": i.toggleVersion
|
|
7261
7265
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7262
|
-
P(
|
|
7266
|
+
P(L, R({
|
|
7263
7267
|
viewport: i.viewport,
|
|
7264
|
-
factor: (
|
|
7268
|
+
factor: (be = i.weatherLayers) == null ? void 0 : be.arctic,
|
|
7265
7269
|
"before-layer": t.beforeLayer,
|
|
7266
7270
|
"toggle-version": i.toggleVersion
|
|
7267
7271
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7268
|
-
P(D,
|
|
7272
|
+
P(D, R({
|
|
7269
7273
|
map: t.map,
|
|
7270
|
-
zone: (
|
|
7274
|
+
zone: (ve = i.otherLayers) == null ? void 0 : ve["war-zones"],
|
|
7271
7275
|
"before-layer": t.beforeLayer
|
|
7272
7276
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7273
|
-
P(A,
|
|
7277
|
+
P(A, R({
|
|
7274
7278
|
map: t.map,
|
|
7275
|
-
area: (
|
|
7279
|
+
area: (Le = i.otherLayers) == null ? void 0 : Le["gmdss-areas"],
|
|
7276
7280
|
"before-layer": t.beforeLayer
|
|
7277
7281
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7278
|
-
P(
|
|
7282
|
+
P(N, R({
|
|
7279
7283
|
map: t.map,
|
|
7280
|
-
zone: (
|
|
7284
|
+
zone: (ze = i.otherLayers) == null ? void 0 : ze["eca-zones"],
|
|
7281
7285
|
"before-layer": t.beforeLayer
|
|
7282
7286
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7283
|
-
P(
|
|
7287
|
+
P(O, R({
|
|
7284
7288
|
map: t.map,
|
|
7285
|
-
zone: (
|
|
7289
|
+
zone: (Ee = i.otherLayers) == null ? void 0 : Ee["alert-zones"],
|
|
7286
7290
|
"before-layer": t.beforeLayer
|
|
7287
7291
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7288
|
-
P(
|
|
7292
|
+
P(j, R({
|
|
7289
7293
|
map: t.map,
|
|
7290
|
-
port: (
|
|
7294
|
+
port: (Re = i.otherLayers) == null ? void 0 : Re.ports,
|
|
7291
7295
|
"before-layer": t.beforeLayer
|
|
7292
7296
|
}, a.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
7293
|
-
P(
|
|
7297
|
+
P(H, R({
|
|
7294
7298
|
map: t.map,
|
|
7295
|
-
line: (
|
|
7299
|
+
line: (Ie = i.otherLayers) == null ? void 0 : Ie["load-lines"],
|
|
7296
7300
|
"before-layer": t.beforeLayer
|
|
7297
7301
|
}, a.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
7298
|
-
P(
|
|
7302
|
+
P(oe, R({
|
|
7299
7303
|
map: t.map,
|
|
7300
|
-
zone: (
|
|
7304
|
+
zone: (De = i.otherLayers) == null ? void 0 : De["time-zones"],
|
|
7301
7305
|
"before-layer": t.beforeLayer
|
|
7302
7306
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7303
|
-
P(
|
|
7307
|
+
P(se, R({
|
|
7304
7308
|
map: t.map,
|
|
7305
|
-
area: (
|
|
7309
|
+
area: (Ae = i.otherLayers) == null ? void 0 : Ae["voluntary-reporting-area"],
|
|
7306
7310
|
"before-layer": t.beforeLayer
|
|
7307
7311
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7308
|
-
P(
|
|
7312
|
+
P(ne, R({
|
|
7309
7313
|
map: t.map,
|
|
7310
|
-
area: (
|
|
7314
|
+
area: (Me = i.otherLayers) == null ? void 0 : Me["special-area"],
|
|
7311
7315
|
"before-layer": t.beforeLayer
|
|
7312
7316
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7313
|
-
P(
|
|
7317
|
+
P(le, R({
|
|
7314
7318
|
map: t.map,
|
|
7315
|
-
area: (
|
|
7319
|
+
area: (Be = i.otherLayers) == null ? void 0 : Be["day-night"]
|
|
7316
7320
|
}, a.$attrs), null, 16, ["map", "area"]),
|
|
7317
|
-
P(
|
|
7321
|
+
P(ce, R({
|
|
7318
7322
|
map: t.map,
|
|
7319
7323
|
show: i.showCoord,
|
|
7320
7324
|
"toggle-version": i.toggleVersion
|
|
7321
7325
|
}, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
7322
|
-
P(
|
|
7326
|
+
P(he, R({
|
|
7323
7327
|
map: t.map,
|
|
7324
7328
|
show: i.showMeasure
|
|
7325
7329
|
}, a.$attrs), null, 16, ["map", "show"]),
|
|
7326
|
-
P(
|
|
7330
|
+
P(de, R({
|
|
7327
7331
|
map: t.map,
|
|
7328
7332
|
show: i.showPoint,
|
|
7329
7333
|
meteo: i.meteo
|
|
7330
7334
|
}, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
|
|
7331
|
-
])) :
|
|
7335
|
+
])) : B("", !0);
|
|
7332
7336
|
}
|
|
7333
|
-
const
|
|
7337
|
+
const Zi = /* @__PURE__ */ T($i, [["render", Vi]]), er = {
|
|
7334
7338
|
install(a) {
|
|
7335
|
-
a.component("MapboxGL",
|
|
7339
|
+
a.component("MapboxGL", Zi), a.component("TropicalGL", Oe), a.component("LatLngGL", je);
|
|
7336
7340
|
}
|
|
7337
7341
|
};
|
|
7338
7342
|
export {
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
+
je as LatLngGL,
|
|
7344
|
+
Zi as MapboxGL,
|
|
7345
|
+
er as MapboxGLPlugin,
|
|
7346
|
+
gt as MapboxHelper,
|
|
7343
7347
|
V as ParticleSchema,
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
+
Oe as TropicalGL,
|
|
7349
|
+
Te as Viewport,
|
|
7350
|
+
ye as WebGL,
|
|
7351
|
+
W as WebGLSchema
|
|
7348
7352
|
};
|