温红权 3 years ago
parent
commit
7483b464ab
1 changed files with 3 additions and 3 deletions
  1. 3 3
      ruoyi-ui/src/components/map/index.vue

+ 3 - 3
ruoyi-ui/src/components/map/index.vue

@@ -218,13 +218,13 @@ export default {
         target: "map",
         layers: [ign],
         view: new View({
-          zoom: 10
+          zoom:2
         })
       });
       map.getView().fit([75.0, 20.0, 135.0, 50.0], map.getSize());
       this.map = map;
-      map.getView().setCenter(this.transpoints([[118.78, 32.04]],0)[0]);
-      map.getView().setZoom(13);
+      // map.getView().setCenter(this.transpoints([[118.78, 32.04]],0)[0]);
+      // map.getView().setZoom(13);
     },
 
     addline:function(){