peiguo 4 vuotta sitten
vanhempi
commit
0e7b420944
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      whepi-ui/templates/home/getLocation.js

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

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