@idmwx/idmui-gl4 1.2.0 → 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
|
@@ -13469,8 +13469,7 @@ const fm = /* @__PURE__ */ Y(rm, [["render", gm]]), ym = {
|
|
|
13469
13469
|
},
|
|
13470
13470
|
props: {
|
|
13471
13471
|
map: {
|
|
13472
|
-
type: Object
|
|
13473
|
-
default: void 0
|
|
13472
|
+
type: Object
|
|
13474
13473
|
},
|
|
13475
13474
|
token: {
|
|
13476
13475
|
type: String
|
|
@@ -32394,17 +32393,22 @@ const _m = {
|
|
|
32394
32393
|
},
|
|
32395
32394
|
mapFeather: {
|
|
32396
32395
|
handler() {
|
|
32397
|
-
this.mapFeather && this.$nextTick(() => {
|
|
32396
|
+
this.map = void 0, this.mapFeather && this.$nextTick(() => {
|
|
32398
32397
|
this.initOnlineMap();
|
|
32399
32398
|
});
|
|
32400
32399
|
},
|
|
32401
32400
|
immediate: !0
|
|
32401
|
+
},
|
|
32402
|
+
map: {
|
|
32403
|
+
handler() {
|
|
32404
|
+
this.$emit("map", this.map);
|
|
32405
|
+
},
|
|
32406
|
+
immediate: !0
|
|
32402
32407
|
}
|
|
32403
32408
|
},
|
|
32404
32409
|
methods: {
|
|
32405
32410
|
async initOnlineMap() {
|
|
32406
|
-
|
|
32407
|
-
(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";
|
|
32408
32412
|
const t = new ve.Map({
|
|
32409
32413
|
container: "map",
|
|
32410
32414
|
// style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
|
|
@@ -32423,10 +32427,10 @@ const _m = {
|
|
|
32423
32427
|
fadeDuration: 300
|
|
32424
32428
|
});
|
|
32425
32429
|
t.dragRotate.disable(), t.on("load", () => {
|
|
32426
|
-
this.zoom = 2, this.map = t, this.$emit("
|
|
32430
|
+
this.zoom = 2, this.map = t, this.$emit("menuToggle"), this.addScaleControl();
|
|
32427
32431
|
}), t.on("move", () => {
|
|
32428
|
-
var
|
|
32429
|
-
this.zoom = (
|
|
32432
|
+
var e;
|
|
32433
|
+
this.zoom = (e = this.map) == null ? void 0 : e.getZoom();
|
|
32430
32434
|
});
|
|
32431
32435
|
},
|
|
32432
32436
|
addScaleControl() {
|
|
@@ -32467,7 +32471,7 @@ function Cm(t, e, o, i, a, r) {
|
|
|
32467
32471
|
_: 1,
|
|
32468
32472
|
__: [0]
|
|
32469
32473
|
}, 8, ["onClick"]),
|
|
32470
|
-
l("div", Lm, h(Math.floor(a.zoom)), 1),
|
|
32474
|
+
l("div", Lm, h(a.zoom ? Math.floor(a.zoom) : 0), 1),
|
|
32471
32475
|
d(s, {
|
|
32472
32476
|
"min-width": "32",
|
|
32473
32477
|
width: "32",
|