Commit f21a9bc8 authored by xxx's avatar xxx

1

parent a34b602e
...@@ -267,7 +267,7 @@ export default { ...@@ -267,7 +267,7 @@ export default {
}) })
} }
}); });
}, 2000) }, 2500)
}, },
// 装车箭头线 graphicLayer.removeGraphic(graphic); // 装车箭头线 graphicLayer.removeGraphic(graphic);
......
...@@ -361,7 +361,9 @@ export default { ...@@ -361,7 +361,9 @@ export default {
navigator.geolocation.getCurrentPosition( navigator.geolocation.getCurrentPosition(
//locationSuccess 获取成功的话 //locationSuccess 获取成功的话
function(position) { function(position) {
console.log(JSON.stringify(position.coords)); console.log('精准度',position.coords.accuracy);
console.log('海拔',position.coords.altitude);
console.log('海拔1',position.coords.altitudeAcuracy);
let LoaObj1 = {}; let LoaObj1 = {};
let LoaObj1xy = {}; let LoaObj1xy = {};
//判断该车是否在行驶状态 //判断该车是否在行驶状态
...@@ -372,7 +374,7 @@ export default { ...@@ -372,7 +374,7 @@ export default {
}else{ }else{
that.leftBtnDisable = false; that.leftBtnDisable = false;
} }
if(drivingDistance > 100 && drivingDistance < 10000){ if(drivingDistance > 300 && drivingDistance < 10000){
LoaObj1xy.x = that.navigatorXY.x; LoaObj1xy.x = that.navigatorXY.x;
LoaObj1xy.y = that.navigatorXY.y; LoaObj1xy.y = that.navigatorXY.y;
LoaObj1.gndRate = ''; LoaObj1.gndRate = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment