mxx 3 lat temu
rodzic
commit
111e3854b7
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      src/components/mapdrag/mapdrag.vue

+ 2 - 0
src/components/mapdrag/mapdrag.vue

@@ -238,6 +238,7 @@ export default {
             radius: 1000,
           })
           that.map.on('moveend', function(e){
+            //地图变动之后需要重新赋值省市区,未完成
              that.center = that.map.getCenter(); //获取当前地图中心位置
              that.center.lat =Number(that.center.lat.toFixed(3))
              that.center.lng =Number(that.center.lng.toFixed(3))
@@ -266,6 +267,7 @@ export default {
             })
           });
           that.map.on('zoomend', function(){
+            //地图变动之后需要重新赋值省市区,未完成
             // this.zoom = map.getZoom(); //获取当前地图级别
             that.center = that.map.getCenter(); //获取当前地图中心位置
             that.center.lat =Number(that.center.lat.toFixed(3))