Commit 25677ded authored by xxx's avatar xxx

1

parent 7d1cde86
...@@ -259,11 +259,11 @@ export default { ...@@ -259,11 +259,11 @@ export default {
httpGet(carRealTimeLocationQuery2,{name:equipmentName}).then((res) => { httpGet(carRealTimeLocationQuery2,{name:equipmentName}).then((res) => {
if(res.data){ if(res.data){
graphicLayer4.eachGraphic((graphic) => { graphicLayer4.eachGraphic((graphic) => {
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(res.data.location.x, res.data.location.y, 1000), 1) graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(res.data.location.x, res.data.location.y, 1000), 2)
}) })
}else{ }else{
graphicLayer4.eachGraphic((graphic) => { graphicLayer4.eachGraphic((graphic) => {
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(that.defaultjd, that.defaultwd, 1000), 1) graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(that.defaultjd, that.defaultwd, 1000), 2)
}) })
} }
}); });
......
...@@ -366,7 +366,7 @@ export default { ...@@ -366,7 +366,7 @@ export default {
let LoaObj1xy = {}; let LoaObj1xy = {};
//判断该车是否在行驶状态 //判断该车是否在行驶状态
let drivingDistance = that.getDistanceIndex(that.navigatorXY.y,that.navigatorXY.x,position.coords.latitude,position.coords.longitude); let drivingDistance = that.getDistanceIndex(that.navigatorXY.y,that.navigatorXY.x,position.coords.latitude,position.coords.longitude);
//console.log(drivingDistance); console.log(drivingDistance);
if(drivingDistance <= 1){ if(drivingDistance <= 1){
that.leftBtnDisable = true; that.leftBtnDisable = true;
}else{ }else{
......
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