duration的设置如下
viewer.camera.flyTo({
destination : Cesium.Cartesian3.fromDegrees(116.9863,36.756556,248935),
orientation:{
heading : 6.24248,
pitch : -1.56982,
roll : 0
},
// 时间:秒
duration:6,
// 飞行完成执行方法
complete:function () {
}
});
duration指的是飞行时间,速度会根据距离和时间计算出来。
如果是飞行速度,在 Route 接口里面可以设置speed