|
|
@@ -1770,8 +1770,7 @@ export default {
|
|
|
var map = new AMap.Map('mapContainer2', {
|
|
|
center: this.center,
|
|
|
resizeEnable: true,
|
|
|
- zoom: 10,
|
|
|
- lang: 'en'
|
|
|
+ zoom: 10
|
|
|
});
|
|
|
AMap.plugin(['AMap.ToolBar', 'AMap.Geocoder'], () => {
|
|
|
map.addControl(new AMap.ToolBar());
|
|
|
@@ -1832,6 +1831,7 @@ export default {
|
|
|
getAddress(lnglat) {
|
|
|
AMap.plugin('AMap.Geocoder', () => {
|
|
|
this.geocoder.getAddress(lnglat, (status, result) => {
|
|
|
+ console.log(status, 'get address', result);
|
|
|
if (status === 'complete' && result.info === 'OK') {
|
|
|
this.address = result.regeocode.formattedAddress;
|
|
|
}
|