Browse Source

测试地图

peiguo 4 năm trước cách đây
mục cha
commit
0e7b420944
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      whepi-ui/templates/home/getLocation.js

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

@@ -13,6 +13,7 @@ function getLocation() {
   //return;
   wx.getLocation({
     type: 'wgs84',
+    altitude: "true",
     success: function (res) {
       // alert(JSON.stringify(res));