@idmwx/idmui-gl4 1.7.5 → 1.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var de = (t, e, o) => (Ka(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
|
4
4
|
import Se from "axios";
|
|
5
5
|
import { useTheme as ze } from "vuetify";
|
|
6
6
|
import { openBlock as y, createElementBlock as S, resolveComponent as x, createBlock as R, withCtx as f, createVNode as p, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as Ne, toDisplayString as m, createTextVNode as K, Fragment as be, renderList as we, withDirectives as Ue, vShow as We, mergeProps as B, normalizeStyle as ie } from "vue";
|
|
7
|
-
import
|
|
7
|
+
import xe from "mapbox-gl";
|
|
8
8
|
import M from "moment";
|
|
9
9
|
import { LngLatHelper as X, TropicalHelper as Va, LaneHelper as Ge } from "@idm-plugin/geo";
|
|
10
10
|
import { Meteo2Assist as Co, TidesAssist as Ya } from "@idm-plugin/meteo";
|
|
@@ -389,7 +389,7 @@ const mi = {
|
|
|
389
389
|
const l = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (u = l == null ? void 0 : l.children[1]) == null ? void 0 : u.children[0];
|
|
390
390
|
c && (c.onclick = () => {
|
|
391
391
|
this.handleRemoveMarker();
|
|
392
|
-
}), this.marker = new
|
|
392
|
+
}), this.marker = new xe.Marker(l).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([230, 0]).addTo(this.map);
|
|
393
393
|
}));
|
|
394
394
|
},
|
|
395
395
|
handleRender() {
|
|
@@ -1487,10 +1487,10 @@ const ui = {
|
|
|
1487
1487
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
1488
1488
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
1489
1489
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
1490
|
-
var c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me,
|
|
1490
|
+
var c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, ve, Le, Pe;
|
|
1491
1491
|
let r = {};
|
|
1492
1492
|
const l = ((c = Co.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
|
|
1493
|
-
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((_ = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : _.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = l == null ? void 0 : l.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((z = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : z.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (k = l == null ? void 0 : l.wave) == null ? void 0 : k.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (V = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((W = (Z = l == null ? void 0 : l.wave) == null ? void 0 : Z.sig) == null ? void 0 : W.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((J = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.height, 1) ?? "-", r.windwaveDir = (ne = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.direction, r.windwavePeriod = this.computeRoundPrecision((Q = (se = l == null ? void 0 : l.wave) == null ? void 0 : se.wd) == null ? void 0 : Q.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((he = (ae = l == null ? void 0 : l.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.height, 1) ?? "-", r.swellDir = (pe = (ce = l == null ? void 0 : l.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.direction, r.swellPeriod = this.computeRoundPrecision((F = (ge = l == null ? void 0 : l.wave) == null ? void 0 : ge.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = l == null ? void 0 : l.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (
|
|
1493
|
+
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((_ = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : _.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = l == null ? void 0 : l.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((z = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : z.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (k = l == null ? void 0 : l.wave) == null ? void 0 : k.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (V = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((W = (Z = l == null ? void 0 : l.wave) == null ? void 0 : Z.sig) == null ? void 0 : W.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((J = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.height, 1) ?? "-", r.windwaveDir = (ne = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.direction, r.windwavePeriod = this.computeRoundPrecision((Q = (se = l == null ? void 0 : l.wave) == null ? void 0 : se.wd) == null ? void 0 : Q.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((he = (ae = l == null ? void 0 : l.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.height, 1) ?? "-", r.swellDir = (pe = (ce = l == null ? void 0 : l.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.direction, r.swellPeriod = this.computeRoundPrecision((F = (ge = l == null ? void 0 : l.wave) == null ? void 0 : ge.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = l == null ? void 0 : l.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (ve = l == null ? void 0 : l.current) == null ? void 0 : ve.direction, r.currentSpeed = this.computeRoundPrecision((Le = l == null ? void 0 : l.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
1494
1494
|
});
|
|
1495
1495
|
},
|
|
1496
1496
|
handleTide() {
|
|
@@ -2025,7 +2025,7 @@ const br = {
|
|
|
2025
2025
|
if (e.properties.id) {
|
|
2026
2026
|
this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
|
|
2027
2027
|
const r = (a = document.getElementById("idmPortInfo")) == null ? void 0 : a.cloneNode(!0);
|
|
2028
|
-
this.marker = new
|
|
2028
|
+
this.marker = new xe.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
|
|
2029
2029
|
}
|
|
2030
2030
|
},
|
|
2031
2031
|
handleLeave() {
|
|
@@ -2140,7 +2140,8 @@ const Pr = /* @__PURE__ */ Y(zr, [["render", Lr]]), Cr = {
|
|
|
2140
2140
|
source: "time-zone-source",
|
|
2141
2141
|
zoneLayer: "time-zone-layer",
|
|
2142
2142
|
zoneBorderLayer: "time-zone-border-layer",
|
|
2143
|
-
zoneLabelLayer: "time-zone-label-layer"
|
|
2143
|
+
zoneLabelLayer: "time-zone-label-layer",
|
|
2144
|
+
marker: null
|
|
2144
2145
|
};
|
|
2145
2146
|
},
|
|
2146
2147
|
watch: {
|
|
@@ -2160,7 +2161,7 @@ const Pr = /* @__PURE__ */ Y(zr, [["render", Lr]]), Cr = {
|
|
|
2160
2161
|
features: [],
|
|
2161
2162
|
type: "FeatureCollection"
|
|
2162
2163
|
};
|
|
2163
|
-
t.features = (e = this.zone.features) == null ? void 0 : e.map((o) => (o.properties.opacity = 0, o.properties.
|
|
2164
|
+
t.features = (e = this.zone.features) == null ? void 0 : e.map((o) => (o.properties.opacity = 0, o.properties.lineOpacity = 0.2, o.properties.width = 1, o)), this.zone && (this.map.addSource(this.source, {
|
|
2164
2165
|
type: "geojson",
|
|
2165
2166
|
data: t
|
|
2166
2167
|
}), this.map.addLayer(
|
|
@@ -2280,60 +2281,34 @@ const Pr = /* @__PURE__ */ Y(zr, [["render", Lr]]), Cr = {
|
|
|
2280
2281
|
source: this.source,
|
|
2281
2282
|
filter: ["==", "$type", "Polygon"],
|
|
2282
2283
|
paint: {
|
|
2283
|
-
"line-color": "
|
|
2284
|
+
"line-color": this.Theme.current.value.colors["on-surface"],
|
|
2284
2285
|
"line-opacity": ["get", "lineOpacity"],
|
|
2285
2286
|
"line-width": ["get", "width"]
|
|
2286
2287
|
}
|
|
2287
2288
|
},
|
|
2288
2289
|
this.beforeLayer
|
|
2289
|
-
), this.map.addLayer(
|
|
2290
|
-
{
|
|
2291
|
-
id: this.zoneLabelLayer,
|
|
2292
|
-
type: "symbol",
|
|
2293
|
-
source: this.source,
|
|
2294
|
-
filter: ["==", "$type", "Point"],
|
|
2295
|
-
layout: {
|
|
2296
|
-
"symbol-placement": "point",
|
|
2297
|
-
"text-field": "UTC {offSet}",
|
|
2298
|
-
"text-rotation-alignment": "viewport",
|
|
2299
|
-
"text-size": 14,
|
|
2300
|
-
"text-offset": [0, 1],
|
|
2301
|
-
"text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"]
|
|
2302
|
-
},
|
|
2303
|
-
paint: {
|
|
2304
|
-
"text-color": this.Theme.current.value.colors["on-surface"],
|
|
2305
|
-
"text-opacity": ["get", "textOpacity"]
|
|
2306
|
-
}
|
|
2307
|
-
},
|
|
2308
|
-
this.beforeLayer
|
|
2309
2290
|
));
|
|
2310
2291
|
},
|
|
2311
2292
|
handleClear() {
|
|
2312
2293
|
this.map.getLayer(this.zoneLayer) && this.map.removeLayer(this.zoneLayer), this.map.getLayer(this.zoneBorderLayer) && this.map.removeLayer(this.zoneBorderLayer), this.map.getLayer(this.zoneLabelLayer) && this.map.removeLayer(this.zoneLabelLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
2313
2294
|
},
|
|
2314
2295
|
handleHover(t) {
|
|
2315
|
-
var e, o;
|
|
2296
|
+
var e, o, i;
|
|
2316
2297
|
if (t.features.length) {
|
|
2317
|
-
|
|
2298
|
+
(e = this.marker) == null || e.remove();
|
|
2299
|
+
let a = {
|
|
2318
2300
|
features: [],
|
|
2319
2301
|
type: "FeatureCollection"
|
|
2320
2302
|
};
|
|
2321
|
-
|
|
2322
|
-
const
|
|
2323
|
-
return
|
|
2324
|
-
}), (
|
|
2303
|
+
a.features = (o = this.zone.features) == null ? void 0 : o.map((l) => {
|
|
2304
|
+
const c = JSON.parse(JSON.stringify(l));
|
|
2305
|
+
return c.properties.offSet === t.features[0].properties.offSet ? (c.properties.opacity = 0.25, c.properties.lineOpacity = 0.7, c.properties.width = 2) : (c.properties.opacity = 0, c.properties.lineOpacity = 0.2, c.properties.width = 1), c;
|
|
2306
|
+
}), (i = this.map.getSource(this.source)) == null || i.setData(a);
|
|
2307
|
+
const r = document.createElement("div");
|
|
2308
|
+
r.className = "v-card--variant-elevated rounded px-2 py-1 text-body-1", r.innerHTML = `<div>UTC ${t.features[0].properties.offSet}</div>`, this.marker = new xe.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -30]).addTo(this.map);
|
|
2325
2309
|
}
|
|
2326
2310
|
},
|
|
2327
2311
|
handleLeave() {
|
|
2328
|
-
var e, o;
|
|
2329
|
-
let t = {
|
|
2330
|
-
features: [],
|
|
2331
|
-
type: "FeatureCollection"
|
|
2332
|
-
};
|
|
2333
|
-
t.features = (e = this.zone.features) == null ? void 0 : e.map((i) => {
|
|
2334
|
-
const a = JSON.parse(JSON.stringify(i));
|
|
2335
|
-
return a.properties.opacity = 0, a.properties.textOpacity = 0, a.properties.lineOpacity = 0.3, a.properties.width = 1, a;
|
|
2336
|
-
}), (o = this.map.getSource(this.source)) == null || o.setData(t);
|
|
2337
2312
|
}
|
|
2338
2313
|
}
|
|
2339
2314
|
};
|
|
@@ -3178,7 +3153,7 @@ const Ms = {
|
|
|
3178
3153
|
if (e.properties) {
|
|
3179
3154
|
this.showInfo = !0, this.hoverStation = e.properties, this.hoverStation.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.hoverStation.lng = e.geometry.coordinates[0], this.hoverStation.lat = e.geometry.coordinates[1], (o = this.marker) == null || o.remove();
|
|
3180
3155
|
const a = (i = document.getElementById("idmTidalInfo")) == null ? void 0 : i.cloneNode(!0);
|
|
3181
|
-
this.marker = new
|
|
3156
|
+
this.marker = new xe.Marker(a).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -60]).addTo(this.map);
|
|
3182
3157
|
}
|
|
3183
3158
|
},
|
|
3184
3159
|
handleLeave() {
|
|
@@ -4340,7 +4315,7 @@ const Gs = {
|
|
|
4340
4315
|
if (e.properties.id) {
|
|
4341
4316
|
this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
|
|
4342
4317
|
const r = (a = document.getElementById("idmFollowPortInfo")) == null ? void 0 : a.cloneNode(!0);
|
|
4343
|
-
this.marker = new
|
|
4318
|
+
this.marker = new xe.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
|
|
4344
4319
|
}
|
|
4345
4320
|
},
|
|
4346
4321
|
handleLeave() {
|
|
@@ -4516,7 +4491,7 @@ const qs = {
|
|
|
4516
4491
|
if (e.properties.id) {
|
|
4517
4492
|
this.showInfo = !0, this.position = e.properties, (o = this.marker) == null || o.remove();
|
|
4518
4493
|
const i = document.getElementById("idmFollowPositionInfo").cloneNode(!0);
|
|
4519
|
-
this.marker = new
|
|
4494
|
+
this.marker = new xe.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
|
|
4520
4495
|
}
|
|
4521
4496
|
},
|
|
4522
4497
|
handleLeave() {
|
|
@@ -5012,7 +4987,7 @@ function hl(t, e, o, i, a, r) {
|
|
|
5012
4987
|
key: 2,
|
|
5013
4988
|
map: o.map,
|
|
5014
4989
|
zone: (ne = a.otherLayers) == null ? void 0 : ne["time-zones"]
|
|
5015
|
-
}, t.$attrs, { beforeLayer: "empty-layer-
|
|
4990
|
+
}, t.$attrs, { beforeLayer: "empty-layer-3" }), null, 16, ["map", "zone"])) : D("", !0),
|
|
5016
4991
|
o.map ? (y(), R(T, B({
|
|
5017
4992
|
key: 3,
|
|
5018
4993
|
ref: "idmPorts",
|
|
@@ -8332,7 +8307,7 @@ const wn = {
|
|
|
8332
8307
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
8333
8308
|
}, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, jn = { class: "text-body-2 text-label" }, Nn = { class: "text-body-2 text-label mb-3" }, Fn = { class: "text-body-1 font-weight-medium" }, Hn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label" }, Un = { class: "text-body-2 text-label mb-3" }, Wn = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Kn = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label mb-3" }, Qn = { class: "text-body-1 py-2" }, ec = { class: "text-body-1 font-weight-medium" }, tc = { class: "text-body-2 text-label" }, oc = { class: "text-body-2 text-label" }, ac = { class: "text-body-2 text-label mb-3" };
|
|
8334
8309
|
function ic(t, e, o, i, a, r) {
|
|
8335
|
-
var Q, ae, he, ce, pe, ge, F, me,
|
|
8310
|
+
var Q, ae, he, ce, pe, ge, F, me, ve, Le, Pe, De, Ae, Re, _e;
|
|
8336
8311
|
const l = x("VBtn"), c = x("VTooltip"), n = x("VCol"), u = x("VRow"), h = x("VCardText"), b = x("VDivider"), w = x("VCard"), _ = x("VSwitch"), g = x("VCardTitle"), P = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), I = x("VBtnToggle"), L = x("IdmWindBarb"), z = x("IdmSigWaveHeight"), v = x("IdmCurrentDirection"), C = x("IdmPrmsl"), k = x("IdmWindParticle"), A = x("IdmCurrentParticle"), N = x("IdmWave"), V = x("IdmSwell"), Z = x("IdmIceEdge"), W = x("IdmIceCover"), ee = x("IdmIceThickness"), J = x("IdmPrecip3h"), $ = x("IdmVisibility"), ne = x("IdmWaterTemp"), se = x("IdmTemp");
|
|
8337
8312
|
return y(), S("div", xn, [
|
|
8338
8313
|
s("div", {
|
|
@@ -8847,7 +8822,7 @@ function ic(t, e, o, i, a, r) {
|
|
|
8847
8822
|
o.map ? (y(), R(Z, B({
|
|
8848
8823
|
key: 9,
|
|
8849
8824
|
viewport: a.viewport,
|
|
8850
|
-
factor: (
|
|
8825
|
+
factor: (ve = a.weatherLayers) == null ? void 0 : ve["ice-edge"],
|
|
8851
8826
|
"menu-toggle": o.menuToggle
|
|
8852
8827
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
|
|
8853
8828
|
o.map ? (y(), R(W, B({
|
|
@@ -9235,7 +9210,7 @@ class Za {
|
|
|
9235
9210
|
}), a;
|
|
9236
9211
|
}
|
|
9237
9212
|
static pickHourly(e, o) {
|
|
9238
|
-
var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me,
|
|
9213
|
+
var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, ve, Le, Pe, De, Ae, Re, _e, G, te, He, Me;
|
|
9239
9214
|
const ue = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, Ce = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Ce.clone().add((c = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), re = Ce.clone().add((h = (u = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : u.time) == null ? void 0 : h.at(-1), "h"), Oe = [];
|
|
9240
9215
|
if (ue.isBetween(oe, re, "millisecond", "[]")) {
|
|
9241
9216
|
const j = ue.utc().diff(oe, "h", !1);
|
|
@@ -9301,7 +9276,7 @@ class Za {
|
|
|
9301
9276
|
},
|
|
9302
9277
|
wd: {
|
|
9303
9278
|
height: (me = E == null ? void 0 : E.wind_wave_height) == null ? void 0 : me.at(j),
|
|
9304
|
-
degree: (
|
|
9279
|
+
degree: (ve = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : ve.at(j),
|
|
9305
9280
|
bearing: ((Le = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : Le.at(j)) !== null ? (((Pe = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : Pe.at(j)) + 180) % 360 : null,
|
|
9306
9281
|
period: (De = E == null ? void 0 : E.wind_wave_period) == null ? void 0 : De.at(j),
|
|
9307
9282
|
peakPeriod: (Ae = E == null ? void 0 : E.wind_wave_peak_period) == null ? void 0 : Ae.at(j)
|
|
@@ -9344,7 +9319,7 @@ class Za {
|
|
|
9344
9319
|
};
|
|
9345
9320
|
}
|
|
9346
9321
|
static pickDaily(e, o) {
|
|
9347
|
-
var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me,
|
|
9322
|
+
var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, ve, Le, Pe, De, Ae;
|
|
9348
9323
|
const Re = typeof o == "string" ? M(o) : o, _e = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, te = M((r = (a = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = M((n = (c = (l = _e == null ? void 0 : _e[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Me = [];
|
|
9349
9324
|
if (Re.isBetween(te, He, "millisecond", "[]")) {
|
|
9350
9325
|
let ue, fe;
|
|
@@ -9413,7 +9388,7 @@ class Za {
|
|
|
9413
9388
|
},
|
|
9414
9389
|
wd: {
|
|
9415
9390
|
height: (me = re.wind_wave_height_max) == null ? void 0 : me.at(U),
|
|
9416
|
-
degree: (
|
|
9391
|
+
degree: (ve = re.wind_wave_direction_dominant) == null ? void 0 : ve.at(U),
|
|
9417
9392
|
period: (Le = re.wind_wave_period_max) == null ? void 0 : Le.at(U),
|
|
9418
9393
|
peakPeriod: (Pe = re.wind_wave_peak_period_max) == null ? void 0 : Pe.at(U),
|
|
9419
9394
|
bearing: ((De = re.wind_wave_direction_dominant) == null ? void 0 : De.at(U)) !== null ? (((Ae = re.wind_wave_direction_dominant) == null ? void 0 : Ae.at(U)) + 180) % 360 : null
|
|
@@ -10353,7 +10328,7 @@ const sc = {
|
|
|
10353
10328
|
fill="#ffffff" p-id="18386"></path>
|
|
10354
10329
|
</svg>`, ce = document.createElement("div");
|
|
10355
10330
|
ce.className = "idm-tropical-gl4-hourly-marker", ce.innerHTML = `<div class="${Q.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${he}</div>`;
|
|
10356
|
-
const pe = new
|
|
10331
|
+
const pe = new xe.Marker(ce).setLngLat(Q.geometry.coordinates).addTo(this.map);
|
|
10357
10332
|
this.interpolateMarkers.push(pe);
|
|
10358
10333
|
}
|
|
10359
10334
|
} else
|
|
@@ -10380,7 +10355,7 @@ const sc = {
|
|
|
10380
10355
|
showCircle: (w = (b = o[0]) == null ? void 0 : b.properties) == null ? void 0 : w.showCircle
|
|
10381
10356
|
}, this.showTropicalsInfo = !0, this.$nextTick(() => {
|
|
10382
10357
|
const _ = document.getElementById("idm-tropical-gl4-info");
|
|
10383
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new
|
|
10358
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new xe.Marker(_).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
10384
10359
|
});
|
|
10385
10360
|
},
|
|
10386
10361
|
handleCloseInfoMarker() {
|
|
@@ -10480,7 +10455,7 @@ const sc = {
|
|
|
10480
10455
|
);
|
|
10481
10456
|
this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], this.hoverPoint.update = (c = (l = i == null ? void 0 : i[0]) == null ? void 0 : l.properties) == null ? void 0 : c.date, (n = this.hoverMarker) == null || n.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
|
|
10482
10457
|
const u = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
|
|
10483
|
-
this.hoverMarker = new
|
|
10458
|
+
this.hoverMarker = new xe.Marker(u).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
|
|
10484
10459
|
}));
|
|
10485
10460
|
},
|
|
10486
10461
|
handleLeave() {
|
|
@@ -11351,10 +11326,10 @@ const nm = {
|
|
|
11351
11326
|
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
|
|
11352
11327
|
},
|
|
11353
11328
|
initTableData(t) {
|
|
11354
|
-
var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me,
|
|
11329
|
+
var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, ve;
|
|
11355
11330
|
this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
|
|
11356
11331
|
const e = ((l = Co.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
11357
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((z = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : z.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((W = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.wd) == null ? void 0 : W.height, 1) ?? "-", this.currentHourData.windwaveDir = (J = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((ne = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((Q = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.swellDir = (he = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((pe = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (
|
|
11332
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((z = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : z.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((W = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.wd) == null ? void 0 : W.height, 1) ?? "-", this.currentHourData.windwaveDir = (J = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : J.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((ne = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((Q = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.swellDir = (he = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((pe = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
|
|
11358
11333
|
},
|
|
11359
11334
|
handleBind() {
|
|
11360
11335
|
var t, e;
|
|
@@ -11380,9 +11355,9 @@ const nm = {
|
|
|
11380
11355
|
var i, a, r;
|
|
11381
11356
|
(i = this.positionMarker) == null || i.remove();
|
|
11382
11357
|
const e = (a = document.getElementById("idm-position-icon")) == null ? void 0 : a.cloneNode(!0);
|
|
11383
|
-
this.positionMarker = new
|
|
11358
|
+
this.positionMarker = new xe.Marker(e).setLngLat(t).setOffset([0, -15]).addTo(this.map);
|
|
11384
11359
|
const o = document.getElementById("idm-gl4-spot-meteo");
|
|
11385
|
-
this.meteoInfoMarker ? (r = this.meteoInfoMarker) == null || r.setLngLat(t) : this.meteoInfoMarker = new
|
|
11360
|
+
this.meteoInfoMarker ? (r = this.meteoInfoMarker) == null || r.setLngLat(t) : this.meteoInfoMarker = new xe.Marker(o).setLngLat(t).setOffset([0, -190]).addTo(this.map);
|
|
11386
11361
|
}));
|
|
11387
11362
|
},
|
|
11388
11363
|
handleMeteoMore() {
|
|
@@ -12094,7 +12069,7 @@ const Km = {
|
|
|
12094
12069
|
const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
|
|
12095
12070
|
if (c.length > 2 && c.filter((u) => u.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
12096
12071
|
const u = document.createElement("div");
|
|
12097
|
-
u.className = "idm-gl4-measure-contextmenu-marker", u.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new
|
|
12072
|
+
u.className = "idm-gl4-measure-contextmenu-marker", u.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new xe.Marker(u).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
12098
12073
|
}
|
|
12099
12074
|
}
|
|
12100
12075
|
},
|
|
@@ -12216,7 +12191,7 @@ const Km = {
|
|
|
12216
12191
|
this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([o.lng, o.lat]);
|
|
12217
12192
|
else {
|
|
12218
12193
|
const n = document.createElement("div");
|
|
12219
|
-
n.className = "idm-gl4-measure-tip-marker", n.innerHTML = c, this.tipMarker = new
|
|
12194
|
+
n.className = "idm-gl4-measure-tip-marker", n.innerHTML = c, this.tipMarker = new xe.Marker(n).setOffset([140, 0]).setLngLat([o.lng, o.lat]).addTo(this.map);
|
|
12220
12195
|
}
|
|
12221
12196
|
},
|
|
12222
12197
|
handleMove(t) {
|
|
@@ -12292,12 +12267,12 @@ const Km = {
|
|
|
12292
12267
|
for (const c of l) {
|
|
12293
12268
|
const n = document.createElement("div");
|
|
12294
12269
|
n.id = `${t.id}-${c.properties.id}`, n.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
|
|
12295
|
-
const u = new
|
|
12270
|
+
const u = new xe.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
12296
12271
|
u.on("drag", this.handleDrag), u.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(u) : this.pointMarkers[t.id] = [u];
|
|
12297
12272
|
}
|
|
12298
12273
|
if (t.closed) {
|
|
12299
12274
|
const c = l.at(-1), u = t.features.filter((b) => b.geometry.type === "LineString").at(-1), h = document.createElement("div");
|
|
12300
|
-
h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${u.properties.name}</div>`, this.closeMarkers[t.id] = new
|
|
12275
|
+
h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${u.properties.name}</div>`, this.closeMarkers[t.id] = new xe.Marker(h).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
12301
12276
|
}
|
|
12302
12277
|
}
|
|
12303
12278
|
},
|
|
@@ -12917,7 +12892,7 @@ class yd {
|
|
|
12917
12892
|
de(this, "hi");
|
|
12918
12893
|
de(this, "td");
|
|
12919
12894
|
de(this, "windy");
|
|
12920
|
-
var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me,
|
|
12895
|
+
var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, N, V, Z, W, ee, J, $, ne, se, Q, ae, he, ce, pe, ge, F, me, ve, Le, Pe, De, Ae, Re, _e, G, te, He, Me, ue, fe, U, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke, Je, Qe, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Ut, Wt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ao, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Uo, Wo, Vo, Zo, Yo, qo, Xo, $o, Ko, Jo, Qo, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Da, Aa, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga, Ua, Wa;
|
|
12921
12896
|
this.i4 = {
|
|
12922
12897
|
source: {
|
|
12923
12898
|
type: "raster",
|
|
@@ -31578,7 +31553,7 @@ class yd {
|
|
|
31578
31553
|
(ce = (he = this.originStyle) == null ? void 0 : he.light.layers) == null ? void 0 : ce.find((d) => d.id === "china-route-line"),
|
|
31579
31554
|
(ge = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : ge.find((d) => d.id === "china-route-fill"),
|
|
31580
31555
|
(me = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : me.find((d) => d.id === "china-route-label"),
|
|
31581
|
-
(Le = (
|
|
31556
|
+
(Le = (ve = this.originStyle) == null ? void 0 : ve.light.layers) == null ? void 0 : Le.find((d) => d.id === "admin-0-boundary-bg"),
|
|
31582
31557
|
(De = (Pe = this.originStyle) == null ? void 0 : Pe.light.layers) == null ? void 0 : De.find((d) => d.id === "admin-0-boundary"),
|
|
31583
31558
|
(Re = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : Re.find((d) => d.id === "admin-0-boundary-disputed"),
|
|
31584
31559
|
(G = (_e = this.originStyle) == null ? void 0 : _e.light.layers) == null ? void 0 : G.find((d) => d.id === "country-label"),
|
|
@@ -31835,8 +31810,8 @@ const bd = {
|
|
|
31835
31810
|
},
|
|
31836
31811
|
methods: {
|
|
31837
31812
|
async initOnlineMap() {
|
|
31838
|
-
this.helper = new yd(this.token),
|
|
31839
|
-
const t = new
|
|
31813
|
+
this.helper = new yd(this.token), xe.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
31814
|
+
const t = new xe.Map({
|
|
31840
31815
|
container: "map",
|
|
31841
31816
|
// style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
|
|
31842
31817
|
// style: 'mapbox://styles/neatchenheng/cmdqwez32005b01re2w0k3zk4', // dark
|
|
@@ -31863,7 +31838,7 @@ const bd = {
|
|
|
31863
31838
|
},
|
|
31864
31839
|
addScaleControl() {
|
|
31865
31840
|
var e;
|
|
31866
|
-
this.map.addControl(new
|
|
31841
|
+
this.map.addControl(new xe.ScaleControl({ maxWidth: 120, unit: "nautical" }), "bottom-left");
|
|
31867
31842
|
const t = (e = document.getElementsByClassName("mapboxgl-ctrl-scale")) == null ? void 0 : e[0];
|
|
31868
31843
|
t && (t.className = "mapboxgl-ctrl-scale " + this.mapFeather);
|
|
31869
31844
|
},
|