Explorar el Código

js定位开启高精度定位

peiguo hace 4 años
padre
commit
360b495f3c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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));