Commit 7857bff5 authored by xxx's avatar xxx

1

parent 4cf569e0
......@@ -172,7 +172,7 @@ export default {
"vrButton": false,
"fullscreenButton": true,
"navigationHelpButton": true,
"animation": false,
"animation": true,
"timeline": false,
"infoBox": false,
"geocoder": false,
......@@ -558,13 +558,18 @@ export default {
changeSpeed(num){
map.clock.multiplier = parseInt(num);
},
//改变时间
changeTime(time){
let julian_time = Cesium.JulianDate.fromDate(new Date(time));
console.log(julian_time);
},
//清除定时器
closeInterval(){
if(currentTimeInterval){
clearInterval(currentTimeInterval)
currentTimeInterval = null;
}
}
},
}
}
</script>
......
......@@ -29,6 +29,7 @@
<el-date-picker
v-model="trajectoryTimePoint"
type="datetime"
@change="trajectoryTimePointFn"
:placeholder="trajectoryTimePointPlaceholder"
:picker-options="{
disabledDate (time) {
......@@ -330,6 +331,11 @@ export default {
//console.log(time);
this.trajectoryTimePointPlaceholder = time;
},
//轨迹时间点跳转
trajectoryTimePointFn(){
console.log(this.trajectoryTimePoint);
//this.$refs.mars3dViewerMapMethod.changeTime(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