Commit 2b642e1e authored by xxx's avatar xxx

1

parent 7857bff5
......@@ -172,7 +172,7 @@ export default {
"vrButton": false,
"fullscreenButton": true,
"navigationHelpButton": true,
"animation": true,
"animation": false,
"timeline": false,
"infoBox": false,
"geocoder": false,
......@@ -561,7 +561,7 @@ export default {
//改变时间
changeTime(time){
let julian_time = Cesium.JulianDate.fromDate(new Date(time));
console.log(julian_time);
map.clock.currentTime = julian_time;
},
//清除定时器
closeInterval(){
......
......@@ -280,7 +280,11 @@ export default {
},
//改变倍速
changeSpeed(num){
this.$refs.mars3dViewerMapMethod.changeSpeed(num);
if(this.query.number == '' || !this.query.bTime || !this.query.eTime){
return;
}else{
this.$refs.mars3dViewerMapMethod.changeSpeed(num);
}
},
//开测量距离
measureDistance(){
......@@ -295,7 +299,7 @@ export default {
let that = this;
this.leadTime = boo;
this.pauseResumeBoolean = true;
if(this.query.number == '' || this.query.bTime == '' || this.query.eTime == ''){
if(this.query.number == '' || !this.query.bTime || !this.query.eTime){
return;
}else{
HttpReq.truckDispatching.carInformationQuery({number:this.query.number}).then((res) => {
......@@ -317,24 +321,34 @@ export default {
},
//暂停继续
pauseResume(){
if(this.pauseResumeBoolean){
this.$refs.mars3dViewerMapMethod.pauseResume(false);
this.pauseResumeBoolean = false;
if(this.query.number == '' || !this.query.bTime || !this.query.eTime){
return;
}else{
this.$refs.mars3dViewerMapMethod.pauseResume(true);
this.pauseResumeBoolean = true;
if(this.pauseResumeBoolean){
this.$refs.mars3dViewerMapMethod.pauseResume(false);
this.pauseResumeBoolean = false;
}else{
this.$refs.mars3dViewerMapMethod.pauseResume(true);
this.pauseResumeBoolean = true;
}
}
},
//接收当前进度时间
progressTimeFn(time){
//console.log(time);
this.trajectoryTimePointPlaceholder = time;
},
//轨迹时间点跳转
trajectoryTimePointFn(){
console.log(this.trajectoryTimePoint);
//this.$refs.mars3dViewerMapMethod.changeTime(this.trajectoryTimePoint);
if(this.query.number == '' || !this.query.bTime || !this.query.eTime){
return;
}else{
if(!this.trajectoryTimePoint){
return
}else{
this.$refs.mars3dViewerMapMethod.changeTime(this.trajectoryTimePoint);
this.trajectoryTimePoint = '';
}
}
},
// 地图构造完成回调
onMapload(map) {
......
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