Commit 7857bff5 authored by xxx's avatar xxx

1

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