Browse Source

js定位开启高精度定位

peiguo 4 years ago
parent
commit
360b495f3c
1 changed files with 1 additions and 0 deletions
  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',
+    isHighAccuracy: true,
     success: function (res) {
       // alert(JSON.stringify(res));