liuhj 5 月之前
父節點
當前提交
f0841de104
共有 1 個文件被更改,包括 13 次插入10 次删除
  1. 13 10
      src/components/statistics/Statistically.vue

+ 13 - 10
src/components/statistics/Statistically.vue

@@ -442,7 +442,8 @@ export default {
             fourthPagesize:10,
             fourthtotal:0,
             input:'',
-            map:null
+            map:null,
+            //
         }
     }, 
     methods: {
@@ -622,18 +623,20 @@ export default {
             mapkit.init({
                 language: 'zh-Hans',
                 authorizationCallback: function(done) {
-                done(token);
+                    done(token);
                 }
             });
             // var map = new mapkit.Map('map', { center: new mapkit.Coordinate(104.096488, 30.635261) });
-            const coordinate = new mapkit.Coordinate(104.096488, 30.635261)
-            // const span = new mapkit.CoordinateSpan(5, 5)  // 1degree=111km
-            // const region = new mapkit.CoordinateRegion(coordinate, span)
-            const map = new mapkit.Map("map", {
-                center: coordinate, 
-                countryCode: "CN",
-                isZoomEnabled:true,
-            })
+            // const coordinate = new mapkit.Coordinate(104.096488, 30.635261)
+            // const map = new mapkit.Map("map", {
+            //     center: coordinate, 
+            //     countryCode: "CN",
+            //     isZoomEnabled:true,
+            // })
+            const map = new mapkit.Map(document.getElementById('map'), {
+                center: new mapkit.Coordinate(104.096488, 30.635261),
+                zoom: 11
+            });
 
             
         },