@idmwx/idmui-gl4 1.2.1 → 1.2.2
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
|
|
@@ -32396,18 +32393,22 @@ const _m = {
|
|
|
32396
32393
|
},
|
|
32397
32394
|
mapFeather: {
|
|
32398
32395
|
handler() {
|
|
32399
|
-
|
|
32400
|
-
this.mapFeather && this.$nextTick(() => {
|
|
32396
|
+
this.map = void 0, this.mapFeather && this.$nextTick(() => {
|
|
32401
32397
|
this.initOnlineMap();
|
|
32402
32398
|
});
|
|
32403
32399
|
},
|
|
32404
32400
|
immediate: !0
|
|
32401
|
+
},
|
|
32402
|
+
map: {
|
|
32403
|
+
handler() {
|
|
32404
|
+
this.$emit("map", this.map);
|
|
32405
|
+
},
|
|
32406
|
+
immediate: !0
|
|
32405
32407
|
}
|
|
32406
32408
|
},
|
|
32407
32409
|
methods: {
|
|
32408
32410
|
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";
|
|
32411
|
+
this.helper = new vm(this.token), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
32411
32412
|
const t = new ve.Map({
|
|
32412
32413
|
container: "map",
|
|
32413
32414
|
// style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
|
|
@@ -32426,10 +32427,10 @@ const _m = {
|
|
|
32426
32427
|
fadeDuration: 300
|
|
32427
32428
|
});
|
|
32428
32429
|
t.dragRotate.disable(), t.on("load", () => {
|
|
32429
|
-
this.zoom = 2, this.map = t, this.$emit("
|
|
32430
|
+
this.zoom = 2, this.map = t, this.$emit("menuToggle"), this.addScaleControl();
|
|
32430
32431
|
}), t.on("move", () => {
|
|
32431
|
-
var
|
|
32432
|
-
this.zoom = (
|
|
32432
|
+
var e;
|
|
32433
|
+
this.zoom = (e = this.map) == null ? void 0 : e.getZoom();
|
|
32433
32434
|
});
|
|
32434
32435
|
},
|
|
32435
32436
|
addScaleControl() {
|