@idmwx/idmui-gl3 3.8.9 → 3.9.1
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 +120 -118
- package/dist/index.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var rt = Object.defineProperty;
|
|
2
2
|
var ot = (t, e, a) => e in t ? rt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
3
3
|
var R = (t, e, a) => (ot(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
4
|
-
import { LayerHelper as Ve, CompanyHelper as Me, LngLatHelper as te, convertToMonotonicLng2 as st, calculateDistance as Oe, calculateBearing as je, convertToMonotonicLng as
|
|
5
|
-
import { resolveComponent as z, openBlock as w, createElementBlock as L, createElementVNode as l, normalizeStyle as j, normalizeClass as M, Fragment as De, renderList as Ae, toDisplayString as S, createVNode as P, withCtx as nt, createTextVNode as Ke, createCommentVNode as $, pushScopeId as U, popScopeId as G, withDirectives as $e, vShow as Be, createStaticVNode as lt, mergeProps as
|
|
4
|
+
import { LayerHelper as Ve, CompanyHelper as Me, LngLatHelper as te, convertToMonotonicLng2 as st, calculateDistance as Oe, calculateBearing as je, convertToMonotonicLng as xe, interpolateCoordinates as Fe, convertToStandardLng as Re } from "@idmwx/idmwx-base";
|
|
5
|
+
import { resolveComponent as z, openBlock as w, createElementBlock as L, createElementVNode as l, normalizeStyle as j, normalizeClass as M, Fragment as De, renderList as Ae, toDisplayString as S, createVNode as P, withCtx as nt, createTextVNode as Ke, createCommentVNode as $, pushScopeId as U, popScopeId as G, withDirectives as $e, vShow as Be, createStaticVNode as lt, mergeProps as I } from "vue";
|
|
6
6
|
import * as C from "@turf/turf";
|
|
7
7
|
import ct from "@mapbox/sphericalmercator";
|
|
8
8
|
import ee from "moment";
|
|
9
|
-
import
|
|
9
|
+
import ne from "mapbox-gl";
|
|
10
10
|
import { TropicalHelper as et } from "@idm-plugin/geo";
|
|
11
|
-
import
|
|
11
|
+
import se from "axios";
|
|
12
12
|
const T = (t, e) => {
|
|
13
13
|
const a = t.__vccOpts || t;
|
|
14
14
|
for (const [r, i] of e)
|
|
@@ -150,22 +150,22 @@ const T = (t, e) => {
|
|
|
150
150
|
this.source = t, this.handleConfirm();
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
},
|
|
153
|
+
}, J = (t) => (U("data-v-63871fba"), t = t(), G(), t), dt = { class: "idm-gl-layer" }, pt = { class: "bar-item layer-bars" }, mt = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), ut = [
|
|
154
154
|
mt
|
|
155
|
-
], yt = { class: "bar-item tool-bars" }, ft = /* @__PURE__ */
|
|
155
|
+
], yt = { class: "bar-item tool-bars" }, ft = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), gt = [
|
|
156
156
|
ft
|
|
157
|
-
], bt = /* @__PURE__ */
|
|
157
|
+
], bt = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), vt = [
|
|
158
158
|
bt
|
|
159
|
-
], _t = /* @__PURE__ */
|
|
159
|
+
], _t = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), wt = [
|
|
160
160
|
_t
|
|
161
|
-
], Lt = /* @__PURE__ */
|
|
161
|
+
], Lt = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), xt = [
|
|
162
162
|
Lt
|
|
163
|
-
], Ct = ["onClick"], St = /* @__PURE__ */
|
|
163
|
+
], Ct = ["onClick"], St = /* @__PURE__ */ J(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), kt = /* @__PURE__ */ J(() => /* @__PURE__ */ l("i", { class: "iconfont" }, "", -1)), zt = [
|
|
164
164
|
kt
|
|
165
165
|
], Pt = { class: "weather-layers" }, Tt = {
|
|
166
166
|
class: "layers-title",
|
|
167
167
|
style: { display: "flex", "align-items": "center", "justify-content": "space-between" }
|
|
168
|
-
}, Et = { style: { "font-size": "12px" } }, It = { class: "layers-body" }, Rt = ["onClick"], Dt = /* @__PURE__ */
|
|
168
|
+
}, Et = { style: { "font-size": "12px" } }, It = { class: "layers-body" }, Rt = ["onClick"], Dt = /* @__PURE__ */ J(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), At = { class: "other-layers" }, Mt = /* @__PURE__ */ J(() => /* @__PURE__ */ l("div", { class: "layers-title" }, "Other Layers", -1)), $t = { class: "layers-body" }, Bt = ["onClick"], Nt = /* @__PURE__ */ J(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Wt = { class: "source-layers" }, Ot = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "layers-title" }, "Forecast Model", -1)), jt = { class: "layers-body model-box" };
|
|
169
169
|
function Ft(t, e, a, r, i, o) {
|
|
170
170
|
const n = z("ElScrollbar");
|
|
171
171
|
return w(), L("div", dt, [
|
|
@@ -285,7 +285,7 @@ function Ft(t, e, a, r, i, o) {
|
|
|
285
285
|
], 4)
|
|
286
286
|
]);
|
|
287
287
|
}
|
|
288
|
-
const Vt = /* @__PURE__ */ T(ht, [["render", Ft], ["__scopeId", "data-v-
|
|
288
|
+
const Vt = /* @__PURE__ */ T(ht, [["render", Ft], ["__scopeId", "data-v-63871fba"]]);
|
|
289
289
|
const Ut = {
|
|
290
290
|
name: "IdmWindBarb",
|
|
291
291
|
props: {
|
|
@@ -573,7 +573,7 @@ class Ue {
|
|
|
573
573
|
a !== r && this.map.setLayoutProperty(this.particleLayer, "visibility", r);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
class
|
|
576
|
+
class we {
|
|
577
577
|
/**
|
|
578
578
|
* 创建着色器
|
|
579
579
|
* @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
|
|
@@ -2588,7 +2588,7 @@ const Kt = {
|
|
|
2588
2588
|
texture: void 0,
|
|
2589
2589
|
rampColor: void 0,
|
|
2590
2590
|
aPositionBuffer: void 0,
|
|
2591
|
-
webgl: new
|
|
2591
|
+
webgl: new we(),
|
|
2592
2592
|
etime: void 0,
|
|
2593
2593
|
wrapper: void 0,
|
|
2594
2594
|
animation: void 0,
|
|
@@ -2726,7 +2726,7 @@ const Kt = {
|
|
|
2726
2726
|
});
|
|
2727
2727
|
}
|
|
2728
2728
|
}
|
|
2729
|
-
},
|
|
2729
|
+
}, le = (t) => (U("data-v-41a686d0"), t = t(), G(), t), ea = { key: 0 }, ta = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "kts", -1)), aa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "0", -1)), ia = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "5", -1)), ra = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "10", -1)), oa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "20", -1)), sa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "30", -1)), na = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "40", -1)), la = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "60", -1)), ca = [
|
|
2730
2730
|
ta,
|
|
2731
2731
|
aa,
|
|
2732
2732
|
ia,
|
|
@@ -2975,7 +2975,7 @@ const _a = {
|
|
|
2975
2975
|
texture: void 0,
|
|
2976
2976
|
rampColor: void 0,
|
|
2977
2977
|
aPositionBuffer: void 0,
|
|
2978
|
-
webgl: new
|
|
2978
|
+
webgl: new we(),
|
|
2979
2979
|
etime: void 0,
|
|
2980
2980
|
wrapper: void 0,
|
|
2981
2981
|
animation: void 0,
|
|
@@ -3108,7 +3108,7 @@ const _a = {
|
|
|
3108
3108
|
});
|
|
3109
3109
|
}
|
|
3110
3110
|
}
|
|
3111
|
-
},
|
|
3111
|
+
}, Le = (t) => (U("data-v-9115889b"), t = t(), G(), t), wa = { key: 0 }, La = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "kts", -1)), xa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0", -1)), Ca = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.4", -1)), Sa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.8", -1)), ka = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "1.6", -1)), za = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "2", -1)), Pa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ta = [
|
|
3112
3112
|
La,
|
|
3113
3113
|
xa,
|
|
3114
3114
|
Ca,
|
|
@@ -3828,6 +3828,8 @@ const Ua = {
|
|
|
3828
3828
|
"circle-radius": 4,
|
|
3829
3829
|
"circle-color": [
|
|
3830
3830
|
"case",
|
|
3831
|
+
["boolean", ["==", ["get", "spd", ["get", "wind"]], null]],
|
|
3832
|
+
"#03f869",
|
|
3831
3833
|
["boolean", ["<", ["get", "spd", ["get", "wind"]], 17.2]],
|
|
3832
3834
|
"#03f869",
|
|
3833
3835
|
["boolean", ["<=", ["get", "spd", ["get", "wind"]], 24.5]],
|
|
@@ -3932,11 +3934,11 @@ const Ua = {
|
|
|
3932
3934
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
|
|
3933
3935
|
},
|
|
3934
3936
|
handleDateChange() {
|
|
3935
|
-
var t, e, a, r, i, o, n, s, c, h, d, p, f, m, g, y, u, v, b, x, k, _, D, A, B, W, O, H,
|
|
3936
|
-
if ((t = this.interpolateMarkers) == null || t.forEach((
|
|
3937
|
-
const
|
|
3938
|
-
|
|
3939
|
-
Y.features.push(
|
|
3937
|
+
var t, e, a, r, i, o, n, s, c, h, d, p, f, m, g, y, u, v, b, x, k, _, D, A, B, W, O, H, de, pe, me, ue, ye, fe, ge, ae;
|
|
3938
|
+
if ((t = this.interpolateMarkers) == null || t.forEach((Z) => Z == null ? void 0 : Z.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
3939
|
+
const Z = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), q = this.interpolateData.filter((E) => E.properties.date === Z.format() && !E.properties.disabled), be = this.handleComputePolygons(q), Y = C.featureCollection([...q]);
|
|
3940
|
+
be.forEach((E) => {
|
|
3941
|
+
Y.features.push(E);
|
|
3940
3942
|
}), (a = this.map) != null && a.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(Y) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
3941
3943
|
type: "geojson",
|
|
3942
3944
|
data: Y
|
|
@@ -3951,11 +3953,11 @@ const Ua = {
|
|
|
3951
3953
|
"line-width": 1
|
|
3952
3954
|
}
|
|
3953
3955
|
})), this.interpolateMarkers = [];
|
|
3954
|
-
for (const
|
|
3955
|
-
if (!
|
|
3956
|
+
for (const E of q)
|
|
3957
|
+
if (!E.properties.disabled) {
|
|
3956
3958
|
let F = "#f44336";
|
|
3957
|
-
((s = (n =
|
|
3958
|
-
const
|
|
3959
|
+
((s = (n = E.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = E.properties) == null ? void 0 : c.wind) != null && h.spd) ? F = "#03f869" : ((p = (d = E.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((m = (f = E.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 24.5 ? F = "#f2f202" : ((y = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : y.spd) >= 24.5 && ((v = (u = E.properties) == null ? void 0 : u.wind) == null ? void 0 : v.spd) < 32.7 ? F = "#ff9100" : ((x = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : x.spd) >= 32.7 && ((_ = (k = E.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) < 41.5 ? F = "#f44336" : ((A = (D = E.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((W = (B = E.properties) == null ? void 0 : B.wind) == null ? void 0 : W.spd) < 51 ? F = "#f903d0" : ((H = (O = E.properties) == null ? void 0 : O.wind) == null ? void 0 : H.spd) >= 51 ? F = "#8702f9" : F = "#f44336";
|
|
3960
|
+
const ve = `<svg t="1719918955501"
|
|
3959
3961
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
3960
3962
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
3961
3963
|
<path
|
|
@@ -3970,22 +3972,22 @@ const Ua = {
|
|
|
3970
3972
|
d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
|
|
3971
3973
|
fill="#ffffff" p-id="18386"></path>
|
|
3972
3974
|
</svg>`, Q = document.createElement("div");
|
|
3973
|
-
Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${
|
|
3974
|
-
const
|
|
3975
|
-
if (this.interpolateMarkers.push(
|
|
3976
|
-
const
|
|
3977
|
-
(
|
|
3978
|
-
C.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3979
|
-
), (he = this.circleSourceData) == null || he.features.push(
|
|
3975
|
+
Q.className = "hurricane-hourly-marker", Q.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ve}</div>`;
|
|
3976
|
+
const _e = new ne.Marker(Q).setLngLat(E.geometry.coordinates).addTo(this.map);
|
|
3977
|
+
if (this.interpolateMarkers.push(_e), (de = E.properties) != null && de.showCircle) {
|
|
3978
|
+
const ie = { radius: 100, coordinates: E.geometry.coordinates }, re = { radius: 200, coordinates: E.geometry.coordinates }, oe = { radius: 500, coordinates: E.geometry.coordinates };
|
|
3979
|
+
(pe = this.circleSourceData) == null || pe.features.push(
|
|
3980
3980
|
C.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3981
|
-
), (
|
|
3981
|
+
), (me = this.circleSourceData) == null || me.features.push(
|
|
3982
3982
|
C.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3983
|
+
), (ue = this.circleSourceData) == null || ue.features.push(
|
|
3984
|
+
C.circle(oe.coordinates, oe.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
3983
3985
|
);
|
|
3984
3986
|
}
|
|
3985
|
-
(
|
|
3987
|
+
(fe = (ye = this.map) == null ? void 0 : ye.getSource(this.circleSource)) == null || fe.setData(this.circleSourceData);
|
|
3986
3988
|
}
|
|
3987
3989
|
} else
|
|
3988
|
-
(
|
|
3990
|
+
(ge = this.map) != null && ge.getSource(this.interpolateSource) && ((ae = this.map) == null || ae.getSource(this.interpolateSource).setData(this.empty));
|
|
3989
3991
|
},
|
|
3990
3992
|
handleClick(t) {
|
|
3991
3993
|
var o, n, s, c, h, d, p, f;
|
|
@@ -4012,7 +4014,7 @@ const Ua = {
|
|
|
4012
4014
|
showCircle: (f = (p = a[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
|
|
4013
4015
|
}, this.showTropicals = !0;
|
|
4014
4016
|
const i = document.getElementById("active-tropical");
|
|
4015
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new
|
|
4017
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.activeTropicalsMarker = new ne.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
4016
4018
|
},
|
|
4017
4019
|
handleForecastToggle(t) {
|
|
4018
4020
|
var r, i, o, n, s, c;
|
|
@@ -4097,7 +4099,7 @@ const Ua = {
|
|
|
4097
4099
|
return C.lineToPolygon(i, { properties: a });
|
|
4098
4100
|
}
|
|
4099
4101
|
}
|
|
4100
|
-
}, Ge = (t) => (U("data-v-
|
|
4102
|
+
}, Ge = (t) => (U("data-v-62a2f148"), t = t(), G(), t), Ga = {
|
|
4101
4103
|
id: "active-tropical",
|
|
4102
4104
|
class: "active-tropical"
|
|
4103
4105
|
}, Ha = { class: "header-box" }, Za = { class: "main" }, Ja = { key: 0 }, Xa = { class: "sub" }, qa = {
|
|
@@ -4112,7 +4114,7 @@ const Ua = {
|
|
|
4112
4114
|
}, ai = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), ii = { class: "row" }, ri = {
|
|
4113
4115
|
class: "col col-24",
|
|
4114
4116
|
style: { "justify-content": "flex-start" }
|
|
4115
|
-
}, oi = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), si = { class: "forecast-models" }, ni = ["onClick"], li = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-
|
|
4117
|
+
}, oi = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), si = { class: "forecast-models" }, ni = ["onClick"], li = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-62a2f148></div><div class="row" style="padding:2px 10px;" data-v-62a2f148><div class="legend" data-v-62a2f148><div class="icon td" data-v-62a2f148></div><div class="label" data-v-62a2f148>TD</div></div><div class="legend" data-v-62a2f148><div class="icon ts" data-v-62a2f148></div><div class="label" data-v-62a2f148>TS</div></div><div class="legend" data-v-62a2f148><div class="icon sts" data-v-62a2f148></div><div class="label" data-v-62a2f148>STS</div></div><div class="legend" data-v-62a2f148><div class="icon ty" data-v-62a2f148></div><div class="label" data-v-62a2f148>TY</div></div><div class="legend" data-v-62a2f148><div class="icon sty" data-v-62a2f148></div><div class="label" data-v-62a2f148>STY</div></div><div class="legend" data-v-62a2f148><div class="icon supper-ty" data-v-62a2f148></div><div class="label" data-v-62a2f148>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-62a2f148><div class="legend" data-v-62a2f148><div class="icon history" data-v-62a2f148></div><div class="label" data-v-62a2f148>History</div></div><div class="legend" data-v-62a2f148><div class="icon r7" data-v-62a2f148></div><div class="label" data-v-62a2f148>35kts Radii</div></div><div class="legend" data-v-62a2f148><div class="icon r10" data-v-62a2f148></div><div class="label" data-v-62a2f148>50kts Radii</div></div></div>', 3), ci = { class: "more" };
|
|
4116
4118
|
function hi(t, e, a, r, i, o) {
|
|
4117
4119
|
var n, s, c, h, d, p, f, m, g, y, u, v, b, x, k;
|
|
4118
4120
|
return $e((w(), L("div", Ga, [
|
|
@@ -4175,7 +4177,7 @@ function hi(t, e, a, r, i, o) {
|
|
|
4175
4177
|
[Be, i.showTropicals && !t.$attrs.hideTropicalsLegend]
|
|
4176
4178
|
]);
|
|
4177
4179
|
}
|
|
4178
|
-
const tt = /* @__PURE__ */ T(Ua, [["render", hi], ["__scopeId", "data-v-
|
|
4180
|
+
const tt = /* @__PURE__ */ T(Ua, [["render", hi], ["__scopeId", "data-v-62a2f148"]]);
|
|
4179
4181
|
const di = {
|
|
4180
4182
|
name: "IdmPrecip3h",
|
|
4181
4183
|
props: {
|
|
@@ -4204,7 +4206,7 @@ const di = {
|
|
|
4204
4206
|
texture: void 0,
|
|
4205
4207
|
rampColor: void 0,
|
|
4206
4208
|
aPositionBuffer: void 0,
|
|
4207
|
-
webgl: new
|
|
4209
|
+
webgl: new we(),
|
|
4208
4210
|
etime: void 0,
|
|
4209
4211
|
right: 10
|
|
4210
4212
|
};
|
|
@@ -4277,7 +4279,7 @@ const di = {
|
|
|
4277
4279
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4278
4280
|
}
|
|
4279
4281
|
}
|
|
4280
|
-
},
|
|
4282
|
+
}, ce = (t) => (U("data-v-dec867b8"), t = t(), G(), t), pi = { key: 0 }, mi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "mm", -1)), ui = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), yi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "2", -1)), fi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "3", -1)), gi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "7", -1)), bi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "10", -1)), vi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "20", -1)), _i = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "30", -1)), wi = [
|
|
4281
4283
|
mi,
|
|
4282
4284
|
ui,
|
|
4283
4285
|
yi,
|
|
@@ -4325,7 +4327,7 @@ const Ci = {
|
|
|
4325
4327
|
texture: void 0,
|
|
4326
4328
|
rampColor: void 0,
|
|
4327
4329
|
aPositionBuffer: void 0,
|
|
4328
|
-
webgl: new
|
|
4330
|
+
webgl: new we(),
|
|
4329
4331
|
etime: void 0
|
|
4330
4332
|
};
|
|
4331
4333
|
},
|
|
@@ -4391,7 +4393,7 @@ const Ci = {
|
|
|
4391
4393
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4392
4394
|
}
|
|
4393
4395
|
}
|
|
4394
|
-
},
|
|
4396
|
+
}, Ce = (t) => (U("data-v-952dee5c"), t = t(), G(), t), Si = { key: 0 }, ki = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "nm", -1)), zi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0", -1)), Pi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Ti = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), Ei = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "3", -1)), Ii = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "9", -1)), Ri = [
|
|
4395
4397
|
ki,
|
|
4396
4398
|
zi,
|
|
4397
4399
|
Pi,
|
|
@@ -4437,7 +4439,7 @@ const Mi = {
|
|
|
4437
4439
|
texture: void 0,
|
|
4438
4440
|
rampColor: void 0,
|
|
4439
4441
|
aPositionBuffer: void 0,
|
|
4440
|
-
webgl: new
|
|
4442
|
+
webgl: new we(),
|
|
4441
4443
|
etime: void 0,
|
|
4442
4444
|
right: 10
|
|
4443
4445
|
};
|
|
@@ -4511,7 +4513,7 @@ const Mi = {
|
|
|
4511
4513
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4512
4514
|
}
|
|
4513
4515
|
}
|
|
4514
|
-
},
|
|
4516
|
+
}, Se = (t) => (U("data-v-67e5094b"), t = t(), G(), t), $i = { key: 0 }, Bi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ni = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "0", -1)), Wi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "10", -1)), Oi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "20", -1)), ji = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "30", -1)), Fi = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "40", -1)), Vi = [
|
|
4515
4517
|
Bi,
|
|
4516
4518
|
Ni,
|
|
4517
4519
|
Wi,
|
|
@@ -4557,7 +4559,7 @@ const Hi = {
|
|
|
4557
4559
|
texture: void 0,
|
|
4558
4560
|
rampColor: void 0,
|
|
4559
4561
|
aPositionBuffer: void 0,
|
|
4560
|
-
webgl: new
|
|
4562
|
+
webgl: new we(),
|
|
4561
4563
|
etime: void 0,
|
|
4562
4564
|
right: 10
|
|
4563
4565
|
};
|
|
@@ -4634,7 +4636,7 @@ const Hi = {
|
|
|
4634
4636
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4635
4637
|
}
|
|
4636
4638
|
}
|
|
4637
|
-
},
|
|
4639
|
+
}, he = (t) => (U("data-v-389ea886"), t = t(), G(), t), Zi = { key: 0 }, Ji = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "°C", -1)), Xi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-20", -1)), qi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-10", -1)), Yi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0", -1)), Qi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "10", -1)), Ki = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "20", -1)), er = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "30", -1)), tr = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "40", -1)), ar = [
|
|
4638
4640
|
Ji,
|
|
4639
4641
|
Xi,
|
|
4640
4642
|
qi,
|
|
@@ -4682,7 +4684,7 @@ const or = {
|
|
|
4682
4684
|
texture: void 0,
|
|
4683
4685
|
rampColor: void 0,
|
|
4684
4686
|
aPositionBuffer: void 0,
|
|
4685
|
-
webgl: new
|
|
4687
|
+
webgl: new we(),
|
|
4686
4688
|
etime: void 0,
|
|
4687
4689
|
right: 10
|
|
4688
4690
|
};
|
|
@@ -4750,7 +4752,7 @@ const or = {
|
|
|
4750
4752
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
4751
4753
|
}
|
|
4752
4754
|
}
|
|
4753
|
-
},
|
|
4755
|
+
}, ke = (t) => (U("data-v-db805141"), t = t(), G(), t), sr = { key: 0 }, nr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "m", -1)), lr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "0", -1)), cr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "0.5", -1)), hr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "1", -1)), dr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "1.5", -1)), pr = /* @__PURE__ */ ke(() => /* @__PURE__ */ l("span", null, "2", -1)), mr = [
|
|
4754
4756
|
nr,
|
|
4755
4757
|
lr,
|
|
4756
4758
|
cr,
|
|
@@ -4843,11 +4845,11 @@ const fr = {
|
|
|
4843
4845
|
var t;
|
|
4844
4846
|
if (this.meteo) {
|
|
4845
4847
|
const e = document.getElementById("point-meteo");
|
|
4846
|
-
this.meteoMarker ? (t = this.meteoMarker) == null || t.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new
|
|
4848
|
+
this.meteoMarker ? (t = this.meteoMarker) == null || t.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new ne.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
|
|
4847
4849
|
}
|
|
4848
4850
|
}
|
|
4849
4851
|
}
|
|
4850
|
-
}, X = (t) => (U("data-v-
|
|
4852
|
+
}, X = (t) => (U("data-v-24f49eee"), t = t(), G(), t), gr = {
|
|
4851
4853
|
id: "point-meteo",
|
|
4852
4854
|
class: "point-meteo"
|
|
4853
4855
|
}, br = { class: "meteo-box" }, vr = { class: "header-box" }, _r = { class: "main" }, wr = { class: "sub" }, Lr = { class: "main-box" }, xr = { class: "flex-space" }, Cr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Sr = { class: "flex-space" }, kr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), zr = { class: "flex-space" }, Pr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Tr = { class: "flex-space" }, Er = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), Ir = { class: "flex-space" }, Rr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Current", -1)), Dr = { class: "flex-space" }, Ar = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Mr = { class: "flex-space" }, $r = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Br = { class: "flex-space" }, Nr = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Wr = { class: "flex-space" }, Or = /* @__PURE__ */ X(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), jr = {
|
|
@@ -4858,7 +4860,7 @@ const fr = {
|
|
|
4858
4860
|
Fr
|
|
4859
4861
|
];
|
|
4860
4862
|
function Ur(t, e, a, r, i, o) {
|
|
4861
|
-
var n, s, c, h, d, p, f, m, g, y, u, v, b, x, k, _, D, A, B, W, O, H,
|
|
4863
|
+
var n, s, c, h, d, p, f, m, g, y, u, v, b, x, k, _, D, A, B, W, O, H, de, pe, me, ue, ye, fe, ge, ae, Z, q, be, Y, E, F, ve, Q, _e, ie, re, oe, ze, Pe, Te, Ee, Ie;
|
|
4862
4864
|
return $e((w(), L("div", gr, [
|
|
4863
4865
|
l("div", br, [
|
|
4864
4866
|
l("div", vr, [
|
|
@@ -4880,15 +4882,15 @@ function Ur(t, e, a, r, i, o) {
|
|
|
4880
4882
|
]),
|
|
4881
4883
|
l("div", zr, [
|
|
4882
4884
|
Pr,
|
|
4883
|
-
l("span", null, S(((
|
|
4885
|
+
l("span", null, S(((de = (H = (O = a.meteo) == null ? void 0 : O.wave) == null ? void 0 : H.swell) == null ? void 0 : de.direction) || "-") + "/" + S(o.roundPrecision((ue = (me = (pe = a.meteo) == null ? void 0 : pe.wave) == null ? void 0 : me.swell) == null ? void 0 : ue.height, 1)) + "[m]/" + S(o.roundPrecision((ge = (fe = (ye = a.meteo) == null ? void 0 : ye.wave) == null ? void 0 : fe.swell) == null ? void 0 : ge.period, 1)) + "[s]", 1)
|
|
4884
4886
|
]),
|
|
4885
4887
|
l("div", Tr, [
|
|
4886
4888
|
Er,
|
|
4887
|
-
l("span", null, S(((
|
|
4889
|
+
l("span", null, S(((q = (Z = (ae = a.meteo) == null ? void 0 : ae.wave) == null ? void 0 : Z.sig) == null ? void 0 : q.direction) || "-") + "/" + S(o.roundPrecision((E = (Y = (be = a.meteo) == null ? void 0 : be.wave) == null ? void 0 : Y.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((Q = (ve = (F = a.meteo) == null ? void 0 : F.wave) == null ? void 0 : ve.sig) == null ? void 0 : Q.period, 1)) + "[s]", 1)
|
|
4888
4890
|
]),
|
|
4889
4891
|
l("div", Ir, [
|
|
4890
4892
|
Rr,
|
|
4891
|
-
l("span", null, S(((
|
|
4893
|
+
l("span", null, S(((ie = (_e = a.meteo) == null ? void 0 : _e.current) == null ? void 0 : ie.direction) || "-") + "/" + S(o.roundPrecision((oe = (re = a.meteo) == null ? void 0 : re.current) == null ? void 0 : oe.kts, 2)) + "[kts]", 1)
|
|
4892
4894
|
]),
|
|
4893
4895
|
l("div", Dr, [
|
|
4894
4896
|
Ar,
|
|
@@ -4913,7 +4915,7 @@ function Ur(t, e, a, r, i, o) {
|
|
|
4913
4915
|
[Be, i.showMeteo]
|
|
4914
4916
|
]);
|
|
4915
4917
|
}
|
|
4916
|
-
const Gr = /* @__PURE__ */ T(fr, [["render", Ur], ["__scopeId", "data-v-
|
|
4918
|
+
const Gr = /* @__PURE__ */ T(fr, [["render", Ur], ["__scopeId", "data-v-24f49eee"]]), Hr = {
|
|
4917
4919
|
name: "IdmWarZone",
|
|
4918
4920
|
props: {
|
|
4919
4921
|
map: {
|
|
@@ -5417,7 +5419,7 @@ const so = {
|
|
|
5417
5419
|
if (a) {
|
|
5418
5420
|
this.showPort = !0, this.form = { ...a.properties }, this.form.lng = a.geometry.coordinates[0], this.form.lat = a.geometry.coordinates[1];
|
|
5419
5421
|
const i = document.getElementById("port-info");
|
|
5420
|
-
this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new
|
|
5422
|
+
this.marker ? this.marker.setLngLat([t.lngLat.lng, t.lngLat.lat]) : this.marker = new ne.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
5421
5423
|
}
|
|
5422
5424
|
},
|
|
5423
5425
|
handleEmit() {
|
|
@@ -6239,7 +6241,7 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6239
6241
|
const s = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
|
|
6240
6242
|
if (s.length > 2 && s.filter((h) => h.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
6241
6243
|
const h = document.createElement("div");
|
|
6242
|
-
h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new
|
|
6244
|
+
h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ne.Marker(h).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
6243
6245
|
}
|
|
6244
6246
|
}
|
|
6245
6247
|
},
|
|
@@ -6278,7 +6280,7 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6278
6280
|
const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, d = Oe(c, h, s.mode === "RL", 2), p = je(c, h, s.mode === "RL", 2);
|
|
6279
6281
|
a = te.roundPrecision(a + d, 2);
|
|
6280
6282
|
let f;
|
|
6281
|
-
s.mode === "RL" ? f =
|
|
6283
|
+
s.mode === "RL" ? f = xe([c, h]) : f = xe(Fe(c, h, 200));
|
|
6282
6284
|
const m = C.lineString(f.map((g) => [g.lng, g.lat]));
|
|
6283
6285
|
m.properties.dist = d, m.properties.bearing = p, m.properties.total = a, r.push(m);
|
|
6284
6286
|
}
|
|
@@ -6293,7 +6295,7 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6293
6295
|
const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: a.lng, lat: a.lat };
|
|
6294
6296
|
o = Oe(h, d, c.mode === "RL", 2), n = je(h, d, c.mode === "RL", 2);
|
|
6295
6297
|
let p;
|
|
6296
|
-
c.mode === "RL" ? p =
|
|
6298
|
+
c.mode === "RL" ? p = xe([h, d]) : p = xe(Fe(h, d, 200));
|
|
6297
6299
|
const f = C.lineString(p.map((m) => [m.lng, m.lat]));
|
|
6298
6300
|
f.properties.dist = o, f.properties.bearing = n, i.features.push(f);
|
|
6299
6301
|
}
|
|
@@ -6301,7 +6303,7 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6301
6303
|
const c = a.properties, h = a, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
6302
6304
|
o = Oe(h, d, c.mode === "RL", 2), n = je(h, d, c.mode === "RL", 2);
|
|
6303
6305
|
let p;
|
|
6304
|
-
c.mode === "RL" ? p =
|
|
6306
|
+
c.mode === "RL" ? p = xe([h, d]) : p = xe(Fe(h, d, 200));
|
|
6305
6307
|
const f = C.lineString(p.map((m) => [m.lng, m.lat]));
|
|
6306
6308
|
f.properties.dist = o, f.properties.bearing = n, i.features.push(f);
|
|
6307
6309
|
}
|
|
@@ -6347,7 +6349,7 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6347
6349
|
this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([a.lng, a.lat]);
|
|
6348
6350
|
else {
|
|
6349
6351
|
const c = document.createElement("div");
|
|
6350
|
-
c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new
|
|
6352
|
+
c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new ne.Marker(c).setOffset([140, 0]).setLngLat([a.lng, a.lat]).addTo(this.map);
|
|
6351
6353
|
}
|
|
6352
6354
|
},
|
|
6353
6355
|
handleMove(t) {
|
|
@@ -6405,12 +6407,12 @@ const at = /* @__PURE__ */ T(Mo, [["render", No], ["__scopeId", "data-v-51cc4052
|
|
|
6405
6407
|
for (const n of o) {
|
|
6406
6408
|
const s = document.createElement("div");
|
|
6407
6409
|
s.id = `${t.id}-${n.properties.id}`, s.className = `${t.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
|
|
6408
|
-
const c = new
|
|
6410
|
+
const c = new ne.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
6409
6411
|
c.on("drag", this.handleDrag), c.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(c) : this.pointMarkers[t.id] = [c];
|
|
6410
6412
|
}
|
|
6411
6413
|
if (t.closed) {
|
|
6412
6414
|
const n = o.at(-1), c = t.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
|
|
6413
|
-
h.className = "point-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[t.id] = new
|
|
6415
|
+
h.className = "point-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[t.id] = new ne.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
|
|
6414
6416
|
}
|
|
6415
6417
|
}
|
|
6416
6418
|
},
|
|
@@ -6671,7 +6673,7 @@ const Yo = {
|
|
|
6671
6673
|
if (this.weatherWeight > 0) {
|
|
6672
6674
|
let y = this.weatherWeight, u;
|
|
6673
6675
|
if (t.tropicals || this.weatherWeight & 256 && (u = this.weatherLayers.tropicals, u && (y -= 256, u.version = Math.random() + 1)), y > 0) {
|
|
6674
|
-
const v = await
|
|
6676
|
+
const v = await se.get(`${this.gateway}/api/arc/weather/layers/links?l=${y}&v=${this.source}&z=${f}&bbox=${g}&t=${this.ts}`, {
|
|
6675
6677
|
headers: {
|
|
6676
6678
|
Authorization: this.token || this.defaultMeteoToken
|
|
6677
6679
|
}
|
|
@@ -6680,7 +6682,7 @@ const Yo = {
|
|
|
6680
6682
|
const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, x = [];
|
|
6681
6683
|
for (const _ in b)
|
|
6682
6684
|
_ === "ice-edge" && (b[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && x.push(
|
|
6683
|
-
|
|
6685
|
+
se.get(b[_], {
|
|
6684
6686
|
headers: {
|
|
6685
6687
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6686
6688
|
key: _
|
|
@@ -6699,7 +6701,7 @@ const Yo = {
|
|
|
6699
6701
|
type: ((H = _ == null ? void 0 : _.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
|
|
6700
6702
|
etime: this.ts
|
|
6701
6703
|
});
|
|
6702
|
-
}), b.tropicals &&
|
|
6704
|
+
}), b.tropicals && se.get(b.tropicals, {
|
|
6703
6705
|
headers: {
|
|
6704
6706
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6705
6707
|
key: "tropicals"
|
|
@@ -6750,7 +6752,7 @@ const Yo = {
|
|
|
6750
6752
|
let n = !1;
|
|
6751
6753
|
if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, n = !0), o) {
|
|
6752
6754
|
if (t.all) {
|
|
6753
|
-
const s = await
|
|
6755
|
+
const s = await se.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
|
|
6754
6756
|
headers: {
|
|
6755
6757
|
Authorization: this.token || this.defaultMeteoToken
|
|
6756
6758
|
}
|
|
@@ -6759,7 +6761,7 @@ const Yo = {
|
|
|
6759
6761
|
const c = (a = s == null ? void 0 : s.data) == null ? void 0 : a.data, h = [];
|
|
6760
6762
|
for (const p in c)
|
|
6761
6763
|
h.push(
|
|
6762
|
-
|
|
6764
|
+
se.get(c[p], {
|
|
6763
6765
|
headers: {
|
|
6764
6766
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6765
6767
|
key: p
|
|
@@ -6774,7 +6776,7 @@ const Yo = {
|
|
|
6774
6776
|
});
|
|
6775
6777
|
}
|
|
6776
6778
|
} else if (t.dayNight && o & 1024) {
|
|
6777
|
-
const s = await
|
|
6779
|
+
const s = await se.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
6778
6780
|
headers: {
|
|
6779
6781
|
Authorization: this.token || this.defaultMeteoToken
|
|
6780
6782
|
}
|
|
@@ -6783,7 +6785,7 @@ const Yo = {
|
|
|
6783
6785
|
const c = (i = s == null ? void 0 : s.data) == null ? void 0 : i.data, h = [];
|
|
6784
6786
|
for (const p in c)
|
|
6785
6787
|
h.push(
|
|
6786
|
-
|
|
6788
|
+
se.get(c[p], {
|
|
6787
6789
|
headers: {
|
|
6788
6790
|
Authorization: this.token || this.defaultMeteoToken,
|
|
6789
6791
|
key: p
|
|
@@ -7087,7 +7089,7 @@ const Yo = {
|
|
|
7087
7089
|
ts: e.utc().format(),
|
|
7088
7090
|
wt: !0,
|
|
7089
7091
|
src: this.source
|
|
7090
|
-
}, r = await
|
|
7092
|
+
}, r = await se.get(`${this.gateway}/api/arc/meteo/query`, {
|
|
7091
7093
|
params: a,
|
|
7092
7094
|
headers: {
|
|
7093
7095
|
Authorization: this.token || this.defaultMeteoToken
|
|
@@ -7111,10 +7113,10 @@ const Yo = {
|
|
|
7111
7113
|
className: "map-gl-home"
|
|
7112
7114
|
};
|
|
7113
7115
|
function Ko(t, e, a, r, i, o) {
|
|
7114
|
-
var q,
|
|
7115
|
-
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), f = z("IdmTropicals"), m = z("IdmCurrents"), g = z("IdmCurrentParticle"), y = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), x = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), B = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), H = z("IdmLoadLine"),
|
|
7116
|
+
var ae, Z, q, be, Y, E, F, ve, Q, _e, ie, re, oe, ze, Pe, Te, Ee, Ie, We, He, Ze, Je, Xe, qe, Ye, Qe;
|
|
7117
|
+
const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), f = z("IdmTropicals"), m = z("IdmCurrents"), g = z("IdmCurrentParticle"), y = z("IdmWindBarb"), u = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), x = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), B = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), H = z("IdmLoadLine"), de = z("IdmTimezone"), pe = z("IdmVRA"), me = z("IdmSpecialArea"), ue = z("IdmTerminator"), ye = z("IdmLatLng"), fe = z("IdmMeasure"), ge = z("IdmPoint");
|
|
7116
7118
|
return a.map ? (w(), L("div", Qo, [
|
|
7117
|
-
P(n,
|
|
7119
|
+
P(n, I({
|
|
7118
7120
|
ref: "layer",
|
|
7119
7121
|
map: a.map,
|
|
7120
7122
|
"toggle-version": i.toggleVersion,
|
|
@@ -7128,63 +7130,63 @@ function Ko(t, e, a, r, i, o) {
|
|
|
7128
7130
|
on3d: o.handle3dToggle,
|
|
7129
7131
|
onToggleVersion: e[3] || (e[3] = (K) => i.toggleVersion = K)
|
|
7130
7132
|
}), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d"]),
|
|
7131
|
-
P(s,
|
|
7133
|
+
P(s, I({
|
|
7132
7134
|
map: a.map,
|
|
7133
7135
|
token: a.token,
|
|
7134
|
-
enabled: (
|
|
7136
|
+
enabled: (ae = i.otherLayers) == null ? void 0 : ae.enc,
|
|
7135
7137
|
"toggle-version": i.toggleVersion
|
|
7136
7138
|
}, t.$attrs, {
|
|
7137
7139
|
onEnc: e[4] || (e[4] = (K) => i.enc = K)
|
|
7138
7140
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
7139
|
-
P(c,
|
|
7141
|
+
P(c, I({
|
|
7140
7142
|
map: a.map,
|
|
7141
|
-
"sig-wave": (
|
|
7143
|
+
"sig-wave": (Z = i.weatherLayers) == null ? void 0 : Z["sig-wave-height"],
|
|
7142
7144
|
"before-layer": a.beforeLayer
|
|
7143
7145
|
}, t.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
|
|
7144
|
-
P(h,
|
|
7146
|
+
P(h, I({
|
|
7145
7147
|
map: a.map,
|
|
7146
|
-
swell: (
|
|
7148
|
+
swell: (q = i.weatherLayers) == null ? void 0 : q.swell,
|
|
7147
7149
|
"before-layer": a.beforeLayer
|
|
7148
7150
|
}, t.$attrs), null, 16, ["map", "swell", "before-layer"]),
|
|
7149
|
-
P(d,
|
|
7151
|
+
P(d, I({
|
|
7150
7152
|
map: a.map,
|
|
7151
|
-
prmsl: (
|
|
7153
|
+
prmsl: (be = i.weatherLayers) == null ? void 0 : be.prmsl,
|
|
7152
7154
|
"before-layer": a.beforeLayer,
|
|
7153
7155
|
"active-weather-layers": i.activeWeatherLayers
|
|
7154
7156
|
}, t.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
7155
|
-
P(p,
|
|
7157
|
+
P(p, I({
|
|
7156
7158
|
map: a.map,
|
|
7157
|
-
iceberg: (
|
|
7159
|
+
iceberg: (Y = i.weatherLayers) == null ? void 0 : Y.iceberg,
|
|
7158
7160
|
"before-layer": a.beforeLayer
|
|
7159
7161
|
}, t.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
7160
|
-
P(f,
|
|
7162
|
+
P(f, I({
|
|
7161
7163
|
map: a.map,
|
|
7162
7164
|
date: a.ts,
|
|
7163
|
-
tropicals: (
|
|
7165
|
+
tropicals: (E = i.weatherLayers) == null ? void 0 : E.tropicals,
|
|
7164
7166
|
"before-layer": a.beforeLayer
|
|
7165
7167
|
}, t.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
7166
|
-
P(m,
|
|
7168
|
+
P(m, I({
|
|
7167
7169
|
map: a.map,
|
|
7168
7170
|
"map-projection": i.mapProjection,
|
|
7169
|
-
current: (
|
|
7171
|
+
current: (F = i.weatherLayers) == null ? void 0 : F.current,
|
|
7170
7172
|
"before-layer": a.beforeLayer,
|
|
7171
7173
|
"show-particle": i.showCurrentParticle,
|
|
7172
7174
|
"margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
|
|
7173
7175
|
"toggle-version": i.toggleVersion,
|
|
7174
7176
|
"weather-layers": i.weatherLayers
|
|
7175
7177
|
}, t.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
|
|
7176
|
-
P(g,
|
|
7178
|
+
P(g, I({
|
|
7177
7179
|
viewport: i.viewport,
|
|
7178
|
-
factor: (
|
|
7180
|
+
factor: (ve = i.weatherLayers) == null ? void 0 : ve["current-particle"],
|
|
7179
7181
|
"before-layer": a.beforeLayer,
|
|
7180
7182
|
"toggle-version": i.toggleVersion
|
|
7181
7183
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7182
|
-
P(y,
|
|
7184
|
+
P(y, I({
|
|
7183
7185
|
ref: "windBarb",
|
|
7184
7186
|
map: a.map,
|
|
7185
7187
|
"map-projection": i.mapProjection,
|
|
7186
|
-
wind: (
|
|
7187
|
-
current: (
|
|
7188
|
+
wind: (Q = i.weatherLayers) == null ? void 0 : Q.wind,
|
|
7189
|
+
current: (_e = i.weatherLayers) == null ? void 0 : _e.current,
|
|
7188
7190
|
"before-layer": a.beforeLayer,
|
|
7189
7191
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
7190
7192
|
"show-particle": i.showWindParticle
|
|
@@ -7193,101 +7195,101 @@ function Ko(t, e, a, r, i, o) {
|
|
|
7193
7195
|
"weather-layers": i.weatherLayers,
|
|
7194
7196
|
onParticle: o.handleParticle
|
|
7195
7197
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
|
|
7196
|
-
P(u,
|
|
7198
|
+
P(u, I({
|
|
7197
7199
|
viewport: i.viewport,
|
|
7198
|
-
factor: (
|
|
7200
|
+
factor: (ie = i.weatherLayers) == null ? void 0 : ie["wind-particle"],
|
|
7199
7201
|
"before-layer": a.beforeLayer,
|
|
7200
7202
|
"toggle-version": i.toggleVersion
|
|
7201
7203
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7202
|
-
P(v,
|
|
7204
|
+
P(v, I({
|
|
7203
7205
|
viewport: i.viewport,
|
|
7204
|
-
factor: (
|
|
7206
|
+
factor: (re = i.weatherLayers) == null ? void 0 : re.precip3h,
|
|
7205
7207
|
"before-layer": a.beforeLayer,
|
|
7206
7208
|
"toggle-version": i.toggleVersion
|
|
7207
7209
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7208
|
-
P(b,
|
|
7210
|
+
P(b, I({
|
|
7209
7211
|
viewport: i.viewport,
|
|
7210
|
-
factor: (
|
|
7212
|
+
factor: (oe = i.weatherLayers) == null ? void 0 : oe.visibility,
|
|
7211
7213
|
"before-layer": a.beforeLayer,
|
|
7212
7214
|
"toggle-version": i.toggleVersion
|
|
7213
7215
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7214
|
-
P(x,
|
|
7216
|
+
P(x, I({
|
|
7215
7217
|
viewport: i.viewport,
|
|
7216
7218
|
factor: (ze = i.weatherLayers) == null ? void 0 : ze["water-temp"],
|
|
7217
7219
|
"before-layer": a.beforeLayer,
|
|
7218
7220
|
"toggle-version": i.toggleVersion
|
|
7219
7221
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7220
|
-
P(k,
|
|
7222
|
+
P(k, I({
|
|
7221
7223
|
viewport: i.viewport,
|
|
7222
7224
|
factor: (Pe = i.weatherLayers) == null ? void 0 : Pe.temp,
|
|
7223
7225
|
"before-layer": a.beforeLayer,
|
|
7224
7226
|
"toggle-version": i.toggleVersion
|
|
7225
7227
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7226
|
-
P(_,
|
|
7228
|
+
P(_, I({
|
|
7227
7229
|
viewport: i.viewport,
|
|
7228
7230
|
factor: (Te = i.weatherLayers) == null ? void 0 : Te.arctic,
|
|
7229
7231
|
"before-layer": a.beforeLayer,
|
|
7230
7232
|
"toggle-version": i.toggleVersion
|
|
7231
7233
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
7232
|
-
P(D,
|
|
7234
|
+
P(D, I({
|
|
7233
7235
|
map: a.map,
|
|
7234
7236
|
zone: (Ee = i.otherLayers) == null ? void 0 : Ee["war-zones"],
|
|
7235
7237
|
"before-layer": a.beforeLayer
|
|
7236
7238
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7237
|
-
P(A,
|
|
7239
|
+
P(A, I({
|
|
7238
7240
|
map: a.map,
|
|
7239
7241
|
area: (Ie = i.otherLayers) == null ? void 0 : Ie["gmdss-areas"],
|
|
7240
7242
|
"before-layer": a.beforeLayer
|
|
7241
7243
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7242
|
-
P(B,
|
|
7244
|
+
P(B, I({
|
|
7243
7245
|
map: a.map,
|
|
7244
7246
|
zone: (We = i.otherLayers) == null ? void 0 : We["eca-zones"],
|
|
7245
7247
|
"before-layer": a.beforeLayer
|
|
7246
7248
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7247
|
-
P(W,
|
|
7249
|
+
P(W, I({
|
|
7248
7250
|
map: a.map,
|
|
7249
7251
|
zone: (He = i.otherLayers) == null ? void 0 : He["alert-zones"],
|
|
7250
7252
|
"before-layer": a.beforeLayer
|
|
7251
7253
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7252
|
-
P(O,
|
|
7254
|
+
P(O, I({
|
|
7253
7255
|
map: a.map,
|
|
7254
7256
|
port: (Ze = i.otherLayers) == null ? void 0 : Ze.ports,
|
|
7255
7257
|
"before-layer": a.beforeLayer
|
|
7256
7258
|
}, t.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
7257
|
-
P(H,
|
|
7259
|
+
P(H, I({
|
|
7258
7260
|
map: a.map,
|
|
7259
7261
|
line: (Je = i.otherLayers) == null ? void 0 : Je["load-lines"],
|
|
7260
7262
|
"before-layer": a.beforeLayer
|
|
7261
7263
|
}, t.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
7262
|
-
P(
|
|
7264
|
+
P(de, I({
|
|
7263
7265
|
map: a.map,
|
|
7264
7266
|
zone: (Xe = i.otherLayers) == null ? void 0 : Xe["time-zones"],
|
|
7265
7267
|
"before-layer": a.beforeLayer
|
|
7266
7268
|
}, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
7267
|
-
P(
|
|
7269
|
+
P(pe, I({
|
|
7268
7270
|
map: a.map,
|
|
7269
7271
|
area: (qe = i.otherLayers) == null ? void 0 : qe["voluntary-reporting-area"],
|
|
7270
7272
|
"before-layer": a.beforeLayer
|
|
7271
7273
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7272
|
-
P(
|
|
7274
|
+
P(me, I({
|
|
7273
7275
|
map: a.map,
|
|
7274
7276
|
area: (Ye = i.otherLayers) == null ? void 0 : Ye["special-area"],
|
|
7275
7277
|
"before-layer": a.beforeLayer
|
|
7276
7278
|
}, t.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
7277
|
-
P(
|
|
7279
|
+
P(ue, I({
|
|
7278
7280
|
map: a.map,
|
|
7279
7281
|
area: (Qe = i.otherLayers) == null ? void 0 : Qe["day-night"]
|
|
7280
7282
|
}, t.$attrs), null, 16, ["map", "area"]),
|
|
7281
|
-
P(
|
|
7283
|
+
P(ye, I({
|
|
7282
7284
|
map: a.map,
|
|
7283
7285
|
show: i.showCoord,
|
|
7284
7286
|
"toggle-version": i.toggleVersion
|
|
7285
7287
|
}, t.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
7286
|
-
P(
|
|
7288
|
+
P(fe, I({
|
|
7287
7289
|
map: a.map,
|
|
7288
7290
|
show: i.showMeasure
|
|
7289
7291
|
}, t.$attrs), null, 16, ["map", "show"]),
|
|
7290
|
-
P(
|
|
7292
|
+
P(ge, I({
|
|
7291
7293
|
map: a.map,
|
|
7292
7294
|
show: i.showPoint,
|
|
7293
7295
|
meteo: i.meteo
|
|
@@ -7307,6 +7309,6 @@ export {
|
|
|
7307
7309
|
V as ParticleSchema,
|
|
7308
7310
|
tt as TropicalGL,
|
|
7309
7311
|
Ue as Viewport,
|
|
7310
|
-
|
|
7312
|
+
we as WebGL,
|
|
7311
7313
|
N as WebGLSchema
|
|
7312
7314
|
};
|