|
@@ -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))
|