@idmwx/idmui-gl3 5.7.7 → 5.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +927 -849
- package/dist/index.umd.cjs +13 -13
- package/dist/mapbox/src/components/layer.vue.d.ts +1 -0
- package/dist/mapbox/src/helper.d.ts +21 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var ht = Object.defineProperty;
|
|
2
2
|
var dt = (t, e, a) => e in t ? ht(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
3
|
-
var
|
|
3
|
+
var K = (t, e, a) => (dt(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
4
4
|
import { LayerHelper as Ke, CompanyHelper as Xe } from "@idm-plugin/tag";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import X from "moment";
|
|
6
|
+
import he from "axios";
|
|
7
7
|
import Ge from "moment-timezone";
|
|
8
|
-
import { resolveComponent as
|
|
9
|
-
import * as
|
|
8
|
+
import { resolveComponent as T, openBlock as m, createElementBlock as g, createElementVNode as s, normalizeStyle as $, createVNode as z, withCtx as re, normalizeClass as G, Fragment as F, renderList as U, toDisplayString as E, createCommentVNode as R, createBlock as pt, createTextVNode as Z, withDirectives as ye, createStaticVNode as ut, vShow as we, defineComponent as mt, withModifiers as Ue, mergeProps as j } from "vue";
|
|
9
|
+
import * as M from "@turf/turf";
|
|
10
10
|
import gt from "@mapbox/sphericalmercator";
|
|
11
11
|
import ve from "mapbox-gl";
|
|
12
|
-
import { TropicalHelper as nt, LngLatHelper as
|
|
12
|
+
import { TropicalHelper as nt, LngLatHelper as q, LaneHelper as be } from "@idm-plugin/geo";
|
|
13
13
|
import { TidesAssist as Ye, Meteo2Assist as We } from "@idm-plugin/meteo";
|
|
14
|
-
const
|
|
14
|
+
const O = (t, e) => {
|
|
15
15
|
const a = t.__vccOpts || t;
|
|
16
16
|
for (const [r, i] of e)
|
|
17
17
|
a[r] = i;
|
|
@@ -120,11 +120,15 @@ const S = (t, e) => {
|
|
|
120
120
|
return function(t) {
|
|
121
121
|
var e;
|
|
122
122
|
if (t) {
|
|
123
|
-
const a =
|
|
123
|
+
const a = X(t);
|
|
124
124
|
return `${(e = a == null ? void 0 : a.utc()) == null ? void 0 : e.format("MMM-DD/HHmm")}Z`;
|
|
125
125
|
}
|
|
126
126
|
return "-";
|
|
127
127
|
};
|
|
128
|
+
},
|
|
129
|
+
sourceCode() {
|
|
130
|
+
var t;
|
|
131
|
+
return (t = this.sourceList.find((e) => e.name === this.source)) == null ? void 0 : t.code;
|
|
128
132
|
}
|
|
129
133
|
},
|
|
130
134
|
watch: {
|
|
@@ -174,7 +178,7 @@ const S = (t, e) => {
|
|
|
174
178
|
async fetchMeteoSource() {
|
|
175
179
|
var e;
|
|
176
180
|
this.sourceList = [];
|
|
177
|
-
let t = await
|
|
181
|
+
let t = await he.get(`${this.gateway}/api/arc/meteo2/models`, {
|
|
178
182
|
headers: {
|
|
179
183
|
Authorization: this.token
|
|
180
184
|
}
|
|
@@ -200,26 +204,18 @@ const S = (t, e) => {
|
|
|
200
204
|
)), e = localStorage.getItem(this.activeWeatherLayersCache), a = JSON.parse(e), this.autoActive ? this.activeWeatherLayers = [...a] : this.activeWeatherLayersCollected = [...a], a.some((r) => r.key === "wind" && r.particle) && (this.$emit("toggleWindParticle", !0), this.showWindParticleCollected = !0), a.some((r) => r.key === "current" && r.particle) && (this.$emit("toggleCurrentParticle", !0), this.showCurrentParticleCollected = !0), this.showWindFeatherCollected = JSON.parse(localStorage.getItem(this.windFeatherCollectedCache)), this.showCurrentIsobandCollected = JSON.parse(localStorage.getItem(this.currentIsobandCollectedCache)), this.autoActive && (this.$emit("toggleWindFeather", this.showWindFeatherCollected), this.$emit("toggleCurrentIsoband", this.showCurrentIsobandCollected)), a.some((r) => r.key === "wind" && !r.particle && !this.showWindFeatherCollected) && (a = a.filter((r) => r.key !== "wind")), a.some((r) => r.key === "current" && !r.particle && !this.showCurrentIsobandCollected) && (a = a.filter((r) => r.key !== "current")), e = localStorage.getItem(this.activeOtherLayersCache), a = JSON.parse(e || '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}, {"weight": 2048,"name": "ENC","key": "enc","h5": true,"enabled": true,"type": "origin"}]'), this.activeOtherLayers = a, e = localStorage.getItem(this.sourceCache), this.source = this.forecastModel ? this.forecastModel : e ? e === "CMEMS" ? "ECMWF" : e : this.source, this.$emit("forecastModel", this.source);
|
|
201
205
|
},
|
|
202
206
|
handleConfirm() {
|
|
203
|
-
|
|
204
|
-
if (this.autoActive) {
|
|
205
|
-
const e = (t = this.sourceList.find((a) => a.name === this.source)) == null ? void 0 : t.code;
|
|
206
|
-
this.$emit("weather", JSON.parse(localStorage.getItem(this.activeWeatherLayersCache)), e);
|
|
207
|
-
}
|
|
208
|
-
this.$emit("other", this.activeOtherLayers), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
|
|
207
|
+
this.autoActive && this.$emit("weather", JSON.parse(localStorage.getItem(this.activeWeatherLayersCache)), this.sourceCode), this.$emit("other", this.activeOtherLayers), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
|
|
209
208
|
},
|
|
210
209
|
handleWeatherLayerPick(t) {
|
|
211
|
-
var a;
|
|
212
210
|
if (this.activeWeatherLayers = JSON.parse(localStorage.getItem(this.activeWeatherLayersCache)), this.rampColorLayers.includes(t.key) && this.mapProjection === "globe" || !this.autoActive)
|
|
213
211
|
return !1;
|
|
214
|
-
(t.key === "wind" && !this.showWindFeather || t.key === "current" && !this.showCurrentIsoband) && (t.particle = !0), this.activeWeatherLayers.some((
|
|
215
|
-
(
|
|
216
|
-
}), this.activeWeatherLayers = this.activeWeatherLayers.filter((
|
|
217
|
-
|
|
218
|
-
}), this.activeWeatherLayers = this.activeWeatherLayers.filter((
|
|
219
|
-
|
|
220
|
-
}), this.activeWeatherLayers = this.activeWeatherLayers.filter((
|
|
221
|
-
const e = (a = this.sourceList.find((r) => r.name === this.source)) == null ? void 0 : a.code;
|
|
222
|
-
this.$emit("weather", this.activeWeatherLayers, e);
|
|
212
|
+
(t.key === "wind" && !this.showWindFeather || t.key === "current" && !this.showCurrentIsoband) && (t.particle = !0), this.activeWeatherLayers.some((e) => e.key === t.key) ? this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== t.key) : this.activeWeatherLayers.length < 6 && t.enabled && (["png", "jpg"].includes(t.type) ? (this.activeWeatherLayers.forEach((e) => {
|
|
213
|
+
(e.key === "wind" && this.showWindFeather || t.key === "current" && this.showCurrentIsoband) && (e.particle = !1);
|
|
214
|
+
}), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json" && !(["wind", "current"].includes(e.key) && e.particle))) : t.key === "wind" ? (this.activeWeatherLayers.forEach((e) => {
|
|
215
|
+
e.key === "current" && this.showCurrentIsoband && (e.particle = !1);
|
|
216
|
+
}), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json" && !(["wind", "current"].includes(e.key) && e.particle))) : t.key === "current" && (this.activeWeatherLayers.forEach((e) => {
|
|
217
|
+
e.key === "wind" && this.showWindFeather && (e.particle = !1);
|
|
218
|
+
}), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json" && !(["wind", "current"].includes(e.key) && e.particle))), this.activeWeatherLayers.push(t)), this.$emit("weather", this.activeWeatherLayers, this.sourceCode);
|
|
223
219
|
},
|
|
224
220
|
handleWeatherLayerCollect(t) {
|
|
225
221
|
var e;
|
|
@@ -246,9 +242,7 @@ const S = (t, e) => {
|
|
|
246
242
|
this.$emit("layerToggle", !this.layerToggle);
|
|
247
243
|
},
|
|
248
244
|
toggleAutoActive() {
|
|
249
|
-
|
|
250
|
-
const t = (e = this.sourceList.find((a) => a.name === this.source)) == null ? void 0 : e.code;
|
|
251
|
-
this.autoActive = !this.autoActive, localStorage.setItem(this.autoActiveCache, this.autoActive), this.autoActive ? (this.$emit("weather", this.activeWeatherLayersCollected, t), this.$emit("toggleWindFeather", localStorage.getItem(this.windFeatherCollectedCache) === "true"), this.$emit("toggleCurrentIsoband", localStorage.getItem(this.currentIsobandCollectedCache) === "true")) : (this.$emit("weather", [], t), this.$emit("toggleWindFeather", !1), this.$emit("toggleCurrentIsoband", !1));
|
|
245
|
+
this.autoActive = !this.autoActive, localStorage.setItem(this.autoActiveCache, this.autoActive), this.autoActive ? (this.$emit("weather", this.activeWeatherLayersCollected, this.sourceCode), this.$emit("toggleWindFeather", localStorage.getItem(this.windFeatherCollectedCache) === "true"), this.$emit("toggleCurrentIsoband", localStorage.getItem(this.currentIsobandCollectedCache) === "true")) : (this.$emit("weather", [], this.sourceCode), this.$emit("toggleWindFeather", !1), this.$emit("toggleCurrentIsoband", !1));
|
|
252
246
|
},
|
|
253
247
|
handleCoordToggle() {
|
|
254
248
|
this.showCoord = !this.showCoord, this.$emit("coordinate", this.showCoord);
|
|
@@ -307,22 +301,22 @@ const S = (t, e) => {
|
|
|
307
301
|
class: "radio-tip"
|
|
308
302
|
};
|
|
309
303
|
function $t(t, e, a, r, i, o) {
|
|
310
|
-
const l =
|
|
304
|
+
const l = T("ElTooltip"), c = T("ElRadio"), h = T("ElRadioGroup"), p = T("ElScrollbar");
|
|
311
305
|
return m(), g("div", ft, [
|
|
312
306
|
s("div", {
|
|
313
307
|
class: "menu-bar-box",
|
|
314
|
-
style:
|
|
308
|
+
style: $({ top: a.top + 10 + "px", right: i.right + "px" })
|
|
315
309
|
}, [
|
|
316
310
|
s("div", yt, [
|
|
317
|
-
|
|
311
|
+
z(l, {
|
|
318
312
|
placement: "left",
|
|
319
313
|
effect: "light",
|
|
320
314
|
content: "Menu",
|
|
321
315
|
"show-after": 1e3
|
|
322
316
|
}, {
|
|
323
|
-
default:
|
|
317
|
+
default: re(() => [
|
|
324
318
|
s("div", {
|
|
325
|
-
class:
|
|
319
|
+
class: G(a.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
326
320
|
onClick: e[0] || (e[0] = (...n) => o.handleMenuToggle && o.handleMenuToggle(...n))
|
|
327
321
|
}, e[17] || (e[17] = [
|
|
328
322
|
s("span", { class: "iconfont" }, "", -1)
|
|
@@ -334,18 +328,18 @@ function $t(t, e, a, r, i, o) {
|
|
|
334
328
|
], 4),
|
|
335
329
|
s("div", {
|
|
336
330
|
class: "menu-bar-box",
|
|
337
|
-
style:
|
|
331
|
+
style: $({ top: a.top + 160 + "px", right: i.right + "px" })
|
|
338
332
|
}, [
|
|
339
333
|
s("div", wt, [
|
|
340
|
-
|
|
334
|
+
z(l, {
|
|
341
335
|
placement: "left",
|
|
342
336
|
effect: "light",
|
|
343
337
|
content: "Measure",
|
|
344
338
|
"show-after": 1e3
|
|
345
339
|
}, {
|
|
346
|
-
default:
|
|
340
|
+
default: re(() => [
|
|
347
341
|
s("div", {
|
|
348
|
-
class:
|
|
342
|
+
class: G(i.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
349
343
|
onClick: e[1] || (e[1] = (...n) => o.handleMeasureToggle && o.handleMeasureToggle(...n))
|
|
350
344
|
}, e[18] || (e[18] = [
|
|
351
345
|
s("span", { class: "iconfont" }, "", -1)
|
|
@@ -353,15 +347,15 @@ function $t(t, e, a, r, i, o) {
|
|
|
353
347
|
]),
|
|
354
348
|
_: 1
|
|
355
349
|
}),
|
|
356
|
-
|
|
350
|
+
z(l, {
|
|
357
351
|
placement: "left",
|
|
358
352
|
effect: "light",
|
|
359
353
|
content: "Point Meteo",
|
|
360
354
|
"show-after": 1e3
|
|
361
355
|
}, {
|
|
362
|
-
default:
|
|
356
|
+
default: re(() => [
|
|
363
357
|
s("div", {
|
|
364
|
-
class:
|
|
358
|
+
class: G(i.showPoint ? "menu-icon active" : "menu-icon"),
|
|
365
359
|
onClick: e[2] || (e[2] = (...n) => o.handlePointToggle && o.handlePointToggle(...n))
|
|
366
360
|
}, e[19] || (e[19] = [
|
|
367
361
|
s("span", { class: "iconfont" }, "", -1)
|
|
@@ -369,15 +363,15 @@ function $t(t, e, a, r, i, o) {
|
|
|
369
363
|
]),
|
|
370
364
|
_: 1
|
|
371
365
|
}),
|
|
372
|
-
|
|
366
|
+
z(l, {
|
|
373
367
|
placement: "left",
|
|
374
368
|
effect: "light",
|
|
375
369
|
content: "Grid",
|
|
376
370
|
"show-after": 1e3
|
|
377
371
|
}, {
|
|
378
|
-
default:
|
|
372
|
+
default: re(() => [
|
|
379
373
|
s("div", {
|
|
380
|
-
class:
|
|
374
|
+
class: G(i.showCoord ? "menu-icon active" : "menu-icon"),
|
|
381
375
|
onClick: e[3] || (e[3] = (...n) => o.handleCoordToggle && o.handleCoordToggle(...n))
|
|
382
376
|
}, e[20] || (e[20] = [
|
|
383
377
|
s("span", { class: "iconfont" }, "", -1)
|
|
@@ -385,15 +379,15 @@ function $t(t, e, a, r, i, o) {
|
|
|
385
379
|
]),
|
|
386
380
|
_: 1
|
|
387
381
|
}),
|
|
388
|
-
|
|
382
|
+
z(l, {
|
|
389
383
|
placement: "left",
|
|
390
384
|
effect: "light",
|
|
391
385
|
content: "3D",
|
|
392
386
|
"show-after": 1e3
|
|
393
387
|
}, {
|
|
394
|
-
default:
|
|
388
|
+
default: re(() => [
|
|
395
389
|
s("div", {
|
|
396
|
-
class:
|
|
390
|
+
class: G(i.show3d ? "menu-icon active" : "menu-icon"),
|
|
397
391
|
onClick: e[4] || (e[4] = (...n) => o.handle3DToggle && o.handle3DToggle(...n))
|
|
398
392
|
}, e[21] || (e[21] = [
|
|
399
393
|
s("span", { class: "iconfont" }, "", -1)
|
|
@@ -406,7 +400,7 @@ function $t(t, e, a, r, i, o) {
|
|
|
406
400
|
o.hasCollectedLayers ? (m(), g("div", {
|
|
407
401
|
key: 0,
|
|
408
402
|
class: "active-layers",
|
|
409
|
-
style:
|
|
403
|
+
style: $({ right: i.right + "px", bottom: "100px" })
|
|
410
404
|
}, [
|
|
411
405
|
s("div", bt, [
|
|
412
406
|
e[22] || (e[22] = s("div", { style: { margin: "2px 5px" } }, "Weather Layers", -1)),
|
|
@@ -418,46 +412,46 @@ function $t(t, e, a, r, i, o) {
|
|
|
418
412
|
i.autoActive ? (m(), g("i", vt, "")) : (m(), g("i", Lt, ""))
|
|
419
413
|
])
|
|
420
414
|
]),
|
|
421
|
-
(m(!0), g(
|
|
415
|
+
(m(!0), g(F, null, U(i.layers.weather.filter((n) => n.collected), (n) => (m(), g("div", {
|
|
422
416
|
key: n.key,
|
|
423
|
-
class:
|
|
417
|
+
class: G(o.computeLayerClass(n, i.activeWeatherLayersCollected))
|
|
424
418
|
}, [
|
|
425
419
|
s("div", {
|
|
426
420
|
class: "checkbox",
|
|
427
|
-
onClick: (
|
|
421
|
+
onClick: (u) => o.handleWeatherLayerPick(n)
|
|
428
422
|
}, null, 8, Ct),
|
|
429
423
|
s("span", {
|
|
430
424
|
class: "name",
|
|
431
|
-
onClick: (
|
|
432
|
-
},
|
|
433
|
-
n.key === "wind" && i.activeWeatherLayersCollected.some((
|
|
425
|
+
onClick: (u) => o.handleWeatherLayerPick(n)
|
|
426
|
+
}, E(n.name), 9, xt),
|
|
427
|
+
n.key === "wind" && i.activeWeatherLayersCollected.some((u) => u.key === n.key) ? (m(), g("div", Bt, [
|
|
434
428
|
s("i", {
|
|
435
|
-
class:
|
|
436
|
-
onClick: e[6] || (e[6] = (
|
|
429
|
+
class: G(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
430
|
+
onClick: e[6] || (e[6] = (u) => o.handleToggleWindParticle())
|
|
437
431
|
}, "", 2),
|
|
438
432
|
s("i", {
|
|
439
|
-
class:
|
|
440
|
-
onClick: e[7] || (e[7] = (
|
|
433
|
+
class: G(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
434
|
+
onClick: e[7] || (e[7] = (u) => o.handleToggleWindFeather())
|
|
441
435
|
}, "", 2)
|
|
442
|
-
])) :
|
|
443
|
-
n.key === "current" && i.activeWeatherLayersCollected.some((
|
|
436
|
+
])) : R("", !0),
|
|
437
|
+
n.key === "current" && i.activeWeatherLayersCollected.some((u) => u.key === n.key) ? (m(), g("div", It, [
|
|
444
438
|
s("i", {
|
|
445
|
-
class:
|
|
446
|
-
onClick: e[8] || (e[8] = (
|
|
439
|
+
class: G(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
440
|
+
onClick: e[8] || (e[8] = (u) => o.handleToggleCurrentParticle())
|
|
447
441
|
}, "", 2),
|
|
448
442
|
s("i", {
|
|
449
|
-
class:
|
|
450
|
-
onClick: e[9] || (e[9] = (
|
|
443
|
+
class: G(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
444
|
+
onClick: e[9] || (e[9] = (u) => o.handleToggleCurrentIsoband())
|
|
451
445
|
}, "", 2)
|
|
452
|
-
])) :
|
|
446
|
+
])) : R("", !0)
|
|
453
447
|
], 2))), 128))
|
|
454
|
-
], 4)) :
|
|
448
|
+
], 4)) : R("", !0),
|
|
455
449
|
s("div", {
|
|
456
450
|
class: "available-layers flex-center",
|
|
457
|
-
style:
|
|
451
|
+
style: $({ top: a.top + "px", right: a.layerToggle ? "0px" : "-240px" })
|
|
458
452
|
}, [
|
|
459
453
|
s("div", {
|
|
460
|
-
class:
|
|
454
|
+
class: G(["list-box", a.layerToggle ? "right-bar" : ""])
|
|
461
455
|
}, [
|
|
462
456
|
s("div", Et, [
|
|
463
457
|
e[23] || (e[23] = s("div", null, "Layers", -1)),
|
|
@@ -466,8 +460,8 @@ function $t(t, e, a, r, i, o) {
|
|
|
466
460
|
onClick: e[10] || (e[10] = (...n) => o.handleMenuToggle && o.handleMenuToggle(...n))
|
|
467
461
|
}, "")
|
|
468
462
|
]),
|
|
469
|
-
|
|
470
|
-
default:
|
|
463
|
+
z(p, { style: { flex: "1" } }, {
|
|
464
|
+
default: re(() => [
|
|
471
465
|
s("div", Dt, [
|
|
472
466
|
s("div", Pt, [
|
|
473
467
|
e[24] || (e[24] = s("div", null, "Weather Layers", -1)),
|
|
@@ -480,45 +474,45 @@ function $t(t, e, a, r, i, o) {
|
|
|
480
474
|
])
|
|
481
475
|
]),
|
|
482
476
|
s("div", zt, [
|
|
483
|
-
(m(!0), g(
|
|
477
|
+
(m(!0), g(F, null, U(i.layers.weather, (n) => (m(), g(F, {
|
|
484
478
|
key: n.key
|
|
485
479
|
}, [
|
|
486
|
-
n.hide ?
|
|
480
|
+
n.hide ? R("", !0) : (m(), g("div", {
|
|
487
481
|
key: 0,
|
|
488
|
-
class:
|
|
482
|
+
class: G(o.computeLayerClass(n, i.activeWeatherLayersCollected))
|
|
489
483
|
}, [
|
|
490
484
|
s("div", Tt, [
|
|
491
485
|
s("div", {
|
|
492
486
|
class: "checkbox",
|
|
493
|
-
onClick: (
|
|
487
|
+
onClick: (u) => o.handleWeatherLayerPick(n)
|
|
494
488
|
}, null, 8, Qt),
|
|
495
489
|
s("span", {
|
|
496
490
|
class: "name",
|
|
497
|
-
onClick: (
|
|
498
|
-
},
|
|
499
|
-
n.key === "wind" && i.activeWeatherLayersCollected.some((
|
|
491
|
+
onClick: (u) => o.handleWeatherLayerPick(n)
|
|
492
|
+
}, E(n.name), 9, St),
|
|
493
|
+
n.key === "wind" && i.activeWeatherLayersCollected.some((u) => u.key === n.key) ? (m(), g("div", _t, [
|
|
500
494
|
s("i", {
|
|
501
|
-
class:
|
|
502
|
-
onClick: e[12] || (e[12] = (
|
|
495
|
+
class: G(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
496
|
+
onClick: e[12] || (e[12] = (u) => o.handleToggleWindParticle())
|
|
503
497
|
}, "", 2),
|
|
504
498
|
s("i", {
|
|
505
|
-
class:
|
|
506
|
-
onClick: e[13] || (e[13] = (
|
|
499
|
+
class: G(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
500
|
+
onClick: e[13] || (e[13] = (u) => o.handleToggleWindFeather())
|
|
507
501
|
}, "", 2)
|
|
508
|
-
])) :
|
|
509
|
-
n.key === "current" && i.activeWeatherLayersCollected.some((
|
|
502
|
+
])) : R("", !0),
|
|
503
|
+
n.key === "current" && i.activeWeatherLayersCollected.some((u) => u.key === n.key) ? (m(), g("div", Ht, [
|
|
510
504
|
s("i", {
|
|
511
|
-
class:
|
|
512
|
-
onClick: e[14] || (e[14] = (
|
|
505
|
+
class: G(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
506
|
+
onClick: e[14] || (e[14] = (u) => o.handleToggleCurrentParticle())
|
|
513
507
|
}, "", 2),
|
|
514
508
|
s("i", {
|
|
515
|
-
class:
|
|
516
|
-
onClick: e[15] || (e[15] = (
|
|
509
|
+
class: G(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
510
|
+
onClick: e[15] || (e[15] = (u) => o.handleToggleCurrentIsoband())
|
|
517
511
|
}, "", 2)
|
|
518
|
-
])) :
|
|
512
|
+
])) : R("", !0)
|
|
519
513
|
]),
|
|
520
514
|
s("div", {
|
|
521
|
-
onClick: (
|
|
515
|
+
onClick: (u) => o.handleWeatherLayerCollect(n)
|
|
522
516
|
}, [
|
|
523
517
|
n.collected ? (m(), g("i", Nt, "")) : (m(), g("i", jt, ""))
|
|
524
518
|
], 8, Ot)
|
|
@@ -536,18 +530,18 @@ function $t(t, e, a, r, i, o) {
|
|
|
536
530
|
s("div", Rt, [
|
|
537
531
|
e[26] || (e[26] = s("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
538
532
|
s("div", Ft, [
|
|
539
|
-
(m(!0), g(
|
|
540
|
-
var
|
|
533
|
+
(m(!0), g(F, null, U(i.layers.other, (n) => {
|
|
534
|
+
var u;
|
|
541
535
|
return m(), g("div", {
|
|
542
536
|
key: n.key,
|
|
543
|
-
class:
|
|
544
|
-
onClick: (
|
|
537
|
+
class: G(["layer flex-between", o.computeLayerClass(n, i.activeOtherLayers)]),
|
|
538
|
+
onClick: (b) => o.handleOtherLayerPick(n)
|
|
545
539
|
}, [
|
|
546
540
|
s("div", Wt, [
|
|
547
541
|
s("div", Ut, [
|
|
548
|
-
(
|
|
542
|
+
(u = o.computeLayerClass(n, i.activeOtherLayers)) != null && u.includes("active") ? (m(), g("i", Yt, "")) : (m(), g("i", Kt, ""))
|
|
549
543
|
]),
|
|
550
|
-
s("span", null,
|
|
544
|
+
s("span", null, E(n.name), 1)
|
|
551
545
|
])
|
|
552
546
|
], 10, Gt);
|
|
553
547
|
}), 128))
|
|
@@ -556,23 +550,23 @@ function $t(t, e, a, r, i, o) {
|
|
|
556
550
|
s("div", Xt, [
|
|
557
551
|
e[27] || (e[27] = s("span", { class: "layers-title" }, "Forecast Model", -1)),
|
|
558
552
|
s("div", Jt, [
|
|
559
|
-
|
|
553
|
+
z(h, {
|
|
560
554
|
modelValue: i.source,
|
|
561
555
|
"onUpdate:modelValue": e[16] || (e[16] = (n) => i.source = n),
|
|
562
556
|
class: "layer-radio flex-col-start-start",
|
|
563
557
|
style: { width: "180px", "align-items": "flex-start" }
|
|
564
558
|
}, {
|
|
565
|
-
default:
|
|
566
|
-
(m(!0), g(
|
|
559
|
+
default: re(() => [
|
|
560
|
+
(m(!0), g(F, null, U(i.sourceList, (n, u) => (m(), pt(c, {
|
|
567
561
|
key: `source${n.name}`,
|
|
568
562
|
value: n.name
|
|
569
563
|
}, {
|
|
570
|
-
default:
|
|
571
|
-
var
|
|
564
|
+
default: re(() => {
|
|
565
|
+
var b, v, y, x, D, L;
|
|
572
566
|
return [
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
567
|
+
Z(E(n.name) + " ", 1),
|
|
568
|
+
u !== 0 ? (m(), g("span", qt, E(n.resolution) + "km " + E(n.length) + "days", 1)) : R("", !0),
|
|
569
|
+
u === 0 ? (m(), g("div", Vt, "Provides the best forecast")) : (y = (v = (b = n == null ? void 0 : n.update) == null ? void 0 : b.default) == null ? void 0 : v.meta) != null && y.initialisationTime ? (m(), g("div", Zt, "Update: " + E(o.computeDateZ((L = (D = (x = n == null ? void 0 : n.update) == null ? void 0 : x.default) == null ? void 0 : D.meta) == null ? void 0 : L.initialisationTime)), 1)) : R("", !0)
|
|
576
570
|
];
|
|
577
571
|
}),
|
|
578
572
|
_: 2
|
|
@@ -589,7 +583,7 @@ function $t(t, e, a, r, i, o) {
|
|
|
589
583
|
], 4)
|
|
590
584
|
]);
|
|
591
585
|
}
|
|
592
|
-
const ea = /* @__PURE__ */
|
|
586
|
+
const ea = /* @__PURE__ */ O(At, [["render", $t]]);
|
|
593
587
|
const ta = {
|
|
594
588
|
name: "IdmWindBarb",
|
|
595
589
|
props: {
|
|
@@ -628,7 +622,7 @@ const ta = {
|
|
|
628
622
|
return {
|
|
629
623
|
source: "wind-barb-source",
|
|
630
624
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
631
|
-
empty:
|
|
625
|
+
empty: M.featureCollection([]),
|
|
632
626
|
right: 10,
|
|
633
627
|
bottom: 125,
|
|
634
628
|
windBarbLoaded: !1
|
|
@@ -673,22 +667,22 @@ const ta = {
|
|
|
673
667
|
else {
|
|
674
668
|
this.map.addSource(this.source, { type: "geojson", data: c });
|
|
675
669
|
for (let h = 0; h < (this.barbs ?? []).length - 1; h++) {
|
|
676
|
-
const
|
|
670
|
+
const p = (this.barbs ?? [])[h] || 0, n = (this.barbs ?? [])[h + 1] || 0, u = p < 10 ? `00${p}kts` : p < 100 ? `0${p}kts` : `${p}kts`;
|
|
677
671
|
this.map.addLayer(
|
|
678
672
|
{
|
|
679
|
-
id:
|
|
673
|
+
id: u,
|
|
680
674
|
type: "symbol",
|
|
681
675
|
filter: [
|
|
682
676
|
"all",
|
|
683
677
|
// @ts-ignore
|
|
684
|
-
[">=", "spd",
|
|
678
|
+
[">=", "spd", p],
|
|
685
679
|
// @ts-ignore
|
|
686
680
|
["<", "spd", n]
|
|
687
681
|
],
|
|
688
682
|
source: this.source,
|
|
689
683
|
layout: {
|
|
690
684
|
"symbol-placement": "point",
|
|
691
|
-
"icon-image":
|
|
685
|
+
"icon-image": u,
|
|
692
686
|
// mapbox sprite
|
|
693
687
|
"icon-size": 0.14,
|
|
694
688
|
"icon-offset": [0, -20],
|
|
@@ -735,18 +729,18 @@ const ta = {
|
|
|
735
729
|
function aa(t, e, a, r, i, o) {
|
|
736
730
|
return null;
|
|
737
731
|
}
|
|
738
|
-
const ia = /* @__PURE__ */
|
|
732
|
+
const ia = /* @__PURE__ */ O(ta, [["render", aa]]);
|
|
739
733
|
class Je {
|
|
740
734
|
constructor(e) {
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
735
|
+
K(this, "map");
|
|
736
|
+
K(this, "mercator");
|
|
737
|
+
K(this, "rampColorLayer");
|
|
738
|
+
K(this, "rampColorSource");
|
|
739
|
+
K(this, "particleLayer");
|
|
740
|
+
K(this, "particleSource");
|
|
741
|
+
K(this, "rampColorCanvas");
|
|
742
|
+
K(this, "particleCanvas");
|
|
743
|
+
K(this, "ratio");
|
|
750
744
|
this.map = e, this.mercator = new gt(), 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;
|
|
751
745
|
}
|
|
752
746
|
/**
|
|
@@ -781,8 +775,8 @@ class Je {
|
|
|
781
775
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
782
776
|
*/
|
|
783
777
|
getBoundPixel() {
|
|
784
|
-
const e = this.map.getBounds(), a = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, l] = this.convertNLng(r[0]), [c, h] = this.convertNLng(i[0]), [
|
|
785
|
-
return [
|
|
778
|
+
const e = this.map.getBounds(), a = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, l] = this.convertNLng(r[0]), [c, h] = this.convertNLng(i[0]), [p, n] = this.mercator.px([o, r[1]], a), [u, b] = this.mercator.px([c, i[1]], a), v = Math.round(this.mercator.size * Math.pow(2, a) * (l + h));
|
|
779
|
+
return [u, b, p + v, n];
|
|
786
780
|
}
|
|
787
781
|
/**
|
|
788
782
|
* [视窗边界像素宽度]
|
|
@@ -799,11 +793,11 @@ class Je {
|
|
|
799
793
|
getWorldCopy(e, a) {
|
|
800
794
|
const r = 2 ** a, [i, o, l, c] = e.map((n) => ~~(n / (r * 256))), h = [];
|
|
801
795
|
for (let n = c; n <= o; n++)
|
|
802
|
-
for (let
|
|
803
|
-
h.push([
|
|
796
|
+
for (let u = i; u <= l; u++)
|
|
797
|
+
h.push([u, n]);
|
|
804
798
|
return h.map((n) => {
|
|
805
|
-
const
|
|
806
|
-
return [n[0] *
|
|
799
|
+
const u = 2 ** a * 256;
|
|
800
|
+
return [n[0] * u, n[1] * u, u];
|
|
807
801
|
});
|
|
808
802
|
}
|
|
809
803
|
resize() {
|
|
@@ -885,13 +879,13 @@ class Ce {
|
|
|
885
879
|
if (i) {
|
|
886
880
|
const o = { program: i }, l = e.getProgramParameter(i, e.ACTIVE_ATTRIBUTES);
|
|
887
881
|
for (let h = 0; h < l; h++) {
|
|
888
|
-
const
|
|
889
|
-
o[
|
|
882
|
+
const p = e.getActiveAttrib(i, h);
|
|
883
|
+
o[p.name] = e.getAttribLocation(i, p.name);
|
|
890
884
|
}
|
|
891
885
|
const c = e.getProgramParameter(i, e.ACTIVE_UNIFORMS);
|
|
892
886
|
for (let h = 0; h < c; h++) {
|
|
893
|
-
const
|
|
894
|
-
o[
|
|
887
|
+
const p = e.getActiveUniform(i, h);
|
|
888
|
+
o[p.name] = e.getUniformLocation(i, p.name);
|
|
895
889
|
}
|
|
896
890
|
return o;
|
|
897
891
|
}
|
|
@@ -906,8 +900,8 @@ class Ce {
|
|
|
906
900
|
const c = l.getContext("2d");
|
|
907
901
|
if (c && e) {
|
|
908
902
|
const h = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
|
|
909
|
-
return a.forEach(([
|
|
910
|
-
h.addColorStop(
|
|
903
|
+
return a.forEach(([p, n]) => {
|
|
904
|
+
h.addColorStop(p, n);
|
|
911
905
|
}), c.fillStyle = h, c.fillRect(0, 0, 256, 1), {
|
|
912
906
|
canvas: l,
|
|
913
907
|
texture: this.createTexture(
|
|
@@ -929,8 +923,8 @@ class Ce {
|
|
|
929
923
|
const l = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), c = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), h = new Float32Array(i);
|
|
930
924
|
for (let n = 0; n < i; n++)
|
|
931
925
|
h[n] = n;
|
|
932
|
-
const
|
|
933
|
-
return { resolution: r, total: i, texture0: l, texture1: c, indexBuffer:
|
|
926
|
+
const p = this.createDataBuffer(e, "array", h);
|
|
927
|
+
return { resolution: r, total: i, texture0: l, texture1: c, indexBuffer: p };
|
|
934
928
|
}
|
|
935
929
|
bind(e, a, r) {
|
|
936
930
|
const i = this.createProgram(e, a, r);
|
|
@@ -945,13 +939,13 @@ class Ce {
|
|
|
945
939
|
return {};
|
|
946
940
|
}
|
|
947
941
|
bindParticle(e, a, r, i, o, l) {
|
|
948
|
-
const c = this.createProgramWrapper(e, a, r), h = this.createProgramWrapper(e, i, o),
|
|
949
|
-
return { particle: c, screen: h, update:
|
|
942
|
+
const c = this.createProgramWrapper(e, a, r), h = this.createProgramWrapper(e, i, o), p = this.createProgramWrapper(e, i, l), n = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), u = e.createFramebuffer();
|
|
943
|
+
return { particle: c, screen: h, update: p, quadBuffer: n, frameBuffer: u };
|
|
950
944
|
}
|
|
951
945
|
draw(e, a, r, i, o, l, c) {
|
|
952
|
-
var h,
|
|
946
|
+
var h, p;
|
|
953
947
|
if (a && r) {
|
|
954
|
-
e.resize(), a == null || a.viewport(0, 0, (h = a == null ? void 0 : a.canvas) == null ? void 0 : h.width, (
|
|
948
|
+
e.resize(), a == null || a.viewport(0, 0, (h = a == null ? void 0 : a.canvas) == null ? void 0 : h.width, (p = a == null ? void 0 : a.canvas) == null ? void 0 : p.height), a.clearColor(0, 0, 0, 0), a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT);
|
|
955
949
|
try {
|
|
956
950
|
a.useProgram(r);
|
|
957
951
|
const n = {
|
|
@@ -963,10 +957,10 @@ class Ce {
|
|
|
963
957
|
sRange: a.getUniformLocation(r, "u_range_s")
|
|
964
958
|
};
|
|
965
959
|
n.resolution && a.uniform2f(n.resolution, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, i), n.image && a.uniform1i(n.image, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, o), n.color && a.uniform1i(n.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (n.uvRange && a.uniform2f(n.uvRange, c.uvRange[0], c.uvRange[1]), n.sRange && a.uniform2f(n.sRange, c.sRange[0], c.sRange[1])), n.scale && a.uniform1f(n.scale, (c == null ? void 0 : c.scale) || 1);
|
|
966
|
-
const
|
|
967
|
-
for (const
|
|
968
|
-
const
|
|
969
|
-
a.bindBuffer(a.ARRAY_BUFFER, l), a.bufferData(a.ARRAY_BUFFER,
|
|
960
|
+
const u = e.getBoundPixel(), b = e.map.getZoom() + 1, v = e.getWorldCopy(u, b);
|
|
961
|
+
for (const y of v) {
|
|
962
|
+
const x = (y[0] - u[0]) * e.ratio, D = (y[1] - u[3]) * e.ratio, L = y[2] * e.ratio, [A, f, w, B] = [x, L + x, D, L + D], d = new Float32Array([A, w, f, w, A, B, A, B, f, w, f, B]);
|
|
963
|
+
a.bindBuffer(a.ARRAY_BUFFER, l), a.bufferData(a.ARRAY_BUFFER, d, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
|
|
970
964
|
}
|
|
971
965
|
} catch (n) {
|
|
972
966
|
console.log(`render failed...${n}`);
|
|
@@ -1014,10 +1008,10 @@ class Ce {
|
|
|
1014
1008
|
});
|
|
1015
1009
|
}
|
|
1016
1010
|
}
|
|
1017
|
-
class
|
|
1011
|
+
class ee {
|
|
1018
1012
|
}
|
|
1019
1013
|
// 顶点渲染
|
|
1020
|
-
|
|
1014
|
+
K(ee, "vertexSchema", `
|
|
1021
1015
|
//canvas 坐标系上的坐标 (x, y)
|
|
1022
1016
|
attribute vec2 a_position; //像素坐标
|
|
1023
1017
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -1032,7 +1026,7 @@ W(Z, "vertexSchema", `
|
|
|
1032
1026
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
1033
1027
|
v_texCoord = a_texCoord;
|
|
1034
1028
|
}`), // 类如风、流等u v双变量片元渲染
|
|
1035
|
-
|
|
1029
|
+
K(ee, "uvFragmentSchema", `
|
|
1036
1030
|
precision mediump float;
|
|
1037
1031
|
uniform sampler2D u_image;
|
|
1038
1032
|
uniform vec2 u_range_u_v;
|
|
@@ -1052,7 +1046,7 @@ W(Z, "uvFragmentSchema", `
|
|
|
1052
1046
|
|
|
1053
1047
|
gl_FragColor = color;
|
|
1054
1048
|
}`), // 类如浪、气压等单变量片元渲染
|
|
1055
|
-
|
|
1049
|
+
K(ee, "fragmentSchema", `
|
|
1056
1050
|
precision mediump float;
|
|
1057
1051
|
uniform sampler2D u_image; // 灰度
|
|
1058
1052
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -1063,9 +1057,9 @@ W(Z, "fragmentSchema", `
|
|
|
1063
1057
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
1064
1058
|
gl_FragColor = color;
|
|
1065
1059
|
}`);
|
|
1066
|
-
class
|
|
1060
|
+
class ae {
|
|
1067
1061
|
}
|
|
1068
|
-
|
|
1062
|
+
K(ae, "vertexSchema", `
|
|
1069
1063
|
precision mediump float;
|
|
1070
1064
|
|
|
1071
1065
|
attribute float a_index; // 索引
|
|
@@ -1089,7 +1083,7 @@ W(ee, "vertexSchema", `
|
|
|
1089
1083
|
gl_PointSize = 1.0;
|
|
1090
1084
|
// gl_PointSize = u_point;
|
|
1091
1085
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
1092
|
-
}`),
|
|
1086
|
+
}`), K(ae, "fragmentSchema", `
|
|
1093
1087
|
precision mediump float;
|
|
1094
1088
|
|
|
1095
1089
|
uniform sampler2D u_factor;
|
|
@@ -1111,7 +1105,7 @@ W(ee, "vertexSchema", `
|
|
|
1111
1105
|
|
|
1112
1106
|
float f = 1.0 - uv.b;
|
|
1113
1107
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
1114
|
-
}`),
|
|
1108
|
+
}`), K(ae, "quadVertSchema", `
|
|
1115
1109
|
precision mediump float;
|
|
1116
1110
|
|
|
1117
1111
|
attribute vec2 a_pos;
|
|
@@ -1121,7 +1115,7 @@ W(ee, "vertexSchema", `
|
|
|
1121
1115
|
void main() {
|
|
1122
1116
|
v_tex_pos = a_pos;
|
|
1123
1117
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
1124
|
-
}`),
|
|
1118
|
+
}`), K(ae, "screenFragmentSchema", `
|
|
1125
1119
|
precision mediump float;
|
|
1126
1120
|
|
|
1127
1121
|
uniform sampler2D u_screen;
|
|
@@ -1133,7 +1127,7 @@ W(ee, "vertexSchema", `
|
|
|
1133
1127
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
1134
1128
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
1135
1129
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
1136
|
-
}`),
|
|
1130
|
+
}`), K(ae, "updateFragmentSchema", `
|
|
1137
1131
|
precision mediump float;
|
|
1138
1132
|
|
|
1139
1133
|
uniform sampler2D u_particles;
|
|
@@ -1214,12 +1208,12 @@ W(ee, "vertexSchema", `
|
|
|
1214
1208
|
}`);
|
|
1215
1209
|
class ra {
|
|
1216
1210
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1211
|
+
K(this, "token");
|
|
1212
|
+
K(this, "mapboxCustomer");
|
|
1213
|
+
K(this, "i4");
|
|
1214
|
+
K(this, "hi");
|
|
1215
|
+
K(this, "td");
|
|
1216
|
+
K(this, "windy");
|
|
1223
1217
|
this.token = e, this.mapboxCustomer = {
|
|
1224
1218
|
source: this.initialOnlineStyle().sources.composite,
|
|
1225
1219
|
layers: {
|
|
@@ -1475,6 +1469,19 @@ class ra {
|
|
|
1475
1469
|
"text-halo-width": 1,
|
|
1476
1470
|
"text-color": "hsl(0, 1%, 2%)"
|
|
1477
1471
|
}
|
|
1472
|
+
},
|
|
1473
|
+
iceEdgeLine: {
|
|
1474
|
+
id: "ice-edge",
|
|
1475
|
+
type: "line",
|
|
1476
|
+
paint: {
|
|
1477
|
+
"line-color": "rgb(51, 50, 102)",
|
|
1478
|
+
"line-width": 1
|
|
1479
|
+
},
|
|
1480
|
+
layout: {
|
|
1481
|
+
visibility: "visible"
|
|
1482
|
+
},
|
|
1483
|
+
source: "composite",
|
|
1484
|
+
"source-layer": "nic_miz2025169nc_pl_a-cqk3ud"
|
|
1478
1485
|
}
|
|
1479
1486
|
}
|
|
1480
1487
|
}, this.td = {
|
|
@@ -1693,7 +1700,7 @@ class ra {
|
|
|
1693
1700
|
zoom: 2.4589703839156347,
|
|
1694
1701
|
bearing: 0,
|
|
1695
1702
|
pitch: 1,
|
|
1696
|
-
sprite: "mapbox://sprites/neatchenheng/clxwst0tq00wd01rn0usb2eer/
|
|
1703
|
+
sprite: "mapbox://sprites/neatchenheng/clxwst0tq00wd01rn0usb2eer/7zoestv3ytlgmyxxrlljl4rzs",
|
|
1697
1704
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
1698
1705
|
projection: {
|
|
1699
1706
|
name: "equirectangular"
|
|
@@ -1701,7 +1708,7 @@ class ra {
|
|
|
1701
1708
|
sources: {
|
|
1702
1709
|
composite: {
|
|
1703
1710
|
type: "vector",
|
|
1704
|
-
url: "mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2,mapbox.country-boundaries-v1,neatchenheng.d44z21eg,neatchenheng.82kqbc1q,neatchenheng.a4ifbysm,neatchenheng.27issko0",
|
|
1711
|
+
url: "mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2,mapbox.country-boundaries-v1,neatchenheng.d44z21eg,neatchenheng.82kqbc1q,neatchenheng.a4ifbysm,neatchenheng.27issko0,neatchenheng.afzf6vzv",
|
|
1705
1712
|
data: {
|
|
1706
1713
|
attribution: '<a href="https://www.mapbox.com/about/maps/" target="_blank" title="Mapbox" aria-label="Mapbox">© Mapbox</a> <a href="https://www.openstreetmap.org/about/" target="_blank" title="OpenStreetMap" aria-label="OpenStreetMap">© OpenStreetMap</a> <a href="https://www.mapbox.com/about/maps/" target="_blank" title="Mapbox" aria-label="Mapbox">© Mapbox</a> <a href="https://www.openstreetmap.org/about/" target="_blank" title="OpenStreetMap" aria-label="OpenStreetMap">© OpenStreetMap</a> <a class="mapbox-improve-map" href="https://www.mapbox.com/contribute/" target="_blank" title="Improve this map" aria-label="Improve this map">Improve this map</a>',
|
|
1707
1714
|
bounds: [-180, -85.051129, 180, 85],
|
|
@@ -1754,9 +1761,9 @@ class ra {
|
|
|
1754
1761
|
maxzoom: 16,
|
|
1755
1762
|
minzoom: 0,
|
|
1756
1763
|
mts: !0,
|
|
1757
|
-
name: "Mapbox Countries v1 + Mapbox Bathymetry v2 + Mapbox Terrain v2 + Mapbox Streets v8",
|
|
1764
|
+
name: "nic_miz2025169nc_pl_a-cqk3ud + china_route-bdtx5d + ne_10m_geography_marine_polys-3968bv + eez_12nm_new1-6jzkww + eez-d4udtm + Mapbox Countries v1 + Mapbox Bathymetry v2 + Mapbox Terrain v2 + Mapbox Streets v8",
|
|
1758
1765
|
scheme: "xyz",
|
|
1759
|
-
tilejson: "
|
|
1766
|
+
tilejson: "3.0.0",
|
|
1760
1767
|
tiles: [
|
|
1761
1768
|
"https://a.tiles.mapbox.com/v4/mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2,mapbox.country-boundaries-v1,neatchenheng.d44z21eg,neatchenheng.82kqbc1q,neatchenheng.a4ifbysm,neatchenheng.27issko0/{z}/{x}/{y}.vector.pbf?access_token=pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw",
|
|
1762
1769
|
"https://b.tiles.mapbox.com/v4/mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2,mapbox.country-boundaries-v1,neatchenheng.d44z21eg,neatchenheng.82kqbc1q,neatchenheng.a4ifbysm,neatchenheng.27issko0/{z}/{x}/{y}.vector.pbf?access_token=pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw"
|
|
@@ -1891,10 +1898,25 @@ class ra {
|
|
|
1891
1898
|
minzoom: 0,
|
|
1892
1899
|
source: "neatchenheng.27issko0",
|
|
1893
1900
|
source_name: "china_route-bdtx5d"
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
description: "",
|
|
1904
|
+
fields: {
|
|
1905
|
+
ICECODE: "String",
|
|
1906
|
+
ORIG_FID: "Number",
|
|
1907
|
+
Shape_Area: "Number",
|
|
1908
|
+
Shape_Leng: "Number"
|
|
1909
|
+
},
|
|
1910
|
+
id: "nic_miz2025169nc_pl_a-cqk3ud",
|
|
1911
|
+
maxzoom: 22,
|
|
1912
|
+
minzoom: 0,
|
|
1913
|
+
source: "neatchenheng.afzf6vzv",
|
|
1914
|
+
source_name: "nic_miz2025169nc_pl_a-cqk3ud"
|
|
1894
1915
|
}
|
|
1895
1916
|
],
|
|
1896
1917
|
worldview_default: "US",
|
|
1897
1918
|
worldview_options: {
|
|
1919
|
+
ALL: "Every available worldview",
|
|
1898
1920
|
AR: "Argentina",
|
|
1899
1921
|
CN: "China",
|
|
1900
1922
|
IN: "India",
|
|
@@ -1903,7 +1925,8 @@ class ra {
|
|
|
1903
1925
|
RS: "Serbia",
|
|
1904
1926
|
RU: "Russia",
|
|
1905
1927
|
TR: "Turkey",
|
|
1906
|
-
US: "United States"
|
|
1928
|
+
US: "United States",
|
|
1929
|
+
VN: "Vietnam"
|
|
1907
1930
|
}
|
|
1908
1931
|
}
|
|
1909
1932
|
}
|
|
@@ -3032,6 +3055,18 @@ class ra {
|
|
|
3032
3055
|
"text-halo-width": 1,
|
|
3033
3056
|
"text-color": "hsl(0, 1%, 2%)"
|
|
3034
3057
|
}
|
|
3058
|
+
},
|
|
3059
|
+
{
|
|
3060
|
+
id: "ice-edge",
|
|
3061
|
+
type: "line",
|
|
3062
|
+
paint: {
|
|
3063
|
+
"line-color": "rgb(252, 182, 182)"
|
|
3064
|
+
},
|
|
3065
|
+
layout: {
|
|
3066
|
+
visibility: "visible"
|
|
3067
|
+
},
|
|
3068
|
+
source: "composite",
|
|
3069
|
+
"source-layer": "nic_miz2025169nc_pl_a-cqk3ud"
|
|
3035
3070
|
}
|
|
3036
3071
|
]
|
|
3037
3072
|
};
|
|
@@ -3151,7 +3186,7 @@ const oa = {
|
|
|
3151
3186
|
[1, "rgb(91, 136, 161)"]
|
|
3152
3187
|
];
|
|
3153
3188
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
3154
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
3189
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.uvFragmentSchema);
|
|
3155
3190
|
this.program = e, this.aPositionBuffer = a;
|
|
3156
3191
|
}
|
|
3157
3192
|
this.handleParticleSetup();
|
|
@@ -3165,11 +3200,11 @@ const oa = {
|
|
|
3165
3200
|
];
|
|
3166
3201
|
this.wrapper = this.webgl.bindParticle(
|
|
3167
3202
|
this.particleContext,
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3203
|
+
ae.vertexSchema,
|
|
3204
|
+
ae.fragmentSchema,
|
|
3205
|
+
ae.quadVertSchema,
|
|
3206
|
+
ae.screenFragmentSchema,
|
|
3207
|
+
ae.updateFragmentSchema
|
|
3173
3208
|
), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
|
|
3174
3209
|
}
|
|
3175
3210
|
},
|
|
@@ -3205,7 +3240,7 @@ function na(t, e, a, r, i, o) {
|
|
|
3205
3240
|
return (l = a.factor) != null && l.active ? (m(), g("div", sa, [
|
|
3206
3241
|
s("div", {
|
|
3207
3242
|
class: "legend-bars flex-center",
|
|
3208
|
-
style:
|
|
3243
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
3209
3244
|
}, e[0] || (e[0] = [
|
|
3210
3245
|
s("span", null, "kts", -1),
|
|
3211
3246
|
s("span", null, "0", -1),
|
|
@@ -3216,9 +3251,9 @@ function na(t, e, a, r, i, o) {
|
|
|
3216
3251
|
s("span", null, "40", -1),
|
|
3217
3252
|
s("span", null, "60", -1)
|
|
3218
3253
|
]), 4)
|
|
3219
|
-
])) :
|
|
3254
|
+
])) : R("", !0);
|
|
3220
3255
|
}
|
|
3221
|
-
const la = /* @__PURE__ */
|
|
3256
|
+
const la = /* @__PURE__ */ O(oa, [["render", na], ["__scopeId", "data-v-14070127"]]);
|
|
3222
3257
|
const ca = {
|
|
3223
3258
|
name: "IdmCurrent",
|
|
3224
3259
|
props: {
|
|
@@ -3260,7 +3295,7 @@ const ca = {
|
|
|
3260
3295
|
directionLayer: "current-direction-layer",
|
|
3261
3296
|
speedLayer: "current-speed-layer",
|
|
3262
3297
|
speedLabelLayer: "current-speed-label-layer",
|
|
3263
|
-
empty:
|
|
3298
|
+
empty: M.featureCollection([]),
|
|
3264
3299
|
right: 10,
|
|
3265
3300
|
bottom: 95
|
|
3266
3301
|
};
|
|
@@ -3269,7 +3304,7 @@ const ca = {
|
|
|
3269
3304
|
"current.version": {
|
|
3270
3305
|
handler() {
|
|
3271
3306
|
var t;
|
|
3272
|
-
(t = this.current) != null && t.active ? this.handleRender() : this.handleClear(), this.$emit("handleToggleVersion");
|
|
3307
|
+
(t = this.current) != null && t.active && this.showCurrentIsoband ? this.handleRender() : this.handleClear(), this.$emit("handleToggleVersion");
|
|
3273
3308
|
},
|
|
3274
3309
|
deep: !0
|
|
3275
3310
|
},
|
|
@@ -3372,7 +3407,7 @@ const ca = {
|
|
|
3372
3407
|
function ha(t, e, a, r, i, o) {
|
|
3373
3408
|
return null;
|
|
3374
3409
|
}
|
|
3375
|
-
const da = /* @__PURE__ */
|
|
3410
|
+
const da = /* @__PURE__ */ O(ca, [["render", ha]]);
|
|
3376
3411
|
const pa = {
|
|
3377
3412
|
name: "IdmCurrentParticle",
|
|
3378
3413
|
props: {
|
|
@@ -3479,7 +3514,7 @@ const pa = {
|
|
|
3479
3514
|
[1, "rgb(195,194,194)"]
|
|
3480
3515
|
];
|
|
3481
3516
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
3482
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
3517
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.uvFragmentSchema);
|
|
3483
3518
|
this.program = e, this.aPositionBuffer = a;
|
|
3484
3519
|
}
|
|
3485
3520
|
this.handleParticleSetup();
|
|
@@ -3494,11 +3529,11 @@ const pa = {
|
|
|
3494
3529
|
];
|
|
3495
3530
|
this.wrapper = this.webgl.bindParticle(
|
|
3496
3531
|
this.particleContext,
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3532
|
+
ae.vertexSchema,
|
|
3533
|
+
ae.fragmentSchema,
|
|
3534
|
+
ae.quadVertSchema,
|
|
3535
|
+
ae.screenFragmentSchema,
|
|
3536
|
+
ae.updateFragmentSchema
|
|
3502
3537
|
), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = {
|
|
3503
3538
|
...this.wrapper,
|
|
3504
3539
|
...this.webgl.setupParticle(this.particleContext, 9e3),
|
|
@@ -3538,7 +3573,7 @@ function ma(t, e, a, r, i, o) {
|
|
|
3538
3573
|
return (l = a.factor) != null && l.active ? (m(), g("div", ua, [
|
|
3539
3574
|
s("div", {
|
|
3540
3575
|
class: "legend-bars flex-center",
|
|
3541
|
-
style:
|
|
3576
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
3542
3577
|
}, e[0] || (e[0] = [
|
|
3543
3578
|
s("span", null, "kts", -1),
|
|
3544
3579
|
s("span", null, "0", -1),
|
|
@@ -3548,9 +3583,9 @@ function ma(t, e, a, r, i, o) {
|
|
|
3548
3583
|
s("span", null, "2", -1),
|
|
3549
3584
|
s("span", null, "3.2", -1)
|
|
3550
3585
|
]), 4)
|
|
3551
|
-
])) :
|
|
3586
|
+
])) : R("", !0);
|
|
3552
3587
|
}
|
|
3553
|
-
const ga = /* @__PURE__ */
|
|
3588
|
+
const ga = /* @__PURE__ */ O(pa, [["render", ma], ["__scopeId", "data-v-02a8206f"]]), Aa = {
|
|
3554
3589
|
name: "IdmSigWave",
|
|
3555
3590
|
props: {
|
|
3556
3591
|
map: {
|
|
@@ -3571,7 +3606,7 @@ const ga = /* @__PURE__ */ S(pa, [["render", ma], ["__scopeId", "data-v-02a8206f
|
|
|
3571
3606
|
source: "sig-wave-source",
|
|
3572
3607
|
heightLayer: "sig-wave-height-layer",
|
|
3573
3608
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
3574
|
-
empty:
|
|
3609
|
+
empty: M.featureCollection([])
|
|
3575
3610
|
};
|
|
3576
3611
|
},
|
|
3577
3612
|
watch: {
|
|
@@ -3673,7 +3708,7 @@ const ga = /* @__PURE__ */ S(pa, [["render", ma], ["__scopeId", "data-v-02a8206f
|
|
|
3673
3708
|
function fa(t, e, a, r, i, o) {
|
|
3674
3709
|
return m(), g("div");
|
|
3675
3710
|
}
|
|
3676
|
-
const ya = /* @__PURE__ */
|
|
3711
|
+
const ya = /* @__PURE__ */ O(Aa, [["render", fa]]), wa = {
|
|
3677
3712
|
name: "IdmSwell",
|
|
3678
3713
|
props: {
|
|
3679
3714
|
map: {
|
|
@@ -3695,7 +3730,7 @@ const ya = /* @__PURE__ */ S(Aa, [["render", fa]]), wa = {
|
|
|
3695
3730
|
directionLayer: "swell-direction-layer",
|
|
3696
3731
|
heightLayer: "swell-height-layer",
|
|
3697
3732
|
heightLabelLayer: "swell-height-label-layer",
|
|
3698
|
-
empty:
|
|
3733
|
+
empty: M.featureCollection([])
|
|
3699
3734
|
};
|
|
3700
3735
|
},
|
|
3701
3736
|
watch: {
|
|
@@ -3831,7 +3866,7 @@ const ya = /* @__PURE__ */ S(Aa, [["render", fa]]), wa = {
|
|
|
3831
3866
|
function ba(t, e, a, r, i, o) {
|
|
3832
3867
|
return m(), g("div");
|
|
3833
3868
|
}
|
|
3834
|
-
const va = /* @__PURE__ */
|
|
3869
|
+
const va = /* @__PURE__ */ O(wa, [["render", ba]]), La = {
|
|
3835
3870
|
name: "IdmPrmsl",
|
|
3836
3871
|
props: {
|
|
3837
3872
|
map: {
|
|
@@ -3856,7 +3891,7 @@ const va = /* @__PURE__ */ S(wa, [["render", ba]]), La = {
|
|
|
3856
3891
|
layer: "prmsl-layer",
|
|
3857
3892
|
labelLayer: "prmsl-label-layer",
|
|
3858
3893
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
3859
|
-
empty:
|
|
3894
|
+
empty: M.featureCollection([])
|
|
3860
3895
|
};
|
|
3861
3896
|
},
|
|
3862
3897
|
watch: {
|
|
@@ -3936,18 +3971,17 @@ const va = /* @__PURE__ */ S(wa, [["render", ba]]), La = {
|
|
|
3936
3971
|
"text-size": 12
|
|
3937
3972
|
},
|
|
3938
3973
|
paint: {
|
|
3939
|
-
"text-
|
|
3940
|
-
"text-color": ["step", ["get", "val"], "white", 980, "black", 1100, "black"],
|
|
3974
|
+
"text-color": ["step", ["get", "val"], "rgba(255,255,255,0.8)", 980, "rgba(0,0,0,0.7)", 1100, "rgba(0,0,0,0.7)"],
|
|
3941
3975
|
"text-halo-color": [
|
|
3942
3976
|
"step",
|
|
3943
3977
|
["get", "val"],
|
|
3944
|
-
"rgba(162,13,2,0.
|
|
3978
|
+
"rgba(162,13,2,0.8)",
|
|
3945
3979
|
920,
|
|
3946
|
-
"rgba(244,67,54,0.
|
|
3980
|
+
"rgba(244,67,54,0.8)",
|
|
3947
3981
|
980,
|
|
3948
|
-
"rgba(255,255,0,0.
|
|
3982
|
+
"rgba(255,255,0,0.7)",
|
|
3949
3983
|
1100,
|
|
3950
|
-
"rgba(199,171,250,0.
|
|
3984
|
+
"rgba(199,171,250,0.7)"
|
|
3951
3985
|
],
|
|
3952
3986
|
"text-halo-width": 4
|
|
3953
3987
|
}
|
|
@@ -3970,7 +4004,7 @@ const va = /* @__PURE__ */ S(wa, [["render", ba]]), La = {
|
|
|
3970
4004
|
function Ca(t, e, a, r, i, o) {
|
|
3971
4005
|
return m(), g("div");
|
|
3972
4006
|
}
|
|
3973
|
-
const xa = /* @__PURE__ */
|
|
4007
|
+
const xa = /* @__PURE__ */ O(La, [["render", Ca]]);
|
|
3974
4008
|
const Ba = {
|
|
3975
4009
|
name: "IdmCover",
|
|
3976
4010
|
props: {
|
|
@@ -4050,7 +4084,7 @@ const Ba = {
|
|
|
4050
4084
|
// 100%
|
|
4051
4085
|
];
|
|
4052
4086
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4053
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
4087
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.fragmentSchema);
|
|
4054
4088
|
this.program = e, this.aPositionBuffer = a;
|
|
4055
4089
|
}
|
|
4056
4090
|
},
|
|
@@ -4069,7 +4103,7 @@ function Ea(t, e, a, r, i, o) {
|
|
|
4069
4103
|
return (l = a.factor) != null && l.active ? (m(), g("div", Ia, [
|
|
4070
4104
|
s("div", {
|
|
4071
4105
|
class: "legend-bars flex-center",
|
|
4072
|
-
style:
|
|
4106
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4073
4107
|
}, e[0] || (e[0] = [
|
|
4074
4108
|
s("span", null, "%", -1),
|
|
4075
4109
|
s("span", null, "20", -1),
|
|
@@ -4078,9 +4112,9 @@ function Ea(t, e, a, r, i, o) {
|
|
|
4078
4112
|
s("span", null, "80", -1),
|
|
4079
4113
|
s("span", null, "100", -1)
|
|
4080
4114
|
]), 4)
|
|
4081
|
-
])) :
|
|
4115
|
+
])) : R("", !0);
|
|
4082
4116
|
}
|
|
4083
|
-
const Da = /* @__PURE__ */
|
|
4117
|
+
const Da = /* @__PURE__ */ O(Ba, [["render", Ea], ["__scopeId", "data-v-efce05ef"]]);
|
|
4084
4118
|
const Pa = {
|
|
4085
4119
|
name: "IdmThickness",
|
|
4086
4120
|
props: {
|
|
@@ -4168,7 +4202,7 @@ const Pa = {
|
|
|
4168
4202
|
// 4m
|
|
4169
4203
|
];
|
|
4170
4204
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4171
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
4205
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.fragmentSchema);
|
|
4172
4206
|
this.program = e, this.aPositionBuffer = a;
|
|
4173
4207
|
}
|
|
4174
4208
|
},
|
|
@@ -4187,7 +4221,7 @@ function Ma(t, e, a, r, i, o) {
|
|
|
4187
4221
|
return (l = a.factor) != null && l.active ? (m(), g("div", ka, [
|
|
4188
4222
|
s("div", {
|
|
4189
4223
|
class: "legend-bars flex-center",
|
|
4190
|
-
style:
|
|
4224
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4191
4225
|
}, e[0] || (e[0] = [
|
|
4192
4226
|
s("span", null, "m", -1),
|
|
4193
4227
|
s("span", null, "0", -1),
|
|
@@ -4197,9 +4231,9 @@ function Ma(t, e, a, r, i, o) {
|
|
|
4197
4231
|
s("span", null, "2", -1),
|
|
4198
4232
|
s("span", null, "3", -1)
|
|
4199
4233
|
]), 4)
|
|
4200
|
-
])) :
|
|
4234
|
+
])) : R("", !0);
|
|
4201
4235
|
}
|
|
4202
|
-
const za = /* @__PURE__ */
|
|
4236
|
+
const za = /* @__PURE__ */ O(Pa, [["render", Ma], ["__scopeId", "data-v-348d48fb"]]);
|
|
4203
4237
|
const Ta = {
|
|
4204
4238
|
name: "IdmTropicals",
|
|
4205
4239
|
props: {
|
|
@@ -4238,9 +4272,9 @@ const Ta = {
|
|
|
4238
4272
|
showTropicals: !1,
|
|
4239
4273
|
activeTropicals: void 0,
|
|
4240
4274
|
activeTropicalsMarker: void 0,
|
|
4241
|
-
empty:
|
|
4275
|
+
empty: M.featureCollection([]),
|
|
4242
4276
|
circleSource: "circle-source",
|
|
4243
|
-
circleSourceData:
|
|
4277
|
+
circleSourceData: M.featureCollection([]),
|
|
4244
4278
|
circleLayer: "tropical-circle-layer"
|
|
4245
4279
|
};
|
|
4246
4280
|
},
|
|
@@ -4248,7 +4282,7 @@ const Ta = {
|
|
|
4248
4282
|
computeTime() {
|
|
4249
4283
|
return function(t) {
|
|
4250
4284
|
if (t) {
|
|
4251
|
-
const e =
|
|
4285
|
+
const e = X(t).utc().utcOffset(this.timeZone), a = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
4252
4286
|
return `${e.format("MMM-DD,HHmm")}[ UTC ${a} ] ( ${e == null ? void 0 : e.fromNow()} )`;
|
|
4253
4287
|
}
|
|
4254
4288
|
return "-";
|
|
@@ -4285,29 +4319,29 @@ const Ta = {
|
|
|
4285
4319
|
methods: {
|
|
4286
4320
|
handleRefresh() {
|
|
4287
4321
|
var r, i;
|
|
4288
|
-
const t = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e =
|
|
4322
|
+
const t = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = X().utc().hour(), a = [];
|
|
4289
4323
|
t.forEach((o) => {
|
|
4290
4324
|
var l, c, h;
|
|
4291
4325
|
(l = o.properties) != null && l.name && !a.includes((c = o.properties) == null ? void 0 : c.name) && a.push((h = o.properties) == null ? void 0 : h.name);
|
|
4292
4326
|
}), a.forEach((o) => {
|
|
4293
|
-
var
|
|
4327
|
+
var p;
|
|
4294
4328
|
let l = 0, c;
|
|
4295
4329
|
const h = t.filter((n) => {
|
|
4296
|
-
var
|
|
4297
|
-
return ((
|
|
4330
|
+
var u;
|
|
4331
|
+
return ((u = n.properties) == null ? void 0 : u.name) === o;
|
|
4298
4332
|
});
|
|
4299
|
-
(
|
|
4300
|
-
var
|
|
4301
|
-
return ((
|
|
4302
|
-
})[0]) == null ||
|
|
4303
|
-
var
|
|
4304
|
-
((
|
|
4305
|
-
}), h.map((n,
|
|
4306
|
-
var
|
|
4307
|
-
if (((
|
|
4308
|
-
n.properties.format =
|
|
4309
|
-
const
|
|
4310
|
-
n.properties.showHistoryLabel =
|
|
4333
|
+
(p = h.filter((n) => {
|
|
4334
|
+
var u, b;
|
|
4335
|
+
return ((u = n.geometry) == null ? void 0 : u.type) === "LineString" && ((b = n.properties) == null ? void 0 : b.type) === "forecast";
|
|
4336
|
+
})[0]) == null || p.properties.model, h.forEach((n, u) => {
|
|
4337
|
+
var b, v, y, x, D, L;
|
|
4338
|
+
((b = n.geometry) == null ? void 0 : b.type) === "Point" && ((v = n.properties) == null ? void 0 : v.type) === "history" && (l = u, c = c === void 0 ? u : c), ((y = n.geometry) == null ? void 0 : y.type) === "Point" && ((x = n.properties) == null ? void 0 : x.type) === "forecast" && c === void 0 && (c = u), ((D = n.geometry) == null ? void 0 : D.type) === "LineString" && ((L = n.properties) == null || L.type);
|
|
4339
|
+
}), h.map((n, u) => {
|
|
4340
|
+
var b, v, y, x, D, L, A;
|
|
4341
|
+
if (((b = n.geometry) == null ? void 0 : b.type) === "LineString" && ((v = n.properties) == null || v.type), ((y = n.geometry) == null ? void 0 : y.type) === "Point" && ((x = n.properties) == null ? void 0 : x.type) === "forecast" && (n.properties.name = o, n.properties.showNameLabel = u === 0, n.properties.format = X(n.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((D = n.geometry) == null ? void 0 : D.type) === "Point" && ((L = n.properties) == null ? void 0 : L.type) === "history") {
|
|
4342
|
+
n.properties.format = X(n.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
4343
|
+
const f = X((A = n.properties) == null ? void 0 : A.date).utc().format("HHmm") === X().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
|
|
4344
|
+
n.properties.showHistoryLabel = f || u === l, n.properties.name = o;
|
|
4311
4345
|
}
|
|
4312
4346
|
return n;
|
|
4313
4347
|
});
|
|
@@ -4344,16 +4378,16 @@ const Ta = {
|
|
|
4344
4378
|
));
|
|
4345
4379
|
},
|
|
4346
4380
|
handleRender() {
|
|
4347
|
-
var t, e, a, r, i, o, l, c, h,
|
|
4381
|
+
var t, e, a, r, i, o, l, c, h, p;
|
|
4348
4382
|
if (!this.map)
|
|
4349
4383
|
setTimeout(() => {
|
|
4350
4384
|
this.handleRender();
|
|
4351
4385
|
}, 500);
|
|
4352
4386
|
else {
|
|
4353
4387
|
if (this.tropicals) {
|
|
4354
|
-
const
|
|
4355
|
-
let
|
|
4356
|
-
(t = this.map) != null && t.getSource(this.source) ? ((a = this.map) == null || a.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty),
|
|
4388
|
+
const u = (/* @__PURE__ */ new Date()).valueOf();
|
|
4389
|
+
let b = 0, v = 0;
|
|
4390
|
+
(t = this.map) != null && t.getSource(this.source) ? ((a = this.map) == null || a.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (u + b), console.log("[tropicals] update elapsed: ", v, ", total: ", b += v)) : (this.map.addSource(this.source, {
|
|
4357
4391
|
type: "geojson",
|
|
4358
4392
|
data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
|
|
4359
4393
|
}), this.map.addLayer({
|
|
@@ -4450,9 +4484,9 @@ const Ta = {
|
|
|
4450
4484
|
],
|
|
4451
4485
|
"text-halo-width": 4
|
|
4452
4486
|
}
|
|
4453
|
-
}),
|
|
4487
|
+
}), v = (/* @__PURE__ */ new Date()).valueOf() - (u + b), console.log("[tropical] add elapsed: ", v, ", total: ", b += v)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((l = this.tropicals) != null && l.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (u + b), console.log("[tropical] update elapsed: ", v, ", total: ", b += v)) : (this.map.addSource(this.clusterSource, {
|
|
4454
4488
|
type: "geojson",
|
|
4455
|
-
data: (h = this.tropicals) != null && h.active ? (
|
|
4489
|
+
data: (h = this.tropicals) != null && h.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
4456
4490
|
// cluster: true,
|
|
4457
4491
|
// clusterRadius: 10, // 聚合半径
|
|
4458
4492
|
}), this.map.addLayer({
|
|
@@ -4567,7 +4601,7 @@ const Ta = {
|
|
|
4567
4601
|
"text-halo-color": "#0033ff",
|
|
4568
4602
|
"text-halo-width": 4
|
|
4569
4603
|
}
|
|
4570
|
-
}),
|
|
4604
|
+
}), v = (/* @__PURE__ */ new Date()).valueOf() - (u + b), console.log("[tropical] add elapsed: ", v, ", total: ", b += v));
|
|
4571
4605
|
}
|
|
4572
4606
|
this.handleDrawCircle();
|
|
4573
4607
|
const n = nt.interpolate(this.tropicals, 1);
|
|
@@ -4579,14 +4613,14 @@ const Ta = {
|
|
|
4579
4613
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
|
|
4580
4614
|
},
|
|
4581
4615
|
handleDateChange() {
|
|
4582
|
-
var t, e, a, r, i, o, l, c, h,
|
|
4583
|
-
if ((t = this.interpolateMarkers) == null || t.forEach((
|
|
4584
|
-
const
|
|
4585
|
-
Ae.forEach((
|
|
4586
|
-
|
|
4587
|
-
}), (a = this.map) != null && a.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(
|
|
4616
|
+
var t, e, a, r, i, o, l, c, h, p, n, u, b, v, y, x, D, L, A, f, w, B, d, P, Q, S, _, H, Y, J, W, de, pe, ue, me, ge;
|
|
4617
|
+
if ((t = this.interpolateMarkers) == null || t.forEach((ie) => ie == null ? void 0 : ie.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
4618
|
+
const ie = X(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ne = this.interpolateData.filter((N) => N.properties.date === ie.format() && !N.properties.disabled), Ae = this.handleComputePolygons(ne), oe = M.featureCollection([...ne]);
|
|
4619
|
+
Ae.forEach((N) => {
|
|
4620
|
+
oe.features.push(N);
|
|
4621
|
+
}), (a = this.map) != null && a.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(oe) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
4588
4622
|
type: "geojson",
|
|
4589
|
-
data:
|
|
4623
|
+
data: oe
|
|
4590
4624
|
}), (o = this.map) == null || o.addLayer({
|
|
4591
4625
|
id: this.interpolateLineLayer,
|
|
4592
4626
|
type: "line",
|
|
@@ -4598,17 +4632,17 @@ const Ta = {
|
|
|
4598
4632
|
"line-width": 1
|
|
4599
4633
|
}
|
|
4600
4634
|
})), this.interpolateMarkers = [];
|
|
4601
|
-
for (const
|
|
4602
|
-
if (!
|
|
4603
|
-
let
|
|
4604
|
-
((c = (l =
|
|
4635
|
+
for (const N of ne)
|
|
4636
|
+
if (!N.properties.disabled) {
|
|
4637
|
+
let te = "#f44336";
|
|
4638
|
+
((c = (l = N.properties) == null ? void 0 : l.wind) == null ? void 0 : c.kts) < 32 || !((p = (h = N.properties) == null ? void 0 : h.wind) != null && p.kts) ? te = "#03f869" : ((u = (n = N.properties) == null ? void 0 : n.wind) == null ? void 0 : u.kts) >= 32 && ((v = (b = N.properties) == null ? void 0 : b.wind) == null ? void 0 : v.kts) < 47 ? te = "#f2f202" : ((x = (y = N.properties) == null ? void 0 : y.wind) == null ? void 0 : x.kts) >= 47 && ((L = (D = N.properties) == null ? void 0 : D.wind) == null ? void 0 : L.kts) < 63 ? te = "#ff9100" : ((f = (A = N.properties) == null ? void 0 : A.wind) == null ? void 0 : f.kts) >= 63 && ((B = (w = N.properties) == null ? void 0 : w.wind) == null ? void 0 : B.kts) < 79 ? te = "#f44336" : ((P = (d = N.properties) == null ? void 0 : d.wind) == null ? void 0 : P.kts) >= 79 && ((S = (Q = N.properties) == null ? void 0 : Q.wind) == null ? void 0 : S.kts) < 94 ? te = "#f903d0" : ((H = (_ = N.properties) == null ? void 0 : _.wind) == null ? void 0 : H.kts) >= 94 ? te = "#8702f9" : te = "#f44336";
|
|
4605
4639
|
const fe = `<svg t="1719918955501"
|
|
4606
4640
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
4607
4641
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
4608
4642
|
<path
|
|
4609
4643
|
d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
|
|
4610
|
-
fill="${
|
|
4611
|
-
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${
|
|
4644
|
+
fill="${te}" p-id="18383"></path>
|
|
4645
|
+
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${te}"
|
|
4612
4646
|
p-id="18384"></path>
|
|
4613
4647
|
<path
|
|
4614
4648
|
d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
|
|
@@ -4616,17 +4650,17 @@ const Ta = {
|
|
|
4616
4650
|
<path
|
|
4617
4651
|
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"
|
|
4618
4652
|
fill="#ffffff" p-id="18386"></path>
|
|
4619
|
-
</svg>`,
|
|
4620
|
-
|
|
4621
|
-
const
|
|
4622
|
-
if (this.interpolateMarkers.push(
|
|
4623
|
-
const
|
|
4624
|
-
(
|
|
4625
|
-
|
|
4626
|
-
), (
|
|
4627
|
-
|
|
4653
|
+
</svg>`, se = document.createElement("div");
|
|
4654
|
+
se.className = "hurricane-hourly-marker", se.innerHTML = `<div class="${N.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${fe}</div>`;
|
|
4655
|
+
const le = new ve.Marker(se).setLngLat(N.geometry.coordinates).addTo(this.map);
|
|
4656
|
+
if (this.interpolateMarkers.push(le), (Y = N.properties) != null && Y.showCircle) {
|
|
4657
|
+
const ce = { radius: 100, coordinates: N.geometry.coordinates }, I = { radius: 200, coordinates: N.geometry.coordinates }, Le = { radius: 500, coordinates: N.geometry.coordinates };
|
|
4658
|
+
(J = this.circleSourceData) == null || J.features.push(
|
|
4659
|
+
M.circle(ce.coordinates, ce.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4660
|
+
), (W = this.circleSourceData) == null || W.features.push(
|
|
4661
|
+
M.circle(I.coordinates, I.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4628
4662
|
), (de = this.circleSourceData) == null || de.features.push(
|
|
4629
|
-
|
|
4663
|
+
M.circle(Le.coordinates, Le.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4630
4664
|
);
|
|
4631
4665
|
}
|
|
4632
4666
|
(ue = (pe = this.map) == null ? void 0 : pe.getSource(this.circleSource)) == null || ue.setData(this.circleSourceData);
|
|
@@ -4635,28 +4669,28 @@ const Ta = {
|
|
|
4635
4669
|
(me = this.map) != null && me.getSource(this.interpolateSource) && ((ge = this.map) == null || ge.getSource(this.interpolateSource).setData(this.empty));
|
|
4636
4670
|
},
|
|
4637
4671
|
handleClick(t) {
|
|
4638
|
-
var o, l, c, h,
|
|
4672
|
+
var o, l, c, h, p, n, u, b;
|
|
4639
4673
|
const e = t.features[0], a = (l = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : l.features.filter(
|
|
4640
|
-
(
|
|
4641
|
-
var
|
|
4642
|
-
return
|
|
4674
|
+
(v) => {
|
|
4675
|
+
var y;
|
|
4676
|
+
return v.geometry.type === "LineString" && v.properties.type === "forecast" && v.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
|
|
4643
4677
|
}
|
|
4644
4678
|
);
|
|
4645
|
-
a.sort((
|
|
4646
|
-
var
|
|
4647
|
-
return ((
|
|
4679
|
+
a.sort((v, y) => {
|
|
4680
|
+
var x, D, L, A;
|
|
4681
|
+
return ((x = v.properties) == null ? void 0 : x.model) === "cma" ? -1 : ((D = v.properties) == null ? void 0 : D.model) === "jma" ? ((L = y.properties) == null ? void 0 : L.model) === "cma" ? 1 : -1 : v.properties.model === "ecmwf" ? ["jma", "cma"].includes((A = y.properties) == null ? void 0 : A.model) ? 1 : -1 : 0;
|
|
4648
4682
|
});
|
|
4649
4683
|
const r = (h = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : h.features.filter(
|
|
4650
|
-
(
|
|
4651
|
-
var
|
|
4652
|
-
return
|
|
4684
|
+
(v) => {
|
|
4685
|
+
var y;
|
|
4686
|
+
return v.geometry.type === "LineString" && v.properties.type === "history" && v.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
|
|
4653
4687
|
}
|
|
4654
4688
|
);
|
|
4655
4689
|
this.activeTropicals = {
|
|
4656
|
-
name: (
|
|
4657
|
-
forecasts: a.map((
|
|
4690
|
+
name: (p = e == null ? void 0 : e.properties) == null ? void 0 : p.name,
|
|
4691
|
+
forecasts: a.map((v) => v.properties),
|
|
4658
4692
|
history: (n = r[0]) == null ? void 0 : n.properties,
|
|
4659
|
-
showCircle: (
|
|
4693
|
+
showCircle: (b = (u = a[0]) == null ? void 0 : u.properties) == null ? void 0 : b.showCircle
|
|
4660
4694
|
}, this.showTropicals = !0;
|
|
4661
4695
|
const i = document.getElementById("idm-tropical-gl3");
|
|
4662
4696
|
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new ve.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
@@ -4665,11 +4699,11 @@ const Ta = {
|
|
|
4665
4699
|
var r, i, o, l, c, h;
|
|
4666
4700
|
t.disabled = !t.disabled;
|
|
4667
4701
|
const e = `${t.name}-${t.model}`, a = (i = (r = this.map) == null ? void 0 : r.getSource(this.source)._data) == null ? void 0 : i.features;
|
|
4668
|
-
a.forEach((
|
|
4669
|
-
|
|
4670
|
-
}), this.interpolateData.forEach((
|
|
4671
|
-
|
|
4672
|
-
}), (l = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || l.setData(
|
|
4702
|
+
a.forEach((p) => {
|
|
4703
|
+
p.properties.category === e && (p.properties.disabled = t.disabled);
|
|
4704
|
+
}), this.interpolateData.forEach((p) => {
|
|
4705
|
+
p.properties.category === e && (p.properties.disabled = t.disabled);
|
|
4706
|
+
}), (l = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || l.setData(M.featureCollection(a)), (h = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || h.setData(M.featureCollection(a)), this.handleDateChange();
|
|
4673
4707
|
},
|
|
4674
4708
|
handleStrikeProbability(t) {
|
|
4675
4709
|
this.$emit("tropicalProbability", t);
|
|
@@ -4726,22 +4760,22 @@ const Ta = {
|
|
|
4726
4760
|
let h;
|
|
4727
4761
|
switch (l) {
|
|
4728
4762
|
case "ne":
|
|
4729
|
-
h =
|
|
4763
|
+
h = M.lineArc(t, c * 1.852, 0, 90, { steps: c > 0 ? 64 : 1 });
|
|
4730
4764
|
break;
|
|
4731
4765
|
case "se":
|
|
4732
|
-
h =
|
|
4766
|
+
h = M.lineArc(t, c * 1.852, 90, 180, { steps: c > 0 ? 64 : 1 });
|
|
4733
4767
|
break;
|
|
4734
4768
|
case "sw":
|
|
4735
|
-
h =
|
|
4769
|
+
h = M.lineArc(t, c * 1.852, 180, 270, { steps: c > 0 ? 64 : 1 });
|
|
4736
4770
|
break;
|
|
4737
4771
|
case "nw":
|
|
4738
|
-
h =
|
|
4772
|
+
h = M.lineArc(t, c * 1.852, 270, 360, { steps: c > 0 ? 64 : 1 });
|
|
4739
4773
|
break;
|
|
4740
4774
|
}
|
|
4741
4775
|
r.push(...(o = h == null ? void 0 : h.geometry) == null ? void 0 : o.coordinates);
|
|
4742
4776
|
}
|
|
4743
|
-
const i =
|
|
4744
|
-
return
|
|
4777
|
+
const i = M.lineString(r);
|
|
4778
|
+
return M.lineToPolygon(i, { properties: a });
|
|
4745
4779
|
}
|
|
4746
4780
|
}
|
|
4747
4781
|
}, Qa = {
|
|
@@ -4761,7 +4795,7 @@ const Ta = {
|
|
|
4761
4795
|
style: { "justify-content": "flex-start" }
|
|
4762
4796
|
}, Ya = { class: "forecast-models" }, Ka = ["onClick"], Xa = { class: "more" };
|
|
4763
4797
|
function Ja(t, e, a, r, i, o) {
|
|
4764
|
-
var l, c, h,
|
|
4798
|
+
var l, c, h, p, n, u, b, v, y, x, D, L, A, f, w;
|
|
4765
4799
|
return ye((m(), g("div", Qa, [
|
|
4766
4800
|
s("div", Sa, [
|
|
4767
4801
|
s("div", {
|
|
@@ -4769,41 +4803,41 @@ function Ja(t, e, a, r, i, o) {
|
|
|
4769
4803
|
onClick: e[0] || (e[0] = (B) => i.showTropicals = !1)
|
|
4770
4804
|
}, ""),
|
|
4771
4805
|
s("div", _a, [
|
|
4772
|
-
(c = (l = i.activeTropicals) == null ? void 0 : l.history) != null && c.level ? (m(), g("span", Ha,
|
|
4773
|
-
|
|
4806
|
+
(c = (l = i.activeTropicals) == null ? void 0 : l.history) != null && c.level ? (m(), g("span", Ha, E((p = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : p.level) + " , ", 1)) : R("", !0),
|
|
4807
|
+
Z(E((n = i.activeTropicals) == null ? void 0 : n.name), 1)
|
|
4774
4808
|
]),
|
|
4775
|
-
s("div", Oa, " Last update: " +
|
|
4809
|
+
s("div", Oa, " Last update: " + E(o.computeTime(((b = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : b.updated) || ((x = (y = (v = i.activeTropicals) == null ? void 0 : v.forecasts) == null ? void 0 : y.filter((B) => !B.disabled)[0]) == null ? void 0 : x.date))), 1)
|
|
4776
4810
|
]),
|
|
4777
4811
|
s("div", Na, [
|
|
4778
4812
|
s("div", ja, [
|
|
4779
4813
|
s("div", Ra, [
|
|
4780
4814
|
s("div", Fa, [
|
|
4781
4815
|
e[2] || (e[2] = s("label", null, "Wind speed : ", -1)),
|
|
4782
|
-
s("span", null,
|
|
4816
|
+
s("span", null, E(((L = (D = i.activeTropicals) == null ? void 0 : D.history) == null ? void 0 : L.kts) || "-") + "[kts]", 1)
|
|
4783
4817
|
]),
|
|
4784
4818
|
s("div", Ga, [
|
|
4785
4819
|
e[3] || (e[3] = s("label", null, "Pressure : ", -1)),
|
|
4786
|
-
s("span", null,
|
|
4820
|
+
s("span", null, E(((f = (A = i.activeTropicals) == null ? void 0 : A.history) == null ? void 0 : f.pressure) || "-") + "[hPa]", 1)
|
|
4787
4821
|
])
|
|
4788
4822
|
]),
|
|
4789
4823
|
s("div", Wa, [
|
|
4790
4824
|
s("div", Ua, [
|
|
4791
4825
|
e[4] || (e[4] = s("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
4792
4826
|
s("div", Ya, [
|
|
4793
|
-
(m(!0), g(
|
|
4794
|
-
var
|
|
4827
|
+
(m(!0), g(F, null, U((w = i.activeTropicals) == null ? void 0 : w.forecasts, (B, d) => {
|
|
4828
|
+
var P, Q, S, _;
|
|
4795
4829
|
return m(), g("div", {
|
|
4796
|
-
key:
|
|
4797
|
-
class:
|
|
4830
|
+
key: d,
|
|
4831
|
+
class: G([
|
|
4798
4832
|
"model",
|
|
4799
4833
|
B.disabled ? "" : "active",
|
|
4800
|
-
|
|
4834
|
+
d > 0 && d < ((Q = (P = i.activeTropicals) == null ? void 0 : P.forecasts) == null ? void 0 : Q.length) - 1 && ((_ = (S = i.activeTropicals) == null ? void 0 : S.forecasts) == null ? void 0 : _.length) > 2 ? "center-child" : ""
|
|
4801
4835
|
]),
|
|
4802
|
-
onClick: (
|
|
4836
|
+
onClick: (H) => o.handleForecastToggle(B)
|
|
4803
4837
|
}, [
|
|
4804
4838
|
s("span", {
|
|
4805
|
-
class:
|
|
4806
|
-
},
|
|
4839
|
+
class: G(B.model)
|
|
4840
|
+
}, E(B.model), 3)
|
|
4807
4841
|
], 10, Ka);
|
|
4808
4842
|
}), 128))
|
|
4809
4843
|
])
|
|
@@ -4822,7 +4856,7 @@ function Ja(t, e, a, r, i, o) {
|
|
|
4822
4856
|
[we, i.showTropicals && !t.$attrs.hideTropicalsLegend]
|
|
4823
4857
|
]);
|
|
4824
4858
|
}
|
|
4825
|
-
const lt = /* @__PURE__ */
|
|
4859
|
+
const lt = /* @__PURE__ */ O(Ta, [["render", Ja], ["__scopeId", "data-v-5947a418"]]);
|
|
4826
4860
|
const qa = {
|
|
4827
4861
|
name: "IdmPrecip3h",
|
|
4828
4862
|
props: {
|
|
@@ -4911,7 +4945,7 @@ const qa = {
|
|
|
4911
4945
|
[1, "rgba(197,5,58,0.8)"]
|
|
4912
4946
|
];
|
|
4913
4947
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4914
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
4948
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.fragmentSchema);
|
|
4915
4949
|
this.program = e, this.aPositionBuffer = a;
|
|
4916
4950
|
}
|
|
4917
4951
|
},
|
|
@@ -4930,7 +4964,7 @@ function Za(t, e, a, r, i, o) {
|
|
|
4930
4964
|
return (l = a.factor) != null && l.active ? (m(), g("div", Va, [
|
|
4931
4965
|
s("div", {
|
|
4932
4966
|
class: "legend-bars flex-center",
|
|
4933
|
-
style:
|
|
4967
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4934
4968
|
}, e[0] || (e[0] = [
|
|
4935
4969
|
s("span", null, "mm", -1),
|
|
4936
4970
|
s("span", null, "1.5", -1),
|
|
@@ -4941,9 +4975,9 @@ function Za(t, e, a, r, i, o) {
|
|
|
4941
4975
|
s("span", null, "20", -1),
|
|
4942
4976
|
s("span", null, "30", -1)
|
|
4943
4977
|
]), 4)
|
|
4944
|
-
])) :
|
|
4978
|
+
])) : R("", !0);
|
|
4945
4979
|
}
|
|
4946
|
-
const $a = /* @__PURE__ */
|
|
4980
|
+
const $a = /* @__PURE__ */ O(qa, [["render", Za], ["__scopeId", "data-v-e83717bd"]]);
|
|
4947
4981
|
const ei = {
|
|
4948
4982
|
name: "IdmVisibility",
|
|
4949
4983
|
props: {
|
|
@@ -5025,7 +5059,7 @@ const ei = {
|
|
|
5025
5059
|
[1, "rgba(144,144,144,0)"]
|
|
5026
5060
|
];
|
|
5027
5061
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5028
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
5062
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.fragmentSchema);
|
|
5029
5063
|
this.program = e, this.aPositionBuffer = a;
|
|
5030
5064
|
}
|
|
5031
5065
|
},
|
|
@@ -5044,7 +5078,7 @@ function ai(t, e, a, r, i, o) {
|
|
|
5044
5078
|
return (l = a.factor) != null && l.active ? (m(), g("div", ti, [
|
|
5045
5079
|
s("div", {
|
|
5046
5080
|
class: "legend-bars flex-center",
|
|
5047
|
-
style:
|
|
5081
|
+
style: $([{ position: "absolute" }, { right: t.right + "px", bottom: a.bottom }])
|
|
5048
5082
|
}, e[0] || (e[0] = [
|
|
5049
5083
|
s("span", null, "nm", -1),
|
|
5050
5084
|
s("span", null, "0", -1),
|
|
@@ -5053,9 +5087,9 @@ function ai(t, e, a, r, i, o) {
|
|
|
5053
5087
|
s("span", null, "3", -1),
|
|
5054
5088
|
s("span", null, "9", -1)
|
|
5055
5089
|
]), 4)
|
|
5056
|
-
])) :
|
|
5090
|
+
])) : R("", !0);
|
|
5057
5091
|
}
|
|
5058
|
-
const ii = /* @__PURE__ */
|
|
5092
|
+
const ii = /* @__PURE__ */ O(ei, [["render", ai], ["__scopeId", "data-v-1c8a9237"]]);
|
|
5059
5093
|
const ri = {
|
|
5060
5094
|
name: "IdmWaterTemp",
|
|
5061
5095
|
props: {
|
|
@@ -5145,7 +5179,7 @@ const ri = {
|
|
|
5145
5179
|
//
|
|
5146
5180
|
];
|
|
5147
5181
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5148
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
5182
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.fragmentSchema);
|
|
5149
5183
|
this.program = e, this.aPositionBuffer = a;
|
|
5150
5184
|
}
|
|
5151
5185
|
},
|
|
@@ -5164,7 +5198,7 @@ function si(t, e, a, r, i, o) {
|
|
|
5164
5198
|
return (l = a.factor) != null && l.active ? (m(), g("div", oi, [
|
|
5165
5199
|
s("div", {
|
|
5166
5200
|
class: "legend-bars flex-center",
|
|
5167
|
-
style:
|
|
5201
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
5168
5202
|
}, e[0] || (e[0] = [
|
|
5169
5203
|
s("span", null, "°C", -1),
|
|
5170
5204
|
s("span", null, "0", -1),
|
|
@@ -5173,9 +5207,9 @@ function si(t, e, a, r, i, o) {
|
|
|
5173
5207
|
s("span", null, "30", -1),
|
|
5174
5208
|
s("span", null, "40", -1)
|
|
5175
5209
|
]), 4)
|
|
5176
|
-
])) :
|
|
5210
|
+
])) : R("", !0);
|
|
5177
5211
|
}
|
|
5178
|
-
const ni = /* @__PURE__ */
|
|
5212
|
+
const ni = /* @__PURE__ */ O(ri, [["render", si], ["__scopeId", "data-v-8974924d"]]);
|
|
5179
5213
|
const li = {
|
|
5180
5214
|
name: "IdmTemp",
|
|
5181
5215
|
props: {
|
|
@@ -5268,7 +5302,7 @@ const li = {
|
|
|
5268
5302
|
[1, "rgb(138, 43, 10)"]
|
|
5269
5303
|
];
|
|
5270
5304
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5271
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
5305
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.fragmentSchema);
|
|
5272
5306
|
this.program = e, this.aPositionBuffer = a;
|
|
5273
5307
|
}
|
|
5274
5308
|
},
|
|
@@ -5287,7 +5321,7 @@ function hi(t, e, a, r, i, o) {
|
|
|
5287
5321
|
return (l = a.factor) != null && l.active ? (m(), g("div", ci, [
|
|
5288
5322
|
s("div", {
|
|
5289
5323
|
class: "legend-bars flex-center",
|
|
5290
|
-
style:
|
|
5324
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
5291
5325
|
}, e[0] || (e[0] = [
|
|
5292
5326
|
s("span", null, "°C", -1),
|
|
5293
5327
|
s("span", null, "-20", -1),
|
|
@@ -5298,9 +5332,9 @@ function hi(t, e, a, r, i, o) {
|
|
|
5298
5332
|
s("span", null, "30", -1),
|
|
5299
5333
|
s("span", null, "40", -1)
|
|
5300
5334
|
]), 4)
|
|
5301
|
-
])) :
|
|
5335
|
+
])) : R("", !0);
|
|
5302
5336
|
}
|
|
5303
|
-
const di = /* @__PURE__ */
|
|
5337
|
+
const di = /* @__PURE__ */ O(li, [["render", hi], ["__scopeId", "data-v-d709ba86"]]);
|
|
5304
5338
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
5305
5339
|
var pi = /* @__PURE__ */ mt({
|
|
5306
5340
|
name: "LocationFilled",
|
|
@@ -5406,8 +5440,8 @@ const gi = {
|
|
|
5406
5440
|
var t;
|
|
5407
5441
|
if (this.showMeteo && this.ts) {
|
|
5408
5442
|
this.handleRender();
|
|
5409
|
-
const e =
|
|
5410
|
-
((t =
|
|
5443
|
+
const e = X();
|
|
5444
|
+
((t = X(this.ts)) == null ? void 0 : t.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData);
|
|
5411
5445
|
}
|
|
5412
5446
|
}
|
|
5413
5447
|
},
|
|
@@ -5416,8 +5450,8 @@ const gi = {
|
|
|
5416
5450
|
var t;
|
|
5417
5451
|
if (this.showMeteo = !0, this.tideData = {}, this.meteoData = {}, this.showMeteo && this.ts) {
|
|
5418
5452
|
this.handleRender();
|
|
5419
|
-
const e =
|
|
5420
|
-
if (((t =
|
|
5453
|
+
const e = X();
|
|
5454
|
+
if (((t = X(this.ts)) == null ? void 0 : t.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData), this.activeIndex === 4) {
|
|
5421
5455
|
const r = Ye.pickDailyExtremes(this.tideData, this.ts);
|
|
5422
5456
|
(r == null ? void 0 : r.length) > 0 ? this.tideTableData = r : await this.fetchTidesData(this.point, this.ts, 7);
|
|
5423
5457
|
}
|
|
@@ -5428,7 +5462,7 @@ const gi = {
|
|
|
5428
5462
|
async handler() {
|
|
5429
5463
|
var t;
|
|
5430
5464
|
if (this.showMeteo && this.ts) {
|
|
5431
|
-
const e =
|
|
5465
|
+
const e = X(), a = (t = X(this.ts)) == null ? void 0 : t.diff(e, "d", !0), i = [0, 1, 2, 3, 4, 5, 6, 7].every((o) => {
|
|
5432
5466
|
var c;
|
|
5433
5467
|
const l = Ge(this.ts).tz(this.positionGmt).add(3 * o, "h").format();
|
|
5434
5468
|
return (c = We.pickHourly(this.meteoData, l)) == null ? void 0 : c[0];
|
|
@@ -5449,7 +5483,7 @@ const gi = {
|
|
|
5449
5483
|
},
|
|
5450
5484
|
computeHourZ() {
|
|
5451
5485
|
return function(t) {
|
|
5452
|
-
return t ? `${
|
|
5486
|
+
return t ? `${X(t).utc().format("HH")}Z` : "-";
|
|
5453
5487
|
};
|
|
5454
5488
|
},
|
|
5455
5489
|
computeHourHmmLT() {
|
|
@@ -5459,24 +5493,24 @@ const gi = {
|
|
|
5459
5493
|
},
|
|
5460
5494
|
computeLat() {
|
|
5461
5495
|
return function(t, e = 4) {
|
|
5462
|
-
return
|
|
5496
|
+
return q.lat2pretty(t, e).pretty;
|
|
5463
5497
|
};
|
|
5464
5498
|
},
|
|
5465
5499
|
computeLng() {
|
|
5466
5500
|
return function(t, e = 4) {
|
|
5467
|
-
return
|
|
5501
|
+
return q.lng2pretty(t, e).pretty;
|
|
5468
5502
|
};
|
|
5469
5503
|
},
|
|
5470
5504
|
roundPrecision() {
|
|
5471
5505
|
return function(t, e = 4) {
|
|
5472
|
-
return isNaN(t) ? "-" :
|
|
5506
|
+
return isNaN(t) ? "-" : q.roundPrecision(t, e);
|
|
5473
5507
|
};
|
|
5474
5508
|
}
|
|
5475
5509
|
},
|
|
5476
5510
|
methods: {
|
|
5477
5511
|
async fetchMeteoData(t, e, a) {
|
|
5478
5512
|
this.loading = !0, this.meteoData = [];
|
|
5479
|
-
let r = e ?
|
|
5513
|
+
let r = e ? X(e).utc().format() : X().utc().format();
|
|
5480
5514
|
const { weatherModels: i, marineModels: o } = We.autoPickMeteoModel(this.forecastModel);
|
|
5481
5515
|
let l = {
|
|
5482
5516
|
lat: t.lat,
|
|
@@ -5485,7 +5519,7 @@ const gi = {
|
|
|
5485
5519
|
forecastDays: a ?? 7,
|
|
5486
5520
|
weatherModels: i,
|
|
5487
5521
|
marineModels: o
|
|
5488
|
-
}, c = await
|
|
5522
|
+
}, c = await he.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, l, {
|
|
5489
5523
|
headers: {
|
|
5490
5524
|
Authorization: this.token || this.defaultMeteoToken
|
|
5491
5525
|
}
|
|
@@ -5494,7 +5528,7 @@ const gi = {
|
|
|
5494
5528
|
},
|
|
5495
5529
|
async fetchHistoryData(t, e) {
|
|
5496
5530
|
this.loading = !0, this.meteoData = [];
|
|
5497
|
-
const a = e ?
|
|
5531
|
+
const a = e ? X(e).utc().format() : X().utc().format(), { weatherModels: r, marineModels: i } = We.autoPickMeteoModel(this.forecastModel), o = {
|
|
5498
5532
|
lat: t.lat,
|
|
5499
5533
|
lng: t.lng,
|
|
5500
5534
|
datetime: a,
|
|
@@ -5502,7 +5536,7 @@ const gi = {
|
|
|
5502
5536
|
pastDays: 1,
|
|
5503
5537
|
weatherModels: r,
|
|
5504
5538
|
marineModels: i
|
|
5505
|
-
}, l = await
|
|
5539
|
+
}, l = await he.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, o, {
|
|
5506
5540
|
headers: {
|
|
5507
5541
|
Authorization: this.token || this.defaultMeteoToken
|
|
5508
5542
|
}
|
|
@@ -5510,18 +5544,18 @@ const gi = {
|
|
|
5510
5544
|
(l == null ? void 0 : l.data.code) === 0 && (this.meteoData = l == null ? void 0 : l.data.data, this.loading = !1);
|
|
5511
5545
|
},
|
|
5512
5546
|
initTableData(t) {
|
|
5513
|
-
var e, a, r, i, o, l, c, h,
|
|
5514
|
-
this.clearTable(), this.positionGmt = (a = (e = t == null ? void 0 : t.weather) == null ? void 0 : e[0]) == null ? void 0 : a.timezone, this.positionOffset = (i = (r = t == null ? void 0 : t.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (l = (o = Ge(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : l.format("MMM-DD/HHmm[LT]"), this.currentHourData = (c = We.pickHourly(t,
|
|
5515
|
-
var
|
|
5547
|
+
var e, a, r, i, o, l, c, h, p;
|
|
5548
|
+
this.clearTable(), this.positionGmt = (a = (e = t == null ? void 0 : t.weather) == null ? void 0 : e[0]) == null ? void 0 : a.timezone, this.positionOffset = (i = (r = t == null ? void 0 : t.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (l = (o = Ge(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : l.format("MMM-DD/HHmm[LT]"), this.currentHourData = (c = We.pickHourly(t, X(this.ts))) == null ? void 0 : c[0], ((p = (h = this.currentHourData) == null ? void 0 : h.weather) == null ? void 0 : p.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
5549
|
+
var u, b, v, y, x, D, L, A, f, w, B, d, P, Q, S, _, H, Y, J, W, de, pe, ue, me, ge, ie, ne, Ae, oe, N, te, fe, se;
|
|
5516
5550
|
if (!document.getElementById("meteoMainBox"))
|
|
5517
5551
|
return !1;
|
|
5518
5552
|
if (!this.currentHourData)
|
|
5519
5553
|
return this.loading = !1, this.tableData.hours = [void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0], this.handleRender(), !1;
|
|
5520
|
-
for (let
|
|
5521
|
-
const
|
|
5522
|
-
this.tableData.hours.push(
|
|
5523
|
-
const
|
|
5524
|
-
this.tableData.temp.push(this.roundPrecision((
|
|
5554
|
+
for (let le = 0; le < 8; le++) {
|
|
5555
|
+
const ce = Ge(this.ts).tz(this.positionGmt).add(3 * le, "h").format();
|
|
5556
|
+
this.tableData.hours.push(ce);
|
|
5557
|
+
const I = ((u = We.pickHourly(t, ce)) == null ? void 0 : u[0]) || {};
|
|
5558
|
+
this.tableData.temp.push(this.roundPrecision((b = I == null ? void 0 : I.weather) == null ? void 0 : b.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((y = (v = I == null ? void 0 : I.weather) == null ? void 0 : v.precip) == null ? void 0 : y.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((D = (x = I == null ? void 0 : I.weather) == null ? void 0 : x.precip) == null ? void 0 : D.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((L = I == null ? void 0 : I.weather) == null ? void 0 : L.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((f = (A = I == null ? void 0 : I.weather) == null ? void 0 : A.wind) == null ? void 0 : f.kts, 1) ?? "-"), this.tableData.windDir.push((B = (w = I == null ? void 0 : I.weather) == null ? void 0 : w.wind) == null ? void 0 : B.bearing), this.tableData.windGust.push(this.roundPrecision((P = (d = I == null ? void 0 : I.weather) == null ? void 0 : d.wind) == null ? void 0 : P.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((S = (Q = I == null ? void 0 : I.wave) == null ? void 0 : Q.sig) == null ? void 0 : S.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (_ = I == null ? void 0 : I.wave) == null ? void 0 : _.sig) == null ? void 0 : H.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((J = (Y = I == null ? void 0 : I.wave) == null ? void 0 : Y.wd) == null ? void 0 : J.height, 1) ?? "-"), this.tableData.windwaveDir.push((de = (W = I == null ? void 0 : I.wave) == null ? void 0 : W.wd) == null ? void 0 : de.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ue = (pe = I == null ? void 0 : I.wave) == null ? void 0 : pe.wd) == null ? void 0 : ue.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (me = I == null ? void 0 : I.wave) == null ? void 0 : me.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((ne = (ie = I == null ? void 0 : I.wave) == null ? void 0 : ie.swell) == null ? void 0 : ne.bearing), this.tableData.swellPeriod.push(this.roundPrecision((oe = (Ae = I == null ? void 0 : I.wave) == null ? void 0 : Ae.swell) == null ? void 0 : oe.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((N = I == null ? void 0 : I.current) == null ? void 0 : N.speed, 1) ?? "-"), this.tableData.currentDir.push((te = I == null ? void 0 : I.current) == null ? void 0 : te.bearing), this.tableData.seaLevel.push(this.roundPrecision(I == null ? void 0 : I.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(I == null ? void 0 : I.sst, 0) ?? "-"), this.tableData.weatherUrls.push((fe = I == null ? void 0 : I.weather) == null ? void 0 : fe.url), this.tableData.weatherNames.push(((se = I == null ? void 0 : I.weather) == null ? void 0 : se.name) ?? "-");
|
|
5525
5559
|
}
|
|
5526
5560
|
});
|
|
5527
5561
|
},
|
|
@@ -5557,14 +5591,14 @@ const gi = {
|
|
|
5557
5591
|
},
|
|
5558
5592
|
async fetchTidesData(t, e, a) {
|
|
5559
5593
|
this.tideLoading = !0, this.tideData = {};
|
|
5560
|
-
let r = e ?
|
|
5594
|
+
let r = e ? X(e).utc().format() : X().utc().format(), i = {
|
|
5561
5595
|
lat: t.lat,
|
|
5562
5596
|
lng: t.lng,
|
|
5563
5597
|
date: r,
|
|
5564
5598
|
forecastDays: a ?? 7,
|
|
5565
5599
|
extremes: !0,
|
|
5566
5600
|
heights: !1
|
|
5567
|
-
}, o = await
|
|
5601
|
+
}, o = await he.post(`${this.gateway}/api/arc/meteo2/spot/tides/forecast`, i, {
|
|
5568
5602
|
headers: {
|
|
5569
5603
|
Authorization: this.token || this.defaultMeteoToken
|
|
5570
5604
|
}
|
|
@@ -5644,33 +5678,33 @@ const gi = {
|
|
|
5644
5678
|
class: "main-box flex-center"
|
|
5645
5679
|
};
|
|
5646
5680
|
function Ir(t, e, a, r, i, o) {
|
|
5647
|
-
var
|
|
5648
|
-
const l =
|
|
5681
|
+
var p, n, u, b, v, y, x, D, L, A, f, w, B, d, P, Q, S, _, H, Y, J, W, de, pe, ue, me, ge, ie, ne, Ae, oe, N, te, fe, se, le, ce, I, Le, xe, Be, Ie, Ee, De, Pe, ke, Me, ze, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe, V, qe, Ve, Ze, $e, et, tt, at, it, rt;
|
|
5682
|
+
const l = T("LocationFilled"), c = T("ElIcon"), h = T("ElTooltip");
|
|
5649
5683
|
return ye((m(), g("div", Ai, [
|
|
5650
5684
|
s("div", fi, [
|
|
5651
5685
|
s("div", yi, [
|
|
5652
5686
|
s("div", wi, [
|
|
5653
|
-
|
|
5654
|
-
default:
|
|
5655
|
-
|
|
5687
|
+
z(c, { size: "22" }, {
|
|
5688
|
+
default: re(() => [
|
|
5689
|
+
z(l)
|
|
5656
5690
|
]),
|
|
5657
5691
|
_: 1
|
|
5658
5692
|
}),
|
|
5659
|
-
s("div", bi,
|
|
5693
|
+
s("div", bi, E(o.computeLat((p = i.point) == null ? void 0 : p.lat)) + "," + E(o.computeLng((n = i.point) == null ? void 0 : n.lng)), 1)
|
|
5660
5694
|
]),
|
|
5661
5695
|
s("div", vi, [
|
|
5662
5696
|
i.showTables ? (m(), g("div", {
|
|
5663
5697
|
key: 0,
|
|
5664
5698
|
class: "iconfont toggle",
|
|
5665
|
-
onClick: e[0] || (e[0] = (
|
|
5699
|
+
onClick: e[0] || (e[0] = (C) => i.showTables = !i.showTables)
|
|
5666
5700
|
}, "")) : (m(), g("div", {
|
|
5667
5701
|
key: 1,
|
|
5668
5702
|
class: "iconfont toggle",
|
|
5669
|
-
onClick: e[1] || (e[1] = (
|
|
5703
|
+
onClick: e[1] || (e[1] = (C) => i.showTables = !i.showTables)
|
|
5670
5704
|
}, "")),
|
|
5671
5705
|
s("div", {
|
|
5672
5706
|
class: "iconfont close",
|
|
5673
|
-
onClick: e[2] || (e[2] = (...
|
|
5707
|
+
onClick: e[2] || (e[2] = (...C) => o.handleCloseMeteo && o.handleCloseMeteo(...C))
|
|
5674
5708
|
}, "")
|
|
5675
5709
|
])
|
|
5676
5710
|
]),
|
|
@@ -5678,21 +5712,21 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5678
5712
|
s("img", { src: mi }, null, -1)
|
|
5679
5713
|
]))) : (m(), g("div", {
|
|
5680
5714
|
key: 0,
|
|
5681
|
-
class:
|
|
5715
|
+
class: G(["main-box", i.isDay ? "day-bg" : "night-bg"]),
|
|
5682
5716
|
id: "meteoMainBox"
|
|
5683
5717
|
}, [
|
|
5684
5718
|
s("div", Li, [
|
|
5685
5719
|
s("div", Ci, [
|
|
5686
|
-
|
|
5720
|
+
z(h, {
|
|
5687
5721
|
placement: "top",
|
|
5688
5722
|
effect: "light",
|
|
5689
|
-
content: (
|
|
5723
|
+
content: (b = (u = i.currentHourData) == null ? void 0 : u.weather) == null ? void 0 : b.name,
|
|
5690
5724
|
"show-after": 1e3
|
|
5691
5725
|
}, {
|
|
5692
|
-
default:
|
|
5693
|
-
var
|
|
5726
|
+
default: re(() => {
|
|
5727
|
+
var C, k, ot, st;
|
|
5694
5728
|
return [
|
|
5695
|
-
(
|
|
5729
|
+
(k = (C = i.currentHourData) == null ? void 0 : C.weather) != null && k.url ? (m(), g("img", {
|
|
5696
5730
|
key: 0,
|
|
5697
5731
|
class: "iconfont icon",
|
|
5698
5732
|
style: { "margin-right": "5px" },
|
|
@@ -5704,47 +5738,47 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5704
5738
|
}, 8, ["content"]),
|
|
5705
5739
|
s("div", Ii, [
|
|
5706
5740
|
s("div", null, [
|
|
5707
|
-
|
|
5741
|
+
Z(E(o.roundPrecision((y = (v = i.currentHourData) == null ? void 0 : v.weather) == null ? void 0 : y.temp, 0)), 1),
|
|
5708
5742
|
e[8] || (e[8] = s("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
5709
5743
|
])
|
|
5710
5744
|
]),
|
|
5711
5745
|
s("div", Ei, [
|
|
5712
5746
|
s("div", Di, [
|
|
5713
5747
|
e[9] || (e[9] = s("label", null, "Precip : ", -1)),
|
|
5714
|
-
s("span", null,
|
|
5748
|
+
s("span", null, E(o.roundPrecision((L = (D = (x = i.currentHourData) == null ? void 0 : x.weather) == null ? void 0 : D.precip) == null ? void 0 : L.sum, 0)) + " mm", 1)
|
|
5715
5749
|
]),
|
|
5716
5750
|
s("div", Pi, [
|
|
5717
5751
|
e[10] || (e[10] = s("label", null, "Visibility : ", -1)),
|
|
5718
|
-
s("span", null,
|
|
5752
|
+
s("span", null, E(o.roundPrecision((f = (A = i.currentHourData) == null ? void 0 : A.weather) == null ? void 0 : f.visibility, 0)) + " nm", 1)
|
|
5719
5753
|
]),
|
|
5720
5754
|
s("div", ki, [
|
|
5721
5755
|
e[11] || (e[11] = s("label", null, "Wind : ", -1)),
|
|
5722
|
-
s("span", null,
|
|
5756
|
+
s("span", null, E(o.roundPrecision((d = (B = (w = i.currentHourData) == null ? void 0 : w.weather) == null ? void 0 : B.wind) == null ? void 0 : d.kts, 1)) + " kts", 1)
|
|
5723
5757
|
])
|
|
5724
5758
|
])
|
|
5725
5759
|
]),
|
|
5726
5760
|
s("div", Mi, [
|
|
5727
|
-
s("div", zi,
|
|
5728
|
-
s("div", Ti, "( UTC " +
|
|
5761
|
+
s("div", zi, E(i.localDate), 1),
|
|
5762
|
+
s("div", Ti, "( UTC " + E(i.positionOffset) + " )", 1)
|
|
5729
5763
|
])
|
|
5730
5764
|
]),
|
|
5731
5765
|
ye(s("div", Qi, [
|
|
5732
5766
|
s("div", Si, [
|
|
5733
5767
|
s("div", {
|
|
5734
|
-
class:
|
|
5735
|
-
onClick: e[3] || (e[3] = Ue((
|
|
5768
|
+
class: G(["menu-item", i.activeIndex === 1 ? "active" : ""]),
|
|
5769
|
+
onClick: e[3] || (e[3] = Ue((C) => o.handleSelectTab(1), ["prevent"]))
|
|
5736
5770
|
}, "Basis", 2),
|
|
5737
5771
|
s("div", {
|
|
5738
|
-
class:
|
|
5739
|
-
onClick: e[4] || (e[4] = Ue((
|
|
5772
|
+
class: G(["menu-item", i.activeIndex === 2 ? "active" : ""]),
|
|
5773
|
+
onClick: e[4] || (e[4] = Ue((C) => o.handleSelectTab(2), ["prevent"]))
|
|
5740
5774
|
}, "Wave & Current", 2),
|
|
5741
5775
|
s("div", {
|
|
5742
|
-
class:
|
|
5743
|
-
onClick: e[5] || (e[5] = Ue((
|
|
5776
|
+
class: G(["menu-item", i.activeIndex === 3 ? "active" : ""]),
|
|
5777
|
+
onClick: e[5] || (e[5] = Ue((C) => o.handleSelectTab(3), ["prevent"]))
|
|
5744
5778
|
}, "Sea Surface", 2),
|
|
5745
5779
|
s("div", {
|
|
5746
|
-
class:
|
|
5747
|
-
onClick: e[6] || (e[6] = Ue((
|
|
5780
|
+
class: G(["menu-item", i.activeIndex === 4 ? "active" : ""]),
|
|
5781
|
+
onClick: e[6] || (e[6] = Ue((C) => o.handleSelectTab(4), ["prevent"]))
|
|
5748
5782
|
}, "Tides", 2)
|
|
5749
5783
|
]),
|
|
5750
5784
|
ye(s("table", _i, [
|
|
@@ -5754,14 +5788,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5754
5788
|
colspan: "1",
|
|
5755
5789
|
class: "tr-title"
|
|
5756
5790
|
}, [
|
|
5757
|
-
|
|
5791
|
+
Z("Hours"),
|
|
5758
5792
|
s("span", { class: "unit" }, "(LT)")
|
|
5759
5793
|
], -1)),
|
|
5760
|
-
(m(!0), g(
|
|
5794
|
+
(m(!0), g(F, null, U(i.tableData.hours, (C) => (m(), g("th", {
|
|
5761
5795
|
rowspan: "1",
|
|
5762
5796
|
colspan: "1",
|
|
5763
|
-
key: `HourL${
|
|
5764
|
-
},
|
|
5797
|
+
key: `HourL${C}`
|
|
5798
|
+
}, E(o.computeHourL(C)), 1))), 128))
|
|
5765
5799
|
]),
|
|
5766
5800
|
s("tr", Oi, [
|
|
5767
5801
|
e[13] || (e[13] = s("th", {
|
|
@@ -5769,14 +5803,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5769
5803
|
colspan: "1",
|
|
5770
5804
|
class: "tr-title"
|
|
5771
5805
|
}, [
|
|
5772
|
-
|
|
5806
|
+
Z("UTC"),
|
|
5773
5807
|
s("span", { class: "unit" })
|
|
5774
5808
|
], -1)),
|
|
5775
|
-
(m(!0), g(
|
|
5809
|
+
(m(!0), g(F, null, U(i.tableData.hours, (C) => (m(), g("th", {
|
|
5776
5810
|
rowspan: "1",
|
|
5777
5811
|
colspan: "1",
|
|
5778
|
-
key: `HourZ${
|
|
5779
|
-
},
|
|
5812
|
+
key: `HourZ${C}`
|
|
5813
|
+
}, E(o.computeHourZ(C)), 1))), 128))
|
|
5780
5814
|
]),
|
|
5781
5815
|
s("tr", Ni, [
|
|
5782
5816
|
e[14] || (e[14] = s("th", {
|
|
@@ -5784,23 +5818,23 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5784
5818
|
colspan: "1",
|
|
5785
5819
|
class: "tr-title"
|
|
5786
5820
|
}, null, -1)),
|
|
5787
|
-
(m(!0), g(
|
|
5821
|
+
(m(!0), g(F, null, U(i.tableData.weatherUrls, (C, k) => (m(), g("th", {
|
|
5788
5822
|
rowspan: "1",
|
|
5789
5823
|
colspan: "1",
|
|
5790
|
-
key: `weatherUrls${
|
|
5824
|
+
key: `weatherUrls${k}${C}`
|
|
5791
5825
|
}, [
|
|
5792
|
-
|
|
5826
|
+
z(h, {
|
|
5793
5827
|
placement: "top",
|
|
5794
5828
|
effect: "light",
|
|
5795
|
-
content: i.tableData.weatherNames[
|
|
5829
|
+
content: i.tableData.weatherNames[k],
|
|
5796
5830
|
"show-after": 500
|
|
5797
5831
|
}, {
|
|
5798
|
-
default:
|
|
5799
|
-
|
|
5832
|
+
default: re(() => [
|
|
5833
|
+
C ? (m(), g("img", {
|
|
5800
5834
|
key: 0,
|
|
5801
5835
|
class: "iconfont weather-icon",
|
|
5802
|
-
src:
|
|
5803
|
-
}, null, 8, ji)) :
|
|
5836
|
+
src: C
|
|
5837
|
+
}, null, 8, ji)) : R("", !0)
|
|
5804
5838
|
]),
|
|
5805
5839
|
_: 2
|
|
5806
5840
|
}, 1032, ["content"])
|
|
@@ -5812,14 +5846,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5812
5846
|
colspan: "1",
|
|
5813
5847
|
class: "tr-title"
|
|
5814
5848
|
}, [
|
|
5815
|
-
|
|
5849
|
+
Z("Temp"),
|
|
5816
5850
|
s("span", { class: "unit" }, "°C")
|
|
5817
5851
|
], -1)),
|
|
5818
|
-
(m(!0), g(
|
|
5852
|
+
(m(!0), g(F, null, U(i.tableData.temp, (C, k) => (m(), g("td", {
|
|
5819
5853
|
rowspan: "1",
|
|
5820
5854
|
colspan: "1",
|
|
5821
|
-
key: `weatherUrls${
|
|
5822
|
-
},
|
|
5855
|
+
key: `weatherUrls${k}${C}`
|
|
5856
|
+
}, E(C), 1))), 128))
|
|
5823
5857
|
]),
|
|
5824
5858
|
s("tr", Fi, [
|
|
5825
5859
|
e[16] || (e[16] = s("td", {
|
|
@@ -5827,14 +5861,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5827
5861
|
colspan: "1",
|
|
5828
5862
|
class: "tr-title"
|
|
5829
5863
|
}, [
|
|
5830
|
-
|
|
5864
|
+
Z("Precip"),
|
|
5831
5865
|
s("span", { class: "unit" }, "mm")
|
|
5832
5866
|
], -1)),
|
|
5833
|
-
(m(!0), g(
|
|
5867
|
+
(m(!0), g(F, null, U(i.tableData.precip1h, (C, k) => (m(), g("td", {
|
|
5834
5868
|
rowspan: "1",
|
|
5835
5869
|
colspan: "1",
|
|
5836
|
-
key: `precip1h${
|
|
5837
|
-
},
|
|
5870
|
+
key: `precip1h${k}${C}`
|
|
5871
|
+
}, E(C), 1))), 128))
|
|
5838
5872
|
]),
|
|
5839
5873
|
s("tr", Gi, [
|
|
5840
5874
|
e[17] || (e[17] = s("td", {
|
|
@@ -5842,14 +5876,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5842
5876
|
colspan: "1",
|
|
5843
5877
|
class: "tr-title"
|
|
5844
5878
|
}, [
|
|
5845
|
-
|
|
5879
|
+
Z("Visibility"),
|
|
5846
5880
|
s("span", { class: "unit" }, "nm")
|
|
5847
5881
|
], -1)),
|
|
5848
|
-
(m(!0), g(
|
|
5882
|
+
(m(!0), g(F, null, U(i.tableData.visibility, (C, k) => (m(), g("td", {
|
|
5849
5883
|
rowspan: "1",
|
|
5850
5884
|
colspan: "1",
|
|
5851
|
-
key: `visibility${
|
|
5852
|
-
},
|
|
5885
|
+
key: `visibility${k}${C}`
|
|
5886
|
+
}, E(C), 1))), 128))
|
|
5853
5887
|
]),
|
|
5854
5888
|
s("tr", Wi, [
|
|
5855
5889
|
e[18] || (e[18] = s("td", {
|
|
@@ -5857,20 +5891,20 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5857
5891
|
colspan: "1",
|
|
5858
5892
|
class: "tr-title"
|
|
5859
5893
|
}, [
|
|
5860
|
-
|
|
5894
|
+
Z("Wind gust"),
|
|
5861
5895
|
s("span", { class: "unit" }, "kts")
|
|
5862
5896
|
], -1)),
|
|
5863
|
-
(m(!0), g(
|
|
5897
|
+
(m(!0), g(F, null, U(i.tableData.windGust, (C, k) => (m(), g("td", {
|
|
5864
5898
|
rowspan: "1",
|
|
5865
5899
|
colspan: "1",
|
|
5866
|
-
key: `windGust${
|
|
5900
|
+
key: `windGust${k}${C}`
|
|
5867
5901
|
}, [
|
|
5868
|
-
isNaN(i.tableData.windDir[
|
|
5902
|
+
isNaN(i.tableData.windDir[k]) ? R("", !0) : (m(), g("span", {
|
|
5869
5903
|
key: 0,
|
|
5870
5904
|
class: "iconfont icon blue",
|
|
5871
|
-
style:
|
|
5905
|
+
style: $({ display: "inline-block", transform: `rotate(${i.tableData.windDir[k]}deg)` })
|
|
5872
5906
|
}, "", 4)),
|
|
5873
|
-
s("span", null,
|
|
5907
|
+
s("span", null, E(C), 1)
|
|
5874
5908
|
]))), 128))
|
|
5875
5909
|
])
|
|
5876
5910
|
], 512), [
|
|
@@ -5883,14 +5917,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5883
5917
|
colspan: "1",
|
|
5884
5918
|
class: "tr-title"
|
|
5885
5919
|
}, [
|
|
5886
|
-
|
|
5920
|
+
Z("Hours"),
|
|
5887
5921
|
s("span", { class: "unit" }, "(LT)")
|
|
5888
5922
|
], -1)),
|
|
5889
|
-
(m(!0), g(
|
|
5923
|
+
(m(!0), g(F, null, U(i.tableData.hours, (C, k) => (m(), g("th", {
|
|
5890
5924
|
rowspan: "1",
|
|
5891
5925
|
colspan: "1",
|
|
5892
|
-
key: `currenthoursL${
|
|
5893
|
-
},
|
|
5926
|
+
key: `currenthoursL${k}${C}`
|
|
5927
|
+
}, E(o.computeHourL(C)), 1))), 128))
|
|
5894
5928
|
]),
|
|
5895
5929
|
s("tr", Ki, [
|
|
5896
5930
|
e[20] || (e[20] = s("th", {
|
|
@@ -5898,14 +5932,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5898
5932
|
colspan: "1",
|
|
5899
5933
|
class: "tr-title"
|
|
5900
5934
|
}, [
|
|
5901
|
-
|
|
5935
|
+
Z("UTC"),
|
|
5902
5936
|
s("span", { class: "unit" })
|
|
5903
5937
|
], -1)),
|
|
5904
|
-
(m(!0), g(
|
|
5938
|
+
(m(!0), g(F, null, U(i.tableData.hours, (C, k) => (m(), g("th", {
|
|
5905
5939
|
rowspan: "1",
|
|
5906
5940
|
colspan: "1",
|
|
5907
|
-
key: `currenthoursZ${
|
|
5908
|
-
},
|
|
5941
|
+
key: `currenthoursZ${k}${C}`
|
|
5942
|
+
}, E(o.computeHourZ(C)), 1))), 128))
|
|
5909
5943
|
]),
|
|
5910
5944
|
s("tr", Xi, [
|
|
5911
5945
|
e[21] || (e[21] = s("td", {
|
|
@@ -5913,20 +5947,20 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5913
5947
|
colspan: "1",
|
|
5914
5948
|
class: "tr-title"
|
|
5915
5949
|
}, [
|
|
5916
|
-
|
|
5950
|
+
Z("Wind"),
|
|
5917
5951
|
s("span", { class: "unit" }, "kts")
|
|
5918
5952
|
], -1)),
|
|
5919
|
-
(m(!0), g(
|
|
5953
|
+
(m(!0), g(F, null, U(i.tableData.windSpeed, (C, k) => (m(), g("td", {
|
|
5920
5954
|
rowspan: "1",
|
|
5921
5955
|
colspan: "1",
|
|
5922
|
-
key: `windSpeed${
|
|
5956
|
+
key: `windSpeed${k}${C}`
|
|
5923
5957
|
}, [
|
|
5924
|
-
isNaN(i.tableData.windDir[
|
|
5958
|
+
isNaN(i.tableData.windDir[k]) ? R("", !0) : (m(), g("span", {
|
|
5925
5959
|
key: 0,
|
|
5926
5960
|
class: "iconfont icon wind",
|
|
5927
|
-
style:
|
|
5961
|
+
style: $({ display: "inline-block", transform: `rotate(${i.tableData.windDir[k]}deg)` })
|
|
5928
5962
|
}, "", 4)),
|
|
5929
|
-
s("span", null,
|
|
5963
|
+
s("span", null, E(C), 1)
|
|
5930
5964
|
]))), 128))
|
|
5931
5965
|
]),
|
|
5932
5966
|
s("tr", Ji, [
|
|
@@ -5935,20 +5969,20 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5935
5969
|
colspan: "1",
|
|
5936
5970
|
class: "tr-title"
|
|
5937
5971
|
}, [
|
|
5938
|
-
|
|
5972
|
+
Z("Sig Wave"),
|
|
5939
5973
|
s("span", { class: "unit" }, "m")
|
|
5940
5974
|
], -1)),
|
|
5941
|
-
(m(!0), g(
|
|
5975
|
+
(m(!0), g(F, null, U(i.tableData.sigwaveHeight, (C, k) => (m(), g("td", {
|
|
5942
5976
|
rowspan: "1",
|
|
5943
5977
|
colspan: "1",
|
|
5944
|
-
key: `sigwaveHeight${
|
|
5978
|
+
key: `sigwaveHeight${k}${C}`
|
|
5945
5979
|
}, [
|
|
5946
|
-
isNaN(i.tableData.sigwaveDir[
|
|
5980
|
+
isNaN(i.tableData.sigwaveDir[k]) ? R("", !0) : (m(), g("span", {
|
|
5947
5981
|
key: 0,
|
|
5948
5982
|
class: "iconfont icon sigwave",
|
|
5949
|
-
style:
|
|
5983
|
+
style: $({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[k]}deg)` })
|
|
5950
5984
|
}, "", 4)),
|
|
5951
|
-
s("span", null,
|
|
5985
|
+
s("span", null, E(C), 1)
|
|
5952
5986
|
]))), 128))
|
|
5953
5987
|
]),
|
|
5954
5988
|
s("tr", qi, [
|
|
@@ -5957,20 +5991,20 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5957
5991
|
colspan: "1",
|
|
5958
5992
|
class: "tr-title"
|
|
5959
5993
|
}, [
|
|
5960
|
-
|
|
5994
|
+
Z("Wind Wave"),
|
|
5961
5995
|
s("span", { class: "unit" }, "m")
|
|
5962
5996
|
], -1)),
|
|
5963
|
-
(m(!0), g(
|
|
5997
|
+
(m(!0), g(F, null, U(i.tableData.windwaveHeight, (C, k) => (m(), g("td", {
|
|
5964
5998
|
rowspan: "1",
|
|
5965
5999
|
colspan: "1",
|
|
5966
|
-
key: `windwaveHeight${
|
|
6000
|
+
key: `windwaveHeight${k}${C}`
|
|
5967
6001
|
}, [
|
|
5968
|
-
isNaN(i.tableData.sigwaveDir[
|
|
6002
|
+
isNaN(i.tableData.sigwaveDir[k]) ? R("", !0) : (m(), g("span", {
|
|
5969
6003
|
key: 0,
|
|
5970
6004
|
class: "iconfont icon windwave",
|
|
5971
|
-
style:
|
|
6005
|
+
style: $({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[k]}deg)` })
|
|
5972
6006
|
}, "", 4)),
|
|
5973
|
-
s("span", null,
|
|
6007
|
+
s("span", null, E(C), 1)
|
|
5974
6008
|
]))), 128))
|
|
5975
6009
|
]),
|
|
5976
6010
|
s("tr", Vi, [
|
|
@@ -5979,20 +6013,20 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5979
6013
|
colspan: "1",
|
|
5980
6014
|
class: "tr-title"
|
|
5981
6015
|
}, [
|
|
5982
|
-
|
|
6016
|
+
Z("Swell"),
|
|
5983
6017
|
s("span", { class: "unit" }, "m")
|
|
5984
6018
|
], -1)),
|
|
5985
|
-
(m(!0), g(
|
|
6019
|
+
(m(!0), g(F, null, U(i.tableData.swellHeight, (C, k) => (m(), g("td", {
|
|
5986
6020
|
rowspan: "1",
|
|
5987
6021
|
colspan: "1",
|
|
5988
|
-
key: `swellHeight${
|
|
6022
|
+
key: `swellHeight${k}${C}`
|
|
5989
6023
|
}, [
|
|
5990
|
-
isNaN(i.tableData.swellDir[
|
|
6024
|
+
isNaN(i.tableData.swellDir[k]) ? R("", !0) : (m(), g("span", {
|
|
5991
6025
|
key: 0,
|
|
5992
6026
|
class: "iconfont icon swell",
|
|
5993
|
-
style:
|
|
6027
|
+
style: $({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[k]}deg)` })
|
|
5994
6028
|
}, "", 4)),
|
|
5995
|
-
s("span", null,
|
|
6029
|
+
s("span", null, E(C), 1)
|
|
5996
6030
|
]))), 128))
|
|
5997
6031
|
]),
|
|
5998
6032
|
s("tr", Zi, [
|
|
@@ -6001,21 +6035,21 @@ function Ir(t, e, a, r, i, o) {
|
|
|
6001
6035
|
colspan: "1",
|
|
6002
6036
|
class: "tr-title"
|
|
6003
6037
|
}, [
|
|
6004
|
-
|
|
6038
|
+
Z("Current"),
|
|
6005
6039
|
s("span", { class: "unit" }, "kts")
|
|
6006
6040
|
], -1)),
|
|
6007
|
-
(m(!0), g(
|
|
6041
|
+
(m(!0), g(F, null, U(i.tableData.currentSpeed, (C, k) => (m(), g("td", {
|
|
6008
6042
|
rowspan: "1",
|
|
6009
6043
|
colspan: "1",
|
|
6010
|
-
key: `currentSpeed${
|
|
6044
|
+
key: `currentSpeed${k}${C}`
|
|
6011
6045
|
}, [
|
|
6012
|
-
isNaN(i.tableData.currentDir[
|
|
6046
|
+
isNaN(i.tableData.currentDir[k]) ? R("", !0) : (m(), g("span", {
|
|
6013
6047
|
key: 0,
|
|
6014
6048
|
class: "iconfont icon current",
|
|
6015
6049
|
id: "meteoGrayIcon",
|
|
6016
|
-
style:
|
|
6050
|
+
style: $({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[k]}deg)` })
|
|
6017
6051
|
}, "", 4)),
|
|
6018
|
-
s("span", null,
|
|
6052
|
+
s("span", null, E(C), 1)
|
|
6019
6053
|
]))), 128))
|
|
6020
6054
|
])
|
|
6021
6055
|
], 512), [
|
|
@@ -6028,14 +6062,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
6028
6062
|
colspan: "1",
|
|
6029
6063
|
class: "tr-title"
|
|
6030
6064
|
}, [
|
|
6031
|
-
|
|
6065
|
+
Z("Hours"),
|
|
6032
6066
|
s("span", { class: "unit" }, "(LT)")
|
|
6033
6067
|
], -1)),
|
|
6034
|
-
(m(!0), g(
|
|
6068
|
+
(m(!0), g(F, null, U(i.tableData.hours, (C, k) => (m(), g("th", {
|
|
6035
6069
|
rowspan: "1",
|
|
6036
6070
|
colspan: "1",
|
|
6037
|
-
key: `seahoursL${
|
|
6038
|
-
},
|
|
6071
|
+
key: `seahoursL${k}${C}`
|
|
6072
|
+
}, E(o.computeHourL(C)), 1))), 128))
|
|
6039
6073
|
]),
|
|
6040
6074
|
s("tr", tr, [
|
|
6041
6075
|
e[27] || (e[27] = s("th", {
|
|
@@ -6043,14 +6077,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
6043
6077
|
colspan: "1",
|
|
6044
6078
|
class: "tr-title"
|
|
6045
6079
|
}, [
|
|
6046
|
-
|
|
6080
|
+
Z("UTC"),
|
|
6047
6081
|
s("span", { class: "unit" })
|
|
6048
6082
|
], -1)),
|
|
6049
|
-
(m(!0), g(
|
|
6083
|
+
(m(!0), g(F, null, U(i.tableData.hours, (C, k) => (m(), g("th", {
|
|
6050
6084
|
rowspan: "1",
|
|
6051
6085
|
colspan: "1",
|
|
6052
|
-
key: `seahoursZ${
|
|
6053
|
-
},
|
|
6086
|
+
key: `seahoursZ${k}${C}`
|
|
6087
|
+
}, E(o.computeHourZ(C)), 1))), 128))
|
|
6054
6088
|
]),
|
|
6055
6089
|
s("tr", ar, [
|
|
6056
6090
|
e[28] || (e[28] = s("td", {
|
|
@@ -6058,14 +6092,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
6058
6092
|
colspan: "1",
|
|
6059
6093
|
class: "tr-title"
|
|
6060
6094
|
}, [
|
|
6061
|
-
|
|
6095
|
+
Z("SeaLevel"),
|
|
6062
6096
|
s("span", { class: "unit" }, "m")
|
|
6063
6097
|
], -1)),
|
|
6064
|
-
(m(!0), g(
|
|
6098
|
+
(m(!0), g(F, null, U(i.tableData.seaLevel, (C, k) => (m(), g("td", {
|
|
6065
6099
|
rowspan: "1",
|
|
6066
6100
|
colspan: "1",
|
|
6067
|
-
key: `SeaLevel${
|
|
6068
|
-
},
|
|
6101
|
+
key: `SeaLevel${k}${C}`
|
|
6102
|
+
}, E(C), 1))), 128))
|
|
6069
6103
|
]),
|
|
6070
6104
|
s("tr", ir, [
|
|
6071
6105
|
e[29] || (e[29] = s("td", {
|
|
@@ -6073,42 +6107,42 @@ function Ir(t, e, a, r, i, o) {
|
|
|
6073
6107
|
colspan: "1",
|
|
6074
6108
|
class: "tr-title"
|
|
6075
6109
|
}, [
|
|
6076
|
-
|
|
6110
|
+
Z("SeaTemp"),
|
|
6077
6111
|
s("span", { class: "unit" }, "°C")
|
|
6078
6112
|
], -1)),
|
|
6079
|
-
(m(!0), g(
|
|
6113
|
+
(m(!0), g(F, null, U(i.tableData.seaTemp, (C, k) => (m(), g("td", {
|
|
6080
6114
|
rowspan: "1",
|
|
6081
6115
|
colspan: "1",
|
|
6082
|
-
key: `SeaTemp${
|
|
6083
|
-
},
|
|
6116
|
+
key: `SeaTemp${k}${C}`
|
|
6117
|
+
}, E(C), 1))), 128))
|
|
6084
6118
|
])
|
|
6085
6119
|
], 512), [
|
|
6086
6120
|
[we, i.activeIndex === 3]
|
|
6087
6121
|
]),
|
|
6088
6122
|
i.activeIndex === 3 ? (m(), g("div", rr, e[30] || (e[30] = [
|
|
6089
6123
|
s("p", { style: { "font-size": "12px", padding: "12px 20px 0 20px", "line-height": "16px" } }, "*Sea level height accounts for tides, barometer effects, and global variations. Based on mean sea level, accuracy is limited in coastal areas. For coastal navigation, use data from Tides Tab.", -1)
|
|
6090
|
-
]))) :
|
|
6124
|
+
]))) : R("", !0),
|
|
6091
6125
|
ye(s("table", or, [
|
|
6092
6126
|
s("tr", sr, [
|
|
6093
|
-
(m(!0), g(
|
|
6127
|
+
(m(!0), g(F, null, U(i.tideTableData, (C, k) => (m(), g("th", {
|
|
6094
6128
|
rowspan: "1",
|
|
6095
6129
|
colspan: "1",
|
|
6096
|
-
key: `Tide-tr-${
|
|
6097
|
-
},
|
|
6130
|
+
key: `Tide-tr-${k}${C}`
|
|
6131
|
+
}, E(C.type) + " Tide", 1))), 128))
|
|
6098
6132
|
]),
|
|
6099
6133
|
s("tr", nr, [
|
|
6100
|
-
(m(!0), g(
|
|
6134
|
+
(m(!0), g(F, null, U(i.tideTableData, (C, k) => (m(), g("td", {
|
|
6101
6135
|
rowspan: "1",
|
|
6102
6136
|
colspan: "1",
|
|
6103
|
-
key: `Tide-date-${
|
|
6104
|
-
},
|
|
6137
|
+
key: `Tide-date-${k}${C}`
|
|
6138
|
+
}, E(o.computeHourHmmLT(C == null ? void 0 : C.date)), 1))), 128))
|
|
6105
6139
|
]),
|
|
6106
6140
|
s("tr", lr, [
|
|
6107
|
-
(m(!0), g(
|
|
6141
|
+
(m(!0), g(F, null, U(i.tideTableData, (C, k) => (m(), g("td", {
|
|
6108
6142
|
rowspan: "1",
|
|
6109
6143
|
colspan: "1",
|
|
6110
|
-
key: `Tide-height-${
|
|
6111
|
-
},
|
|
6144
|
+
key: `Tide-height-${k}${C}`
|
|
6145
|
+
}, E(o.roundPrecision(C == null ? void 0 : C.height, 2)) + " m", 1))), 128))
|
|
6112
6146
|
]),
|
|
6113
6147
|
e[31] || (e[31] = s("tr", { class: "tr-tide flex-center info" }, [
|
|
6114
6148
|
s("span", null, "Tide Datum: Chart Datum")
|
|
@@ -6117,65 +6151,65 @@ function Ir(t, e, a, r, i, o) {
|
|
|
6117
6151
|
[we, i.activeIndex === 4]
|
|
6118
6152
|
])
|
|
6119
6153
|
], 512), [
|
|
6120
|
-
[we, ((
|
|
6154
|
+
[we, ((Q = (P = i.tableData) == null ? void 0 : P.hours) == null ? void 0 : Q.length) > 0 && i.showTables]
|
|
6121
6155
|
]),
|
|
6122
6156
|
ye(s("div", cr, [
|
|
6123
6157
|
s("div", hr, [
|
|
6124
6158
|
s("div", dr, [
|
|
6125
6159
|
e[32] || (e[32] = s("div", null, "Wind", -1)),
|
|
6126
|
-
s("div", null,
|
|
6160
|
+
s("div", null, E((H = (_ = (S = i.currentHourData) == null ? void 0 : S.weather) == null ? void 0 : _.wind) == null ? void 0 : H.direction) + "/" + E(o.roundPrecision((W = (J = (Y = i.currentHourData) == null ? void 0 : Y.weather) == null ? void 0 : J.wind) == null ? void 0 : W.kts, 1)) + "kts/BF" + E((ue = (pe = (de = i.currentHourData) == null ? void 0 : de.weather) == null ? void 0 : pe.wind) == null ? void 0 : ue.scale) + "/" + E(o.roundPrecision((ie = (ge = (me = i.currentHourData) == null ? void 0 : me.weather) == null ? void 0 : ge.wind) == null ? void 0 : ie.gusts, 1)) + " kts", 1)
|
|
6127
6161
|
]),
|
|
6128
6162
|
s("div", pr, [
|
|
6129
6163
|
e[33] || (e[33] = s("div", null, "Sig wave", -1)),
|
|
6130
|
-
s("div", null,
|
|
6164
|
+
s("div", null, E((oe = (Ae = (ne = i.currentHourData) == null ? void 0 : ne.wave) == null ? void 0 : Ae.sig) == null ? void 0 : oe.direction) + "/" + E(o.roundPrecision((fe = (te = (N = i.currentHourData) == null ? void 0 : N.wave) == null ? void 0 : te.sig) == null ? void 0 : fe.height, 1)) + "m/" + E(o.roundPrecision((ce = (le = (se = i.currentHourData) == null ? void 0 : se.wave) == null ? void 0 : le.sig) == null ? void 0 : ce.period, 1)) + "s", 1)
|
|
6131
6165
|
])
|
|
6132
6166
|
]),
|
|
6133
6167
|
s("div", ur, [
|
|
6134
6168
|
s("div", mr, [
|
|
6135
6169
|
e[34] || (e[34] = s("div", null, "Wind wave", -1)),
|
|
6136
|
-
s("div", null,
|
|
6170
|
+
s("div", null, E((xe = (Le = (I = i.currentHourData) == null ? void 0 : I.wave) == null ? void 0 : Le.wd) == null ? void 0 : xe.direction) + "/" + E(o.roundPrecision((Ee = (Ie = (Be = i.currentHourData) == null ? void 0 : Be.wave) == null ? void 0 : Ie.wd) == null ? void 0 : Ee.height, 1)) + "m/" + E(o.roundPrecision((ke = (Pe = (De = i.currentHourData) == null ? void 0 : De.wave) == null ? void 0 : Pe.wd) == null ? void 0 : ke.period, 1)) + "s", 1)
|
|
6137
6171
|
]),
|
|
6138
6172
|
s("div", gr, [
|
|
6139
6173
|
e[35] || (e[35] = s("div", null, "Swell", -1)),
|
|
6140
|
-
s("div", null,
|
|
6174
|
+
s("div", null, E((Te = (ze = (Me = i.currentHourData) == null ? void 0 : Me.wave) == null ? void 0 : ze.swell) == null ? void 0 : Te.direction) + "/" + E(o.roundPrecision((_e = (Se = (Qe = i.currentHourData) == null ? void 0 : Qe.wave) == null ? void 0 : Se.swell) == null ? void 0 : _e.height, 1)) + "m/" + E(o.roundPrecision((Ne = (Oe = (He = i.currentHourData) == null ? void 0 : He.wave) == null ? void 0 : Oe.swell) == null ? void 0 : Ne.period, 1)) + "s", 1)
|
|
6141
6175
|
])
|
|
6142
6176
|
]),
|
|
6143
6177
|
s("div", Ar, [
|
|
6144
6178
|
s("div", fr, [
|
|
6145
6179
|
e[36] || (e[36] = s("div", null, "Current", -1)),
|
|
6146
|
-
s("div", null,
|
|
6180
|
+
s("div", null, E((Re = (je = i.currentHourData) == null ? void 0 : je.current) == null ? void 0 : Re.direction) + "/" + E(o.roundPrecision((V = (Fe = i.currentHourData) == null ? void 0 : Fe.current) == null ? void 0 : V.kts, 2)) + "kts", 1)
|
|
6147
6181
|
]),
|
|
6148
6182
|
s("div", yr, [
|
|
6149
6183
|
e[37] || (e[37] = s("div", null, "Sea level", -1)),
|
|
6150
|
-
s("div", null,
|
|
6184
|
+
s("div", null, E(o.roundPrecision((qe = i.currentHourData) == null ? void 0 : qe.height, 1)) + "m", 1)
|
|
6151
6185
|
])
|
|
6152
6186
|
]),
|
|
6153
6187
|
s("div", wr, [
|
|
6154
6188
|
s("div", br, [
|
|
6155
6189
|
e[38] || (e[38] = s("div", null, "Sea Temp", -1)),
|
|
6156
|
-
s("div", null,
|
|
6190
|
+
s("div", null, E(o.roundPrecision((Ve = i.currentHourData) == null ? void 0 : Ve.sst, 1)) + "°C", 1)
|
|
6157
6191
|
]),
|
|
6158
6192
|
s("div", vr, [
|
|
6159
6193
|
e[39] || (e[39] = s("div", null, "Visibility", -1)),
|
|
6160
|
-
s("div", null,
|
|
6194
|
+
s("div", null, E(o.roundPrecision(($e = (Ze = i.currentHourData) == null ? void 0 : Ze.weather) == null ? void 0 : $e.visibility, 1)) + "nm", 1)
|
|
6161
6195
|
])
|
|
6162
6196
|
]),
|
|
6163
6197
|
s("div", Lr, [
|
|
6164
6198
|
s("div", Cr, [
|
|
6165
6199
|
e[40] || (e[40] = s("div", null, "Temp", -1)),
|
|
6166
|
-
s("div", null,
|
|
6200
|
+
s("div", null, E(o.roundPrecision((tt = (et = i.currentHourData) == null ? void 0 : et.weather) == null ? void 0 : tt.temp, 1)) + "°C", 1)
|
|
6167
6201
|
]),
|
|
6168
6202
|
s("div", xr, [
|
|
6169
6203
|
e[41] || (e[41] = s("div", null, "Precip", -1)),
|
|
6170
|
-
s("div", null,
|
|
6204
|
+
s("div", null, E(o.roundPrecision((rt = (it = (at = i.currentHourData) == null ? void 0 : at.weather) == null ? void 0 : it.precip) == null ? void 0 : rt.sum3Hours, 1)) + "mm", 1)
|
|
6171
6205
|
])
|
|
6172
6206
|
])
|
|
6173
6207
|
], 512), [
|
|
6174
6208
|
[we, !i.showTables]
|
|
6175
6209
|
]),
|
|
6176
6210
|
s("div", {
|
|
6177
|
-
class:
|
|
6178
|
-
onClick: e[7] || (e[7] = (...
|
|
6211
|
+
class: G(["more", i.isDay ? "day" : "night"]),
|
|
6212
|
+
onClick: e[7] || (e[7] = (...C) => o.handleMeteoMore && o.handleMeteoMore(...C))
|
|
6179
6213
|
}, "More >>", 2)
|
|
6180
6214
|
], 2))
|
|
6181
6215
|
])
|
|
@@ -6183,7 +6217,7 @@ function Ir(t, e, a, r, i, o) {
|
|
|
6183
6217
|
[we, i.showMeteo]
|
|
6184
6218
|
]);
|
|
6185
6219
|
}
|
|
6186
|
-
const Er = /* @__PURE__ */
|
|
6220
|
+
const Er = /* @__PURE__ */ O(gi, [["render", Ir], ["__scopeId", "data-v-cdc6da70"]]), Dr = {
|
|
6187
6221
|
name: "IdmWarZone",
|
|
6188
6222
|
props: {
|
|
6189
6223
|
map: {
|
|
@@ -6276,7 +6310,7 @@ const Er = /* @__PURE__ */ S(gi, [["render", Ir], ["__scopeId", "data-v-cdc6da70
|
|
|
6276
6310
|
function Pr(t, e, a, r, i, o) {
|
|
6277
6311
|
return m(), g("div");
|
|
6278
6312
|
}
|
|
6279
|
-
const kr = /* @__PURE__ */
|
|
6313
|
+
const kr = /* @__PURE__ */ O(Dr, [["render", Pr]]), Mr = {
|
|
6280
6314
|
name: "IdmGmdssArea",
|
|
6281
6315
|
props: {
|
|
6282
6316
|
map: {
|
|
@@ -6399,7 +6433,7 @@ const kr = /* @__PURE__ */ S(Dr, [["render", Pr]]), Mr = {
|
|
|
6399
6433
|
function zr(t, e, a, r, i, o) {
|
|
6400
6434
|
return m(), g("div");
|
|
6401
6435
|
}
|
|
6402
|
-
const Tr = /* @__PURE__ */
|
|
6436
|
+
const Tr = /* @__PURE__ */ O(Mr, [["render", zr]]), Qr = {
|
|
6403
6437
|
name: "IdmEcaZone",
|
|
6404
6438
|
props: {
|
|
6405
6439
|
map: {
|
|
@@ -6490,7 +6524,7 @@ const Tr = /* @__PURE__ */ S(Mr, [["render", zr]]), Qr = {
|
|
|
6490
6524
|
function Sr(t, e, a, r, i, o) {
|
|
6491
6525
|
return m(), g("div");
|
|
6492
6526
|
}
|
|
6493
|
-
const _r = /* @__PURE__ */
|
|
6527
|
+
const _r = /* @__PURE__ */ O(Qr, [["render", Sr]]);
|
|
6494
6528
|
const Hr = {
|
|
6495
6529
|
name: "IdmAlertZone",
|
|
6496
6530
|
props: {
|
|
@@ -6637,7 +6671,7 @@ function jr(t, e, a, r, i, o) {
|
|
|
6637
6671
|
[we, i.showZone]
|
|
6638
6672
|
]);
|
|
6639
6673
|
}
|
|
6640
|
-
const Rr = /* @__PURE__ */
|
|
6674
|
+
const Rr = /* @__PURE__ */ O(Hr, [["render", jr]]);
|
|
6641
6675
|
const Fr = {
|
|
6642
6676
|
name: "IdmPort",
|
|
6643
6677
|
props: {
|
|
@@ -6667,12 +6701,12 @@ const Fr = {
|
|
|
6667
6701
|
computed: {
|
|
6668
6702
|
computeLat() {
|
|
6669
6703
|
return function(t) {
|
|
6670
|
-
return
|
|
6704
|
+
return q.lat2pretty(t, 4).pretty;
|
|
6671
6705
|
};
|
|
6672
6706
|
},
|
|
6673
6707
|
computeLng() {
|
|
6674
6708
|
return function(t) {
|
|
6675
|
-
return
|
|
6709
|
+
return q.lng2pretty(t, 4).pretty;
|
|
6676
6710
|
};
|
|
6677
6711
|
}
|
|
6678
6712
|
},
|
|
@@ -6749,19 +6783,19 @@ function qr(t, e, a, r, i, o) {
|
|
|
6749
6783
|
s("div", Wr, [
|
|
6750
6784
|
s("div", Ur, [
|
|
6751
6785
|
e[2] || (e[2] = s("label", null, "Name : ", -1)),
|
|
6752
|
-
s("span", null,
|
|
6786
|
+
s("span", null, E(i.form.name), 1)
|
|
6753
6787
|
]),
|
|
6754
6788
|
s("div", Yr, [
|
|
6755
6789
|
e[3] || (e[3] = s("label", null, "Position : ", -1)),
|
|
6756
|
-
s("span", null,
|
|
6790
|
+
s("span", null, E(o.computeLat(i.form.lat)) + ", " + E(o.computeLng(i.form.lng)), 1)
|
|
6757
6791
|
]),
|
|
6758
6792
|
s("div", Kr, [
|
|
6759
6793
|
e[4] || (e[4] = s("label", null, "LoCode : ", -1)),
|
|
6760
|
-
s("span", null,
|
|
6794
|
+
s("span", null, E(i.form.loCode || "-"), 1)
|
|
6761
6795
|
]),
|
|
6762
6796
|
s("div", Xr, [
|
|
6763
6797
|
e[5] || (e[5] = s("label", null, "Region : ", -1)),
|
|
6764
|
-
s("span", null,
|
|
6798
|
+
s("span", null, E(i.form.zoneName || "-"), 1)
|
|
6765
6799
|
]),
|
|
6766
6800
|
s("div", Jr, [
|
|
6767
6801
|
s("span", {
|
|
@@ -6773,7 +6807,7 @@ function qr(t, e, a, r, i, o) {
|
|
|
6773
6807
|
[we, i.showPort]
|
|
6774
6808
|
]);
|
|
6775
6809
|
}
|
|
6776
|
-
const Vr = /* @__PURE__ */
|
|
6810
|
+
const Vr = /* @__PURE__ */ O(Fr, [["render", qr], ["__scopeId", "data-v-2fc5fc5e"]]), Zr = {
|
|
6777
6811
|
name: "IdmLoadLine",
|
|
6778
6812
|
props: {
|
|
6779
6813
|
map: {
|
|
@@ -6846,7 +6880,7 @@ const Vr = /* @__PURE__ */ S(Fr, [["render", qr], ["__scopeId", "data-v-2fc5fc5e
|
|
|
6846
6880
|
function $r(t, e, a, r, i, o) {
|
|
6847
6881
|
return m(), g("div");
|
|
6848
6882
|
}
|
|
6849
|
-
const eo = /* @__PURE__ */
|
|
6883
|
+
const eo = /* @__PURE__ */ O(Zr, [["render", $r]]), to = {
|
|
6850
6884
|
name: "IdmTimezone",
|
|
6851
6885
|
props: {
|
|
6852
6886
|
map: {
|
|
@@ -7014,7 +7048,7 @@ const eo = /* @__PURE__ */ S(Zr, [["render", $r]]), to = {
|
|
|
7014
7048
|
function ao(t, e, a, r, i, o) {
|
|
7015
7049
|
return m(), g("div");
|
|
7016
7050
|
}
|
|
7017
|
-
const io = /* @__PURE__ */
|
|
7051
|
+
const io = /* @__PURE__ */ O(to, [["render", ao]]), ro = {
|
|
7018
7052
|
name: "IdmVoluntaryReportingArea",
|
|
7019
7053
|
props: {
|
|
7020
7054
|
map: {
|
|
@@ -7105,7 +7139,7 @@ const io = /* @__PURE__ */ S(to, [["render", ao]]), ro = {
|
|
|
7105
7139
|
function oo(t, e, a, r, i, o) {
|
|
7106
7140
|
return m(), g("div");
|
|
7107
7141
|
}
|
|
7108
|
-
const so = /* @__PURE__ */
|
|
7142
|
+
const so = /* @__PURE__ */ O(ro, [["render", oo]]), no = {
|
|
7109
7143
|
name: "IdmSpecialArea",
|
|
7110
7144
|
props: {
|
|
7111
7145
|
map: {
|
|
@@ -7135,7 +7169,7 @@ const so = /* @__PURE__ */ S(ro, [["render", oo]]), no = {
|
|
|
7135
7169
|
methods: {
|
|
7136
7170
|
handleRender() {
|
|
7137
7171
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((t) => {
|
|
7138
|
-
t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) =>
|
|
7172
|
+
t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) => q.convertToMonotonicLng2(e));
|
|
7139
7173
|
}), this.map.addSource(this.source, {
|
|
7140
7174
|
type: "geojson",
|
|
7141
7175
|
data: this.area
|
|
@@ -7198,7 +7232,7 @@ const so = /* @__PURE__ */ S(ro, [["render", oo]]), no = {
|
|
|
7198
7232
|
function lo(t, e, a, r, i, o) {
|
|
7199
7233
|
return m(), g("div");
|
|
7200
7234
|
}
|
|
7201
|
-
const co = /* @__PURE__ */
|
|
7235
|
+
const co = /* @__PURE__ */ O(no, [["render", lo]]), ho = {
|
|
7202
7236
|
name: "IdmTerminator",
|
|
7203
7237
|
props: {
|
|
7204
7238
|
map: {
|
|
@@ -7250,7 +7284,7 @@ const co = /* @__PURE__ */ S(no, [["render", lo]]), ho = {
|
|
|
7250
7284
|
function po(t, e, a, r, i, o) {
|
|
7251
7285
|
return m(), g("div");
|
|
7252
7286
|
}
|
|
7253
|
-
const uo = /* @__PURE__ */
|
|
7287
|
+
const uo = /* @__PURE__ */ O(ho, [["render", po]]);
|
|
7254
7288
|
const mo = {
|
|
7255
7289
|
name: "IdmLatLng",
|
|
7256
7290
|
props: {
|
|
@@ -7309,7 +7343,7 @@ const mo = {
|
|
|
7309
7343
|
this.show ? ((t = this.map) == null || t.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
7310
7344
|
},
|
|
7311
7345
|
handleMouseMove(t) {
|
|
7312
|
-
const e = t.lngLat, a =
|
|
7346
|
+
const e = t.lngLat, a = q.lng2pretty(e.lng, 2), r = q.lat2pretty(e.lat, 2);
|
|
7313
7347
|
this.lngLat = { lng: a, lat: r };
|
|
7314
7348
|
},
|
|
7315
7349
|
handleComputeLatLngs() {
|
|
@@ -7358,7 +7392,7 @@ const mo = {
|
|
|
7358
7392
|
handleZoomEnd() {
|
|
7359
7393
|
var e;
|
|
7360
7394
|
const t = this.handleComputeLatLngs();
|
|
7361
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
7395
|
+
(e = this.map) == null || e.getSource(this.source).setData(M.featureCollection(t));
|
|
7362
7396
|
},
|
|
7363
7397
|
handleRender() {
|
|
7364
7398
|
if (this.map) {
|
|
@@ -7411,14 +7445,14 @@ function go(t, e, a, r, i, o) {
|
|
|
7411
7445
|
return i.lngLat ? (m(), g("div", {
|
|
7412
7446
|
key: 0,
|
|
7413
7447
|
class: "lat-lng-tip",
|
|
7414
|
-
style:
|
|
7448
|
+
style: $({ right: i.right + "px", bottom: a.bottom })
|
|
7415
7449
|
}, [
|
|
7416
|
-
s("span", null,
|
|
7450
|
+
s("span", null, E(i.lngLat.lat.pretty), 1),
|
|
7417
7451
|
e[0] || (e[0] = s("span", null, ", ", -1)),
|
|
7418
|
-
s("span", null,
|
|
7419
|
-
], 4)) :
|
|
7452
|
+
s("span", null, E(i.lngLat.lng.pretty), 1)
|
|
7453
|
+
], 4)) : R("", !0);
|
|
7420
7454
|
}
|
|
7421
|
-
const ct = /* @__PURE__ */
|
|
7455
|
+
const ct = /* @__PURE__ */ O(mo, [["render", go], ["__scopeId", "data-v-ad66a24c"]]), Ao = {
|
|
7422
7456
|
name: "IdmMeasure",
|
|
7423
7457
|
props: {
|
|
7424
7458
|
map: {
|
|
@@ -7453,7 +7487,7 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7453
7487
|
else {
|
|
7454
7488
|
(t = this.map) == null || t.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (a = this.map) == null || a.off("dblclick", this.handleDblClick), this.map && (this.map.getCanvas().style.cursor = "grab");
|
|
7455
7489
|
let r = this.geojson.find((i) => !i.closed);
|
|
7456
|
-
r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r =
|
|
7490
|
+
r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r = M.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(r);
|
|
7457
7491
|
}
|
|
7458
7492
|
},
|
|
7459
7493
|
immediate: !0
|
|
@@ -7484,41 +7518,41 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7484
7518
|
}
|
|
7485
7519
|
},
|
|
7486
7520
|
handleDrag(t) {
|
|
7487
|
-
var a, r, i, o, l, c, h,
|
|
7521
|
+
var a, r, i, o, l, c, h, p, n, u;
|
|
7488
7522
|
const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
|
|
7489
7523
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
7490
|
-
const
|
|
7491
|
-
this.pointMarkers[
|
|
7492
|
-
var
|
|
7493
|
-
return ((
|
|
7524
|
+
const b = this.geojson.filter((D) => D.id === e.split("-")[0])[0];
|
|
7525
|
+
this.pointMarkers[b.id].filter((D) => {
|
|
7526
|
+
var L;
|
|
7527
|
+
return ((L = D._element) == null ? void 0 : L.id) === e;
|
|
7494
7528
|
})[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
|
|
7495
|
-
let
|
|
7496
|
-
|
|
7497
|
-
if (
|
|
7498
|
-
|
|
7529
|
+
let y;
|
|
7530
|
+
b.features.forEach((D, L) => {
|
|
7531
|
+
if (D.geometry.type === "Point" && D.properties.id == e.split("-")[1]) {
|
|
7532
|
+
y = L;
|
|
7499
7533
|
return;
|
|
7500
7534
|
}
|
|
7501
7535
|
});
|
|
7502
|
-
const
|
|
7536
|
+
const x = b.features.filter((D) => D.geometry.type === "Point");
|
|
7503
7537
|
this.handleTmpPointUpdate(
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
{ lng: (
|
|
7507
|
-
|
|
7538
|
+
b,
|
|
7539
|
+
x[y - 1],
|
|
7540
|
+
{ lng: (p = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lng, lat: (u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lat, properties: x[y].properties },
|
|
7541
|
+
y === x.length - 1 ? void 0 : x[y + 1]
|
|
7508
7542
|
);
|
|
7509
7543
|
}
|
|
7510
7544
|
},
|
|
7511
7545
|
handleDragEnd(t) {
|
|
7512
|
-
var a, r, i, o, l, c, h,
|
|
7546
|
+
var a, r, i, o, l, c, h, p, n, u;
|
|
7513
7547
|
const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
|
|
7514
7548
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
7515
|
-
const
|
|
7516
|
-
this.pointMarkers[
|
|
7517
|
-
var
|
|
7518
|
-
return ((
|
|
7549
|
+
const b = this.geojson.filter((x) => x.id === e.split("-")[0])[0];
|
|
7550
|
+
this.pointMarkers[b.id].filter((x) => {
|
|
7551
|
+
var D;
|
|
7552
|
+
return ((D = x._element) == null ? void 0 : D.id) === e;
|
|
7519
7553
|
})[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
|
|
7520
|
-
const
|
|
7521
|
-
|
|
7554
|
+
const y = b.features.filter((x) => x.geometry.type === "Point" && x.properties.id == e.split("-")[1])[0];
|
|
7555
|
+
y.geometry.coordinates = [(p = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lng, (u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lat], b.features = b.features.filter((x) => x.geometry.type === "Point"), this.handlePointUpdate(b);
|
|
7522
7556
|
}
|
|
7523
7557
|
},
|
|
7524
7558
|
handleContextmenu(t) {
|
|
@@ -7527,9 +7561,9 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7527
7561
|
const e = (o = (i = (r = t.originalEvent) == null ? void 0 : r.target) == null ? void 0 : i.parentElement) == null ? void 0 : o.id;
|
|
7528
7562
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
7529
7563
|
const c = this.geojson.filter((h) => h.id === e.split("-")[0])[0].features.filter((h) => h.geometry.type === "Point");
|
|
7530
|
-
if (c.length > 2 && c.filter((
|
|
7531
|
-
const
|
|
7532
|
-
|
|
7564
|
+
if (c.length > 2 && c.filter((p) => p.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
7565
|
+
const p = document.createElement("div");
|
|
7566
|
+
p.className = "point-contextmenu-marker", p.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ve.Marker(p).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
7533
7567
|
}
|
|
7534
7568
|
}
|
|
7535
7569
|
},
|
|
@@ -7538,15 +7572,15 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7538
7572
|
(a = this.contextmenu) == null || a.remove();
|
|
7539
7573
|
const e = t.originalEvent.target.className;
|
|
7540
7574
|
if (e === "marker-close") {
|
|
7541
|
-
const h = (i = (r = t.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id,
|
|
7542
|
-
|
|
7575
|
+
const h = (i = (r = t.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, p = this.geojson.filter((n) => n.id === h)[0];
|
|
7576
|
+
p && this.handleClear(p, !0), this.geojson = this.geojson.filter((n) => n.id !== h), !this.show && !((o = this.geojson) != null && o.some((n) => n.closed)) && this.handleUnbind();
|
|
7543
7577
|
} else if (e === "del-point") {
|
|
7544
|
-
const h = (c = (l = t.originalEvent.target.id) == null ? void 0 : l.replace("del-", "")) == null ? void 0 : c.split("-"),
|
|
7545
|
-
|
|
7578
|
+
const h = (c = (l = t.originalEvent.target.id) == null ? void 0 : l.replace("del-", "")) == null ? void 0 : c.split("-"), p = this.geojson.filter((n) => n.id === h[0])[0];
|
|
7579
|
+
p.features = p.features.filter((n) => n.geometry.type === "Point" && n.properties.id !== h[1]), this.handlePointUpdate(p);
|
|
7546
7580
|
} else if (e !== "marker-label" && this.show) {
|
|
7547
7581
|
let h = this.geojson.at(-1);
|
|
7548
|
-
h || (h =
|
|
7549
|
-
const
|
|
7582
|
+
h || (h = M.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(h)), h.features = h.features.filter((n) => n.geometry.type === "Point");
|
|
7583
|
+
const p = M.feature(
|
|
7550
7584
|
{
|
|
7551
7585
|
type: "Point",
|
|
7552
7586
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -7556,7 +7590,7 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7556
7590
|
mode: this.navigation
|
|
7557
7591
|
}
|
|
7558
7592
|
);
|
|
7559
|
-
h.features.push(
|
|
7593
|
+
h.features.push(p), this.handlePointUpdate(h);
|
|
7560
7594
|
}
|
|
7561
7595
|
},
|
|
7562
7596
|
handlePointUpdate(t) {
|
|
@@ -7565,35 +7599,35 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7565
7599
|
let a = 0;
|
|
7566
7600
|
const r = [];
|
|
7567
7601
|
for (let i = 1; i < e.length; i++) {
|
|
7568
|
-
const o = e[i - 1], l = e[i], c = o.properties, h = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] },
|
|
7569
|
-
a =
|
|
7570
|
-
let
|
|
7571
|
-
c.mode === "RL" ?
|
|
7572
|
-
const
|
|
7573
|
-
|
|
7602
|
+
const o = e[i - 1], l = e[i], c = o.properties, h = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, p = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, n = be.calculateDistance(h, p, c.mode === "RL", 2), u = be.calculateBearing(h, p, c.mode === "RL", 2);
|
|
7603
|
+
a = q.roundPrecision(a + n, 2);
|
|
7604
|
+
let b;
|
|
7605
|
+
c.mode === "RL" ? b = q.convertToMonotonicLng([h, p]) : b = q.convertToMonotonicLng(be.interpolateCoordinates(h, p, 200));
|
|
7606
|
+
const v = M.lineString(b.map((y) => [y.lng, y.lat]));
|
|
7607
|
+
v.properties.dist = n, v.properties.bearing = u, v.properties.total = a, r.push(v);
|
|
7574
7608
|
}
|
|
7575
7609
|
e.push(...r), t.total = a;
|
|
7576
7610
|
}
|
|
7577
7611
|
return this.handleRender(t), t;
|
|
7578
7612
|
},
|
|
7579
7613
|
handleTmpPointUpdate(t, e, a, r) {
|
|
7580
|
-
const i =
|
|
7614
|
+
const i = M.featureCollection([]);
|
|
7581
7615
|
let o, l;
|
|
7582
7616
|
if (e) {
|
|
7583
|
-
const h = e.properties,
|
|
7584
|
-
o = be.calculateDistance(
|
|
7585
|
-
let
|
|
7586
|
-
h.mode === "RL" ?
|
|
7587
|
-
const
|
|
7588
|
-
|
|
7617
|
+
const h = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, n = { lng: a.lng, lat: a.lat };
|
|
7618
|
+
o = be.calculateDistance(p, n, h.mode === "RL", 2), l = be.calculateBearing(p, n, h.mode === "RL", 2);
|
|
7619
|
+
let u;
|
|
7620
|
+
h.mode === "RL" ? u = q.convertToMonotonicLng([p, n]) : u = q.convertToMonotonicLng(be.interpolateCoordinates(p, n, 200));
|
|
7621
|
+
const b = M.lineString(u.map((v) => [v.lng, v.lat]));
|
|
7622
|
+
b.properties.dist = o, b.properties.bearing = l, i.features.push(b);
|
|
7589
7623
|
}
|
|
7590
7624
|
if (r) {
|
|
7591
|
-
const h = a.properties,
|
|
7592
|
-
o = be.calculateDistance(
|
|
7593
|
-
let
|
|
7594
|
-
h.mode === "RL" ?
|
|
7595
|
-
const
|
|
7596
|
-
|
|
7625
|
+
const h = a.properties, p = a, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
7626
|
+
o = be.calculateDistance(p, n, h.mode === "RL", 2), l = be.calculateBearing(p, n, h.mode === "RL", 2);
|
|
7627
|
+
let u;
|
|
7628
|
+
h.mode === "RL" ? u = q.convertToMonotonicLng([p, n]) : u = q.convertToMonotonicLng(be.interpolateCoordinates(p, n, 200));
|
|
7629
|
+
const b = M.lineString(u.map((v) => [v.lng, v.lat]));
|
|
7630
|
+
b.properties.dist = o, b.properties.bearing = l, i.features.push(b);
|
|
7597
7631
|
}
|
|
7598
7632
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
7599
7633
|
type: "geojson",
|
|
@@ -7633,7 +7667,7 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7633
7667
|
}
|
|
7634
7668
|
});
|
|
7635
7669
|
let c;
|
|
7636
|
-
if (r ? c = '<div class="marker-label">Drag and drop</div>' : c = `<div class="marker-label">Total distance: <b>${
|
|
7670
|
+
if (r ? c = '<div class="marker-label">Drag and drop</div>' : c = `<div class="marker-label">Total distance: <b>${q.roundPrecision((t.total ?? 0) + o, 2)}</b>nm, bearing: <b>${l}</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)
|
|
7637
7671
|
this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([a.lng, a.lat]);
|
|
7638
7672
|
else {
|
|
7639
7673
|
const h = document.createElement("div");
|
|
@@ -7643,14 +7677,14 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7643
7677
|
handleMove(t) {
|
|
7644
7678
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
7645
7679
|
let e = this.geojson.at(-1);
|
|
7646
|
-
e || (e =
|
|
7680
|
+
e || (e = M.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
7647
7681
|
const a = e.features.filter((r) => r.geometry.type === "Point");
|
|
7648
7682
|
a != null && a.length && this.handleTmpPointUpdate(e, a.at(-1), { lng: t.lngLat.lng, lat: t.lngLat.lat });
|
|
7649
7683
|
},
|
|
7650
7684
|
handleDblClick(t) {
|
|
7651
7685
|
t.preventDefault();
|
|
7652
7686
|
let e = this.geojson.at(-1);
|
|
7653
|
-
e.closed = !0, this.handleRender(e), e =
|
|
7687
|
+
e.closed = !0, this.handleRender(e), e = M.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
|
|
7654
7688
|
},
|
|
7655
7689
|
handleRender(t) {
|
|
7656
7690
|
var e;
|
|
@@ -7699,24 +7733,24 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7699
7733
|
h.on("drag", this.handleDrag), h.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(h) : this.pointMarkers[t.id] = [h];
|
|
7700
7734
|
}
|
|
7701
7735
|
if (t.closed) {
|
|
7702
|
-
const l = o.at(-1), h = t.features.filter((n) => n.geometry.type === "LineString").at(-1),
|
|
7703
|
-
|
|
7736
|
+
const l = o.at(-1), h = t.features.filter((n) => n.geometry.type === "LineString").at(-1), p = document.createElement("div");
|
|
7737
|
+
p.className = "point-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">Tol: ${h.properties.total}nm</div>`, this.closeMarkers[t.id] = new ve.Marker(p).setOffset([60, 0]).setLngLat(l.geometry.coordinates).addTo(this.map);
|
|
7704
7738
|
}
|
|
7705
7739
|
}
|
|
7706
7740
|
},
|
|
7707
7741
|
handleClear(t, e = !0) {
|
|
7708
|
-
var o, l, c, h,
|
|
7742
|
+
var o, l, c, h, p, n, u, b, v;
|
|
7709
7743
|
const a = `${t.id}-${this.source}`, r = `${t.id}-${this.layer}`, i = `${t.id}-${this.labelLayer}`;
|
|
7710
|
-
(o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (
|
|
7711
|
-
|
|
7712
|
-
}), this.pointMarkers[t.id] = [], (
|
|
7744
|
+
(o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (p = this.closeMarkers[t.id]) == null || p.remove(), this.closeMarkers[t.id] = void 0, (n = this.pointMarkers[t.id]) == null || n.forEach((y) => {
|
|
7745
|
+
y == null || y.remove();
|
|
7746
|
+
}), this.pointMarkers[t.id] = [], (u = this.tipMarker) == null || u.remove(), this.tipMarker = void 0, e && ((b = this.map) != null && b.getSource(a)) && this.map.removeSource(a), e && ((v = this.map) != null && v.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
7713
7747
|
}
|
|
7714
7748
|
}
|
|
7715
7749
|
};
|
|
7716
7750
|
function fo(t, e, a, r, i, o) {
|
|
7717
7751
|
return m(), g("div");
|
|
7718
7752
|
}
|
|
7719
|
-
const yo = /* @__PURE__ */
|
|
7753
|
+
const yo = /* @__PURE__ */ O(Ao, [["render", fo]]);
|
|
7720
7754
|
const wo = {
|
|
7721
7755
|
name: "IdmENC",
|
|
7722
7756
|
props: {
|
|
@@ -7771,22 +7805,22 @@ const wo = {
|
|
|
7771
7805
|
methods: {}
|
|
7772
7806
|
}, bo = { key: 0 }, vo = { class: "bar-item" };
|
|
7773
7807
|
function Lo(t, e, a, r, i, o) {
|
|
7774
|
-
const l =
|
|
7808
|
+
const l = T("ElTooltip");
|
|
7775
7809
|
return a.enabled && a.permission & i.helper.LEVEL.Supper ? (m(), g("div", bo, [
|
|
7776
7810
|
s("div", {
|
|
7777
7811
|
class: "menu-bar-box",
|
|
7778
|
-
style:
|
|
7812
|
+
style: $({ position: "absolute", right: i.right + "px", bottom: a.bottom })
|
|
7779
7813
|
}, [
|
|
7780
7814
|
s("div", vo, [
|
|
7781
|
-
|
|
7815
|
+
z(l, {
|
|
7782
7816
|
placement: "left",
|
|
7783
7817
|
effect: "light",
|
|
7784
7818
|
content: "Hifleet",
|
|
7785
7819
|
"show-after": 1e3
|
|
7786
7820
|
}, {
|
|
7787
|
-
default:
|
|
7821
|
+
default: re(() => [
|
|
7788
7822
|
s("div", {
|
|
7789
|
-
class:
|
|
7823
|
+
class: G(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
7790
7824
|
onClick: e[0] || (e[0] = (c) => i.vendor = "hi")
|
|
7791
7825
|
}, e[2] || (e[2] = [
|
|
7792
7826
|
s("span", { class: "iconfont" }, "HI", -1)
|
|
@@ -7794,15 +7828,15 @@ function Lo(t, e, a, r, i, o) {
|
|
|
7794
7828
|
]),
|
|
7795
7829
|
_: 1
|
|
7796
7830
|
}),
|
|
7797
|
-
|
|
7831
|
+
z(l, {
|
|
7798
7832
|
placement: "left",
|
|
7799
7833
|
effect: "light",
|
|
7800
7834
|
content: "I4insight",
|
|
7801
7835
|
"show-after": 1e3
|
|
7802
7836
|
}, {
|
|
7803
|
-
default:
|
|
7837
|
+
default: re(() => [
|
|
7804
7838
|
s("div", {
|
|
7805
|
-
class:
|
|
7839
|
+
class: G(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
7806
7840
|
onClick: e[1] || (e[1] = (c) => i.vendor = "i4")
|
|
7807
7841
|
}, e[3] || (e[3] = [
|
|
7808
7842
|
s("span", { class: "iconfont" }, "I4", -1)
|
|
@@ -7812,9 +7846,9 @@ function Lo(t, e, a, r, i, o) {
|
|
|
7812
7846
|
})
|
|
7813
7847
|
])
|
|
7814
7848
|
], 4)
|
|
7815
|
-
])) :
|
|
7849
|
+
])) : R("", !0);
|
|
7816
7850
|
}
|
|
7817
|
-
const Co = /* @__PURE__ */
|
|
7851
|
+
const Co = /* @__PURE__ */ O(wo, [["render", Lo], ["__scopeId", "data-v-7301123d"]]), xo = {
|
|
7818
7852
|
name: "IdmWorld12nm",
|
|
7819
7853
|
props: {
|
|
7820
7854
|
map: {
|
|
@@ -7873,7 +7907,7 @@ const Co = /* @__PURE__ */ S(wo, [["render", Lo], ["__scopeId", "data-v-7301123d
|
|
|
7873
7907
|
function Bo(t, e, a, r, i, o) {
|
|
7874
7908
|
return null;
|
|
7875
7909
|
}
|
|
7876
|
-
const Io = /* @__PURE__ */
|
|
7910
|
+
const Io = /* @__PURE__ */ O(xo, [["render", Bo]]);
|
|
7877
7911
|
const Eo = {
|
|
7878
7912
|
name: "IdmWorldMarine",
|
|
7879
7913
|
props: {
|
|
@@ -7914,7 +7948,7 @@ const Eo = {
|
|
|
7914
7948
|
function Do(t, e, a, r, i, o) {
|
|
7915
7949
|
return null;
|
|
7916
7950
|
}
|
|
7917
|
-
const Po = /* @__PURE__ */
|
|
7951
|
+
const Po = /* @__PURE__ */ O(Eo, [["render", Do]]), ko = {
|
|
7918
7952
|
name: "IdmChinaRoute",
|
|
7919
7953
|
props: {
|
|
7920
7954
|
map: {
|
|
@@ -7955,7 +7989,7 @@ const Po = /* @__PURE__ */ S(Eo, [["render", Do]]), ko = {
|
|
|
7955
7989
|
function Mo(t, e, a, r, i, o) {
|
|
7956
7990
|
return null;
|
|
7957
7991
|
}
|
|
7958
|
-
const zo = /* @__PURE__ */
|
|
7992
|
+
const zo = /* @__PURE__ */ O(ko, [["render", Mo]]);
|
|
7959
7993
|
const To = {
|
|
7960
7994
|
name: "IdmGLV2",
|
|
7961
7995
|
components: {
|
|
@@ -8049,7 +8083,7 @@ const To = {
|
|
|
8049
8083
|
watch: {
|
|
8050
8084
|
ts: {
|
|
8051
8085
|
handler(t, e) {
|
|
8052
|
-
t && e &&
|
|
8086
|
+
t && e && X(t).utc().format("yyyy-MM-DD HH") !== X(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
8053
8087
|
this.handleDateChange({ tropicals: !1 });
|
|
8054
8088
|
});
|
|
8055
8089
|
},
|
|
@@ -8063,17 +8097,17 @@ const To = {
|
|
|
8063
8097
|
},
|
|
8064
8098
|
enc: {
|
|
8065
8099
|
handler(t, e) {
|
|
8066
|
-
var a, r, i, o, l, c, h,
|
|
8067
|
-
t ? ((r = (a = this.map) == null ? void 0 : a.getLayer(t)) == null || r.setLayoutProperty("visibility", "visible"), (o = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || o.setLayoutProperty("visibility", "none")) : ((c = (l = this.map) == null ? void 0 : l.getLayer("i4")) == null || c.setLayoutProperty("visibility", "none"), (
|
|
8100
|
+
var a, r, i, o, l, c, h, p;
|
|
8101
|
+
t ? ((r = (a = this.map) == null ? void 0 : a.getLayer(t)) == null || r.setLayoutProperty("visibility", "visible"), (o = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || o.setLayoutProperty("visibility", "none")) : ((c = (l = this.map) == null ? void 0 : l.getLayer("i4")) == null || c.setLayoutProperty("visibility", "none"), (p = (h = this.map) == null ? void 0 : h.getLayer("hi")) == null || p.setLayoutProperty("visibility", "none"));
|
|
8068
8102
|
}
|
|
8069
8103
|
},
|
|
8070
8104
|
activeWeatherLayers: {
|
|
8071
8105
|
handler() {
|
|
8072
|
-
var a, r, i, o, l, c, h,
|
|
8106
|
+
var a, r, i, o, l, c, h, p, n, u, b, v, y, x, D, L, A;
|
|
8073
8107
|
if (!this.map)
|
|
8074
8108
|
return !1;
|
|
8075
|
-
const t = this.activeWeatherLayers.some((
|
|
8076
|
-
this.activeWeatherLayers.length > 0 ? (t ? (r = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "none") : (o = (i = this.map) == null ? void 0 : i.getLayer(this.enc)) == null || o.setLayoutProperty("visibility", "visible"), (c = (l = this.map) == null ? void 0 : l.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || c.setLayoutProperty("visibility", "visible"), (
|
|
8109
|
+
const t = this.activeWeatherLayers.some((f) => f.key === "wind" && f.particle === !0 || f.key === "current" && f.particle === !0 || f.key === "ice-thickness" || f.key === "ice-cover" || f.key === "temp" || f.key === "water-temp"), e = this.activeWeatherLayers.some((f) => f.key === "visibility" || f.key === "precip3h");
|
|
8110
|
+
this.activeWeatherLayers.length > 0 ? (t ? (r = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "none") : (o = (i = this.map) == null ? void 0 : i.getLayer(this.enc)) == null || o.setLayoutProperty("visibility", "visible"), (c = (l = this.map) == null ? void 0 : l.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || c.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((b = this.map) == null || b.moveLayer((u = this.viewport) == null ? void 0 : u.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((y = this.map) == null || y.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (v = this.viewport) == null ? void 0 : v.rampColorLayer))) : ((D = (x = this.map) == null ? void 0 : x.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || D.setLayoutProperty("visibility", "none"), (A = (L = this.map) == null ? void 0 : L.getLayer(this.enc)) == null || A.setLayoutProperty("visibility", "visible")), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
|
|
8077
8111
|
},
|
|
8078
8112
|
immediate: !0
|
|
8079
8113
|
},
|
|
@@ -8125,87 +8159,87 @@ const To = {
|
|
|
8125
8159
|
},
|
|
8126
8160
|
methods: {
|
|
8127
8161
|
async fetchWeatherLayers(t = { tropicals: !1 }) {
|
|
8128
|
-
var i, o, l, c, h,
|
|
8162
|
+
var i, o, l, c, h, p, n, u, b;
|
|
8129
8163
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
8130
8164
|
let a = 0, r = 0;
|
|
8131
8165
|
if (this.map) {
|
|
8132
|
-
const
|
|
8166
|
+
const v = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, y = (o = this.map) == null ? void 0 : o.getBounds(), x = `${y._sw.lng},${y._sw.lat},${y._ne.lng},${y._ne.lat}`;
|
|
8133
8167
|
if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
|
|
8134
|
-
const
|
|
8135
|
-
var
|
|
8136
|
-
return ((
|
|
8168
|
+
const D = Ke.WEATHER_LAYERS.find((L) => {
|
|
8169
|
+
var A;
|
|
8170
|
+
return ((A = L.peer) == null ? void 0 : A.weight) === this.particleFactor.weight;
|
|
8137
8171
|
});
|
|
8138
|
-
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight &
|
|
8172
|
+
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & D.weight ? this.weatherWeight : this.weatherWeight + D.weight : this.weatherWeight = this.weatherWeight & D.weight ? this.weatherWeight - D.weight : this.weatherWeight;
|
|
8139
8173
|
}
|
|
8140
8174
|
if (this.weatherWeight > 0) {
|
|
8141
|
-
let
|
|
8142
|
-
if (t.tropicals || this.weatherWeight & 256 && (
|
|
8143
|
-
const
|
|
8175
|
+
let D = this.weatherWeight, L;
|
|
8176
|
+
if (t.tropicals || this.weatherWeight & 256 && (L = this.weatherLayers.tropicals, L && (D -= 256, L.version = Math.random() + 1)), D > 0) {
|
|
8177
|
+
const A = await he.get(`${this.gateway}/api/arc/weather/layers2/links?l=${D}&v=${this.source}&z=${v}&bbox=${x}&t=${this.ts}`, {
|
|
8144
8178
|
headers: {
|
|
8145
8179
|
Authorization: this.token || this.defaultMeteoToken
|
|
8146
8180
|
}
|
|
8147
8181
|
});
|
|
8148
|
-
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", r, ", total: ", a += r), ((c =
|
|
8149
|
-
const
|
|
8150
|
-
for (const
|
|
8151
|
-
|
|
8152
|
-
|
|
8182
|
+
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", r, ", total: ", a += r), ((c = A == null ? void 0 : A.data) == null ? void 0 : c.code) === 0) {
|
|
8183
|
+
const f = (h = A == null ? void 0 : A.data) == null ? void 0 : h.data, w = [];
|
|
8184
|
+
for (const d in f)
|
|
8185
|
+
d === "ice-edge" && (f[d] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), d !== "tropicals" && w.push(
|
|
8186
|
+
he.get(f[d], {
|
|
8153
8187
|
headers: {
|
|
8154
8188
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8155
|
-
key:
|
|
8189
|
+
key: d
|
|
8156
8190
|
},
|
|
8157
|
-
responseType: /\.(jpg|png)$/.test(
|
|
8158
|
-
}).catch((
|
|
8159
|
-
console.log(`[${
|
|
8191
|
+
responseType: /\.(jpg|png)$/.test(f[d]) ? "blob" : "json"
|
|
8192
|
+
}).catch((P) => {
|
|
8193
|
+
console.log(`[${d}] fetch layer error: ${P}`);
|
|
8160
8194
|
})
|
|
8161
8195
|
);
|
|
8162
|
-
const B = await Promise.all(
|
|
8163
|
-
this.weatherLayers = {}, B.map((
|
|
8164
|
-
var
|
|
8165
|
-
const
|
|
8166
|
-
|
|
8167
|
-
raw:
|
|
8168
|
-
type: ((
|
|
8169
|
-
etime:
|
|
8196
|
+
const B = await Promise.all(w);
|
|
8197
|
+
this.weatherLayers = {}, B.map((d) => {
|
|
8198
|
+
var S, _, H, Y;
|
|
8199
|
+
const P = ((S = d == null ? void 0 : d.data) == null ? void 0 : S.data) || (d == null ? void 0 : d.data), Q = (H = (_ = d == null ? void 0 : d.config) == null ? void 0 : _.headers) == null ? void 0 : H.key;
|
|
8200
|
+
Q && P && (this.weatherLayers[Q] = {
|
|
8201
|
+
raw: P,
|
|
8202
|
+
type: ((Y = d == null ? void 0 : d.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
|
|
8203
|
+
etime: A.data.etime
|
|
8170
8204
|
});
|
|
8171
|
-
}),
|
|
8205
|
+
}), f.tropicals && he.get(f.tropicals, {
|
|
8172
8206
|
headers: {
|
|
8173
8207
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8174
8208
|
key: "tropicals"
|
|
8175
8209
|
}
|
|
8176
|
-
}).then((
|
|
8177
|
-
var
|
|
8178
|
-
const
|
|
8179
|
-
this.weatherLayers[
|
|
8180
|
-
data:
|
|
8210
|
+
}).then((d) => {
|
|
8211
|
+
var S, _, H;
|
|
8212
|
+
const P = nt.convert2Geojson(((S = d == null ? void 0 : d.data) == null ? void 0 : S.data) || (d == null ? void 0 : d.data)), Q = (H = (_ = d == null ? void 0 : d.config) == null ? void 0 : _.headers) == null ? void 0 : H.key;
|
|
8213
|
+
this.weatherLayers[Q] = {
|
|
8214
|
+
data: P,
|
|
8181
8215
|
active: !0,
|
|
8182
8216
|
cached: !1,
|
|
8183
8217
|
type: "json",
|
|
8184
|
-
etime:
|
|
8218
|
+
etime: A.data.etime,
|
|
8185
8219
|
version: Math.random() + 1
|
|
8186
8220
|
};
|
|
8187
8221
|
});
|
|
8188
8222
|
}
|
|
8189
8223
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather layers elapsed: ", r, ", total: ", a += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
8190
|
-
const
|
|
8224
|
+
const f = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, w = (n = this.weatherLayers["swell-height"]) == null ? void 0 : n.raw;
|
|
8191
8225
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8192
8226
|
type: "json",
|
|
8193
|
-
direction:
|
|
8194
|
-
height: { raw:
|
|
8195
|
-
etime:
|
|
8227
|
+
direction: f,
|
|
8228
|
+
height: { raw: w },
|
|
8229
|
+
etime: A.data.etime
|
|
8196
8230
|
};
|
|
8197
8231
|
}
|
|
8198
8232
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8199
|
-
const
|
|
8233
|
+
const f = (u = this.weatherLayers["current-direction"]) == null ? void 0 : u.raw, w = (b = this.weatherLayers["current-speed"]) == null ? void 0 : b.raw;
|
|
8200
8234
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8201
8235
|
type: "json",
|
|
8202
|
-
direction:
|
|
8203
|
-
speed: { raw:
|
|
8204
|
-
etime:
|
|
8236
|
+
direction: f,
|
|
8237
|
+
speed: { raw: w },
|
|
8238
|
+
etime: A.data.etime
|
|
8205
8239
|
};
|
|
8206
8240
|
}
|
|
8207
8241
|
}
|
|
8208
|
-
|
|
8242
|
+
L && (L.etime = this.ts, L.cached = !0, this.weatherLayers.tropicals = L);
|
|
8209
8243
|
}
|
|
8210
8244
|
this.handleWeatherLayerToggle(), this.handleDrawWeather4Json();
|
|
8211
8245
|
}
|
|
@@ -8216,58 +8250,58 @@ const To = {
|
|
|
8216
8250
|
if (this.map) {
|
|
8217
8251
|
let o = this.otherWeight;
|
|
8218
8252
|
if (o) {
|
|
8219
|
-
let l = !1, c = !1, h = !1,
|
|
8220
|
-
if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, l = !0), this.otherWeight & 8192 && (o = o - 8192, c = !0), this.otherWeight & 16384 && (o = o - 16384, h = !0), this.otherWeight & 32768 && (o = o - 32768,
|
|
8253
|
+
let l = !1, c = !1, h = !1, p = !1;
|
|
8254
|
+
if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, l = !0), this.otherWeight & 8192 && (o = o - 8192, c = !0), this.otherWeight & 16384 && (o = o - 16384, h = !0), this.otherWeight & 32768 && (o = o - 32768, p = !0), o) {
|
|
8221
8255
|
if (t.all) {
|
|
8222
|
-
const n = await
|
|
8256
|
+
const n = await he.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
|
|
8223
8257
|
headers: {
|
|
8224
8258
|
Authorization: this.token || this.defaultMeteoToken
|
|
8225
8259
|
}
|
|
8226
8260
|
});
|
|
8227
8261
|
if (((e = n == null ? void 0 : n.data) == null ? void 0 : e.code) === 0) {
|
|
8228
|
-
const
|
|
8229
|
-
for (const
|
|
8230
|
-
|
|
8231
|
-
|
|
8262
|
+
const u = (a = n == null ? void 0 : n.data) == null ? void 0 : a.data, b = [];
|
|
8263
|
+
for (const y in u)
|
|
8264
|
+
b.push(
|
|
8265
|
+
he.get(u[y], {
|
|
8232
8266
|
headers: {
|
|
8233
8267
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8234
|
-
key:
|
|
8268
|
+
key: y
|
|
8235
8269
|
}
|
|
8236
8270
|
})
|
|
8237
8271
|
);
|
|
8238
|
-
const
|
|
8239
|
-
this.otherLayers = { enc: l, world12nm: c, worldMarine: h, chinaRoute:
|
|
8240
|
-
var
|
|
8241
|
-
const
|
|
8242
|
-
this.otherLayers[
|
|
8272
|
+
const v = await Promise.all(b);
|
|
8273
|
+
this.otherLayers = { enc: l, world12nm: c, worldMarine: h, chinaRoute: p }, v.map((y) => {
|
|
8274
|
+
var L, A, f;
|
|
8275
|
+
const x = ((L = y == null ? void 0 : y.data) == null ? void 0 : L.data) || (y == null ? void 0 : y.data), D = (f = (A = y == null ? void 0 : y.config) == null ? void 0 : A.headers) == null ? void 0 : f.key;
|
|
8276
|
+
this.otherLayers[D] = x;
|
|
8243
8277
|
});
|
|
8244
8278
|
}
|
|
8245
8279
|
} else if (t.dayNight && o & 1024) {
|
|
8246
|
-
const n = await
|
|
8280
|
+
const n = await he.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
8247
8281
|
headers: {
|
|
8248
8282
|
Authorization: this.token || this.defaultMeteoToken
|
|
8249
8283
|
}
|
|
8250
8284
|
});
|
|
8251
8285
|
if (((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
|
|
8252
|
-
const
|
|
8253
|
-
for (const
|
|
8254
|
-
|
|
8255
|
-
|
|
8286
|
+
const u = (i = n == null ? void 0 : n.data) == null ? void 0 : i.data, b = [];
|
|
8287
|
+
for (const y in u)
|
|
8288
|
+
b.push(
|
|
8289
|
+
he.get(u[y], {
|
|
8256
8290
|
headers: {
|
|
8257
8291
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8258
|
-
key:
|
|
8292
|
+
key: y
|
|
8259
8293
|
}
|
|
8260
8294
|
})
|
|
8261
8295
|
);
|
|
8262
|
-
(await Promise.all(
|
|
8263
|
-
var
|
|
8264
|
-
const
|
|
8265
|
-
this.otherLayers[
|
|
8296
|
+
(await Promise.all(b)).map((y) => {
|
|
8297
|
+
var L, A, f;
|
|
8298
|
+
const x = ((L = y == null ? void 0 : y.data) == null ? void 0 : L.data) || (y == null ? void 0 : y.data), D = (f = (A = y == null ? void 0 : y.config) == null ? void 0 : A.headers) == null ? void 0 : f.key;
|
|
8299
|
+
this.otherLayers[D] = x;
|
|
8266
8300
|
});
|
|
8267
8301
|
}
|
|
8268
8302
|
}
|
|
8269
8303
|
} else
|
|
8270
|
-
this.otherLayers = { enc: l, world12nm: c, worldMarine: h, chinaRoute:
|
|
8304
|
+
this.otherLayers = { enc: l, world12nm: c, worldMarine: h, chinaRoute: p };
|
|
8271
8305
|
} else
|
|
8272
8306
|
this.otherLayers = {};
|
|
8273
8307
|
this.handleBeforeLayerToggle();
|
|
@@ -8283,7 +8317,7 @@ const To = {
|
|
|
8283
8317
|
this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
|
|
8284
8318
|
},
|
|
8285
8319
|
handleRampColorInitial() {
|
|
8286
|
-
var t, e, a, r, i, o, l, c, h,
|
|
8320
|
+
var t, e, a, r, i, o, l, c, h, p, n, u;
|
|
8287
8321
|
this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
8288
8322
|
type: "canvas",
|
|
8289
8323
|
canvas: (a = this.viewport) == null ? void 0 : a.rampColorCanvas,
|
|
@@ -8304,11 +8338,11 @@ const To = {
|
|
|
8304
8338
|
canvas: (h = this.viewport) == null ? void 0 : h.particleCanvas,
|
|
8305
8339
|
animate: !0,
|
|
8306
8340
|
coordinates: this.viewport.getBoundLngLat()
|
|
8307
|
-
}), this.viewport.map.getLayer((
|
|
8341
|
+
}), this.viewport.map.getLayer((p = this.viewport) == null ? void 0 : p.particleLayer) || this.viewport.map.addLayer(
|
|
8308
8342
|
{
|
|
8309
8343
|
type: "raster",
|
|
8310
8344
|
id: (n = this.viewport) == null ? void 0 : n.particleLayer,
|
|
8311
|
-
source: (
|
|
8345
|
+
source: (u = this.viewport) == null ? void 0 : u.particleSource,
|
|
8312
8346
|
layout: {
|
|
8313
8347
|
visibility: "none"
|
|
8314
8348
|
}
|
|
@@ -8317,204 +8351,244 @@ const To = {
|
|
|
8317
8351
|
);
|
|
8318
8352
|
},
|
|
8319
8353
|
handleDrawWeather4Json() {
|
|
8320
|
-
var
|
|
8354
|
+
var p, n, u, b, v, y;
|
|
8321
8355
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
8322
8356
|
let e = 0, a = 0;
|
|
8323
|
-
const r = (
|
|
8324
|
-
for (const
|
|
8325
|
-
let
|
|
8326
|
-
if (this.weatherLayers[
|
|
8327
|
-
let
|
|
8328
|
-
if (
|
|
8329
|
-
|
|
8330
|
-
const
|
|
8331
|
-
for (const
|
|
8332
|
-
if (
|
|
8333
|
-
const
|
|
8334
|
-
o > l ?
|
|
8335
|
-
var
|
|
8357
|
+
const r = (p = this.map) == null ? void 0 : p.getBounds(), i = this.map.getZoom(), o = q.convertToStdLng(r._sw.lng), l = q.convertToStdLng(r._ne.lng), c = Math.floor(r._sw.lat), h = Math.ceil(r._ne.lat);
|
|
8358
|
+
for (const x in this.weatherLayers) {
|
|
8359
|
+
let D = !1;
|
|
8360
|
+
if (this.weatherLayers[x].active && this.weatherLayers[x].type === "json") {
|
|
8361
|
+
let L = [];
|
|
8362
|
+
if (x === "swell") {
|
|
8363
|
+
D = !0;
|
|
8364
|
+
const A = ((n = this.weatherLayers[x]) == null ? void 0 : n.direction) || {};
|
|
8365
|
+
for (const w in A)
|
|
8366
|
+
if (w > c && w < h && (!(i <= this.zoom) || w % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8367
|
+
const B = A[w].lng;
|
|
8368
|
+
o > l ? B.forEach((d, P) => {
|
|
8369
|
+
var Q, S, _, H, Y, J;
|
|
8336
8370
|
if (i < 2) {
|
|
8337
|
-
if ((
|
|
8338
|
-
const
|
|
8339
|
-
val: ((
|
|
8340
|
-
spd: (
|
|
8371
|
+
if ((d >= 0 && d <= 360 || d >= -360 && d <= 0) && d % 10 === 0) {
|
|
8372
|
+
const W = M.point([d, w], {
|
|
8373
|
+
val: ((Q = A[w].val) == null ? void 0 : Q[P]) || ((S = A[w].dir) == null ? void 0 : S[P]),
|
|
8374
|
+
spd: (_ = A[w].spd) == null ? void 0 : _[P]
|
|
8341
8375
|
});
|
|
8342
|
-
|
|
8376
|
+
L.push(W);
|
|
8343
8377
|
}
|
|
8344
|
-
} else if ((
|
|
8345
|
-
const
|
|
8346
|
-
val: ((
|
|
8347
|
-
spd: (
|
|
8378
|
+
} else if ((d >= o && d <= 180 || d >= -180 && d <= l) && (!(i <= this.zoom) || d % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8379
|
+
const W = M.point([d, w], {
|
|
8380
|
+
val: ((H = A[w].val) == null ? void 0 : H[P]) || ((Y = A[w].dir) == null ? void 0 : Y[P]),
|
|
8381
|
+
spd: (J = A[w].spd) == null ? void 0 : J[P]
|
|
8348
8382
|
});
|
|
8349
|
-
|
|
8383
|
+
L.push(W);
|
|
8350
8384
|
}
|
|
8351
|
-
}) :
|
|
8352
|
-
var
|
|
8385
|
+
}) : B.forEach((d, P) => {
|
|
8386
|
+
var Q, S, _, H, Y, J;
|
|
8353
8387
|
if (o < 2) {
|
|
8354
|
-
if ((
|
|
8355
|
-
const
|
|
8356
|
-
val: ((
|
|
8357
|
-
spd: (
|
|
8388
|
+
if ((d >= 0 && d <= 360 || d >= -360 && d <= 0) && d % 10 === 0) {
|
|
8389
|
+
const W = M.point([d, w], {
|
|
8390
|
+
val: ((Q = A[w].val) == null ? void 0 : Q[P]) || ((S = A[w].dir) == null ? void 0 : S[P]),
|
|
8391
|
+
spd: (_ = A[w].spd) == null ? void 0 : _[P]
|
|
8358
8392
|
});
|
|
8359
|
-
|
|
8393
|
+
L.push(W);
|
|
8360
8394
|
}
|
|
8361
|
-
} else if (
|
|
8362
|
-
const
|
|
8363
|
-
val: ((
|
|
8364
|
-
spd: (
|
|
8395
|
+
} else if (d >= o && d <= l && (!(i <= this.zoom) || d % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8396
|
+
const W = M.point([d, w], {
|
|
8397
|
+
val: ((H = A[w].val) == null ? void 0 : H[P]) || ((Y = A[w].dir) == null ? void 0 : Y[P]),
|
|
8398
|
+
spd: (J = A[w].spd) == null ? void 0 : J[P]
|
|
8365
8399
|
});
|
|
8366
|
-
|
|
8400
|
+
L.push(W);
|
|
8367
8401
|
}
|
|
8368
8402
|
});
|
|
8369
8403
|
}
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
}
|
|
8385
|
-
}
|
|
8386
|
-
if (u.data) {
|
|
8387
|
-
const C = this.handleBboxClip(u.data, r);
|
|
8388
|
-
v = v.concat(C);
|
|
8404
|
+
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", a, ", total: ", e += a);
|
|
8405
|
+
const f = this.weatherLayers[x].height;
|
|
8406
|
+
if (f) {
|
|
8407
|
+
if (!f.data) {
|
|
8408
|
+
const w = [];
|
|
8409
|
+
for (const B in (u = f.raw) == null ? void 0 : u.LineString) {
|
|
8410
|
+
const d = f.raw.LineString[B];
|
|
8411
|
+
for (const P of d)
|
|
8412
|
+
w.push(
|
|
8413
|
+
M.lineString(P, {
|
|
8414
|
+
val: Number(B)
|
|
8415
|
+
})
|
|
8416
|
+
);
|
|
8417
|
+
f.data = M.featureCollection(w);
|
|
8389
8418
|
}
|
|
8390
|
-
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("height elapsed: ", a, ", total: ", e += a);
|
|
8391
8419
|
}
|
|
8420
|
+
if (f.data) {
|
|
8421
|
+
const w = this.handleBboxClip(f.data, r);
|
|
8422
|
+
L = L.concat(w);
|
|
8423
|
+
}
|
|
8424
|
+
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", a, ", total: ", e += a);
|
|
8392
8425
|
}
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
8426
|
+
} else if (x === "current" && this.showCurrentIsoband) {
|
|
8427
|
+
D = !0;
|
|
8428
|
+
const A = ((b = this.weatherLayers[x]) == null ? void 0 : b.direction) || {};
|
|
8429
|
+
for (const w in A)
|
|
8430
|
+
if (w > c && w < h && (!(i <= this.zoom) || w % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8431
|
+
const B = A[w].lng;
|
|
8432
|
+
o > l ? B.forEach((d, P) => {
|
|
8433
|
+
var Q, S, _, H, Y, J;
|
|
8434
|
+
if (i < 2) {
|
|
8435
|
+
if ((d >= 0 && d <= 360 || d >= -360 && d <= 0) && d % 10 === 0) {
|
|
8436
|
+
const W = M.point([d, w], {
|
|
8437
|
+
val: ((Q = A[w].val) == null ? void 0 : Q[P]) || ((S = A[w].dir) == null ? void 0 : S[P]),
|
|
8438
|
+
spd: (_ = A[w].spd) == null ? void 0 : _[P]
|
|
8439
|
+
});
|
|
8440
|
+
L.push(W);
|
|
8441
|
+
}
|
|
8442
|
+
} else if ((d >= o && d <= 180 || d >= -180 && d <= l) && (!(i <= this.zoom) || d % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8443
|
+
const W = M.point([d, w], {
|
|
8444
|
+
val: ((H = A[w].val) == null ? void 0 : H[P]) || ((Y = A[w].dir) == null ? void 0 : Y[P]),
|
|
8445
|
+
spd: (J = A[w].spd) == null ? void 0 : J[P]
|
|
8446
|
+
});
|
|
8447
|
+
L.push(W);
|
|
8448
|
+
}
|
|
8449
|
+
}) : B.forEach((d, P) => {
|
|
8450
|
+
var Q, S, _, H, Y, J;
|
|
8451
|
+
if (o < 2) {
|
|
8452
|
+
if ((d >= 0 && d <= 360 || d >= -360 && d <= 0) && d % 10 === 0) {
|
|
8453
|
+
const W = M.point([d, w], {
|
|
8454
|
+
val: ((Q = A[w].val) == null ? void 0 : Q[P]) || ((S = A[w].dir) == null ? void 0 : S[P]),
|
|
8455
|
+
spd: (_ = A[w].spd) == null ? void 0 : _[P]
|
|
8456
|
+
});
|
|
8457
|
+
L.push(W);
|
|
8458
|
+
}
|
|
8459
|
+
} else if (d >= o && d <= l && (!(i <= this.zoom) || d % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8460
|
+
const W = M.point([d, w], {
|
|
8461
|
+
val: ((H = A[w].val) == null ? void 0 : H[P]) || ((Y = A[w].dir) == null ? void 0 : Y[P]),
|
|
8462
|
+
spd: (J = A[w].spd) == null ? void 0 : J[P]
|
|
8463
|
+
});
|
|
8464
|
+
L.push(W);
|
|
8406
8465
|
}
|
|
8407
|
-
|
|
8466
|
+
});
|
|
8467
|
+
}
|
|
8468
|
+
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", a, ", total: ", e += a);
|
|
8469
|
+
const f = this.weatherLayers[x].speed;
|
|
8470
|
+
if (f) {
|
|
8471
|
+
if (!f.data) {
|
|
8472
|
+
const B = [];
|
|
8473
|
+
for (const d in (v = f.raw) == null ? void 0 : v.Polygon) {
|
|
8474
|
+
const P = f.raw.Polygon[d];
|
|
8475
|
+
for (const Q of P)
|
|
8476
|
+
B.push(
|
|
8477
|
+
M.polygon(Q, {
|
|
8478
|
+
val: Number(d)
|
|
8479
|
+
})
|
|
8480
|
+
);
|
|
8408
8481
|
}
|
|
8409
|
-
|
|
8410
|
-
v = v.concat(C), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("speed elapsed: ", a, ", total: ", e += a);
|
|
8482
|
+
f.data = M.featureCollection(B);
|
|
8411
8483
|
}
|
|
8484
|
+
const w = i < this.zoom ? f.data.features.filter((B) => B.properties.val > 0.5) : f.data.features;
|
|
8485
|
+
L = L.concat(w), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", a, ", total: ", e += a);
|
|
8412
8486
|
}
|
|
8413
|
-
} else if (
|
|
8414
|
-
|
|
8415
|
-
const
|
|
8416
|
-
for (const
|
|
8417
|
-
if (
|
|
8418
|
-
const
|
|
8419
|
-
o > l ?
|
|
8420
|
-
var
|
|
8487
|
+
} else if (x === "wind" && this.showWindFeather) {
|
|
8488
|
+
D = !0;
|
|
8489
|
+
const A = this.weatherLayers.wind.raw;
|
|
8490
|
+
for (const f in A)
|
|
8491
|
+
if (f > c && f < h && (!(i <= this.zoom) || f % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8492
|
+
const w = A[f].lng;
|
|
8493
|
+
o > l ? w.forEach((B, d) => {
|
|
8494
|
+
var P, Q, S, _;
|
|
8421
8495
|
if (i < 2) {
|
|
8422
|
-
if ((
|
|
8423
|
-
const
|
|
8424
|
-
dir: ((
|
|
8425
|
-
spd: f
|
|
8496
|
+
if ((B >= 0 && B <= 360 || B >= -360 && B <= 0) && B % 10 === 0) {
|
|
8497
|
+
const H = M.point([B, f], {
|
|
8498
|
+
dir: ((P = A[f].val) == null ? void 0 : P[d]) || ((Q = A[f].dir) == null ? void 0 : Q[d]),
|
|
8499
|
+
spd: A[f].spd[d]
|
|
8426
8500
|
});
|
|
8427
|
-
|
|
8501
|
+
L.push(H);
|
|
8428
8502
|
}
|
|
8429
|
-
} else if ((
|
|
8430
|
-
const
|
|
8431
|
-
dir: ((
|
|
8432
|
-
spd: f
|
|
8503
|
+
} else if ((B >= o && B <= 180 || B >= -180 && B <= l) && (!(i <= this.zoom) || B % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8504
|
+
const H = M.point([B, f], {
|
|
8505
|
+
dir: ((S = A[f].val) == null ? void 0 : S[d]) || ((_ = A[f].dir) == null ? void 0 : _[d]),
|
|
8506
|
+
spd: A[f].spd[d]
|
|
8433
8507
|
});
|
|
8434
|
-
|
|
8508
|
+
L.push(H);
|
|
8435
8509
|
}
|
|
8436
|
-
}) :
|
|
8437
|
-
var
|
|
8510
|
+
}) : w.forEach((B, d) => {
|
|
8511
|
+
var P, Q, S, _;
|
|
8438
8512
|
if (i < 2) {
|
|
8439
|
-
if ((
|
|
8440
|
-
const
|
|
8441
|
-
dir: ((
|
|
8442
|
-
spd: f
|
|
8513
|
+
if ((B >= 0 && B <= 360 || B >= -360 && B <= 0) && B % 10 === 0) {
|
|
8514
|
+
const H = M.point([B, f], {
|
|
8515
|
+
dir: ((P = A[f].val) == null ? void 0 : P[d]) || ((Q = A[f].dir) == null ? void 0 : Q[d]),
|
|
8516
|
+
spd: A[f].spd[d]
|
|
8443
8517
|
});
|
|
8444
|
-
|
|
8518
|
+
L.push(H);
|
|
8445
8519
|
}
|
|
8446
|
-
} else if (
|
|
8447
|
-
const
|
|
8448
|
-
dir: ((
|
|
8449
|
-
spd: f
|
|
8520
|
+
} else if (B >= o && B <= l && (!(i <= this.zoom) || B % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8521
|
+
const H = M.point([B, f], {
|
|
8522
|
+
dir: ((S = A[f].val) == null ? void 0 : S[d]) || ((_ = A[f].dir) == null ? void 0 : _[d]),
|
|
8523
|
+
spd: A[f].spd[d]
|
|
8450
8524
|
});
|
|
8451
|
-
|
|
8525
|
+
L.push(H);
|
|
8452
8526
|
}
|
|
8453
8527
|
});
|
|
8454
8528
|
}
|
|
8455
8529
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", a, ", total: ", e += a);
|
|
8456
|
-
} else if (
|
|
8457
|
-
if (this.weatherLayers[
|
|
8458
|
-
|
|
8530
|
+
} else if (x === "sig-wave-height") {
|
|
8531
|
+
if (this.weatherLayers[x].data)
|
|
8532
|
+
L = this.weatherLayers[x].data;
|
|
8459
8533
|
else {
|
|
8460
|
-
|
|
8461
|
-
const
|
|
8462
|
-
if (
|
|
8463
|
-
const
|
|
8464
|
-
for (const
|
|
8465
|
-
const
|
|
8466
|
-
for (const
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
val: Number(
|
|
8534
|
+
D = !0;
|
|
8535
|
+
const A = this.weatherLayers[x].raw;
|
|
8536
|
+
if (A) {
|
|
8537
|
+
const f = [];
|
|
8538
|
+
for (const w in A.Polygon) {
|
|
8539
|
+
const B = A.Polygon[w];
|
|
8540
|
+
for (const d of B)
|
|
8541
|
+
f.push(
|
|
8542
|
+
M.polygon(d, {
|
|
8543
|
+
val: Number(w)
|
|
8470
8544
|
})
|
|
8471
8545
|
);
|
|
8472
8546
|
}
|
|
8473
|
-
for (const
|
|
8474
|
-
const
|
|
8475
|
-
for (let
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
val: Number(
|
|
8547
|
+
for (const w in A.Point) {
|
|
8548
|
+
const B = A.Point[w];
|
|
8549
|
+
for (let d = 0; d < ((y = B.lng) == null ? void 0 : y.length); d++)
|
|
8550
|
+
f.push(
|
|
8551
|
+
M.point([B.lng[d], w], {
|
|
8552
|
+
val: Number(B.val[d])
|
|
8479
8553
|
})
|
|
8480
8554
|
);
|
|
8481
8555
|
}
|
|
8482
|
-
|
|
8556
|
+
L = L.concat(f);
|
|
8483
8557
|
}
|
|
8484
8558
|
}
|
|
8485
8559
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sigWave elapsed: ", a, ", total: ", e += a);
|
|
8486
|
-
} else if (
|
|
8487
|
-
if (this.weatherLayers[
|
|
8488
|
-
|
|
8560
|
+
} else if (x === "prmsl") {
|
|
8561
|
+
if (this.weatherLayers[x].data)
|
|
8562
|
+
L = this.weatherLayers[x].data;
|
|
8489
8563
|
else {
|
|
8490
|
-
|
|
8491
|
-
const
|
|
8492
|
-
if (
|
|
8493
|
-
const
|
|
8494
|
-
for (const
|
|
8495
|
-
const
|
|
8496
|
-
for (const
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
val: Number(
|
|
8564
|
+
D = !0;
|
|
8565
|
+
const A = this.weatherLayers[x].raw;
|
|
8566
|
+
if (A) {
|
|
8567
|
+
const f = [];
|
|
8568
|
+
for (const w in A.LineString) {
|
|
8569
|
+
const B = A.LineString[w];
|
|
8570
|
+
for (const d of B)
|
|
8571
|
+
f.push(
|
|
8572
|
+
M.lineString(d, {
|
|
8573
|
+
val: Number(w)
|
|
8500
8574
|
})
|
|
8501
8575
|
);
|
|
8502
8576
|
}
|
|
8503
|
-
for (const
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
val:
|
|
8508
|
-
type:
|
|
8577
|
+
for (const w in A.Point)
|
|
8578
|
+
A.Point[w].lng.forEach((B, d) => {
|
|
8579
|
+
B = q.convertToStdLng(B), f.push(
|
|
8580
|
+
M.point([B, w], {
|
|
8581
|
+
val: A.Point[w].val[d],
|
|
8582
|
+
type: A.Point[w].type[d]
|
|
8509
8583
|
})
|
|
8510
8584
|
);
|
|
8511
8585
|
});
|
|
8512
|
-
|
|
8586
|
+
L = L.concat(f);
|
|
8513
8587
|
}
|
|
8514
8588
|
}
|
|
8515
8589
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
|
|
8516
8590
|
}
|
|
8517
|
-
|
|
8591
|
+
L.length && (this.weatherLayers[x].data = M.featureCollection(L)), D && (this.weatherLayers[x].version = Math.random() + 1);
|
|
8518
8592
|
}
|
|
8519
8593
|
}
|
|
8520
8594
|
},
|
|
@@ -8524,14 +8598,14 @@ const To = {
|
|
|
8524
8598
|
this.handleDrawWeather4Json();
|
|
8525
8599
|
},
|
|
8526
8600
|
handleBboxClip(t, e) {
|
|
8527
|
-
const a = [], r =
|
|
8601
|
+
const a = [], r = q.convertToStdLng(e._sw.lng), i = q.convertToStdLng(e._ne.lng);
|
|
8528
8602
|
return t.features.forEach((o) => {
|
|
8529
8603
|
if (o.geometry.type !== "Point")
|
|
8530
8604
|
if (r > i) {
|
|
8531
|
-
let l = [r, e._sw.lat, 180, e._ne.lat], c =
|
|
8532
|
-
c.geometry.coordinates.length && a.push(c), l = [-180, e._sw.lat, i, e._ne.lat], c =
|
|
8605
|
+
let l = [r, e._sw.lat, 180, e._ne.lat], c = M.bboxClip(o, l);
|
|
8606
|
+
c.geometry.coordinates.length && a.push(c), l = [-180, e._sw.lat, i, e._ne.lat], c = M.bboxClip(o, l), c.geometry.coordinates.length && a.push(c);
|
|
8533
8607
|
} else {
|
|
8534
|
-
const l = [r, e._sw.lat, i, e._ne.lat], c =
|
|
8608
|
+
const l = [r, e._sw.lat, i, e._ne.lat], c = M.bboxClip(o, l);
|
|
8535
8609
|
c.geometry.coordinates.length && a.push(c);
|
|
8536
8610
|
}
|
|
8537
8611
|
else
|
|
@@ -8549,8 +8623,8 @@ const To = {
|
|
|
8549
8623
|
this.handleBeforeLayerToggle();
|
|
8550
8624
|
},
|
|
8551
8625
|
handleBeforeLayerToggle() {
|
|
8552
|
-
var t, e, a, r, i, o, l, c, h,
|
|
8553
|
-
(t = this.map) != null && t.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (a = this.otherLayers) != null && a["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (l = this.otherLayers) != null && l["time-zones"] || (c = this.otherLayers) != null && c.pirates || (h = this.otherLayers) != null && h.ports || (
|
|
8626
|
+
var t, e, a, r, i, o, l, c, h, p, n, u, b, v, y, x;
|
|
8627
|
+
(t = this.map) != null && t.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (a = this.otherLayers) != null && a["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (l = this.otherLayers) != null && l["time-zones"] || (c = this.otherLayers) != null && c.pirates || (h = this.otherLayers) != null && h.ports || (p = this.otherLayers) != null && p.enc || (n = this.otherLayers) != null && n.world12nm || (u = this.otherLayers) != null && u.worldMarine || (b = this.otherLayers) != null && b.chinaRoute || (v = this.otherLayers) != null && v["voluntary-reporting-area"] || (y = this.otherLayers) != null && y["eca-zones"] || (x = this.otherLayers) != null && x["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
8554
8628
|
},
|
|
8555
8629
|
handleDateChange(t = { tropicals: !1 }) {
|
|
8556
8630
|
this.fetchWeatherLayers(t), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -8584,8 +8658,8 @@ const To = {
|
|
|
8584
8658
|
}
|
|
8585
8659
|
},
|
|
8586
8660
|
handle3dToggle(t) {
|
|
8587
|
-
var e, a, r, i, o, l, c, h,
|
|
8588
|
-
t ? (this.map.setProjection("globe"), this.mapProjection = "globe", (a = this.map) != null && a.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (c = this.map) != null && c.getLayer((l = this.viewport) == null ? void 0 : l.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((n = this.map) == null || n.moveLayer((
|
|
8661
|
+
var e, a, r, i, o, l, c, h, p, n, u, b, v, y, x, D, L, A, f, w;
|
|
8662
|
+
t ? (this.map.setProjection("globe"), this.mapProjection = "globe", (a = this.map) != null && a.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (c = this.map) != null && c.getLayer((l = this.viewport) == null ? void 0 : l.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((n = this.map) == null || n.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("move", this.handleDraWeather4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("move", this.handleDraWeather4Image), this.handleDraWeather4Image(), (b = this.map) != null && b.getLayer((u = this.viewport) == null ? void 0 : u.rampColorLayer) && ((v = this.map) != null && v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((x = this.map) == null || x.moveLayer((y = this.viewport) == null ? void 0 : y.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (L = this.map) != null && L.getLayer((D = this.viewport) == null ? void 0 : D.particleLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((w = this.map) == null || w.moveLayer((f = this.viewport) == null ? void 0 : f.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
8589
8663
|
},
|
|
8590
8664
|
handleParticle(t) {
|
|
8591
8665
|
this.particleFactor = t, this.weatherLayers[t.key] && (this.weatherLayers[t.key].particle = t.particle), this.activeWeatherLayers.map((r) => {
|
|
@@ -8609,10 +8683,10 @@ const To = {
|
|
|
8609
8683
|
className: "map-gl-home"
|
|
8610
8684
|
};
|
|
8611
8685
|
function So(t, e, a, r, i, o) {
|
|
8612
|
-
var Ae,
|
|
8613
|
-
const l =
|
|
8686
|
+
var Ae, oe, N, te, fe, se, le, ce, I, Le, xe, Be, Ie, Ee, De, Pe, ke, Me, ze, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe;
|
|
8687
|
+
const l = T("IdmGlLayer"), c = T("IdmENC"), h = T("IdmWorld12nm"), p = T("IdmWorldMarine"), n = T("IdmChinaRoute"), u = T("IdmSigWave"), b = T("IdmSwell"), v = T("IdmPrmsl"), y = T("IdmIceCover"), x = T("IdmIceThickness"), D = T("IdmTropicals"), L = T("IdmCurrents"), A = T("IdmCurrentParticle"), f = T("IdmWindBarb"), w = T("IdmWindParticle"), B = T("IdmPrecip3h"), d = T("IdmVisibility"), P = T("IdmWaterTemp"), Q = T("IdmTemp"), S = T("IdmWarZone"), _ = T("IdmGmdssArea"), H = T("IdmEcaZone"), Y = T("IdmAlertZone"), J = T("IdmPort"), W = T("IdmLoadLine"), de = T("IdmTimezone"), pe = T("IdmVRA"), ue = T("IdmSpecialArea"), me = T("IdmTerminator"), ge = T("IdmLatLng"), ie = T("IdmMeasure"), ne = T("IdmPoint");
|
|
8614
8688
|
return a.map ? (m(), g("div", Qo, [
|
|
8615
|
-
|
|
8689
|
+
z(l, j({
|
|
8616
8690
|
ref: "layer",
|
|
8617
8691
|
map: a.map,
|
|
8618
8692
|
"toggle-version": a.toggleVersion,
|
|
@@ -8627,81 +8701,85 @@ function So(t, e, a, r, i, o) {
|
|
|
8627
8701
|
"forecast-model": a.forecastModel,
|
|
8628
8702
|
onWeather: o.handleWeatherLayerChange,
|
|
8629
8703
|
onOther: o.handleOtherLayerChange,
|
|
8630
|
-
onToggleWindParticle: e[0] || (e[0] = (
|
|
8631
|
-
onToggleWindFeather: e[1] || (e[1] = (
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8704
|
+
onToggleWindParticle: e[0] || (e[0] = (V) => i.showWindParticle = V),
|
|
8705
|
+
onToggleWindFeather: e[1] || (e[1] = (V) => {
|
|
8706
|
+
i.showWindFeather = V, o.handleDrawWeather4Json();
|
|
8707
|
+
}),
|
|
8708
|
+
onToggleCurrentParticle: e[2] || (e[2] = (V) => i.showCurrentParticle = V),
|
|
8709
|
+
onToggleCurrentIsoband: e[3] || (e[3] = (V) => {
|
|
8710
|
+
i.showCurrentIsoband = V, o.handleDrawWeather4Json();
|
|
8711
|
+
}),
|
|
8712
|
+
onToggleWindParticeVersion: e[4] || (e[4] = (V) => i.toggleWindParticeVersion = Math.random()),
|
|
8713
|
+
onToggleCurrentParticeVersion: e[5] || (e[5] = (V) => i.toggleCurrentParticeVersion = Math.random()),
|
|
8714
|
+
onCoordinate: e[6] || (e[6] = (V) => i.showCoord = V),
|
|
8715
|
+
onMeasure: e[7] || (e[7] = (V) => i.showMeasure = V),
|
|
8716
|
+
onPoint: e[8] || (e[8] = (V) => i.showPoint = V),
|
|
8639
8717
|
on3d: o.handle3dToggle,
|
|
8640
8718
|
onHandleToggleVersion: o.handleToggleVersion
|
|
8641
8719
|
}), null, 16, ["map", "toggle-version", "map-projection", "show-wind-feather", "show-wind-particle", "show-current-isoband", "show-current-particle", "token", "gateway", "forecast-model", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
8642
|
-
|
|
8720
|
+
z(c, j({
|
|
8643
8721
|
map: a.map,
|
|
8644
8722
|
token: a.token,
|
|
8645
8723
|
enabled: (Ae = i.otherLayers) == null ? void 0 : Ae.enc,
|
|
8646
8724
|
"toggle-version": a.toggleVersion
|
|
8647
8725
|
}, t.$attrs, {
|
|
8648
|
-
onEnc: e[9] || (e[9] = (
|
|
8726
|
+
onEnc: e[9] || (e[9] = (V) => i.enc = V)
|
|
8649
8727
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
8650
|
-
|
|
8728
|
+
z(h, j({
|
|
8651
8729
|
map: a.map,
|
|
8652
8730
|
token: a.token,
|
|
8653
8731
|
"weather-layers": i.weatherLayers,
|
|
8654
|
-
enabled: (
|
|
8732
|
+
enabled: (oe = i.otherLayers) == null ? void 0 : oe.world12nm
|
|
8655
8733
|
}, t.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
8656
|
-
|
|
8734
|
+
z(p, j({
|
|
8657
8735
|
map: a.map,
|
|
8658
8736
|
token: a.token,
|
|
8659
8737
|
"weather-layers": i.weatherLayers,
|
|
8660
|
-
enabled: (
|
|
8738
|
+
enabled: (N = i.otherLayers) == null ? void 0 : N.worldMarine
|
|
8661
8739
|
}, t.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
8662
|
-
|
|
8740
|
+
z(n, j({
|
|
8663
8741
|
map: a.map,
|
|
8664
8742
|
token: a.token,
|
|
8665
8743
|
"weather-layers": i.weatherLayers,
|
|
8666
|
-
enabled: (
|
|
8744
|
+
enabled: (te = i.otherLayers) == null ? void 0 : te.chinaRoute
|
|
8667
8745
|
}, t.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
8668
|
-
|
|
8746
|
+
z(u, j({
|
|
8669
8747
|
map: a.map,
|
|
8670
8748
|
"sig-wave": (fe = i.weatherLayers) == null ? void 0 : fe["sig-wave-height"],
|
|
8671
8749
|
"before-layer": a.beforeLayer,
|
|
8672
8750
|
"active-weather-layers": i.activeWeatherLayers
|
|
8673
8751
|
}, t.$attrs), null, 16, ["map", "sig-wave", "before-layer", "active-weather-layers"]),
|
|
8674
|
-
|
|
8752
|
+
z(b, j({
|
|
8675
8753
|
map: a.map,
|
|
8676
|
-
swell: (
|
|
8754
|
+
swell: (se = i.weatherLayers) == null ? void 0 : se.swell,
|
|
8677
8755
|
"before-layer": a.beforeLayer,
|
|
8678
8756
|
"active-weather-layers": i.activeWeatherLayers
|
|
8679
8757
|
}, t.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
|
|
8680
|
-
|
|
8758
|
+
z(v, j({
|
|
8681
8759
|
map: a.map,
|
|
8682
|
-
prmsl: (
|
|
8760
|
+
prmsl: (le = i.weatherLayers) == null ? void 0 : le.prmsl,
|
|
8683
8761
|
"before-layer": a.beforeLayer,
|
|
8684
8762
|
"active-weather-layers": i.activeWeatherLayers
|
|
8685
8763
|
}, t.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
8686
|
-
|
|
8764
|
+
z(y, j({
|
|
8687
8765
|
viewport: i.viewport,
|
|
8688
|
-
factor: (
|
|
8766
|
+
factor: (ce = i.weatherLayers) == null ? void 0 : ce["ice-cover"],
|
|
8689
8767
|
"toggle-version": a.toggleVersion,
|
|
8690
8768
|
"before-layer": a.beforeLayer
|
|
8691
8769
|
}, t.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
8692
|
-
|
|
8770
|
+
z(x, j({
|
|
8693
8771
|
viewport: i.viewport,
|
|
8694
|
-
factor: (
|
|
8772
|
+
factor: (I = i.weatherLayers) == null ? void 0 : I["ice-thickness"],
|
|
8695
8773
|
"toggle-version": a.toggleVersion,
|
|
8696
8774
|
"before-layer": a.beforeLayer
|
|
8697
8775
|
}, t.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
8698
|
-
|
|
8776
|
+
z(D, j({
|
|
8699
8777
|
map: a.map,
|
|
8700
8778
|
date: a.ts,
|
|
8701
8779
|
tropicals: (Le = i.weatherLayers) == null ? void 0 : Le.tropicals,
|
|
8702
8780
|
"before-layer": a.beforeLayer
|
|
8703
8781
|
}, t.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
8704
|
-
|
|
8782
|
+
z(L, j({
|
|
8705
8783
|
map: a.map,
|
|
8706
8784
|
"map-projection": i.mapProjection,
|
|
8707
8785
|
current: (xe = i.weatherLayers) == null ? void 0 : xe.current,
|
|
@@ -8716,13 +8794,13 @@ function So(t, e, a, r, i, o) {
|
|
|
8716
8794
|
onParticle: o.handleParticle,
|
|
8717
8795
|
onHandleToggleVersion: o.handleToggleVersion
|
|
8718
8796
|
}), null, 16, ["map", "map-projection", "current", "before-layer", "show-current-isoband", "show-current-particle", "toggle-partice-version", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
8719
|
-
|
|
8797
|
+
z(A, j({
|
|
8720
8798
|
viewport: i.viewport,
|
|
8721
8799
|
factor: (Be = i.weatherLayers) == null ? void 0 : Be["current-particle"],
|
|
8722
8800
|
"before-layer": a.beforeLayer,
|
|
8723
8801
|
"toggle-version": a.toggleVersion
|
|
8724
8802
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8725
|
-
|
|
8803
|
+
z(f, j({
|
|
8726
8804
|
ref: "windBarb",
|
|
8727
8805
|
map: a.map,
|
|
8728
8806
|
"map-projection": i.mapProjection,
|
|
@@ -8738,96 +8816,96 @@ function So(t, e, a, r, i, o) {
|
|
|
8738
8816
|
"weather-layers": i.weatherLayers,
|
|
8739
8817
|
onParticle: o.handleParticle
|
|
8740
8818
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-wind-feather", "show-wind-particle", "toggle-partice-version", "toggle-version", "weather-layers", "onParticle"]),
|
|
8741
|
-
|
|
8819
|
+
z(w, j({
|
|
8742
8820
|
viewport: i.viewport,
|
|
8743
8821
|
factor: (De = i.weatherLayers) == null ? void 0 : De["wind-particle"],
|
|
8744
8822
|
"before-layer": a.beforeLayer,
|
|
8745
8823
|
"toggle-version": a.toggleVersion
|
|
8746
8824
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8747
|
-
|
|
8825
|
+
z(B, j({
|
|
8748
8826
|
viewport: i.viewport,
|
|
8749
8827
|
factor: (Pe = i.weatherLayers) == null ? void 0 : Pe.precip3h,
|
|
8750
8828
|
"before-layer": a.beforeLayer,
|
|
8751
8829
|
"toggle-version": a.toggleVersion
|
|
8752
8830
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8753
|
-
|
|
8831
|
+
z(d, j({
|
|
8754
8832
|
viewport: i.viewport,
|
|
8755
8833
|
factor: (ke = i.weatherLayers) == null ? void 0 : ke.visibility,
|
|
8756
8834
|
"before-layer": a.beforeLayer,
|
|
8757
8835
|
"toggle-version": a.toggleVersion
|
|
8758
8836
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8759
|
-
|
|
8837
|
+
z(P, j({
|
|
8760
8838
|
viewport: i.viewport,
|
|
8761
8839
|
factor: (Me = i.weatherLayers) == null ? void 0 : Me["water-temp"],
|
|
8762
8840
|
"before-layer": a.beforeLayer,
|
|
8763
8841
|
"toggle-version": a.toggleVersion
|
|
8764
8842
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8765
|
-
|
|
8843
|
+
z(Q, j({
|
|
8766
8844
|
viewport: i.viewport,
|
|
8767
8845
|
factor: (ze = i.weatherLayers) == null ? void 0 : ze.temp,
|
|
8768
8846
|
"before-layer": a.beforeLayer,
|
|
8769
8847
|
"toggle-version": a.toggleVersion
|
|
8770
8848
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8771
|
-
|
|
8849
|
+
z(S, j({
|
|
8772
8850
|
map: a.map,
|
|
8773
8851
|
zone: (Te = i.otherLayers) == null ? void 0 : Te["war-zones"],
|
|
8774
8852
|
"before-layer": a.beforeLayer
|
|
8775
8853
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8776
|
-
|
|
8854
|
+
z(_, j({
|
|
8777
8855
|
map: a.map,
|
|
8778
8856
|
area: (Qe = i.otherLayers) == null ? void 0 : Qe["gmdss-areas"],
|
|
8779
8857
|
"before-layer": a.beforeLayer
|
|
8780
8858
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
8781
|
-
|
|
8859
|
+
z(H, j({
|
|
8782
8860
|
map: a.map,
|
|
8783
8861
|
zone: (Se = i.otherLayers) == null ? void 0 : Se["eca-zones"],
|
|
8784
8862
|
"before-layer": a.beforeLayer
|
|
8785
8863
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8786
|
-
|
|
8864
|
+
z(Y, j({
|
|
8787
8865
|
map: a.map,
|
|
8788
8866
|
zone: (_e = i.otherLayers) == null ? void 0 : _e["alert-zones"],
|
|
8789
8867
|
"before-layer": a.beforeLayer
|
|
8790
8868
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8791
|
-
|
|
8869
|
+
z(J, j({
|
|
8792
8870
|
map: a.map,
|
|
8793
8871
|
port: (He = i.otherLayers) == null ? void 0 : He.ports,
|
|
8794
8872
|
"before-layer": a.beforeLayer,
|
|
8795
8873
|
"forecast-model": a.forecastModel
|
|
8796
8874
|
}, t.$attrs), null, 16, ["map", "port", "before-layer", "forecast-model"]),
|
|
8797
|
-
|
|
8875
|
+
z(W, j({
|
|
8798
8876
|
map: a.map,
|
|
8799
8877
|
line: (Oe = i.otherLayers) == null ? void 0 : Oe["load-lines"],
|
|
8800
8878
|
"before-layer": a.beforeLayer
|
|
8801
8879
|
}, t.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
8802
|
-
|
|
8880
|
+
z(de, j({
|
|
8803
8881
|
map: a.map,
|
|
8804
8882
|
zone: (Ne = i.otherLayers) == null ? void 0 : Ne["time-zones"],
|
|
8805
8883
|
"before-layer": a.beforeLayer
|
|
8806
8884
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8807
|
-
|
|
8885
|
+
z(pe, j({
|
|
8808
8886
|
map: a.map,
|
|
8809
8887
|
area: (je = i.otherLayers) == null ? void 0 : je["voluntary-reporting-area"],
|
|
8810
8888
|
"before-layer": a.beforeLayer
|
|
8811
8889
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
8812
|
-
|
|
8890
|
+
z(ue, j({
|
|
8813
8891
|
map: a.map,
|
|
8814
8892
|
area: (Re = i.otherLayers) == null ? void 0 : Re["special-area"],
|
|
8815
8893
|
"before-layer": a.beforeLayer
|
|
8816
8894
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
8817
|
-
|
|
8895
|
+
z(me, j({
|
|
8818
8896
|
map: a.map,
|
|
8819
8897
|
area: (Fe = i.otherLayers) == null ? void 0 : Fe["day-night"]
|
|
8820
8898
|
}, t.$attrs), null, 16, ["map", "area"]),
|
|
8821
|
-
|
|
8899
|
+
z(ge, j({
|
|
8822
8900
|
map: a.map,
|
|
8823
8901
|
show: i.showCoord,
|
|
8824
8902
|
"toggle-version": a.toggleVersion
|
|
8825
8903
|
}, t.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
8826
|
-
|
|
8904
|
+
z(ie, j({
|
|
8827
8905
|
map: a.map,
|
|
8828
8906
|
show: i.showMeasure
|
|
8829
8907
|
}, t.$attrs), null, 16, ["map", "show"]),
|
|
8830
|
-
|
|
8908
|
+
z(ne, j({
|
|
8831
8909
|
ref: "idmPoint",
|
|
8832
8910
|
map: a.map,
|
|
8833
8911
|
show: i.showPoint,
|
|
@@ -8837,9 +8915,9 @@ function So(t, e, a, r, i, o) {
|
|
|
8837
8915
|
gateway: i.gateway,
|
|
8838
8916
|
"forecast-model": a.forecastModel
|
|
8839
8917
|
}, t.$attrs), null, 16, ["map", "show", "meteo", "ts", "token", "gateway", "forecast-model"])
|
|
8840
|
-
], 512)) :
|
|
8918
|
+
], 512)) : R("", !0);
|
|
8841
8919
|
}
|
|
8842
|
-
const _o = /* @__PURE__ */
|
|
8920
|
+
const _o = /* @__PURE__ */ O(To, [["render", So]]), Ko = {
|
|
8843
8921
|
install(t) {
|
|
8844
8922
|
t.component("MapboxGL", _o), t.component("TropicalGL", lt), t.component("LatLngGL", ct);
|
|
8845
8923
|
}
|
|
@@ -8849,9 +8927,9 @@ export {
|
|
|
8849
8927
|
_o as MapboxGL,
|
|
8850
8928
|
Ko as MapboxGLPlugin,
|
|
8851
8929
|
ra as MapboxHelper,
|
|
8852
|
-
|
|
8930
|
+
ae as ParticleSchema,
|
|
8853
8931
|
lt as TropicalGL,
|
|
8854
8932
|
Je as Viewport,
|
|
8855
8933
|
Ce as WebGL,
|
|
8856
|
-
|
|
8934
|
+
ee as WebGLSchema
|
|
8857
8935
|
};
|