Browse Source

测试地图

peiguo 4 years ago
parent
commit
4e6ffeca8b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      whepi-ui/templates/home/getLocation.js

+ 2 - 1
whepi-ui/templates/home/getLocation.js

@@ -15,10 +15,11 @@ function getLocation() {
     type: 'wgs84',
     isHighAccuracy: true,
     success: function (res) {
-      alert(JSON.stringify(res));
+      // alert(JSON.stringify(res));
 
       var geocoder = new qq.maps.Geocoder({
         complete: function (result) {
+          alert(JSON.stringify(result));
           if ('武汉市' === result.detail.addressComponents.city) {
             autoLocal = '武汉市';
             //今晚驻地