liuhj 4 months ago
parent
commit
6f46ad40d5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/statistics/Statistically.vue

+ 2 - 1
src/components/statistics/Statistically.vue

@@ -637,10 +637,11 @@ export default {
             //     countryCode: "CN",
             //     isZoomEnabled:true,
             // })
-            let map = new mapkit.Map("map", {
+            this.map = new mapkit.Map("map", {
                 center: new mapkit.Coordinate(104.096488, 30.635261),
                 showsMapTypeControl: true,
                 showsZoomControl: true,
+                zoomLevel: 10,
                 zoomEnabled: true
             });
             // let overlay = new mapkit.MapOverlay(map.region, {