Commit 75058433 authored by youjie's avatar youjie

no message

parent 5396e2ab
......@@ -61,9 +61,17 @@ export default {
},
methods: {
getClickInfo (e) {
// console.log(e,'---')
// this.center.lng = e.point.lng
// this.center.lat = e.point.lat
let that= this
var gc = new BMap.Geocoder();
gc.getLocation(e.point, function (rs) {
if(rs.addressComponents){
var addComp = rs.addressComponents;
let address_detail = addComp.province + addComp.city + addComp.district + addComp.street + addComp.streetNumber
that.keyword = address_detail
}
})
this.center.lng = e.point.lng
this.center.lat = e.point.lat
},
syncCenterAndZoom (e) {
const {lng, lat} = e.target.getCenter()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment