@idmwx/idmui-gl3 4.4.1 → 4.4.3
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 +1544 -1035
- package/dist/index.umd.cjs +13 -13
- package/dist/mapbox/src/components/layer.vue.d.ts +5 -1
- package/dist/mapbox/src/components/weather/current.vue.d.ts +2 -9
- package/dist/mapbox/src/components/weather/wind.vue.d.ts +1 -12
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,20 +1,486 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import Ze from "@mapbox/sphericalmercator";
|
|
1
|
+
var at = Object.defineProperty;
|
|
2
|
+
var it = (a, e, t) => e in a ? at(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
|
+
var R = (a, e, t) => (it(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { resolveComponent as P, openBlock as x, createElementBlock as C, createElementVNode as l, normalizeStyle as U, createVNode as k, withCtx as K, normalizeClass as j, Fragment as Ae, renderList as $e, toDisplayString as S, createCommentVNode as B, createTextVNode as Fe, pushScopeId as H, popScopeId as G, withDirectives as je, vShow as Ne, createStaticVNode as rt, mergeProps as E } from "vue";
|
|
5
|
+
import * as L from "@turf/turf";
|
|
6
|
+
import ot from "@mapbox/sphericalmercator";
|
|
8
7
|
import Z from "moment";
|
|
9
|
-
import
|
|
10
|
-
import { TropicalHelper as
|
|
11
|
-
import
|
|
8
|
+
import te from "mapbox-gl";
|
|
9
|
+
import { TropicalHelper as Qe, LngLatHelper as D, LaneHelper as ee } from "@idm-plugin/geo";
|
|
10
|
+
import ne from "axios";
|
|
11
|
+
var st = Object.defineProperty, nt = (a, e, t) => e in a ? st(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, Ce = (a, e, t) => (nt(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
12
|
+
class De {
|
|
13
|
+
}
|
|
14
|
+
Ce(De, "LEVEL", {
|
|
15
|
+
Basic: 1,
|
|
16
|
+
Prime: 2,
|
|
17
|
+
Supper: 1024
|
|
18
|
+
});
|
|
19
|
+
class Me {
|
|
20
|
+
}
|
|
21
|
+
Ce(Me, "WEATHER_LAYERS", [
|
|
22
|
+
{
|
|
23
|
+
weight: 1,
|
|
24
|
+
name: "Wind",
|
|
25
|
+
key: "wind",
|
|
26
|
+
h5: !0,
|
|
27
|
+
enabled: !0,
|
|
28
|
+
type: "json",
|
|
29
|
+
particle: !0
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
weight: 524288,
|
|
33
|
+
name: "Wind Particle",
|
|
34
|
+
key: "wind-particle",
|
|
35
|
+
peer: {
|
|
36
|
+
weight: 1,
|
|
37
|
+
key: "wind"
|
|
38
|
+
},
|
|
39
|
+
enabled: !0,
|
|
40
|
+
hide: !0,
|
|
41
|
+
type: "jpg"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
weight: 16,
|
|
45
|
+
name: "Sig Waves",
|
|
46
|
+
key: "sig-wave-height",
|
|
47
|
+
h5: !0,
|
|
48
|
+
enabled: !0,
|
|
49
|
+
type: "json"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
weight: 4194304,
|
|
53
|
+
name: "Sig Waves (JPG)",
|
|
54
|
+
key: "sig-wave",
|
|
55
|
+
peer: {
|
|
56
|
+
weight: 16,
|
|
57
|
+
key: "sig-wave"
|
|
58
|
+
},
|
|
59
|
+
enabled: !0,
|
|
60
|
+
hide: !0,
|
|
61
|
+
type: "jpg"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
weight: 8388608,
|
|
65
|
+
name: "Sig Waves (Contour)",
|
|
66
|
+
key: "sig-wave-height-contour",
|
|
67
|
+
peer: {
|
|
68
|
+
weight: 16,
|
|
69
|
+
key: "sig-wave-contour"
|
|
70
|
+
},
|
|
71
|
+
enabled: !0,
|
|
72
|
+
hide: !0,
|
|
73
|
+
type: "json"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
weight: 96,
|
|
77
|
+
name: "Current",
|
|
78
|
+
key: "current",
|
|
79
|
+
vendor: "cmems",
|
|
80
|
+
merge: !0,
|
|
81
|
+
h5: !0,
|
|
82
|
+
enabled: !0,
|
|
83
|
+
type: "json"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
weight: 1048576,
|
|
87
|
+
name: "Current Particle",
|
|
88
|
+
key: "current-particle",
|
|
89
|
+
vendor: "cmems",
|
|
90
|
+
peer: {
|
|
91
|
+
weight: 96,
|
|
92
|
+
key: "current"
|
|
93
|
+
},
|
|
94
|
+
enabled: !0,
|
|
95
|
+
hide: !0,
|
|
96
|
+
type: "jpg"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
weight: 256,
|
|
100
|
+
name: "Tropicals",
|
|
101
|
+
key: "tropicals",
|
|
102
|
+
h5: !0,
|
|
103
|
+
enabled: !0,
|
|
104
|
+
type: "json"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
weight: 4096,
|
|
108
|
+
name: "Pressure",
|
|
109
|
+
h5: !0,
|
|
110
|
+
key: "prmsl",
|
|
111
|
+
enabled: !0,
|
|
112
|
+
type: "json"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
weight: 8192,
|
|
116
|
+
name: "Visibility",
|
|
117
|
+
vendor: "gfs",
|
|
118
|
+
key: "visibility",
|
|
119
|
+
h5: !0,
|
|
120
|
+
enabled: !0,
|
|
121
|
+
type: "jpg"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
weight: 262144,
|
|
125
|
+
name: "Precip Acc",
|
|
126
|
+
key: "precip3h",
|
|
127
|
+
h5: !0,
|
|
128
|
+
enabled: !0,
|
|
129
|
+
type: "jpg"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
weight: 6,
|
|
133
|
+
name: "Swell",
|
|
134
|
+
key: "swell",
|
|
135
|
+
merge: !0,
|
|
136
|
+
h5: !0,
|
|
137
|
+
enabled: !0,
|
|
138
|
+
type: "json"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
weight: 2,
|
|
142
|
+
name: "Swell Height",
|
|
143
|
+
key: "swell-height",
|
|
144
|
+
partly: !0,
|
|
145
|
+
enabled: !0,
|
|
146
|
+
type: "json"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
weight: 4,
|
|
150
|
+
name: "Swell Direction",
|
|
151
|
+
key: "swell-direction",
|
|
152
|
+
partly: !0,
|
|
153
|
+
enabled: !0,
|
|
154
|
+
type: "json"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
weight: 32,
|
|
158
|
+
name: "Current Direction",
|
|
159
|
+
key: "current-direction",
|
|
160
|
+
vendor: "cmems",
|
|
161
|
+
partly: !0,
|
|
162
|
+
enabled: !0,
|
|
163
|
+
type: "json"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
weight: 64,
|
|
167
|
+
name: "Current Speed",
|
|
168
|
+
key: "current-speed",
|
|
169
|
+
vendor: "cmems",
|
|
170
|
+
partly: !0,
|
|
171
|
+
enabled: !0,
|
|
172
|
+
type: "json"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
weight: 512,
|
|
176
|
+
name: "Pressure Contour",
|
|
177
|
+
key: "prmsl-contour",
|
|
178
|
+
partly: !0,
|
|
179
|
+
enabled: !0,
|
|
180
|
+
hide: !0,
|
|
181
|
+
type: "json"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
weight: 1024,
|
|
185
|
+
name: "Pressure Value",
|
|
186
|
+
key: "prmsl-value",
|
|
187
|
+
partly: !0,
|
|
188
|
+
enabled: !0,
|
|
189
|
+
hide: !0,
|
|
190
|
+
type: "json"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
weight: 2048,
|
|
194
|
+
name: "Pressure Front",
|
|
195
|
+
key: "prmsl-front",
|
|
196
|
+
partly: !0,
|
|
197
|
+
enabled: !0,
|
|
198
|
+
hide: !0,
|
|
199
|
+
type: "json"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
weight: 16384,
|
|
203
|
+
name: "Iceberg",
|
|
204
|
+
key: "iceberg",
|
|
205
|
+
vendor: "cmems",
|
|
206
|
+
hide: !0,
|
|
207
|
+
enabled: !1,
|
|
208
|
+
type: "json"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
weight: 32768,
|
|
212
|
+
name: "Struct Ice",
|
|
213
|
+
key: "struct-ice",
|
|
214
|
+
vendor: "cmems",
|
|
215
|
+
enabled: !1,
|
|
216
|
+
hide: !0,
|
|
217
|
+
type: "json"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
weight: 65536,
|
|
221
|
+
name: "Ice Edge",
|
|
222
|
+
key: "arctic",
|
|
223
|
+
vendor: "cmems",
|
|
224
|
+
h5: !0,
|
|
225
|
+
enabled: !0,
|
|
226
|
+
type: "jpg"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
weight: 131072,
|
|
230
|
+
name: "Sea Surf. Temp.",
|
|
231
|
+
key: "water-temp",
|
|
232
|
+
vendor: "cmems",
|
|
233
|
+
h5: !0,
|
|
234
|
+
enabled: !0,
|
|
235
|
+
type: "jpg"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
weight: 2097152,
|
|
239
|
+
name: "Temp.",
|
|
240
|
+
key: "temp",
|
|
241
|
+
h5: !0,
|
|
242
|
+
enabled: !0,
|
|
243
|
+
type: "jpg"
|
|
244
|
+
}
|
|
245
|
+
]), // 其它图层
|
|
246
|
+
Ce(Me, "OTHER_LAYERS", [
|
|
247
|
+
{
|
|
248
|
+
weight: 1,
|
|
249
|
+
name: "War Zones",
|
|
250
|
+
key: "war-zones",
|
|
251
|
+
h5: !0,
|
|
252
|
+
enabled: !0,
|
|
253
|
+
type: "json"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
weight: 2,
|
|
257
|
+
name: "GMDSS Areas",
|
|
258
|
+
key: "gmdss-areas",
|
|
259
|
+
h5: !0,
|
|
260
|
+
enabled: !0,
|
|
261
|
+
type: "json"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
weight: 4,
|
|
265
|
+
name: "ECA Zones",
|
|
266
|
+
key: "eca-zones",
|
|
267
|
+
h5: !0,
|
|
268
|
+
enabled: !0,
|
|
269
|
+
type: "json"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
weight: 8,
|
|
273
|
+
name: "Load Lines",
|
|
274
|
+
key: "load-lines",
|
|
275
|
+
h5: !0,
|
|
276
|
+
enabled: !0,
|
|
277
|
+
type: "json"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
weight: 16,
|
|
281
|
+
name: "HRA",
|
|
282
|
+
key: "high-risk-area",
|
|
283
|
+
enabled: !1,
|
|
284
|
+
type: "json"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
weight: 32,
|
|
288
|
+
name: "Pirates",
|
|
289
|
+
key: "pirates",
|
|
290
|
+
enabled: !1,
|
|
291
|
+
type: "json"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
weight: 4096,
|
|
295
|
+
name: "Alert Zones",
|
|
296
|
+
key: "alert-zones",
|
|
297
|
+
h5: !0,
|
|
298
|
+
enabled: !0,
|
|
299
|
+
type: "json"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
weight: 64,
|
|
303
|
+
name: "Ports",
|
|
304
|
+
key: "ports",
|
|
305
|
+
h5: !0,
|
|
306
|
+
enabled: !0,
|
|
307
|
+
type: "json"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
weight: 128,
|
|
311
|
+
name: "Time Zones",
|
|
312
|
+
key: "time-zones",
|
|
313
|
+
h5: !0,
|
|
314
|
+
enabled: !0,
|
|
315
|
+
type: "json"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
weight: 256,
|
|
319
|
+
name: "VRA",
|
|
320
|
+
key: "voluntary-reporting-area",
|
|
321
|
+
h5: !0,
|
|
322
|
+
enabled: !0,
|
|
323
|
+
type: "json"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
weight: 512,
|
|
327
|
+
name: "Special Areas",
|
|
328
|
+
key: "special-area",
|
|
329
|
+
h5: !0,
|
|
330
|
+
enabled: !0,
|
|
331
|
+
type: "json"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
weight: 1024,
|
|
335
|
+
name: "Day/Night",
|
|
336
|
+
key: "day-night",
|
|
337
|
+
h5: !0,
|
|
338
|
+
enabled: !0,
|
|
339
|
+
type: "json"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
weight: 2048,
|
|
343
|
+
name: "ENC",
|
|
344
|
+
key: "enc",
|
|
345
|
+
h5: !0,
|
|
346
|
+
enabled: !0,
|
|
347
|
+
type: "origin"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
weight: 8192,
|
|
351
|
+
name: "World-12nm",
|
|
352
|
+
key: "world12nm",
|
|
353
|
+
h5: !1,
|
|
354
|
+
enabled: !0,
|
|
355
|
+
type: "origin"
|
|
356
|
+
}
|
|
357
|
+
]);
|
|
358
|
+
class Oe {
|
|
359
|
+
}
|
|
360
|
+
Ce(Oe, "WEATHER_TAG", [
|
|
361
|
+
{
|
|
362
|
+
weight: 4,
|
|
363
|
+
// 2^2
|
|
364
|
+
name: "Adverse Weather Dangerous",
|
|
365
|
+
// 恶劣天气级别, 危险的
|
|
366
|
+
key: "DANGEROUS",
|
|
367
|
+
positive: !0
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
weight: 2,
|
|
371
|
+
// 2^1
|
|
372
|
+
name: "Adverse Weather Severe",
|
|
373
|
+
// 恶劣天气级别, 糟糕的
|
|
374
|
+
key: "SEVERE",
|
|
375
|
+
positive: !0
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
weight: 1,
|
|
379
|
+
// 2^0
|
|
380
|
+
name: "Adverse Weather Heavy",
|
|
381
|
+
// 恶劣天气级别, 严重的
|
|
382
|
+
key: "HEAVY",
|
|
383
|
+
positive: !0
|
|
384
|
+
}
|
|
385
|
+
]), // 航行相关标签, 2^11 <= weight <= 2^20
|
|
386
|
+
Ce(Oe, "SAILING_TAG", [
|
|
387
|
+
{
|
|
388
|
+
weight: 2048,
|
|
389
|
+
// 2^11
|
|
390
|
+
name: "Deviation",
|
|
391
|
+
// 偏航
|
|
392
|
+
key: "deviation",
|
|
393
|
+
positive: !0
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
weight: 4096,
|
|
397
|
+
// 2^12
|
|
398
|
+
name: "Stoppage",
|
|
399
|
+
// 停航
|
|
400
|
+
key: "stoppage",
|
|
401
|
+
positive: !0
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
weight: 8192,
|
|
405
|
+
// 2^13
|
|
406
|
+
name: "Deceleration",
|
|
407
|
+
// 减速
|
|
408
|
+
key: "deceleration",
|
|
409
|
+
positive: !0
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
weight: 16384,
|
|
413
|
+
// 2^14
|
|
414
|
+
name: "No Lane",
|
|
415
|
+
// 无航线
|
|
416
|
+
key: "noLane",
|
|
417
|
+
positive: !0
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
weight: 32768,
|
|
421
|
+
// 2^15
|
|
422
|
+
name: "No Noon",
|
|
423
|
+
// 没有船报
|
|
424
|
+
key: "noNoon",
|
|
425
|
+
positive: !0
|
|
426
|
+
}
|
|
427
|
+
]), // 其他标签, 2^21 <= weight <= 2^31
|
|
428
|
+
Ce(Oe, "OTHER_TAG", [
|
|
429
|
+
{
|
|
430
|
+
weight: 2097152,
|
|
431
|
+
// 2^21
|
|
432
|
+
name: "No CP",
|
|
433
|
+
// 没有cp
|
|
434
|
+
key: "noCp",
|
|
435
|
+
positive: !0
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
weight: 4194304,
|
|
439
|
+
// 2^22
|
|
440
|
+
name: "Send Rpt",
|
|
441
|
+
// 已发送 route report
|
|
442
|
+
key: "sendRpt",
|
|
443
|
+
positive: !1
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
weight: 8388608,
|
|
447
|
+
// 2^23
|
|
448
|
+
name: "Send Bps",
|
|
449
|
+
// 已发送 Bps
|
|
450
|
+
key: "sendBps",
|
|
451
|
+
positive: !1
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
weight: 16777216,
|
|
455
|
+
// 2^24
|
|
456
|
+
name: "Send Pvar",
|
|
457
|
+
// 已发送PvarK
|
|
458
|
+
key: "sendPvar",
|
|
459
|
+
positive: !1
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
weight: 33554432,
|
|
463
|
+
// 2^25
|
|
464
|
+
name: "Checked",
|
|
465
|
+
// 已经check的航次
|
|
466
|
+
key: "checked",
|
|
467
|
+
positive: !1
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
weight: 67108864,
|
|
471
|
+
// 2^26
|
|
472
|
+
name: "Send PWFR",
|
|
473
|
+
// 已经check的航次
|
|
474
|
+
key: "sendPwfr",
|
|
475
|
+
positive: !1
|
|
476
|
+
}
|
|
477
|
+
]);
|
|
12
478
|
const T = (a, e) => {
|
|
13
479
|
const t = a.__vccOpts || a;
|
|
14
480
|
for (const [r, i] of e)
|
|
15
481
|
t[r] = i;
|
|
16
482
|
return t;
|
|
17
|
-
},
|
|
483
|
+
}, lt = {
|
|
18
484
|
name: "IdmGlLayer",
|
|
19
485
|
props: {
|
|
20
486
|
map: {
|
|
@@ -48,19 +514,22 @@ const T = (a, e) => {
|
|
|
48
514
|
autoActive: !0,
|
|
49
515
|
otherLayers: [],
|
|
50
516
|
layers: {
|
|
51
|
-
weather: [
|
|
52
|
-
|
|
517
|
+
weather: [
|
|
518
|
+
...Me.WEATHER_LAYERS.filter((a) => !["swell-height", "swell-direction", "current-direction", "current-speed"].includes(a.key))
|
|
519
|
+
],
|
|
520
|
+
other: [...Me.OTHER_LAYERS.filter((a) => a.key !== "world12nm" && a.enabled)]
|
|
53
521
|
},
|
|
54
522
|
weatherLayersCache: "weatherLayersCache",
|
|
55
523
|
autoActiveCache: "autoActiveCache",
|
|
56
524
|
otherLayersCache: "otherLayersCache",
|
|
525
|
+
collectedLayerCache: "collectedLayerCache",
|
|
57
526
|
sourceCache: "defaultSourceCache",
|
|
58
527
|
showCoord: !1,
|
|
59
528
|
showMeasure: !1,
|
|
60
529
|
showPoint: !1,
|
|
61
530
|
show3d: !1,
|
|
62
531
|
version: {
|
|
63
|
-
v: "0.0.
|
|
532
|
+
v: "0.0.7",
|
|
64
533
|
k: "glCacheVersion"
|
|
65
534
|
},
|
|
66
535
|
right: 10,
|
|
@@ -70,8 +539,8 @@ const T = (a, e) => {
|
|
|
70
539
|
computed: {
|
|
71
540
|
computeLayerClass() {
|
|
72
541
|
return function(a, e) {
|
|
73
|
-
let t = "layer";
|
|
74
|
-
return e.some((r) => r.key === a.key) && (t = "layer active"), (!a.enabled || this.rampColorLayers.includes(a.key) && this.mapProjection === "globe") && (t = "layer disabled"), t;
|
|
542
|
+
let t = "layer flex-between";
|
|
543
|
+
return e.some((r) => r.key === a.key) && (t = "layer flex-between active"), (!a.enabled || this.rampColorLayers.includes(a.key) && this.mapProjection === "globe") && (t = "layer flex-between disabled"), t;
|
|
75
544
|
};
|
|
76
545
|
}
|
|
77
546
|
},
|
|
@@ -83,20 +552,24 @@ const T = (a, e) => {
|
|
|
83
552
|
this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
|
|
84
553
|
});
|
|
85
554
|
}
|
|
555
|
+
},
|
|
556
|
+
source: {
|
|
557
|
+
handler(a, e) {
|
|
558
|
+
a && e && a !== e && this.handleConfirm();
|
|
559
|
+
}
|
|
86
560
|
}
|
|
87
561
|
},
|
|
88
562
|
mounted() {
|
|
89
563
|
const a = localStorage.getItem(this.version.k);
|
|
90
|
-
this.version.v !== a && (localStorage.removeItem(this.weatherLayersCache), localStorage.setItem(this.version.k, this.version.v));
|
|
91
|
-
let e = localStorage.getItem(this.
|
|
92
|
-
|
|
93
|
-
let t = JSON.parse(
|
|
94
|
-
e || '[{"weight":1,"name":"Wind","key":"wind","enabled":true,"type":"json","particle":true},{"weight":4096,"name":"Pressure","key":"prmsl","enabled":true,"type":"json"},{"weight":256,"name":"Tropicals","key":"tropicals","enabled":true,"type":"json"}]'
|
|
564
|
+
this.version.v !== a && (localStorage.removeItem(this.weatherLayersCache), localStorage.removeItem(this.collectedLayerCache), localStorage.removeItem(this.otherLayersCache), localStorage.removeItem("windFeatherCache"), localStorage.removeItem("currentJsonCache"), localStorage.setItem(this.version.k, this.version.v));
|
|
565
|
+
let e = localStorage.getItem(this.collectedLayerCache), t = JSON.parse(
|
|
566
|
+
e || '[{"weight":1,"name":"Wind","key":"wind","collected":true},{"weight":4096,"name":"Pressure","key":"prmsl","collected":true},{"weight":256,"name":"Tropicals","key":"tropicals","collected":true}]'
|
|
95
567
|
);
|
|
96
|
-
this.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
568
|
+
this.layers.weather.forEach((r) => {
|
|
569
|
+
r.collected = !!t.some((i) => i.key === r.key && i.collected);
|
|
570
|
+
}), e = localStorage.getItem(this.autoActiveCache), this.autoActive = e !== "false", e = localStorage.getItem(this.weatherLayersCache), t = JSON.parse(
|
|
571
|
+
e || '[{"weight":1,"name":"Wind","key":"wind","enabled":true,"type":"json","particle":true},{"weight":4096,"name":"Pressure","key":"prmsl","enabled":true,"type":"json"},{"weight":256,"name":"Tropicals","key":"tropicals","enabled":true,"type":"json"}]'
|
|
572
|
+
), this.weatherLayers = t, this.autoActive && (this.activeWeatherLayers = [...t]), e = localStorage.getItem(this.otherLayersCache), t = JSON.parse(e || '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}]'), this.otherLayers = t, e = localStorage.getItem(this.sourceCache), this.source = e || "GFS", this.handleConfirm();
|
|
100
573
|
},
|
|
101
574
|
methods: {
|
|
102
575
|
handleConfirm() {
|
|
@@ -107,6 +580,12 @@ const T = (a, e) => {
|
|
|
107
580
|
return !1;
|
|
108
581
|
this.weatherLayers.some((e) => e.key === a.key) ? (this.weatherLayers = this.weatherLayers.filter((e) => e.key !== a.key), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== a.key)) : this.weatherLayers.length < 12 && a.enabled && (["png", "jpg"].includes(a.type) && (this.weatherLayers = this.weatherLayers.filter((e) => e.type === "json"), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json")), this.weatherLayers.push(a), this.activeWeatherLayers.push(a)), localStorage.setItem(this.weatherLayersCache, JSON.stringify(this.weatherLayers)), this.$emit("weather", this.weatherLayers, this.activeWeatherLayers, this.source), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
|
|
109
582
|
},
|
|
583
|
+
handleWeatherLayerCollect(a) {
|
|
584
|
+
var e;
|
|
585
|
+
if (!a.collected && ((e = this.layers.weather.filter((t) => t.collected)) == null ? void 0 : e.length) >= 6)
|
|
586
|
+
return !1;
|
|
587
|
+
a.collected = !a.collected, localStorage.setItem(this.collectedLayerCache, JSON.stringify(this.layers.weather)), this.$emit("handleToggleVersion");
|
|
588
|
+
},
|
|
110
589
|
handleActiveWeatherLayerPick(a) {
|
|
111
590
|
if (this.rampColorLayers.includes(a.key) && this.mapProjection === "globe")
|
|
112
591
|
return !1;
|
|
@@ -117,7 +596,7 @@ const T = (a, e) => {
|
|
|
117
596
|
for (const e of this.weatherLayers)
|
|
118
597
|
a.weight > e.weight && a.weight & e.weight && this.activeWeatherLayers.push(e);
|
|
119
598
|
}
|
|
120
|
-
this
|
|
599
|
+
this.handleWeatherLayerPick(a);
|
|
121
600
|
},
|
|
122
601
|
handleOtherLayerPick(a) {
|
|
123
602
|
this.otherLayers.some((e) => e.key === a.key) ? this.otherLayers = this.otherLayers.filter((e) => e.key !== a.key) : a.enabled && this.otherLayers.push(a), localStorage.setItem(this.otherLayersCache, JSON.stringify(this.otherLayers)), this.$emit("other", this.otherLayers);
|
|
@@ -136,137 +615,213 @@ const T = (a, e) => {
|
|
|
136
615
|
},
|
|
137
616
|
handle3DToggle() {
|
|
138
617
|
this.show3d = !this.show3d, this.$emit("3d", this.show3d);
|
|
139
|
-
},
|
|
140
|
-
handleSourceToggle(a) {
|
|
141
|
-
this.source = a, this.handleConfirm();
|
|
142
618
|
}
|
|
143
619
|
}
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
620
|
+
}, ct = { class: "idm-gl3-layer" }, ht = { class: "bar-item layer-bars" }, dt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), pt = [
|
|
621
|
+
dt
|
|
622
|
+
], mt = { class: "bar-item tool-bars" }, ut = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), yt = [
|
|
623
|
+
ut
|
|
624
|
+
], ft = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), gt = [
|
|
625
|
+
ft
|
|
626
|
+
], bt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), vt = [
|
|
627
|
+
bt
|
|
628
|
+
], wt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), _t = [
|
|
629
|
+
wt
|
|
630
|
+
], Lt = ["onClick"], xt = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), Ct = { class: "header-box flex-between" }, kt = /* @__PURE__ */ l("div", null, "Layers", -1), St = { class: "weather-layers card-bg" }, zt = /* @__PURE__ */ l("div", { class: "layers-title flex-between" }, [
|
|
631
|
+
/* @__PURE__ */ l("div", null, "Weather Layers")
|
|
632
|
+
], -1), Pt = { class: "layers-body" }, Tt = ["onClick"], It = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), Et = ["onClick"], Rt = {
|
|
633
|
+
key: 0,
|
|
634
|
+
class: "iconfont bookmark active"
|
|
635
|
+
}, At = {
|
|
636
|
+
key: 1,
|
|
637
|
+
class: "iconfont bookmark inactive"
|
|
638
|
+
}, Dt = /* @__PURE__ */ l("div", { class: "tip flex-start" }, [
|
|
639
|
+
/* @__PURE__ */ l("i", {
|
|
640
|
+
class: "iconfont bookmark",
|
|
641
|
+
style: { "align-self": "flex-start", padding: "5px 5px 0 0" }
|
|
642
|
+
}, ""),
|
|
643
|
+
/* @__PURE__ */ l("div", null, "Bookmark your favorite layer to homepage(Max 6)")
|
|
644
|
+
], -1), Mt = { class: "other-layers card-bg" }, $t = /* @__PURE__ */ l("div", { class: "layers-title" }, "Other Layers", -1), jt = { class: "layers-body" }, Nt = ["onClick"], Bt = { class: "flex-start" }, Wt = /* @__PURE__ */ l("div", { class: "switch flex-center" }, [
|
|
645
|
+
/* @__PURE__ */ l("i", { class: "iconfont open" }, ""),
|
|
646
|
+
/* @__PURE__ */ l("i", { class: "iconfont close" }, "")
|
|
647
|
+
], -1), Ot = { class: "source-layers card-bg" }, Ft = /* @__PURE__ */ l("span", { class: "layers-title" }, "Forecast Model", -1), Vt = { class: "layers-body" };
|
|
648
|
+
function Ut(a, e, t, r, i, o) {
|
|
649
|
+
const s = P("ElTooltip"), n = P("ElRadio"), c = P("ElRadioGroup"), d = P("ElScrollbar");
|
|
650
|
+
return x(), C("div", ct, [
|
|
151
651
|
l("div", {
|
|
152
652
|
class: "menu-bar-box",
|
|
153
|
-
style:
|
|
653
|
+
style: U({ top: t.top + 10 + "px", right: i.right + "px" })
|
|
154
654
|
}, [
|
|
155
|
-
l("div",
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
655
|
+
l("div", ht, [
|
|
656
|
+
k(s, {
|
|
657
|
+
placement: "left",
|
|
658
|
+
effect: "light",
|
|
659
|
+
content: "Menu"
|
|
660
|
+
}, {
|
|
661
|
+
default: K(() => [
|
|
662
|
+
l("div", {
|
|
663
|
+
class: j(t.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
664
|
+
onClick: e[0] || (e[0] = (...h) => o.handleMenuToggle && o.handleMenuToggle(...h))
|
|
665
|
+
}, pt, 2)
|
|
666
|
+
]),
|
|
667
|
+
_: 1
|
|
668
|
+
})
|
|
162
669
|
])
|
|
163
670
|
], 4),
|
|
164
671
|
l("div", {
|
|
165
672
|
class: "menu-bar-box",
|
|
166
|
-
style:
|
|
673
|
+
style: U({ top: t.top + 160 + "px", right: i.right + "px" })
|
|
167
674
|
}, [
|
|
168
|
-
l("div",
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
675
|
+
l("div", mt, [
|
|
676
|
+
k(s, {
|
|
677
|
+
placement: "left",
|
|
678
|
+
effect: "light",
|
|
679
|
+
content: "Measure"
|
|
680
|
+
}, {
|
|
681
|
+
default: K(() => [
|
|
682
|
+
l("div", {
|
|
683
|
+
class: j(i.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
684
|
+
onClick: e[1] || (e[1] = (...h) => o.handleMeasureToggle && o.handleMeasureToggle(...h))
|
|
685
|
+
}, yt, 2)
|
|
686
|
+
]),
|
|
687
|
+
_: 1
|
|
688
|
+
}),
|
|
689
|
+
k(s, {
|
|
690
|
+
placement: "left",
|
|
691
|
+
effect: "light",
|
|
692
|
+
content: "Point Meteo"
|
|
693
|
+
}, {
|
|
694
|
+
default: K(() => [
|
|
695
|
+
l("div", {
|
|
696
|
+
class: j(i.showPoint ? "menu-icon active" : "menu-icon"),
|
|
697
|
+
onClick: e[2] || (e[2] = (...h) => o.handlePointToggle && o.handlePointToggle(...h))
|
|
698
|
+
}, gt, 2)
|
|
699
|
+
]),
|
|
700
|
+
_: 1
|
|
701
|
+
}),
|
|
702
|
+
k(s, {
|
|
703
|
+
placement: "left",
|
|
704
|
+
effect: "light",
|
|
705
|
+
content: "Grid"
|
|
706
|
+
}, {
|
|
707
|
+
default: K(() => [
|
|
708
|
+
l("div", {
|
|
709
|
+
class: j(i.showCoord ? "menu-icon active" : "menu-icon"),
|
|
710
|
+
onClick: e[3] || (e[3] = (...h) => o.handleCoordToggle && o.handleCoordToggle(...h))
|
|
711
|
+
}, vt, 2)
|
|
712
|
+
]),
|
|
713
|
+
_: 1
|
|
714
|
+
}),
|
|
715
|
+
k(s, {
|
|
716
|
+
placement: "left",
|
|
717
|
+
effect: "light",
|
|
718
|
+
content: "3D"
|
|
719
|
+
}, {
|
|
720
|
+
default: K(() => [
|
|
721
|
+
l("div", {
|
|
722
|
+
class: j(i.show3d ? "menu-icon active" : "menu-icon"),
|
|
723
|
+
onClick: e[4] || (e[4] = (...h) => o.handle3DToggle && o.handle3DToggle(...h))
|
|
724
|
+
}, _t, 2)
|
|
725
|
+
]),
|
|
726
|
+
_: 1
|
|
727
|
+
})
|
|
193
728
|
])
|
|
194
729
|
], 4),
|
|
195
730
|
l("div", {
|
|
196
731
|
class: "active-layers",
|
|
197
|
-
style:
|
|
732
|
+
style: U({ right: i.right + "px", bottom: "100px" })
|
|
198
733
|
}, [
|
|
199
|
-
(x(!0),
|
|
200
|
-
key:
|
|
201
|
-
class:
|
|
202
|
-
onClick: (
|
|
734
|
+
(x(!0), C(Ae, null, $e(i.layers.weather.filter((h) => h.collected), (h) => (x(), C("div", {
|
|
735
|
+
key: h.key,
|
|
736
|
+
class: j(o.computeLayerClass(h, i.activeWeatherLayers)),
|
|
737
|
+
onClick: (p) => o.handleActiveWeatherLayerPick(h)
|
|
203
738
|
}, [
|
|
204
|
-
|
|
205
|
-
l("span", null, S(
|
|
206
|
-
], 10,
|
|
739
|
+
xt,
|
|
740
|
+
l("span", null, S(h.name), 1)
|
|
741
|
+
], 10, Lt))), 128))
|
|
207
742
|
], 4),
|
|
208
743
|
l("div", {
|
|
209
744
|
class: "available-layers flex-center",
|
|
210
|
-
style:
|
|
745
|
+
style: U({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
|
|
211
746
|
}, [
|
|
212
747
|
l("div", {
|
|
213
|
-
class: "
|
|
214
|
-
style: $({ right: t.layerToggle ? "0px" : "-240px" }),
|
|
215
|
-
onClick: e[5] || (e[5] = (...s) => o.handleMenuToggle && o.handleMenuToggle(...s))
|
|
216
|
-
}, e[14] || (e[14] = [
|
|
217
|
-
l("i", { class: "iconfont" }, "", -1)
|
|
218
|
-
]), 4),
|
|
219
|
-
l("div", {
|
|
220
|
-
class: M(["list-box", t.layerToggle ? "right-bar" : ""])
|
|
748
|
+
class: j(["list-box", t.layerToggle ? "right-bar" : ""])
|
|
221
749
|
}, [
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
750
|
+
l("div", Ct, [
|
|
751
|
+
kt,
|
|
752
|
+
l("div", {
|
|
753
|
+
class: "iconfont close-btn",
|
|
754
|
+
onClick: e[5] || (e[5] = (...h) => o.handleMenuToggle && o.handleMenuToggle(...h))
|
|
755
|
+
}, "")
|
|
756
|
+
]),
|
|
757
|
+
k(d, { style: { flex: "1" } }, {
|
|
758
|
+
default: K(() => [
|
|
759
|
+
l("div", St, [
|
|
760
|
+
zt,
|
|
761
|
+
l("div", Pt, [
|
|
762
|
+
(x(!0), C(Ae, null, $e(i.layers.weather, (h) => (x(), C(Ae, {
|
|
763
|
+
key: h.key
|
|
234
764
|
}, [
|
|
235
|
-
|
|
765
|
+
h.hide ? B("", !0) : (x(), C("div", {
|
|
236
766
|
key: 0,
|
|
237
|
-
class:
|
|
238
|
-
onClick: (c) => o.handleWeatherLayerPick(s)
|
|
767
|
+
class: j(o.computeLayerClass(h, i.weatherLayers))
|
|
239
768
|
}, [
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
769
|
+
l("div", {
|
|
770
|
+
class: "flex-start",
|
|
771
|
+
onClick: (p) => o.handleWeatherLayerPick(h)
|
|
772
|
+
}, [
|
|
773
|
+
It,
|
|
774
|
+
l("span", null, S(h.name), 1)
|
|
775
|
+
], 8, Tt),
|
|
776
|
+
l("div", {
|
|
777
|
+
onClick: (p) => o.handleWeatherLayerCollect(h)
|
|
778
|
+
}, [
|
|
779
|
+
h.collected ? (x(), C("i", Rt, "")) : (x(), C("i", At, ""))
|
|
780
|
+
], 8, Et)
|
|
781
|
+
], 2))
|
|
782
|
+
], 64))), 128)),
|
|
783
|
+
Dt
|
|
244
784
|
])
|
|
245
785
|
]),
|
|
246
|
-
l("div",
|
|
247
|
-
|
|
248
|
-
l("div",
|
|
249
|
-
(x(!0),
|
|
250
|
-
key:
|
|
251
|
-
class:
|
|
252
|
-
onClick: (
|
|
786
|
+
l("div", Mt, [
|
|
787
|
+
$t,
|
|
788
|
+
l("div", jt, [
|
|
789
|
+
(x(!0), C(Ae, null, $e(i.layers.other, (h) => (x(), C("div", {
|
|
790
|
+
key: h.key,
|
|
791
|
+
class: j(o.computeLayerClass(h, i.otherLayers)),
|
|
792
|
+
onClick: (p) => o.handleOtherLayerPick(h)
|
|
253
793
|
}, [
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
794
|
+
l("div", Bt, [
|
|
795
|
+
Wt,
|
|
796
|
+
l("span", null, S(h.name), 1)
|
|
797
|
+
])
|
|
798
|
+
], 10, Nt))), 128))
|
|
257
799
|
])
|
|
258
800
|
]),
|
|
259
|
-
l("div",
|
|
260
|
-
|
|
261
|
-
l("div",
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
801
|
+
l("div", Ot, [
|
|
802
|
+
Ft,
|
|
803
|
+
l("div", Vt, [
|
|
804
|
+
k(c, {
|
|
805
|
+
modelValue: i.source,
|
|
806
|
+
"onUpdate:modelValue": e[6] || (e[6] = (h) => i.source = h),
|
|
807
|
+
class: "layer-radio flex-col-center-start"
|
|
808
|
+
}, {
|
|
809
|
+
default: K(() => [
|
|
810
|
+
k(n, { value: "GFS" }, {
|
|
811
|
+
default: K(() => [
|
|
812
|
+
Fe("GFS")
|
|
813
|
+
]),
|
|
814
|
+
_: 1
|
|
815
|
+
}),
|
|
816
|
+
k(n, { value: "CMEMS" }, {
|
|
817
|
+
default: K(() => [
|
|
818
|
+
Fe("CMEMS")
|
|
819
|
+
]),
|
|
820
|
+
_: 1
|
|
821
|
+
})
|
|
822
|
+
]),
|
|
823
|
+
_: 1
|
|
824
|
+
}, 8, ["modelValue"])
|
|
270
825
|
])
|
|
271
826
|
])
|
|
272
827
|
]),
|
|
@@ -276,8 +831,8 @@ function nt(a, e, t, r, i, o) {
|
|
|
276
831
|
], 4)
|
|
277
832
|
]);
|
|
278
833
|
}
|
|
279
|
-
const
|
|
280
|
-
const
|
|
834
|
+
const Zt = /* @__PURE__ */ T(lt, [["render", Ut]]);
|
|
835
|
+
const Ht = {
|
|
281
836
|
name: "IdmWindBarb",
|
|
282
837
|
props: {
|
|
283
838
|
map: {
|
|
@@ -301,9 +856,6 @@ const ct = {
|
|
|
301
856
|
},
|
|
302
857
|
toggleVersion: {
|
|
303
858
|
type: Number
|
|
304
|
-
},
|
|
305
|
-
weatherLayers: {
|
|
306
|
-
type: Object
|
|
307
859
|
}
|
|
308
860
|
},
|
|
309
861
|
emits: ["particle"],
|
|
@@ -311,8 +863,9 @@ const ct = {
|
|
|
311
863
|
return {
|
|
312
864
|
source: "wind-barb-source",
|
|
313
865
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
314
|
-
empty:
|
|
315
|
-
showFeather: !1,
|
|
866
|
+
empty: L.featureCollection([]),
|
|
867
|
+
showFeather: localStorage.getItem("windFeatherCache") === "true" || !1,
|
|
868
|
+
windFeatherCache: "windFeatherCache",
|
|
316
869
|
right: 10,
|
|
317
870
|
bottom: 125,
|
|
318
871
|
windBarbLoaded: !1
|
|
@@ -328,34 +881,19 @@ const ct = {
|
|
|
328
881
|
},
|
|
329
882
|
showParticle: {
|
|
330
883
|
handler() {
|
|
331
|
-
this.showFeather = !this.showParticle;
|
|
332
884
|
},
|
|
333
885
|
immediate: !0
|
|
334
886
|
},
|
|
335
887
|
showFeather: {
|
|
336
888
|
handler() {
|
|
337
|
-
this.handleToggle();
|
|
889
|
+
localStorage.setItem(this.windFeatherCache, this.showFeather), this.handleToggle();
|
|
338
890
|
},
|
|
339
891
|
immediate: !0
|
|
340
892
|
},
|
|
341
893
|
toggleVersion: {
|
|
342
894
|
handler() {
|
|
343
|
-
var a;
|
|
344
|
-
this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
|
|
345
|
-
},
|
|
346
|
-
immediate: !0
|
|
347
|
-
},
|
|
348
|
-
"current.version": {
|
|
349
|
-
handler() {
|
|
350
|
-
var a, e, t;
|
|
351
|
-
this.bottom = (a = this.current) != null && a.active ? (((e = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : e.clientHeight) || 0) + 135 : (((t = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : t.clientHeight) || 0) + 105;
|
|
352
|
-
},
|
|
353
|
-
immediate: !0
|
|
354
|
-
},
|
|
355
|
-
weatherLayers: {
|
|
356
|
-
handler() {
|
|
357
|
-
var a, e, t;
|
|
358
|
-
this.bottom = (a = this.current) != null && a.active ? (((e = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : e.clientHeight) || 0) + 135 : (((t = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : t.clientHeight) || 0) + 105;
|
|
895
|
+
var a, e, t, r;
|
|
896
|
+
this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10, this.bottom = (e = this.current) != null && e.active ? (((t = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : t.clientHeight) || 0) + 138 : (((r = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : r.clientHeight) || 0) + 108;
|
|
359
897
|
},
|
|
360
898
|
immediate: !0
|
|
361
899
|
}
|
|
@@ -372,13 +910,13 @@ const ct = {
|
|
|
372
910
|
}, 500);
|
|
373
911
|
else if (this.wind) {
|
|
374
912
|
const i = (/* @__PURE__ */ new Date()).valueOf();
|
|
375
|
-
let o = 0,
|
|
376
|
-
if ((a = this.wind) != null && a.active && (
|
|
377
|
-
(r = this.map) == null || r.getSource(this.source).setData(
|
|
913
|
+
let o = 0, s = 0, n = this.empty;
|
|
914
|
+
if ((a = this.wind) != null && a.active && (n = (e = this.wind) == null ? void 0 : e.data), (t = this.map) != null && t.getSource(this.source))
|
|
915
|
+
(r = this.map) == null || r.getSource(this.source).setData(n), s = (/* @__PURE__ */ new Date()).valueOf() - (i + o), console.log("[wind] update elapsed: ", s, ", total: ", o += s);
|
|
378
916
|
else {
|
|
379
|
-
this.map.addSource(this.source, { type: "geojson", data:
|
|
917
|
+
this.map.addSource(this.source, { type: "geojson", data: n });
|
|
380
918
|
for (let c = 0; c < (this.barbs ?? []).length - 1; c++) {
|
|
381
|
-
const
|
|
919
|
+
const d = (this.barbs ?? [])[c] || 0, h = (this.barbs ?? [])[c + 1] || 0, p = d < 10 ? `00${d}kts` : d < 100 ? `0${d}kts` : `${d}kts`;
|
|
382
920
|
this.map.addLayer(
|
|
383
921
|
{
|
|
384
922
|
id: p,
|
|
@@ -386,9 +924,9 @@ const ct = {
|
|
|
386
924
|
filter: [
|
|
387
925
|
"all",
|
|
388
926
|
// @ts-ignore
|
|
389
|
-
[">=", "spd",
|
|
927
|
+
[">=", "spd", d],
|
|
390
928
|
// @ts-ignore
|
|
391
|
-
["<", "spd",
|
|
929
|
+
["<", "spd", h]
|
|
392
930
|
],
|
|
393
931
|
source: this.source,
|
|
394
932
|
layout: {
|
|
@@ -415,7 +953,7 @@ const ct = {
|
|
|
415
953
|
this.beforeLayer
|
|
416
954
|
);
|
|
417
955
|
}
|
|
418
|
-
this.windBarbLoaded = !0,
|
|
956
|
+
this.windBarbLoaded = !0, s = (/* @__PURE__ */ new Date()).valueOf() - (i + o), console.log("[wind] add elapsed: ", s, ", total: ", o += s);
|
|
419
957
|
}
|
|
420
958
|
}
|
|
421
959
|
},
|
|
@@ -436,63 +974,45 @@ const ct = {
|
|
|
436
974
|
this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
|
|
437
975
|
}
|
|
438
976
|
}
|
|
439
|
-
},
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
},
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
key: 1,
|
|
450
|
-
class: "iconfont"
|
|
451
|
-
};
|
|
452
|
-
function yt(a, e, t, r, i, o) {
|
|
453
|
-
var n;
|
|
454
|
-
return (n = t.wind) != null && n.active ? (x(), _("div", ht, [
|
|
977
|
+
}, Gt = { key: 0 }, Jt = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), Xt = /* @__PURE__ */ l("span", null, "Wind Particles", -1), Yt = [
|
|
978
|
+
Jt,
|
|
979
|
+
Xt
|
|
980
|
+
], qt = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), Qt = /* @__PURE__ */ l("span", null, "Wind Feather", -1), Kt = [
|
|
981
|
+
qt,
|
|
982
|
+
Qt
|
|
983
|
+
];
|
|
984
|
+
function ea(a, e, t, r, i, o) {
|
|
985
|
+
var s;
|
|
986
|
+
return (s = t.wind) != null && s.active ? (x(), C("div", Gt, [
|
|
455
987
|
l("div", {
|
|
456
|
-
class: "flex-center tool-bars",
|
|
457
|
-
style:
|
|
988
|
+
class: "flex-center wind-tool-bars",
|
|
989
|
+
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
|
|
458
990
|
}, [
|
|
459
|
-
t.mapProjection === "mercator" ? (x(),
|
|
991
|
+
t.mapProjection === "mercator" ? (x(), C("div", {
|
|
460
992
|
key: 0,
|
|
461
|
-
class: "flex-start",
|
|
462
|
-
onClick: e[0] || (e[0] = (...
|
|
463
|
-
},
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
])) : B("", !0),
|
|
469
|
-
t.showParticle ? (x(), _("div", {
|
|
470
|
-
key: 1,
|
|
471
|
-
class: "flex-start",
|
|
472
|
-
style: { "margin-left": "16px" },
|
|
473
|
-
onClick: e[1] || (e[1] = (s) => i.showFeather = !i.showFeather)
|
|
474
|
-
}, [
|
|
475
|
-
i.showFeather ? (x(), _("i", mt, "")) : (x(), _("i", ut, "")),
|
|
476
|
-
l("span", {
|
|
477
|
-
class: M(i.showFeather ? "active" : "")
|
|
478
|
-
}, "Wind Feather", 2)
|
|
479
|
-
])) : B("", !0)
|
|
993
|
+
class: j(["item-bar flex-start", t.showParticle ? "active" : "inactive"]),
|
|
994
|
+
onClick: e[0] || (e[0] = (...n) => o.handleParticle && o.handleParticle(...n))
|
|
995
|
+
}, Yt, 2)) : B("", !0),
|
|
996
|
+
l("div", {
|
|
997
|
+
class: j(["item-bar flex-start", i.showFeather ? "active" : "inactive"]),
|
|
998
|
+
onClick: e[1] || (e[1] = (n) => i.showFeather = !i.showFeather)
|
|
999
|
+
}, Kt, 2)
|
|
480
1000
|
], 4)
|
|
481
1001
|
])) : B("", !0);
|
|
482
1002
|
}
|
|
483
|
-
const
|
|
484
|
-
class
|
|
1003
|
+
const ta = /* @__PURE__ */ T(Ht, [["render", ea]]);
|
|
1004
|
+
class Ve {
|
|
485
1005
|
constructor(e) {
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
this.map = e, this.mercator = new
|
|
1006
|
+
R(this, "map");
|
|
1007
|
+
R(this, "mercator");
|
|
1008
|
+
R(this, "rampColorLayer");
|
|
1009
|
+
R(this, "rampColorSource");
|
|
1010
|
+
R(this, "particleLayer");
|
|
1011
|
+
R(this, "particleSource");
|
|
1012
|
+
R(this, "rampColorCanvas");
|
|
1013
|
+
R(this, "particleCanvas");
|
|
1014
|
+
R(this, "ratio");
|
|
1015
|
+
this.map = e, this.mercator = new ot(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
|
|
496
1016
|
}
|
|
497
1017
|
/**
|
|
498
1018
|
* 转换为[-180, 180]的经度,且包含转换次数
|
|
@@ -526,8 +1046,8 @@ class Te {
|
|
|
526
1046
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
527
1047
|
*/
|
|
528
1048
|
getBoundPixel() {
|
|
529
|
-
const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o,
|
|
530
|
-
return [p, g,
|
|
1049
|
+
const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, s] = this.convertNLng(r[0]), [n, c] = this.convertNLng(i[0]), [d, h] = this.mercator.px([o, r[1]], t), [p, g] = this.mercator.px([n, i[1]], t), u = Math.round(this.mercator.size * Math.pow(2, t) * (s + c));
|
|
1050
|
+
return [p, g, d + u, h];
|
|
531
1051
|
}
|
|
532
1052
|
/**
|
|
533
1053
|
* [视窗边界像素宽度]
|
|
@@ -542,13 +1062,13 @@ class Te {
|
|
|
542
1062
|
* @param zoom
|
|
543
1063
|
*/
|
|
544
1064
|
getWorldCopy(e, t) {
|
|
545
|
-
const r = 2 ** t, [i, o,
|
|
546
|
-
for (let
|
|
547
|
-
for (let p = i; p <=
|
|
548
|
-
c.push([p,
|
|
549
|
-
return c.map((
|
|
1065
|
+
const r = 2 ** t, [i, o, s, n] = e.map((h) => ~~(h / (r * 256))), c = [];
|
|
1066
|
+
for (let h = n; h <= o; h++)
|
|
1067
|
+
for (let p = i; p <= s; p++)
|
|
1068
|
+
c.push([p, h]);
|
|
1069
|
+
return c.map((h) => {
|
|
550
1070
|
const p = 2 ** t * 256;
|
|
551
|
-
return [
|
|
1071
|
+
return [h[0] * p, h[1] * p, p];
|
|
552
1072
|
});
|
|
553
1073
|
}
|
|
554
1074
|
resize() {
|
|
@@ -564,7 +1084,7 @@ class Te {
|
|
|
564
1084
|
t !== r && this.map.setLayoutProperty(this.particleLayer, "visibility", r);
|
|
565
1085
|
}
|
|
566
1086
|
}
|
|
567
|
-
class
|
|
1087
|
+
class Le {
|
|
568
1088
|
/**
|
|
569
1089
|
* 创建着色器
|
|
570
1090
|
* @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
|
|
@@ -589,9 +1109,9 @@ class ye {
|
|
|
589
1109
|
* @param width??
|
|
590
1110
|
* @param height??
|
|
591
1111
|
*/
|
|
592
|
-
createTexture(e, t, r, i, o,
|
|
1112
|
+
createTexture(e, t, r, i, o, s, n) {
|
|
593
1113
|
const c = e.createTexture();
|
|
594
|
-
return e.bindTexture(e.TEXTURE_2D, c), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, t), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, r), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, i), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, i), o instanceof Uint8Array ? e.texImage2D(e.TEXTURE_2D, 0, e.RGBA,
|
|
1114
|
+
return e.bindTexture(e.TEXTURE_2D, c), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, t), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, r), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, i), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, i), o instanceof Uint8Array ? e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, s, n, 0, e.RGBA, e.UNSIGNED_BYTE, o) : e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, e.RGBA, e.UNSIGNED_BYTE, o), e.bindTexture(e.TEXTURE_2D, null), c;
|
|
595
1115
|
}
|
|
596
1116
|
/**
|
|
597
1117
|
* 创建数据资源
|
|
@@ -614,8 +1134,8 @@ class ye {
|
|
|
614
1134
|
* @param fragmentSchema
|
|
615
1135
|
*/
|
|
616
1136
|
createProgram(e, t, r) {
|
|
617
|
-
const i = e.createProgram(), o = this.createShader(e, e.VERTEX_SHADER, t),
|
|
618
|
-
if (i && o &&
|
|
1137
|
+
const i = e.createProgram(), o = this.createShader(e, e.VERTEX_SHADER, t), s = this.createShader(e, e.FRAGMENT_SHADER, r);
|
|
1138
|
+
if (i && o && s && (e.attachShader(i, o), e.attachShader(i, s), e.linkProgram(i), !e.getProgramParameter(i, e.LINK_STATUS)))
|
|
619
1139
|
throw new Error(e.getProgramInfoLog(i) || "error happened while creating ramp color program");
|
|
620
1140
|
return i;
|
|
621
1141
|
}
|
|
@@ -628,15 +1148,15 @@ class ye {
|
|
|
628
1148
|
createProgramWrapper(e, t, r) {
|
|
629
1149
|
const i = this.createProgram(e, t, r);
|
|
630
1150
|
if (i) {
|
|
631
|
-
const o = { program: i },
|
|
632
|
-
for (let c = 0; c < n; c++) {
|
|
633
|
-
const h = e.getActiveAttrib(i, c);
|
|
634
|
-
o[h.name] = e.getAttribLocation(i, h.name);
|
|
635
|
-
}
|
|
636
|
-
const s = e.getProgramParameter(i, e.ACTIVE_UNIFORMS);
|
|
1151
|
+
const o = { program: i }, s = e.getProgramParameter(i, e.ACTIVE_ATTRIBUTES);
|
|
637
1152
|
for (let c = 0; c < s; c++) {
|
|
638
|
-
const
|
|
639
|
-
o[
|
|
1153
|
+
const d = e.getActiveAttrib(i, c);
|
|
1154
|
+
o[d.name] = e.getAttribLocation(i, d.name);
|
|
1155
|
+
}
|
|
1156
|
+
const n = e.getProgramParameter(i, e.ACTIVE_UNIFORMS);
|
|
1157
|
+
for (let c = 0; c < n; c++) {
|
|
1158
|
+
const d = e.getActiveUniform(i, c);
|
|
1159
|
+
o[d.name] = e.getUniformLocation(i, d.name);
|
|
640
1160
|
}
|
|
641
1161
|
return o;
|
|
642
1162
|
}
|
|
@@ -646,21 +1166,21 @@ class ye {
|
|
|
646
1166
|
* @param colors
|
|
647
1167
|
*/
|
|
648
1168
|
setup(e, t, r = !1, i, o) {
|
|
649
|
-
const
|
|
650
|
-
|
|
651
|
-
const
|
|
652
|
-
if (
|
|
653
|
-
const c =
|
|
654
|
-
return t.forEach(([
|
|
655
|
-
c.addColorStop(
|
|
656
|
-
}),
|
|
657
|
-
canvas:
|
|
1169
|
+
const s = document.createElement("canvas");
|
|
1170
|
+
s.width = 256, s.height = 1;
|
|
1171
|
+
const n = s.getContext("2d");
|
|
1172
|
+
if (n && e) {
|
|
1173
|
+
const c = n == null ? void 0 : n.createLinearGradient(0, 0, 256, 0);
|
|
1174
|
+
return t.forEach(([d, h]) => {
|
|
1175
|
+
c.addColorStop(d, h);
|
|
1176
|
+
}), n.fillStyle = c, n.fillRect(0, 0, 256, 1), {
|
|
1177
|
+
canvas: s,
|
|
658
1178
|
texture: this.createTexture(
|
|
659
1179
|
e,
|
|
660
1180
|
e.LINEAR,
|
|
661
1181
|
e.LINEAR,
|
|
662
1182
|
e.CLAMP_TO_EDGE,
|
|
663
|
-
r ? new Uint8Array(
|
|
1183
|
+
r ? new Uint8Array(n.getImageData(0, 0, 256, 1).data) : s,
|
|
664
1184
|
i,
|
|
665
1185
|
o
|
|
666
1186
|
)
|
|
@@ -669,53 +1189,53 @@ class ye {
|
|
|
669
1189
|
}
|
|
670
1190
|
setupParticle(e, t = 1e3) {
|
|
671
1191
|
const r = Math.ceil(Math.sqrt(t)), i = r * r, o = new Uint8Array(i * 4);
|
|
672
|
-
for (let
|
|
673
|
-
o[
|
|
674
|
-
const
|
|
675
|
-
for (let
|
|
676
|
-
c[
|
|
677
|
-
const
|
|
678
|
-
return { resolution: r, total: i, texture0:
|
|
1192
|
+
for (let h = 0; h < o.length; h++)
|
|
1193
|
+
o[h] = Math.floor(Math.random() * 256);
|
|
1194
|
+
const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), n = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), c = new Float32Array(i);
|
|
1195
|
+
for (let h = 0; h < i; h++)
|
|
1196
|
+
c[h] = h;
|
|
1197
|
+
const d = this.createDataBuffer(e, "array", c);
|
|
1198
|
+
return { resolution: r, total: i, texture0: s, texture1: n, indexBuffer: d };
|
|
679
1199
|
}
|
|
680
1200
|
bind(e, t, r) {
|
|
681
1201
|
const i = this.createProgram(e, t, r);
|
|
682
1202
|
if (i) {
|
|
683
|
-
const o = this.createDataBuffer(e, "array", void 0),
|
|
684
|
-
e.enableVertexAttribArray(
|
|
685
|
-
const
|
|
686
|
-
this.createDataBuffer(e, "array",
|
|
1203
|
+
const o = this.createDataBuffer(e, "array", void 0), s = e.getAttribLocation(i, "a_position");
|
|
1204
|
+
e.enableVertexAttribArray(s), e.vertexAttribPointer(s, 2, e.FLOAT, !1, 0, 0);
|
|
1205
|
+
const n = new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1]);
|
|
1206
|
+
this.createDataBuffer(e, "array", n);
|
|
687
1207
|
const c = e.getAttribLocation(i, "a_texCoord");
|
|
688
1208
|
return e.enableVertexAttribArray(c), e.vertexAttribPointer(c, 2, e.FLOAT, !1, 0, 0), { program: i, aPositionBuffer: o };
|
|
689
1209
|
}
|
|
690
1210
|
return {};
|
|
691
1211
|
}
|
|
692
|
-
bindParticle(e, t, r, i, o,
|
|
693
|
-
const
|
|
694
|
-
return { particle:
|
|
1212
|
+
bindParticle(e, t, r, i, o, s) {
|
|
1213
|
+
const n = this.createProgramWrapper(e, t, r), c = this.createProgramWrapper(e, i, o), d = this.createProgramWrapper(e, i, s), h = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), p = e.createFramebuffer();
|
|
1214
|
+
return { particle: n, screen: c, update: d, quadBuffer: h, frameBuffer: p };
|
|
695
1215
|
}
|
|
696
|
-
draw(e, t, r, i, o,
|
|
697
|
-
var c,
|
|
1216
|
+
draw(e, t, r, i, o, s, n) {
|
|
1217
|
+
var c, d;
|
|
698
1218
|
if (t && r) {
|
|
699
|
-
e.resize(), t == null || t.viewport(0, 0, (c = t == null ? void 0 : t.canvas) == null ? void 0 : c.width, (
|
|
1219
|
+
e.resize(), t == null || t.viewport(0, 0, (c = t == null ? void 0 : t.canvas) == null ? void 0 : c.width, (d = t == null ? void 0 : t.canvas) == null ? void 0 : d.height), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT);
|
|
700
1220
|
try {
|
|
701
|
-
const
|
|
702
|
-
if (t.useProgram(r), t.uniform2f(
|
|
1221
|
+
const h = t.getUniformLocation(r, "u_resolution"), p = t.getUniformLocation(r, "u_image"), g = t.getUniformLocation(r, "u_color");
|
|
1222
|
+
if (t.useProgram(r), t.uniform2f(h, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), t.uniform1i(p, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, o), t.uniform1i(g, 1), n != null && n.uvRange && (n != null && n.sRange)) {
|
|
703
1223
|
const m = t.getUniformLocation(r, "u_range_u_v"), v = t.getUniformLocation(r, "u_range_s");
|
|
704
|
-
t.uniform2f(m,
|
|
1224
|
+
t.uniform2f(m, n.uvRange[0], n.uvRange[1]), t.uniform2f(v, n.sRange[0], n.sRange[1]);
|
|
705
1225
|
}
|
|
706
1226
|
const u = e.getBoundPixel(), y = e.map.getZoom() + 1, f = e.getWorldCopy(u, y);
|
|
707
1227
|
for (const m of f) {
|
|
708
|
-
const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio,
|
|
709
|
-
t.bindBuffer(t.ARRAY_BUFFER,
|
|
1228
|
+
const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio, _ = m[2] * e.ratio, [z, w, A, M] = [v, _ + v, b, _ + b], $ = new Float32Array([z, A, w, A, z, M, z, M, w, A, w, M]);
|
|
1229
|
+
t.bindBuffer(t.ARRAY_BUFFER, s), t.bufferData(t.ARRAY_BUFFER, $, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
710
1230
|
}
|
|
711
|
-
} catch (
|
|
712
|
-
console.log(`render failed...${
|
|
1231
|
+
} catch (h) {
|
|
1232
|
+
console.log(`render failed...${h}`);
|
|
713
1233
|
}
|
|
714
1234
|
}
|
|
715
1235
|
}
|
|
716
1236
|
drawParticle(e, t, r, i, o) {
|
|
717
|
-
var
|
|
718
|
-
t && (t == null || t.viewport(0, 0, (
|
|
1237
|
+
var s, n;
|
|
1238
|
+
t && (t == null || t.viewport(0, 0, (s = t == null ? void 0 : t.canvas) == null ? void 0 : s.width, (n = t == null ? void 0 : t.canvas) == null ? void 0 : n.height), t.disable(t.DEPTH_TEST), t.disable(t.STENCIL_TEST), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, r), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, i.texture0), this.renderScreen(e, t, i, o), this.updateParticles(e, t, i, o));
|
|
719
1239
|
}
|
|
720
1240
|
renderScreen(e, t, r, i) {
|
|
721
1241
|
t.bindFramebuffer(t.FRAMEBUFFER, r.frameBuffer), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, r.screenTexture, 0), t.viewport(0, 0, t.canvas.width, t.canvas.height), this.renderScreenTexture(t, r.backgroundTexture, r.screen, r.quadBuffer, 0.95), this.renderParticles(e, t, r, i), t.bindFramebuffer(t.FRAMEBUFFER, null), this.renderScreenTexture(t, r.screenTexture, r.screen, r.quadBuffer, 1);
|
|
@@ -733,11 +1253,11 @@ class ye {
|
|
|
733
1253
|
}
|
|
734
1254
|
}
|
|
735
1255
|
updateParticles(e, t, r, i) {
|
|
736
|
-
var
|
|
1256
|
+
var s, n;
|
|
737
1257
|
if (t) {
|
|
738
1258
|
t.bindFramebuffer(t.FRAMEBUFFER, r.frameBuffer), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, r.texture1, 0), t.viewport(0, 0, r.resolution, r.resolution), t.useProgram(r.update.program), t.bindBuffer(t.ARRAY_BUFFER, r.quadBuffer), t.enableVertexAttribArray(r.update.a_pos), t.vertexAttribPointer(r.update.a_pos, 2, t.FLOAT, !1, 0, 0), t.uniform1i(r.update.u_factor, 0), t.uniform1i(r.update.u_particles, 1);
|
|
739
1259
|
const c = e.getBoundRange();
|
|
740
|
-
t.uniform4f(r.update.u_viewport, c[0], c[1], c[2], c[3]), t.uniform1f(r.update.u_rand_seed, Math.random()), t.uniform2f(r.update.u_factor_res, (
|
|
1260
|
+
t.uniform4f(r.update.u_viewport, c[0], c[1], c[2], c[3]), t.uniform1f(r.update.u_rand_seed, Math.random()), t.uniform2f(r.update.u_factor_res, (s = r == null ? void 0 : r.image) == null ? void 0 : s.width, (n = r == null ? void 0 : r.image) == null ? void 0 : n.height), t.uniform2f(r.update.u_factor_min, i.uvRange[0], i.uvRange[0]), t.uniform2f(r.update.u_factor_max, i.uvRange[1], i.uvRange[1]), t.uniform1f(r.update.u_speed_factor, i.speedFactor * e.ratio), t.uniform1f(r.update.u_drop_rate, i.dropRate), t.uniform1f(r.update.u_drop_rate_bump, i.dropRateBump), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
741
1261
|
}
|
|
742
1262
|
const o = r.texture0;
|
|
743
1263
|
r.texture0 = r.texture1, r.texture1 = o;
|
|
@@ -757,7 +1277,7 @@ class ye {
|
|
|
757
1277
|
class N {
|
|
758
1278
|
}
|
|
759
1279
|
// 顶点渲染
|
|
760
|
-
|
|
1280
|
+
R(N, "vertexSchema", `
|
|
761
1281
|
//canvas 坐标系上的坐标 (x, y)
|
|
762
1282
|
attribute vec2 a_position; //像素坐标
|
|
763
1283
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -772,7 +1292,7 @@ I(N, "vertexSchema", `
|
|
|
772
1292
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
773
1293
|
v_texCoord = a_texCoord;
|
|
774
1294
|
}`), // 类如风、流等u v双变量片元渲染
|
|
775
|
-
|
|
1295
|
+
R(N, "uvFragmentSchema", `
|
|
776
1296
|
precision mediump float;
|
|
777
1297
|
uniform sampler2D u_image;
|
|
778
1298
|
uniform vec2 u_range_u_v;
|
|
@@ -791,7 +1311,7 @@ I(N, "uvFragmentSchema", `
|
|
|
791
1311
|
|
|
792
1312
|
gl_FragColor = color;
|
|
793
1313
|
}`), // 类如浪、气压等单变量片元渲染
|
|
794
|
-
|
|
1314
|
+
R(N, "fragmentSchema", `
|
|
795
1315
|
precision mediump float;
|
|
796
1316
|
uniform sampler2D u_image; // 灰度
|
|
797
1317
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -802,9 +1322,9 @@ I(N, "fragmentSchema", `
|
|
|
802
1322
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
803
1323
|
gl_FragColor = color;
|
|
804
1324
|
}`);
|
|
805
|
-
class
|
|
1325
|
+
class V {
|
|
806
1326
|
}
|
|
807
|
-
|
|
1327
|
+
R(V, "vertexSchema", `
|
|
808
1328
|
precision mediump float;
|
|
809
1329
|
|
|
810
1330
|
attribute float a_index; // 索引
|
|
@@ -828,7 +1348,7 @@ I(U, "vertexSchema", `
|
|
|
828
1348
|
gl_PointSize = 1.0;
|
|
829
1349
|
// gl_PointSize = u_point;
|
|
830
1350
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
831
|
-
}`),
|
|
1351
|
+
}`), R(V, "fragmentSchema", `
|
|
832
1352
|
precision mediump float;
|
|
833
1353
|
|
|
834
1354
|
uniform sampler2D u_factor;
|
|
@@ -850,7 +1370,7 @@ I(U, "vertexSchema", `
|
|
|
850
1370
|
|
|
851
1371
|
float f = 1.0 - uv.b;
|
|
852
1372
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
853
|
-
}`),
|
|
1373
|
+
}`), R(V, "quadVertSchema", `
|
|
854
1374
|
precision mediump float;
|
|
855
1375
|
|
|
856
1376
|
attribute vec2 a_pos;
|
|
@@ -860,7 +1380,7 @@ I(U, "vertexSchema", `
|
|
|
860
1380
|
void main() {
|
|
861
1381
|
v_tex_pos = a_pos;
|
|
862
1382
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
863
|
-
}`),
|
|
1383
|
+
}`), R(V, "screenFragmentSchema", `
|
|
864
1384
|
precision mediump float;
|
|
865
1385
|
|
|
866
1386
|
uniform sampler2D u_screen;
|
|
@@ -872,7 +1392,7 @@ I(U, "vertexSchema", `
|
|
|
872
1392
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
873
1393
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
874
1394
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
875
|
-
}`),
|
|
1395
|
+
}`), R(V, "updateFragmentSchema", `
|
|
876
1396
|
precision mediump float;
|
|
877
1397
|
|
|
878
1398
|
uniform sampler2D u_particles;
|
|
@@ -951,14 +1471,14 @@ I(U, "vertexSchema", `
|
|
|
951
1471
|
fract(pos * 255.0),
|
|
952
1472
|
floor(pos * 255.0) / 255.0);
|
|
953
1473
|
}`);
|
|
954
|
-
class
|
|
1474
|
+
class aa {
|
|
955
1475
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
1476
|
+
R(this, "token");
|
|
1477
|
+
R(this, "mapboxCustomer");
|
|
1478
|
+
R(this, "i4");
|
|
1479
|
+
R(this, "hi");
|
|
1480
|
+
R(this, "td");
|
|
1481
|
+
R(this, "windy");
|
|
962
1482
|
this.token = e, this.mapboxCustomer = {
|
|
963
1483
|
source: this.initialOnlineStyle().sources.composite,
|
|
964
1484
|
layers: {
|
|
@@ -2555,14 +3075,14 @@ class gt {
|
|
|
2555
3075
|
};
|
|
2556
3076
|
}
|
|
2557
3077
|
}
|
|
2558
|
-
const
|
|
3078
|
+
const ia = {
|
|
2559
3079
|
name: "IdmWindParticle",
|
|
2560
3080
|
props: {
|
|
2561
3081
|
factor: {
|
|
2562
3082
|
type: Object
|
|
2563
3083
|
},
|
|
2564
3084
|
viewport: {
|
|
2565
|
-
type:
|
|
3085
|
+
type: Ve
|
|
2566
3086
|
},
|
|
2567
3087
|
bottom: {
|
|
2568
3088
|
type: String,
|
|
@@ -2579,7 +3099,7 @@ const bt = {
|
|
|
2579
3099
|
texture: void 0,
|
|
2580
3100
|
rampColor: void 0,
|
|
2581
3101
|
aPositionBuffer: void 0,
|
|
2582
|
-
webgl: new
|
|
3102
|
+
webgl: new Le(),
|
|
2583
3103
|
etime: void 0,
|
|
2584
3104
|
wrapper: void 0,
|
|
2585
3105
|
animation: void 0,
|
|
@@ -2633,8 +3153,8 @@ const bt = {
|
|
|
2633
3153
|
}
|
|
2634
3154
|
},
|
|
2635
3155
|
handleClear() {
|
|
2636
|
-
var a, e, t, r, i, o,
|
|
2637
|
-
(a = this.viewport) == null || a.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (t = this.viewport) == null ? void 0 : t.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (
|
|
3156
|
+
var a, e, t, r, i, o, s, n;
|
|
3157
|
+
(a = this.viewport) == null || a.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (t = this.viewport) == null ? void 0 : t.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (n = (s = this.viewport) == null ? void 0 : s.map) == null || n.off("moveend", this.handlePlay), this.handlePause();
|
|
2638
3158
|
},
|
|
2639
3159
|
handleSetup() {
|
|
2640
3160
|
if (!this.context) {
|
|
@@ -2683,11 +3203,11 @@ const bt = {
|
|
|
2683
3203
|
];
|
|
2684
3204
|
this.wrapper = this.webgl.bindParticle(
|
|
2685
3205
|
this.particleContext,
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
3206
|
+
V.vertexSchema,
|
|
3207
|
+
V.fragmentSchema,
|
|
3208
|
+
V.quadVertSchema,
|
|
3209
|
+
V.screenFragmentSchema,
|
|
3210
|
+
V.updateFragmentSchema
|
|
2691
3211
|
), this.wrapper.color = this.webgl.setup(this.particleContext, a, !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);
|
|
2692
3212
|
}
|
|
2693
3213
|
},
|
|
@@ -2717,27 +3237,27 @@ const bt = {
|
|
|
2717
3237
|
});
|
|
2718
3238
|
}
|
|
2719
3239
|
}
|
|
2720
|
-
},
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
3240
|
+
}, le = (a) => (H("data-v-64887571"), a = a(), G(), a), ra = { key: 0 }, oa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "kts", -1)), sa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "0", -1)), na = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "5", -1)), la = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "10", -1)), ca = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "20", -1)), ha = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "30", -1)), da = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "40", -1)), pa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "60", -1)), ma = [
|
|
3241
|
+
oa,
|
|
3242
|
+
sa,
|
|
3243
|
+
na,
|
|
3244
|
+
la,
|
|
3245
|
+
ca,
|
|
3246
|
+
ha,
|
|
3247
|
+
da,
|
|
3248
|
+
pa
|
|
3249
|
+
];
|
|
3250
|
+
function ua(a, e, t, r, i, o) {
|
|
3251
|
+
var s;
|
|
3252
|
+
return (s = t.factor) != null && s.active ? (x(), C("div", ra, [
|
|
2724
3253
|
l("div", {
|
|
2725
3254
|
class: "legend-bars flex-center",
|
|
2726
|
-
style:
|
|
2727
|
-
},
|
|
2728
|
-
l("span", null, "kts", -1),
|
|
2729
|
-
l("span", null, "0", -1),
|
|
2730
|
-
l("span", null, "5", -1),
|
|
2731
|
-
l("span", null, "10", -1),
|
|
2732
|
-
l("span", null, "20", -1),
|
|
2733
|
-
l("span", null, "30", -1),
|
|
2734
|
-
l("span", null, "40", -1),
|
|
2735
|
-
l("span", null, "60", -1)
|
|
2736
|
-
]), 4)
|
|
3255
|
+
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3256
|
+
}, ma, 4)
|
|
2737
3257
|
])) : B("", !0);
|
|
2738
3258
|
}
|
|
2739
|
-
const
|
|
2740
|
-
const
|
|
3259
|
+
const ya = /* @__PURE__ */ T(ia, [["render", ua], ["__scopeId", "data-v-64887571"]]);
|
|
3260
|
+
const fa = {
|
|
2741
3261
|
name: "IdmCurrent",
|
|
2742
3262
|
props: {
|
|
2743
3263
|
map: {
|
|
@@ -2762,20 +3282,18 @@ const xt = {
|
|
|
2762
3282
|
},
|
|
2763
3283
|
toggleVersion: {
|
|
2764
3284
|
type: Number
|
|
2765
|
-
},
|
|
2766
|
-
weatherLayers: {
|
|
2767
|
-
type: Object
|
|
2768
3285
|
}
|
|
2769
3286
|
},
|
|
2770
|
-
emits: ["particle"],
|
|
3287
|
+
emits: ["particle", "handleToggleVersion"],
|
|
2771
3288
|
data() {
|
|
2772
3289
|
return {
|
|
2773
3290
|
source: "current-source",
|
|
2774
3291
|
directionLayer: "current-direction-layer",
|
|
2775
3292
|
speedLayer: "current-speed-layer",
|
|
2776
3293
|
speedLabelLayer: "current-speed-label-layer",
|
|
2777
|
-
empty:
|
|
2778
|
-
showJson: !1,
|
|
3294
|
+
empty: L.featureCollection([]),
|
|
3295
|
+
showJson: localStorage.getItem("currentJsonCache") === "true" || !1,
|
|
3296
|
+
currentJsonCache: "currentJsonCache",
|
|
2779
3297
|
right: 10,
|
|
2780
3298
|
bottom: 95
|
|
2781
3299
|
};
|
|
@@ -2784,40 +3302,32 @@ const xt = {
|
|
|
2784
3302
|
"current.version": {
|
|
2785
3303
|
handler() {
|
|
2786
3304
|
var a;
|
|
2787
|
-
(a = this.current) != null && a.active ? this.handleRender() : this.handleClear();
|
|
3305
|
+
(a = this.current) != null && a.active ? this.handleRender() : this.handleClear(), this.$emit("handleToggleVersion");
|
|
2788
3306
|
},
|
|
2789
3307
|
deep: !0
|
|
2790
3308
|
},
|
|
2791
3309
|
showParticle: {
|
|
2792
3310
|
handler() {
|
|
2793
|
-
this.showJson = !this.showParticle;
|
|
2794
3311
|
},
|
|
2795
3312
|
immediate: !0
|
|
2796
3313
|
},
|
|
2797
3314
|
showJson: {
|
|
2798
3315
|
handler() {
|
|
2799
|
-
this.handleToggle();
|
|
3316
|
+
this.showJson, localStorage.setItem(this.currentJsonCache, this.showJson), this.handleToggle();
|
|
2800
3317
|
},
|
|
2801
3318
|
immediate: !0
|
|
2802
3319
|
},
|
|
2803
3320
|
toggleVersion: {
|
|
2804
3321
|
handler() {
|
|
2805
|
-
var a;
|
|
2806
|
-
this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
|
|
2807
|
-
},
|
|
2808
|
-
immediate: !0
|
|
2809
|
-
},
|
|
2810
|
-
weatherLayers: {
|
|
2811
|
-
handler() {
|
|
2812
|
-
var a;
|
|
2813
|
-
this.bottom = (((a = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : a.clientHeight) || 0) + 105;
|
|
3322
|
+
var a, e;
|
|
3323
|
+
this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10, this.bottom = (((e = document.getElementsByClassName("active-layers")[0]) == null ? void 0 : e.clientHeight) || 0) + 108;
|
|
2814
3324
|
},
|
|
2815
3325
|
immediate: !0
|
|
2816
3326
|
}
|
|
2817
3327
|
},
|
|
2818
3328
|
methods: {
|
|
2819
|
-
handleParticle() {
|
|
2820
|
-
this.$emit("particle", { particle:
|
|
3329
|
+
handleParticle(a) {
|
|
3330
|
+
this.$emit("particle", { particle: a, key: "current", weight: 96 });
|
|
2821
3331
|
},
|
|
2822
3332
|
handleRender() {
|
|
2823
3333
|
var a, e;
|
|
@@ -2897,59 +3407,41 @@ const xt = {
|
|
|
2897
3407
|
this.map.getLayer(this.speedLayer) && this.map.removeLayer(this.speedLayer), this.map.getLayer(this.speedLabelLayer) && this.map.removeLayer(this.speedLabelLayer), this.map.getLayer(this.directionLayer) && this.map.removeLayer(this.directionLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
2898
3408
|
}
|
|
2899
3409
|
}
|
|
2900
|
-
},
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
},
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
key: 1,
|
|
2911
|
-
class: "iconfont"
|
|
2912
|
-
};
|
|
2913
|
-
function Pt(a, e, t, r, i, o) {
|
|
2914
|
-
var n;
|
|
2915
|
-
return (n = t.current) != null && n.active ? (x(), _("div", _t, [
|
|
3410
|
+
}, ga = { key: 0 }, ba = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), va = /* @__PURE__ */ l("span", null, "Current Particles", -1), wa = [
|
|
3411
|
+
ba,
|
|
3412
|
+
va
|
|
3413
|
+
], _a = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), La = /* @__PURE__ */ l("span", null, "Current Isoband", -1), xa = [
|
|
3414
|
+
_a,
|
|
3415
|
+
La
|
|
3416
|
+
];
|
|
3417
|
+
function Ca(a, e, t, r, i, o) {
|
|
3418
|
+
var s;
|
|
3419
|
+
return (s = t.current) != null && s.active ? (x(), C("div", ga, [
|
|
2916
3420
|
l("div", {
|
|
2917
|
-
class: "flex-center tool-bars",
|
|
2918
|
-
style:
|
|
3421
|
+
class: "flex-center current-tool-bars",
|
|
3422
|
+
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
|
|
2919
3423
|
}, [
|
|
2920
|
-
t.mapProjection === "mercator" ? (x(),
|
|
3424
|
+
t.mapProjection === "mercator" ? (x(), C("div", {
|
|
2921
3425
|
key: 0,
|
|
2922
|
-
class: "flex-start",
|
|
2923
|
-
onClick: e[0] || (e[0] = (
|
|
2924
|
-
},
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
])) : B("", !0),
|
|
2930
|
-
t.showParticle ? (x(), _("div", {
|
|
2931
|
-
key: 1,
|
|
2932
|
-
class: "flex-start",
|
|
2933
|
-
style: { "margin-left": "16px" },
|
|
2934
|
-
onClick: e[1] || (e[1] = (s) => i.showJson = !i.showJson)
|
|
2935
|
-
}, [
|
|
2936
|
-
i.showJson ? (x(), _("i", kt, "")) : (x(), _("i", zt, "")),
|
|
2937
|
-
l("span", {
|
|
2938
|
-
class: M(i.showJson ? "active" : "")
|
|
2939
|
-
}, "Current", 2)
|
|
2940
|
-
])) : B("", !0)
|
|
3426
|
+
class: j(["flex-start item-bar", t.showParticle ? "active" : "inactive"]),
|
|
3427
|
+
onClick: e[0] || (e[0] = (n) => o.handleParticle(!t.showParticle))
|
|
3428
|
+
}, wa, 2)) : B("", !0),
|
|
3429
|
+
l("div", {
|
|
3430
|
+
class: j(["flex-start item-bar", i.showJson ? "active" : "inactive"]),
|
|
3431
|
+
onClick: e[1] || (e[1] = (n) => i.showJson = !i.showJson)
|
|
3432
|
+
}, xa, 2)
|
|
2941
3433
|
], 4)
|
|
2942
3434
|
])) : B("", !0);
|
|
2943
3435
|
}
|
|
2944
|
-
const
|
|
2945
|
-
const
|
|
3436
|
+
const ka = /* @__PURE__ */ T(fa, [["render", Ca]]);
|
|
3437
|
+
const Sa = {
|
|
2946
3438
|
name: "IdmCurrentParticle",
|
|
2947
3439
|
props: {
|
|
2948
3440
|
factor: {
|
|
2949
3441
|
type: Object
|
|
2950
3442
|
},
|
|
2951
3443
|
viewport: {
|
|
2952
|
-
type:
|
|
3444
|
+
type: Ve
|
|
2953
3445
|
},
|
|
2954
3446
|
bottom: {
|
|
2955
3447
|
type: String,
|
|
@@ -2966,7 +3458,7 @@ const Rt = {
|
|
|
2966
3458
|
texture: void 0,
|
|
2967
3459
|
rampColor: void 0,
|
|
2968
3460
|
aPositionBuffer: void 0,
|
|
2969
|
-
webgl: new
|
|
3461
|
+
webgl: new Le(),
|
|
2970
3462
|
etime: void 0,
|
|
2971
3463
|
wrapper: void 0,
|
|
2972
3464
|
animation: void 0,
|
|
@@ -3020,8 +3512,8 @@ const Rt = {
|
|
|
3020
3512
|
}
|
|
3021
3513
|
},
|
|
3022
3514
|
handleClear() {
|
|
3023
|
-
var a, e, t, r, i, o,
|
|
3024
|
-
(a = this.viewport) == null || a.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (t = this.viewport) == null ? void 0 : t.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (
|
|
3515
|
+
var a, e, t, r, i, o, s, n;
|
|
3516
|
+
(a = this.viewport) == null || a.toggle(!1), (e = this.viewport) == null || e.toggleParticle(!1), this.context = void 0, this.particleContext = void 0, this.etime = void 0, this.initial = !0, (r = (t = this.viewport) == null ? void 0 : t.map) == null || r.off("resize", this.handleResize), (o = (i = this.viewport) == null ? void 0 : i.map) == null || o.off("movestart", this.handlePause), (n = (s = this.viewport) == null ? void 0 : s.map) == null || n.off("moveend", this.handlePlay), this.handlePause();
|
|
3025
3517
|
},
|
|
3026
3518
|
handleSetup() {
|
|
3027
3519
|
if (!this.context) {
|
|
@@ -3061,11 +3553,11 @@ const Rt = {
|
|
|
3061
3553
|
];
|
|
3062
3554
|
this.wrapper = this.webgl.bindParticle(
|
|
3063
3555
|
this.particleContext,
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3556
|
+
V.vertexSchema,
|
|
3557
|
+
V.fragmentSchema,
|
|
3558
|
+
V.quadVertSchema,
|
|
3559
|
+
V.screenFragmentSchema,
|
|
3560
|
+
V.updateFragmentSchema
|
|
3069
3561
|
), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = {
|
|
3070
3562
|
...this.wrapper,
|
|
3071
3563
|
...this.webgl.setupParticle(this.particleContext, 12e3),
|
|
@@ -3099,25 +3591,25 @@ const Rt = {
|
|
|
3099
3591
|
});
|
|
3100
3592
|
}
|
|
3101
3593
|
}
|
|
3102
|
-
},
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3594
|
+
}, xe = (a) => (H("data-v-6d4fd206"), a = a(), G(), a), za = { key: 0 }, Pa = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "kts", -1)), Ta = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0", -1)), Ia = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0.4", -1)), Ea = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0.8", -1)), Ra = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "1.6", -1)), Aa = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "2", -1)), Da = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ma = [
|
|
3595
|
+
Pa,
|
|
3596
|
+
Ta,
|
|
3597
|
+
Ia,
|
|
3598
|
+
Ea,
|
|
3599
|
+
Ra,
|
|
3600
|
+
Aa,
|
|
3601
|
+
Da
|
|
3602
|
+
];
|
|
3603
|
+
function $a(a, e, t, r, i, o) {
|
|
3604
|
+
var s;
|
|
3605
|
+
return (s = t.factor) != null && s.active ? (x(), C("div", za, [
|
|
3106
3606
|
l("div", {
|
|
3107
3607
|
class: "legend-bars flex-center",
|
|
3108
|
-
style:
|
|
3109
|
-
},
|
|
3110
|
-
l("span", null, "kts", -1),
|
|
3111
|
-
l("span", null, "0", -1),
|
|
3112
|
-
l("span", null, "0.4", -1),
|
|
3113
|
-
l("span", null, "0.8", -1),
|
|
3114
|
-
l("span", null, "1.6", -1),
|
|
3115
|
-
l("span", null, "2", -1),
|
|
3116
|
-
l("span", null, "3.2", -1)
|
|
3117
|
-
]), 4)
|
|
3608
|
+
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3609
|
+
}, Ma, 4)
|
|
3118
3610
|
])) : B("", !0);
|
|
3119
3611
|
}
|
|
3120
|
-
const
|
|
3612
|
+
const ja = /* @__PURE__ */ T(Sa, [["render", $a], ["__scopeId", "data-v-6d4fd206"]]), Na = {
|
|
3121
3613
|
name: "IdmSigWave",
|
|
3122
3614
|
props: {
|
|
3123
3615
|
map: {
|
|
@@ -3135,7 +3627,7 @@ const Dt = /* @__PURE__ */ T(Rt, [["render", It], ["__scopeId", "data-v-13f659b1
|
|
|
3135
3627
|
source: "sig-wave-source",
|
|
3136
3628
|
heightLayer: "sig-wave-height-layer",
|
|
3137
3629
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
3138
|
-
empty:
|
|
3630
|
+
empty: L.featureCollection([])
|
|
3139
3631
|
};
|
|
3140
3632
|
},
|
|
3141
3633
|
watch: {
|
|
@@ -3228,10 +3720,10 @@ const Dt = /* @__PURE__ */ T(Rt, [["render", It], ["__scopeId", "data-v-13f659b1
|
|
|
3228
3720
|
}
|
|
3229
3721
|
}
|
|
3230
3722
|
};
|
|
3231
|
-
function
|
|
3232
|
-
return x(),
|
|
3723
|
+
function Ba(a, e, t, r, i, o) {
|
|
3724
|
+
return x(), C("div");
|
|
3233
3725
|
}
|
|
3234
|
-
const
|
|
3726
|
+
const Wa = /* @__PURE__ */ T(Na, [["render", Ba]]), Oa = {
|
|
3235
3727
|
name: "IdmSwell",
|
|
3236
3728
|
props: {
|
|
3237
3729
|
map: {
|
|
@@ -3250,7 +3742,7 @@ const Bt = /* @__PURE__ */ T(At, [["render", Mt]]), Ot = {
|
|
|
3250
3742
|
directionLayer: "swell-direction-layer",
|
|
3251
3743
|
heightLayer: "swell-height-layer",
|
|
3252
3744
|
heightLabelLayer: "swell-height-label-layer",
|
|
3253
|
-
empty:
|
|
3745
|
+
empty: L.featureCollection([])
|
|
3254
3746
|
};
|
|
3255
3747
|
},
|
|
3256
3748
|
watch: {
|
|
@@ -3369,10 +3861,10 @@ const Bt = /* @__PURE__ */ T(At, [["render", Mt]]), Ot = {
|
|
|
3369
3861
|
}
|
|
3370
3862
|
}
|
|
3371
3863
|
};
|
|
3372
|
-
function
|
|
3373
|
-
return x(),
|
|
3864
|
+
function Fa(a, e, t, r, i, o) {
|
|
3865
|
+
return x(), C("div");
|
|
3374
3866
|
}
|
|
3375
|
-
const
|
|
3867
|
+
const Va = /* @__PURE__ */ T(Oa, [["render", Fa]]), Ua = {
|
|
3376
3868
|
name: "IdmPrmsl",
|
|
3377
3869
|
props: {
|
|
3378
3870
|
map: {
|
|
@@ -3394,7 +3886,7 @@ const jt = /* @__PURE__ */ T(Ot, [["render", Nt]]), Wt = {
|
|
|
3394
3886
|
layer: "prmsl-layer",
|
|
3395
3887
|
labelLayer: "prmsl-label-layer",
|
|
3396
3888
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
3397
|
-
empty:
|
|
3889
|
+
empty: L.featureCollection([])
|
|
3398
3890
|
};
|
|
3399
3891
|
},
|
|
3400
3892
|
watch: {
|
|
@@ -3415,8 +3907,8 @@ const jt = /* @__PURE__ */ T(Ot, [["render", Nt]]), Wt = {
|
|
|
3415
3907
|
}, 500);
|
|
3416
3908
|
else if (this.prmsl) {
|
|
3417
3909
|
const r = (/* @__PURE__ */ new Date()).valueOf();
|
|
3418
|
-
let i = 0, o = 0,
|
|
3419
|
-
this.prmsl.active && (
|
|
3910
|
+
let i = 0, o = 0, s = this.empty;
|
|
3911
|
+
this.prmsl.active && (s = this.prmsl.data), (a = this.map) != null && a.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData(s), o = (/* @__PURE__ */ new Date()).valueOf() - (r + i), console.log("[prmsl] update elapsed: ", o, ", total: ", i += o)) : (this.map.addSource(this.source, { type: "geojson", data: s }), this.map.addLayer(
|
|
3420
3912
|
{
|
|
3421
3913
|
id: this.layer,
|
|
3422
3914
|
type: "line",
|
|
@@ -3497,10 +3989,10 @@ const jt = /* @__PURE__ */ T(Ot, [["render", Nt]]), Wt = {
|
|
|
3497
3989
|
}
|
|
3498
3990
|
}
|
|
3499
3991
|
};
|
|
3500
|
-
function
|
|
3501
|
-
return x(),
|
|
3992
|
+
function Za(a, e, t, r, i, o) {
|
|
3993
|
+
return x(), C("div");
|
|
3502
3994
|
}
|
|
3503
|
-
const
|
|
3995
|
+
const Ha = /* @__PURE__ */ T(Ua, [["render", Za]]), Ga = {
|
|
3504
3996
|
name: "IdmIceberg",
|
|
3505
3997
|
props: {
|
|
3506
3998
|
map: {
|
|
@@ -3517,7 +4009,7 @@ const $t = /* @__PURE__ */ T(Wt, [["render", Ft]]), Vt = {
|
|
|
3517
4009
|
return {
|
|
3518
4010
|
source: "iceberg-source",
|
|
3519
4011
|
layer: "iceberg-layer",
|
|
3520
|
-
empty:
|
|
4012
|
+
empty: L.featureCollection([])
|
|
3521
4013
|
};
|
|
3522
4014
|
},
|
|
3523
4015
|
watch: {
|
|
@@ -3557,11 +4049,11 @@ const $t = /* @__PURE__ */ T(Wt, [["render", Ft]]), Vt = {
|
|
|
3557
4049
|
}
|
|
3558
4050
|
}
|
|
3559
4051
|
};
|
|
3560
|
-
function
|
|
3561
|
-
return x(),
|
|
4052
|
+
function Ja(a, e, t, r, i, o) {
|
|
4053
|
+
return x(), C("div");
|
|
3562
4054
|
}
|
|
3563
|
-
const
|
|
3564
|
-
const
|
|
4055
|
+
const Xa = /* @__PURE__ */ T(Ga, [["render", Ja]]);
|
|
4056
|
+
const Ya = {
|
|
3565
4057
|
name: "IdmTropicals",
|
|
3566
4058
|
props: {
|
|
3567
4059
|
map: {
|
|
@@ -3581,7 +4073,7 @@ const Ht = {
|
|
|
3581
4073
|
emits: ["tropical", "tropicalProbability"],
|
|
3582
4074
|
data() {
|
|
3583
4075
|
return {
|
|
3584
|
-
helper:
|
|
4076
|
+
helper: De,
|
|
3585
4077
|
source: "tropicals-source",
|
|
3586
4078
|
clusterSource: "tropicals-cluster-source",
|
|
3587
4079
|
historyLayer: "tropicals-history-layer",
|
|
@@ -3599,9 +4091,9 @@ const Ht = {
|
|
|
3599
4091
|
showTropicals: !1,
|
|
3600
4092
|
activeTropicals: void 0,
|
|
3601
4093
|
activeTropicalsMarker: void 0,
|
|
3602
|
-
empty:
|
|
4094
|
+
empty: L.featureCollection([]),
|
|
3603
4095
|
circleSource: "circle-source",
|
|
3604
|
-
circleSourceData:
|
|
4096
|
+
circleSourceData: L.featureCollection([]),
|
|
3605
4097
|
circleLayer: "tropical-circle-layer"
|
|
3606
4098
|
};
|
|
3607
4099
|
},
|
|
@@ -3648,29 +4140,29 @@ const Ht = {
|
|
|
3648
4140
|
var r, i;
|
|
3649
4141
|
const a = ((i = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : i.features) || [], e = Z().utc().hour(), t = [];
|
|
3650
4142
|
a.forEach((o) => {
|
|
3651
|
-
var
|
|
3652
|
-
(
|
|
4143
|
+
var s, n, c;
|
|
4144
|
+
(s = o.properties) != null && s.name && !t.includes((n = o.properties) == null ? void 0 : n.name) && t.push((c = o.properties) == null ? void 0 : c.name);
|
|
3653
4145
|
}), t.forEach((o) => {
|
|
3654
|
-
var
|
|
3655
|
-
let
|
|
3656
|
-
const c = a.filter((
|
|
4146
|
+
var d;
|
|
4147
|
+
let s = 0, n;
|
|
4148
|
+
const c = a.filter((h) => {
|
|
3657
4149
|
var p, g;
|
|
3658
|
-
return ((g = (p =
|
|
4150
|
+
return ((g = (p = h.properties) == null ? void 0 : p.category) == null ? void 0 : g.split("-")[0]) === o;
|
|
3659
4151
|
});
|
|
3660
|
-
(
|
|
4152
|
+
(d = c.filter((h) => {
|
|
3661
4153
|
var p, g;
|
|
3662
|
-
return ((p =
|
|
3663
|
-
})[0]) == null ||
|
|
4154
|
+
return ((p = h.geometry) == null ? void 0 : p.type) === "LineString" && ((g = h.properties) == null ? void 0 : g.type) === "forecast";
|
|
4155
|
+
})[0]) == null || d.properties.model, c.forEach((h, p) => {
|
|
3664
4156
|
var g, u, y, f, m, v;
|
|
3665
|
-
((g =
|
|
3666
|
-
}), c.map((
|
|
4157
|
+
((g = h.geometry) == null ? void 0 : g.type) === "Point" && ((u = h.properties) == null ? void 0 : u.type) === "history" && (s = p, n = n === void 0 ? p : n), ((y = h.geometry) == null ? void 0 : y.type) === "Point" && ((f = h.properties) == null ? void 0 : f.type) === "forecast" && n === void 0 && (n = p), ((m = h.geometry) == null ? void 0 : m.type) === "LineString" && ((v = h.properties) == null || v.type);
|
|
4158
|
+
}), c.map((h, p) => {
|
|
3667
4159
|
var g, u, y, f, m, v, b;
|
|
3668
|
-
if (((g =
|
|
3669
|
-
|
|
3670
|
-
const
|
|
3671
|
-
|
|
4160
|
+
if (((g = h.geometry) == null ? void 0 : g.type) === "LineString" && ((u = h.properties) == null || u.type), ((y = h.geometry) == null ? void 0 : y.type) === "Point" && ((f = h.properties) == null ? void 0 : f.type) === "forecast" && (h.properties.name = o, h.properties.format = Z(h.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((m = h.geometry) == null ? void 0 : m.type) === "Point" && ((v = h.properties) == null ? void 0 : v.type) === "history") {
|
|
4161
|
+
h.properties.format = Z(h.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
4162
|
+
const _ = Z((b = h.properties) == null ? void 0 : b.date).utc().format("HHmm") === Z().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
|
|
4163
|
+
h.properties.showHistoryLabel = _ || p === s, h.properties.showNameLabel = p === s, h.properties.name = o;
|
|
3672
4164
|
}
|
|
3673
|
-
return
|
|
4165
|
+
return h;
|
|
3674
4166
|
});
|
|
3675
4167
|
}), this.handleInit();
|
|
3676
4168
|
},
|
|
@@ -3705,7 +4197,7 @@ const Ht = {
|
|
|
3705
4197
|
));
|
|
3706
4198
|
},
|
|
3707
4199
|
handleRender() {
|
|
3708
|
-
var a, e, t, r, i, o,
|
|
4200
|
+
var a, e, t, r, i, o, s, n, c, d;
|
|
3709
4201
|
if (!this.map)
|
|
3710
4202
|
setTimeout(() => {
|
|
3711
4203
|
this.handleRender();
|
|
@@ -3811,9 +4303,9 @@ const Ht = {
|
|
|
3811
4303
|
],
|
|
3812
4304
|
"text-halo-width": 4
|
|
3813
4305
|
}
|
|
3814
|
-
}), y = (/* @__PURE__ */ new Date()).valueOf() - (g + u), console.log("[tropical] add elapsed: ", y, ", total: ", u += y)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((
|
|
4306
|
+
}), y = (/* @__PURE__ */ new Date()).valueOf() - (g + u), console.log("[tropical] add elapsed: ", y, ", total: ", u += y)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((n = this.map) == null || n.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), y = (/* @__PURE__ */ new Date()).valueOf() - (g + u), console.log("[tropical] update elapsed: ", y, ", total: ", u += y)) : (this.map.addSource(this.clusterSource, {
|
|
3815
4307
|
type: "geojson",
|
|
3816
|
-
data: (c = this.tropicals) != null && c.active ? (
|
|
4308
|
+
data: (c = this.tropicals) != null && c.active ? (d = this.tropicals) == null ? void 0 : d.data : this.empty
|
|
3817
4309
|
// cluster: true,
|
|
3818
4310
|
// clusterRadius: 10, // 聚合半径
|
|
3819
4311
|
}), this.map.addLayer({
|
|
@@ -3931,8 +4423,8 @@ const Ht = {
|
|
|
3931
4423
|
}), y = (/* @__PURE__ */ new Date()).valueOf() - (g + u), console.log("[tropical] add elapsed: ", y, ", total: ", u += y));
|
|
3932
4424
|
}
|
|
3933
4425
|
this.handleDrawCircle();
|
|
3934
|
-
const
|
|
3935
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
4426
|
+
const h = Qe.interpolate(this.tropicals, 1);
|
|
4427
|
+
this.interpolateData = JSON.parse(JSON.stringify(h));
|
|
3936
4428
|
const p = this.interpolateData.filter((g) => g.properties.name === "kristy" && g.properties.model === "ecmwf");
|
|
3937
4429
|
console.log(p), this.handleDateChange();
|
|
3938
4430
|
}
|
|
@@ -3942,14 +4434,14 @@ const Ht = {
|
|
|
3942
4434
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
|
|
3943
4435
|
},
|
|
3944
4436
|
handleDateChange() {
|
|
3945
|
-
var a, e, t, r, i, o,
|
|
3946
|
-
if ((a = this.interpolateMarkers) == null || a.forEach((
|
|
3947
|
-
const
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(
|
|
4437
|
+
var a, e, t, r, i, o, s, n, c, d, h, p, g, u, y, f, m, v, b, _, z, w, A, M, $, W, O, J, de, pe, me, ue, ye, fe, ge, ie;
|
|
4438
|
+
if ((a = this.interpolateMarkers) == null || a.forEach((X) => X == null ? void 0 : X.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
4439
|
+
const X = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), Y = this.interpolateData.filter((I) => I.properties.date === X.format() && !I.properties.disabled), be = this.handleComputePolygons(Y), q = L.featureCollection([...Y]);
|
|
4440
|
+
be.forEach((I) => {
|
|
4441
|
+
q.features.push(I);
|
|
4442
|
+
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(q) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
3951
4443
|
type: "geojson",
|
|
3952
|
-
data:
|
|
4444
|
+
data: q
|
|
3953
4445
|
}), (o = this.map) == null || o.addLayer({
|
|
3954
4446
|
id: this.interpolateLineLayer,
|
|
3955
4447
|
type: "line",
|
|
@@ -3961,17 +4453,17 @@ const Ht = {
|
|
|
3961
4453
|
"line-width": 1
|
|
3962
4454
|
}
|
|
3963
4455
|
})), this.interpolateMarkers = [];
|
|
3964
|
-
for (const
|
|
3965
|
-
if (!
|
|
3966
|
-
let
|
|
3967
|
-
((
|
|
3968
|
-
const
|
|
4456
|
+
for (const I of Y)
|
|
4457
|
+
if (!I.properties.disabled) {
|
|
4458
|
+
let F = "#f44336";
|
|
4459
|
+
((n = (s = I.properties) == null ? void 0 : s.wind) == null ? void 0 : n.spd) < 17.2 || !((d = (c = I.properties) == null ? void 0 : c.wind) != null && d.spd) ? F = "#03f869" : ((p = (h = I.properties) == null ? void 0 : h.wind) == null ? void 0 : p.spd) >= 17.2 && ((u = (g = I.properties) == null ? void 0 : g.wind) == null ? void 0 : u.spd) < 24.5 ? F = "#f2f202" : ((f = (y = I.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((v = (m = I.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? F = "#ff9100" : ((_ = (b = I.properties) == null ? void 0 : b.wind) == null ? void 0 : _.spd) >= 32.7 && ((w = (z = I.properties) == null ? void 0 : z.wind) == null ? void 0 : w.spd) < 41.5 ? F = "#f44336" : ((M = (A = I.properties) == null ? void 0 : A.wind) == null ? void 0 : M.spd) >= 41.5 && ((W = ($ = I.properties) == null ? void 0 : $.wind) == null ? void 0 : W.spd) < 51 ? F = "#f903d0" : ((J = (O = I.properties) == null ? void 0 : O.wind) == null ? void 0 : J.spd) >= 51 ? F = "#8702f9" : F = "#f44336";
|
|
4460
|
+
const ve = `<svg t="1719918955501"
|
|
3969
4461
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
3970
4462
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
3971
4463
|
<path
|
|
3972
4464
|
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"
|
|
3973
|
-
fill="${
|
|
3974
|
-
<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="${
|
|
4465
|
+
fill="${F}" p-id="18383"></path>
|
|
4466
|
+
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${F}"
|
|
3975
4467
|
p-id="18384"></path>
|
|
3976
4468
|
<path
|
|
3977
4469
|
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"
|
|
@@ -3979,27 +4471,27 @@ const Ht = {
|
|
|
3979
4471
|
<path
|
|
3980
4472
|
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"
|
|
3981
4473
|
fill="#ffffff" p-id="18386"></path>
|
|
3982
|
-
</svg>`,
|
|
3983
|
-
|
|
3984
|
-
const
|
|
3985
|
-
if (this.interpolateMarkers.push(
|
|
3986
|
-
const
|
|
3987
|
-
(
|
|
3988
|
-
|
|
3989
|
-
), (
|
|
3990
|
-
|
|
3991
|
-
), (
|
|
3992
|
-
|
|
4474
|
+
</svg>`, Q = document.createElement("div");
|
|
4475
|
+
Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${I.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ve}</div>`;
|
|
4476
|
+
const we = new te.Marker(Q).setLngLat(I.geometry.coordinates).addTo(this.map);
|
|
4477
|
+
if (this.interpolateMarkers.push(we), (de = I.properties) != null && de.showCircle) {
|
|
4478
|
+
const re = { radius: 100, coordinates: I.geometry.coordinates }, oe = { radius: 200, coordinates: I.geometry.coordinates }, se = { radius: 500, coordinates: I.geometry.coordinates };
|
|
4479
|
+
(pe = this.circleSourceData) == null || pe.features.push(
|
|
4480
|
+
L.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4481
|
+
), (me = this.circleSourceData) == null || me.features.push(
|
|
4482
|
+
L.circle(oe.coordinates, oe.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4483
|
+
), (ue = this.circleSourceData) == null || ue.features.push(
|
|
4484
|
+
L.circle(se.coordinates, se.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3993
4485
|
);
|
|
3994
4486
|
}
|
|
3995
|
-
(
|
|
4487
|
+
(fe = (ye = this.map) == null ? void 0 : ye.getSource(this.circleSource)) == null || fe.setData(this.circleSourceData);
|
|
3996
4488
|
}
|
|
3997
4489
|
} else
|
|
3998
|
-
(
|
|
4490
|
+
(ge = this.map) != null && ge.getSource(this.interpolateSource) && ((ie = this.map) == null || ie.getSource(this.interpolateSource).setData(this.empty));
|
|
3999
4491
|
},
|
|
4000
4492
|
handleClick(a) {
|
|
4001
|
-
var o,
|
|
4002
|
-
const e = a.features[0], t = (
|
|
4493
|
+
var o, s, n, c, d, h, p, g;
|
|
4494
|
+
const e = a.features[0], t = (s = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : s.features.filter(
|
|
4003
4495
|
(u) => {
|
|
4004
4496
|
var y;
|
|
4005
4497
|
return u.geometry.type === "LineString" && u.properties.type === "forecast" && u.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
|
|
@@ -4009,30 +4501,30 @@ const Ht = {
|
|
|
4009
4501
|
var f, m, v, b;
|
|
4010
4502
|
return ((f = u.properties) == null ? void 0 : f.model) === "cma" ? -1 : ((m = u.properties) == null ? void 0 : m.model) === "jma" ? ((v = y.properties) == null ? void 0 : v.model) === "cma" ? 1 : -1 : u.properties.model === "ecmwf" ? ["jma", "cma"].includes((b = y.properties) == null ? void 0 : b.model) ? 1 : -1 : 0;
|
|
4011
4503
|
});
|
|
4012
|
-
const r = (c = (
|
|
4504
|
+
const r = (c = (n = this.tropicals) == null ? void 0 : n.data) == null ? void 0 : c.features.filter(
|
|
4013
4505
|
(u) => {
|
|
4014
4506
|
var y;
|
|
4015
4507
|
return u.geometry.type === "LineString" && u.properties.type === "history" && u.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
|
|
4016
4508
|
}
|
|
4017
4509
|
);
|
|
4018
4510
|
this.activeTropicals = {
|
|
4019
|
-
name: (
|
|
4511
|
+
name: (d = e == null ? void 0 : e.properties) == null ? void 0 : d.name,
|
|
4020
4512
|
forecasts: t.map((u) => u.properties),
|
|
4021
|
-
history: (
|
|
4513
|
+
history: (h = r[0]) == null ? void 0 : h.properties,
|
|
4022
4514
|
showCircle: (g = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : g.showCircle
|
|
4023
4515
|
}, this.showTropicals = !0;
|
|
4024
4516
|
const i = document.getElementById("active-tropical");
|
|
4025
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new
|
|
4517
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new te.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
4026
4518
|
},
|
|
4027
4519
|
handleForecastToggle(a) {
|
|
4028
|
-
var r, i, o,
|
|
4520
|
+
var r, i, o, s, n, c;
|
|
4029
4521
|
a.disabled = !a.disabled;
|
|
4030
4522
|
const e = `${a.name}-${a.model}`, t = (i = (r = this.map) == null ? void 0 : r.getSource(this.source)._data) == null ? void 0 : i.features;
|
|
4031
|
-
t.forEach((
|
|
4032
|
-
|
|
4033
|
-
}), this.interpolateData.forEach((
|
|
4034
|
-
|
|
4035
|
-
}), (
|
|
4523
|
+
t.forEach((d) => {
|
|
4524
|
+
d.properties.category === e && (d.properties.disabled = a.disabled);
|
|
4525
|
+
}), this.interpolateData.forEach((d) => {
|
|
4526
|
+
d.properties.category === e && (d.properties.disabled = a.disabled);
|
|
4527
|
+
}), (s = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || s.setData(L.featureCollection(t)), (c = (n = this.map) == null ? void 0 : n.getSource(this.clusterSource)) == null || c.setData(L.featureCollection(t)), this.handleDateChange();
|
|
4036
4528
|
},
|
|
4037
4529
|
handleStrikeProbability(a) {
|
|
4038
4530
|
this.$emit("tropicalProbability", a);
|
|
@@ -4071,122 +4563,122 @@ const Ht = {
|
|
|
4071
4563
|
nw: r.r7nw >= 0 ? r.r7nw : void 0
|
|
4072
4564
|
}, o = this.handleComputeArc(t.geometry.coordinates, i, { ...t.properties, level: 7 });
|
|
4073
4565
|
e.push(o);
|
|
4074
|
-
const
|
|
4566
|
+
const s = {
|
|
4075
4567
|
ne: r.r10ne >= 0 ? r.r10ne : void 0,
|
|
4076
4568
|
se: r.r10se >= 0 ? r.r10se : void 0,
|
|
4077
4569
|
sw: r.r10sw >= 0 ? r.r10sw : void 0,
|
|
4078
4570
|
nw: r.r10nw >= 0 ? r.r10nw : void 0
|
|
4079
|
-
},
|
|
4080
|
-
e.push(
|
|
4571
|
+
}, n = this.handleComputeArc(t.geometry.coordinates, s, { ...t.properties, level: 10 });
|
|
4572
|
+
e.push(n);
|
|
4081
4573
|
}
|
|
4082
4574
|
return e;
|
|
4083
4575
|
},
|
|
4084
4576
|
handleComputeArc(a, e, t) {
|
|
4085
4577
|
var o;
|
|
4086
4578
|
const r = [];
|
|
4087
|
-
for (const
|
|
4088
|
-
const
|
|
4579
|
+
for (const s in e) {
|
|
4580
|
+
const n = e[s] ?? 0;
|
|
4089
4581
|
let c;
|
|
4090
|
-
switch (
|
|
4582
|
+
switch (s) {
|
|
4091
4583
|
case "ne":
|
|
4092
|
-
c =
|
|
4584
|
+
c = L.lineArc(a, n * 1.852, 0, 90, { steps: n > 0 ? 64 : 1 });
|
|
4093
4585
|
break;
|
|
4094
4586
|
case "se":
|
|
4095
|
-
c =
|
|
4587
|
+
c = L.lineArc(a, n * 1.852, 90, 180, { steps: n > 0 ? 64 : 1 });
|
|
4096
4588
|
break;
|
|
4097
4589
|
case "sw":
|
|
4098
|
-
c =
|
|
4590
|
+
c = L.lineArc(a, n * 1.852, 180, 270, { steps: n > 0 ? 64 : 1 });
|
|
4099
4591
|
break;
|
|
4100
4592
|
case "nw":
|
|
4101
|
-
c =
|
|
4593
|
+
c = L.lineArc(a, n * 1.852, 270, 360, { steps: n > 0 ? 64 : 1 });
|
|
4102
4594
|
break;
|
|
4103
4595
|
}
|
|
4104
4596
|
r.push(...(o = c == null ? void 0 : c.geometry) == null ? void 0 : o.coordinates);
|
|
4105
4597
|
}
|
|
4106
|
-
const i =
|
|
4107
|
-
return
|
|
4598
|
+
const i = L.lineString(r);
|
|
4599
|
+
return L.lineToPolygon(i, { properties: t });
|
|
4108
4600
|
}
|
|
4109
4601
|
}
|
|
4110
|
-
},
|
|
4602
|
+
}, Ue = (a) => (H("data-v-35ea0576"), a = a(), G(), a), qa = {
|
|
4111
4603
|
id: "active-tropical",
|
|
4112
4604
|
class: "active-tropical"
|
|
4113
|
-
},
|
|
4605
|
+
}, Qa = { class: "header-box" }, Ka = { class: "main" }, ei = { key: 0 }, ti = { class: "sub" }, ai = {
|
|
4114
4606
|
id: "meteoBox",
|
|
4115
4607
|
class: "main-box"
|
|
4116
|
-
},
|
|
4608
|
+
}, ii = { class: "content" }, ri = { class: "row" }, oi = {
|
|
4117
4609
|
class: "col col-left",
|
|
4118
4610
|
style: { "justify-content": "flex-start" }
|
|
4119
|
-
},
|
|
4611
|
+
}, si = /* @__PURE__ */ Ue(() => /* @__PURE__ */ l("label", null, "Wind speed : ", -1)), ni = {
|
|
4120
4612
|
class: "col col-right",
|
|
4121
4613
|
style: { "justify-content": "flex-start" }
|
|
4122
|
-
},
|
|
4614
|
+
}, li = /* @__PURE__ */ Ue(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), ci = { class: "row" }, hi = {
|
|
4123
4615
|
class: "col col-24",
|
|
4124
4616
|
style: { "justify-content": "flex-start" }
|
|
4125
|
-
},
|
|
4126
|
-
function
|
|
4127
|
-
var
|
|
4128
|
-
return
|
|
4129
|
-
l("div",
|
|
4617
|
+
}, di = /* @__PURE__ */ Ue(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), pi = { class: "forecast-models" }, mi = ["onClick"], ui = /* @__PURE__ */ rt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-35ea0576></div><div class="row" style="padding:2px 10px;" data-v-35ea0576><div class="legend" data-v-35ea0576><div class="icon td" data-v-35ea0576></div><div class="label" data-v-35ea0576>TD</div></div><div class="legend" data-v-35ea0576><div class="icon ts" data-v-35ea0576></div><div class="label" data-v-35ea0576>TS</div></div><div class="legend" data-v-35ea0576><div class="icon sts" data-v-35ea0576></div><div class="label" data-v-35ea0576>STS</div></div><div class="legend" data-v-35ea0576><div class="icon ty" data-v-35ea0576></div><div class="label" data-v-35ea0576>TY</div></div><div class="legend" data-v-35ea0576><div class="icon sty" data-v-35ea0576></div><div class="label" data-v-35ea0576>STY</div></div><div class="legend" data-v-35ea0576><div class="icon supper-ty" data-v-35ea0576></div><div class="label" data-v-35ea0576>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-35ea0576><div class="legend" data-v-35ea0576><div class="icon history" data-v-35ea0576></div><div class="label" data-v-35ea0576>History</div></div><div class="legend" data-v-35ea0576><div class="icon r7" data-v-35ea0576></div><div class="label" data-v-35ea0576>35kts Radii</div></div><div class="legend" data-v-35ea0576><div class="icon r10" data-v-35ea0576></div><div class="label" data-v-35ea0576>50kts Radii</div></div></div>', 3), yi = { class: "more" };
|
|
4618
|
+
function fi(a, e, t, r, i, o) {
|
|
4619
|
+
var s, n, c, d, h, p, g, u, y, f, m, v, b, _, z;
|
|
4620
|
+
return je((x(), C("div", qa, [
|
|
4621
|
+
l("div", Qa, [
|
|
4130
4622
|
l("div", {
|
|
4131
4623
|
class: "iconfont close-btn",
|
|
4132
|
-
onClick: e[0] || (e[0] = (
|
|
4624
|
+
onClick: e[0] || (e[0] = (w) => i.showTropicals = !1)
|
|
4133
4625
|
}, ""),
|
|
4134
|
-
l("div",
|
|
4135
|
-
(
|
|
4136
|
-
|
|
4626
|
+
l("div", Ka, [
|
|
4627
|
+
(n = (s = i.activeTropicals) == null ? void 0 : s.history) != null && n.level ? (x(), C("span", ei, S((d = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : d.level) + " , ", 1)) : B("", !0),
|
|
4628
|
+
Fe(S((h = i.activeTropicals) == null ? void 0 : h.name), 1)
|
|
4137
4629
|
]),
|
|
4138
|
-
l("div",
|
|
4630
|
+
l("div", ti, " Last update: " + S(o.computeTime(((g = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : g.updated) || ((f = (y = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : y.filter((w) => !w.disabled)[0]) == null ? void 0 : f.date))), 1)
|
|
4139
4631
|
]),
|
|
4140
|
-
l("div",
|
|
4141
|
-
l("div",
|
|
4142
|
-
l("div",
|
|
4143
|
-
l("div",
|
|
4144
|
-
|
|
4632
|
+
l("div", ai, [
|
|
4633
|
+
l("div", ii, [
|
|
4634
|
+
l("div", ri, [
|
|
4635
|
+
l("div", oi, [
|
|
4636
|
+
si,
|
|
4145
4637
|
l("span", null, S(((v = (m = i.activeTropicals) == null ? void 0 : m.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
|
|
4146
4638
|
]),
|
|
4147
|
-
l("div",
|
|
4148
|
-
|
|
4149
|
-
l("span", null, S(((
|
|
4639
|
+
l("div", ni, [
|
|
4640
|
+
li,
|
|
4641
|
+
l("span", null, S(((_ = (b = i.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : _.pressure) || "-") + "[hPa]", 1)
|
|
4150
4642
|
])
|
|
4151
4643
|
]),
|
|
4152
|
-
l("div",
|
|
4153
|
-
l("div",
|
|
4154
|
-
|
|
4155
|
-
l("div",
|
|
4156
|
-
(x(!0),
|
|
4157
|
-
var
|
|
4158
|
-
return x(),
|
|
4159
|
-
key:
|
|
4160
|
-
class:
|
|
4644
|
+
l("div", ci, [
|
|
4645
|
+
l("div", hi, [
|
|
4646
|
+
di,
|
|
4647
|
+
l("div", pi, [
|
|
4648
|
+
(x(!0), C(Ae, null, $e((z = i.activeTropicals) == null ? void 0 : z.forecasts, (w, A) => {
|
|
4649
|
+
var M, $, W, O;
|
|
4650
|
+
return x(), C("div", {
|
|
4651
|
+
key: A,
|
|
4652
|
+
class: j([
|
|
4161
4653
|
"model",
|
|
4162
|
-
|
|
4163
|
-
|
|
4654
|
+
w.disabled ? "" : "active",
|
|
4655
|
+
A > 0 && A < (($ = (M = i.activeTropicals) == null ? void 0 : M.forecasts) == null ? void 0 : $.length) - 1 && ((O = (W = i.activeTropicals) == null ? void 0 : W.forecasts) == null ? void 0 : O.length) > 2 ? "center-child" : ""
|
|
4164
4656
|
]),
|
|
4165
|
-
onClick: (
|
|
4657
|
+
onClick: (J) => o.handleForecastToggle(w)
|
|
4166
4658
|
}, [
|
|
4167
4659
|
l("span", {
|
|
4168
|
-
class:
|
|
4169
|
-
}, S(
|
|
4170
|
-
], 10,
|
|
4660
|
+
class: j(w.model)
|
|
4661
|
+
}, S(w.model), 3)
|
|
4662
|
+
], 10, mi);
|
|
4171
4663
|
}), 128))
|
|
4172
4664
|
])
|
|
4173
4665
|
])
|
|
4174
4666
|
]),
|
|
4175
|
-
|
|
4667
|
+
ui
|
|
4176
4668
|
]),
|
|
4177
|
-
l("div",
|
|
4669
|
+
l("div", yi, [
|
|
4178
4670
|
l("div", {
|
|
4179
4671
|
class: "button",
|
|
4180
|
-
onClick: e[1] || (e[1] = (
|
|
4672
|
+
onClick: e[1] || (e[1] = (w) => o.handleStrikeProbability(i.activeTropicals))
|
|
4181
4673
|
}, "Strike Probability >>")
|
|
4182
4674
|
])
|
|
4183
4675
|
])
|
|
4184
4676
|
], 512)), [
|
|
4185
|
-
[
|
|
4677
|
+
[Ne, i.showTropicals && !a.$attrs.hideTropicalsLegend]
|
|
4186
4678
|
]);
|
|
4187
4679
|
}
|
|
4188
|
-
const
|
|
4189
|
-
const
|
|
4680
|
+
const Ke = /* @__PURE__ */ T(Ya, [["render", fi], ["__scopeId", "data-v-35ea0576"]]);
|
|
4681
|
+
const gi = {
|
|
4190
4682
|
name: "IdmPrecip3h",
|
|
4191
4683
|
props: {
|
|
4192
4684
|
factor: {
|
|
@@ -4214,7 +4706,7 @@ const ca = {
|
|
|
4214
4706
|
texture: void 0,
|
|
4215
4707
|
rampColor: void 0,
|
|
4216
4708
|
aPositionBuffer: void 0,
|
|
4217
|
-
webgl: new
|
|
4709
|
+
webgl: new Le(),
|
|
4218
4710
|
etime: void 0,
|
|
4219
4711
|
right: 10
|
|
4220
4712
|
};
|
|
@@ -4287,27 +4779,27 @@ const ca = {
|
|
|
4287
4779
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4288
4780
|
}
|
|
4289
4781
|
}
|
|
4290
|
-
},
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4782
|
+
}, ce = (a) => (H("data-v-9708a7a3"), a = a(), G(), a), bi = { key: 0 }, vi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "mm", -1)), wi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), _i = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "2", -1)), Li = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "3", -1)), xi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "7", -1)), Ci = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "10", -1)), ki = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "20", -1)), Si = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "30", -1)), zi = [
|
|
4783
|
+
vi,
|
|
4784
|
+
wi,
|
|
4785
|
+
_i,
|
|
4786
|
+
Li,
|
|
4787
|
+
xi,
|
|
4788
|
+
Ci,
|
|
4789
|
+
ki,
|
|
4790
|
+
Si
|
|
4791
|
+
];
|
|
4792
|
+
function Pi(a, e, t, r, i, o) {
|
|
4793
|
+
var s;
|
|
4794
|
+
return (s = t.factor) != null && s.active ? (x(), C("div", bi, [
|
|
4294
4795
|
l("div", {
|
|
4295
4796
|
class: "legend-bars flex-center",
|
|
4296
|
-
style:
|
|
4297
|
-
},
|
|
4298
|
-
l("span", null, "mm", -1),
|
|
4299
|
-
l("span", null, "1.5", -1),
|
|
4300
|
-
l("span", null, "2", -1),
|
|
4301
|
-
l("span", null, "3", -1),
|
|
4302
|
-
l("span", null, "7", -1),
|
|
4303
|
-
l("span", null, "10", -1),
|
|
4304
|
-
l("span", null, "20", -1),
|
|
4305
|
-
l("span", null, "30", -1)
|
|
4306
|
-
]), 4)
|
|
4797
|
+
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4798
|
+
}, zi, 4)
|
|
4307
4799
|
])) : B("", !0);
|
|
4308
4800
|
}
|
|
4309
|
-
const
|
|
4310
|
-
const
|
|
4801
|
+
const Ti = /* @__PURE__ */ T(gi, [["render", Pi], ["__scopeId", "data-v-9708a7a3"]]);
|
|
4802
|
+
const Ii = {
|
|
4311
4803
|
name: "IdmVisibility",
|
|
4312
4804
|
props: {
|
|
4313
4805
|
factor: {
|
|
@@ -4335,7 +4827,7 @@ const ma = {
|
|
|
4335
4827
|
texture: void 0,
|
|
4336
4828
|
rampColor: void 0,
|
|
4337
4829
|
aPositionBuffer: void 0,
|
|
4338
|
-
webgl: new
|
|
4830
|
+
webgl: new Le(),
|
|
4339
4831
|
etime: void 0
|
|
4340
4832
|
};
|
|
4341
4833
|
},
|
|
@@ -4401,25 +4893,25 @@ const ma = {
|
|
|
4401
4893
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4402
4894
|
}
|
|
4403
4895
|
}
|
|
4404
|
-
},
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4896
|
+
}, ke = (a) => (H("data-v-f7b2fb08"), a = a(), G(), a), Ei = { key: 0 }, Ri = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "nm", -1)), Ai = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "0", -1)), Di = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Mi = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "1.5", -1)), $i = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "3", -1)), ji = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "9", -1)), Ni = [
|
|
4897
|
+
Ri,
|
|
4898
|
+
Ai,
|
|
4899
|
+
Di,
|
|
4900
|
+
Mi,
|
|
4901
|
+
$i,
|
|
4902
|
+
ji
|
|
4903
|
+
];
|
|
4904
|
+
function Bi(a, e, t, r, i, o) {
|
|
4905
|
+
var s;
|
|
4906
|
+
return (s = t.factor) != null && s.active ? (x(), C("div", Ei, [
|
|
4408
4907
|
l("div", {
|
|
4409
4908
|
class: "legend-bars flex-center",
|
|
4410
|
-
style:
|
|
4411
|
-
},
|
|
4412
|
-
l("span", null, "nm", -1),
|
|
4413
|
-
l("span", null, "0", -1),
|
|
4414
|
-
l("span", null, "0.5", -1),
|
|
4415
|
-
l("span", null, "1.5", -1),
|
|
4416
|
-
l("span", null, "3", -1),
|
|
4417
|
-
l("span", null, "9", -1)
|
|
4418
|
-
]), 4)
|
|
4909
|
+
style: U([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
4910
|
+
}, Ni, 4)
|
|
4419
4911
|
])) : B("", !0);
|
|
4420
4912
|
}
|
|
4421
|
-
const
|
|
4422
|
-
const
|
|
4913
|
+
const Wi = /* @__PURE__ */ T(Ii, [["render", Bi], ["__scopeId", "data-v-f7b2fb08"]]);
|
|
4914
|
+
const Oi = {
|
|
4423
4915
|
name: "IdmWaterTemp",
|
|
4424
4916
|
props: {
|
|
4425
4917
|
factor: {
|
|
@@ -4447,7 +4939,7 @@ const ga = {
|
|
|
4447
4939
|
texture: void 0,
|
|
4448
4940
|
rampColor: void 0,
|
|
4449
4941
|
aPositionBuffer: void 0,
|
|
4450
|
-
webgl: new
|
|
4942
|
+
webgl: new Le(),
|
|
4451
4943
|
etime: void 0,
|
|
4452
4944
|
right: 10
|
|
4453
4945
|
};
|
|
@@ -4521,25 +5013,25 @@ const ga = {
|
|
|
4521
5013
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4522
5014
|
}
|
|
4523
5015
|
}
|
|
4524
|
-
},
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
5016
|
+
}, Se = (a) => (H("data-v-7521f582"), a = a(), G(), a), Fi = { key: 0 }, Vi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ui = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "0", -1)), Zi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "10", -1)), Hi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "20", -1)), Gi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "30", -1)), Ji = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "40", -1)), Xi = [
|
|
5017
|
+
Vi,
|
|
5018
|
+
Ui,
|
|
5019
|
+
Zi,
|
|
5020
|
+
Hi,
|
|
5021
|
+
Gi,
|
|
5022
|
+
Ji
|
|
5023
|
+
];
|
|
5024
|
+
function Yi(a, e, t, r, i, o) {
|
|
5025
|
+
var s;
|
|
5026
|
+
return (s = t.factor) != null && s.active ? (x(), C("div", Fi, [
|
|
4528
5027
|
l("div", {
|
|
4529
5028
|
class: "legend-bars flex-center",
|
|
4530
|
-
style:
|
|
4531
|
-
},
|
|
4532
|
-
l("span", null, "°C", -1),
|
|
4533
|
-
l("span", null, "0", -1),
|
|
4534
|
-
l("span", null, "10", -1),
|
|
4535
|
-
l("span", null, "20", -1),
|
|
4536
|
-
l("span", null, "30", -1),
|
|
4537
|
-
l("span", null, "40", -1)
|
|
4538
|
-
]), 4)
|
|
5029
|
+
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
5030
|
+
}, Xi, 4)
|
|
4539
5031
|
])) : B("", !0);
|
|
4540
5032
|
}
|
|
4541
|
-
const
|
|
4542
|
-
const
|
|
5033
|
+
const qi = /* @__PURE__ */ T(Oi, [["render", Yi], ["__scopeId", "data-v-7521f582"]]);
|
|
5034
|
+
const Qi = {
|
|
4543
5035
|
name: "IdmTemp",
|
|
4544
5036
|
props: {
|
|
4545
5037
|
factor: {
|
|
@@ -4567,7 +5059,7 @@ const wa = {
|
|
|
4567
5059
|
texture: void 0,
|
|
4568
5060
|
rampColor: void 0,
|
|
4569
5061
|
aPositionBuffer: void 0,
|
|
4570
|
-
webgl: new
|
|
5062
|
+
webgl: new Le(),
|
|
4571
5063
|
etime: void 0,
|
|
4572
5064
|
right: 10
|
|
4573
5065
|
};
|
|
@@ -4644,27 +5136,27 @@ const wa = {
|
|
|
4644
5136
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4645
5137
|
}
|
|
4646
5138
|
}
|
|
4647
|
-
},
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
5139
|
+
}, he = (a) => (H("data-v-25daaa82"), a = a(), G(), a), Ki = { key: 0 }, er = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "°C", -1)), tr = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-20", -1)), ar = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-10", -1)), ir = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0", -1)), rr = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "10", -1)), or = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "20", -1)), sr = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "30", -1)), nr = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "40", -1)), lr = [
|
|
5140
|
+
er,
|
|
5141
|
+
tr,
|
|
5142
|
+
ar,
|
|
5143
|
+
ir,
|
|
5144
|
+
rr,
|
|
5145
|
+
or,
|
|
5146
|
+
sr,
|
|
5147
|
+
nr
|
|
5148
|
+
];
|
|
5149
|
+
function cr(a, e, t, r, i, o) {
|
|
5150
|
+
var s;
|
|
5151
|
+
return (s = t.factor) != null && s.active ? (x(), C("div", Ki, [
|
|
4651
5152
|
l("div", {
|
|
4652
5153
|
class: "legend-bars flex-center",
|
|
4653
|
-
style:
|
|
4654
|
-
},
|
|
4655
|
-
l("span", null, "°C", -1),
|
|
4656
|
-
l("span", null, "-20", -1),
|
|
4657
|
-
l("span", null, "-10", -1),
|
|
4658
|
-
l("span", null, "0", -1),
|
|
4659
|
-
l("span", null, "10", -1),
|
|
4660
|
-
l("span", null, "20", -1),
|
|
4661
|
-
l("span", null, "30", -1),
|
|
4662
|
-
l("span", null, "40", -1)
|
|
4663
|
-
]), 4)
|
|
5154
|
+
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
5155
|
+
}, lr, 4)
|
|
4664
5156
|
])) : B("", !0);
|
|
4665
5157
|
}
|
|
4666
|
-
const
|
|
4667
|
-
const
|
|
5158
|
+
const hr = /* @__PURE__ */ T(Qi, [["render", cr], ["__scopeId", "data-v-25daaa82"]]);
|
|
5159
|
+
const dr = {
|
|
4668
5160
|
name: "IdmArctic",
|
|
4669
5161
|
props: {
|
|
4670
5162
|
factor: {
|
|
@@ -4692,7 +5184,7 @@ const Sa = {
|
|
|
4692
5184
|
texture: void 0,
|
|
4693
5185
|
rampColor: void 0,
|
|
4694
5186
|
aPositionBuffer: void 0,
|
|
4695
|
-
webgl: new
|
|
5187
|
+
webgl: new Le(),
|
|
4696
5188
|
etime: void 0,
|
|
4697
5189
|
right: 10
|
|
4698
5190
|
};
|
|
@@ -4760,25 +5252,25 @@ const Sa = {
|
|
|
4760
5252
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4761
5253
|
}
|
|
4762
5254
|
}
|
|
4763
|
-
},
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
5255
|
+
}, ze = (a) => (H("data-v-5bb73794"), a = a(), G(), a), pr = { key: 0 }, mr = /* @__PURE__ */ ze(() => /* @__PURE__ */ l("span", null, "m", -1)), ur = /* @__PURE__ */ ze(() => /* @__PURE__ */ l("span", null, "0", -1)), yr = /* @__PURE__ */ ze(() => /* @__PURE__ */ l("span", null, "0.5", -1)), fr = /* @__PURE__ */ ze(() => /* @__PURE__ */ l("span", null, "1", -1)), gr = /* @__PURE__ */ ze(() => /* @__PURE__ */ l("span", null, "1.5", -1)), br = /* @__PURE__ */ ze(() => /* @__PURE__ */ l("span", null, "2", -1)), vr = [
|
|
5256
|
+
mr,
|
|
5257
|
+
ur,
|
|
5258
|
+
yr,
|
|
5259
|
+
fr,
|
|
5260
|
+
gr,
|
|
5261
|
+
br
|
|
5262
|
+
];
|
|
5263
|
+
function wr(a, e, t, r, i, o) {
|
|
5264
|
+
var s;
|
|
5265
|
+
return (s = t.factor) != null && s.active ? (x(), C("div", pr, [
|
|
4767
5266
|
l("div", {
|
|
4768
5267
|
class: "legend-bars flex-center",
|
|
4769
|
-
style:
|
|
4770
|
-
},
|
|
4771
|
-
l("span", null, "m", -1),
|
|
4772
|
-
l("span", null, "0", -1),
|
|
4773
|
-
l("span", null, "0.5", -1),
|
|
4774
|
-
l("span", null, "1", -1),
|
|
4775
|
-
l("span", null, "1.5", -1),
|
|
4776
|
-
l("span", null, "2", -1)
|
|
4777
|
-
]), 4)
|
|
5268
|
+
style: U([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
5269
|
+
}, vr, 4)
|
|
4778
5270
|
])) : B("", !0);
|
|
4779
5271
|
}
|
|
4780
|
-
const
|
|
4781
|
-
const
|
|
5272
|
+
const _r = /* @__PURE__ */ T(dr, [["render", wr], ["__scopeId", "data-v-5bb73794"]]);
|
|
5273
|
+
const Lr = {
|
|
4782
5274
|
name: "IdmPoint",
|
|
4783
5275
|
emits: ["point", "more"],
|
|
4784
5276
|
props: {
|
|
@@ -4800,7 +5292,7 @@ const Ta = {
|
|
|
4800
5292
|
return {
|
|
4801
5293
|
showMeteo: !1,
|
|
4802
5294
|
meteoMarker: void 0,
|
|
4803
|
-
helper:
|
|
5295
|
+
helper: De
|
|
4804
5296
|
};
|
|
4805
5297
|
},
|
|
4806
5298
|
watch: {
|
|
@@ -4833,17 +5325,17 @@ const Ta = {
|
|
|
4833
5325
|
},
|
|
4834
5326
|
computeLat() {
|
|
4835
5327
|
return function(a, e = 4) {
|
|
4836
|
-
return
|
|
5328
|
+
return D.lat2pretty(a, e).pretty;
|
|
4837
5329
|
};
|
|
4838
5330
|
},
|
|
4839
5331
|
computeLng() {
|
|
4840
5332
|
return function(a, e = 4) {
|
|
4841
|
-
return
|
|
5333
|
+
return D.lng2pretty(a, e).pretty;
|
|
4842
5334
|
};
|
|
4843
5335
|
},
|
|
4844
5336
|
roundPrecision() {
|
|
4845
5337
|
return function(a, e = 4) {
|
|
4846
|
-
return isNaN(a) ? "-" :
|
|
5338
|
+
return isNaN(a) ? "-" : D.roundPrecision(a, e);
|
|
4847
5339
|
};
|
|
4848
5340
|
}
|
|
4849
5341
|
},
|
|
@@ -4861,71 +5353,71 @@ const Ta = {
|
|
|
4861
5353
|
var a;
|
|
4862
5354
|
if (this.meteo) {
|
|
4863
5355
|
const e = document.getElementById("point-meteo");
|
|
4864
|
-
this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new
|
|
5356
|
+
this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new te.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
|
|
4865
5357
|
}
|
|
4866
5358
|
}
|
|
4867
5359
|
}
|
|
4868
|
-
},
|
|
5360
|
+
}, ae = (a) => (H("data-v-d13117a4"), a = a(), G(), a), xr = {
|
|
4869
5361
|
id: "point-meteo",
|
|
4870
5362
|
class: "point-meteo"
|
|
4871
|
-
},
|
|
4872
|
-
function
|
|
4873
|
-
var
|
|
4874
|
-
return
|
|
4875
|
-
l("div",
|
|
4876
|
-
l("div",
|
|
5363
|
+
}, Cr = { class: "meteo-box" }, kr = { class: "header-box" }, Sr = { class: "main" }, zr = { class: "sub" }, Pr = { class: "main-box" }, Tr = { class: "flex-space" }, Ir = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Er = { class: "flex-space" }, Rr = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), Ar = { class: "flex-space" }, Dr = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Mr = { class: "flex-space" }, $r = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), jr = { class: "flex-space" }, Nr = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Current", -1)), Br = { class: "flex-space" }, Wr = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Or = { class: "flex-space" }, Fr = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Vr = { class: "flex-space" }, Ur = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Zr = { class: "flex-space" }, Hr = /* @__PURE__ */ ae(() => /* @__PURE__ */ l("label", null, "Water Temp", -1));
|
|
5364
|
+
function Gr(a, e, t, r, i, o) {
|
|
5365
|
+
var s, n, c, d, h, p, g, u, y, f, m, v, b, _, z, w, A, M, $, W, O, J, de, pe, me, ue, ye, fe, ge, ie, X, Y, be, q, I, F, ve, Q, we, re, oe, se, Pe, Te, Ie, Ee, Re;
|
|
5366
|
+
return je((x(), C("div", xr, [
|
|
5367
|
+
l("div", Cr, [
|
|
5368
|
+
l("div", kr, [
|
|
4877
5369
|
l("div", {
|
|
4878
5370
|
class: "iconfont close",
|
|
4879
|
-
onClick: e[0] || (e[0] = (
|
|
5371
|
+
onClick: e[0] || (e[0] = (We) => i.showMeteo = !1)
|
|
4880
5372
|
}, ""),
|
|
4881
|
-
l("div",
|
|
4882
|
-
l("div",
|
|
5373
|
+
l("div", Sr, S(o.computeLat((s = t.meteo) == null ? void 0 : s.lat)) + "," + S(o.computeLng((n = t.meteo) == null ? void 0 : n.lng)), 1),
|
|
5374
|
+
l("div", zr, S(o.computeTime((c = t.meteo) == null ? void 0 : c.utc)), 1)
|
|
4883
5375
|
]),
|
|
4884
|
-
l("div",
|
|
4885
|
-
l("div",
|
|
4886
|
-
|
|
4887
|
-
l("span", null, S(((
|
|
5376
|
+
l("div", Pr, [
|
|
5377
|
+
l("div", Tr, [
|
|
5378
|
+
Ir,
|
|
5379
|
+
l("span", null, S(((h = (d = t.meteo) == null ? void 0 : d.wind) == null ? void 0 : h.direction) || "-") + "/" + S(o.roundPrecision((g = (p = t.meteo) == null ? void 0 : p.wind) == null ? void 0 : g.kts, 1)) + "[kts]/" + S((y = (u = t.meteo) == null ? void 0 : u.wind) == null ? void 0 : y.scale) + "[BF]/" + S(o.roundPrecision((m = (f = t.meteo) == null ? void 0 : f.gusts) == null ? void 0 : m.kts, 1)) + "[kts]", 1)
|
|
4888
5380
|
]),
|
|
4889
|
-
l("div",
|
|
4890
|
-
|
|
4891
|
-
l("span", null, S(((
|
|
5381
|
+
l("div", Er, [
|
|
5382
|
+
Rr,
|
|
5383
|
+
l("span", null, S(((_ = (b = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : _.direction) || "-") + "/" + S(o.roundPrecision((A = (w = (z = t.meteo) == null ? void 0 : z.wave) == null ? void 0 : w.wd) == null ? void 0 : A.height, 1)) + "[m]/" + S(o.roundPrecision((W = ($ = (M = t.meteo) == null ? void 0 : M.wave) == null ? void 0 : $.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
|
|
4892
5384
|
]),
|
|
4893
|
-
l("div",
|
|
4894
|
-
|
|
4895
|
-
l("span", null, S(((
|
|
5385
|
+
l("div", Ar, [
|
|
5386
|
+
Dr,
|
|
5387
|
+
l("span", null, S(((de = (J = (O = t.meteo) == null ? void 0 : O.wave) == null ? void 0 : J.swell) == null ? void 0 : de.direction) || "-") + "/" + S(o.roundPrecision((ue = (me = (pe = t.meteo) == null ? void 0 : pe.wave) == null ? void 0 : me.swell) == null ? void 0 : ue.height, 1)) + "[m]/" + S(o.roundPrecision((ge = (fe = (ye = t.meteo) == null ? void 0 : ye.wave) == null ? void 0 : fe.swell) == null ? void 0 : ge.period, 1)) + "[s]", 1)
|
|
4896
5388
|
]),
|
|
4897
|
-
l("div",
|
|
4898
|
-
|
|
4899
|
-
l("span", null, S(((
|
|
5389
|
+
l("div", Mr, [
|
|
5390
|
+
$r,
|
|
5391
|
+
l("span", null, S(((Y = (X = (ie = t.meteo) == null ? void 0 : ie.wave) == null ? void 0 : X.sig) == null ? void 0 : Y.direction) || "-") + "/" + S(o.roundPrecision((I = (q = (be = t.meteo) == null ? void 0 : be.wave) == null ? void 0 : q.sig) == null ? void 0 : I.height, 1)) + "[m]/" + S(o.roundPrecision((Q = (ve = (F = t.meteo) == null ? void 0 : F.wave) == null ? void 0 : ve.sig) == null ? void 0 : Q.period, 1)) + "[s]", 1)
|
|
4900
5392
|
]),
|
|
4901
|
-
l("div",
|
|
4902
|
-
|
|
4903
|
-
l("span", null, S(((
|
|
5393
|
+
l("div", jr, [
|
|
5394
|
+
Nr,
|
|
5395
|
+
l("span", null, S(((re = (we = t.meteo) == null ? void 0 : we.current) == null ? void 0 : re.direction) || "-") + "/" + S(o.roundPrecision((se = (oe = t.meteo) == null ? void 0 : oe.current) == null ? void 0 : se.kts, 2)) + "[kts]", 1)
|
|
4904
5396
|
]),
|
|
4905
|
-
l("div",
|
|
4906
|
-
|
|
4907
|
-
l("span", null, S(o.roundPrecision((
|
|
5397
|
+
l("div", Br, [
|
|
5398
|
+
Wr,
|
|
5399
|
+
l("span", null, S(o.roundPrecision((Te = (Pe = t.meteo) == null ? void 0 : Pe.precip) == null ? void 0 : Te.inter6h, 2)) + "[mm]", 1)
|
|
4908
5400
|
]),
|
|
4909
|
-
l("div",
|
|
4910
|
-
|
|
4911
|
-
l("span", null, S(o.roundPrecision(((
|
|
5401
|
+
l("div", Or, [
|
|
5402
|
+
Fr,
|
|
5403
|
+
l("span", null, S(o.roundPrecision(((Ie = t.meteo) == null ? void 0 : Ie.visibility) / 1852, 0)) + "[nm]", 1)
|
|
4912
5404
|
]),
|
|
4913
|
-
l("div",
|
|
4914
|
-
|
|
4915
|
-
l("span", null, S(o.roundPrecision((
|
|
5405
|
+
l("div", Vr, [
|
|
5406
|
+
Ur,
|
|
5407
|
+
l("span", null, S(o.roundPrecision((Ee = t.meteo) == null ? void 0 : Ee.temp, 0)) + "[°C]", 1)
|
|
4916
5408
|
]),
|
|
4917
|
-
l("div",
|
|
4918
|
-
|
|
4919
|
-
l("span", null, S(o.roundPrecision((
|
|
5409
|
+
l("div", Zr, [
|
|
5410
|
+
Hr,
|
|
5411
|
+
l("span", null, S(o.roundPrecision((Re = t.meteo) == null ? void 0 : Re.waterTemp, 2)) + "[°C]", 1)
|
|
4920
5412
|
])
|
|
4921
5413
|
]),
|
|
4922
5414
|
B("", !0)
|
|
4923
5415
|
])
|
|
4924
5416
|
], 512)), [
|
|
4925
|
-
[
|
|
5417
|
+
[Ne, i.showMeteo]
|
|
4926
5418
|
]);
|
|
4927
5419
|
}
|
|
4928
|
-
const
|
|
5420
|
+
const Jr = /* @__PURE__ */ T(Lr, [["render", Gr], ["__scopeId", "data-v-d13117a4"]]), Xr = {
|
|
4929
5421
|
name: "IdmWarZone",
|
|
4930
5422
|
props: {
|
|
4931
5423
|
map: {
|
|
@@ -5015,10 +5507,10 @@ const Ha = /* @__PURE__ */ T(Ta, [["render", Za], ["__scopeId", "data-v-d5a13fce
|
|
|
5015
5507
|
}
|
|
5016
5508
|
}
|
|
5017
5509
|
};
|
|
5018
|
-
function
|
|
5019
|
-
return x(),
|
|
5510
|
+
function Yr(a, e, t, r, i, o) {
|
|
5511
|
+
return x(), C("div");
|
|
5020
5512
|
}
|
|
5021
|
-
const
|
|
5513
|
+
const qr = /* @__PURE__ */ T(Xr, [["render", Yr]]), Qr = {
|
|
5022
5514
|
name: "IdmGmdssArea",
|
|
5023
5515
|
props: {
|
|
5024
5516
|
map: {
|
|
@@ -5138,10 +5630,10 @@ const Xa = /* @__PURE__ */ T(Ga, [["render", Ja]]), qa = {
|
|
|
5138
5630
|
}
|
|
5139
5631
|
}
|
|
5140
5632
|
};
|
|
5141
|
-
function
|
|
5142
|
-
return x(),
|
|
5633
|
+
function Kr(a, e, t, r, i, o) {
|
|
5634
|
+
return x(), C("div");
|
|
5143
5635
|
}
|
|
5144
|
-
const
|
|
5636
|
+
const eo = /* @__PURE__ */ T(Qr, [["render", Kr]]), to = {
|
|
5145
5637
|
name: "IdmEcaZone",
|
|
5146
5638
|
props: {
|
|
5147
5639
|
map: {
|
|
@@ -5229,11 +5721,11 @@ const Qa = /* @__PURE__ */ T(qa, [["render", Ya]]), Ka = {
|
|
|
5229
5721
|
}
|
|
5230
5722
|
}
|
|
5231
5723
|
};
|
|
5232
|
-
function
|
|
5233
|
-
return x(),
|
|
5724
|
+
function ao(a, e, t, r, i, o) {
|
|
5725
|
+
return x(), C("div");
|
|
5234
5726
|
}
|
|
5235
|
-
const
|
|
5236
|
-
const
|
|
5727
|
+
const io = /* @__PURE__ */ T(to, [["render", ao]]);
|
|
5728
|
+
const ro = {
|
|
5237
5729
|
name: "IdmAlertZone",
|
|
5238
5730
|
props: {
|
|
5239
5731
|
map: {
|
|
@@ -5276,7 +5768,7 @@ const ai = {
|
|
|
5276
5768
|
if (t) {
|
|
5277
5769
|
this.showZone = !0, this.form = { ...t.properties };
|
|
5278
5770
|
const i = document.getElementById("idm-gl3-zone-info");
|
|
5279
|
-
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new
|
|
5771
|
+
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new te.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
|
|
5280
5772
|
}
|
|
5281
5773
|
},
|
|
5282
5774
|
handleRender() {
|
|
@@ -5363,24 +5855,24 @@ const ai = {
|
|
|
5363
5855
|
this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
5364
5856
|
}
|
|
5365
5857
|
}
|
|
5366
|
-
},
|
|
5367
|
-
function
|
|
5368
|
-
var
|
|
5369
|
-
return
|
|
5858
|
+
}, oo = { id: "idm-gl3-zone-info" }, so = ["innerHTML"];
|
|
5859
|
+
function no(a, e, t, r, i, o) {
|
|
5860
|
+
var s;
|
|
5861
|
+
return je((x(), C("div", oo, [
|
|
5370
5862
|
l("div", {
|
|
5371
5863
|
class: "iconfont close",
|
|
5372
|
-
onClick: e[0] || (e[0] = (
|
|
5864
|
+
onClick: e[0] || (e[0] = (n) => i.showZone = !1)
|
|
5373
5865
|
}, ""),
|
|
5374
5866
|
l("div", {
|
|
5375
5867
|
class: "rich-context",
|
|
5376
|
-
innerHTML: (
|
|
5377
|
-
}, null, 8,
|
|
5868
|
+
innerHTML: (s = i.form) == null ? void 0 : s.name
|
|
5869
|
+
}, null, 8, so)
|
|
5378
5870
|
], 512)), [
|
|
5379
|
-
[
|
|
5871
|
+
[Ne, i.showZone]
|
|
5380
5872
|
]);
|
|
5381
5873
|
}
|
|
5382
|
-
const
|
|
5383
|
-
const
|
|
5874
|
+
const lo = /* @__PURE__ */ T(ro, [["render", no]]);
|
|
5875
|
+
const co = {
|
|
5384
5876
|
name: "IdmPort",
|
|
5385
5877
|
props: {
|
|
5386
5878
|
map: {
|
|
@@ -5406,12 +5898,12 @@ const ni = {
|
|
|
5406
5898
|
computed: {
|
|
5407
5899
|
computeLat() {
|
|
5408
5900
|
return function(a) {
|
|
5409
|
-
return
|
|
5901
|
+
return D.lat2pretty(a, 4).pretty;
|
|
5410
5902
|
};
|
|
5411
5903
|
},
|
|
5412
5904
|
computeLng() {
|
|
5413
5905
|
return function(a) {
|
|
5414
|
-
return
|
|
5906
|
+
return D.lng2pretty(a, 4).pretty;
|
|
5415
5907
|
};
|
|
5416
5908
|
}
|
|
5417
5909
|
},
|
|
@@ -5433,7 +5925,7 @@ const ni = {
|
|
|
5433
5925
|
if (t) {
|
|
5434
5926
|
this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
|
|
5435
5927
|
const i = document.getElementById("port-info");
|
|
5436
|
-
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new
|
|
5928
|
+
this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new te.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
5437
5929
|
}
|
|
5438
5930
|
},
|
|
5439
5931
|
handleEmit() {
|
|
@@ -5472,41 +5964,41 @@ const ni = {
|
|
|
5472
5964
|
this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
5473
5965
|
}
|
|
5474
5966
|
}
|
|
5475
|
-
},
|
|
5967
|
+
}, Be = (a) => (H("data-v-035470f6"), a = a(), G(), a), ho = { id: "port-info" }, po = { class: "port-box" }, mo = { class: "flex-start" }, uo = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), yo = { class: "flex-start" }, fo = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), go = { class: "flex-start" }, bo = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), vo = {
|
|
5476
5968
|
class: "flex-start",
|
|
5477
5969
|
style: { "align-items": "flex-start" }
|
|
5478
|
-
};
|
|
5479
|
-
function
|
|
5480
|
-
return
|
|
5970
|
+
}, wo = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
|
|
5971
|
+
function _o(a, e, t, r, i, o) {
|
|
5972
|
+
return je((x(), C("div", ho, [
|
|
5481
5973
|
l("div", {
|
|
5482
5974
|
class: "close iconfont",
|
|
5483
|
-
onClick: e[0] || (e[0] = (
|
|
5975
|
+
onClick: e[0] || (e[0] = (s) => i.showPort = !1)
|
|
5484
5976
|
}, ""),
|
|
5485
|
-
l("div",
|
|
5486
|
-
l("div",
|
|
5487
|
-
|
|
5977
|
+
l("div", po, [
|
|
5978
|
+
l("div", mo, [
|
|
5979
|
+
uo,
|
|
5488
5980
|
l("span", {
|
|
5489
|
-
onClick: e[1] || (e[1] = (...
|
|
5981
|
+
onClick: e[1] || (e[1] = (...s) => o.handleEmit && o.handleEmit(...s))
|
|
5490
5982
|
}, S(i.form.name), 1)
|
|
5491
5983
|
]),
|
|
5492
|
-
l("div",
|
|
5493
|
-
|
|
5984
|
+
l("div", yo, [
|
|
5985
|
+
fo,
|
|
5494
5986
|
l("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
|
|
5495
5987
|
]),
|
|
5496
|
-
l("div",
|
|
5497
|
-
|
|
5988
|
+
l("div", go, [
|
|
5989
|
+
bo,
|
|
5498
5990
|
l("span", null, S(i.form.loCode || "-"), 1)
|
|
5499
5991
|
]),
|
|
5500
|
-
l("div",
|
|
5501
|
-
|
|
5992
|
+
l("div", vo, [
|
|
5993
|
+
wo,
|
|
5502
5994
|
l("span", null, S(i.form.zoneName || "-"), 1)
|
|
5503
5995
|
])
|
|
5504
5996
|
])
|
|
5505
5997
|
], 512)), [
|
|
5506
|
-
[
|
|
5998
|
+
[Ne, i.showPort]
|
|
5507
5999
|
]);
|
|
5508
6000
|
}
|
|
5509
|
-
const
|
|
6001
|
+
const Lo = /* @__PURE__ */ T(co, [["render", _o], ["__scopeId", "data-v-035470f6"]]), xo = {
|
|
5510
6002
|
name: "IdmLoadLine",
|
|
5511
6003
|
props: {
|
|
5512
6004
|
map: {
|
|
@@ -5576,10 +6068,10 @@ const yi = /* @__PURE__ */ T(ni, [["render", ui], ["__scopeId", "data-v-035470f6
|
|
|
5576
6068
|
}
|
|
5577
6069
|
}
|
|
5578
6070
|
};
|
|
5579
|
-
function
|
|
5580
|
-
return x(),
|
|
6071
|
+
function Co(a, e, t, r, i, o) {
|
|
6072
|
+
return x(), C("div");
|
|
5581
6073
|
}
|
|
5582
|
-
const
|
|
6074
|
+
const ko = /* @__PURE__ */ T(xo, [["render", Co]]), So = {
|
|
5583
6075
|
name: "IdmTimezone",
|
|
5584
6076
|
props: {
|
|
5585
6077
|
map: {
|
|
@@ -5744,10 +6236,10 @@ const bi = /* @__PURE__ */ T(fi, [["render", gi]]), vi = {
|
|
|
5744
6236
|
}
|
|
5745
6237
|
}
|
|
5746
6238
|
};
|
|
5747
|
-
function
|
|
5748
|
-
return x(),
|
|
6239
|
+
function zo(a, e, t, r, i, o) {
|
|
6240
|
+
return x(), C("div");
|
|
5749
6241
|
}
|
|
5750
|
-
const
|
|
6242
|
+
const Po = /* @__PURE__ */ T(So, [["render", zo]]), To = {
|
|
5751
6243
|
name: "IdmVoluntaryReportingArea",
|
|
5752
6244
|
props: {
|
|
5753
6245
|
map: {
|
|
@@ -5835,10 +6327,10 @@ const wi = /* @__PURE__ */ T(vi, [["render", Li]]), xi = {
|
|
|
5835
6327
|
}
|
|
5836
6328
|
}
|
|
5837
6329
|
};
|
|
5838
|
-
function
|
|
5839
|
-
return x(),
|
|
6330
|
+
function Io(a, e, t, r, i, o) {
|
|
6331
|
+
return x(), C("div");
|
|
5840
6332
|
}
|
|
5841
|
-
const
|
|
6333
|
+
const Eo = /* @__PURE__ */ T(To, [["render", Io]]), Ro = {
|
|
5842
6334
|
name: "IdmSpecialArea",
|
|
5843
6335
|
props: {
|
|
5844
6336
|
map: {
|
|
@@ -5868,7 +6360,7 @@ const Ci = /* @__PURE__ */ T(xi, [["render", _i]]), Si = {
|
|
|
5868
6360
|
methods: {
|
|
5869
6361
|
handleRender() {
|
|
5870
6362
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
|
|
5871
|
-
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) =>
|
|
6363
|
+
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => D.convertToMonotonicLng2(e));
|
|
5872
6364
|
}), this.map.addSource(this.source, {
|
|
5873
6365
|
type: "geojson",
|
|
5874
6366
|
data: this.area
|
|
@@ -5928,10 +6420,10 @@ const Ci = /* @__PURE__ */ T(xi, [["render", _i]]), Si = {
|
|
|
5928
6420
|
}
|
|
5929
6421
|
}
|
|
5930
6422
|
};
|
|
5931
|
-
function
|
|
5932
|
-
return x(),
|
|
6423
|
+
function Ao(a, e, t, r, i, o) {
|
|
6424
|
+
return x(), C("div");
|
|
5933
6425
|
}
|
|
5934
|
-
const
|
|
6426
|
+
const Do = /* @__PURE__ */ T(Ro, [["render", Ao]]), Mo = {
|
|
5935
6427
|
name: "IdmTerminator",
|
|
5936
6428
|
props: {
|
|
5937
6429
|
map: {
|
|
@@ -5980,11 +6472,11 @@ const zi = /* @__PURE__ */ T(Si, [["render", ki]]), Pi = {
|
|
|
5980
6472
|
}
|
|
5981
6473
|
}
|
|
5982
6474
|
};
|
|
5983
|
-
function
|
|
5984
|
-
return x(),
|
|
6475
|
+
function $o(a, e, t, r, i, o) {
|
|
6476
|
+
return x(), C("div");
|
|
5985
6477
|
}
|
|
5986
|
-
const
|
|
5987
|
-
const
|
|
6478
|
+
const jo = /* @__PURE__ */ T(Mo, [["render", $o]]);
|
|
6479
|
+
const No = {
|
|
5988
6480
|
name: "IdmLatLng",
|
|
5989
6481
|
props: {
|
|
5990
6482
|
map: {
|
|
@@ -6042,7 +6534,7 @@ const Ei = {
|
|
|
6042
6534
|
this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
6043
6535
|
},
|
|
6044
6536
|
handleMouseMove(a) {
|
|
6045
|
-
const e = a.lngLat, t =
|
|
6537
|
+
const e = a.lngLat, t = D.lng2pretty(e.lng, 2), r = D.lat2pretty(e.lat, 2);
|
|
6046
6538
|
this.lngLat = { lng: t, lat: r };
|
|
6047
6539
|
},
|
|
6048
6540
|
handleComputeLatLngs() {
|
|
@@ -6091,7 +6583,7 @@ const Ei = {
|
|
|
6091
6583
|
handleZoomEnd() {
|
|
6092
6584
|
var e;
|
|
6093
6585
|
const a = this.handleComputeLatLngs();
|
|
6094
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
6586
|
+
(e = this.map) == null || e.getSource(this.source).setData(L.featureCollection(a));
|
|
6095
6587
|
},
|
|
6096
6588
|
handleRender() {
|
|
6097
6589
|
if (this.map) {
|
|
@@ -6139,19 +6631,19 @@ const Ei = {
|
|
|
6139
6631
|
(a = this.map) != null && a.getLayer(this.layer) && ((e = this.map) == null || e.removeLayer(this.layer)), (t = this.map) != null && t.getLayer(this.labelLayer) && ((r = this.map) == null || r.removeLayer(this.labelLayer)), (i = this.map) != null && i.getSource(this.source) && ((o = this.map) == null || o.removeSource(this.source));
|
|
6140
6632
|
}
|
|
6141
6633
|
}
|
|
6142
|
-
};
|
|
6143
|
-
function
|
|
6144
|
-
return i.lngLat ? (x(),
|
|
6634
|
+
}, Bo = (a) => (H("data-v-73241fe7"), a = a(), G(), a), Wo = /* @__PURE__ */ Bo(() => /* @__PURE__ */ l("span", null, ", ", -1));
|
|
6635
|
+
function Oo(a, e, t, r, i, o) {
|
|
6636
|
+
return i.lngLat ? (x(), C("div", {
|
|
6145
6637
|
key: 0,
|
|
6146
6638
|
class: "lat-lng-tip",
|
|
6147
|
-
style:
|
|
6639
|
+
style: U({ right: i.right + "px", bottom: t.bottom })
|
|
6148
6640
|
}, [
|
|
6149
6641
|
l("span", null, S(i.lngLat.lat.pretty), 1),
|
|
6150
|
-
|
|
6642
|
+
Wo,
|
|
6151
6643
|
l("span", null, S(i.lngLat.lng.pretty), 1)
|
|
6152
6644
|
], 4)) : B("", !0);
|
|
6153
6645
|
}
|
|
6154
|
-
const
|
|
6646
|
+
const et = /* @__PURE__ */ T(No, [["render", Oo], ["__scopeId", "data-v-73241fe7"]]), Fo = {
|
|
6155
6647
|
name: "IdmMeasure",
|
|
6156
6648
|
props: {
|
|
6157
6649
|
map: {
|
|
@@ -6192,13 +6684,13 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6192
6684
|
},
|
|
6193
6685
|
methods: {
|
|
6194
6686
|
handleBind() {
|
|
6195
|
-
var a, e, t, r, i, o,
|
|
6687
|
+
var a, e, t, r, i, o, s, n, c, d;
|
|
6196
6688
|
if (this.show)
|
|
6197
6689
|
(a = this.map) == null || a.getCanvas().addEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.on("mousemove", this.handleMove), (t = this.map) == null || t.on("dblclick", this.handleDblClick), (r = this.map) == null || r.on("click", this.handleClick), (i = this.map) == null || i.on("contextmenu", this.handleContextmenu), this.map && (this.map.getCanvas().style.cursor = "crosshair");
|
|
6198
6690
|
else {
|
|
6199
|
-
(o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (
|
|
6200
|
-
for (const
|
|
6201
|
-
this.handleClear(
|
|
6691
|
+
(o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (s = this.map) == null || s.off("mousemove", this.handleMove), (n = this.map) == null || n.off("dblclick", this.handleDblClick), (c = this.map) == null || c.off("click", this.handleClick), (d = this.map) == null || d.off("contextmenu", this.handleContextmenu);
|
|
6692
|
+
for (const h of this.geojson)
|
|
6693
|
+
this.handleClear(h, !0);
|
|
6202
6694
|
this.geojson = [], this.map && (this.map.getCanvas().style.cursor = "grab");
|
|
6203
6695
|
}
|
|
6204
6696
|
},
|
|
@@ -6210,14 +6702,14 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6210
6702
|
}
|
|
6211
6703
|
},
|
|
6212
6704
|
handleDrag(a) {
|
|
6213
|
-
var t, r, i, o,
|
|
6705
|
+
var t, r, i, o, s, n, c, d, h, p;
|
|
6214
6706
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
6215
6707
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6216
6708
|
const g = this.geojson.filter((m) => m.id === e.split("-")[0])[0];
|
|
6217
6709
|
this.pointMarkers[g.id].filter((m) => {
|
|
6218
6710
|
var v;
|
|
6219
6711
|
return ((v = m._element) == null ? void 0 : v.id) === e;
|
|
6220
|
-
})[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (
|
|
6712
|
+
})[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (n = (s = a.target) == null ? void 0 : s._lngLat) == null ? void 0 : n.lat]);
|
|
6221
6713
|
let y;
|
|
6222
6714
|
g.features.forEach((m, v) => {
|
|
6223
6715
|
if (m.geometry.type === "Point" && m.properties.id == e.split("-")[1]) {
|
|
@@ -6229,22 +6721,22 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6229
6721
|
this.handleTmpPointUpdate(
|
|
6230
6722
|
g,
|
|
6231
6723
|
f[y - 1],
|
|
6232
|
-
{ lng: (
|
|
6724
|
+
{ lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat, properties: f[y].properties },
|
|
6233
6725
|
y === f.length - 1 ? void 0 : f[y + 1]
|
|
6234
6726
|
);
|
|
6235
6727
|
}
|
|
6236
6728
|
},
|
|
6237
6729
|
handleDragEnd(a) {
|
|
6238
|
-
var t, r, i, o,
|
|
6730
|
+
var t, r, i, o, s, n, c, d, h, p;
|
|
6239
6731
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
6240
6732
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6241
6733
|
const g = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
|
|
6242
6734
|
this.pointMarkers[g.id].filter((f) => {
|
|
6243
6735
|
var m;
|
|
6244
6736
|
return ((m = f._element) == null ? void 0 : m.id) === e;
|
|
6245
|
-
})[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (
|
|
6737
|
+
})[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (n = (s = a.target) == null ? void 0 : s._lngLat) == null ? void 0 : n.lat]);
|
|
6246
6738
|
const y = g.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
|
|
6247
|
-
y.geometry.coordinates = [(
|
|
6739
|
+
y.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat], g.features = g.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(g);
|
|
6248
6740
|
}
|
|
6249
6741
|
},
|
|
6250
6742
|
handleContextmenu(a) {
|
|
@@ -6252,27 +6744,27 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6252
6744
|
a.preventDefault(), (t = this.contextmenu) == null || t.remove();
|
|
6253
6745
|
const e = (o = (i = (r = a.originalEvent) == null ? void 0 : r.target) == null ? void 0 : i.parentElement) == null ? void 0 : o.id;
|
|
6254
6746
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
6255
|
-
const
|
|
6256
|
-
if (
|
|
6257
|
-
const
|
|
6258
|
-
|
|
6747
|
+
const n = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
|
|
6748
|
+
if (n.length > 2 && n.filter((d) => d.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
6749
|
+
const d = document.createElement("div");
|
|
6750
|
+
d.className = "point-contextmenu-marker", d.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new te.Marker(d).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
|
|
6259
6751
|
}
|
|
6260
6752
|
}
|
|
6261
6753
|
},
|
|
6262
6754
|
handleClick(a) {
|
|
6263
|
-
var t, r, i, o,
|
|
6755
|
+
var t, r, i, o, s;
|
|
6264
6756
|
(t = this.contextmenu) == null || t.remove();
|
|
6265
6757
|
const e = a.originalEvent.target.className;
|
|
6266
6758
|
if (e === "marker-close") {
|
|
6267
|
-
const
|
|
6268
|
-
c && this.handleClear(c, !0), this.geojson = this.geojson.filter((
|
|
6759
|
+
const n = (i = (r = a.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, c = this.geojson.filter((d) => d.id === n)[0];
|
|
6760
|
+
c && this.handleClear(c, !0), this.geojson = this.geojson.filter((d) => d.id !== n);
|
|
6269
6761
|
} else if (e === "del-point") {
|
|
6270
|
-
const
|
|
6271
|
-
c.features = c.features.filter((
|
|
6762
|
+
const n = (s = (o = a.originalEvent.target.id) == null ? void 0 : o.replace("del-", "")) == null ? void 0 : s.split("-"), c = this.geojson.filter((d) => d.id === n[0])[0];
|
|
6763
|
+
c.features = c.features.filter((d) => d.geometry.type === "Point" && d.properties.id !== n[1]), this.handlePointUpdate(c);
|
|
6272
6764
|
} else if (e !== "marker-label") {
|
|
6273
|
-
let
|
|
6274
|
-
|
|
6275
|
-
const c =
|
|
6765
|
+
let n = this.geojson.at(-1);
|
|
6766
|
+
n || (n = L.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((d) => d.geometry.type === "Point");
|
|
6767
|
+
const c = L.feature(
|
|
6276
6768
|
{
|
|
6277
6769
|
type: "Point",
|
|
6278
6770
|
coordinates: [a.lngLat.lng, a.lngLat.lat]
|
|
@@ -6282,7 +6774,7 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6282
6774
|
mode: this.navigation
|
|
6283
6775
|
}
|
|
6284
6776
|
);
|
|
6285
|
-
|
|
6777
|
+
n.features.push(c), this.handlePointUpdate(n);
|
|
6286
6778
|
}
|
|
6287
6779
|
},
|
|
6288
6780
|
handlePointUpdate(a) {
|
|
@@ -6291,35 +6783,35 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6291
6783
|
let t = 0;
|
|
6292
6784
|
const r = [];
|
|
6293
6785
|
for (let i = 1; i < e.length; i++) {
|
|
6294
|
-
const o = e[i - 1],
|
|
6295
|
-
t =
|
|
6786
|
+
const o = e[i - 1], s = e[i], n = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, d = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, h = ee.calculateDistance(c, d, n.mode === "RL", 2), p = ee.calculateBearing(c, d, n.mode === "RL", 2);
|
|
6787
|
+
t = D.roundPrecision(t + h, 2);
|
|
6296
6788
|
let g;
|
|
6297
|
-
|
|
6298
|
-
const u =
|
|
6299
|
-
u.properties.dist =
|
|
6789
|
+
n.mode === "RL" ? g = D.convertToMonotonicLng([c, d]) : g = D.convertToMonotonicLng(ee.interpolateCoordinates(c, d, 200));
|
|
6790
|
+
const u = L.lineString(g.map((y) => [y.lng, y.lat]));
|
|
6791
|
+
u.properties.dist = h, u.properties.bearing = p, u.properties.total = t, r.push(u);
|
|
6300
6792
|
}
|
|
6301
6793
|
e.push(...r), a.total = t;
|
|
6302
6794
|
}
|
|
6303
6795
|
return this.handleRender(a), a;
|
|
6304
6796
|
},
|
|
6305
6797
|
handleTmpPointUpdate(a, e, t, r) {
|
|
6306
|
-
const i =
|
|
6307
|
-
let o,
|
|
6798
|
+
const i = L.featureCollection([]);
|
|
6799
|
+
let o, s;
|
|
6308
6800
|
if (e) {
|
|
6309
|
-
const c = e.properties,
|
|
6310
|
-
o =
|
|
6801
|
+
const c = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
|
|
6802
|
+
o = ee.calculateDistance(d, h, c.mode === "RL", 2), s = ee.calculateBearing(d, h, c.mode === "RL", 2);
|
|
6311
6803
|
let p;
|
|
6312
|
-
c.mode === "RL" ? p =
|
|
6313
|
-
const g =
|
|
6314
|
-
g.properties.dist = o, g.properties.bearing =
|
|
6804
|
+
c.mode === "RL" ? p = D.convertToMonotonicLng([d, h]) : p = D.convertToMonotonicLng(ee.interpolateCoordinates(d, h, 200));
|
|
6805
|
+
const g = L.lineString(p.map((u) => [u.lng, u.lat]));
|
|
6806
|
+
g.properties.dist = o, g.properties.bearing = s, i.features.push(g);
|
|
6315
6807
|
}
|
|
6316
6808
|
if (r) {
|
|
6317
|
-
const c = t.properties,
|
|
6318
|
-
o =
|
|
6809
|
+
const c = t.properties, d = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
6810
|
+
o = ee.calculateDistance(d, h, c.mode === "RL", 2), s = ee.calculateBearing(d, h, c.mode === "RL", 2);
|
|
6319
6811
|
let p;
|
|
6320
|
-
c.mode === "RL" ? p =
|
|
6321
|
-
const g =
|
|
6322
|
-
g.properties.dist = o, g.properties.bearing =
|
|
6812
|
+
c.mode === "RL" ? p = D.convertToMonotonicLng([d, h]) : p = D.convertToMonotonicLng(ee.interpolateCoordinates(d, h, 200));
|
|
6813
|
+
const g = L.lineString(p.map((u) => [u.lng, u.lat]));
|
|
6814
|
+
g.properties.dist = o, g.properties.bearing = s, i.features.push(g);
|
|
6323
6815
|
}
|
|
6324
6816
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
6325
6817
|
type: "geojson",
|
|
@@ -6358,25 +6850,25 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6358
6850
|
"text-halo-blur": 0
|
|
6359
6851
|
}
|
|
6360
6852
|
});
|
|
6361
|
-
let
|
|
6362
|
-
if (r ?
|
|
6363
|
-
this.tipMarker._element.innerHTML =
|
|
6853
|
+
let n;
|
|
6854
|
+
if (r ? n = '<div class="marker-label">Drag and drop</div>' : n = `<div class="marker-label">Tol distance: <b>${D.roundPrecision((a.total ?? 0) + o, 2)}</b>nm, bearing: <b>${s}</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)
|
|
6855
|
+
this.tipMarker._element.innerHTML = n, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
6364
6856
|
else {
|
|
6365
6857
|
const c = document.createElement("div");
|
|
6366
|
-
c.className = "tip-marker", c.innerHTML =
|
|
6858
|
+
c.className = "tip-marker", c.innerHTML = n, this.tipMarker = new te.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
|
|
6367
6859
|
}
|
|
6368
6860
|
},
|
|
6369
6861
|
handleMove(a) {
|
|
6370
6862
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
6371
6863
|
let e = this.geojson.at(-1);
|
|
6372
|
-
e || (e =
|
|
6864
|
+
e || (e = L.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
6373
6865
|
const t = e.features.filter((r) => r.geometry.type === "Point");
|
|
6374
6866
|
t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
|
|
6375
6867
|
},
|
|
6376
6868
|
handleDblClick(a) {
|
|
6377
6869
|
a.preventDefault();
|
|
6378
6870
|
let e = this.geojson.at(-1);
|
|
6379
|
-
e.closed = !0, this.handleRender(e), e =
|
|
6871
|
+
e.closed = !0, this.handleRender(e), e = L.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
|
|
6380
6872
|
},
|
|
6381
6873
|
handleRender(a) {
|
|
6382
6874
|
var e;
|
|
@@ -6417,33 +6909,33 @@ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79
|
|
|
6417
6909
|
"text-halo-blur": 0
|
|
6418
6910
|
}
|
|
6419
6911
|
});
|
|
6420
|
-
const o = a.features.filter((
|
|
6421
|
-
for (const
|
|
6422
|
-
const
|
|
6423
|
-
|
|
6424
|
-
const c = new
|
|
6912
|
+
const o = a.features.filter((s) => s.geometry.type === "Point");
|
|
6913
|
+
for (const s of o) {
|
|
6914
|
+
const n = document.createElement("div");
|
|
6915
|
+
n.id = `${a.id}-${s.properties.id}`, n.className = `${a.closed ? "point-marker closed" : "point-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
|
|
6916
|
+
const c = new te.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(s.geometry.coordinates).addTo(this.map);
|
|
6425
6917
|
c.on("drag", this.handleDrag), c.on("dragend", this.handleDragEnd), this.pointMarkers[a.id] ? this.pointMarkers[a.id].push(c) : this.pointMarkers[a.id] = [c];
|
|
6426
6918
|
}
|
|
6427
6919
|
if (a.closed) {
|
|
6428
|
-
const
|
|
6429
|
-
|
|
6920
|
+
const s = o.at(-1), c = a.features.filter((h) => h.geometry.type === "LineString").at(-1), d = document.createElement("div");
|
|
6921
|
+
d.className = "point-summary-marker", d.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new te.Marker(d).setOffset([60, 0]).setLngLat(s.geometry.coordinates).addTo(this.map);
|
|
6430
6922
|
}
|
|
6431
6923
|
}
|
|
6432
6924
|
},
|
|
6433
6925
|
handleClear(a, e = !0) {
|
|
6434
|
-
var o,
|
|
6926
|
+
var o, s, n, c, d, h, p, g, u;
|
|
6435
6927
|
const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
|
|
6436
|
-
(o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (
|
|
6928
|
+
(o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (n = this.map) != null && n.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[a.id]) == null || d.remove(), this.closeMarkers[a.id] = void 0, (h = this.pointMarkers[a.id]) == null || h.forEach((y) => {
|
|
6437
6929
|
y == null || y.remove();
|
|
6438
6930
|
}), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(t)) && this.map.removeSource(t), e && ((u = this.map) != null && u.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
6439
6931
|
}
|
|
6440
6932
|
}
|
|
6441
6933
|
};
|
|
6442
|
-
function
|
|
6443
|
-
return x(),
|
|
6934
|
+
function Vo(a, e, t, r, i, o) {
|
|
6935
|
+
return x(), C("div");
|
|
6444
6936
|
}
|
|
6445
|
-
const
|
|
6446
|
-
const
|
|
6937
|
+
const Uo = /* @__PURE__ */ T(Fo, [["render", Vo]]);
|
|
6938
|
+
const Zo = {
|
|
6447
6939
|
name: "IdmENC",
|
|
6448
6940
|
props: {
|
|
6449
6941
|
map: {
|
|
@@ -6474,8 +6966,8 @@ const Bi = {
|
|
|
6474
6966
|
emits: ["enc"],
|
|
6475
6967
|
data() {
|
|
6476
6968
|
return {
|
|
6477
|
-
helper:
|
|
6478
|
-
vendor: this.$attrs.permission &
|
|
6969
|
+
helper: De,
|
|
6970
|
+
vendor: this.$attrs.permission & De.LEVEL.Supper ? "hi" : "i4",
|
|
6479
6971
|
right: 10
|
|
6480
6972
|
};
|
|
6481
6973
|
},
|
|
@@ -6495,64 +6987,64 @@ const Bi = {
|
|
|
6495
6987
|
}
|
|
6496
6988
|
},
|
|
6497
6989
|
methods: {}
|
|
6498
|
-
},
|
|
6499
|
-
|
|
6500
|
-
|
|
6990
|
+
}, tt = (a) => (H("data-v-cda8e470"), a = a(), G(), a), Ho = { key: 0 }, Go = { class: "bar-item" }, Jo = /* @__PURE__ */ tt(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), Xo = [
|
|
6991
|
+
Jo
|
|
6992
|
+
], Yo = /* @__PURE__ */ tt(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), qo = [
|
|
6993
|
+
Yo
|
|
6994
|
+
];
|
|
6995
|
+
function Qo(a, e, t, r, i, o) {
|
|
6996
|
+
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (x(), C("div", Ho, [
|
|
6501
6997
|
l("div", {
|
|
6502
6998
|
class: "menu-bar-box",
|
|
6503
|
-
style:
|
|
6999
|
+
style: U({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
6504
7000
|
}, [
|
|
6505
|
-
l("div",
|
|
7001
|
+
l("div", Go, [
|
|
6506
7002
|
l("div", {
|
|
6507
|
-
class:
|
|
6508
|
-
onClick: e[0] || (e[0] = (
|
|
6509
|
-
},
|
|
6510
|
-
l("span", { class: "iconfont" }, "HI", -1)
|
|
6511
|
-
]), 2),
|
|
7003
|
+
class: j(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
7004
|
+
onClick: e[0] || (e[0] = (s) => i.vendor = "hi")
|
|
7005
|
+
}, Xo, 2),
|
|
6512
7006
|
l("div", {
|
|
6513
|
-
class:
|
|
6514
|
-
onClick: e[1] || (e[1] = (
|
|
6515
|
-
},
|
|
6516
|
-
l("span", { class: "iconfont" }, "I4", -1)
|
|
6517
|
-
]), 2)
|
|
7007
|
+
class: j(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
7008
|
+
onClick: e[1] || (e[1] = (s) => i.vendor = "i4")
|
|
7009
|
+
}, qo, 2)
|
|
6518
7010
|
])
|
|
6519
7011
|
], 4)
|
|
6520
7012
|
])) : B("", !0);
|
|
6521
7013
|
}
|
|
6522
|
-
const
|
|
6523
|
-
const
|
|
7014
|
+
const Ko = /* @__PURE__ */ T(Zo, [["render", Qo], ["__scopeId", "data-v-cda8e470"]]);
|
|
7015
|
+
const es = {
|
|
6524
7016
|
name: "IdmGLV2",
|
|
6525
7017
|
components: {
|
|
6526
|
-
IdmGlLayer:
|
|
6527
|
-
IdmWindBarb:
|
|
6528
|
-
IdmWindParticle:
|
|
6529
|
-
IdmCurrents:
|
|
6530
|
-
IdmCurrentParticle:
|
|
6531
|
-
IdmSigWave:
|
|
6532
|
-
IdmSwell:
|
|
6533
|
-
IdmPrmsl:
|
|
7018
|
+
IdmGlLayer: Zt,
|
|
7019
|
+
IdmWindBarb: ta,
|
|
7020
|
+
IdmWindParticle: ya,
|
|
7021
|
+
IdmCurrents: ka,
|
|
7022
|
+
IdmCurrentParticle: ja,
|
|
7023
|
+
IdmSigWave: Wa,
|
|
7024
|
+
IdmSwell: Va,
|
|
7025
|
+
IdmPrmsl: Ha,
|
|
6534
7026
|
// IdmIceEdge,
|
|
6535
|
-
IdmIceberg:
|
|
6536
|
-
IdmTropicals:
|
|
6537
|
-
IdmPrecip3h:
|
|
6538
|
-
IdmVisibility:
|
|
6539
|
-
IdmWaterTemp:
|
|
6540
|
-
IdmTemp:
|
|
6541
|
-
IdmArctic:
|
|
6542
|
-
IdmWarZone:
|
|
6543
|
-
IdmGmdssArea:
|
|
6544
|
-
IdmEcaZone:
|
|
6545
|
-
IdmAlertZone:
|
|
6546
|
-
IdmPort:
|
|
6547
|
-
IdmLoadLine:
|
|
6548
|
-
IdmTimezone:
|
|
6549
|
-
IdmVRA:
|
|
6550
|
-
IdmSpecialArea:
|
|
6551
|
-
IdmTerminator:
|
|
6552
|
-
IdmLatLng:
|
|
6553
|
-
IdmMeasure:
|
|
6554
|
-
IdmPoint:
|
|
6555
|
-
IdmENC:
|
|
7027
|
+
IdmIceberg: Xa,
|
|
7028
|
+
IdmTropicals: Ke,
|
|
7029
|
+
IdmPrecip3h: Ti,
|
|
7030
|
+
IdmVisibility: Wi,
|
|
7031
|
+
IdmWaterTemp: qi,
|
|
7032
|
+
IdmTemp: hr,
|
|
7033
|
+
IdmArctic: _r,
|
|
7034
|
+
IdmWarZone: qr,
|
|
7035
|
+
IdmGmdssArea: eo,
|
|
7036
|
+
IdmEcaZone: io,
|
|
7037
|
+
IdmAlertZone: lo,
|
|
7038
|
+
IdmPort: Lo,
|
|
7039
|
+
IdmLoadLine: ko,
|
|
7040
|
+
IdmTimezone: Po,
|
|
7041
|
+
IdmVRA: Eo,
|
|
7042
|
+
IdmSpecialArea: Do,
|
|
7043
|
+
IdmTerminator: jo,
|
|
7044
|
+
IdmLatLng: et,
|
|
7045
|
+
IdmMeasure: Uo,
|
|
7046
|
+
IdmPoint: Jr,
|
|
7047
|
+
IdmENC: Ko
|
|
6556
7048
|
},
|
|
6557
7049
|
props: {
|
|
6558
7050
|
map: {
|
|
@@ -6599,7 +7091,7 @@ const Fi = {
|
|
|
6599
7091
|
enc: "",
|
|
6600
7092
|
// enc: 'i4',
|
|
6601
7093
|
defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
|
|
6602
|
-
helper: new
|
|
7094
|
+
helper: new aa()
|
|
6603
7095
|
};
|
|
6604
7096
|
},
|
|
6605
7097
|
watch: {
|
|
@@ -6613,22 +7105,22 @@ const Fi = {
|
|
|
6613
7105
|
},
|
|
6614
7106
|
map: {
|
|
6615
7107
|
handler() {
|
|
6616
|
-
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new
|
|
7108
|
+
this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Ve(this.map), this.handleRampColorInitial());
|
|
6617
7109
|
},
|
|
6618
7110
|
immediate: !0
|
|
6619
7111
|
},
|
|
6620
7112
|
enc: {
|
|
6621
7113
|
handler(a, e) {
|
|
6622
|
-
var t, r, i, o,
|
|
6623
|
-
a ? ((r = (t = this.map) == null ? void 0 : t.getLayer(a)) == null || r.setLayoutProperty("visibility", "visible"), (o = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || o.setLayoutProperty("visibility", "none")) : ((
|
|
7114
|
+
var t, r, i, o, s, n, c, d;
|
|
7115
|
+
a ? ((r = (t = this.map) == null ? void 0 : t.getLayer(a)) == null || r.setLayoutProperty("visibility", "visible"), (o = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || o.setLayoutProperty("visibility", "none")) : ((n = (s = this.map) == null ? void 0 : s.getLayer("i4")) == null || n.setLayoutProperty("visibility", "none"), (d = (c = this.map) == null ? void 0 : c.getLayer("hi")) == null || d.setLayoutProperty("visibility", "none"));
|
|
6624
7116
|
}
|
|
6625
7117
|
},
|
|
6626
7118
|
activeWeatherLayers: {
|
|
6627
7119
|
handler() {
|
|
6628
|
-
var a, e, t, r, i, o,
|
|
7120
|
+
var a, e, t, r, i, o, s, n, c, d, h, p, g, u, y, f, m, v;
|
|
6629
7121
|
if (!this.map)
|
|
6630
7122
|
return !1;
|
|
6631
|
-
this.activeWeatherLayers.length > 0 ? ((e = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (t = this.map) == null ? void 0 : t.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((
|
|
7123
|
+
this.activeWeatherLayers.length > 0 ? ((e = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (t = this.map) == null ? void 0 : t.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((s = this.map) != null && s.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((c = this.map) == null || c.moveLayer((n = this.viewport) == null ? void 0 : n.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (h = this.map) != null && h.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) && ((p = this.map) != null && p.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((u = this.map) == null || u.moveLayer((g = this.viewport) == null ? void 0 : g.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((f = (y = this.map) == null ? void 0 : y.getLayer(this.enc)) == null || f.setLayoutProperty("visibility", "visible"), (v = (m = this.map) == null ? void 0 : m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none"));
|
|
6632
7124
|
},
|
|
6633
7125
|
immediate: !0
|
|
6634
7126
|
}
|
|
@@ -6675,13 +7167,13 @@ const Fi = {
|
|
|
6675
7167
|
},
|
|
6676
7168
|
methods: {
|
|
6677
7169
|
async fetchWeatherLayers(a = { tropicals: !1 }) {
|
|
6678
|
-
var i, o,
|
|
7170
|
+
var i, o, s, n, c, d, h, p;
|
|
6679
7171
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
6680
7172
|
let t = 0, r = 0;
|
|
6681
7173
|
if (this.map) {
|
|
6682
7174
|
const g = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, u = (o = this.map) == null ? void 0 : o.getBounds(), y = `${u._sw.lng},${u._sw.lat},${u._ne.lng},${u._ne.lat}`;
|
|
6683
7175
|
if (this.handleRampColorState(), this.particleFactor) {
|
|
6684
|
-
const f =
|
|
7176
|
+
const f = Me.WEATHER_LAYERS.find((m) => {
|
|
6685
7177
|
var v;
|
|
6686
7178
|
return ((v = m.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
|
|
6687
7179
|
});
|
|
@@ -6690,44 +7182,44 @@ const Fi = {
|
|
|
6690
7182
|
if (this.weatherWeight > 0) {
|
|
6691
7183
|
let f = this.weatherWeight, m;
|
|
6692
7184
|
if (a.tropicals || this.weatherWeight & 256 && (m = this.weatherLayers.tropicals, m && (f -= 256, m.version = Math.random() + 1)), f > 0) {
|
|
6693
|
-
const v = await
|
|
7185
|
+
const v = await ne.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${g}&bbox=${y}&t=${this.ts}`, {
|
|
6694
7186
|
headers: {
|
|
6695
7187
|
Authorization: this.token || this.defaultMeteoToken
|
|
6696
7188
|
}
|
|
6697
7189
|
});
|
|
6698
|
-
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((
|
|
6699
|
-
const b = (
|
|
6700
|
-
for (const
|
|
6701
|
-
|
|
6702
|
-
|
|
7190
|
+
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((s = v == null ? void 0 : v.data) == null ? void 0 : s.code) === 0) {
|
|
7191
|
+
const b = (n = v == null ? void 0 : v.data) == null ? void 0 : n.data, _ = [];
|
|
7192
|
+
for (const w in b)
|
|
7193
|
+
w === "ice-edge" && (b[w] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), w !== "tropicals" && _.push(
|
|
7194
|
+
ne.get(b[w], {
|
|
6703
7195
|
headers: {
|
|
6704
7196
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6705
|
-
key:
|
|
7197
|
+
key: w
|
|
6706
7198
|
},
|
|
6707
|
-
responseType: /\.(jpg|png)$/.test(b[
|
|
6708
|
-
}).catch((
|
|
6709
|
-
console.log(`[${
|
|
7199
|
+
responseType: /\.(jpg|png)$/.test(b[w]) ? "blob" : "json"
|
|
7200
|
+
}).catch((A) => {
|
|
7201
|
+
console.log(`[${w}] fetch layer error: ${A}`);
|
|
6710
7202
|
})
|
|
6711
7203
|
);
|
|
6712
|
-
const
|
|
6713
|
-
this.weatherLayers = {},
|
|
6714
|
-
var
|
|
6715
|
-
const
|
|
6716
|
-
|
|
6717
|
-
raw:
|
|
6718
|
-
type: ((
|
|
7204
|
+
const z = await Promise.all(_);
|
|
7205
|
+
this.weatherLayers = {}, z.map((w) => {
|
|
7206
|
+
var $, W, O, J;
|
|
7207
|
+
const A = (($ = w == null ? void 0 : w.data) == null ? void 0 : $.data) || (w == null ? void 0 : w.data), M = (O = (W = w == null ? void 0 : w.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
|
|
7208
|
+
M && A && (this.weatherLayers[M] = {
|
|
7209
|
+
raw: A,
|
|
7210
|
+
type: ((J = w == null ? void 0 : w.config) == null ? void 0 : J.responseType) === "blob" ? "image" : "json",
|
|
6719
7211
|
etime: this.ts
|
|
6720
7212
|
});
|
|
6721
|
-
}), b.tropicals &&
|
|
7213
|
+
}), b.tropicals && ne.get(b.tropicals, {
|
|
6722
7214
|
headers: {
|
|
6723
7215
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6724
7216
|
key: "tropicals"
|
|
6725
7217
|
}
|
|
6726
|
-
}).then((
|
|
6727
|
-
var
|
|
6728
|
-
const
|
|
6729
|
-
this.weatherLayers[
|
|
6730
|
-
data:
|
|
7218
|
+
}).then((w) => {
|
|
7219
|
+
var $, W, O;
|
|
7220
|
+
const A = Qe.convert2Geojson((($ = w == null ? void 0 : w.data) == null ? void 0 : $.data) || (w == null ? void 0 : w.data)), M = (O = (W = w == null ? void 0 : w.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
|
|
7221
|
+
this.weatherLayers[M] = {
|
|
7222
|
+
data: A,
|
|
6731
7223
|
active: !0,
|
|
6732
7224
|
cached: !1,
|
|
6733
7225
|
type: "json",
|
|
@@ -6737,20 +7229,20 @@ const Fi = {
|
|
|
6737
7229
|
});
|
|
6738
7230
|
}
|
|
6739
7231
|
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather layers elapsed: ", r, ", total: ", t += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
6740
|
-
const b = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw,
|
|
7232
|
+
const b = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw, _ = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
6741
7233
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
6742
7234
|
type: "json",
|
|
6743
7235
|
direction: b,
|
|
6744
|
-
height: { raw:
|
|
7236
|
+
height: { raw: _ },
|
|
6745
7237
|
etime: this.ts
|
|
6746
7238
|
};
|
|
6747
7239
|
}
|
|
6748
7240
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
6749
|
-
const b = (
|
|
7241
|
+
const b = (h = this.weatherLayers["current-direction"]) == null ? void 0 : h.raw, _ = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
|
|
6750
7242
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
6751
7243
|
type: "json",
|
|
6752
7244
|
direction: b,
|
|
6753
|
-
speed: { raw:
|
|
7245
|
+
speed: { raw: _ },
|
|
6754
7246
|
etime: this.ts
|
|
6755
7247
|
};
|
|
6756
7248
|
}
|
|
@@ -6766,50 +7258,50 @@ const Fi = {
|
|
|
6766
7258
|
if (this.map) {
|
|
6767
7259
|
let o = this.otherWeight;
|
|
6768
7260
|
if (o) {
|
|
6769
|
-
let
|
|
6770
|
-
if (this.otherWeight & 2048 && (o = this.otherWeight - 2048,
|
|
7261
|
+
let s = !1;
|
|
7262
|
+
if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, s = !0), o) {
|
|
6771
7263
|
if (a.all) {
|
|
6772
|
-
const
|
|
7264
|
+
const n = await ne.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
|
|
6773
7265
|
headers: {
|
|
6774
7266
|
Authorization: this.token || this.defaultMeteoToken
|
|
6775
7267
|
}
|
|
6776
7268
|
});
|
|
6777
|
-
if (((e =
|
|
6778
|
-
const c = (t =
|
|
7269
|
+
if (((e = n == null ? void 0 : n.data) == null ? void 0 : e.code) === 0) {
|
|
7270
|
+
const c = (t = n == null ? void 0 : n.data) == null ? void 0 : t.data, d = [];
|
|
6779
7271
|
for (const p in c)
|
|
6780
|
-
|
|
6781
|
-
|
|
7272
|
+
d.push(
|
|
7273
|
+
ne.get(c[p], {
|
|
6782
7274
|
headers: {
|
|
6783
7275
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6784
7276
|
key: p
|
|
6785
7277
|
}
|
|
6786
7278
|
})
|
|
6787
7279
|
);
|
|
6788
|
-
const
|
|
6789
|
-
this.otherLayers = { enc:
|
|
7280
|
+
const h = await Promise.all(d);
|
|
7281
|
+
this.otherLayers = { enc: s }, h.map((p) => {
|
|
6790
7282
|
var y, f, m;
|
|
6791
7283
|
const g = ((y = p == null ? void 0 : p.data) == null ? void 0 : y.data) || (p == null ? void 0 : p.data), u = (m = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
|
|
6792
7284
|
this.otherLayers[u] = g;
|
|
6793
7285
|
});
|
|
6794
7286
|
}
|
|
6795
7287
|
} else if (a.dayNight && o & 1024) {
|
|
6796
|
-
const
|
|
7288
|
+
const n = await ne.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
6797
7289
|
headers: {
|
|
6798
7290
|
Authorization: this.token || this.defaultMeteoToken
|
|
6799
7291
|
}
|
|
6800
7292
|
});
|
|
6801
|
-
if (((r =
|
|
6802
|
-
const c = (i =
|
|
7293
|
+
if (((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
|
|
7294
|
+
const c = (i = n == null ? void 0 : n.data) == null ? void 0 : i.data, d = [];
|
|
6803
7295
|
for (const p in c)
|
|
6804
|
-
|
|
6805
|
-
|
|
7296
|
+
d.push(
|
|
7297
|
+
ne.get(c[p], {
|
|
6806
7298
|
headers: {
|
|
6807
7299
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6808
7300
|
key: p
|
|
6809
7301
|
}
|
|
6810
7302
|
})
|
|
6811
7303
|
);
|
|
6812
|
-
(await Promise.all(
|
|
7304
|
+
(await Promise.all(d)).map((p) => {
|
|
6813
7305
|
var y, f, m;
|
|
6814
7306
|
const g = ((y = p == null ? void 0 : p.data) == null ? void 0 : y.data) || (p == null ? void 0 : p.data), u = (m = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
|
|
6815
7307
|
this.otherLayers[u] = g;
|
|
@@ -6817,7 +7309,7 @@ const Fi = {
|
|
|
6817
7309
|
}
|
|
6818
7310
|
}
|
|
6819
7311
|
} else
|
|
6820
|
-
this.otherLayers = { enc:
|
|
7312
|
+
this.otherLayers = { enc: s };
|
|
6821
7313
|
} else
|
|
6822
7314
|
this.otherLayers = {};
|
|
6823
7315
|
this.handleBeforeLayerToggle();
|
|
@@ -6833,7 +7325,7 @@ const Fi = {
|
|
|
6833
7325
|
this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
|
|
6834
7326
|
},
|
|
6835
7327
|
handleRampColorInitial() {
|
|
6836
|
-
var a, e, t, r, i, o,
|
|
7328
|
+
var a, e, t, r, i, o, s, n, c, d, h, p;
|
|
6837
7329
|
this.viewport.map.getSource((a = this.viewport) == null ? void 0 : a.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
|
|
6838
7330
|
type: "canvas",
|
|
6839
7331
|
canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
|
|
@@ -6849,15 +7341,15 @@ const Fi = {
|
|
|
6849
7341
|
}
|
|
6850
7342
|
},
|
|
6851
7343
|
this.beforeLayer
|
|
6852
|
-
), this.viewport.map.getSource((
|
|
7344
|
+
), this.viewport.map.getSource((s = this.viewport) == null ? void 0 : s.particleSource) || this.viewport.map.addSource((n = this.viewport) == null ? void 0 : n.particleSource, {
|
|
6853
7345
|
type: "canvas",
|
|
6854
7346
|
canvas: (c = this.viewport) == null ? void 0 : c.particleCanvas,
|
|
6855
7347
|
animate: !0,
|
|
6856
7348
|
coordinates: this.viewport.getBoundLngLat()
|
|
6857
|
-
}), this.viewport.map.getLayer((
|
|
7349
|
+
}), this.viewport.map.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) || this.viewport.map.addLayer(
|
|
6858
7350
|
{
|
|
6859
7351
|
type: "raster",
|
|
6860
|
-
id: (
|
|
7352
|
+
id: (h = this.viewport) == null ? void 0 : h.particleLayer,
|
|
6861
7353
|
source: (p = this.viewport) == null ? void 0 : p.particleSource,
|
|
6862
7354
|
layout: {
|
|
6863
7355
|
visibility: "none"
|
|
@@ -6867,36 +7359,36 @@ const Fi = {
|
|
|
6867
7359
|
);
|
|
6868
7360
|
},
|
|
6869
7361
|
handleDragEndWithZoom4Json() {
|
|
6870
|
-
var
|
|
7362
|
+
var d, h, p, g;
|
|
6871
7363
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
6872
7364
|
let e = 0, t = 0;
|
|
6873
|
-
const r = (
|
|
7365
|
+
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), o = D.convertToStdLng(r._sw.lng), s = D.convertToStdLng(r._ne.lng), n = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
|
|
6874
7366
|
for (const u in this.weatherLayers)
|
|
6875
7367
|
if (this.weatherLayers[u].active && this.weatherLayers[u].type === "json") {
|
|
6876
7368
|
this.weatherLayers[u].active = !1, this.weatherLayers[u].version = Math.random() + 1;
|
|
6877
7369
|
let y = [];
|
|
6878
7370
|
if (["swell", "current"].includes(u)) {
|
|
6879
|
-
const f = ((
|
|
7371
|
+
const f = ((h = this.weatherLayers[u]) == null ? void 0 : h.direction) || {};
|
|
6880
7372
|
for (const m in f)
|
|
6881
|
-
if (m >
|
|
7373
|
+
if (m > n && m < c && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6882
7374
|
const v = f[m].lng;
|
|
6883
|
-
o >
|
|
6884
|
-
var
|
|
6885
|
-
if ((b >= o && b <= 180 || b >= -180 && b <=
|
|
6886
|
-
const
|
|
6887
|
-
val: f[m].val[
|
|
6888
|
-
spd: (
|
|
7375
|
+
o > s ? v.forEach((b, _) => {
|
|
7376
|
+
var z;
|
|
7377
|
+
if ((b >= o && b <= 180 || b >= -180 && b <= s) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7378
|
+
const w = L.point([b, m], {
|
|
7379
|
+
val: f[m].val[_],
|
|
7380
|
+
spd: (z = f[m].spd) == null ? void 0 : z[_]
|
|
6889
7381
|
});
|
|
6890
|
-
y.push(
|
|
7382
|
+
y.push(w);
|
|
6891
7383
|
}
|
|
6892
|
-
}) : v.forEach((b,
|
|
6893
|
-
var
|
|
6894
|
-
if (b >= o && b <=
|
|
6895
|
-
const
|
|
6896
|
-
val: f[m].val[
|
|
6897
|
-
spd: (
|
|
7384
|
+
}) : v.forEach((b, _) => {
|
|
7385
|
+
var z;
|
|
7386
|
+
if (b >= o && b <= s && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7387
|
+
const w = L.point([b, m], {
|
|
7388
|
+
val: f[m].val[_],
|
|
7389
|
+
spd: (z = f[m].spd) == null ? void 0 : z[_]
|
|
6898
7390
|
});
|
|
6899
|
-
y.push(
|
|
7391
|
+
y.push(w);
|
|
6900
7392
|
}
|
|
6901
7393
|
});
|
|
6902
7394
|
}
|
|
@@ -6906,14 +7398,14 @@ const Fi = {
|
|
|
6906
7398
|
if (!m.data) {
|
|
6907
7399
|
const v = [];
|
|
6908
7400
|
for (const b in (p = m.raw) == null ? void 0 : p.LineString) {
|
|
6909
|
-
const
|
|
6910
|
-
for (const
|
|
7401
|
+
const _ = m.raw.LineString[b];
|
|
7402
|
+
for (const z of _)
|
|
6911
7403
|
v.push(
|
|
6912
|
-
|
|
7404
|
+
L.lineString(z, {
|
|
6913
7405
|
val: Number(b)
|
|
6914
7406
|
})
|
|
6915
7407
|
);
|
|
6916
|
-
m.data =
|
|
7408
|
+
m.data = L.featureCollection(v);
|
|
6917
7409
|
}
|
|
6918
7410
|
}
|
|
6919
7411
|
if (m.data) {
|
|
@@ -6928,16 +7420,16 @@ const Fi = {
|
|
|
6928
7420
|
if (m) {
|
|
6929
7421
|
if (!m.data) {
|
|
6930
7422
|
const b = [];
|
|
6931
|
-
for (const
|
|
6932
|
-
const
|
|
6933
|
-
for (const
|
|
7423
|
+
for (const _ in (g = m.raw) == null ? void 0 : g.Polygon) {
|
|
7424
|
+
const z = m.raw.Polygon[_];
|
|
7425
|
+
for (const w of z)
|
|
6934
7426
|
b.push(
|
|
6935
|
-
|
|
6936
|
-
val: Number(
|
|
7427
|
+
L.polygon(w, {
|
|
7428
|
+
val: Number(_)
|
|
6937
7429
|
})
|
|
6938
7430
|
);
|
|
6939
7431
|
}
|
|
6940
|
-
m.data =
|
|
7432
|
+
m.data = L.featureCollection(b);
|
|
6941
7433
|
}
|
|
6942
7434
|
const v = i < this.zoom ? m.data.features.filter((b) => b.properties.val > 0.5) : m.data.features;
|
|
6943
7435
|
y = y.concat(v), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("speed elapsed: ", t, ", total: ", e += t);
|
|
@@ -6946,23 +7438,23 @@ const Fi = {
|
|
|
6946
7438
|
} else if (u === "wind") {
|
|
6947
7439
|
const f = this.weatherLayers.wind.raw;
|
|
6948
7440
|
for (const m in f)
|
|
6949
|
-
if (m >
|
|
7441
|
+
if (m > n && m < c && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
6950
7442
|
const v = f[m].lng;
|
|
6951
|
-
o >
|
|
6952
|
-
if ((b >= o && b <= 180 || b >= -180 && b <=
|
|
6953
|
-
const
|
|
6954
|
-
val: f[m].val[
|
|
6955
|
-
spd: f[m].spd[
|
|
7443
|
+
o > s ? v.forEach((b, _) => {
|
|
7444
|
+
if ((b >= o && b <= 180 || b >= -180 && b <= s) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7445
|
+
const z = L.point([b, m], {
|
|
7446
|
+
val: f[m].val[_],
|
|
7447
|
+
spd: f[m].spd[_]
|
|
6956
7448
|
});
|
|
6957
|
-
y.push(
|
|
7449
|
+
y.push(z);
|
|
6958
7450
|
}
|
|
6959
|
-
}) : v.forEach((b,
|
|
6960
|
-
if (b >= o && b <=
|
|
6961
|
-
const
|
|
6962
|
-
val: f[m].val[
|
|
6963
|
-
spd: f[m].spd[
|
|
7451
|
+
}) : v.forEach((b, _) => {
|
|
7452
|
+
if (b >= o && b <= s && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
7453
|
+
const z = L.point([b, m], {
|
|
7454
|
+
val: f[m].val[_],
|
|
7455
|
+
spd: f[m].spd[_]
|
|
6964
7456
|
});
|
|
6965
|
-
y.push(
|
|
7457
|
+
y.push(z);
|
|
6966
7458
|
}
|
|
6967
7459
|
});
|
|
6968
7460
|
}
|
|
@@ -6976,18 +7468,18 @@ const Fi = {
|
|
|
6976
7468
|
const m = [];
|
|
6977
7469
|
for (const v in f.Polygon) {
|
|
6978
7470
|
const b = f.Polygon[v];
|
|
6979
|
-
for (const
|
|
7471
|
+
for (const _ of b)
|
|
6980
7472
|
m.push(
|
|
6981
|
-
|
|
7473
|
+
L.polygon(_, {
|
|
6982
7474
|
val: Number(v)
|
|
6983
7475
|
})
|
|
6984
7476
|
);
|
|
6985
7477
|
}
|
|
6986
7478
|
for (const v in f.Point) {
|
|
6987
7479
|
const b = f.Point[v];
|
|
6988
|
-
for (const
|
|
7480
|
+
for (const _ of b)
|
|
6989
7481
|
m.push(
|
|
6990
|
-
...
|
|
7482
|
+
...L.points(_, {
|
|
6991
7483
|
val: Number(v)
|
|
6992
7484
|
}).features
|
|
6993
7485
|
);
|
|
@@ -7005,19 +7497,19 @@ const Fi = {
|
|
|
7005
7497
|
const m = [];
|
|
7006
7498
|
for (const v in f.LineString) {
|
|
7007
7499
|
const b = f.LineString[v];
|
|
7008
|
-
for (const
|
|
7500
|
+
for (const _ of b)
|
|
7009
7501
|
m.push(
|
|
7010
|
-
|
|
7502
|
+
L.lineString(_, {
|
|
7011
7503
|
val: Number(v)
|
|
7012
7504
|
})
|
|
7013
7505
|
);
|
|
7014
7506
|
}
|
|
7015
7507
|
for (const v in f.Point)
|
|
7016
|
-
f.Point[v].lng.forEach((b,
|
|
7017
|
-
b =
|
|
7018
|
-
|
|
7019
|
-
val: f.Point[v].val[
|
|
7020
|
-
type: f.Point[v].type[
|
|
7508
|
+
f.Point[v].lng.forEach((b, _) => {
|
|
7509
|
+
b = D.convertToStdLng(b), m.push(
|
|
7510
|
+
L.point([b, v], {
|
|
7511
|
+
val: f.Point[v].val[_],
|
|
7512
|
+
type: f.Point[v].type[_]
|
|
7021
7513
|
})
|
|
7022
7514
|
);
|
|
7023
7515
|
});
|
|
@@ -7034,9 +7526,9 @@ const Fi = {
|
|
|
7034
7526
|
const m = [];
|
|
7035
7527
|
for (const v in f.LineString) {
|
|
7036
7528
|
const b = f.LineString[v];
|
|
7037
|
-
for (const
|
|
7529
|
+
for (const _ of b)
|
|
7038
7530
|
m.push(
|
|
7039
|
-
|
|
7531
|
+
L.lineString(_, {
|
|
7040
7532
|
val: Number(v)
|
|
7041
7533
|
})
|
|
7042
7534
|
);
|
|
@@ -7046,7 +7538,7 @@ const Fi = {
|
|
|
7046
7538
|
}
|
|
7047
7539
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e);
|
|
7048
7540
|
}
|
|
7049
|
-
console.log(u, " elapsed: ", t, ", total: ", e += t), y.length && (this.weatherLayers[u].data =
|
|
7541
|
+
console.log(u, " elapsed: ", t, ", total: ", e += t), y.length && (this.weatherLayers[u].data = L.featureCollection(y)), this.weatherLayers[u].active = !0, this.weatherLayers[u].version = Math.random() + 1;
|
|
7050
7542
|
}
|
|
7051
7543
|
},
|
|
7052
7544
|
handleDragEndWithZoom4Image() {
|
|
@@ -7054,15 +7546,15 @@ const Fi = {
|
|
|
7054
7546
|
this.weatherLayers[a].active && this.weatherLayers[a].type === "image" && (this.weatherLayers[a].active = !0, this.weatherLayers[a].version = Math.random() + 1);
|
|
7055
7547
|
},
|
|
7056
7548
|
handleBboxClip(a, e) {
|
|
7057
|
-
const t = [], r =
|
|
7549
|
+
const t = [], r = D.convertToStdLng(e._sw.lng), i = D.convertToStdLng(e._ne.lng);
|
|
7058
7550
|
return a.features.forEach((o) => {
|
|
7059
7551
|
if (o.geometry.type !== "Point")
|
|
7060
7552
|
if (r > i) {
|
|
7061
|
-
let
|
|
7062
|
-
|
|
7553
|
+
let s = [r, e._sw.lat, 180, e._ne.lat], n = L.bboxClip(o, s);
|
|
7554
|
+
n.geometry.coordinates.length && t.push(n), s = [-180, e._sw.lat, i, e._ne.lat], n = L.bboxClip(o, s), n.geometry.coordinates.length && t.push(n);
|
|
7063
7555
|
} else {
|
|
7064
|
-
const
|
|
7065
|
-
|
|
7556
|
+
const s = [r, e._sw.lat, i, e._ne.lat], n = L.bboxClip(o, s);
|
|
7557
|
+
n.geometry.coordinates.length && t.push(n);
|
|
7066
7558
|
}
|
|
7067
7559
|
else
|
|
7068
7560
|
t.push(o);
|
|
@@ -7079,8 +7571,8 @@ const Fi = {
|
|
|
7079
7571
|
this.handleBeforeLayerToggle();
|
|
7080
7572
|
},
|
|
7081
7573
|
handleBeforeLayerToggle() {
|
|
7082
|
-
var a, e, t, r, i, o,
|
|
7083
|
-
(a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (
|
|
7574
|
+
var a, e, t, r, i, o, s, n, c, d, h, p, g;
|
|
7575
|
+
(a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (s = this.otherLayers) != null && s["time-zones"] || (n = this.otherLayers) != null && n.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h["voluntary-reporting-area"] || (p = this.otherLayers) != null && p["eca-zones"] || (g = this.otherLayers) != null && g["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
7084
7576
|
},
|
|
7085
7577
|
handleDateChange(a = { tropicals: !1 }) {
|
|
7086
7578
|
this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -7092,9 +7584,16 @@ const Fi = {
|
|
|
7092
7584
|
}, 500);
|
|
7093
7585
|
else {
|
|
7094
7586
|
this.activeWeatherLayers = e;
|
|
7095
|
-
const r = this.activeWeatherLayers.some(
|
|
7096
|
-
|
|
7097
|
-
|
|
7587
|
+
const r = this.activeWeatherLayers.some(
|
|
7588
|
+
(s) => {
|
|
7589
|
+
var n;
|
|
7590
|
+
return ["wind", "current"].includes(s.key) && (!((n = Object.keys(s)) != null && n.some((c) => c === "particle")) || !!s.particle);
|
|
7591
|
+
}
|
|
7592
|
+
), i = this.activeWeatherLayers.some((s) => ["png", "jpg"].includes(s.type));
|
|
7593
|
+
r && !i ? (this.activeWeatherLayers.forEach((s) => {
|
|
7594
|
+
["wind", "current"].includes(s.key) && (this.particleFactor = s);
|
|
7595
|
+
}), this.particleFactor.particle = !0) : i && this.particleFactor && (this.particleFactor.particle = !1);
|
|
7596
|
+
const o = e == null ? void 0 : e.reduce((s, n) => s + (s & (n == null ? void 0 : n.weight) ? 0 : n == null ? void 0 : n.weight), 0);
|
|
7098
7597
|
this.weatherWeight !== o || this.source !== t ? (this.source = t, this.weatherWeight = o, this.fetchWeatherLayers({ tropicals: !1 })) : this.handleWeatherLayerToggle();
|
|
7099
7598
|
}
|
|
7100
7599
|
},
|
|
@@ -7115,7 +7614,7 @@ const Fi = {
|
|
|
7115
7614
|
ts: e.utc().format(),
|
|
7116
7615
|
wt: !0,
|
|
7117
7616
|
src: this.source
|
|
7118
|
-
}, r = await
|
|
7617
|
+
}, r = await ne.get(`${this.gateway}/api/arc/meteo/query`, {
|
|
7119
7618
|
params: t,
|
|
7120
7619
|
headers: {
|
|
7121
7620
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -7127,25 +7626,32 @@ const Fi = {
|
|
|
7127
7626
|
});
|
|
7128
7627
|
},
|
|
7129
7628
|
handle3dToggle(a) {
|
|
7130
|
-
var e, t, r, i, o,
|
|
7131
|
-
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.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)), (
|
|
7629
|
+
var e, t, r, i, o, s, n, c, d, h, p, g, u, y, f, m, v, b, _, z;
|
|
7630
|
+
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.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)), (n = this.map) != null && n.getLayer((s = this.viewport) == null ? void 0 : s.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (g = this.map) != null && g.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((u = this.map) != null && u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((y = this.viewport) == null ? void 0 : y.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((m = this.viewport) == null ? void 0 : m.particleLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((z = this.map) == null || z.moveLayer((_ = this.viewport) == null ? void 0 : _.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
7132
7631
|
},
|
|
7133
7632
|
handleParticle(a) {
|
|
7134
|
-
this.particleFactor = a, this.
|
|
7633
|
+
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.forEach((r) => {
|
|
7634
|
+
r.key === a.key && (r.particle = a.particle);
|
|
7635
|
+
});
|
|
7636
|
+
let e = localStorage.getItem("weatherLayersCache");
|
|
7637
|
+
const t = JSON.parse(e) || [];
|
|
7638
|
+
t == null || t.forEach((r) => {
|
|
7639
|
+
r.key === a.key && (r.particle = a.particle);
|
|
7640
|
+
}), localStorage.setItem("weatherLayersCache", JSON.stringify(t)), this.fetchWeatherLayers({ tropicals: !1 });
|
|
7135
7641
|
},
|
|
7136
7642
|
handleToggleVersion() {
|
|
7137
7643
|
this.$emit("toggleVersion", Math.random());
|
|
7138
7644
|
}
|
|
7139
7645
|
}
|
|
7140
|
-
},
|
|
7646
|
+
}, ts = {
|
|
7141
7647
|
key: 0,
|
|
7142
7648
|
className: "map-gl-home"
|
|
7143
7649
|
};
|
|
7144
|
-
function
|
|
7145
|
-
var
|
|
7146
|
-
const
|
|
7147
|
-
return t.map ? (x(),
|
|
7148
|
-
|
|
7650
|
+
function as(a, e, t, r, i, o) {
|
|
7651
|
+
var ie, X, Y, be, q, I, F, ve, Q, we, re, oe, se, Pe, Te, Ie, Ee, Re, We, Ze, He, Ge, Je, Xe, Ye, qe;
|
|
7652
|
+
const s = P("IdmGlLayer"), n = P("IdmENC"), c = P("IdmSigWave"), d = P("IdmSwell"), h = P("IdmPrmsl"), p = P("IdmIceberg"), g = P("IdmTropicals"), u = P("IdmCurrents"), y = P("IdmCurrentParticle"), f = P("IdmWindBarb"), m = P("IdmWindParticle"), v = P("IdmPrecip3h"), b = P("IdmVisibility"), _ = P("IdmWaterTemp"), z = P("IdmTemp"), w = P("IdmArctic"), A = P("IdmWarZone"), M = P("IdmGmdssArea"), $ = P("IdmEcaZone"), W = P("IdmAlertZone"), O = P("IdmPort"), J = P("IdmLoadLine"), de = P("IdmTimezone"), pe = P("IdmVRA"), me = P("IdmSpecialArea"), ue = P("IdmTerminator"), ye = P("IdmLatLng"), fe = P("IdmMeasure"), ge = P("IdmPoint");
|
|
7653
|
+
return t.map ? (x(), C("div", ts, [
|
|
7654
|
+
k(s, E({
|
|
7149
7655
|
ref: "layer",
|
|
7150
7656
|
map: t.map,
|
|
7151
7657
|
"toggle-version": t.toggleVersion,
|
|
@@ -7153,69 +7659,72 @@ function Vi(a, e, t, r, i, o) {
|
|
|
7153
7659
|
}, a.$attrs, {
|
|
7154
7660
|
onWeather: o.handleWeatherLayerChange,
|
|
7155
7661
|
onOther: o.handleOtherLayerChange,
|
|
7156
|
-
onCoordinate: e[0] || (e[0] = (
|
|
7157
|
-
onMeasure: e[1] || (e[1] = (
|
|
7158
|
-
onPoint: e[2] || (e[2] = (
|
|
7662
|
+
onCoordinate: e[0] || (e[0] = (_e) => i.showCoord = _e),
|
|
7663
|
+
onMeasure: e[1] || (e[1] = (_e) => i.showMeasure = _e),
|
|
7664
|
+
onPoint: e[2] || (e[2] = (_e) => i.showPoint = _e),
|
|
7159
7665
|
on3d: o.handle3dToggle,
|
|
7160
7666
|
onHandleToggleVersion: o.handleToggleVersion
|
|
7161
7667
|
}), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
7162
|
-
|
|
7668
|
+
k(n, E({
|
|
7163
7669
|
map: t.map,
|
|
7164
7670
|
token: t.token,
|
|
7165
|
-
enabled: (
|
|
7671
|
+
enabled: (ie = i.otherLayers) == null ? void 0 : ie.enc,
|
|
7166
7672
|
"toggle-version": t.toggleVersion
|
|
7167
7673
|
}, a.$attrs, {
|
|
7168
|
-
onEnc: e[3] || (e[3] = (
|
|
7674
|
+
onEnc: e[3] || (e[3] = (_e) => i.enc = _e)
|
|
7169
7675
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
7170
|
-
|
|
7676
|
+
k(c, E({
|
|
7171
7677
|
map: t.map,
|
|
7172
|
-
"sig-wave": (
|
|
7678
|
+
"sig-wave": (X = i.weatherLayers) == null ? void 0 : X["sig-wave-height"],
|
|
7173
7679
|
"before-layer": t.beforeLayer
|
|
7174
7680
|
}, a.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
|
|
7175
|
-
|
|
7681
|
+
k(d, E({
|
|
7176
7682
|
map: t.map,
|
|
7177
|
-
swell: (
|
|
7683
|
+
swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
|
|
7178
7684
|
"before-layer": t.beforeLayer
|
|
7179
7685
|
}, a.$attrs), null, 16, ["map", "swell", "before-layer"]),
|
|
7180
|
-
|
|
7686
|
+
k(h, E({
|
|
7181
7687
|
map: t.map,
|
|
7182
|
-
prmsl: (
|
|
7688
|
+
prmsl: (be = i.weatherLayers) == null ? void 0 : be.prmsl,
|
|
7183
7689
|
"before-layer": t.beforeLayer,
|
|
7184
7690
|
"active-weather-layers": i.activeWeatherLayers
|
|
7185
7691
|
}, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
7186
|
-
|
|
7692
|
+
k(p, E({
|
|
7187
7693
|
map: t.map,
|
|
7188
|
-
iceberg: (
|
|
7694
|
+
iceberg: (q = i.weatherLayers) == null ? void 0 : q.iceberg,
|
|
7189
7695
|
"before-layer": t.beforeLayer
|
|
7190
7696
|
}, a.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
7191
|
-
|
|
7697
|
+
k(g, E({
|
|
7192
7698
|
map: t.map,
|
|
7193
7699
|
date: t.ts,
|
|
7194
|
-
tropicals: (
|
|
7700
|
+
tropicals: (I = i.weatherLayers) == null ? void 0 : I.tropicals,
|
|
7195
7701
|
"before-layer": t.beforeLayer
|
|
7196
7702
|
}, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
7197
|
-
|
|
7703
|
+
k(u, E({
|
|
7198
7704
|
map: t.map,
|
|
7199
7705
|
"map-projection": i.mapProjection,
|
|
7200
|
-
current: (
|
|
7706
|
+
current: (F = i.weatherLayers) == null ? void 0 : F.current,
|
|
7201
7707
|
"before-layer": t.beforeLayer,
|
|
7202
7708
|
"show-particle": i.showCurrentParticle,
|
|
7203
7709
|
"margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
|
|
7204
7710
|
"toggle-version": t.toggleVersion,
|
|
7205
7711
|
"weather-layers": i.weatherLayers
|
|
7206
|
-
}, a.$attrs, {
|
|
7207
|
-
|
|
7712
|
+
}, a.$attrs, {
|
|
7713
|
+
onParticle: o.handleParticle,
|
|
7714
|
+
onHandleToggleVersion: o.handleToggleVersion
|
|
7715
|
+
}), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
7716
|
+
k(y, E({
|
|
7208
7717
|
viewport: i.viewport,
|
|
7209
|
-
factor: (
|
|
7718
|
+
factor: (ve = i.weatherLayers) == null ? void 0 : ve["current-particle"],
|
|
7210
7719
|
"before-layer": t.beforeLayer,
|
|
7211
7720
|
"toggle-version": t.toggleVersion
|
|
7212
7721
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7213
|
-
|
|
7722
|
+
k(f, E({
|
|
7214
7723
|
ref: "windBarb",
|
|
7215
7724
|
map: t.map,
|
|
7216
7725
|
"map-projection": i.mapProjection,
|
|
7217
|
-
wind: (
|
|
7218
|
-
current: (
|
|
7726
|
+
wind: (Q = i.weatherLayers) == null ? void 0 : Q.wind,
|
|
7727
|
+
current: (we = i.weatherLayers) == null ? void 0 : we.current,
|
|
7219
7728
|
"before-layer": t.beforeLayer,
|
|
7220
7729
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
7221
7730
|
"show-particle": i.showWindParticle
|
|
@@ -7224,120 +7733,120 @@ function Vi(a, e, t, r, i, o) {
|
|
|
7224
7733
|
"weather-layers": i.weatherLayers,
|
|
7225
7734
|
onParticle: o.handleParticle
|
|
7226
7735
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
|
|
7227
|
-
|
|
7736
|
+
k(m, E({
|
|
7228
7737
|
viewport: i.viewport,
|
|
7229
|
-
factor: (
|
|
7738
|
+
factor: (re = i.weatherLayers) == null ? void 0 : re["wind-particle"],
|
|
7230
7739
|
"before-layer": t.beforeLayer,
|
|
7231
7740
|
"toggle-version": t.toggleVersion
|
|
7232
7741
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7233
|
-
|
|
7742
|
+
k(v, E({
|
|
7234
7743
|
viewport: i.viewport,
|
|
7235
|
-
factor: (
|
|
7744
|
+
factor: (oe = i.weatherLayers) == null ? void 0 : oe.precip3h,
|
|
7236
7745
|
"before-layer": t.beforeLayer,
|
|
7237
7746
|
"toggle-version": t.toggleVersion
|
|
7238
7747
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7239
|
-
|
|
7748
|
+
k(b, E({
|
|
7240
7749
|
viewport: i.viewport,
|
|
7241
|
-
factor: (
|
|
7750
|
+
factor: (se = i.weatherLayers) == null ? void 0 : se.visibility,
|
|
7242
7751
|
"before-layer": t.beforeLayer,
|
|
7243
7752
|
"toggle-version": t.toggleVersion
|
|
7244
7753
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7245
|
-
|
|
7754
|
+
k(_, E({
|
|
7246
7755
|
viewport: i.viewport,
|
|
7247
|
-
factor: (
|
|
7756
|
+
factor: (Pe = i.weatherLayers) == null ? void 0 : Pe["water-temp"],
|
|
7248
7757
|
"before-layer": t.beforeLayer,
|
|
7249
7758
|
"toggle-version": t.toggleVersion
|
|
7250
7759
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7251
|
-
|
|
7760
|
+
k(z, E({
|
|
7252
7761
|
viewport: i.viewport,
|
|
7253
|
-
factor: (
|
|
7762
|
+
factor: (Te = i.weatherLayers) == null ? void 0 : Te.temp,
|
|
7254
7763
|
"before-layer": t.beforeLayer,
|
|
7255
7764
|
"toggle-version": t.toggleVersion
|
|
7256
7765
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7257
|
-
|
|
7766
|
+
k(w, E({
|
|
7258
7767
|
viewport: i.viewport,
|
|
7259
|
-
factor: (
|
|
7768
|
+
factor: (Ie = i.weatherLayers) == null ? void 0 : Ie.arctic,
|
|
7260
7769
|
"before-layer": t.beforeLayer,
|
|
7261
7770
|
"toggle-version": t.toggleVersion
|
|
7262
7771
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7263
|
-
|
|
7772
|
+
k(A, E({
|
|
7264
7773
|
map: t.map,
|
|
7265
|
-
zone: (
|
|
7774
|
+
zone: (Ee = i.otherLayers) == null ? void 0 : Ee["war-zones"],
|
|
7266
7775
|
"before-layer": t.beforeLayer
|
|
7267
7776
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7268
|
-
|
|
7777
|
+
k(M, E({
|
|
7269
7778
|
map: t.map,
|
|
7270
|
-
area: (
|
|
7779
|
+
area: (Re = i.otherLayers) == null ? void 0 : Re["gmdss-areas"],
|
|
7271
7780
|
"before-layer": t.beforeLayer
|
|
7272
7781
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7273
|
-
|
|
7782
|
+
k($, E({
|
|
7274
7783
|
map: t.map,
|
|
7275
|
-
zone: (
|
|
7784
|
+
zone: (We = i.otherLayers) == null ? void 0 : We["eca-zones"],
|
|
7276
7785
|
"before-layer": t.beforeLayer
|
|
7277
7786
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7278
|
-
|
|
7787
|
+
k(W, E({
|
|
7279
7788
|
map: t.map,
|
|
7280
|
-
zone: (
|
|
7789
|
+
zone: (Ze = i.otherLayers) == null ? void 0 : Ze["alert-zones"],
|
|
7281
7790
|
"before-layer": t.beforeLayer
|
|
7282
7791
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7283
|
-
|
|
7792
|
+
k(O, E({
|
|
7284
7793
|
map: t.map,
|
|
7285
|
-
port: (
|
|
7794
|
+
port: (He = i.otherLayers) == null ? void 0 : He.ports,
|
|
7286
7795
|
"before-layer": t.beforeLayer
|
|
7287
7796
|
}, a.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
7288
|
-
|
|
7797
|
+
k(J, E({
|
|
7289
7798
|
map: t.map,
|
|
7290
|
-
line: (
|
|
7799
|
+
line: (Ge = i.otherLayers) == null ? void 0 : Ge["load-lines"],
|
|
7291
7800
|
"before-layer": t.beforeLayer
|
|
7292
7801
|
}, a.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
7293
|
-
|
|
7802
|
+
k(de, E({
|
|
7294
7803
|
map: t.map,
|
|
7295
|
-
zone: (
|
|
7804
|
+
zone: (Je = i.otherLayers) == null ? void 0 : Je["time-zones"],
|
|
7296
7805
|
"before-layer": t.beforeLayer
|
|
7297
7806
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7298
|
-
|
|
7807
|
+
k(pe, E({
|
|
7299
7808
|
map: t.map,
|
|
7300
|
-
area: (
|
|
7809
|
+
area: (Xe = i.otherLayers) == null ? void 0 : Xe["voluntary-reporting-area"],
|
|
7301
7810
|
"before-layer": t.beforeLayer
|
|
7302
7811
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7303
|
-
|
|
7812
|
+
k(me, E({
|
|
7304
7813
|
map: t.map,
|
|
7305
|
-
area: (
|
|
7814
|
+
area: (Ye = i.otherLayers) == null ? void 0 : Ye["special-area"],
|
|
7306
7815
|
"before-layer": t.beforeLayer
|
|
7307
7816
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7308
|
-
|
|
7817
|
+
k(ue, E({
|
|
7309
7818
|
map: t.map,
|
|
7310
|
-
area: (
|
|
7819
|
+
area: (qe = i.otherLayers) == null ? void 0 : qe["day-night"]
|
|
7311
7820
|
}, a.$attrs), null, 16, ["map", "area"]),
|
|
7312
|
-
|
|
7821
|
+
k(ye, E({
|
|
7313
7822
|
map: t.map,
|
|
7314
7823
|
show: i.showCoord,
|
|
7315
7824
|
"toggle-version": t.toggleVersion
|
|
7316
7825
|
}, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
7317
|
-
|
|
7826
|
+
k(fe, E({
|
|
7318
7827
|
map: t.map,
|
|
7319
7828
|
show: i.showMeasure
|
|
7320
7829
|
}, a.$attrs), null, 16, ["map", "show"]),
|
|
7321
|
-
|
|
7830
|
+
k(ge, E({
|
|
7322
7831
|
map: t.map,
|
|
7323
7832
|
show: i.showPoint,
|
|
7324
7833
|
meteo: i.meteo
|
|
7325
7834
|
}, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
|
|
7326
7835
|
])) : B("", !0);
|
|
7327
7836
|
}
|
|
7328
|
-
const
|
|
7837
|
+
const is = /* @__PURE__ */ T(es, [["render", as]]), ds = {
|
|
7329
7838
|
install(a) {
|
|
7330
|
-
a.component("MapboxGL",
|
|
7839
|
+
a.component("MapboxGL", is), a.component("TropicalGL", Ke), a.component("LatLngGL", et);
|
|
7331
7840
|
}
|
|
7332
7841
|
};
|
|
7333
7842
|
export {
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7843
|
+
et as LatLngGL,
|
|
7844
|
+
is as MapboxGL,
|
|
7845
|
+
ds as MapboxGLPlugin,
|
|
7846
|
+
aa as MapboxHelper,
|
|
7847
|
+
V as ParticleSchema,
|
|
7848
|
+
Ke as TropicalGL,
|
|
7849
|
+
Ve as Viewport,
|
|
7850
|
+
Le as WebGL,
|
|
7342
7851
|
N as WebGLSchema
|
|
7343
7852
|
};
|