@idmwx/idmui-gl4 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -5468,14 +5468,12 @@ const es = {
|
|
|
5468
5468
|
},
|
|
5469
5469
|
theme: {
|
|
5470
5470
|
handler() {
|
|
5471
|
-
debugger;
|
|
5472
5471
|
this.theme === "light" ? this.mapFeather = ["light", "nautical"].includes(this.mapFeather) ? this.mapFeather : "light" : this.mapFeather = ["dark", "satellite"].includes(this.mapFeather) ? this.mapFeather : "dark";
|
|
5473
5472
|
},
|
|
5474
5473
|
immediate: !0
|
|
5475
5474
|
},
|
|
5476
5475
|
mapFeather: {
|
|
5477
5476
|
handler() {
|
|
5478
|
-
debugger;
|
|
5479
5477
|
localStorage.setItem(this.cache.mapFeatherKey, this.mapFeather), this.$emit("mapFeather", this.mapFeather), this.$emit("theme", ["light", "nautical"].includes(this.mapFeather) ? "light" : "dark");
|
|
5480
5478
|
},
|
|
5481
5479
|
immediate: !0
|
|
@@ -13471,8 +13469,7 @@ const fm = /* @__PURE__ */ Y(rm, [["render", gm]]), ym = {
|
|
|
13471
13469
|
},
|
|
13472
13470
|
props: {
|
|
13473
13471
|
map: {
|
|
13474
|
-
type: Object
|
|
13475
|
-
default: void 0
|
|
13472
|
+
type: Object
|
|
13476
13473
|
},
|
|
13477
13474
|
token: {
|
|
13478
13475
|
type: String
|
|
@@ -13756,7 +13753,7 @@ class vm {
|
|
|
13756
13753
|
type: "vector"
|
|
13757
13754
|
}
|
|
13758
13755
|
},
|
|
13759
|
-
sprite: "mapbox://sprites/neatchenheng/cmd894dwn036m01rf7anc0k0d/
|
|
13756
|
+
sprite: "mapbox://sprites/neatchenheng/cmd894dwn036m01rf7anc0k0d/7gj9okohkyjltxdu892b7wy8r",
|
|
13760
13757
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
13761
13758
|
projection: {
|
|
13762
13759
|
name: "equirectangular"
|
|
@@ -15168,7 +15165,11 @@ class vm {
|
|
|
15168
15165
|
"LLRed"
|
|
15169
15166
|
],
|
|
15170
15167
|
"rgba(217, 150, 151, 0.6)",
|
|
15171
|
-
|
|
15168
|
+
[
|
|
15169
|
+
"LLSUMMER"
|
|
15170
|
+
],
|
|
15171
|
+
"rgba(111, 110, 212, 0.6)",
|
|
15172
|
+
"rgba(255, 255, 255, 0.6)"
|
|
15172
15173
|
],
|
|
15173
15174
|
"fill-outline-color": "rgba(255, 255, 255, 0.3)"
|
|
15174
15175
|
},
|
|
@@ -15296,7 +15297,7 @@ class vm {
|
|
|
15296
15297
|
type: "vector"
|
|
15297
15298
|
}
|
|
15298
15299
|
},
|
|
15299
|
-
sprite: "mapbox://sprites/neatchenheng/cmdqwez32005b01re2w0k3zk4/
|
|
15300
|
+
sprite: "mapbox://sprites/neatchenheng/cmdqwez32005b01re2w0k3zk4/11nv1ugb0wofqotzc17xwqyiy",
|
|
15300
15301
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
15301
15302
|
projection: {
|
|
15302
15303
|
name: "equirectangular"
|
|
@@ -16695,7 +16696,11 @@ class vm {
|
|
|
16695
16696
|
"LLRed"
|
|
16696
16697
|
],
|
|
16697
16698
|
"rgba(217, 150, 151, 0.6)",
|
|
16698
|
-
|
|
16699
|
+
[
|
|
16700
|
+
"LLSUMMER"
|
|
16701
|
+
],
|
|
16702
|
+
"rgba(111, 110, 212, 0.6)",
|
|
16703
|
+
"rgba(255, 255, 255, 0.6)"
|
|
16699
16704
|
],
|
|
16700
16705
|
"fill-outline-color": "rgba(255, 255, 255, 0.3)"
|
|
16701
16706
|
},
|
|
@@ -20572,7 +20577,7 @@ class vm {
|
|
|
20572
20577
|
type: "vector"
|
|
20573
20578
|
}
|
|
20574
20579
|
},
|
|
20575
|
-
sprite: "mapbox://sprites/neatchenheng/cmdiadnej03n101r485bs2m6a/
|
|
20580
|
+
sprite: "mapbox://sprites/neatchenheng/cmdiadnej03n101r485bs2m6a/6ao5m4j6u5iosr6h10oeai3wq",
|
|
20576
20581
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
20577
20582
|
projection: {
|
|
20578
20583
|
name: "equirectangular"
|
|
@@ -21334,7 +21339,11 @@ class vm {
|
|
|
21334
21339
|
"LLRed"
|
|
21335
21340
|
],
|
|
21336
21341
|
"rgba(217, 150, 151, 0.6)",
|
|
21337
|
-
|
|
21342
|
+
[
|
|
21343
|
+
"LLSUMMER"
|
|
21344
|
+
],
|
|
21345
|
+
"rgba(111, 110, 212, 0.6)",
|
|
21346
|
+
"rgba(255, 255, 255, 0.6)"
|
|
21338
21347
|
],
|
|
21339
21348
|
"fill-outline-color": "rgba(255, 255, 255, 0.3)"
|
|
21340
21349
|
},
|
|
@@ -31847,7 +31856,7 @@ class vm {
|
|
|
31847
31856
|
i4: this.i4.source
|
|
31848
31857
|
// "hi": this.hi.source
|
|
31849
31858
|
},
|
|
31850
|
-
sprite: "mapbox://sprites/neatchenheng/cmddwkooj003i01ptch7p9gvz/
|
|
31859
|
+
sprite: "mapbox://sprites/neatchenheng/cmddwkooj003i01ptch7p9gvz/9c2itye90h3vaoe01oqdvmjc5",
|
|
31851
31860
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
31852
31861
|
projection: {
|
|
31853
31862
|
name: "equirectangular"
|
|
@@ -32141,7 +32150,11 @@ class vm {
|
|
|
32141
32150
|
"LLRed"
|
|
32142
32151
|
],
|
|
32143
32152
|
"rgba(217, 150, 151, 0.6)",
|
|
32144
|
-
|
|
32153
|
+
[
|
|
32154
|
+
"LLSUMMER"
|
|
32155
|
+
],
|
|
32156
|
+
"rgba(111, 110, 212, 0.6)",
|
|
32157
|
+
"rgba(255, 255, 255, 0.6)"
|
|
32145
32158
|
],
|
|
32146
32159
|
"fill-outline-color": "rgba(255, 255, 255, 0.3)"
|
|
32147
32160
|
},
|
|
@@ -32396,18 +32409,22 @@ const _m = {
|
|
|
32396
32409
|
},
|
|
32397
32410
|
mapFeather: {
|
|
32398
32411
|
handler() {
|
|
32399
|
-
|
|
32400
|
-
this.mapFeather && this.$nextTick(() => {
|
|
32412
|
+
this.map = void 0, this.mapFeather && this.$nextTick(() => {
|
|
32401
32413
|
this.initOnlineMap();
|
|
32402
32414
|
});
|
|
32403
32415
|
},
|
|
32404
32416
|
immediate: !0
|
|
32417
|
+
},
|
|
32418
|
+
map: {
|
|
32419
|
+
handler() {
|
|
32420
|
+
this.$emit("map", this.map);
|
|
32421
|
+
},
|
|
32422
|
+
immediate: !0
|
|
32405
32423
|
}
|
|
32406
32424
|
},
|
|
32407
32425
|
methods: {
|
|
32408
32426
|
async initOnlineMap() {
|
|
32409
|
-
|
|
32410
|
-
(e = this.map) == null || e.remove(), this.map = void 0, this.helper = new vm(this.token), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
32427
|
+
this.helper = new vm(this.token), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
32411
32428
|
const t = new ve.Map({
|
|
32412
32429
|
container: "map",
|
|
32413
32430
|
// style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
|
|
@@ -32426,10 +32443,10 @@ const _m = {
|
|
|
32426
32443
|
fadeDuration: 300
|
|
32427
32444
|
});
|
|
32428
32445
|
t.dragRotate.disable(), t.on("load", () => {
|
|
32429
|
-
this.zoom = 2, this.map = t, this.$emit("
|
|
32446
|
+
this.zoom = 2, this.map = t, this.$emit("menuToggle"), this.addScaleControl();
|
|
32430
32447
|
}), t.on("move", () => {
|
|
32431
|
-
var
|
|
32432
|
-
this.zoom = (
|
|
32448
|
+
var e;
|
|
32449
|
+
this.zoom = (e = this.map) == null ? void 0 : e.getZoom();
|
|
32433
32450
|
});
|
|
32434
32451
|
},
|
|
32435
32452
|
addScaleControl() {
|