JavaScript代码
* //时间控制
* function TimeControl() {
* viewer = new Cesium.Viewer('cesiumContainer');
* // Set up clock and timeline.
* viewer.clock.shouldAnimate = true;
*
viewer.clock.startTime = Cesium.JulianDate.fromIso8601("2015-01-01T16:00:00Z");
*
viewer.clock.stopTime = Cesium.JulianDate.fromIso8601("2015-12-30T16:20:00Z");
*
viewer.clock.currentTime = Cesium.JulianDate.fromIso8601("2017-07-11T16:00:00Z");
* viewer.clock.multiplier = 200;
* viewer.clock.clockStep = Cesium.ClockStep.SYSTEM_CLOCK_MULTIPLIER;
* viewer.clock.clockRange = Cesium.ClockRange.LOOP_STOP;
*
viewer.timeline.zoomTo(viewer.clock.startTime, viewer.clock.stopTime); // 显示区域
* }
* //TimeControl();