@idmwx/idmui-gl3 5.7.7 → 5.7.8
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 +863 -819
- package/dist/index.umd.cjs +13 -13
- package/package.json +1 -1
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,7 +120,7 @@ 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 "-";
|
|
@@ -174,7 +174,7 @@ const S = (t, e) => {
|
|
|
174
174
|
async fetchMeteoSource() {
|
|
175
175
|
var e;
|
|
176
176
|
this.sourceList = [];
|
|
177
|
-
let t = await
|
|
177
|
+
let t = await he.get(`${this.gateway}/api/arc/meteo2/models`, {
|
|
178
178
|
headers: {
|
|
179
179
|
Authorization: this.token
|
|
180
180
|
}
|
|
@@ -307,22 +307,22 @@ const S = (t, e) => {
|
|
|
307
307
|
class: "radio-tip"
|
|
308
308
|
};
|
|
309
309
|
function $t(t, e, a, r, i, o) {
|
|
310
|
-
const l =
|
|
310
|
+
const l = T("ElTooltip"), c = T("ElRadio"), h = T("ElRadioGroup"), p = T("ElScrollbar");
|
|
311
311
|
return m(), g("div", ft, [
|
|
312
312
|
s("div", {
|
|
313
313
|
class: "menu-bar-box",
|
|
314
|
-
style:
|
|
314
|
+
style: $({ top: a.top + 10 + "px", right: i.right + "px" })
|
|
315
315
|
}, [
|
|
316
316
|
s("div", yt, [
|
|
317
|
-
|
|
317
|
+
z(l, {
|
|
318
318
|
placement: "left",
|
|
319
319
|
effect: "light",
|
|
320
320
|
content: "Menu",
|
|
321
321
|
"show-after": 1e3
|
|
322
322
|
}, {
|
|
323
|
-
default:
|
|
323
|
+
default: re(() => [
|
|
324
324
|
s("div", {
|
|
325
|
-
class:
|
|
325
|
+
class: G(a.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
326
326
|
onClick: e[0] || (e[0] = (...n) => o.handleMenuToggle && o.handleMenuToggle(...n))
|
|
327
327
|
}, e[17] || (e[17] = [
|
|
328
328
|
s("span", { class: "iconfont" }, "", -1)
|
|
@@ -334,18 +334,18 @@ function $t(t, e, a, r, i, o) {
|
|
|
334
334
|
], 4),
|
|
335
335
|
s("div", {
|
|
336
336
|
class: "menu-bar-box",
|
|
337
|
-
style:
|
|
337
|
+
style: $({ top: a.top + 160 + "px", right: i.right + "px" })
|
|
338
338
|
}, [
|
|
339
339
|
s("div", wt, [
|
|
340
|
-
|
|
340
|
+
z(l, {
|
|
341
341
|
placement: "left",
|
|
342
342
|
effect: "light",
|
|
343
343
|
content: "Measure",
|
|
344
344
|
"show-after": 1e3
|
|
345
345
|
}, {
|
|
346
|
-
default:
|
|
346
|
+
default: re(() => [
|
|
347
347
|
s("div", {
|
|
348
|
-
class:
|
|
348
|
+
class: G(i.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
349
349
|
onClick: e[1] || (e[1] = (...n) => o.handleMeasureToggle && o.handleMeasureToggle(...n))
|
|
350
350
|
}, e[18] || (e[18] = [
|
|
351
351
|
s("span", { class: "iconfont" }, "", -1)
|
|
@@ -353,15 +353,15 @@ function $t(t, e, a, r, i, o) {
|
|
|
353
353
|
]),
|
|
354
354
|
_: 1
|
|
355
355
|
}),
|
|
356
|
-
|
|
356
|
+
z(l, {
|
|
357
357
|
placement: "left",
|
|
358
358
|
effect: "light",
|
|
359
359
|
content: "Point Meteo",
|
|
360
360
|
"show-after": 1e3
|
|
361
361
|
}, {
|
|
362
|
-
default:
|
|
362
|
+
default: re(() => [
|
|
363
363
|
s("div", {
|
|
364
|
-
class:
|
|
364
|
+
class: G(i.showPoint ? "menu-icon active" : "menu-icon"),
|
|
365
365
|
onClick: e[2] || (e[2] = (...n) => o.handlePointToggle && o.handlePointToggle(...n))
|
|
366
366
|
}, e[19] || (e[19] = [
|
|
367
367
|
s("span", { class: "iconfont" }, "", -1)
|
|
@@ -369,15 +369,15 @@ function $t(t, e, a, r, i, o) {
|
|
|
369
369
|
]),
|
|
370
370
|
_: 1
|
|
371
371
|
}),
|
|
372
|
-
|
|
372
|
+
z(l, {
|
|
373
373
|
placement: "left",
|
|
374
374
|
effect: "light",
|
|
375
375
|
content: "Grid",
|
|
376
376
|
"show-after": 1e3
|
|
377
377
|
}, {
|
|
378
|
-
default:
|
|
378
|
+
default: re(() => [
|
|
379
379
|
s("div", {
|
|
380
|
-
class:
|
|
380
|
+
class: G(i.showCoord ? "menu-icon active" : "menu-icon"),
|
|
381
381
|
onClick: e[3] || (e[3] = (...n) => o.handleCoordToggle && o.handleCoordToggle(...n))
|
|
382
382
|
}, e[20] || (e[20] = [
|
|
383
383
|
s("span", { class: "iconfont" }, "", -1)
|
|
@@ -385,15 +385,15 @@ function $t(t, e, a, r, i, o) {
|
|
|
385
385
|
]),
|
|
386
386
|
_: 1
|
|
387
387
|
}),
|
|
388
|
-
|
|
388
|
+
z(l, {
|
|
389
389
|
placement: "left",
|
|
390
390
|
effect: "light",
|
|
391
391
|
content: "3D",
|
|
392
392
|
"show-after": 1e3
|
|
393
393
|
}, {
|
|
394
|
-
default:
|
|
394
|
+
default: re(() => [
|
|
395
395
|
s("div", {
|
|
396
|
-
class:
|
|
396
|
+
class: G(i.show3d ? "menu-icon active" : "menu-icon"),
|
|
397
397
|
onClick: e[4] || (e[4] = (...n) => o.handle3DToggle && o.handle3DToggle(...n))
|
|
398
398
|
}, e[21] || (e[21] = [
|
|
399
399
|
s("span", { class: "iconfont" }, "", -1)
|
|
@@ -406,7 +406,7 @@ function $t(t, e, a, r, i, o) {
|
|
|
406
406
|
o.hasCollectedLayers ? (m(), g("div", {
|
|
407
407
|
key: 0,
|
|
408
408
|
class: "active-layers",
|
|
409
|
-
style:
|
|
409
|
+
style: $({ right: i.right + "px", bottom: "100px" })
|
|
410
410
|
}, [
|
|
411
411
|
s("div", bt, [
|
|
412
412
|
e[22] || (e[22] = s("div", { style: { margin: "2px 5px" } }, "Weather Layers", -1)),
|
|
@@ -418,46 +418,46 @@ function $t(t, e, a, r, i, o) {
|
|
|
418
418
|
i.autoActive ? (m(), g("i", vt, "")) : (m(), g("i", Lt, ""))
|
|
419
419
|
])
|
|
420
420
|
]),
|
|
421
|
-
(m(!0), g(
|
|
421
|
+
(m(!0), g(F, null, U(i.layers.weather.filter((n) => n.collected), (n) => (m(), g("div", {
|
|
422
422
|
key: n.key,
|
|
423
|
-
class:
|
|
423
|
+
class: G(o.computeLayerClass(n, i.activeWeatherLayersCollected))
|
|
424
424
|
}, [
|
|
425
425
|
s("div", {
|
|
426
426
|
class: "checkbox",
|
|
427
|
-
onClick: (
|
|
427
|
+
onClick: (u) => o.handleWeatherLayerPick(n)
|
|
428
428
|
}, null, 8, Ct),
|
|
429
429
|
s("span", {
|
|
430
430
|
class: "name",
|
|
431
|
-
onClick: (
|
|
432
|
-
},
|
|
433
|
-
n.key === "wind" && i.activeWeatherLayersCollected.some((
|
|
431
|
+
onClick: (u) => o.handleWeatherLayerPick(n)
|
|
432
|
+
}, E(n.name), 9, xt),
|
|
433
|
+
n.key === "wind" && i.activeWeatherLayersCollected.some((u) => u.key === n.key) ? (m(), g("div", Bt, [
|
|
434
434
|
s("i", {
|
|
435
|
-
class:
|
|
436
|
-
onClick: e[6] || (e[6] = (
|
|
435
|
+
class: G(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
436
|
+
onClick: e[6] || (e[6] = (u) => o.handleToggleWindParticle())
|
|
437
437
|
}, "", 2),
|
|
438
438
|
s("i", {
|
|
439
|
-
class:
|
|
440
|
-
onClick: e[7] || (e[7] = (
|
|
439
|
+
class: G(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
440
|
+
onClick: e[7] || (e[7] = (u) => o.handleToggleWindFeather())
|
|
441
441
|
}, "", 2)
|
|
442
|
-
])) :
|
|
443
|
-
n.key === "current" && i.activeWeatherLayersCollected.some((
|
|
442
|
+
])) : R("", !0),
|
|
443
|
+
n.key === "current" && i.activeWeatherLayersCollected.some((u) => u.key === n.key) ? (m(), g("div", It, [
|
|
444
444
|
s("i", {
|
|
445
|
-
class:
|
|
446
|
-
onClick: e[8] || (e[8] = (
|
|
445
|
+
class: G(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
446
|
+
onClick: e[8] || (e[8] = (u) => o.handleToggleCurrentParticle())
|
|
447
447
|
}, "", 2),
|
|
448
448
|
s("i", {
|
|
449
|
-
class:
|
|
450
|
-
onClick: e[9] || (e[9] = (
|
|
449
|
+
class: G(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
450
|
+
onClick: e[9] || (e[9] = (u) => o.handleToggleCurrentIsoband())
|
|
451
451
|
}, "", 2)
|
|
452
|
-
])) :
|
|
452
|
+
])) : R("", !0)
|
|
453
453
|
], 2))), 128))
|
|
454
|
-
], 4)) :
|
|
454
|
+
], 4)) : R("", !0),
|
|
455
455
|
s("div", {
|
|
456
456
|
class: "available-layers flex-center",
|
|
457
|
-
style:
|
|
457
|
+
style: $({ top: a.top + "px", right: a.layerToggle ? "0px" : "-240px" })
|
|
458
458
|
}, [
|
|
459
459
|
s("div", {
|
|
460
|
-
class:
|
|
460
|
+
class: G(["list-box", a.layerToggle ? "right-bar" : ""])
|
|
461
461
|
}, [
|
|
462
462
|
s("div", Et, [
|
|
463
463
|
e[23] || (e[23] = s("div", null, "Layers", -1)),
|
|
@@ -466,8 +466,8 @@ function $t(t, e, a, r, i, o) {
|
|
|
466
466
|
onClick: e[10] || (e[10] = (...n) => o.handleMenuToggle && o.handleMenuToggle(...n))
|
|
467
467
|
}, "")
|
|
468
468
|
]),
|
|
469
|
-
|
|
470
|
-
default:
|
|
469
|
+
z(p, { style: { flex: "1" } }, {
|
|
470
|
+
default: re(() => [
|
|
471
471
|
s("div", Dt, [
|
|
472
472
|
s("div", Pt, [
|
|
473
473
|
e[24] || (e[24] = s("div", null, "Weather Layers", -1)),
|
|
@@ -480,45 +480,45 @@ function $t(t, e, a, r, i, o) {
|
|
|
480
480
|
])
|
|
481
481
|
]),
|
|
482
482
|
s("div", zt, [
|
|
483
|
-
(m(!0), g(
|
|
483
|
+
(m(!0), g(F, null, U(i.layers.weather, (n) => (m(), g(F, {
|
|
484
484
|
key: n.key
|
|
485
485
|
}, [
|
|
486
|
-
n.hide ?
|
|
486
|
+
n.hide ? R("", !0) : (m(), g("div", {
|
|
487
487
|
key: 0,
|
|
488
|
-
class:
|
|
488
|
+
class: G(o.computeLayerClass(n, i.activeWeatherLayersCollected))
|
|
489
489
|
}, [
|
|
490
490
|
s("div", Tt, [
|
|
491
491
|
s("div", {
|
|
492
492
|
class: "checkbox",
|
|
493
|
-
onClick: (
|
|
493
|
+
onClick: (u) => o.handleWeatherLayerPick(n)
|
|
494
494
|
}, null, 8, Qt),
|
|
495
495
|
s("span", {
|
|
496
496
|
class: "name",
|
|
497
|
-
onClick: (
|
|
498
|
-
},
|
|
499
|
-
n.key === "wind" && i.activeWeatherLayersCollected.some((
|
|
497
|
+
onClick: (u) => o.handleWeatherLayerPick(n)
|
|
498
|
+
}, E(n.name), 9, St),
|
|
499
|
+
n.key === "wind" && i.activeWeatherLayersCollected.some((u) => u.key === n.key) ? (m(), g("div", _t, [
|
|
500
500
|
s("i", {
|
|
501
|
-
class:
|
|
502
|
-
onClick: e[12] || (e[12] = (
|
|
501
|
+
class: G(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
502
|
+
onClick: e[12] || (e[12] = (u) => o.handleToggleWindParticle())
|
|
503
503
|
}, "", 2),
|
|
504
504
|
s("i", {
|
|
505
|
-
class:
|
|
506
|
-
onClick: e[13] || (e[13] = (
|
|
505
|
+
class: G(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
506
|
+
onClick: e[13] || (e[13] = (u) => o.handleToggleWindFeather())
|
|
507
507
|
}, "", 2)
|
|
508
|
-
])) :
|
|
509
|
-
n.key === "current" && i.activeWeatherLayersCollected.some((
|
|
508
|
+
])) : R("", !0),
|
|
509
|
+
n.key === "current" && i.activeWeatherLayersCollected.some((u) => u.key === n.key) ? (m(), g("div", Ht, [
|
|
510
510
|
s("i", {
|
|
511
|
-
class:
|
|
512
|
-
onClick: e[14] || (e[14] = (
|
|
511
|
+
class: G(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
512
|
+
onClick: e[14] || (e[14] = (u) => o.handleToggleCurrentParticle())
|
|
513
513
|
}, "", 2),
|
|
514
514
|
s("i", {
|
|
515
|
-
class:
|
|
516
|
-
onClick: e[15] || (e[15] = (
|
|
515
|
+
class: G(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
516
|
+
onClick: e[15] || (e[15] = (u) => o.handleToggleCurrentIsoband())
|
|
517
517
|
}, "", 2)
|
|
518
|
-
])) :
|
|
518
|
+
])) : R("", !0)
|
|
519
519
|
]),
|
|
520
520
|
s("div", {
|
|
521
|
-
onClick: (
|
|
521
|
+
onClick: (u) => o.handleWeatherLayerCollect(n)
|
|
522
522
|
}, [
|
|
523
523
|
n.collected ? (m(), g("i", Nt, "")) : (m(), g("i", jt, ""))
|
|
524
524
|
], 8, Ot)
|
|
@@ -536,18 +536,18 @@ function $t(t, e, a, r, i, o) {
|
|
|
536
536
|
s("div", Rt, [
|
|
537
537
|
e[26] || (e[26] = s("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
538
538
|
s("div", Ft, [
|
|
539
|
-
(m(!0), g(
|
|
540
|
-
var
|
|
539
|
+
(m(!0), g(F, null, U(i.layers.other, (n) => {
|
|
540
|
+
var u;
|
|
541
541
|
return m(), g("div", {
|
|
542
542
|
key: n.key,
|
|
543
|
-
class:
|
|
544
|
-
onClick: (
|
|
543
|
+
class: G(["layer flex-between", o.computeLayerClass(n, i.activeOtherLayers)]),
|
|
544
|
+
onClick: (b) => o.handleOtherLayerPick(n)
|
|
545
545
|
}, [
|
|
546
546
|
s("div", Wt, [
|
|
547
547
|
s("div", Ut, [
|
|
548
|
-
(
|
|
548
|
+
(u = o.computeLayerClass(n, i.activeOtherLayers)) != null && u.includes("active") ? (m(), g("i", Yt, "")) : (m(), g("i", Kt, ""))
|
|
549
549
|
]),
|
|
550
|
-
s("span", null,
|
|
550
|
+
s("span", null, E(n.name), 1)
|
|
551
551
|
])
|
|
552
552
|
], 10, Gt);
|
|
553
553
|
}), 128))
|
|
@@ -556,23 +556,23 @@ function $t(t, e, a, r, i, o) {
|
|
|
556
556
|
s("div", Xt, [
|
|
557
557
|
e[27] || (e[27] = s("span", { class: "layers-title" }, "Forecast Model", -1)),
|
|
558
558
|
s("div", Jt, [
|
|
559
|
-
|
|
559
|
+
z(h, {
|
|
560
560
|
modelValue: i.source,
|
|
561
561
|
"onUpdate:modelValue": e[16] || (e[16] = (n) => i.source = n),
|
|
562
562
|
class: "layer-radio flex-col-start-start",
|
|
563
563
|
style: { width: "180px", "align-items": "flex-start" }
|
|
564
564
|
}, {
|
|
565
|
-
default:
|
|
566
|
-
(m(!0), g(
|
|
565
|
+
default: re(() => [
|
|
566
|
+
(m(!0), g(F, null, U(i.sourceList, (n, u) => (m(), pt(c, {
|
|
567
567
|
key: `source${n.name}`,
|
|
568
568
|
value: n.name
|
|
569
569
|
}, {
|
|
570
|
-
default:
|
|
571
|
-
var
|
|
570
|
+
default: re(() => {
|
|
571
|
+
var b, v, y, x, D, L;
|
|
572
572
|
return [
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
573
|
+
Z(E(n.name) + " ", 1),
|
|
574
|
+
u !== 0 ? (m(), g("span", qt, E(n.resolution) + "km " + E(n.length) + "days", 1)) : R("", !0),
|
|
575
|
+
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
576
|
];
|
|
577
577
|
}),
|
|
578
578
|
_: 2
|
|
@@ -589,7 +589,7 @@ function $t(t, e, a, r, i, o) {
|
|
|
589
589
|
], 4)
|
|
590
590
|
]);
|
|
591
591
|
}
|
|
592
|
-
const ea = /* @__PURE__ */
|
|
592
|
+
const ea = /* @__PURE__ */ O(At, [["render", $t]]);
|
|
593
593
|
const ta = {
|
|
594
594
|
name: "IdmWindBarb",
|
|
595
595
|
props: {
|
|
@@ -628,7 +628,7 @@ const ta = {
|
|
|
628
628
|
return {
|
|
629
629
|
source: "wind-barb-source",
|
|
630
630
|
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:
|
|
631
|
+
empty: M.featureCollection([]),
|
|
632
632
|
right: 10,
|
|
633
633
|
bottom: 125,
|
|
634
634
|
windBarbLoaded: !1
|
|
@@ -673,22 +673,22 @@ const ta = {
|
|
|
673
673
|
else {
|
|
674
674
|
this.map.addSource(this.source, { type: "geojson", data: c });
|
|
675
675
|
for (let h = 0; h < (this.barbs ?? []).length - 1; h++) {
|
|
676
|
-
const
|
|
676
|
+
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
677
|
this.map.addLayer(
|
|
678
678
|
{
|
|
679
|
-
id:
|
|
679
|
+
id: u,
|
|
680
680
|
type: "symbol",
|
|
681
681
|
filter: [
|
|
682
682
|
"all",
|
|
683
683
|
// @ts-ignore
|
|
684
|
-
[">=", "spd",
|
|
684
|
+
[">=", "spd", p],
|
|
685
685
|
// @ts-ignore
|
|
686
686
|
["<", "spd", n]
|
|
687
687
|
],
|
|
688
688
|
source: this.source,
|
|
689
689
|
layout: {
|
|
690
690
|
"symbol-placement": "point",
|
|
691
|
-
"icon-image":
|
|
691
|
+
"icon-image": u,
|
|
692
692
|
// mapbox sprite
|
|
693
693
|
"icon-size": 0.14,
|
|
694
694
|
"icon-offset": [0, -20],
|
|
@@ -735,18 +735,18 @@ const ta = {
|
|
|
735
735
|
function aa(t, e, a, r, i, o) {
|
|
736
736
|
return null;
|
|
737
737
|
}
|
|
738
|
-
const ia = /* @__PURE__ */
|
|
738
|
+
const ia = /* @__PURE__ */ O(ta, [["render", aa]]);
|
|
739
739
|
class Je {
|
|
740
740
|
constructor(e) {
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
741
|
+
K(this, "map");
|
|
742
|
+
K(this, "mercator");
|
|
743
|
+
K(this, "rampColorLayer");
|
|
744
|
+
K(this, "rampColorSource");
|
|
745
|
+
K(this, "particleLayer");
|
|
746
|
+
K(this, "particleSource");
|
|
747
|
+
K(this, "rampColorCanvas");
|
|
748
|
+
K(this, "particleCanvas");
|
|
749
|
+
K(this, "ratio");
|
|
750
750
|
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
751
|
}
|
|
752
752
|
/**
|
|
@@ -781,8 +781,8 @@ class Je {
|
|
|
781
781
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
782
782
|
*/
|
|
783
783
|
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 [
|
|
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]), [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));
|
|
785
|
+
return [u, b, p + v, n];
|
|
786
786
|
}
|
|
787
787
|
/**
|
|
788
788
|
* [视窗边界像素宽度]
|
|
@@ -799,11 +799,11 @@ class Je {
|
|
|
799
799
|
getWorldCopy(e, a) {
|
|
800
800
|
const r = 2 ** a, [i, o, l, c] = e.map((n) => ~~(n / (r * 256))), h = [];
|
|
801
801
|
for (let n = c; n <= o; n++)
|
|
802
|
-
for (let
|
|
803
|
-
h.push([
|
|
802
|
+
for (let u = i; u <= l; u++)
|
|
803
|
+
h.push([u, n]);
|
|
804
804
|
return h.map((n) => {
|
|
805
|
-
const
|
|
806
|
-
return [n[0] *
|
|
805
|
+
const u = 2 ** a * 256;
|
|
806
|
+
return [n[0] * u, n[1] * u, u];
|
|
807
807
|
});
|
|
808
808
|
}
|
|
809
809
|
resize() {
|
|
@@ -885,13 +885,13 @@ class Ce {
|
|
|
885
885
|
if (i) {
|
|
886
886
|
const o = { program: i }, l = e.getProgramParameter(i, e.ACTIVE_ATTRIBUTES);
|
|
887
887
|
for (let h = 0; h < l; h++) {
|
|
888
|
-
const
|
|
889
|
-
o[
|
|
888
|
+
const p = e.getActiveAttrib(i, h);
|
|
889
|
+
o[p.name] = e.getAttribLocation(i, p.name);
|
|
890
890
|
}
|
|
891
891
|
const c = e.getProgramParameter(i, e.ACTIVE_UNIFORMS);
|
|
892
892
|
for (let h = 0; h < c; h++) {
|
|
893
|
-
const
|
|
894
|
-
o[
|
|
893
|
+
const p = e.getActiveUniform(i, h);
|
|
894
|
+
o[p.name] = e.getUniformLocation(i, p.name);
|
|
895
895
|
}
|
|
896
896
|
return o;
|
|
897
897
|
}
|
|
@@ -906,8 +906,8 @@ class Ce {
|
|
|
906
906
|
const c = l.getContext("2d");
|
|
907
907
|
if (c && e) {
|
|
908
908
|
const h = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
|
|
909
|
-
return a.forEach(([
|
|
910
|
-
h.addColorStop(
|
|
909
|
+
return a.forEach(([p, n]) => {
|
|
910
|
+
h.addColorStop(p, n);
|
|
911
911
|
}), c.fillStyle = h, c.fillRect(0, 0, 256, 1), {
|
|
912
912
|
canvas: l,
|
|
913
913
|
texture: this.createTexture(
|
|
@@ -929,8 +929,8 @@ class Ce {
|
|
|
929
929
|
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
930
|
for (let n = 0; n < i; n++)
|
|
931
931
|
h[n] = n;
|
|
932
|
-
const
|
|
933
|
-
return { resolution: r, total: i, texture0: l, texture1: c, indexBuffer:
|
|
932
|
+
const p = this.createDataBuffer(e, "array", h);
|
|
933
|
+
return { resolution: r, total: i, texture0: l, texture1: c, indexBuffer: p };
|
|
934
934
|
}
|
|
935
935
|
bind(e, a, r) {
|
|
936
936
|
const i = this.createProgram(e, a, r);
|
|
@@ -945,13 +945,13 @@ class Ce {
|
|
|
945
945
|
return {};
|
|
946
946
|
}
|
|
947
947
|
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:
|
|
948
|
+
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();
|
|
949
|
+
return { particle: c, screen: h, update: p, quadBuffer: n, frameBuffer: u };
|
|
950
950
|
}
|
|
951
951
|
draw(e, a, r, i, o, l, c) {
|
|
952
|
-
var h,
|
|
952
|
+
var h, p;
|
|
953
953
|
if (a && r) {
|
|
954
|
-
e.resize(), a == null || a.viewport(0, 0, (h = a == null ? void 0 : a.canvas) == null ? void 0 : h.width, (
|
|
954
|
+
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
955
|
try {
|
|
956
956
|
a.useProgram(r);
|
|
957
957
|
const n = {
|
|
@@ -963,10 +963,10 @@ class Ce {
|
|
|
963
963
|
sRange: a.getUniformLocation(r, "u_range_s")
|
|
964
964
|
};
|
|
965
965
|
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,
|
|
966
|
+
const u = e.getBoundPixel(), b = e.map.getZoom() + 1, v = e.getWorldCopy(u, b);
|
|
967
|
+
for (const y of v) {
|
|
968
|
+
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]);
|
|
969
|
+
a.bindBuffer(a.ARRAY_BUFFER, l), a.bufferData(a.ARRAY_BUFFER, d, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
|
|
970
970
|
}
|
|
971
971
|
} catch (n) {
|
|
972
972
|
console.log(`render failed...${n}`);
|
|
@@ -1014,10 +1014,10 @@ class Ce {
|
|
|
1014
1014
|
});
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
|
-
class
|
|
1017
|
+
class ee {
|
|
1018
1018
|
}
|
|
1019
1019
|
// 顶点渲染
|
|
1020
|
-
|
|
1020
|
+
K(ee, "vertexSchema", `
|
|
1021
1021
|
//canvas 坐标系上的坐标 (x, y)
|
|
1022
1022
|
attribute vec2 a_position; //像素坐标
|
|
1023
1023
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -1032,7 +1032,7 @@ W(Z, "vertexSchema", `
|
|
|
1032
1032
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
1033
1033
|
v_texCoord = a_texCoord;
|
|
1034
1034
|
}`), // 类如风、流等u v双变量片元渲染
|
|
1035
|
-
|
|
1035
|
+
K(ee, "uvFragmentSchema", `
|
|
1036
1036
|
precision mediump float;
|
|
1037
1037
|
uniform sampler2D u_image;
|
|
1038
1038
|
uniform vec2 u_range_u_v;
|
|
@@ -1052,7 +1052,7 @@ W(Z, "uvFragmentSchema", `
|
|
|
1052
1052
|
|
|
1053
1053
|
gl_FragColor = color;
|
|
1054
1054
|
}`), // 类如浪、气压等单变量片元渲染
|
|
1055
|
-
|
|
1055
|
+
K(ee, "fragmentSchema", `
|
|
1056
1056
|
precision mediump float;
|
|
1057
1057
|
uniform sampler2D u_image; // 灰度
|
|
1058
1058
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -1063,9 +1063,9 @@ W(Z, "fragmentSchema", `
|
|
|
1063
1063
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
1064
1064
|
gl_FragColor = color;
|
|
1065
1065
|
}`);
|
|
1066
|
-
class
|
|
1066
|
+
class ae {
|
|
1067
1067
|
}
|
|
1068
|
-
|
|
1068
|
+
K(ae, "vertexSchema", `
|
|
1069
1069
|
precision mediump float;
|
|
1070
1070
|
|
|
1071
1071
|
attribute float a_index; // 索引
|
|
@@ -1089,7 +1089,7 @@ W(ee, "vertexSchema", `
|
|
|
1089
1089
|
gl_PointSize = 1.0;
|
|
1090
1090
|
// gl_PointSize = u_point;
|
|
1091
1091
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
1092
|
-
}`),
|
|
1092
|
+
}`), K(ae, "fragmentSchema", `
|
|
1093
1093
|
precision mediump float;
|
|
1094
1094
|
|
|
1095
1095
|
uniform sampler2D u_factor;
|
|
@@ -1111,7 +1111,7 @@ W(ee, "vertexSchema", `
|
|
|
1111
1111
|
|
|
1112
1112
|
float f = 1.0 - uv.b;
|
|
1113
1113
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
1114
|
-
}`),
|
|
1114
|
+
}`), K(ae, "quadVertSchema", `
|
|
1115
1115
|
precision mediump float;
|
|
1116
1116
|
|
|
1117
1117
|
attribute vec2 a_pos;
|
|
@@ -1121,7 +1121,7 @@ W(ee, "vertexSchema", `
|
|
|
1121
1121
|
void main() {
|
|
1122
1122
|
v_tex_pos = a_pos;
|
|
1123
1123
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
1124
|
-
}`),
|
|
1124
|
+
}`), K(ae, "screenFragmentSchema", `
|
|
1125
1125
|
precision mediump float;
|
|
1126
1126
|
|
|
1127
1127
|
uniform sampler2D u_screen;
|
|
@@ -1133,7 +1133,7 @@ W(ee, "vertexSchema", `
|
|
|
1133
1133
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
1134
1134
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
1135
1135
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
1136
|
-
}`),
|
|
1136
|
+
}`), K(ae, "updateFragmentSchema", `
|
|
1137
1137
|
precision mediump float;
|
|
1138
1138
|
|
|
1139
1139
|
uniform sampler2D u_particles;
|
|
@@ -1214,12 +1214,12 @@ W(ee, "vertexSchema", `
|
|
|
1214
1214
|
}`);
|
|
1215
1215
|
class ra {
|
|
1216
1216
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1217
|
+
K(this, "token");
|
|
1218
|
+
K(this, "mapboxCustomer");
|
|
1219
|
+
K(this, "i4");
|
|
1220
|
+
K(this, "hi");
|
|
1221
|
+
K(this, "td");
|
|
1222
|
+
K(this, "windy");
|
|
1223
1223
|
this.token = e, this.mapboxCustomer = {
|
|
1224
1224
|
source: this.initialOnlineStyle().sources.composite,
|
|
1225
1225
|
layers: {
|
|
@@ -3151,7 +3151,7 @@ const oa = {
|
|
|
3151
3151
|
[1, "rgb(91, 136, 161)"]
|
|
3152
3152
|
];
|
|
3153
3153
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
3154
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
3154
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.uvFragmentSchema);
|
|
3155
3155
|
this.program = e, this.aPositionBuffer = a;
|
|
3156
3156
|
}
|
|
3157
3157
|
this.handleParticleSetup();
|
|
@@ -3165,11 +3165,11 @@ const oa = {
|
|
|
3165
3165
|
];
|
|
3166
3166
|
this.wrapper = this.webgl.bindParticle(
|
|
3167
3167
|
this.particleContext,
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3168
|
+
ae.vertexSchema,
|
|
3169
|
+
ae.fragmentSchema,
|
|
3170
|
+
ae.quadVertSchema,
|
|
3171
|
+
ae.screenFragmentSchema,
|
|
3172
|
+
ae.updateFragmentSchema
|
|
3173
3173
|
), 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
3174
|
}
|
|
3175
3175
|
},
|
|
@@ -3205,7 +3205,7 @@ function na(t, e, a, r, i, o) {
|
|
|
3205
3205
|
return (l = a.factor) != null && l.active ? (m(), g("div", sa, [
|
|
3206
3206
|
s("div", {
|
|
3207
3207
|
class: "legend-bars flex-center",
|
|
3208
|
-
style:
|
|
3208
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
3209
3209
|
}, e[0] || (e[0] = [
|
|
3210
3210
|
s("span", null, "kts", -1),
|
|
3211
3211
|
s("span", null, "0", -1),
|
|
@@ -3216,9 +3216,9 @@ function na(t, e, a, r, i, o) {
|
|
|
3216
3216
|
s("span", null, "40", -1),
|
|
3217
3217
|
s("span", null, "60", -1)
|
|
3218
3218
|
]), 4)
|
|
3219
|
-
])) :
|
|
3219
|
+
])) : R("", !0);
|
|
3220
3220
|
}
|
|
3221
|
-
const la = /* @__PURE__ */
|
|
3221
|
+
const la = /* @__PURE__ */ O(oa, [["render", na], ["__scopeId", "data-v-14070127"]]);
|
|
3222
3222
|
const ca = {
|
|
3223
3223
|
name: "IdmCurrent",
|
|
3224
3224
|
props: {
|
|
@@ -3260,7 +3260,7 @@ const ca = {
|
|
|
3260
3260
|
directionLayer: "current-direction-layer",
|
|
3261
3261
|
speedLayer: "current-speed-layer",
|
|
3262
3262
|
speedLabelLayer: "current-speed-label-layer",
|
|
3263
|
-
empty:
|
|
3263
|
+
empty: M.featureCollection([]),
|
|
3264
3264
|
right: 10,
|
|
3265
3265
|
bottom: 95
|
|
3266
3266
|
};
|
|
@@ -3269,7 +3269,7 @@ const ca = {
|
|
|
3269
3269
|
"current.version": {
|
|
3270
3270
|
handler() {
|
|
3271
3271
|
var t;
|
|
3272
|
-
(t = this.current) != null && t.active ? this.handleRender() : this.handleClear(), this.$emit("handleToggleVersion");
|
|
3272
|
+
(t = this.current) != null && t.active && this.showCurrentIsoband ? this.handleRender() : this.handleClear(), this.$emit("handleToggleVersion");
|
|
3273
3273
|
},
|
|
3274
3274
|
deep: !0
|
|
3275
3275
|
},
|
|
@@ -3372,7 +3372,7 @@ const ca = {
|
|
|
3372
3372
|
function ha(t, e, a, r, i, o) {
|
|
3373
3373
|
return null;
|
|
3374
3374
|
}
|
|
3375
|
-
const da = /* @__PURE__ */
|
|
3375
|
+
const da = /* @__PURE__ */ O(ca, [["render", ha]]);
|
|
3376
3376
|
const pa = {
|
|
3377
3377
|
name: "IdmCurrentParticle",
|
|
3378
3378
|
props: {
|
|
@@ -3479,7 +3479,7 @@ const pa = {
|
|
|
3479
3479
|
[1, "rgb(195,194,194)"]
|
|
3480
3480
|
];
|
|
3481
3481
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
3482
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
3482
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.uvFragmentSchema);
|
|
3483
3483
|
this.program = e, this.aPositionBuffer = a;
|
|
3484
3484
|
}
|
|
3485
3485
|
this.handleParticleSetup();
|
|
@@ -3494,11 +3494,11 @@ const pa = {
|
|
|
3494
3494
|
];
|
|
3495
3495
|
this.wrapper = this.webgl.bindParticle(
|
|
3496
3496
|
this.particleContext,
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3497
|
+
ae.vertexSchema,
|
|
3498
|
+
ae.fragmentSchema,
|
|
3499
|
+
ae.quadVertSchema,
|
|
3500
|
+
ae.screenFragmentSchema,
|
|
3501
|
+
ae.updateFragmentSchema
|
|
3502
3502
|
), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = {
|
|
3503
3503
|
...this.wrapper,
|
|
3504
3504
|
...this.webgl.setupParticle(this.particleContext, 9e3),
|
|
@@ -3538,7 +3538,7 @@ function ma(t, e, a, r, i, o) {
|
|
|
3538
3538
|
return (l = a.factor) != null && l.active ? (m(), g("div", ua, [
|
|
3539
3539
|
s("div", {
|
|
3540
3540
|
class: "legend-bars flex-center",
|
|
3541
|
-
style:
|
|
3541
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
3542
3542
|
}, e[0] || (e[0] = [
|
|
3543
3543
|
s("span", null, "kts", -1),
|
|
3544
3544
|
s("span", null, "0", -1),
|
|
@@ -3548,9 +3548,9 @@ function ma(t, e, a, r, i, o) {
|
|
|
3548
3548
|
s("span", null, "2", -1),
|
|
3549
3549
|
s("span", null, "3.2", -1)
|
|
3550
3550
|
]), 4)
|
|
3551
|
-
])) :
|
|
3551
|
+
])) : R("", !0);
|
|
3552
3552
|
}
|
|
3553
|
-
const ga = /* @__PURE__ */
|
|
3553
|
+
const ga = /* @__PURE__ */ O(pa, [["render", ma], ["__scopeId", "data-v-02a8206f"]]), Aa = {
|
|
3554
3554
|
name: "IdmSigWave",
|
|
3555
3555
|
props: {
|
|
3556
3556
|
map: {
|
|
@@ -3571,7 +3571,7 @@ const ga = /* @__PURE__ */ S(pa, [["render", ma], ["__scopeId", "data-v-02a8206f
|
|
|
3571
3571
|
source: "sig-wave-source",
|
|
3572
3572
|
heightLayer: "sig-wave-height-layer",
|
|
3573
3573
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
3574
|
-
empty:
|
|
3574
|
+
empty: M.featureCollection([])
|
|
3575
3575
|
};
|
|
3576
3576
|
},
|
|
3577
3577
|
watch: {
|
|
@@ -3673,7 +3673,7 @@ const ga = /* @__PURE__ */ S(pa, [["render", ma], ["__scopeId", "data-v-02a8206f
|
|
|
3673
3673
|
function fa(t, e, a, r, i, o) {
|
|
3674
3674
|
return m(), g("div");
|
|
3675
3675
|
}
|
|
3676
|
-
const ya = /* @__PURE__ */
|
|
3676
|
+
const ya = /* @__PURE__ */ O(Aa, [["render", fa]]), wa = {
|
|
3677
3677
|
name: "IdmSwell",
|
|
3678
3678
|
props: {
|
|
3679
3679
|
map: {
|
|
@@ -3695,7 +3695,7 @@ const ya = /* @__PURE__ */ S(Aa, [["render", fa]]), wa = {
|
|
|
3695
3695
|
directionLayer: "swell-direction-layer",
|
|
3696
3696
|
heightLayer: "swell-height-layer",
|
|
3697
3697
|
heightLabelLayer: "swell-height-label-layer",
|
|
3698
|
-
empty:
|
|
3698
|
+
empty: M.featureCollection([])
|
|
3699
3699
|
};
|
|
3700
3700
|
},
|
|
3701
3701
|
watch: {
|
|
@@ -3831,7 +3831,7 @@ const ya = /* @__PURE__ */ S(Aa, [["render", fa]]), wa = {
|
|
|
3831
3831
|
function ba(t, e, a, r, i, o) {
|
|
3832
3832
|
return m(), g("div");
|
|
3833
3833
|
}
|
|
3834
|
-
const va = /* @__PURE__ */
|
|
3834
|
+
const va = /* @__PURE__ */ O(wa, [["render", ba]]), La = {
|
|
3835
3835
|
name: "IdmPrmsl",
|
|
3836
3836
|
props: {
|
|
3837
3837
|
map: {
|
|
@@ -3856,7 +3856,7 @@ const va = /* @__PURE__ */ S(wa, [["render", ba]]), La = {
|
|
|
3856
3856
|
layer: "prmsl-layer",
|
|
3857
3857
|
labelLayer: "prmsl-label-layer",
|
|
3858
3858
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
3859
|
-
empty:
|
|
3859
|
+
empty: M.featureCollection([])
|
|
3860
3860
|
};
|
|
3861
3861
|
},
|
|
3862
3862
|
watch: {
|
|
@@ -3970,7 +3970,7 @@ const va = /* @__PURE__ */ S(wa, [["render", ba]]), La = {
|
|
|
3970
3970
|
function Ca(t, e, a, r, i, o) {
|
|
3971
3971
|
return m(), g("div");
|
|
3972
3972
|
}
|
|
3973
|
-
const xa = /* @__PURE__ */
|
|
3973
|
+
const xa = /* @__PURE__ */ O(La, [["render", Ca]]);
|
|
3974
3974
|
const Ba = {
|
|
3975
3975
|
name: "IdmCover",
|
|
3976
3976
|
props: {
|
|
@@ -4050,7 +4050,7 @@ const Ba = {
|
|
|
4050
4050
|
// 100%
|
|
4051
4051
|
];
|
|
4052
4052
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4053
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
4053
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.fragmentSchema);
|
|
4054
4054
|
this.program = e, this.aPositionBuffer = a;
|
|
4055
4055
|
}
|
|
4056
4056
|
},
|
|
@@ -4069,7 +4069,7 @@ function Ea(t, e, a, r, i, o) {
|
|
|
4069
4069
|
return (l = a.factor) != null && l.active ? (m(), g("div", Ia, [
|
|
4070
4070
|
s("div", {
|
|
4071
4071
|
class: "legend-bars flex-center",
|
|
4072
|
-
style:
|
|
4072
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4073
4073
|
}, e[0] || (e[0] = [
|
|
4074
4074
|
s("span", null, "%", -1),
|
|
4075
4075
|
s("span", null, "20", -1),
|
|
@@ -4078,9 +4078,9 @@ function Ea(t, e, a, r, i, o) {
|
|
|
4078
4078
|
s("span", null, "80", -1),
|
|
4079
4079
|
s("span", null, "100", -1)
|
|
4080
4080
|
]), 4)
|
|
4081
|
-
])) :
|
|
4081
|
+
])) : R("", !0);
|
|
4082
4082
|
}
|
|
4083
|
-
const Da = /* @__PURE__ */
|
|
4083
|
+
const Da = /* @__PURE__ */ O(Ba, [["render", Ea], ["__scopeId", "data-v-efce05ef"]]);
|
|
4084
4084
|
const Pa = {
|
|
4085
4085
|
name: "IdmThickness",
|
|
4086
4086
|
props: {
|
|
@@ -4168,7 +4168,7 @@ const Pa = {
|
|
|
4168
4168
|
// 4m
|
|
4169
4169
|
];
|
|
4170
4170
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4171
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
4171
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.fragmentSchema);
|
|
4172
4172
|
this.program = e, this.aPositionBuffer = a;
|
|
4173
4173
|
}
|
|
4174
4174
|
},
|
|
@@ -4187,7 +4187,7 @@ function Ma(t, e, a, r, i, o) {
|
|
|
4187
4187
|
return (l = a.factor) != null && l.active ? (m(), g("div", ka, [
|
|
4188
4188
|
s("div", {
|
|
4189
4189
|
class: "legend-bars flex-center",
|
|
4190
|
-
style:
|
|
4190
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4191
4191
|
}, e[0] || (e[0] = [
|
|
4192
4192
|
s("span", null, "m", -1),
|
|
4193
4193
|
s("span", null, "0", -1),
|
|
@@ -4197,9 +4197,9 @@ function Ma(t, e, a, r, i, o) {
|
|
|
4197
4197
|
s("span", null, "2", -1),
|
|
4198
4198
|
s("span", null, "3", -1)
|
|
4199
4199
|
]), 4)
|
|
4200
|
-
])) :
|
|
4200
|
+
])) : R("", !0);
|
|
4201
4201
|
}
|
|
4202
|
-
const za = /* @__PURE__ */
|
|
4202
|
+
const za = /* @__PURE__ */ O(Pa, [["render", Ma], ["__scopeId", "data-v-348d48fb"]]);
|
|
4203
4203
|
const Ta = {
|
|
4204
4204
|
name: "IdmTropicals",
|
|
4205
4205
|
props: {
|
|
@@ -4238,9 +4238,9 @@ const Ta = {
|
|
|
4238
4238
|
showTropicals: !1,
|
|
4239
4239
|
activeTropicals: void 0,
|
|
4240
4240
|
activeTropicalsMarker: void 0,
|
|
4241
|
-
empty:
|
|
4241
|
+
empty: M.featureCollection([]),
|
|
4242
4242
|
circleSource: "circle-source",
|
|
4243
|
-
circleSourceData:
|
|
4243
|
+
circleSourceData: M.featureCollection([]),
|
|
4244
4244
|
circleLayer: "tropical-circle-layer"
|
|
4245
4245
|
};
|
|
4246
4246
|
},
|
|
@@ -4248,7 +4248,7 @@ const Ta = {
|
|
|
4248
4248
|
computeTime() {
|
|
4249
4249
|
return function(t) {
|
|
4250
4250
|
if (t) {
|
|
4251
|
-
const e =
|
|
4251
|
+
const e = X(t).utc().utcOffset(this.timeZone), a = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
4252
4252
|
return `${e.format("MMM-DD,HHmm")}[ UTC ${a} ] ( ${e == null ? void 0 : e.fromNow()} )`;
|
|
4253
4253
|
}
|
|
4254
4254
|
return "-";
|
|
@@ -4285,29 +4285,29 @@ const Ta = {
|
|
|
4285
4285
|
methods: {
|
|
4286
4286
|
handleRefresh() {
|
|
4287
4287
|
var r, i;
|
|
4288
|
-
const t = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e =
|
|
4288
|
+
const t = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = X().utc().hour(), a = [];
|
|
4289
4289
|
t.forEach((o) => {
|
|
4290
4290
|
var l, c, h;
|
|
4291
4291
|
(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
4292
|
}), a.forEach((o) => {
|
|
4293
|
-
var
|
|
4293
|
+
var p;
|
|
4294
4294
|
let l = 0, c;
|
|
4295
4295
|
const h = t.filter((n) => {
|
|
4296
|
-
var
|
|
4297
|
-
return ((
|
|
4296
|
+
var u;
|
|
4297
|
+
return ((u = n.properties) == null ? void 0 : u.name) === o;
|
|
4298
4298
|
});
|
|
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 =
|
|
4299
|
+
(p = h.filter((n) => {
|
|
4300
|
+
var u, b;
|
|
4301
|
+
return ((u = n.geometry) == null ? void 0 : u.type) === "LineString" && ((b = n.properties) == null ? void 0 : b.type) === "forecast";
|
|
4302
|
+
})[0]) == null || p.properties.model, h.forEach((n, u) => {
|
|
4303
|
+
var b, v, y, x, D, L;
|
|
4304
|
+
((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);
|
|
4305
|
+
}), h.map((n, u) => {
|
|
4306
|
+
var b, v, y, x, D, L, A;
|
|
4307
|
+
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") {
|
|
4308
|
+
n.properties.format = X(n.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
4309
|
+
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");
|
|
4310
|
+
n.properties.showHistoryLabel = f || u === l, n.properties.name = o;
|
|
4311
4311
|
}
|
|
4312
4312
|
return n;
|
|
4313
4313
|
});
|
|
@@ -4344,16 +4344,16 @@ const Ta = {
|
|
|
4344
4344
|
));
|
|
4345
4345
|
},
|
|
4346
4346
|
handleRender() {
|
|
4347
|
-
var t, e, a, r, i, o, l, c, h,
|
|
4347
|
+
var t, e, a, r, i, o, l, c, h, p;
|
|
4348
4348
|
if (!this.map)
|
|
4349
4349
|
setTimeout(() => {
|
|
4350
4350
|
this.handleRender();
|
|
4351
4351
|
}, 500);
|
|
4352
4352
|
else {
|
|
4353
4353
|
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),
|
|
4354
|
+
const u = (/* @__PURE__ */ new Date()).valueOf();
|
|
4355
|
+
let b = 0, v = 0;
|
|
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), v = (/* @__PURE__ */ new Date()).valueOf() - (u + b), console.log("[tropicals] update elapsed: ", v, ", total: ", b += v)) : (this.map.addSource(this.source, {
|
|
4357
4357
|
type: "geojson",
|
|
4358
4358
|
data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
|
|
4359
4359
|
}), this.map.addLayer({
|
|
@@ -4450,9 +4450,9 @@ const Ta = {
|
|
|
4450
4450
|
],
|
|
4451
4451
|
"text-halo-width": 4
|
|
4452
4452
|
}
|
|
4453
|
-
}),
|
|
4453
|
+
}), 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
4454
|
type: "geojson",
|
|
4455
|
-
data: (h = this.tropicals) != null && h.active ? (
|
|
4455
|
+
data: (h = this.tropicals) != null && h.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
4456
4456
|
// cluster: true,
|
|
4457
4457
|
// clusterRadius: 10, // 聚合半径
|
|
4458
4458
|
}), this.map.addLayer({
|
|
@@ -4567,7 +4567,7 @@ const Ta = {
|
|
|
4567
4567
|
"text-halo-color": "#0033ff",
|
|
4568
4568
|
"text-halo-width": 4
|
|
4569
4569
|
}
|
|
4570
|
-
}),
|
|
4570
|
+
}), v = (/* @__PURE__ */ new Date()).valueOf() - (u + b), console.log("[tropical] add elapsed: ", v, ", total: ", b += v));
|
|
4571
4571
|
}
|
|
4572
4572
|
this.handleDrawCircle();
|
|
4573
4573
|
const n = nt.interpolate(this.tropicals, 1);
|
|
@@ -4579,14 +4579,14 @@ const Ta = {
|
|
|
4579
4579
|
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
4580
|
},
|
|
4581
4581
|
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(
|
|
4582
|
+
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;
|
|
4583
|
+
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) {
|
|
4584
|
+
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]);
|
|
4585
|
+
Ae.forEach((N) => {
|
|
4586
|
+
oe.features.push(N);
|
|
4587
|
+
}), (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
4588
|
type: "geojson",
|
|
4589
|
-
data:
|
|
4589
|
+
data: oe
|
|
4590
4590
|
}), (o = this.map) == null || o.addLayer({
|
|
4591
4591
|
id: this.interpolateLineLayer,
|
|
4592
4592
|
type: "line",
|
|
@@ -4598,17 +4598,17 @@ const Ta = {
|
|
|
4598
4598
|
"line-width": 1
|
|
4599
4599
|
}
|
|
4600
4600
|
})), this.interpolateMarkers = [];
|
|
4601
|
-
for (const
|
|
4602
|
-
if (!
|
|
4603
|
-
let
|
|
4604
|
-
((c = (l =
|
|
4601
|
+
for (const N of ne)
|
|
4602
|
+
if (!N.properties.disabled) {
|
|
4603
|
+
let te = "#f44336";
|
|
4604
|
+
((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
4605
|
const fe = `<svg t="1719918955501"
|
|
4606
4606
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
4607
4607
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
4608
4608
|
<path
|
|
4609
4609
|
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="${
|
|
4610
|
+
fill="${te}" p-id="18383"></path>
|
|
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="${te}"
|
|
4612
4612
|
p-id="18384"></path>
|
|
4613
4613
|
<path
|
|
4614
4614
|
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 +4616,17 @@ const Ta = {
|
|
|
4616
4616
|
<path
|
|
4617
4617
|
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
4618
|
fill="#ffffff" p-id="18386"></path>
|
|
4619
|
-
</svg>`,
|
|
4620
|
-
|
|
4621
|
-
const
|
|
4622
|
-
if (this.interpolateMarkers.push(
|
|
4623
|
-
const
|
|
4624
|
-
(
|
|
4625
|
-
|
|
4626
|
-
), (
|
|
4627
|
-
|
|
4619
|
+
</svg>`, se = document.createElement("div");
|
|
4620
|
+
se.className = "hurricane-hourly-marker", se.innerHTML = `<div class="${N.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${fe}</div>`;
|
|
4621
|
+
const le = new ve.Marker(se).setLngLat(N.geometry.coordinates).addTo(this.map);
|
|
4622
|
+
if (this.interpolateMarkers.push(le), (Y = N.properties) != null && Y.showCircle) {
|
|
4623
|
+
const ce = { radius: 100, coordinates: N.geometry.coordinates }, I = { radius: 200, coordinates: N.geometry.coordinates }, Le = { radius: 500, coordinates: N.geometry.coordinates };
|
|
4624
|
+
(J = this.circleSourceData) == null || J.features.push(
|
|
4625
|
+
M.circle(ce.coordinates, ce.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4626
|
+
), (W = this.circleSourceData) == null || W.features.push(
|
|
4627
|
+
M.circle(I.coordinates, I.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4628
4628
|
), (de = this.circleSourceData) == null || de.features.push(
|
|
4629
|
-
|
|
4629
|
+
M.circle(Le.coordinates, Le.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4630
4630
|
);
|
|
4631
4631
|
}
|
|
4632
4632
|
(ue = (pe = this.map) == null ? void 0 : pe.getSource(this.circleSource)) == null || ue.setData(this.circleSourceData);
|
|
@@ -4635,28 +4635,28 @@ const Ta = {
|
|
|
4635
4635
|
(me = this.map) != null && me.getSource(this.interpolateSource) && ((ge = this.map) == null || ge.getSource(this.interpolateSource).setData(this.empty));
|
|
4636
4636
|
},
|
|
4637
4637
|
handleClick(t) {
|
|
4638
|
-
var o, l, c, h,
|
|
4638
|
+
var o, l, c, h, p, n, u, b;
|
|
4639
4639
|
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
|
|
4640
|
+
(v) => {
|
|
4641
|
+
var y;
|
|
4642
|
+
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
4643
|
}
|
|
4644
4644
|
);
|
|
4645
|
-
a.sort((
|
|
4646
|
-
var
|
|
4647
|
-
return ((
|
|
4645
|
+
a.sort((v, y) => {
|
|
4646
|
+
var x, D, L, A;
|
|
4647
|
+
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
4648
|
});
|
|
4649
4649
|
const r = (h = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : h.features.filter(
|
|
4650
|
-
(
|
|
4651
|
-
var
|
|
4652
|
-
return
|
|
4650
|
+
(v) => {
|
|
4651
|
+
var y;
|
|
4652
|
+
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
4653
|
}
|
|
4654
4654
|
);
|
|
4655
4655
|
this.activeTropicals = {
|
|
4656
|
-
name: (
|
|
4657
|
-
forecasts: a.map((
|
|
4656
|
+
name: (p = e == null ? void 0 : e.properties) == null ? void 0 : p.name,
|
|
4657
|
+
forecasts: a.map((v) => v.properties),
|
|
4658
4658
|
history: (n = r[0]) == null ? void 0 : n.properties,
|
|
4659
|
-
showCircle: (
|
|
4659
|
+
showCircle: (b = (u = a[0]) == null ? void 0 : u.properties) == null ? void 0 : b.showCircle
|
|
4660
4660
|
}, this.showTropicals = !0;
|
|
4661
4661
|
const i = document.getElementById("idm-tropical-gl3");
|
|
4662
4662
|
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 +4665,11 @@ const Ta = {
|
|
|
4665
4665
|
var r, i, o, l, c, h;
|
|
4666
4666
|
t.disabled = !t.disabled;
|
|
4667
4667
|
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(
|
|
4668
|
+
a.forEach((p) => {
|
|
4669
|
+
p.properties.category === e && (p.properties.disabled = t.disabled);
|
|
4670
|
+
}), this.interpolateData.forEach((p) => {
|
|
4671
|
+
p.properties.category === e && (p.properties.disabled = t.disabled);
|
|
4672
|
+
}), (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
4673
|
},
|
|
4674
4674
|
handleStrikeProbability(t) {
|
|
4675
4675
|
this.$emit("tropicalProbability", t);
|
|
@@ -4726,22 +4726,22 @@ const Ta = {
|
|
|
4726
4726
|
let h;
|
|
4727
4727
|
switch (l) {
|
|
4728
4728
|
case "ne":
|
|
4729
|
-
h =
|
|
4729
|
+
h = M.lineArc(t, c * 1.852, 0, 90, { steps: c > 0 ? 64 : 1 });
|
|
4730
4730
|
break;
|
|
4731
4731
|
case "se":
|
|
4732
|
-
h =
|
|
4732
|
+
h = M.lineArc(t, c * 1.852, 90, 180, { steps: c > 0 ? 64 : 1 });
|
|
4733
4733
|
break;
|
|
4734
4734
|
case "sw":
|
|
4735
|
-
h =
|
|
4735
|
+
h = M.lineArc(t, c * 1.852, 180, 270, { steps: c > 0 ? 64 : 1 });
|
|
4736
4736
|
break;
|
|
4737
4737
|
case "nw":
|
|
4738
|
-
h =
|
|
4738
|
+
h = M.lineArc(t, c * 1.852, 270, 360, { steps: c > 0 ? 64 : 1 });
|
|
4739
4739
|
break;
|
|
4740
4740
|
}
|
|
4741
4741
|
r.push(...(o = h == null ? void 0 : h.geometry) == null ? void 0 : o.coordinates);
|
|
4742
4742
|
}
|
|
4743
|
-
const i =
|
|
4744
|
-
return
|
|
4743
|
+
const i = M.lineString(r);
|
|
4744
|
+
return M.lineToPolygon(i, { properties: a });
|
|
4745
4745
|
}
|
|
4746
4746
|
}
|
|
4747
4747
|
}, Qa = {
|
|
@@ -4761,7 +4761,7 @@ const Ta = {
|
|
|
4761
4761
|
style: { "justify-content": "flex-start" }
|
|
4762
4762
|
}, Ya = { class: "forecast-models" }, Ka = ["onClick"], Xa = { class: "more" };
|
|
4763
4763
|
function Ja(t, e, a, r, i, o) {
|
|
4764
|
-
var l, c, h,
|
|
4764
|
+
var l, c, h, p, n, u, b, v, y, x, D, L, A, f, w;
|
|
4765
4765
|
return ye((m(), g("div", Qa, [
|
|
4766
4766
|
s("div", Sa, [
|
|
4767
4767
|
s("div", {
|
|
@@ -4769,41 +4769,41 @@ function Ja(t, e, a, r, i, o) {
|
|
|
4769
4769
|
onClick: e[0] || (e[0] = (B) => i.showTropicals = !1)
|
|
4770
4770
|
}, ""),
|
|
4771
4771
|
s("div", _a, [
|
|
4772
|
-
(c = (l = i.activeTropicals) == null ? void 0 : l.history) != null && c.level ? (m(), g("span", Ha,
|
|
4773
|
-
|
|
4772
|
+
(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),
|
|
4773
|
+
Z(E((n = i.activeTropicals) == null ? void 0 : n.name), 1)
|
|
4774
4774
|
]),
|
|
4775
|
-
s("div", Oa, " Last update: " +
|
|
4775
|
+
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
4776
|
]),
|
|
4777
4777
|
s("div", Na, [
|
|
4778
4778
|
s("div", ja, [
|
|
4779
4779
|
s("div", Ra, [
|
|
4780
4780
|
s("div", Fa, [
|
|
4781
4781
|
e[2] || (e[2] = s("label", null, "Wind speed : ", -1)),
|
|
4782
|
-
s("span", null,
|
|
4782
|
+
s("span", null, E(((L = (D = i.activeTropicals) == null ? void 0 : D.history) == null ? void 0 : L.kts) || "-") + "[kts]", 1)
|
|
4783
4783
|
]),
|
|
4784
4784
|
s("div", Ga, [
|
|
4785
4785
|
e[3] || (e[3] = s("label", null, "Pressure : ", -1)),
|
|
4786
|
-
s("span", null,
|
|
4786
|
+
s("span", null, E(((f = (A = i.activeTropicals) == null ? void 0 : A.history) == null ? void 0 : f.pressure) || "-") + "[hPa]", 1)
|
|
4787
4787
|
])
|
|
4788
4788
|
]),
|
|
4789
4789
|
s("div", Wa, [
|
|
4790
4790
|
s("div", Ua, [
|
|
4791
4791
|
e[4] || (e[4] = s("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
4792
4792
|
s("div", Ya, [
|
|
4793
|
-
(m(!0), g(
|
|
4794
|
-
var
|
|
4793
|
+
(m(!0), g(F, null, U((w = i.activeTropicals) == null ? void 0 : w.forecasts, (B, d) => {
|
|
4794
|
+
var P, Q, S, _;
|
|
4795
4795
|
return m(), g("div", {
|
|
4796
|
-
key:
|
|
4797
|
-
class:
|
|
4796
|
+
key: d,
|
|
4797
|
+
class: G([
|
|
4798
4798
|
"model",
|
|
4799
4799
|
B.disabled ? "" : "active",
|
|
4800
|
-
|
|
4800
|
+
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
4801
|
]),
|
|
4802
|
-
onClick: (
|
|
4802
|
+
onClick: (H) => o.handleForecastToggle(B)
|
|
4803
4803
|
}, [
|
|
4804
4804
|
s("span", {
|
|
4805
|
-
class:
|
|
4806
|
-
},
|
|
4805
|
+
class: G(B.model)
|
|
4806
|
+
}, E(B.model), 3)
|
|
4807
4807
|
], 10, Ka);
|
|
4808
4808
|
}), 128))
|
|
4809
4809
|
])
|
|
@@ -4822,7 +4822,7 @@ function Ja(t, e, a, r, i, o) {
|
|
|
4822
4822
|
[we, i.showTropicals && !t.$attrs.hideTropicalsLegend]
|
|
4823
4823
|
]);
|
|
4824
4824
|
}
|
|
4825
|
-
const lt = /* @__PURE__ */
|
|
4825
|
+
const lt = /* @__PURE__ */ O(Ta, [["render", Ja], ["__scopeId", "data-v-5947a418"]]);
|
|
4826
4826
|
const qa = {
|
|
4827
4827
|
name: "IdmPrecip3h",
|
|
4828
4828
|
props: {
|
|
@@ -4911,7 +4911,7 @@ const qa = {
|
|
|
4911
4911
|
[1, "rgba(197,5,58,0.8)"]
|
|
4912
4912
|
];
|
|
4913
4913
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4914
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
4914
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.fragmentSchema);
|
|
4915
4915
|
this.program = e, this.aPositionBuffer = a;
|
|
4916
4916
|
}
|
|
4917
4917
|
},
|
|
@@ -4930,7 +4930,7 @@ function Za(t, e, a, r, i, o) {
|
|
|
4930
4930
|
return (l = a.factor) != null && l.active ? (m(), g("div", Va, [
|
|
4931
4931
|
s("div", {
|
|
4932
4932
|
class: "legend-bars flex-center",
|
|
4933
|
-
style:
|
|
4933
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
4934
4934
|
}, e[0] || (e[0] = [
|
|
4935
4935
|
s("span", null, "mm", -1),
|
|
4936
4936
|
s("span", null, "1.5", -1),
|
|
@@ -4941,9 +4941,9 @@ function Za(t, e, a, r, i, o) {
|
|
|
4941
4941
|
s("span", null, "20", -1),
|
|
4942
4942
|
s("span", null, "30", -1)
|
|
4943
4943
|
]), 4)
|
|
4944
|
-
])) :
|
|
4944
|
+
])) : R("", !0);
|
|
4945
4945
|
}
|
|
4946
|
-
const $a = /* @__PURE__ */
|
|
4946
|
+
const $a = /* @__PURE__ */ O(qa, [["render", Za], ["__scopeId", "data-v-e83717bd"]]);
|
|
4947
4947
|
const ei = {
|
|
4948
4948
|
name: "IdmVisibility",
|
|
4949
4949
|
props: {
|
|
@@ -5025,7 +5025,7 @@ const ei = {
|
|
|
5025
5025
|
[1, "rgba(144,144,144,0)"]
|
|
5026
5026
|
];
|
|
5027
5027
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5028
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
5028
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.fragmentSchema);
|
|
5029
5029
|
this.program = e, this.aPositionBuffer = a;
|
|
5030
5030
|
}
|
|
5031
5031
|
},
|
|
@@ -5044,7 +5044,7 @@ function ai(t, e, a, r, i, o) {
|
|
|
5044
5044
|
return (l = a.factor) != null && l.active ? (m(), g("div", ti, [
|
|
5045
5045
|
s("div", {
|
|
5046
5046
|
class: "legend-bars flex-center",
|
|
5047
|
-
style:
|
|
5047
|
+
style: $([{ position: "absolute" }, { right: t.right + "px", bottom: a.bottom }])
|
|
5048
5048
|
}, e[0] || (e[0] = [
|
|
5049
5049
|
s("span", null, "nm", -1),
|
|
5050
5050
|
s("span", null, "0", -1),
|
|
@@ -5053,9 +5053,9 @@ function ai(t, e, a, r, i, o) {
|
|
|
5053
5053
|
s("span", null, "3", -1),
|
|
5054
5054
|
s("span", null, "9", -1)
|
|
5055
5055
|
]), 4)
|
|
5056
|
-
])) :
|
|
5056
|
+
])) : R("", !0);
|
|
5057
5057
|
}
|
|
5058
|
-
const ii = /* @__PURE__ */
|
|
5058
|
+
const ii = /* @__PURE__ */ O(ei, [["render", ai], ["__scopeId", "data-v-1c8a9237"]]);
|
|
5059
5059
|
const ri = {
|
|
5060
5060
|
name: "IdmWaterTemp",
|
|
5061
5061
|
props: {
|
|
@@ -5145,7 +5145,7 @@ const ri = {
|
|
|
5145
5145
|
//
|
|
5146
5146
|
];
|
|
5147
5147
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5148
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
5148
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.fragmentSchema);
|
|
5149
5149
|
this.program = e, this.aPositionBuffer = a;
|
|
5150
5150
|
}
|
|
5151
5151
|
},
|
|
@@ -5164,7 +5164,7 @@ function si(t, e, a, r, i, o) {
|
|
|
5164
5164
|
return (l = a.factor) != null && l.active ? (m(), g("div", oi, [
|
|
5165
5165
|
s("div", {
|
|
5166
5166
|
class: "legend-bars flex-center",
|
|
5167
|
-
style:
|
|
5167
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
5168
5168
|
}, e[0] || (e[0] = [
|
|
5169
5169
|
s("span", null, "°C", -1),
|
|
5170
5170
|
s("span", null, "0", -1),
|
|
@@ -5173,9 +5173,9 @@ function si(t, e, a, r, i, o) {
|
|
|
5173
5173
|
s("span", null, "30", -1),
|
|
5174
5174
|
s("span", null, "40", -1)
|
|
5175
5175
|
]), 4)
|
|
5176
|
-
])) :
|
|
5176
|
+
])) : R("", !0);
|
|
5177
5177
|
}
|
|
5178
|
-
const ni = /* @__PURE__ */
|
|
5178
|
+
const ni = /* @__PURE__ */ O(ri, [["render", si], ["__scopeId", "data-v-8974924d"]]);
|
|
5179
5179
|
const li = {
|
|
5180
5180
|
name: "IdmTemp",
|
|
5181
5181
|
props: {
|
|
@@ -5268,7 +5268,7 @@ const li = {
|
|
|
5268
5268
|
[1, "rgb(138, 43, 10)"]
|
|
5269
5269
|
];
|
|
5270
5270
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5271
|
-
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context,
|
|
5271
|
+
const { program: e, aPositionBuffer: a } = this.webgl.bind(this.context, ee.vertexSchema, ee.fragmentSchema);
|
|
5272
5272
|
this.program = e, this.aPositionBuffer = a;
|
|
5273
5273
|
}
|
|
5274
5274
|
},
|
|
@@ -5287,7 +5287,7 @@ function hi(t, e, a, r, i, o) {
|
|
|
5287
5287
|
return (l = a.factor) != null && l.active ? (m(), g("div", ci, [
|
|
5288
5288
|
s("div", {
|
|
5289
5289
|
class: "legend-bars flex-center",
|
|
5290
|
-
style:
|
|
5290
|
+
style: $([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
5291
5291
|
}, e[0] || (e[0] = [
|
|
5292
5292
|
s("span", null, "°C", -1),
|
|
5293
5293
|
s("span", null, "-20", -1),
|
|
@@ -5298,9 +5298,9 @@ function hi(t, e, a, r, i, o) {
|
|
|
5298
5298
|
s("span", null, "30", -1),
|
|
5299
5299
|
s("span", null, "40", -1)
|
|
5300
5300
|
]), 4)
|
|
5301
|
-
])) :
|
|
5301
|
+
])) : R("", !0);
|
|
5302
5302
|
}
|
|
5303
|
-
const di = /* @__PURE__ */
|
|
5303
|
+
const di = /* @__PURE__ */ O(li, [["render", hi], ["__scopeId", "data-v-d709ba86"]]);
|
|
5304
5304
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
5305
5305
|
var pi = /* @__PURE__ */ mt({
|
|
5306
5306
|
name: "LocationFilled",
|
|
@@ -5406,8 +5406,8 @@ const gi = {
|
|
|
5406
5406
|
var t;
|
|
5407
5407
|
if (this.showMeteo && this.ts) {
|
|
5408
5408
|
this.handleRender();
|
|
5409
|
-
const e =
|
|
5410
|
-
((t =
|
|
5409
|
+
const e = X();
|
|
5410
|
+
((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
5411
|
}
|
|
5412
5412
|
}
|
|
5413
5413
|
},
|
|
@@ -5416,8 +5416,8 @@ const gi = {
|
|
|
5416
5416
|
var t;
|
|
5417
5417
|
if (this.showMeteo = !0, this.tideData = {}, this.meteoData = {}, this.showMeteo && this.ts) {
|
|
5418
5418
|
this.handleRender();
|
|
5419
|
-
const e =
|
|
5420
|
-
if (((t =
|
|
5419
|
+
const e = X();
|
|
5420
|
+
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
5421
|
const r = Ye.pickDailyExtremes(this.tideData, this.ts);
|
|
5422
5422
|
(r == null ? void 0 : r.length) > 0 ? this.tideTableData = r : await this.fetchTidesData(this.point, this.ts, 7);
|
|
5423
5423
|
}
|
|
@@ -5428,7 +5428,7 @@ const gi = {
|
|
|
5428
5428
|
async handler() {
|
|
5429
5429
|
var t;
|
|
5430
5430
|
if (this.showMeteo && this.ts) {
|
|
5431
|
-
const e =
|
|
5431
|
+
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
5432
|
var c;
|
|
5433
5433
|
const l = Ge(this.ts).tz(this.positionGmt).add(3 * o, "h").format();
|
|
5434
5434
|
return (c = We.pickHourly(this.meteoData, l)) == null ? void 0 : c[0];
|
|
@@ -5449,7 +5449,7 @@ const gi = {
|
|
|
5449
5449
|
},
|
|
5450
5450
|
computeHourZ() {
|
|
5451
5451
|
return function(t) {
|
|
5452
|
-
return t ? `${
|
|
5452
|
+
return t ? `${X(t).utc().format("HH")}Z` : "-";
|
|
5453
5453
|
};
|
|
5454
5454
|
},
|
|
5455
5455
|
computeHourHmmLT() {
|
|
@@ -5459,24 +5459,24 @@ const gi = {
|
|
|
5459
5459
|
},
|
|
5460
5460
|
computeLat() {
|
|
5461
5461
|
return function(t, e = 4) {
|
|
5462
|
-
return
|
|
5462
|
+
return q.lat2pretty(t, e).pretty;
|
|
5463
5463
|
};
|
|
5464
5464
|
},
|
|
5465
5465
|
computeLng() {
|
|
5466
5466
|
return function(t, e = 4) {
|
|
5467
|
-
return
|
|
5467
|
+
return q.lng2pretty(t, e).pretty;
|
|
5468
5468
|
};
|
|
5469
5469
|
},
|
|
5470
5470
|
roundPrecision() {
|
|
5471
5471
|
return function(t, e = 4) {
|
|
5472
|
-
return isNaN(t) ? "-" :
|
|
5472
|
+
return isNaN(t) ? "-" : q.roundPrecision(t, e);
|
|
5473
5473
|
};
|
|
5474
5474
|
}
|
|
5475
5475
|
},
|
|
5476
5476
|
methods: {
|
|
5477
5477
|
async fetchMeteoData(t, e, a) {
|
|
5478
5478
|
this.loading = !0, this.meteoData = [];
|
|
5479
|
-
let r = e ?
|
|
5479
|
+
let r = e ? X(e).utc().format() : X().utc().format();
|
|
5480
5480
|
const { weatherModels: i, marineModels: o } = We.autoPickMeteoModel(this.forecastModel);
|
|
5481
5481
|
let l = {
|
|
5482
5482
|
lat: t.lat,
|
|
@@ -5485,7 +5485,7 @@ const gi = {
|
|
|
5485
5485
|
forecastDays: a ?? 7,
|
|
5486
5486
|
weatherModels: i,
|
|
5487
5487
|
marineModels: o
|
|
5488
|
-
}, c = await
|
|
5488
|
+
}, c = await he.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, l, {
|
|
5489
5489
|
headers: {
|
|
5490
5490
|
Authorization: this.token || this.defaultMeteoToken
|
|
5491
5491
|
}
|
|
@@ -5494,7 +5494,7 @@ const gi = {
|
|
|
5494
5494
|
},
|
|
5495
5495
|
async fetchHistoryData(t, e) {
|
|
5496
5496
|
this.loading = !0, this.meteoData = [];
|
|
5497
|
-
const a = e ?
|
|
5497
|
+
const a = e ? X(e).utc().format() : X().utc().format(), { weatherModels: r, marineModels: i } = We.autoPickMeteoModel(this.forecastModel), o = {
|
|
5498
5498
|
lat: t.lat,
|
|
5499
5499
|
lng: t.lng,
|
|
5500
5500
|
datetime: a,
|
|
@@ -5502,7 +5502,7 @@ const gi = {
|
|
|
5502
5502
|
pastDays: 1,
|
|
5503
5503
|
weatherModels: r,
|
|
5504
5504
|
marineModels: i
|
|
5505
|
-
}, l = await
|
|
5505
|
+
}, l = await he.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, o, {
|
|
5506
5506
|
headers: {
|
|
5507
5507
|
Authorization: this.token || this.defaultMeteoToken
|
|
5508
5508
|
}
|
|
@@ -5510,18 +5510,18 @@ const gi = {
|
|
|
5510
5510
|
(l == null ? void 0 : l.data.code) === 0 && (this.meteoData = l == null ? void 0 : l.data.data, this.loading = !1);
|
|
5511
5511
|
},
|
|
5512
5512
|
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
|
|
5513
|
+
var e, a, r, i, o, l, c, h, p;
|
|
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, 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(() => {
|
|
5515
|
+
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
5516
|
if (!document.getElementById("meteoMainBox"))
|
|
5517
5517
|
return !1;
|
|
5518
5518
|
if (!this.currentHourData)
|
|
5519
5519
|
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((
|
|
5520
|
+
for (let le = 0; le < 8; le++) {
|
|
5521
|
+
const ce = Ge(this.ts).tz(this.positionGmt).add(3 * le, "h").format();
|
|
5522
|
+
this.tableData.hours.push(ce);
|
|
5523
|
+
const I = ((u = We.pickHourly(t, ce)) == null ? void 0 : u[0]) || {};
|
|
5524
|
+
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
5525
|
}
|
|
5526
5526
|
});
|
|
5527
5527
|
},
|
|
@@ -5557,14 +5557,14 @@ const gi = {
|
|
|
5557
5557
|
},
|
|
5558
5558
|
async fetchTidesData(t, e, a) {
|
|
5559
5559
|
this.tideLoading = !0, this.tideData = {};
|
|
5560
|
-
let r = e ?
|
|
5560
|
+
let r = e ? X(e).utc().format() : X().utc().format(), i = {
|
|
5561
5561
|
lat: t.lat,
|
|
5562
5562
|
lng: t.lng,
|
|
5563
5563
|
date: r,
|
|
5564
5564
|
forecastDays: a ?? 7,
|
|
5565
5565
|
extremes: !0,
|
|
5566
5566
|
heights: !1
|
|
5567
|
-
}, o = await
|
|
5567
|
+
}, o = await he.post(`${this.gateway}/api/arc/meteo2/spot/tides/forecast`, i, {
|
|
5568
5568
|
headers: {
|
|
5569
5569
|
Authorization: this.token || this.defaultMeteoToken
|
|
5570
5570
|
}
|
|
@@ -5644,33 +5644,33 @@ const gi = {
|
|
|
5644
5644
|
class: "main-box flex-center"
|
|
5645
5645
|
};
|
|
5646
5646
|
function Ir(t, e, a, r, i, o) {
|
|
5647
|
-
var
|
|
5648
|
-
const l =
|
|
5647
|
+
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;
|
|
5648
|
+
const l = T("LocationFilled"), c = T("ElIcon"), h = T("ElTooltip");
|
|
5649
5649
|
return ye((m(), g("div", Ai, [
|
|
5650
5650
|
s("div", fi, [
|
|
5651
5651
|
s("div", yi, [
|
|
5652
5652
|
s("div", wi, [
|
|
5653
|
-
|
|
5654
|
-
default:
|
|
5655
|
-
|
|
5653
|
+
z(c, { size: "22" }, {
|
|
5654
|
+
default: re(() => [
|
|
5655
|
+
z(l)
|
|
5656
5656
|
]),
|
|
5657
5657
|
_: 1
|
|
5658
5658
|
}),
|
|
5659
|
-
s("div", bi,
|
|
5659
|
+
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
5660
|
]),
|
|
5661
5661
|
s("div", vi, [
|
|
5662
5662
|
i.showTables ? (m(), g("div", {
|
|
5663
5663
|
key: 0,
|
|
5664
5664
|
class: "iconfont toggle",
|
|
5665
|
-
onClick: e[0] || (e[0] = (
|
|
5665
|
+
onClick: e[0] || (e[0] = (C) => i.showTables = !i.showTables)
|
|
5666
5666
|
}, "")) : (m(), g("div", {
|
|
5667
5667
|
key: 1,
|
|
5668
5668
|
class: "iconfont toggle",
|
|
5669
|
-
onClick: e[1] || (e[1] = (
|
|
5669
|
+
onClick: e[1] || (e[1] = (C) => i.showTables = !i.showTables)
|
|
5670
5670
|
}, "")),
|
|
5671
5671
|
s("div", {
|
|
5672
5672
|
class: "iconfont close",
|
|
5673
|
-
onClick: e[2] || (e[2] = (...
|
|
5673
|
+
onClick: e[2] || (e[2] = (...C) => o.handleCloseMeteo && o.handleCloseMeteo(...C))
|
|
5674
5674
|
}, "")
|
|
5675
5675
|
])
|
|
5676
5676
|
]),
|
|
@@ -5678,21 +5678,21 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5678
5678
|
s("img", { src: mi }, null, -1)
|
|
5679
5679
|
]))) : (m(), g("div", {
|
|
5680
5680
|
key: 0,
|
|
5681
|
-
class:
|
|
5681
|
+
class: G(["main-box", i.isDay ? "day-bg" : "night-bg"]),
|
|
5682
5682
|
id: "meteoMainBox"
|
|
5683
5683
|
}, [
|
|
5684
5684
|
s("div", Li, [
|
|
5685
5685
|
s("div", Ci, [
|
|
5686
|
-
|
|
5686
|
+
z(h, {
|
|
5687
5687
|
placement: "top",
|
|
5688
5688
|
effect: "light",
|
|
5689
|
-
content: (
|
|
5689
|
+
content: (b = (u = i.currentHourData) == null ? void 0 : u.weather) == null ? void 0 : b.name,
|
|
5690
5690
|
"show-after": 1e3
|
|
5691
5691
|
}, {
|
|
5692
|
-
default:
|
|
5693
|
-
var
|
|
5692
|
+
default: re(() => {
|
|
5693
|
+
var C, k, ot, st;
|
|
5694
5694
|
return [
|
|
5695
|
-
(
|
|
5695
|
+
(k = (C = i.currentHourData) == null ? void 0 : C.weather) != null && k.url ? (m(), g("img", {
|
|
5696
5696
|
key: 0,
|
|
5697
5697
|
class: "iconfont icon",
|
|
5698
5698
|
style: { "margin-right": "5px" },
|
|
@@ -5704,47 +5704,47 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5704
5704
|
}, 8, ["content"]),
|
|
5705
5705
|
s("div", Ii, [
|
|
5706
5706
|
s("div", null, [
|
|
5707
|
-
|
|
5707
|
+
Z(E(o.roundPrecision((y = (v = i.currentHourData) == null ? void 0 : v.weather) == null ? void 0 : y.temp, 0)), 1),
|
|
5708
5708
|
e[8] || (e[8] = s("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
5709
5709
|
])
|
|
5710
5710
|
]),
|
|
5711
5711
|
s("div", Ei, [
|
|
5712
5712
|
s("div", Di, [
|
|
5713
5713
|
e[9] || (e[9] = s("label", null, "Precip : ", -1)),
|
|
5714
|
-
s("span", null,
|
|
5714
|
+
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
5715
|
]),
|
|
5716
5716
|
s("div", Pi, [
|
|
5717
5717
|
e[10] || (e[10] = s("label", null, "Visibility : ", -1)),
|
|
5718
|
-
s("span", null,
|
|
5718
|
+
s("span", null, E(o.roundPrecision((f = (A = i.currentHourData) == null ? void 0 : A.weather) == null ? void 0 : f.visibility, 0)) + " nm", 1)
|
|
5719
5719
|
]),
|
|
5720
5720
|
s("div", ki, [
|
|
5721
5721
|
e[11] || (e[11] = s("label", null, "Wind : ", -1)),
|
|
5722
|
-
s("span", null,
|
|
5722
|
+
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
5723
|
])
|
|
5724
5724
|
])
|
|
5725
5725
|
]),
|
|
5726
5726
|
s("div", Mi, [
|
|
5727
|
-
s("div", zi,
|
|
5728
|
-
s("div", Ti, "( UTC " +
|
|
5727
|
+
s("div", zi, E(i.localDate), 1),
|
|
5728
|
+
s("div", Ti, "( UTC " + E(i.positionOffset) + " )", 1)
|
|
5729
5729
|
])
|
|
5730
5730
|
]),
|
|
5731
5731
|
ye(s("div", Qi, [
|
|
5732
5732
|
s("div", Si, [
|
|
5733
5733
|
s("div", {
|
|
5734
|
-
class:
|
|
5735
|
-
onClick: e[3] || (e[3] = Ue((
|
|
5734
|
+
class: G(["menu-item", i.activeIndex === 1 ? "active" : ""]),
|
|
5735
|
+
onClick: e[3] || (e[3] = Ue((C) => o.handleSelectTab(1), ["prevent"]))
|
|
5736
5736
|
}, "Basis", 2),
|
|
5737
5737
|
s("div", {
|
|
5738
|
-
class:
|
|
5739
|
-
onClick: e[4] || (e[4] = Ue((
|
|
5738
|
+
class: G(["menu-item", i.activeIndex === 2 ? "active" : ""]),
|
|
5739
|
+
onClick: e[4] || (e[4] = Ue((C) => o.handleSelectTab(2), ["prevent"]))
|
|
5740
5740
|
}, "Wave & Current", 2),
|
|
5741
5741
|
s("div", {
|
|
5742
|
-
class:
|
|
5743
|
-
onClick: e[5] || (e[5] = Ue((
|
|
5742
|
+
class: G(["menu-item", i.activeIndex === 3 ? "active" : ""]),
|
|
5743
|
+
onClick: e[5] || (e[5] = Ue((C) => o.handleSelectTab(3), ["prevent"]))
|
|
5744
5744
|
}, "Sea Surface", 2),
|
|
5745
5745
|
s("div", {
|
|
5746
|
-
class:
|
|
5747
|
-
onClick: e[6] || (e[6] = Ue((
|
|
5746
|
+
class: G(["menu-item", i.activeIndex === 4 ? "active" : ""]),
|
|
5747
|
+
onClick: e[6] || (e[6] = Ue((C) => o.handleSelectTab(4), ["prevent"]))
|
|
5748
5748
|
}, "Tides", 2)
|
|
5749
5749
|
]),
|
|
5750
5750
|
ye(s("table", _i, [
|
|
@@ -5754,14 +5754,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5754
5754
|
colspan: "1",
|
|
5755
5755
|
class: "tr-title"
|
|
5756
5756
|
}, [
|
|
5757
|
-
|
|
5757
|
+
Z("Hours"),
|
|
5758
5758
|
s("span", { class: "unit" }, "(LT)")
|
|
5759
5759
|
], -1)),
|
|
5760
|
-
(m(!0), g(
|
|
5760
|
+
(m(!0), g(F, null, U(i.tableData.hours, (C) => (m(), g("th", {
|
|
5761
5761
|
rowspan: "1",
|
|
5762
5762
|
colspan: "1",
|
|
5763
|
-
key: `HourL${
|
|
5764
|
-
},
|
|
5763
|
+
key: `HourL${C}`
|
|
5764
|
+
}, E(o.computeHourL(C)), 1))), 128))
|
|
5765
5765
|
]),
|
|
5766
5766
|
s("tr", Oi, [
|
|
5767
5767
|
e[13] || (e[13] = s("th", {
|
|
@@ -5769,14 +5769,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5769
5769
|
colspan: "1",
|
|
5770
5770
|
class: "tr-title"
|
|
5771
5771
|
}, [
|
|
5772
|
-
|
|
5772
|
+
Z("UTC"),
|
|
5773
5773
|
s("span", { class: "unit" })
|
|
5774
5774
|
], -1)),
|
|
5775
|
-
(m(!0), g(
|
|
5775
|
+
(m(!0), g(F, null, U(i.tableData.hours, (C) => (m(), g("th", {
|
|
5776
5776
|
rowspan: "1",
|
|
5777
5777
|
colspan: "1",
|
|
5778
|
-
key: `HourZ${
|
|
5779
|
-
},
|
|
5778
|
+
key: `HourZ${C}`
|
|
5779
|
+
}, E(o.computeHourZ(C)), 1))), 128))
|
|
5780
5780
|
]),
|
|
5781
5781
|
s("tr", Ni, [
|
|
5782
5782
|
e[14] || (e[14] = s("th", {
|
|
@@ -5784,23 +5784,23 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5784
5784
|
colspan: "1",
|
|
5785
5785
|
class: "tr-title"
|
|
5786
5786
|
}, null, -1)),
|
|
5787
|
-
(m(!0), g(
|
|
5787
|
+
(m(!0), g(F, null, U(i.tableData.weatherUrls, (C, k) => (m(), g("th", {
|
|
5788
5788
|
rowspan: "1",
|
|
5789
5789
|
colspan: "1",
|
|
5790
|
-
key: `weatherUrls${
|
|
5790
|
+
key: `weatherUrls${k}${C}`
|
|
5791
5791
|
}, [
|
|
5792
|
-
|
|
5792
|
+
z(h, {
|
|
5793
5793
|
placement: "top",
|
|
5794
5794
|
effect: "light",
|
|
5795
|
-
content: i.tableData.weatherNames[
|
|
5795
|
+
content: i.tableData.weatherNames[k],
|
|
5796
5796
|
"show-after": 500
|
|
5797
5797
|
}, {
|
|
5798
|
-
default:
|
|
5799
|
-
|
|
5798
|
+
default: re(() => [
|
|
5799
|
+
C ? (m(), g("img", {
|
|
5800
5800
|
key: 0,
|
|
5801
5801
|
class: "iconfont weather-icon",
|
|
5802
|
-
src:
|
|
5803
|
-
}, null, 8, ji)) :
|
|
5802
|
+
src: C
|
|
5803
|
+
}, null, 8, ji)) : R("", !0)
|
|
5804
5804
|
]),
|
|
5805
5805
|
_: 2
|
|
5806
5806
|
}, 1032, ["content"])
|
|
@@ -5812,14 +5812,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5812
5812
|
colspan: "1",
|
|
5813
5813
|
class: "tr-title"
|
|
5814
5814
|
}, [
|
|
5815
|
-
|
|
5815
|
+
Z("Temp"),
|
|
5816
5816
|
s("span", { class: "unit" }, "°C")
|
|
5817
5817
|
], -1)),
|
|
5818
|
-
(m(!0), g(
|
|
5818
|
+
(m(!0), g(F, null, U(i.tableData.temp, (C, k) => (m(), g("td", {
|
|
5819
5819
|
rowspan: "1",
|
|
5820
5820
|
colspan: "1",
|
|
5821
|
-
key: `weatherUrls${
|
|
5822
|
-
},
|
|
5821
|
+
key: `weatherUrls${k}${C}`
|
|
5822
|
+
}, E(C), 1))), 128))
|
|
5823
5823
|
]),
|
|
5824
5824
|
s("tr", Fi, [
|
|
5825
5825
|
e[16] || (e[16] = s("td", {
|
|
@@ -5827,14 +5827,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5827
5827
|
colspan: "1",
|
|
5828
5828
|
class: "tr-title"
|
|
5829
5829
|
}, [
|
|
5830
|
-
|
|
5830
|
+
Z("Precip"),
|
|
5831
5831
|
s("span", { class: "unit" }, "mm")
|
|
5832
5832
|
], -1)),
|
|
5833
|
-
(m(!0), g(
|
|
5833
|
+
(m(!0), g(F, null, U(i.tableData.precip1h, (C, k) => (m(), g("td", {
|
|
5834
5834
|
rowspan: "1",
|
|
5835
5835
|
colspan: "1",
|
|
5836
|
-
key: `precip1h${
|
|
5837
|
-
},
|
|
5836
|
+
key: `precip1h${k}${C}`
|
|
5837
|
+
}, E(C), 1))), 128))
|
|
5838
5838
|
]),
|
|
5839
5839
|
s("tr", Gi, [
|
|
5840
5840
|
e[17] || (e[17] = s("td", {
|
|
@@ -5842,14 +5842,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5842
5842
|
colspan: "1",
|
|
5843
5843
|
class: "tr-title"
|
|
5844
5844
|
}, [
|
|
5845
|
-
|
|
5845
|
+
Z("Visibility"),
|
|
5846
5846
|
s("span", { class: "unit" }, "nm")
|
|
5847
5847
|
], -1)),
|
|
5848
|
-
(m(!0), g(
|
|
5848
|
+
(m(!0), g(F, null, U(i.tableData.visibility, (C, k) => (m(), g("td", {
|
|
5849
5849
|
rowspan: "1",
|
|
5850
5850
|
colspan: "1",
|
|
5851
|
-
key: `visibility${
|
|
5852
|
-
},
|
|
5851
|
+
key: `visibility${k}${C}`
|
|
5852
|
+
}, E(C), 1))), 128))
|
|
5853
5853
|
]),
|
|
5854
5854
|
s("tr", Wi, [
|
|
5855
5855
|
e[18] || (e[18] = s("td", {
|
|
@@ -5857,20 +5857,20 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5857
5857
|
colspan: "1",
|
|
5858
5858
|
class: "tr-title"
|
|
5859
5859
|
}, [
|
|
5860
|
-
|
|
5860
|
+
Z("Wind gust"),
|
|
5861
5861
|
s("span", { class: "unit" }, "kts")
|
|
5862
5862
|
], -1)),
|
|
5863
|
-
(m(!0), g(
|
|
5863
|
+
(m(!0), g(F, null, U(i.tableData.windGust, (C, k) => (m(), g("td", {
|
|
5864
5864
|
rowspan: "1",
|
|
5865
5865
|
colspan: "1",
|
|
5866
|
-
key: `windGust${
|
|
5866
|
+
key: `windGust${k}${C}`
|
|
5867
5867
|
}, [
|
|
5868
|
-
isNaN(i.tableData.windDir[
|
|
5868
|
+
isNaN(i.tableData.windDir[k]) ? R("", !0) : (m(), g("span", {
|
|
5869
5869
|
key: 0,
|
|
5870
5870
|
class: "iconfont icon blue",
|
|
5871
|
-
style:
|
|
5871
|
+
style: $({ display: "inline-block", transform: `rotate(${i.tableData.windDir[k]}deg)` })
|
|
5872
5872
|
}, "", 4)),
|
|
5873
|
-
s("span", null,
|
|
5873
|
+
s("span", null, E(C), 1)
|
|
5874
5874
|
]))), 128))
|
|
5875
5875
|
])
|
|
5876
5876
|
], 512), [
|
|
@@ -5883,14 +5883,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5883
5883
|
colspan: "1",
|
|
5884
5884
|
class: "tr-title"
|
|
5885
5885
|
}, [
|
|
5886
|
-
|
|
5886
|
+
Z("Hours"),
|
|
5887
5887
|
s("span", { class: "unit" }, "(LT)")
|
|
5888
5888
|
], -1)),
|
|
5889
|
-
(m(!0), g(
|
|
5889
|
+
(m(!0), g(F, null, U(i.tableData.hours, (C, k) => (m(), g("th", {
|
|
5890
5890
|
rowspan: "1",
|
|
5891
5891
|
colspan: "1",
|
|
5892
|
-
key: `currenthoursL${
|
|
5893
|
-
},
|
|
5892
|
+
key: `currenthoursL${k}${C}`
|
|
5893
|
+
}, E(o.computeHourL(C)), 1))), 128))
|
|
5894
5894
|
]),
|
|
5895
5895
|
s("tr", Ki, [
|
|
5896
5896
|
e[20] || (e[20] = s("th", {
|
|
@@ -5898,14 +5898,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5898
5898
|
colspan: "1",
|
|
5899
5899
|
class: "tr-title"
|
|
5900
5900
|
}, [
|
|
5901
|
-
|
|
5901
|
+
Z("UTC"),
|
|
5902
5902
|
s("span", { class: "unit" })
|
|
5903
5903
|
], -1)),
|
|
5904
|
-
(m(!0), g(
|
|
5904
|
+
(m(!0), g(F, null, U(i.tableData.hours, (C, k) => (m(), g("th", {
|
|
5905
5905
|
rowspan: "1",
|
|
5906
5906
|
colspan: "1",
|
|
5907
|
-
key: `currenthoursZ${
|
|
5908
|
-
},
|
|
5907
|
+
key: `currenthoursZ${k}${C}`
|
|
5908
|
+
}, E(o.computeHourZ(C)), 1))), 128))
|
|
5909
5909
|
]),
|
|
5910
5910
|
s("tr", Xi, [
|
|
5911
5911
|
e[21] || (e[21] = s("td", {
|
|
@@ -5913,20 +5913,20 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5913
5913
|
colspan: "1",
|
|
5914
5914
|
class: "tr-title"
|
|
5915
5915
|
}, [
|
|
5916
|
-
|
|
5916
|
+
Z("Wind"),
|
|
5917
5917
|
s("span", { class: "unit" }, "kts")
|
|
5918
5918
|
], -1)),
|
|
5919
|
-
(m(!0), g(
|
|
5919
|
+
(m(!0), g(F, null, U(i.tableData.windSpeed, (C, k) => (m(), g("td", {
|
|
5920
5920
|
rowspan: "1",
|
|
5921
5921
|
colspan: "1",
|
|
5922
|
-
key: `windSpeed${
|
|
5922
|
+
key: `windSpeed${k}${C}`
|
|
5923
5923
|
}, [
|
|
5924
|
-
isNaN(i.tableData.windDir[
|
|
5924
|
+
isNaN(i.tableData.windDir[k]) ? R("", !0) : (m(), g("span", {
|
|
5925
5925
|
key: 0,
|
|
5926
5926
|
class: "iconfont icon wind",
|
|
5927
|
-
style:
|
|
5927
|
+
style: $({ display: "inline-block", transform: `rotate(${i.tableData.windDir[k]}deg)` })
|
|
5928
5928
|
}, "", 4)),
|
|
5929
|
-
s("span", null,
|
|
5929
|
+
s("span", null, E(C), 1)
|
|
5930
5930
|
]))), 128))
|
|
5931
5931
|
]),
|
|
5932
5932
|
s("tr", Ji, [
|
|
@@ -5935,20 +5935,20 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5935
5935
|
colspan: "1",
|
|
5936
5936
|
class: "tr-title"
|
|
5937
5937
|
}, [
|
|
5938
|
-
|
|
5938
|
+
Z("Sig Wave"),
|
|
5939
5939
|
s("span", { class: "unit" }, "m")
|
|
5940
5940
|
], -1)),
|
|
5941
|
-
(m(!0), g(
|
|
5941
|
+
(m(!0), g(F, null, U(i.tableData.sigwaveHeight, (C, k) => (m(), g("td", {
|
|
5942
5942
|
rowspan: "1",
|
|
5943
5943
|
colspan: "1",
|
|
5944
|
-
key: `sigwaveHeight${
|
|
5944
|
+
key: `sigwaveHeight${k}${C}`
|
|
5945
5945
|
}, [
|
|
5946
|
-
isNaN(i.tableData.sigwaveDir[
|
|
5946
|
+
isNaN(i.tableData.sigwaveDir[k]) ? R("", !0) : (m(), g("span", {
|
|
5947
5947
|
key: 0,
|
|
5948
5948
|
class: "iconfont icon sigwave",
|
|
5949
|
-
style:
|
|
5949
|
+
style: $({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[k]}deg)` })
|
|
5950
5950
|
}, "", 4)),
|
|
5951
|
-
s("span", null,
|
|
5951
|
+
s("span", null, E(C), 1)
|
|
5952
5952
|
]))), 128))
|
|
5953
5953
|
]),
|
|
5954
5954
|
s("tr", qi, [
|
|
@@ -5957,20 +5957,20 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5957
5957
|
colspan: "1",
|
|
5958
5958
|
class: "tr-title"
|
|
5959
5959
|
}, [
|
|
5960
|
-
|
|
5960
|
+
Z("Wind Wave"),
|
|
5961
5961
|
s("span", { class: "unit" }, "m")
|
|
5962
5962
|
], -1)),
|
|
5963
|
-
(m(!0), g(
|
|
5963
|
+
(m(!0), g(F, null, U(i.tableData.windwaveHeight, (C, k) => (m(), g("td", {
|
|
5964
5964
|
rowspan: "1",
|
|
5965
5965
|
colspan: "1",
|
|
5966
|
-
key: `windwaveHeight${
|
|
5966
|
+
key: `windwaveHeight${k}${C}`
|
|
5967
5967
|
}, [
|
|
5968
|
-
isNaN(i.tableData.sigwaveDir[
|
|
5968
|
+
isNaN(i.tableData.sigwaveDir[k]) ? R("", !0) : (m(), g("span", {
|
|
5969
5969
|
key: 0,
|
|
5970
5970
|
class: "iconfont icon windwave",
|
|
5971
|
-
style:
|
|
5971
|
+
style: $({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[k]}deg)` })
|
|
5972
5972
|
}, "", 4)),
|
|
5973
|
-
s("span", null,
|
|
5973
|
+
s("span", null, E(C), 1)
|
|
5974
5974
|
]))), 128))
|
|
5975
5975
|
]),
|
|
5976
5976
|
s("tr", Vi, [
|
|
@@ -5979,20 +5979,20 @@ function Ir(t, e, a, r, i, o) {
|
|
|
5979
5979
|
colspan: "1",
|
|
5980
5980
|
class: "tr-title"
|
|
5981
5981
|
}, [
|
|
5982
|
-
|
|
5982
|
+
Z("Swell"),
|
|
5983
5983
|
s("span", { class: "unit" }, "m")
|
|
5984
5984
|
], -1)),
|
|
5985
|
-
(m(!0), g(
|
|
5985
|
+
(m(!0), g(F, null, U(i.tableData.swellHeight, (C, k) => (m(), g("td", {
|
|
5986
5986
|
rowspan: "1",
|
|
5987
5987
|
colspan: "1",
|
|
5988
|
-
key: `swellHeight${
|
|
5988
|
+
key: `swellHeight${k}${C}`
|
|
5989
5989
|
}, [
|
|
5990
|
-
isNaN(i.tableData.swellDir[
|
|
5990
|
+
isNaN(i.tableData.swellDir[k]) ? R("", !0) : (m(), g("span", {
|
|
5991
5991
|
key: 0,
|
|
5992
5992
|
class: "iconfont icon swell",
|
|
5993
|
-
style:
|
|
5993
|
+
style: $({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[k]}deg)` })
|
|
5994
5994
|
}, "", 4)),
|
|
5995
|
-
s("span", null,
|
|
5995
|
+
s("span", null, E(C), 1)
|
|
5996
5996
|
]))), 128))
|
|
5997
5997
|
]),
|
|
5998
5998
|
s("tr", Zi, [
|
|
@@ -6001,21 +6001,21 @@ function Ir(t, e, a, r, i, o) {
|
|
|
6001
6001
|
colspan: "1",
|
|
6002
6002
|
class: "tr-title"
|
|
6003
6003
|
}, [
|
|
6004
|
-
|
|
6004
|
+
Z("Current"),
|
|
6005
6005
|
s("span", { class: "unit" }, "kts")
|
|
6006
6006
|
], -1)),
|
|
6007
|
-
(m(!0), g(
|
|
6007
|
+
(m(!0), g(F, null, U(i.tableData.currentSpeed, (C, k) => (m(), g("td", {
|
|
6008
6008
|
rowspan: "1",
|
|
6009
6009
|
colspan: "1",
|
|
6010
|
-
key: `currentSpeed${
|
|
6010
|
+
key: `currentSpeed${k}${C}`
|
|
6011
6011
|
}, [
|
|
6012
|
-
isNaN(i.tableData.currentDir[
|
|
6012
|
+
isNaN(i.tableData.currentDir[k]) ? R("", !0) : (m(), g("span", {
|
|
6013
6013
|
key: 0,
|
|
6014
6014
|
class: "iconfont icon current",
|
|
6015
6015
|
id: "meteoGrayIcon",
|
|
6016
|
-
style:
|
|
6016
|
+
style: $({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[k]}deg)` })
|
|
6017
6017
|
}, "", 4)),
|
|
6018
|
-
s("span", null,
|
|
6018
|
+
s("span", null, E(C), 1)
|
|
6019
6019
|
]))), 128))
|
|
6020
6020
|
])
|
|
6021
6021
|
], 512), [
|
|
@@ -6028,14 +6028,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
6028
6028
|
colspan: "1",
|
|
6029
6029
|
class: "tr-title"
|
|
6030
6030
|
}, [
|
|
6031
|
-
|
|
6031
|
+
Z("Hours"),
|
|
6032
6032
|
s("span", { class: "unit" }, "(LT)")
|
|
6033
6033
|
], -1)),
|
|
6034
|
-
(m(!0), g(
|
|
6034
|
+
(m(!0), g(F, null, U(i.tableData.hours, (C, k) => (m(), g("th", {
|
|
6035
6035
|
rowspan: "1",
|
|
6036
6036
|
colspan: "1",
|
|
6037
|
-
key: `seahoursL${
|
|
6038
|
-
},
|
|
6037
|
+
key: `seahoursL${k}${C}`
|
|
6038
|
+
}, E(o.computeHourL(C)), 1))), 128))
|
|
6039
6039
|
]),
|
|
6040
6040
|
s("tr", tr, [
|
|
6041
6041
|
e[27] || (e[27] = s("th", {
|
|
@@ -6043,14 +6043,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
6043
6043
|
colspan: "1",
|
|
6044
6044
|
class: "tr-title"
|
|
6045
6045
|
}, [
|
|
6046
|
-
|
|
6046
|
+
Z("UTC"),
|
|
6047
6047
|
s("span", { class: "unit" })
|
|
6048
6048
|
], -1)),
|
|
6049
|
-
(m(!0), g(
|
|
6049
|
+
(m(!0), g(F, null, U(i.tableData.hours, (C, k) => (m(), g("th", {
|
|
6050
6050
|
rowspan: "1",
|
|
6051
6051
|
colspan: "1",
|
|
6052
|
-
key: `seahoursZ${
|
|
6053
|
-
},
|
|
6052
|
+
key: `seahoursZ${k}${C}`
|
|
6053
|
+
}, E(o.computeHourZ(C)), 1))), 128))
|
|
6054
6054
|
]),
|
|
6055
6055
|
s("tr", ar, [
|
|
6056
6056
|
e[28] || (e[28] = s("td", {
|
|
@@ -6058,14 +6058,14 @@ function Ir(t, e, a, r, i, o) {
|
|
|
6058
6058
|
colspan: "1",
|
|
6059
6059
|
class: "tr-title"
|
|
6060
6060
|
}, [
|
|
6061
|
-
|
|
6061
|
+
Z("SeaLevel"),
|
|
6062
6062
|
s("span", { class: "unit" }, "m")
|
|
6063
6063
|
], -1)),
|
|
6064
|
-
(m(!0), g(
|
|
6064
|
+
(m(!0), g(F, null, U(i.tableData.seaLevel, (C, k) => (m(), g("td", {
|
|
6065
6065
|
rowspan: "1",
|
|
6066
6066
|
colspan: "1",
|
|
6067
|
-
key: `SeaLevel${
|
|
6068
|
-
},
|
|
6067
|
+
key: `SeaLevel${k}${C}`
|
|
6068
|
+
}, E(C), 1))), 128))
|
|
6069
6069
|
]),
|
|
6070
6070
|
s("tr", ir, [
|
|
6071
6071
|
e[29] || (e[29] = s("td", {
|
|
@@ -6073,42 +6073,42 @@ function Ir(t, e, a, r, i, o) {
|
|
|
6073
6073
|
colspan: "1",
|
|
6074
6074
|
class: "tr-title"
|
|
6075
6075
|
}, [
|
|
6076
|
-
|
|
6076
|
+
Z("SeaTemp"),
|
|
6077
6077
|
s("span", { class: "unit" }, "°C")
|
|
6078
6078
|
], -1)),
|
|
6079
|
-
(m(!0), g(
|
|
6079
|
+
(m(!0), g(F, null, U(i.tableData.seaTemp, (C, k) => (m(), g("td", {
|
|
6080
6080
|
rowspan: "1",
|
|
6081
6081
|
colspan: "1",
|
|
6082
|
-
key: `SeaTemp${
|
|
6083
|
-
},
|
|
6082
|
+
key: `SeaTemp${k}${C}`
|
|
6083
|
+
}, E(C), 1))), 128))
|
|
6084
6084
|
])
|
|
6085
6085
|
], 512), [
|
|
6086
6086
|
[we, i.activeIndex === 3]
|
|
6087
6087
|
]),
|
|
6088
6088
|
i.activeIndex === 3 ? (m(), g("div", rr, e[30] || (e[30] = [
|
|
6089
6089
|
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
|
-
]))) :
|
|
6090
|
+
]))) : R("", !0),
|
|
6091
6091
|
ye(s("table", or, [
|
|
6092
6092
|
s("tr", sr, [
|
|
6093
|
-
(m(!0), g(
|
|
6093
|
+
(m(!0), g(F, null, U(i.tideTableData, (C, k) => (m(), g("th", {
|
|
6094
6094
|
rowspan: "1",
|
|
6095
6095
|
colspan: "1",
|
|
6096
|
-
key: `Tide-tr-${
|
|
6097
|
-
},
|
|
6096
|
+
key: `Tide-tr-${k}${C}`
|
|
6097
|
+
}, E(C.type) + " Tide", 1))), 128))
|
|
6098
6098
|
]),
|
|
6099
6099
|
s("tr", nr, [
|
|
6100
|
-
(m(!0), g(
|
|
6100
|
+
(m(!0), g(F, null, U(i.tideTableData, (C, k) => (m(), g("td", {
|
|
6101
6101
|
rowspan: "1",
|
|
6102
6102
|
colspan: "1",
|
|
6103
|
-
key: `Tide-date-${
|
|
6104
|
-
},
|
|
6103
|
+
key: `Tide-date-${k}${C}`
|
|
6104
|
+
}, E(o.computeHourHmmLT(C == null ? void 0 : C.date)), 1))), 128))
|
|
6105
6105
|
]),
|
|
6106
6106
|
s("tr", lr, [
|
|
6107
|
-
(m(!0), g(
|
|
6107
|
+
(m(!0), g(F, null, U(i.tideTableData, (C, k) => (m(), g("td", {
|
|
6108
6108
|
rowspan: "1",
|
|
6109
6109
|
colspan: "1",
|
|
6110
|
-
key: `Tide-height-${
|
|
6111
|
-
},
|
|
6110
|
+
key: `Tide-height-${k}${C}`
|
|
6111
|
+
}, E(o.roundPrecision(C == null ? void 0 : C.height, 2)) + " m", 1))), 128))
|
|
6112
6112
|
]),
|
|
6113
6113
|
e[31] || (e[31] = s("tr", { class: "tr-tide flex-center info" }, [
|
|
6114
6114
|
s("span", null, "Tide Datum: Chart Datum")
|
|
@@ -6117,65 +6117,65 @@ function Ir(t, e, a, r, i, o) {
|
|
|
6117
6117
|
[we, i.activeIndex === 4]
|
|
6118
6118
|
])
|
|
6119
6119
|
], 512), [
|
|
6120
|
-
[we, ((
|
|
6120
|
+
[we, ((Q = (P = i.tableData) == null ? void 0 : P.hours) == null ? void 0 : Q.length) > 0 && i.showTables]
|
|
6121
6121
|
]),
|
|
6122
6122
|
ye(s("div", cr, [
|
|
6123
6123
|
s("div", hr, [
|
|
6124
6124
|
s("div", dr, [
|
|
6125
6125
|
e[32] || (e[32] = s("div", null, "Wind", -1)),
|
|
6126
|
-
s("div", null,
|
|
6126
|
+
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
6127
|
]),
|
|
6128
6128
|
s("div", pr, [
|
|
6129
6129
|
e[33] || (e[33] = s("div", null, "Sig wave", -1)),
|
|
6130
|
-
s("div", null,
|
|
6130
|
+
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
6131
|
])
|
|
6132
6132
|
]),
|
|
6133
6133
|
s("div", ur, [
|
|
6134
6134
|
s("div", mr, [
|
|
6135
6135
|
e[34] || (e[34] = s("div", null, "Wind wave", -1)),
|
|
6136
|
-
s("div", null,
|
|
6136
|
+
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
6137
|
]),
|
|
6138
6138
|
s("div", gr, [
|
|
6139
6139
|
e[35] || (e[35] = s("div", null, "Swell", -1)),
|
|
6140
|
-
s("div", null,
|
|
6140
|
+
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
6141
|
])
|
|
6142
6142
|
]),
|
|
6143
6143
|
s("div", Ar, [
|
|
6144
6144
|
s("div", fr, [
|
|
6145
6145
|
e[36] || (e[36] = s("div", null, "Current", -1)),
|
|
6146
|
-
s("div", null,
|
|
6146
|
+
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
6147
|
]),
|
|
6148
6148
|
s("div", yr, [
|
|
6149
6149
|
e[37] || (e[37] = s("div", null, "Sea level", -1)),
|
|
6150
|
-
s("div", null,
|
|
6150
|
+
s("div", null, E(o.roundPrecision((qe = i.currentHourData) == null ? void 0 : qe.height, 1)) + "m", 1)
|
|
6151
6151
|
])
|
|
6152
6152
|
]),
|
|
6153
6153
|
s("div", wr, [
|
|
6154
6154
|
s("div", br, [
|
|
6155
6155
|
e[38] || (e[38] = s("div", null, "Sea Temp", -1)),
|
|
6156
|
-
s("div", null,
|
|
6156
|
+
s("div", null, E(o.roundPrecision((Ve = i.currentHourData) == null ? void 0 : Ve.sst, 1)) + "°C", 1)
|
|
6157
6157
|
]),
|
|
6158
6158
|
s("div", vr, [
|
|
6159
6159
|
e[39] || (e[39] = s("div", null, "Visibility", -1)),
|
|
6160
|
-
s("div", null,
|
|
6160
|
+
s("div", null, E(o.roundPrecision(($e = (Ze = i.currentHourData) == null ? void 0 : Ze.weather) == null ? void 0 : $e.visibility, 1)) + "nm", 1)
|
|
6161
6161
|
])
|
|
6162
6162
|
]),
|
|
6163
6163
|
s("div", Lr, [
|
|
6164
6164
|
s("div", Cr, [
|
|
6165
6165
|
e[40] || (e[40] = s("div", null, "Temp", -1)),
|
|
6166
|
-
s("div", null,
|
|
6166
|
+
s("div", null, E(o.roundPrecision((tt = (et = i.currentHourData) == null ? void 0 : et.weather) == null ? void 0 : tt.temp, 1)) + "°C", 1)
|
|
6167
6167
|
]),
|
|
6168
6168
|
s("div", xr, [
|
|
6169
6169
|
e[41] || (e[41] = s("div", null, "Precip", -1)),
|
|
6170
|
-
s("div", null,
|
|
6170
|
+
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
6171
|
])
|
|
6172
6172
|
])
|
|
6173
6173
|
], 512), [
|
|
6174
6174
|
[we, !i.showTables]
|
|
6175
6175
|
]),
|
|
6176
6176
|
s("div", {
|
|
6177
|
-
class:
|
|
6178
|
-
onClick: e[7] || (e[7] = (...
|
|
6177
|
+
class: G(["more", i.isDay ? "day" : "night"]),
|
|
6178
|
+
onClick: e[7] || (e[7] = (...C) => o.handleMeteoMore && o.handleMeteoMore(...C))
|
|
6179
6179
|
}, "More >>", 2)
|
|
6180
6180
|
], 2))
|
|
6181
6181
|
])
|
|
@@ -6183,7 +6183,7 @@ function Ir(t, e, a, r, i, o) {
|
|
|
6183
6183
|
[we, i.showMeteo]
|
|
6184
6184
|
]);
|
|
6185
6185
|
}
|
|
6186
|
-
const Er = /* @__PURE__ */
|
|
6186
|
+
const Er = /* @__PURE__ */ O(gi, [["render", Ir], ["__scopeId", "data-v-cdc6da70"]]), Dr = {
|
|
6187
6187
|
name: "IdmWarZone",
|
|
6188
6188
|
props: {
|
|
6189
6189
|
map: {
|
|
@@ -6276,7 +6276,7 @@ const Er = /* @__PURE__ */ S(gi, [["render", Ir], ["__scopeId", "data-v-cdc6da70
|
|
|
6276
6276
|
function Pr(t, e, a, r, i, o) {
|
|
6277
6277
|
return m(), g("div");
|
|
6278
6278
|
}
|
|
6279
|
-
const kr = /* @__PURE__ */
|
|
6279
|
+
const kr = /* @__PURE__ */ O(Dr, [["render", Pr]]), Mr = {
|
|
6280
6280
|
name: "IdmGmdssArea",
|
|
6281
6281
|
props: {
|
|
6282
6282
|
map: {
|
|
@@ -6399,7 +6399,7 @@ const kr = /* @__PURE__ */ S(Dr, [["render", Pr]]), Mr = {
|
|
|
6399
6399
|
function zr(t, e, a, r, i, o) {
|
|
6400
6400
|
return m(), g("div");
|
|
6401
6401
|
}
|
|
6402
|
-
const Tr = /* @__PURE__ */
|
|
6402
|
+
const Tr = /* @__PURE__ */ O(Mr, [["render", zr]]), Qr = {
|
|
6403
6403
|
name: "IdmEcaZone",
|
|
6404
6404
|
props: {
|
|
6405
6405
|
map: {
|
|
@@ -6490,7 +6490,7 @@ const Tr = /* @__PURE__ */ S(Mr, [["render", zr]]), Qr = {
|
|
|
6490
6490
|
function Sr(t, e, a, r, i, o) {
|
|
6491
6491
|
return m(), g("div");
|
|
6492
6492
|
}
|
|
6493
|
-
const _r = /* @__PURE__ */
|
|
6493
|
+
const _r = /* @__PURE__ */ O(Qr, [["render", Sr]]);
|
|
6494
6494
|
const Hr = {
|
|
6495
6495
|
name: "IdmAlertZone",
|
|
6496
6496
|
props: {
|
|
@@ -6637,7 +6637,7 @@ function jr(t, e, a, r, i, o) {
|
|
|
6637
6637
|
[we, i.showZone]
|
|
6638
6638
|
]);
|
|
6639
6639
|
}
|
|
6640
|
-
const Rr = /* @__PURE__ */
|
|
6640
|
+
const Rr = /* @__PURE__ */ O(Hr, [["render", jr]]);
|
|
6641
6641
|
const Fr = {
|
|
6642
6642
|
name: "IdmPort",
|
|
6643
6643
|
props: {
|
|
@@ -6667,12 +6667,12 @@ const Fr = {
|
|
|
6667
6667
|
computed: {
|
|
6668
6668
|
computeLat() {
|
|
6669
6669
|
return function(t) {
|
|
6670
|
-
return
|
|
6670
|
+
return q.lat2pretty(t, 4).pretty;
|
|
6671
6671
|
};
|
|
6672
6672
|
},
|
|
6673
6673
|
computeLng() {
|
|
6674
6674
|
return function(t) {
|
|
6675
|
-
return
|
|
6675
|
+
return q.lng2pretty(t, 4).pretty;
|
|
6676
6676
|
};
|
|
6677
6677
|
}
|
|
6678
6678
|
},
|
|
@@ -6749,19 +6749,19 @@ function qr(t, e, a, r, i, o) {
|
|
|
6749
6749
|
s("div", Wr, [
|
|
6750
6750
|
s("div", Ur, [
|
|
6751
6751
|
e[2] || (e[2] = s("label", null, "Name : ", -1)),
|
|
6752
|
-
s("span", null,
|
|
6752
|
+
s("span", null, E(i.form.name), 1)
|
|
6753
6753
|
]),
|
|
6754
6754
|
s("div", Yr, [
|
|
6755
6755
|
e[3] || (e[3] = s("label", null, "Position : ", -1)),
|
|
6756
|
-
s("span", null,
|
|
6756
|
+
s("span", null, E(o.computeLat(i.form.lat)) + ", " + E(o.computeLng(i.form.lng)), 1)
|
|
6757
6757
|
]),
|
|
6758
6758
|
s("div", Kr, [
|
|
6759
6759
|
e[4] || (e[4] = s("label", null, "LoCode : ", -1)),
|
|
6760
|
-
s("span", null,
|
|
6760
|
+
s("span", null, E(i.form.loCode || "-"), 1)
|
|
6761
6761
|
]),
|
|
6762
6762
|
s("div", Xr, [
|
|
6763
6763
|
e[5] || (e[5] = s("label", null, "Region : ", -1)),
|
|
6764
|
-
s("span", null,
|
|
6764
|
+
s("span", null, E(i.form.zoneName || "-"), 1)
|
|
6765
6765
|
]),
|
|
6766
6766
|
s("div", Jr, [
|
|
6767
6767
|
s("span", {
|
|
@@ -6773,7 +6773,7 @@ function qr(t, e, a, r, i, o) {
|
|
|
6773
6773
|
[we, i.showPort]
|
|
6774
6774
|
]);
|
|
6775
6775
|
}
|
|
6776
|
-
const Vr = /* @__PURE__ */
|
|
6776
|
+
const Vr = /* @__PURE__ */ O(Fr, [["render", qr], ["__scopeId", "data-v-2fc5fc5e"]]), Zr = {
|
|
6777
6777
|
name: "IdmLoadLine",
|
|
6778
6778
|
props: {
|
|
6779
6779
|
map: {
|
|
@@ -6846,7 +6846,7 @@ const Vr = /* @__PURE__ */ S(Fr, [["render", qr], ["__scopeId", "data-v-2fc5fc5e
|
|
|
6846
6846
|
function $r(t, e, a, r, i, o) {
|
|
6847
6847
|
return m(), g("div");
|
|
6848
6848
|
}
|
|
6849
|
-
const eo = /* @__PURE__ */
|
|
6849
|
+
const eo = /* @__PURE__ */ O(Zr, [["render", $r]]), to = {
|
|
6850
6850
|
name: "IdmTimezone",
|
|
6851
6851
|
props: {
|
|
6852
6852
|
map: {
|
|
@@ -7014,7 +7014,7 @@ const eo = /* @__PURE__ */ S(Zr, [["render", $r]]), to = {
|
|
|
7014
7014
|
function ao(t, e, a, r, i, o) {
|
|
7015
7015
|
return m(), g("div");
|
|
7016
7016
|
}
|
|
7017
|
-
const io = /* @__PURE__ */
|
|
7017
|
+
const io = /* @__PURE__ */ O(to, [["render", ao]]), ro = {
|
|
7018
7018
|
name: "IdmVoluntaryReportingArea",
|
|
7019
7019
|
props: {
|
|
7020
7020
|
map: {
|
|
@@ -7105,7 +7105,7 @@ const io = /* @__PURE__ */ S(to, [["render", ao]]), ro = {
|
|
|
7105
7105
|
function oo(t, e, a, r, i, o) {
|
|
7106
7106
|
return m(), g("div");
|
|
7107
7107
|
}
|
|
7108
|
-
const so = /* @__PURE__ */
|
|
7108
|
+
const so = /* @__PURE__ */ O(ro, [["render", oo]]), no = {
|
|
7109
7109
|
name: "IdmSpecialArea",
|
|
7110
7110
|
props: {
|
|
7111
7111
|
map: {
|
|
@@ -7135,7 +7135,7 @@ const so = /* @__PURE__ */ S(ro, [["render", oo]]), no = {
|
|
|
7135
7135
|
methods: {
|
|
7136
7136
|
handleRender() {
|
|
7137
7137
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((t) => {
|
|
7138
|
-
t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) =>
|
|
7138
|
+
t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) => q.convertToMonotonicLng2(e));
|
|
7139
7139
|
}), this.map.addSource(this.source, {
|
|
7140
7140
|
type: "geojson",
|
|
7141
7141
|
data: this.area
|
|
@@ -7198,7 +7198,7 @@ const so = /* @__PURE__ */ S(ro, [["render", oo]]), no = {
|
|
|
7198
7198
|
function lo(t, e, a, r, i, o) {
|
|
7199
7199
|
return m(), g("div");
|
|
7200
7200
|
}
|
|
7201
|
-
const co = /* @__PURE__ */
|
|
7201
|
+
const co = /* @__PURE__ */ O(no, [["render", lo]]), ho = {
|
|
7202
7202
|
name: "IdmTerminator",
|
|
7203
7203
|
props: {
|
|
7204
7204
|
map: {
|
|
@@ -7250,7 +7250,7 @@ const co = /* @__PURE__ */ S(no, [["render", lo]]), ho = {
|
|
|
7250
7250
|
function po(t, e, a, r, i, o) {
|
|
7251
7251
|
return m(), g("div");
|
|
7252
7252
|
}
|
|
7253
|
-
const uo = /* @__PURE__ */
|
|
7253
|
+
const uo = /* @__PURE__ */ O(ho, [["render", po]]);
|
|
7254
7254
|
const mo = {
|
|
7255
7255
|
name: "IdmLatLng",
|
|
7256
7256
|
props: {
|
|
@@ -7309,7 +7309,7 @@ const mo = {
|
|
|
7309
7309
|
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
7310
|
},
|
|
7311
7311
|
handleMouseMove(t) {
|
|
7312
|
-
const e = t.lngLat, a =
|
|
7312
|
+
const e = t.lngLat, a = q.lng2pretty(e.lng, 2), r = q.lat2pretty(e.lat, 2);
|
|
7313
7313
|
this.lngLat = { lng: a, lat: r };
|
|
7314
7314
|
},
|
|
7315
7315
|
handleComputeLatLngs() {
|
|
@@ -7358,7 +7358,7 @@ const mo = {
|
|
|
7358
7358
|
handleZoomEnd() {
|
|
7359
7359
|
var e;
|
|
7360
7360
|
const t = this.handleComputeLatLngs();
|
|
7361
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
7361
|
+
(e = this.map) == null || e.getSource(this.source).setData(M.featureCollection(t));
|
|
7362
7362
|
},
|
|
7363
7363
|
handleRender() {
|
|
7364
7364
|
if (this.map) {
|
|
@@ -7411,14 +7411,14 @@ function go(t, e, a, r, i, o) {
|
|
|
7411
7411
|
return i.lngLat ? (m(), g("div", {
|
|
7412
7412
|
key: 0,
|
|
7413
7413
|
class: "lat-lng-tip",
|
|
7414
|
-
style:
|
|
7414
|
+
style: $({ right: i.right + "px", bottom: a.bottom })
|
|
7415
7415
|
}, [
|
|
7416
|
-
s("span", null,
|
|
7416
|
+
s("span", null, E(i.lngLat.lat.pretty), 1),
|
|
7417
7417
|
e[0] || (e[0] = s("span", null, ", ", -1)),
|
|
7418
|
-
s("span", null,
|
|
7419
|
-
], 4)) :
|
|
7418
|
+
s("span", null, E(i.lngLat.lng.pretty), 1)
|
|
7419
|
+
], 4)) : R("", !0);
|
|
7420
7420
|
}
|
|
7421
|
-
const ct = /* @__PURE__ */
|
|
7421
|
+
const ct = /* @__PURE__ */ O(mo, [["render", go], ["__scopeId", "data-v-ad66a24c"]]), Ao = {
|
|
7422
7422
|
name: "IdmMeasure",
|
|
7423
7423
|
props: {
|
|
7424
7424
|
map: {
|
|
@@ -7453,7 +7453,7 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7453
7453
|
else {
|
|
7454
7454
|
(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
7455
|
let r = this.geojson.find((i) => !i.closed);
|
|
7456
|
-
r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r =
|
|
7456
|
+
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
7457
|
}
|
|
7458
7458
|
},
|
|
7459
7459
|
immediate: !0
|
|
@@ -7484,41 +7484,41 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7484
7484
|
}
|
|
7485
7485
|
},
|
|
7486
7486
|
handleDrag(t) {
|
|
7487
|
-
var a, r, i, o, l, c, h,
|
|
7487
|
+
var a, r, i, o, l, c, h, p, n, u;
|
|
7488
7488
|
const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
|
|
7489
7489
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
7490
|
-
const
|
|
7491
|
-
this.pointMarkers[
|
|
7492
|
-
var
|
|
7493
|
-
return ((
|
|
7490
|
+
const b = this.geojson.filter((D) => D.id === e.split("-")[0])[0];
|
|
7491
|
+
this.pointMarkers[b.id].filter((D) => {
|
|
7492
|
+
var L;
|
|
7493
|
+
return ((L = D._element) == null ? void 0 : L.id) === e;
|
|
7494
7494
|
})[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
|
-
|
|
7495
|
+
let y;
|
|
7496
|
+
b.features.forEach((D, L) => {
|
|
7497
|
+
if (D.geometry.type === "Point" && D.properties.id == e.split("-")[1]) {
|
|
7498
|
+
y = L;
|
|
7499
7499
|
return;
|
|
7500
7500
|
}
|
|
7501
7501
|
});
|
|
7502
|
-
const
|
|
7502
|
+
const x = b.features.filter((D) => D.geometry.type === "Point");
|
|
7503
7503
|
this.handleTmpPointUpdate(
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
{ lng: (
|
|
7507
|
-
|
|
7504
|
+
b,
|
|
7505
|
+
x[y - 1],
|
|
7506
|
+
{ 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 },
|
|
7507
|
+
y === x.length - 1 ? void 0 : x[y + 1]
|
|
7508
7508
|
);
|
|
7509
7509
|
}
|
|
7510
7510
|
},
|
|
7511
7511
|
handleDragEnd(t) {
|
|
7512
|
-
var a, r, i, o, l, c, h,
|
|
7512
|
+
var a, r, i, o, l, c, h, p, n, u;
|
|
7513
7513
|
const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
|
|
7514
7514
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
7515
|
-
const
|
|
7516
|
-
this.pointMarkers[
|
|
7517
|
-
var
|
|
7518
|
-
return ((
|
|
7515
|
+
const b = this.geojson.filter((x) => x.id === e.split("-")[0])[0];
|
|
7516
|
+
this.pointMarkers[b.id].filter((x) => {
|
|
7517
|
+
var D;
|
|
7518
|
+
return ((D = x._element) == null ? void 0 : D.id) === e;
|
|
7519
7519
|
})[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
|
-
|
|
7520
|
+
const y = b.features.filter((x) => x.geometry.type === "Point" && x.properties.id == e.split("-")[1])[0];
|
|
7521
|
+
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
7522
|
}
|
|
7523
7523
|
},
|
|
7524
7524
|
handleContextmenu(t) {
|
|
@@ -7527,9 +7527,9 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7527
7527
|
const e = (o = (i = (r = t.originalEvent) == null ? void 0 : r.target) == null ? void 0 : i.parentElement) == null ? void 0 : o.id;
|
|
7528
7528
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
7529
7529
|
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
|
-
|
|
7530
|
+
if (c.length > 2 && c.filter((p) => p.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
7531
|
+
const p = document.createElement("div");
|
|
7532
|
+
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
7533
|
}
|
|
7534
7534
|
}
|
|
7535
7535
|
},
|
|
@@ -7538,15 +7538,15 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7538
7538
|
(a = this.contextmenu) == null || a.remove();
|
|
7539
7539
|
const e = t.originalEvent.target.className;
|
|
7540
7540
|
if (e === "marker-close") {
|
|
7541
|
-
const h = (i = (r = t.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id,
|
|
7542
|
-
|
|
7541
|
+
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];
|
|
7542
|
+
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
7543
|
} 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
|
-
|
|
7544
|
+
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];
|
|
7545
|
+
p.features = p.features.filter((n) => n.geometry.type === "Point" && n.properties.id !== h[1]), this.handlePointUpdate(p);
|
|
7546
7546
|
} else if (e !== "marker-label" && this.show) {
|
|
7547
7547
|
let h = this.geojson.at(-1);
|
|
7548
|
-
h || (h =
|
|
7549
|
-
const
|
|
7548
|
+
h || (h = M.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(h)), h.features = h.features.filter((n) => n.geometry.type === "Point");
|
|
7549
|
+
const p = M.feature(
|
|
7550
7550
|
{
|
|
7551
7551
|
type: "Point",
|
|
7552
7552
|
coordinates: [t.lngLat.lng, t.lngLat.lat]
|
|
@@ -7556,7 +7556,7 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7556
7556
|
mode: this.navigation
|
|
7557
7557
|
}
|
|
7558
7558
|
);
|
|
7559
|
-
h.features.push(
|
|
7559
|
+
h.features.push(p), this.handlePointUpdate(h);
|
|
7560
7560
|
}
|
|
7561
7561
|
},
|
|
7562
7562
|
handlePointUpdate(t) {
|
|
@@ -7565,35 +7565,35 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7565
7565
|
let a = 0;
|
|
7566
7566
|
const r = [];
|
|
7567
7567
|
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
|
-
|
|
7568
|
+
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);
|
|
7569
|
+
a = q.roundPrecision(a + n, 2);
|
|
7570
|
+
let b;
|
|
7571
|
+
c.mode === "RL" ? b = q.convertToMonotonicLng([h, p]) : b = q.convertToMonotonicLng(be.interpolateCoordinates(h, p, 200));
|
|
7572
|
+
const v = M.lineString(b.map((y) => [y.lng, y.lat]));
|
|
7573
|
+
v.properties.dist = n, v.properties.bearing = u, v.properties.total = a, r.push(v);
|
|
7574
7574
|
}
|
|
7575
7575
|
e.push(...r), t.total = a;
|
|
7576
7576
|
}
|
|
7577
7577
|
return this.handleRender(t), t;
|
|
7578
7578
|
},
|
|
7579
7579
|
handleTmpPointUpdate(t, e, a, r) {
|
|
7580
|
-
const i =
|
|
7580
|
+
const i = M.featureCollection([]);
|
|
7581
7581
|
let o, l;
|
|
7582
7582
|
if (e) {
|
|
7583
|
-
const h = e.properties,
|
|
7584
|
-
o = be.calculateDistance(
|
|
7585
|
-
let
|
|
7586
|
-
h.mode === "RL" ?
|
|
7587
|
-
const
|
|
7588
|
-
|
|
7583
|
+
const h = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, n = { lng: a.lng, lat: a.lat };
|
|
7584
|
+
o = be.calculateDistance(p, n, h.mode === "RL", 2), l = be.calculateBearing(p, n, h.mode === "RL", 2);
|
|
7585
|
+
let u;
|
|
7586
|
+
h.mode === "RL" ? u = q.convertToMonotonicLng([p, n]) : u = q.convertToMonotonicLng(be.interpolateCoordinates(p, n, 200));
|
|
7587
|
+
const b = M.lineString(u.map((v) => [v.lng, v.lat]));
|
|
7588
|
+
b.properties.dist = o, b.properties.bearing = l, i.features.push(b);
|
|
7589
7589
|
}
|
|
7590
7590
|
if (r) {
|
|
7591
|
-
const h = a.properties,
|
|
7592
|
-
o = be.calculateDistance(
|
|
7593
|
-
let
|
|
7594
|
-
h.mode === "RL" ?
|
|
7595
|
-
const
|
|
7596
|
-
|
|
7591
|
+
const h = a.properties, p = a, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
7592
|
+
o = be.calculateDistance(p, n, h.mode === "RL", 2), l = be.calculateBearing(p, n, h.mode === "RL", 2);
|
|
7593
|
+
let u;
|
|
7594
|
+
h.mode === "RL" ? u = q.convertToMonotonicLng([p, n]) : u = q.convertToMonotonicLng(be.interpolateCoordinates(p, n, 200));
|
|
7595
|
+
const b = M.lineString(u.map((v) => [v.lng, v.lat]));
|
|
7596
|
+
b.properties.dist = o, b.properties.bearing = l, i.features.push(b);
|
|
7597
7597
|
}
|
|
7598
7598
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
7599
7599
|
type: "geojson",
|
|
@@ -7633,7 +7633,7 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7633
7633
|
}
|
|
7634
7634
|
});
|
|
7635
7635
|
let c;
|
|
7636
|
-
if (r ? c = '<div class="marker-label">Drag and drop</div>' : c = `<div class="marker-label">Total distance: <b>${
|
|
7636
|
+
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
7637
|
this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([a.lng, a.lat]);
|
|
7638
7638
|
else {
|
|
7639
7639
|
const h = document.createElement("div");
|
|
@@ -7643,14 +7643,14 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7643
7643
|
handleMove(t) {
|
|
7644
7644
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
7645
7645
|
let e = this.geojson.at(-1);
|
|
7646
|
-
e || (e =
|
|
7646
|
+
e || (e = M.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
7647
7647
|
const a = e.features.filter((r) => r.geometry.type === "Point");
|
|
7648
7648
|
a != null && a.length && this.handleTmpPointUpdate(e, a.at(-1), { lng: t.lngLat.lng, lat: t.lngLat.lat });
|
|
7649
7649
|
},
|
|
7650
7650
|
handleDblClick(t) {
|
|
7651
7651
|
t.preventDefault();
|
|
7652
7652
|
let e = this.geojson.at(-1);
|
|
7653
|
-
e.closed = !0, this.handleRender(e), e =
|
|
7653
|
+
e.closed = !0, this.handleRender(e), e = M.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
|
|
7654
7654
|
},
|
|
7655
7655
|
handleRender(t) {
|
|
7656
7656
|
var e;
|
|
@@ -7699,24 +7699,24 @@ const ct = /* @__PURE__ */ S(mo, [["render", go], ["__scopeId", "data-v-ad66a24c
|
|
|
7699
7699
|
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
7700
|
}
|
|
7701
7701
|
if (t.closed) {
|
|
7702
|
-
const l = o.at(-1), h = t.features.filter((n) => n.geometry.type === "LineString").at(-1),
|
|
7703
|
-
|
|
7702
|
+
const l = o.at(-1), h = t.features.filter((n) => n.geometry.type === "LineString").at(-1), p = document.createElement("div");
|
|
7703
|
+
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
7704
|
}
|
|
7705
7705
|
}
|
|
7706
7706
|
},
|
|
7707
7707
|
handleClear(t, e = !0) {
|
|
7708
|
-
var o, l, c, h,
|
|
7708
|
+
var o, l, c, h, p, n, u, b, v;
|
|
7709
7709
|
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] = [], (
|
|
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), (p = this.closeMarkers[t.id]) == null || p.remove(), this.closeMarkers[t.id] = void 0, (n = this.pointMarkers[t.id]) == null || n.forEach((y) => {
|
|
7711
|
+
y == null || y.remove();
|
|
7712
|
+
}), 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
7713
|
}
|
|
7714
7714
|
}
|
|
7715
7715
|
};
|
|
7716
7716
|
function fo(t, e, a, r, i, o) {
|
|
7717
7717
|
return m(), g("div");
|
|
7718
7718
|
}
|
|
7719
|
-
const yo = /* @__PURE__ */
|
|
7719
|
+
const yo = /* @__PURE__ */ O(Ao, [["render", fo]]);
|
|
7720
7720
|
const wo = {
|
|
7721
7721
|
name: "IdmENC",
|
|
7722
7722
|
props: {
|
|
@@ -7771,22 +7771,22 @@ const wo = {
|
|
|
7771
7771
|
methods: {}
|
|
7772
7772
|
}, bo = { key: 0 }, vo = { class: "bar-item" };
|
|
7773
7773
|
function Lo(t, e, a, r, i, o) {
|
|
7774
|
-
const l =
|
|
7774
|
+
const l = T("ElTooltip");
|
|
7775
7775
|
return a.enabled && a.permission & i.helper.LEVEL.Supper ? (m(), g("div", bo, [
|
|
7776
7776
|
s("div", {
|
|
7777
7777
|
class: "menu-bar-box",
|
|
7778
|
-
style:
|
|
7778
|
+
style: $({ position: "absolute", right: i.right + "px", bottom: a.bottom })
|
|
7779
7779
|
}, [
|
|
7780
7780
|
s("div", vo, [
|
|
7781
|
-
|
|
7781
|
+
z(l, {
|
|
7782
7782
|
placement: "left",
|
|
7783
7783
|
effect: "light",
|
|
7784
7784
|
content: "Hifleet",
|
|
7785
7785
|
"show-after": 1e3
|
|
7786
7786
|
}, {
|
|
7787
|
-
default:
|
|
7787
|
+
default: re(() => [
|
|
7788
7788
|
s("div", {
|
|
7789
|
-
class:
|
|
7789
|
+
class: G(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
7790
7790
|
onClick: e[0] || (e[0] = (c) => i.vendor = "hi")
|
|
7791
7791
|
}, e[2] || (e[2] = [
|
|
7792
7792
|
s("span", { class: "iconfont" }, "HI", -1)
|
|
@@ -7794,15 +7794,15 @@ function Lo(t, e, a, r, i, o) {
|
|
|
7794
7794
|
]),
|
|
7795
7795
|
_: 1
|
|
7796
7796
|
}),
|
|
7797
|
-
|
|
7797
|
+
z(l, {
|
|
7798
7798
|
placement: "left",
|
|
7799
7799
|
effect: "light",
|
|
7800
7800
|
content: "I4insight",
|
|
7801
7801
|
"show-after": 1e3
|
|
7802
7802
|
}, {
|
|
7803
|
-
default:
|
|
7803
|
+
default: re(() => [
|
|
7804
7804
|
s("div", {
|
|
7805
|
-
class:
|
|
7805
|
+
class: G(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
7806
7806
|
onClick: e[1] || (e[1] = (c) => i.vendor = "i4")
|
|
7807
7807
|
}, e[3] || (e[3] = [
|
|
7808
7808
|
s("span", { class: "iconfont" }, "I4", -1)
|
|
@@ -7812,9 +7812,9 @@ function Lo(t, e, a, r, i, o) {
|
|
|
7812
7812
|
})
|
|
7813
7813
|
])
|
|
7814
7814
|
], 4)
|
|
7815
|
-
])) :
|
|
7815
|
+
])) : R("", !0);
|
|
7816
7816
|
}
|
|
7817
|
-
const Co = /* @__PURE__ */
|
|
7817
|
+
const Co = /* @__PURE__ */ O(wo, [["render", Lo], ["__scopeId", "data-v-7301123d"]]), xo = {
|
|
7818
7818
|
name: "IdmWorld12nm",
|
|
7819
7819
|
props: {
|
|
7820
7820
|
map: {
|
|
@@ -7873,7 +7873,7 @@ const Co = /* @__PURE__ */ S(wo, [["render", Lo], ["__scopeId", "data-v-7301123d
|
|
|
7873
7873
|
function Bo(t, e, a, r, i, o) {
|
|
7874
7874
|
return null;
|
|
7875
7875
|
}
|
|
7876
|
-
const Io = /* @__PURE__ */
|
|
7876
|
+
const Io = /* @__PURE__ */ O(xo, [["render", Bo]]);
|
|
7877
7877
|
const Eo = {
|
|
7878
7878
|
name: "IdmWorldMarine",
|
|
7879
7879
|
props: {
|
|
@@ -7914,7 +7914,7 @@ const Eo = {
|
|
|
7914
7914
|
function Do(t, e, a, r, i, o) {
|
|
7915
7915
|
return null;
|
|
7916
7916
|
}
|
|
7917
|
-
const Po = /* @__PURE__ */
|
|
7917
|
+
const Po = /* @__PURE__ */ O(Eo, [["render", Do]]), ko = {
|
|
7918
7918
|
name: "IdmChinaRoute",
|
|
7919
7919
|
props: {
|
|
7920
7920
|
map: {
|
|
@@ -7955,7 +7955,7 @@ const Po = /* @__PURE__ */ S(Eo, [["render", Do]]), ko = {
|
|
|
7955
7955
|
function Mo(t, e, a, r, i, o) {
|
|
7956
7956
|
return null;
|
|
7957
7957
|
}
|
|
7958
|
-
const zo = /* @__PURE__ */
|
|
7958
|
+
const zo = /* @__PURE__ */ O(ko, [["render", Mo]]);
|
|
7959
7959
|
const To = {
|
|
7960
7960
|
name: "IdmGLV2",
|
|
7961
7961
|
components: {
|
|
@@ -8049,7 +8049,7 @@ const To = {
|
|
|
8049
8049
|
watch: {
|
|
8050
8050
|
ts: {
|
|
8051
8051
|
handler(t, e) {
|
|
8052
|
-
t && e &&
|
|
8052
|
+
t && e && X(t).utc().format("yyyy-MM-DD HH") !== X(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
8053
8053
|
this.handleDateChange({ tropicals: !1 });
|
|
8054
8054
|
});
|
|
8055
8055
|
},
|
|
@@ -8063,17 +8063,17 @@ const To = {
|
|
|
8063
8063
|
},
|
|
8064
8064
|
enc: {
|
|
8065
8065
|
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"), (
|
|
8066
|
+
var a, r, i, o, l, c, h, p;
|
|
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"), (p = (h = this.map) == null ? void 0 : h.getLayer("hi")) == null || p.setLayoutProperty("visibility", "none"));
|
|
8068
8068
|
}
|
|
8069
8069
|
},
|
|
8070
8070
|
activeWeatherLayers: {
|
|
8071
8071
|
handler() {
|
|
8072
|
-
var a, r, i, o, l, c, h,
|
|
8072
|
+
var a, r, i, o, l, c, h, p, n, u, b, v, y, x, D, L, A;
|
|
8073
8073
|
if (!this.map)
|
|
8074
8074
|
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"), (
|
|
8075
|
+
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");
|
|
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"), (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
8077
|
},
|
|
8078
8078
|
immediate: !0
|
|
8079
8079
|
},
|
|
@@ -8125,87 +8125,87 @@ const To = {
|
|
|
8125
8125
|
},
|
|
8126
8126
|
methods: {
|
|
8127
8127
|
async fetchWeatherLayers(t = { tropicals: !1 }) {
|
|
8128
|
-
var i, o, l, c, h,
|
|
8128
|
+
var i, o, l, c, h, p, n, u, b;
|
|
8129
8129
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
8130
8130
|
let a = 0, r = 0;
|
|
8131
8131
|
if (this.map) {
|
|
8132
|
-
const
|
|
8132
|
+
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
8133
|
if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
|
|
8134
|
-
const
|
|
8135
|
-
var
|
|
8136
|
-
return ((
|
|
8134
|
+
const D = Ke.WEATHER_LAYERS.find((L) => {
|
|
8135
|
+
var A;
|
|
8136
|
+
return ((A = L.peer) == null ? void 0 : A.weight) === this.particleFactor.weight;
|
|
8137
8137
|
});
|
|
8138
|
-
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight &
|
|
8138
|
+
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
8139
|
}
|
|
8140
8140
|
if (this.weatherWeight > 0) {
|
|
8141
|
-
let
|
|
8142
|
-
if (t.tropicals || this.weatherWeight & 256 && (
|
|
8143
|
-
const
|
|
8141
|
+
let D = this.weatherWeight, L;
|
|
8142
|
+
if (t.tropicals || this.weatherWeight & 256 && (L = this.weatherLayers.tropicals, L && (D -= 256, L.version = Math.random() + 1)), D > 0) {
|
|
8143
|
+
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
8144
|
headers: {
|
|
8145
8145
|
Authorization: this.token || this.defaultMeteoToken
|
|
8146
8146
|
}
|
|
8147
8147
|
});
|
|
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
|
-
|
|
8148
|
+
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) {
|
|
8149
|
+
const f = (h = A == null ? void 0 : A.data) == null ? void 0 : h.data, w = [];
|
|
8150
|
+
for (const d in f)
|
|
8151
|
+
d === "ice-edge" && (f[d] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), d !== "tropicals" && w.push(
|
|
8152
|
+
he.get(f[d], {
|
|
8153
8153
|
headers: {
|
|
8154
8154
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8155
|
-
key:
|
|
8155
|
+
key: d
|
|
8156
8156
|
},
|
|
8157
|
-
responseType: /\.(jpg|png)$/.test(
|
|
8158
|
-
}).catch((
|
|
8159
|
-
console.log(`[${
|
|
8157
|
+
responseType: /\.(jpg|png)$/.test(f[d]) ? "blob" : "json"
|
|
8158
|
+
}).catch((P) => {
|
|
8159
|
+
console.log(`[${d}] fetch layer error: ${P}`);
|
|
8160
8160
|
})
|
|
8161
8161
|
);
|
|
8162
|
-
const B = await Promise.all(
|
|
8163
|
-
this.weatherLayers = {}, B.map((
|
|
8164
|
-
var
|
|
8165
|
-
const
|
|
8166
|
-
|
|
8167
|
-
raw:
|
|
8168
|
-
type: ((
|
|
8169
|
-
etime:
|
|
8162
|
+
const B = await Promise.all(w);
|
|
8163
|
+
this.weatherLayers = {}, B.map((d) => {
|
|
8164
|
+
var S, _, H, Y;
|
|
8165
|
+
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;
|
|
8166
|
+
Q && P && (this.weatherLayers[Q] = {
|
|
8167
|
+
raw: P,
|
|
8168
|
+
type: ((Y = d == null ? void 0 : d.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
|
|
8169
|
+
etime: A.data.etime
|
|
8170
8170
|
});
|
|
8171
|
-
}),
|
|
8171
|
+
}), f.tropicals && he.get(f.tropicals, {
|
|
8172
8172
|
headers: {
|
|
8173
8173
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8174
8174
|
key: "tropicals"
|
|
8175
8175
|
}
|
|
8176
|
-
}).then((
|
|
8177
|
-
var
|
|
8178
|
-
const
|
|
8179
|
-
this.weatherLayers[
|
|
8180
|
-
data:
|
|
8176
|
+
}).then((d) => {
|
|
8177
|
+
var S, _, H;
|
|
8178
|
+
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;
|
|
8179
|
+
this.weatherLayers[Q] = {
|
|
8180
|
+
data: P,
|
|
8181
8181
|
active: !0,
|
|
8182
8182
|
cached: !1,
|
|
8183
8183
|
type: "json",
|
|
8184
|
-
etime:
|
|
8184
|
+
etime: A.data.etime,
|
|
8185
8185
|
version: Math.random() + 1
|
|
8186
8186
|
};
|
|
8187
8187
|
});
|
|
8188
8188
|
}
|
|
8189
8189
|
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
|
|
8190
|
+
const f = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, w = (n = this.weatherLayers["swell-height"]) == null ? void 0 : n.raw;
|
|
8191
8191
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8192
8192
|
type: "json",
|
|
8193
|
-
direction:
|
|
8194
|
-
height: { raw:
|
|
8195
|
-
etime:
|
|
8193
|
+
direction: f,
|
|
8194
|
+
height: { raw: w },
|
|
8195
|
+
etime: A.data.etime
|
|
8196
8196
|
};
|
|
8197
8197
|
}
|
|
8198
8198
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8199
|
-
const
|
|
8199
|
+
const f = (u = this.weatherLayers["current-direction"]) == null ? void 0 : u.raw, w = (b = this.weatherLayers["current-speed"]) == null ? void 0 : b.raw;
|
|
8200
8200
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8201
8201
|
type: "json",
|
|
8202
|
-
direction:
|
|
8203
|
-
speed: { raw:
|
|
8204
|
-
etime:
|
|
8202
|
+
direction: f,
|
|
8203
|
+
speed: { raw: w },
|
|
8204
|
+
etime: A.data.etime
|
|
8205
8205
|
};
|
|
8206
8206
|
}
|
|
8207
8207
|
}
|
|
8208
|
-
|
|
8208
|
+
L && (L.etime = this.ts, L.cached = !0, this.weatherLayers.tropicals = L);
|
|
8209
8209
|
}
|
|
8210
8210
|
this.handleWeatherLayerToggle(), this.handleDrawWeather4Json();
|
|
8211
8211
|
}
|
|
@@ -8216,58 +8216,58 @@ const To = {
|
|
|
8216
8216
|
if (this.map) {
|
|
8217
8217
|
let o = this.otherWeight;
|
|
8218
8218
|
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,
|
|
8219
|
+
let l = !1, c = !1, h = !1, p = !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, p = !0), o) {
|
|
8221
8221
|
if (t.all) {
|
|
8222
|
-
const n = await
|
|
8222
|
+
const n = await he.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
|
|
8223
8223
|
headers: {
|
|
8224
8224
|
Authorization: this.token || this.defaultMeteoToken
|
|
8225
8225
|
}
|
|
8226
8226
|
});
|
|
8227
8227
|
if (((e = n == null ? void 0 : n.data) == null ? void 0 : e.code) === 0) {
|
|
8228
|
-
const
|
|
8229
|
-
for (const
|
|
8230
|
-
|
|
8231
|
-
|
|
8228
|
+
const u = (a = n == null ? void 0 : n.data) == null ? void 0 : a.data, b = [];
|
|
8229
|
+
for (const y in u)
|
|
8230
|
+
b.push(
|
|
8231
|
+
he.get(u[y], {
|
|
8232
8232
|
headers: {
|
|
8233
8233
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8234
|
-
key:
|
|
8234
|
+
key: y
|
|
8235
8235
|
}
|
|
8236
8236
|
})
|
|
8237
8237
|
);
|
|
8238
|
-
const
|
|
8239
|
-
this.otherLayers = { enc: l, world12nm: c, worldMarine: h, chinaRoute:
|
|
8240
|
-
var
|
|
8241
|
-
const
|
|
8242
|
-
this.otherLayers[
|
|
8238
|
+
const v = await Promise.all(b);
|
|
8239
|
+
this.otherLayers = { enc: l, world12nm: c, worldMarine: h, chinaRoute: p }, v.map((y) => {
|
|
8240
|
+
var L, A, f;
|
|
8241
|
+
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;
|
|
8242
|
+
this.otherLayers[D] = x;
|
|
8243
8243
|
});
|
|
8244
8244
|
}
|
|
8245
8245
|
} else if (t.dayNight && o & 1024) {
|
|
8246
|
-
const n = await
|
|
8246
|
+
const n = await he.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
8247
8247
|
headers: {
|
|
8248
8248
|
Authorization: this.token || this.defaultMeteoToken
|
|
8249
8249
|
}
|
|
8250
8250
|
});
|
|
8251
8251
|
if (((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
|
|
8252
|
-
const
|
|
8253
|
-
for (const
|
|
8254
|
-
|
|
8255
|
-
|
|
8252
|
+
const u = (i = n == null ? void 0 : n.data) == null ? void 0 : i.data, b = [];
|
|
8253
|
+
for (const y in u)
|
|
8254
|
+
b.push(
|
|
8255
|
+
he.get(u[y], {
|
|
8256
8256
|
headers: {
|
|
8257
8257
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8258
|
-
key:
|
|
8258
|
+
key: y
|
|
8259
8259
|
}
|
|
8260
8260
|
})
|
|
8261
8261
|
);
|
|
8262
|
-
(await Promise.all(
|
|
8263
|
-
var
|
|
8264
|
-
const
|
|
8265
|
-
this.otherLayers[
|
|
8262
|
+
(await Promise.all(b)).map((y) => {
|
|
8263
|
+
var L, A, f;
|
|
8264
|
+
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;
|
|
8265
|
+
this.otherLayers[D] = x;
|
|
8266
8266
|
});
|
|
8267
8267
|
}
|
|
8268
8268
|
}
|
|
8269
8269
|
} else
|
|
8270
|
-
this.otherLayers = { enc: l, world12nm: c, worldMarine: h, chinaRoute:
|
|
8270
|
+
this.otherLayers = { enc: l, world12nm: c, worldMarine: h, chinaRoute: p };
|
|
8271
8271
|
} else
|
|
8272
8272
|
this.otherLayers = {};
|
|
8273
8273
|
this.handleBeforeLayerToggle();
|
|
@@ -8283,7 +8283,7 @@ const To = {
|
|
|
8283
8283
|
this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
|
|
8284
8284
|
},
|
|
8285
8285
|
handleRampColorInitial() {
|
|
8286
|
-
var t, e, a, r, i, o, l, c, h,
|
|
8286
|
+
var t, e, a, r, i, o, l, c, h, p, n, u;
|
|
8287
8287
|
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
8288
|
type: "canvas",
|
|
8289
8289
|
canvas: (a = this.viewport) == null ? void 0 : a.rampColorCanvas,
|
|
@@ -8304,11 +8304,11 @@ const To = {
|
|
|
8304
8304
|
canvas: (h = this.viewport) == null ? void 0 : h.particleCanvas,
|
|
8305
8305
|
animate: !0,
|
|
8306
8306
|
coordinates: this.viewport.getBoundLngLat()
|
|
8307
|
-
}), this.viewport.map.getLayer((
|
|
8307
|
+
}), this.viewport.map.getLayer((p = this.viewport) == null ? void 0 : p.particleLayer) || this.viewport.map.addLayer(
|
|
8308
8308
|
{
|
|
8309
8309
|
type: "raster",
|
|
8310
8310
|
id: (n = this.viewport) == null ? void 0 : n.particleLayer,
|
|
8311
|
-
source: (
|
|
8311
|
+
source: (u = this.viewport) == null ? void 0 : u.particleSource,
|
|
8312
8312
|
layout: {
|
|
8313
8313
|
visibility: "none"
|
|
8314
8314
|
}
|
|
@@ -8317,204 +8317,244 @@ const To = {
|
|
|
8317
8317
|
);
|
|
8318
8318
|
},
|
|
8319
8319
|
handleDrawWeather4Json() {
|
|
8320
|
-
var
|
|
8320
|
+
var p, n, u, b, v, y;
|
|
8321
8321
|
const t = (/* @__PURE__ */ new Date()).valueOf();
|
|
8322
8322
|
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
|
|
8323
|
+
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);
|
|
8324
|
+
for (const x in this.weatherLayers) {
|
|
8325
|
+
let D = !1;
|
|
8326
|
+
if (this.weatherLayers[x].active && this.weatherLayers[x].type === "json") {
|
|
8327
|
+
let L = [];
|
|
8328
|
+
if (x === "swell") {
|
|
8329
|
+
D = !0;
|
|
8330
|
+
const A = ((n = this.weatherLayers[x]) == null ? void 0 : n.direction) || {};
|
|
8331
|
+
for (const w in A)
|
|
8332
|
+
if (w > c && w < h && (!(i <= this.zoom) || w % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8333
|
+
const B = A[w].lng;
|
|
8334
|
+
o > l ? B.forEach((d, P) => {
|
|
8335
|
+
var Q, S, _, H, Y, J;
|
|
8336
8336
|
if (i < 2) {
|
|
8337
|
-
if ((
|
|
8338
|
-
const
|
|
8339
|
-
val: ((
|
|
8340
|
-
spd: (
|
|
8337
|
+
if ((d >= 0 && d <= 360 || d >= -360 && d <= 0) && d % 10 === 0) {
|
|
8338
|
+
const W = M.point([d, w], {
|
|
8339
|
+
val: ((Q = A[w].val) == null ? void 0 : Q[P]) || ((S = A[w].dir) == null ? void 0 : S[P]),
|
|
8340
|
+
spd: (_ = A[w].spd) == null ? void 0 : _[P]
|
|
8341
8341
|
});
|
|
8342
|
-
|
|
8342
|
+
L.push(W);
|
|
8343
8343
|
}
|
|
8344
|
-
} else if ((
|
|
8345
|
-
const
|
|
8346
|
-
val: ((
|
|
8347
|
-
spd: (
|
|
8344
|
+
} else if ((d >= o && d <= 180 || d >= -180 && d <= l) && (!(i <= this.zoom) || d % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8345
|
+
const W = M.point([d, w], {
|
|
8346
|
+
val: ((H = A[w].val) == null ? void 0 : H[P]) || ((Y = A[w].dir) == null ? void 0 : Y[P]),
|
|
8347
|
+
spd: (J = A[w].spd) == null ? void 0 : J[P]
|
|
8348
8348
|
});
|
|
8349
|
-
|
|
8349
|
+
L.push(W);
|
|
8350
8350
|
}
|
|
8351
|
-
}) :
|
|
8352
|
-
var
|
|
8351
|
+
}) : B.forEach((d, P) => {
|
|
8352
|
+
var Q, S, _, H, Y, J;
|
|
8353
8353
|
if (o < 2) {
|
|
8354
|
-
if ((
|
|
8355
|
-
const
|
|
8356
|
-
val: ((
|
|
8357
|
-
spd: (
|
|
8354
|
+
if ((d >= 0 && d <= 360 || d >= -360 && d <= 0) && d % 10 === 0) {
|
|
8355
|
+
const W = M.point([d, w], {
|
|
8356
|
+
val: ((Q = A[w].val) == null ? void 0 : Q[P]) || ((S = A[w].dir) == null ? void 0 : S[P]),
|
|
8357
|
+
spd: (_ = A[w].spd) == null ? void 0 : _[P]
|
|
8358
8358
|
});
|
|
8359
|
-
|
|
8359
|
+
L.push(W);
|
|
8360
8360
|
}
|
|
8361
|
-
} else if (
|
|
8362
|
-
const
|
|
8363
|
-
val: ((
|
|
8364
|
-
spd: (
|
|
8361
|
+
} else if (d >= o && d <= l && (!(i <= this.zoom) || d % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8362
|
+
const W = M.point([d, w], {
|
|
8363
|
+
val: ((H = A[w].val) == null ? void 0 : H[P]) || ((Y = A[w].dir) == null ? void 0 : Y[P]),
|
|
8364
|
+
spd: (J = A[w].spd) == null ? void 0 : J[P]
|
|
8365
8365
|
});
|
|
8366
|
-
|
|
8366
|
+
L.push(W);
|
|
8367
8367
|
}
|
|
8368
8368
|
});
|
|
8369
8369
|
}
|
|
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);
|
|
8370
|
+
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", a, ", total: ", e += a);
|
|
8371
|
+
const f = this.weatherLayers[x].height;
|
|
8372
|
+
if (f) {
|
|
8373
|
+
if (!f.data) {
|
|
8374
|
+
const w = [];
|
|
8375
|
+
for (const B in (u = f.raw) == null ? void 0 : u.LineString) {
|
|
8376
|
+
const d = f.raw.LineString[B];
|
|
8377
|
+
for (const P of d)
|
|
8378
|
+
w.push(
|
|
8379
|
+
M.lineString(P, {
|
|
8380
|
+
val: Number(B)
|
|
8381
|
+
})
|
|
8382
|
+
);
|
|
8383
|
+
f.data = M.featureCollection(w);
|
|
8389
8384
|
}
|
|
8390
|
-
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("height elapsed: ", a, ", total: ", e += a);
|
|
8391
8385
|
}
|
|
8386
|
+
if (f.data) {
|
|
8387
|
+
const w = this.handleBboxClip(f.data, r);
|
|
8388
|
+
L = L.concat(w);
|
|
8389
|
+
}
|
|
8390
|
+
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", a, ", total: ", e += a);
|
|
8392
8391
|
}
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
8392
|
+
} else if (x === "current" && this.showCurrentIsoband) {
|
|
8393
|
+
D = !0;
|
|
8394
|
+
const A = ((b = this.weatherLayers[x]) == null ? void 0 : b.direction) || {};
|
|
8395
|
+
for (const w in A)
|
|
8396
|
+
if (w > c && w < h && (!(i <= this.zoom) || w % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8397
|
+
const B = A[w].lng;
|
|
8398
|
+
o > l ? B.forEach((d, P) => {
|
|
8399
|
+
var Q, S, _, H, Y, J;
|
|
8400
|
+
if (i < 2) {
|
|
8401
|
+
if ((d >= 0 && d <= 360 || d >= -360 && d <= 0) && d % 10 === 0) {
|
|
8402
|
+
const W = M.point([d, w], {
|
|
8403
|
+
val: ((Q = A[w].val) == null ? void 0 : Q[P]) || ((S = A[w].dir) == null ? void 0 : S[P]),
|
|
8404
|
+
spd: (_ = A[w].spd) == null ? void 0 : _[P]
|
|
8405
|
+
});
|
|
8406
|
+
L.push(W);
|
|
8407
|
+
}
|
|
8408
|
+
} else if ((d >= o && d <= 180 || d >= -180 && d <= l) && (!(i <= this.zoom) || d % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8409
|
+
const W = M.point([d, w], {
|
|
8410
|
+
val: ((H = A[w].val) == null ? void 0 : H[P]) || ((Y = A[w].dir) == null ? void 0 : Y[P]),
|
|
8411
|
+
spd: (J = A[w].spd) == null ? void 0 : J[P]
|
|
8412
|
+
});
|
|
8413
|
+
L.push(W);
|
|
8414
|
+
}
|
|
8415
|
+
}) : B.forEach((d, P) => {
|
|
8416
|
+
var Q, S, _, H, Y, J;
|
|
8417
|
+
if (o < 2) {
|
|
8418
|
+
if ((d >= 0 && d <= 360 || d >= -360 && d <= 0) && d % 10 === 0) {
|
|
8419
|
+
const W = M.point([d, w], {
|
|
8420
|
+
val: ((Q = A[w].val) == null ? void 0 : Q[P]) || ((S = A[w].dir) == null ? void 0 : S[P]),
|
|
8421
|
+
spd: (_ = A[w].spd) == null ? void 0 : _[P]
|
|
8422
|
+
});
|
|
8423
|
+
L.push(W);
|
|
8424
|
+
}
|
|
8425
|
+
} else if (d >= o && d <= l && (!(i <= this.zoom) || d % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8426
|
+
const W = M.point([d, w], {
|
|
8427
|
+
val: ((H = A[w].val) == null ? void 0 : H[P]) || ((Y = A[w].dir) == null ? void 0 : Y[P]),
|
|
8428
|
+
spd: (J = A[w].spd) == null ? void 0 : J[P]
|
|
8429
|
+
});
|
|
8430
|
+
L.push(W);
|
|
8406
8431
|
}
|
|
8407
|
-
|
|
8432
|
+
});
|
|
8433
|
+
}
|
|
8434
|
+
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", a, ", total: ", e += a);
|
|
8435
|
+
const f = this.weatherLayers[x].speed;
|
|
8436
|
+
if (f) {
|
|
8437
|
+
if (!f.data) {
|
|
8438
|
+
const B = [];
|
|
8439
|
+
for (const d in (v = f.raw) == null ? void 0 : v.Polygon) {
|
|
8440
|
+
const P = f.raw.Polygon[d];
|
|
8441
|
+
for (const Q of P)
|
|
8442
|
+
B.push(
|
|
8443
|
+
M.polygon(Q, {
|
|
8444
|
+
val: Number(d)
|
|
8445
|
+
})
|
|
8446
|
+
);
|
|
8408
8447
|
}
|
|
8409
|
-
|
|
8410
|
-
v = v.concat(C), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("speed elapsed: ", a, ", total: ", e += a);
|
|
8448
|
+
f.data = M.featureCollection(B);
|
|
8411
8449
|
}
|
|
8450
|
+
const w = i < this.zoom ? f.data.features.filter((B) => B.properties.val > 0.5) : f.data.features;
|
|
8451
|
+
L = L.concat(w), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", a, ", total: ", e += a);
|
|
8412
8452
|
}
|
|
8413
|
-
} else if (
|
|
8414
|
-
|
|
8415
|
-
const
|
|
8416
|
-
for (const
|
|
8417
|
-
if (
|
|
8418
|
-
const
|
|
8419
|
-
o > l ?
|
|
8420
|
-
var
|
|
8453
|
+
} else if (x === "wind" && this.showWindFeather) {
|
|
8454
|
+
D = !0;
|
|
8455
|
+
const A = this.weatherLayers.wind.raw;
|
|
8456
|
+
for (const f in A)
|
|
8457
|
+
if (f > c && f < h && (!(i <= this.zoom) || f % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8458
|
+
const w = A[f].lng;
|
|
8459
|
+
o > l ? w.forEach((B, d) => {
|
|
8460
|
+
var P, Q, S, _;
|
|
8421
8461
|
if (i < 2) {
|
|
8422
|
-
if ((
|
|
8423
|
-
const
|
|
8424
|
-
dir: ((
|
|
8425
|
-
spd: f
|
|
8462
|
+
if ((B >= 0 && B <= 360 || B >= -360 && B <= 0) && B % 10 === 0) {
|
|
8463
|
+
const H = M.point([B, f], {
|
|
8464
|
+
dir: ((P = A[f].val) == null ? void 0 : P[d]) || ((Q = A[f].dir) == null ? void 0 : Q[d]),
|
|
8465
|
+
spd: A[f].spd[d]
|
|
8426
8466
|
});
|
|
8427
|
-
|
|
8467
|
+
L.push(H);
|
|
8428
8468
|
}
|
|
8429
|
-
} else if ((
|
|
8430
|
-
const
|
|
8431
|
-
dir: ((
|
|
8432
|
-
spd: f
|
|
8469
|
+
} else if ((B >= o && B <= 180 || B >= -180 && B <= l) && (!(i <= this.zoom) || B % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8470
|
+
const H = M.point([B, f], {
|
|
8471
|
+
dir: ((S = A[f].val) == null ? void 0 : S[d]) || ((_ = A[f].dir) == null ? void 0 : _[d]),
|
|
8472
|
+
spd: A[f].spd[d]
|
|
8433
8473
|
});
|
|
8434
|
-
|
|
8474
|
+
L.push(H);
|
|
8435
8475
|
}
|
|
8436
|
-
}) :
|
|
8437
|
-
var
|
|
8476
|
+
}) : w.forEach((B, d) => {
|
|
8477
|
+
var P, Q, S, _;
|
|
8438
8478
|
if (i < 2) {
|
|
8439
|
-
if ((
|
|
8440
|
-
const
|
|
8441
|
-
dir: ((
|
|
8442
|
-
spd: f
|
|
8479
|
+
if ((B >= 0 && B <= 360 || B >= -360 && B <= 0) && B % 10 === 0) {
|
|
8480
|
+
const H = M.point([B, f], {
|
|
8481
|
+
dir: ((P = A[f].val) == null ? void 0 : P[d]) || ((Q = A[f].dir) == null ? void 0 : Q[d]),
|
|
8482
|
+
spd: A[f].spd[d]
|
|
8443
8483
|
});
|
|
8444
|
-
|
|
8484
|
+
L.push(H);
|
|
8445
8485
|
}
|
|
8446
|
-
} else if (
|
|
8447
|
-
const
|
|
8448
|
-
dir: ((
|
|
8449
|
-
spd: f
|
|
8486
|
+
} else if (B >= o && B <= l && (!(i <= this.zoom) || B % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
8487
|
+
const H = M.point([B, f], {
|
|
8488
|
+
dir: ((S = A[f].val) == null ? void 0 : S[d]) || ((_ = A[f].dir) == null ? void 0 : _[d]),
|
|
8489
|
+
spd: A[f].spd[d]
|
|
8450
8490
|
});
|
|
8451
|
-
|
|
8491
|
+
L.push(H);
|
|
8452
8492
|
}
|
|
8453
8493
|
});
|
|
8454
8494
|
}
|
|
8455
8495
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", a, ", total: ", e += a);
|
|
8456
|
-
} else if (
|
|
8457
|
-
if (this.weatherLayers[
|
|
8458
|
-
|
|
8496
|
+
} else if (x === "sig-wave-height") {
|
|
8497
|
+
if (this.weatherLayers[x].data)
|
|
8498
|
+
L = this.weatherLayers[x].data;
|
|
8459
8499
|
else {
|
|
8460
|
-
|
|
8461
|
-
const
|
|
8462
|
-
if (
|
|
8463
|
-
const
|
|
8464
|
-
for (const
|
|
8465
|
-
const
|
|
8466
|
-
for (const
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
val: Number(
|
|
8500
|
+
D = !0;
|
|
8501
|
+
const A = this.weatherLayers[x].raw;
|
|
8502
|
+
if (A) {
|
|
8503
|
+
const f = [];
|
|
8504
|
+
for (const w in A.Polygon) {
|
|
8505
|
+
const B = A.Polygon[w];
|
|
8506
|
+
for (const d of B)
|
|
8507
|
+
f.push(
|
|
8508
|
+
M.polygon(d, {
|
|
8509
|
+
val: Number(w)
|
|
8470
8510
|
})
|
|
8471
8511
|
);
|
|
8472
8512
|
}
|
|
8473
|
-
for (const
|
|
8474
|
-
const
|
|
8475
|
-
for (let
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
val: Number(
|
|
8513
|
+
for (const w in A.Point) {
|
|
8514
|
+
const B = A.Point[w];
|
|
8515
|
+
for (let d = 0; d < ((y = B.lng) == null ? void 0 : y.length); d++)
|
|
8516
|
+
f.push(
|
|
8517
|
+
M.point([B.lng[d], w], {
|
|
8518
|
+
val: Number(B.val[d])
|
|
8479
8519
|
})
|
|
8480
8520
|
);
|
|
8481
8521
|
}
|
|
8482
|
-
|
|
8522
|
+
L = L.concat(f);
|
|
8483
8523
|
}
|
|
8484
8524
|
}
|
|
8485
8525
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sigWave elapsed: ", a, ", total: ", e += a);
|
|
8486
|
-
} else if (
|
|
8487
|
-
if (this.weatherLayers[
|
|
8488
|
-
|
|
8526
|
+
} else if (x === "prmsl") {
|
|
8527
|
+
if (this.weatherLayers[x].data)
|
|
8528
|
+
L = this.weatherLayers[x].data;
|
|
8489
8529
|
else {
|
|
8490
|
-
|
|
8491
|
-
const
|
|
8492
|
-
if (
|
|
8493
|
-
const
|
|
8494
|
-
for (const
|
|
8495
|
-
const
|
|
8496
|
-
for (const
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
val: Number(
|
|
8530
|
+
D = !0;
|
|
8531
|
+
const A = this.weatherLayers[x].raw;
|
|
8532
|
+
if (A) {
|
|
8533
|
+
const f = [];
|
|
8534
|
+
for (const w in A.LineString) {
|
|
8535
|
+
const B = A.LineString[w];
|
|
8536
|
+
for (const d of B)
|
|
8537
|
+
f.push(
|
|
8538
|
+
M.lineString(d, {
|
|
8539
|
+
val: Number(w)
|
|
8500
8540
|
})
|
|
8501
8541
|
);
|
|
8502
8542
|
}
|
|
8503
|
-
for (const
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
val:
|
|
8508
|
-
type:
|
|
8543
|
+
for (const w in A.Point)
|
|
8544
|
+
A.Point[w].lng.forEach((B, d) => {
|
|
8545
|
+
B = q.convertToStdLng(B), f.push(
|
|
8546
|
+
M.point([B, w], {
|
|
8547
|
+
val: A.Point[w].val[d],
|
|
8548
|
+
type: A.Point[w].type[d]
|
|
8509
8549
|
})
|
|
8510
8550
|
);
|
|
8511
8551
|
});
|
|
8512
|
-
|
|
8552
|
+
L = L.concat(f);
|
|
8513
8553
|
}
|
|
8514
8554
|
}
|
|
8515
8555
|
a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
|
|
8516
8556
|
}
|
|
8517
|
-
|
|
8557
|
+
L.length && (this.weatherLayers[x].data = M.featureCollection(L)), D && (this.weatherLayers[x].version = Math.random() + 1);
|
|
8518
8558
|
}
|
|
8519
8559
|
}
|
|
8520
8560
|
},
|
|
@@ -8524,14 +8564,14 @@ const To = {
|
|
|
8524
8564
|
this.handleDrawWeather4Json();
|
|
8525
8565
|
},
|
|
8526
8566
|
handleBboxClip(t, e) {
|
|
8527
|
-
const a = [], r =
|
|
8567
|
+
const a = [], r = q.convertToStdLng(e._sw.lng), i = q.convertToStdLng(e._ne.lng);
|
|
8528
8568
|
return t.features.forEach((o) => {
|
|
8529
8569
|
if (o.geometry.type !== "Point")
|
|
8530
8570
|
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 =
|
|
8571
|
+
let l = [r, e._sw.lat, 180, e._ne.lat], c = M.bboxClip(o, l);
|
|
8572
|
+
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
8573
|
} else {
|
|
8534
|
-
const l = [r, e._sw.lat, i, e._ne.lat], c =
|
|
8574
|
+
const l = [r, e._sw.lat, i, e._ne.lat], c = M.bboxClip(o, l);
|
|
8535
8575
|
c.geometry.coordinates.length && a.push(c);
|
|
8536
8576
|
}
|
|
8537
8577
|
else
|
|
@@ -8549,8 +8589,8 @@ const To = {
|
|
|
8549
8589
|
this.handleBeforeLayerToggle();
|
|
8550
8590
|
},
|
|
8551
8591
|
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 || (
|
|
8592
|
+
var t, e, a, r, i, o, l, c, h, p, n, u, b, v, y, x;
|
|
8593
|
+
(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
8594
|
},
|
|
8555
8595
|
handleDateChange(t = { tropicals: !1 }) {
|
|
8556
8596
|
this.fetchWeatherLayers(t), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -8584,8 +8624,8 @@ const To = {
|
|
|
8584
8624
|
}
|
|
8585
8625
|
},
|
|
8586
8626
|
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((
|
|
8627
|
+
var e, a, r, i, o, l, c, h, p, n, u, b, v, y, x, D, L, A, f, w;
|
|
8628
|
+
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
8629
|
},
|
|
8590
8630
|
handleParticle(t) {
|
|
8591
8631
|
this.particleFactor = t, this.weatherLayers[t.key] && (this.weatherLayers[t.key].particle = t.particle), this.activeWeatherLayers.map((r) => {
|
|
@@ -8609,10 +8649,10 @@ const To = {
|
|
|
8609
8649
|
className: "map-gl-home"
|
|
8610
8650
|
};
|
|
8611
8651
|
function So(t, e, a, r, i, o) {
|
|
8612
|
-
var Ae,
|
|
8613
|
-
const l =
|
|
8652
|
+
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;
|
|
8653
|
+
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
8654
|
return a.map ? (m(), g("div", Qo, [
|
|
8615
|
-
|
|
8655
|
+
z(l, j({
|
|
8616
8656
|
ref: "layer",
|
|
8617
8657
|
map: a.map,
|
|
8618
8658
|
"toggle-version": a.toggleVersion,
|
|
@@ -8627,81 +8667,85 @@ function So(t, e, a, r, i, o) {
|
|
|
8627
8667
|
"forecast-model": a.forecastModel,
|
|
8628
8668
|
onWeather: o.handleWeatherLayerChange,
|
|
8629
8669
|
onOther: o.handleOtherLayerChange,
|
|
8630
|
-
onToggleWindParticle: e[0] || (e[0] = (
|
|
8631
|
-
onToggleWindFeather: e[1] || (e[1] = (
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8670
|
+
onToggleWindParticle: e[0] || (e[0] = (V) => i.showWindParticle = V),
|
|
8671
|
+
onToggleWindFeather: e[1] || (e[1] = (V) => {
|
|
8672
|
+
i.showWindFeather = V, o.handleDrawWeather4Json();
|
|
8673
|
+
}),
|
|
8674
|
+
onToggleCurrentParticle: e[2] || (e[2] = (V) => i.showCurrentParticle = V),
|
|
8675
|
+
onToggleCurrentIsoband: e[3] || (e[3] = (V) => {
|
|
8676
|
+
i.showCurrentIsoband = V, o.handleDrawWeather4Json();
|
|
8677
|
+
}),
|
|
8678
|
+
onToggleWindParticeVersion: e[4] || (e[4] = (V) => i.toggleWindParticeVersion = Math.random()),
|
|
8679
|
+
onToggleCurrentParticeVersion: e[5] || (e[5] = (V) => i.toggleCurrentParticeVersion = Math.random()),
|
|
8680
|
+
onCoordinate: e[6] || (e[6] = (V) => i.showCoord = V),
|
|
8681
|
+
onMeasure: e[7] || (e[7] = (V) => i.showMeasure = V),
|
|
8682
|
+
onPoint: e[8] || (e[8] = (V) => i.showPoint = V),
|
|
8639
8683
|
on3d: o.handle3dToggle,
|
|
8640
8684
|
onHandleToggleVersion: o.handleToggleVersion
|
|
8641
8685
|
}), 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
|
-
|
|
8686
|
+
z(c, j({
|
|
8643
8687
|
map: a.map,
|
|
8644
8688
|
token: a.token,
|
|
8645
8689
|
enabled: (Ae = i.otherLayers) == null ? void 0 : Ae.enc,
|
|
8646
8690
|
"toggle-version": a.toggleVersion
|
|
8647
8691
|
}, t.$attrs, {
|
|
8648
|
-
onEnc: e[9] || (e[9] = (
|
|
8692
|
+
onEnc: e[9] || (e[9] = (V) => i.enc = V)
|
|
8649
8693
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
8650
|
-
|
|
8694
|
+
z(h, j({
|
|
8651
8695
|
map: a.map,
|
|
8652
8696
|
token: a.token,
|
|
8653
8697
|
"weather-layers": i.weatherLayers,
|
|
8654
|
-
enabled: (
|
|
8698
|
+
enabled: (oe = i.otherLayers) == null ? void 0 : oe.world12nm
|
|
8655
8699
|
}, t.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
8656
|
-
|
|
8700
|
+
z(p, j({
|
|
8657
8701
|
map: a.map,
|
|
8658
8702
|
token: a.token,
|
|
8659
8703
|
"weather-layers": i.weatherLayers,
|
|
8660
|
-
enabled: (
|
|
8704
|
+
enabled: (N = i.otherLayers) == null ? void 0 : N.worldMarine
|
|
8661
8705
|
}, t.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
8662
|
-
|
|
8706
|
+
z(n, j({
|
|
8663
8707
|
map: a.map,
|
|
8664
8708
|
token: a.token,
|
|
8665
8709
|
"weather-layers": i.weatherLayers,
|
|
8666
|
-
enabled: (
|
|
8710
|
+
enabled: (te = i.otherLayers) == null ? void 0 : te.chinaRoute
|
|
8667
8711
|
}, t.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
8668
|
-
|
|
8712
|
+
z(u, j({
|
|
8669
8713
|
map: a.map,
|
|
8670
8714
|
"sig-wave": (fe = i.weatherLayers) == null ? void 0 : fe["sig-wave-height"],
|
|
8671
8715
|
"before-layer": a.beforeLayer,
|
|
8672
8716
|
"active-weather-layers": i.activeWeatherLayers
|
|
8673
8717
|
}, t.$attrs), null, 16, ["map", "sig-wave", "before-layer", "active-weather-layers"]),
|
|
8674
|
-
|
|
8718
|
+
z(b, j({
|
|
8675
8719
|
map: a.map,
|
|
8676
|
-
swell: (
|
|
8720
|
+
swell: (se = i.weatherLayers) == null ? void 0 : se.swell,
|
|
8677
8721
|
"before-layer": a.beforeLayer,
|
|
8678
8722
|
"active-weather-layers": i.activeWeatherLayers
|
|
8679
8723
|
}, t.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
|
|
8680
|
-
|
|
8724
|
+
z(v, j({
|
|
8681
8725
|
map: a.map,
|
|
8682
|
-
prmsl: (
|
|
8726
|
+
prmsl: (le = i.weatherLayers) == null ? void 0 : le.prmsl,
|
|
8683
8727
|
"before-layer": a.beforeLayer,
|
|
8684
8728
|
"active-weather-layers": i.activeWeatherLayers
|
|
8685
8729
|
}, t.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
8686
|
-
|
|
8730
|
+
z(y, j({
|
|
8687
8731
|
viewport: i.viewport,
|
|
8688
|
-
factor: (
|
|
8732
|
+
factor: (ce = i.weatherLayers) == null ? void 0 : ce["ice-cover"],
|
|
8689
8733
|
"toggle-version": a.toggleVersion,
|
|
8690
8734
|
"before-layer": a.beforeLayer
|
|
8691
8735
|
}, t.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
8692
|
-
|
|
8736
|
+
z(x, j({
|
|
8693
8737
|
viewport: i.viewport,
|
|
8694
|
-
factor: (
|
|
8738
|
+
factor: (I = i.weatherLayers) == null ? void 0 : I["ice-thickness"],
|
|
8695
8739
|
"toggle-version": a.toggleVersion,
|
|
8696
8740
|
"before-layer": a.beforeLayer
|
|
8697
8741
|
}, t.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
8698
|
-
|
|
8742
|
+
z(D, j({
|
|
8699
8743
|
map: a.map,
|
|
8700
8744
|
date: a.ts,
|
|
8701
8745
|
tropicals: (Le = i.weatherLayers) == null ? void 0 : Le.tropicals,
|
|
8702
8746
|
"before-layer": a.beforeLayer
|
|
8703
8747
|
}, t.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
8704
|
-
|
|
8748
|
+
z(L, j({
|
|
8705
8749
|
map: a.map,
|
|
8706
8750
|
"map-projection": i.mapProjection,
|
|
8707
8751
|
current: (xe = i.weatherLayers) == null ? void 0 : xe.current,
|
|
@@ -8716,13 +8760,13 @@ function So(t, e, a, r, i, o) {
|
|
|
8716
8760
|
onParticle: o.handleParticle,
|
|
8717
8761
|
onHandleToggleVersion: o.handleToggleVersion
|
|
8718
8762
|
}), 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
|
-
|
|
8763
|
+
z(A, j({
|
|
8720
8764
|
viewport: i.viewport,
|
|
8721
8765
|
factor: (Be = i.weatherLayers) == null ? void 0 : Be["current-particle"],
|
|
8722
8766
|
"before-layer": a.beforeLayer,
|
|
8723
8767
|
"toggle-version": a.toggleVersion
|
|
8724
8768
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8725
|
-
|
|
8769
|
+
z(f, j({
|
|
8726
8770
|
ref: "windBarb",
|
|
8727
8771
|
map: a.map,
|
|
8728
8772
|
"map-projection": i.mapProjection,
|
|
@@ -8738,96 +8782,96 @@ function So(t, e, a, r, i, o) {
|
|
|
8738
8782
|
"weather-layers": i.weatherLayers,
|
|
8739
8783
|
onParticle: o.handleParticle
|
|
8740
8784
|
}), 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
|
-
|
|
8785
|
+
z(w, j({
|
|
8742
8786
|
viewport: i.viewport,
|
|
8743
8787
|
factor: (De = i.weatherLayers) == null ? void 0 : De["wind-particle"],
|
|
8744
8788
|
"before-layer": a.beforeLayer,
|
|
8745
8789
|
"toggle-version": a.toggleVersion
|
|
8746
8790
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8747
|
-
|
|
8791
|
+
z(B, j({
|
|
8748
8792
|
viewport: i.viewport,
|
|
8749
8793
|
factor: (Pe = i.weatherLayers) == null ? void 0 : Pe.precip3h,
|
|
8750
8794
|
"before-layer": a.beforeLayer,
|
|
8751
8795
|
"toggle-version": a.toggleVersion
|
|
8752
8796
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8753
|
-
|
|
8797
|
+
z(d, j({
|
|
8754
8798
|
viewport: i.viewport,
|
|
8755
8799
|
factor: (ke = i.weatherLayers) == null ? void 0 : ke.visibility,
|
|
8756
8800
|
"before-layer": a.beforeLayer,
|
|
8757
8801
|
"toggle-version": a.toggleVersion
|
|
8758
8802
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8759
|
-
|
|
8803
|
+
z(P, j({
|
|
8760
8804
|
viewport: i.viewport,
|
|
8761
8805
|
factor: (Me = i.weatherLayers) == null ? void 0 : Me["water-temp"],
|
|
8762
8806
|
"before-layer": a.beforeLayer,
|
|
8763
8807
|
"toggle-version": a.toggleVersion
|
|
8764
8808
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8765
|
-
|
|
8809
|
+
z(Q, j({
|
|
8766
8810
|
viewport: i.viewport,
|
|
8767
8811
|
factor: (ze = i.weatherLayers) == null ? void 0 : ze.temp,
|
|
8768
8812
|
"before-layer": a.beforeLayer,
|
|
8769
8813
|
"toggle-version": a.toggleVersion
|
|
8770
8814
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8771
|
-
|
|
8815
|
+
z(S, j({
|
|
8772
8816
|
map: a.map,
|
|
8773
8817
|
zone: (Te = i.otherLayers) == null ? void 0 : Te["war-zones"],
|
|
8774
8818
|
"before-layer": a.beforeLayer
|
|
8775
8819
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8776
|
-
|
|
8820
|
+
z(_, j({
|
|
8777
8821
|
map: a.map,
|
|
8778
8822
|
area: (Qe = i.otherLayers) == null ? void 0 : Qe["gmdss-areas"],
|
|
8779
8823
|
"before-layer": a.beforeLayer
|
|
8780
8824
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
8781
|
-
|
|
8825
|
+
z(H, j({
|
|
8782
8826
|
map: a.map,
|
|
8783
8827
|
zone: (Se = i.otherLayers) == null ? void 0 : Se["eca-zones"],
|
|
8784
8828
|
"before-layer": a.beforeLayer
|
|
8785
8829
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8786
|
-
|
|
8830
|
+
z(Y, j({
|
|
8787
8831
|
map: a.map,
|
|
8788
8832
|
zone: (_e = i.otherLayers) == null ? void 0 : _e["alert-zones"],
|
|
8789
8833
|
"before-layer": a.beforeLayer
|
|
8790
8834
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8791
|
-
|
|
8835
|
+
z(J, j({
|
|
8792
8836
|
map: a.map,
|
|
8793
8837
|
port: (He = i.otherLayers) == null ? void 0 : He.ports,
|
|
8794
8838
|
"before-layer": a.beforeLayer,
|
|
8795
8839
|
"forecast-model": a.forecastModel
|
|
8796
8840
|
}, t.$attrs), null, 16, ["map", "port", "before-layer", "forecast-model"]),
|
|
8797
|
-
|
|
8841
|
+
z(W, j({
|
|
8798
8842
|
map: a.map,
|
|
8799
8843
|
line: (Oe = i.otherLayers) == null ? void 0 : Oe["load-lines"],
|
|
8800
8844
|
"before-layer": a.beforeLayer
|
|
8801
8845
|
}, t.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
8802
|
-
|
|
8846
|
+
z(de, j({
|
|
8803
8847
|
map: a.map,
|
|
8804
8848
|
zone: (Ne = i.otherLayers) == null ? void 0 : Ne["time-zones"],
|
|
8805
8849
|
"before-layer": a.beforeLayer
|
|
8806
8850
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8807
|
-
|
|
8851
|
+
z(pe, j({
|
|
8808
8852
|
map: a.map,
|
|
8809
8853
|
area: (je = i.otherLayers) == null ? void 0 : je["voluntary-reporting-area"],
|
|
8810
8854
|
"before-layer": a.beforeLayer
|
|
8811
8855
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
8812
|
-
|
|
8856
|
+
z(ue, j({
|
|
8813
8857
|
map: a.map,
|
|
8814
8858
|
area: (Re = i.otherLayers) == null ? void 0 : Re["special-area"],
|
|
8815
8859
|
"before-layer": a.beforeLayer
|
|
8816
8860
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
8817
|
-
|
|
8861
|
+
z(me, j({
|
|
8818
8862
|
map: a.map,
|
|
8819
8863
|
area: (Fe = i.otherLayers) == null ? void 0 : Fe["day-night"]
|
|
8820
8864
|
}, t.$attrs), null, 16, ["map", "area"]),
|
|
8821
|
-
|
|
8865
|
+
z(ge, j({
|
|
8822
8866
|
map: a.map,
|
|
8823
8867
|
show: i.showCoord,
|
|
8824
8868
|
"toggle-version": a.toggleVersion
|
|
8825
8869
|
}, t.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
8826
|
-
|
|
8870
|
+
z(ie, j({
|
|
8827
8871
|
map: a.map,
|
|
8828
8872
|
show: i.showMeasure
|
|
8829
8873
|
}, t.$attrs), null, 16, ["map", "show"]),
|
|
8830
|
-
|
|
8874
|
+
z(ne, j({
|
|
8831
8875
|
ref: "idmPoint",
|
|
8832
8876
|
map: a.map,
|
|
8833
8877
|
show: i.showPoint,
|
|
@@ -8837,9 +8881,9 @@ function So(t, e, a, r, i, o) {
|
|
|
8837
8881
|
gateway: i.gateway,
|
|
8838
8882
|
"forecast-model": a.forecastModel
|
|
8839
8883
|
}, t.$attrs), null, 16, ["map", "show", "meteo", "ts", "token", "gateway", "forecast-model"])
|
|
8840
|
-
], 512)) :
|
|
8884
|
+
], 512)) : R("", !0);
|
|
8841
8885
|
}
|
|
8842
|
-
const _o = /* @__PURE__ */
|
|
8886
|
+
const _o = /* @__PURE__ */ O(To, [["render", So]]), Ko = {
|
|
8843
8887
|
install(t) {
|
|
8844
8888
|
t.component("MapboxGL", _o), t.component("TropicalGL", lt), t.component("LatLngGL", ct);
|
|
8845
8889
|
}
|
|
@@ -8849,9 +8893,9 @@ export {
|
|
|
8849
8893
|
_o as MapboxGL,
|
|
8850
8894
|
Ko as MapboxGLPlugin,
|
|
8851
8895
|
ra as MapboxHelper,
|
|
8852
|
-
|
|
8896
|
+
ae as ParticleSchema,
|
|
8853
8897
|
lt as TropicalGL,
|
|
8854
8898
|
Je as Viewport,
|
|
8855
8899
|
Ce as WebGL,
|
|
8856
|
-
|
|
8900
|
+
ee as WebGLSchema
|
|
8857
8901
|
};
|