English中文

KmlTourFlyTo

new Cesium.KmlTourFlyTo(duration, flyToMode, view)

将 KmlTour 转移到下一个目的地。在给定的秒数内使用指定的 FlyToMode 可以促进此转换。 Transitions the KmlTour to the next destination. This transition is facilitated using a specified flyToMode over a given number of seconds.
名称 Name 类型 Type 说明 Description
duration number 进入持续时间 entry duration
flyToMode string KML 飞行模式:弹跳、平滑等 KML fly to mode: bounce, smooth, etc
view KmlCamera | KmlLookAt KmlCamera 或 KmlLookAt KmlCamera or KmlLookAt
另见: See:

方法 Methods

getCameraOptions(cameraOptions)object

返回选项 Returns options for Camera#flyTo or Camera#flyToBoundingSphere 取决于 this.view 类型。 depends on this.view type.
名称 Name 类型 Type 说明 Description
cameraOptions object 与生成的选项合并。参见 options to merge with generated. See Camera#flyTo
返回: Returns:

play(done, camera, cameraOptions)

播放此播放列表条目 Play this playlist entry
名称 Name 类型 Type 说明 Description
done KmlTourFlyTo.DoneCallback 播放结束时将调用的函数 function which will be called when playback ends
camera Camera Cesium相机 Cesium camera
cameraOptions object 可选 optional 它将与相机 FlyTo 选项合并。参见 which will be merged with camera flyTo options. See Camera#flyTo
停止执行当前条目。取消相机飞至 Stop execution of curent entry. Cancel camera flyTo

类型定义 Type Definitions

Cesium.KmlTourFlyTo.DoneCallback(terminated)

飞行完成时将执行的函数。 A function that will be executed when the flight completes.
名称 Name 类型 Type 说明 Description
terminated boolean 为真,如果 true if KmlTourFlyTo#stop 在条目完成播放之前调用。 was called before entry done playback.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.