|
|
@ -80,6 +80,7 @@ export default { |
|
|
|
this.dataForm.latitude = position.lat |
|
|
|
this.dataForm.longitude = position.lng |
|
|
|
this.dataForm.city = position.city |
|
|
|
this.getAddress(position.lat, position.lng) |
|
|
|
this.setMap() |
|
|
|
}, |
|
|
|
showErr () { |
|
|
@ -122,6 +123,9 @@ export default { |
|
|
|
position: myLatlng, |
|
|
|
map: map |
|
|
|
}) |
|
|
|
qq.maps.event.addListener(marker, 'click', function (event) { |
|
|
|
that.addressCheckHandle() |
|
|
|
}) |
|
|
|
markerList.push(marker) |
|
|
|
// 添加监听事件 获取鼠标单击事件 |
|
|
|
qq.maps.event.addListener(map, 'click', function (event) { |
|
|
|