zhaobao 2 years ago
parent
commit
5b9bae1298
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/aqpt/visualEditor/index.vue

+ 2 - 2
src/views/aqpt/visualEditor/index.vue

@@ -233,7 +233,7 @@ export default {
       this.map = L.map('vmap', {
         minZoom: 1,
         maxZoom: 3,
-        center: [0, 0],
+        center: [30, 50],
         zoom: 1,
         crs: L.CRS.Simple,
         zoomControl: false
@@ -249,7 +249,7 @@ export default {
         }
         return yx(y, x)
       }
-      var bounds = [xy(-200, -200), xy(300, 185)]
+      var bounds = [xy(-330, -255), xy(330, 255)]
       L.imageOverlay(this.mapRasterLayer, bounds).addTo(this.map)
       this.map.fitBounds(bounds)
       this.getLayers()