Explorar o código

地图增加控制级别

彭宇 %!s(int64=3) %!d(string=hai) anos
pai
achega
e873cbecae
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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)
       }
     }
   }