Browse Source

地图增加控制级别

彭宇 3 years ago
parent
commit
e873cbecae
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/components/supermap.vue

+ 3 - 0
src/components/supermap.vue

@@ -476,6 +476,9 @@
       },
       dropLocation: function (lat, lng) {//落点定位
         this.map.panTo([lat, lng])
+      },
+      controlLevel: function (level) {//控制地图缩放级别
+        this.map.setZoom(level)
       }
     }
   }