@idmwx/idmui-gl3 5.7.8 → 5.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -125,6 +125,10 @@ const O = (t, e) => {
|
|
|
125
125
|
}
|
|
126
126
|
return "-";
|
|
127
127
|
};
|
|
128
|
+
},
|
|
129
|
+
sourceCode() {
|
|
130
|
+
var t;
|
|
131
|
+
return (t = this.sourceList.find((e) => e.name === this.source)) == null ? void 0 : t.code;
|
|
128
132
|
}
|
|
129
133
|
},
|
|
130
134
|
watch: {
|
|
@@ -200,26 +204,18 @@ const O = (t, e) => {
|
|
|
200
204
|
)), e = localStorage.getItem(this.activeWeatherLayersCache), a = JSON.parse(e), this.autoActive ? this.activeWeatherLayers = [...a] : this.activeWeatherLayersCollected = [...a], a.some((r) => r.key === "wind" && r.particle) && (this.$emit("toggleWindParticle", !0), this.showWindParticleCollected = !0), a.some((r) => r.key === "current" && r.particle) && (this.$emit("toggleCurrentParticle", !0), this.showCurrentParticleCollected = !0), this.showWindFeatherCollected = JSON.parse(localStorage.getItem(this.windFeatherCollectedCache)), this.showCurrentIsobandCollected = JSON.parse(localStorage.getItem(this.currentIsobandCollectedCache)), this.autoActive && (this.$emit("toggleWindFeather", this.showWindFeatherCollected), this.$emit("toggleCurrentIsoband", this.showCurrentIsobandCollected)), a.some((r) => r.key === "wind" && !r.particle && !this.showWindFeatherCollected) && (a = a.filter((r) => r.key !== "wind")), a.some((r) => r.key === "current" && !r.particle && !this.showCurrentIsobandCollected) && (a = a.filter((r) => r.key !== "current")), e = localStorage.getItem(this.activeOtherLayersCache), a = JSON.parse(e || '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}, {"weight": 2048,"name": "ENC","key": "enc","h5": true,"enabled": true,"type": "origin"}]'), this.activeOtherLayers = a, e = localStorage.getItem(this.sourceCache), this.source = this.forecastModel ? this.forecastModel : e ? e === "CMEMS" ? "ECMWF" : e : this.source, this.$emit("forecastModel", this.source);
|
|
201
205
|
},
|
|
202
206
|
handleConfirm() {
|
|
203
|
-
|
|
204
|
-
if (this.autoActive) {
|
|
205
|
-
const e = (t = this.sourceList.find((a) => a.name === this.source)) == null ? void 0 : t.code;
|
|
206
|
-
this.$emit("weather", JSON.parse(localStorage.getItem(this.activeWeatherLayersCache)), e);
|
|
207
|
-
}
|
|
208
|
-
this.$emit("other", this.activeOtherLayers), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
|
|
207
|
+
this.autoActive && this.$emit("weather", JSON.parse(localStorage.getItem(this.activeWeatherLayersCache)), this.sourceCode), this.$emit("other", this.activeOtherLayers), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
|
|
209
208
|
},
|
|
210
209
|
handleWeatherLayerPick(t) {
|
|
211
|
-
var a;
|
|
212
210
|
if (this.activeWeatherLayers = JSON.parse(localStorage.getItem(this.activeWeatherLayersCache)), this.rampColorLayers.includes(t.key) && this.mapProjection === "globe" || !this.autoActive)
|
|
213
211
|
return !1;
|
|
214
|
-
(t.key === "wind" && !this.showWindFeather || t.key === "current" && !this.showCurrentIsoband) && (t.particle = !0), this.activeWeatherLayers.some((
|
|
215
|
-
(
|
|
216
|
-
}), this.activeWeatherLayers = this.activeWeatherLayers.filter((
|
|
217
|
-
|
|
218
|
-
}), this.activeWeatherLayers = this.activeWeatherLayers.filter((
|
|
219
|
-
|
|
220
|
-
}), this.activeWeatherLayers = this.activeWeatherLayers.filter((
|
|
221
|
-
const e = (a = this.sourceList.find((r) => r.name === this.source)) == null ? void 0 : a.code;
|
|
222
|
-
this.$emit("weather", this.activeWeatherLayers, e);
|
|
212
|
+
(t.key === "wind" && !this.showWindFeather || t.key === "current" && !this.showCurrentIsoband) && (t.particle = !0), this.activeWeatherLayers.some((e) => e.key === t.key) ? this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.key !== t.key) : this.activeWeatherLayers.length < 6 && t.enabled && (["png", "jpg"].includes(t.type) ? (this.activeWeatherLayers.forEach((e) => {
|
|
213
|
+
(e.key === "wind" && this.showWindFeather || t.key === "current" && this.showCurrentIsoband) && (e.particle = !1);
|
|
214
|
+
}), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json" && !(["wind", "current"].includes(e.key) && e.particle))) : t.key === "wind" ? (this.activeWeatherLayers.forEach((e) => {
|
|
215
|
+
e.key === "current" && this.showCurrentIsoband && (e.particle = !1);
|
|
216
|
+
}), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json" && !(["wind", "current"].includes(e.key) && e.particle))) : t.key === "current" && (this.activeWeatherLayers.forEach((e) => {
|
|
217
|
+
e.key === "wind" && this.showWindFeather && (e.particle = !1);
|
|
218
|
+
}), this.activeWeatherLayers = this.activeWeatherLayers.filter((e) => e.type === "json" && !(["wind", "current"].includes(e.key) && e.particle))), this.activeWeatherLayers.push(t)), this.$emit("weather", this.activeWeatherLayers, this.sourceCode);
|
|
223
219
|
},
|
|
224
220
|
handleWeatherLayerCollect(t) {
|
|
225
221
|
var e;
|
|
@@ -246,9 +242,7 @@ const O = (t, e) => {
|
|
|
246
242
|
this.$emit("layerToggle", !this.layerToggle);
|
|
247
243
|
},
|
|
248
244
|
toggleAutoActive() {
|
|
249
|
-
|
|
250
|
-
const t = (e = this.sourceList.find((a) => a.name === this.source)) == null ? void 0 : e.code;
|
|
251
|
-
this.autoActive = !this.autoActive, localStorage.setItem(this.autoActiveCache, this.autoActive), this.autoActive ? (this.$emit("weather", this.activeWeatherLayersCollected, t), this.$emit("toggleWindFeather", localStorage.getItem(this.windFeatherCollectedCache) === "true"), this.$emit("toggleCurrentIsoband", localStorage.getItem(this.currentIsobandCollectedCache) === "true")) : (this.$emit("weather", [], t), this.$emit("toggleWindFeather", !1), this.$emit("toggleCurrentIsoband", !1));
|
|
245
|
+
this.autoActive = !this.autoActive, localStorage.setItem(this.autoActiveCache, this.autoActive), this.autoActive ? (this.$emit("weather", this.activeWeatherLayersCollected, this.sourceCode), this.$emit("toggleWindFeather", localStorage.getItem(this.windFeatherCollectedCache) === "true"), this.$emit("toggleCurrentIsoband", localStorage.getItem(this.currentIsobandCollectedCache) === "true")) : (this.$emit("weather", [], this.sourceCode), this.$emit("toggleWindFeather", !1), this.$emit("toggleCurrentIsoband", !1));
|
|
252
246
|
},
|
|
253
247
|
handleCoordToggle() {
|
|
254
248
|
this.showCoord = !this.showCoord, this.$emit("coordinate", this.showCoord);
|
|
@@ -1475,6 +1469,19 @@ class ra {
|
|
|
1475
1469
|
"text-halo-width": 1,
|
|
1476
1470
|
"text-color": "hsl(0, 1%, 2%)"
|
|
1477
1471
|
}
|
|
1472
|
+
},
|
|
1473
|
+
iceEdgeLine: {
|
|
1474
|
+
id: "ice-edge",
|
|
1475
|
+
type: "line",
|
|
1476
|
+
paint: {
|
|
1477
|
+
"line-color": "rgb(51, 50, 102)",
|
|
1478
|
+
"line-width": 1
|
|
1479
|
+
},
|
|
1480
|
+
layout: {
|
|
1481
|
+
visibility: "visible"
|
|
1482
|
+
},
|
|
1483
|
+
source: "composite",
|
|
1484
|
+
"source-layer": "nic_miz2025169nc_pl_a-cqk3ud"
|
|
1478
1485
|
}
|
|
1479
1486
|
}
|
|
1480
1487
|
}, this.td = {
|
|
@@ -1693,7 +1700,7 @@ class ra {
|
|
|
1693
1700
|
zoom: 2.4589703839156347,
|
|
1694
1701
|
bearing: 0,
|
|
1695
1702
|
pitch: 1,
|
|
1696
|
-
sprite: "mapbox://sprites/neatchenheng/clxwst0tq00wd01rn0usb2eer/
|
|
1703
|
+
sprite: "mapbox://sprites/neatchenheng/clxwst0tq00wd01rn0usb2eer/7zoestv3ytlgmyxxrlljl4rzs",
|
|
1697
1704
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
1698
1705
|
projection: {
|
|
1699
1706
|
name: "equirectangular"
|
|
@@ -1701,7 +1708,7 @@ class ra {
|
|
|
1701
1708
|
sources: {
|
|
1702
1709
|
composite: {
|
|
1703
1710
|
type: "vector",
|
|
1704
|
-
url: "mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2,mapbox.country-boundaries-v1,neatchenheng.d44z21eg,neatchenheng.82kqbc1q,neatchenheng.a4ifbysm,neatchenheng.27issko0",
|
|
1711
|
+
url: "mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2,mapbox.country-boundaries-v1,neatchenheng.d44z21eg,neatchenheng.82kqbc1q,neatchenheng.a4ifbysm,neatchenheng.27issko0,neatchenheng.afzf6vzv",
|
|
1705
1712
|
data: {
|
|
1706
1713
|
attribution: '<a href="https://www.mapbox.com/about/maps/" target="_blank" title="Mapbox" aria-label="Mapbox">© Mapbox</a> <a href="https://www.openstreetmap.org/about/" target="_blank" title="OpenStreetMap" aria-label="OpenStreetMap">© OpenStreetMap</a> <a href="https://www.mapbox.com/about/maps/" target="_blank" title="Mapbox" aria-label="Mapbox">© Mapbox</a> <a href="https://www.openstreetmap.org/about/" target="_blank" title="OpenStreetMap" aria-label="OpenStreetMap">© OpenStreetMap</a> <a class="mapbox-improve-map" href="https://www.mapbox.com/contribute/" target="_blank" title="Improve this map" aria-label="Improve this map">Improve this map</a>',
|
|
1707
1714
|
bounds: [-180, -85.051129, 180, 85],
|
|
@@ -1754,9 +1761,9 @@ class ra {
|
|
|
1754
1761
|
maxzoom: 16,
|
|
1755
1762
|
minzoom: 0,
|
|
1756
1763
|
mts: !0,
|
|
1757
|
-
name: "Mapbox Countries v1 + Mapbox Bathymetry v2 + Mapbox Terrain v2 + Mapbox Streets v8",
|
|
1764
|
+
name: "nic_miz2025169nc_pl_a-cqk3ud + china_route-bdtx5d + ne_10m_geography_marine_polys-3968bv + eez_12nm_new1-6jzkww + eez-d4udtm + Mapbox Countries v1 + Mapbox Bathymetry v2 + Mapbox Terrain v2 + Mapbox Streets v8",
|
|
1758
1765
|
scheme: "xyz",
|
|
1759
|
-
tilejson: "
|
|
1766
|
+
tilejson: "3.0.0",
|
|
1760
1767
|
tiles: [
|
|
1761
1768
|
"https://a.tiles.mapbox.com/v4/mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2,mapbox.country-boundaries-v1,neatchenheng.d44z21eg,neatchenheng.82kqbc1q,neatchenheng.a4ifbysm,neatchenheng.27issko0/{z}/{x}/{y}.vector.pbf?access_token=pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw",
|
|
1762
1769
|
"https://b.tiles.mapbox.com/v4/mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2,mapbox.country-boundaries-v1,neatchenheng.d44z21eg,neatchenheng.82kqbc1q,neatchenheng.a4ifbysm,neatchenheng.27issko0/{z}/{x}/{y}.vector.pbf?access_token=pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw"
|
|
@@ -1891,10 +1898,25 @@ class ra {
|
|
|
1891
1898
|
minzoom: 0,
|
|
1892
1899
|
source: "neatchenheng.27issko0",
|
|
1893
1900
|
source_name: "china_route-bdtx5d"
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
description: "",
|
|
1904
|
+
fields: {
|
|
1905
|
+
ICECODE: "String",
|
|
1906
|
+
ORIG_FID: "Number",
|
|
1907
|
+
Shape_Area: "Number",
|
|
1908
|
+
Shape_Leng: "Number"
|
|
1909
|
+
},
|
|
1910
|
+
id: "nic_miz2025169nc_pl_a-cqk3ud",
|
|
1911
|
+
maxzoom: 22,
|
|
1912
|
+
minzoom: 0,
|
|
1913
|
+
source: "neatchenheng.afzf6vzv",
|
|
1914
|
+
source_name: "nic_miz2025169nc_pl_a-cqk3ud"
|
|
1894
1915
|
}
|
|
1895
1916
|
],
|
|
1896
1917
|
worldview_default: "US",
|
|
1897
1918
|
worldview_options: {
|
|
1919
|
+
ALL: "Every available worldview",
|
|
1898
1920
|
AR: "Argentina",
|
|
1899
1921
|
CN: "China",
|
|
1900
1922
|
IN: "India",
|
|
@@ -1903,7 +1925,8 @@ class ra {
|
|
|
1903
1925
|
RS: "Serbia",
|
|
1904
1926
|
RU: "Russia",
|
|
1905
1927
|
TR: "Turkey",
|
|
1906
|
-
US: "United States"
|
|
1928
|
+
US: "United States",
|
|
1929
|
+
VN: "Vietnam"
|
|
1907
1930
|
}
|
|
1908
1931
|
}
|
|
1909
1932
|
}
|
|
@@ -3032,6 +3055,18 @@ class ra {
|
|
|
3032
3055
|
"text-halo-width": 1,
|
|
3033
3056
|
"text-color": "hsl(0, 1%, 2%)"
|
|
3034
3057
|
}
|
|
3058
|
+
},
|
|
3059
|
+
{
|
|
3060
|
+
id: "ice-edge",
|
|
3061
|
+
type: "line",
|
|
3062
|
+
paint: {
|
|
3063
|
+
"line-color": "rgb(252, 182, 182)"
|
|
3064
|
+
},
|
|
3065
|
+
layout: {
|
|
3066
|
+
visibility: "visible"
|
|
3067
|
+
},
|
|
3068
|
+
source: "composite",
|
|
3069
|
+
"source-layer": "nic_miz2025169nc_pl_a-cqk3ud"
|
|
3035
3070
|
}
|
|
3036
3071
|
]
|
|
3037
3072
|
};
|
|
@@ -3936,18 +3971,17 @@ const va = /* @__PURE__ */ O(wa, [["render", ba]]), La = {
|
|
|
3936
3971
|
"text-size": 12
|
|
3937
3972
|
},
|
|
3938
3973
|
paint: {
|
|
3939
|
-
"text-
|
|
3940
|
-
"text-color": ["step", ["get", "val"], "white", 980, "black", 1100, "black"],
|
|
3974
|
+
"text-color": ["step", ["get", "val"], "rgba(255,255,255,0.8)", 980, "rgba(0,0,0,0.7)", 1100, "rgba(0,0,0,0.7)"],
|
|
3941
3975
|
"text-halo-color": [
|
|
3942
3976
|
"step",
|
|
3943
3977
|
["get", "val"],
|
|
3944
|
-
"rgba(162,13,2,0.
|
|
3978
|
+
"rgba(162,13,2,0.8)",
|
|
3945
3979
|
920,
|
|
3946
|
-
"rgba(244,67,54,0.
|
|
3980
|
+
"rgba(244,67,54,0.8)",
|
|
3947
3981
|
980,
|
|
3948
|
-
"rgba(255,255,0,0.
|
|
3982
|
+
"rgba(255,255,0,0.7)",
|
|
3949
3983
|
1100,
|
|
3950
|
-
"rgba(199,171,250,0.
|
|
3984
|
+
"rgba(199,171,250,0.7)"
|
|
3951
3985
|
],
|
|
3952
3986
|
"text-halo-width": 4
|
|
3953
3987
|
}
|