KmlTour

new Cesium.KmlTour(name, id, playlist)

Describes a KmlTour, which uses KmlTourFlyTo, and KmlTourWait to guide the camera to a specified destinations on given time intervals.
参数名称 类型 描述信息
name string name parsed from KML
id string id parsed from KML
playlist Array array with KmlTourFlyTos and KmlTourWaits
Demo:
参考:

成员(属性)

Event will be called when entry from playlist ends to play. Event callback will be called with following parameters: 1. entry - entry 2. terminated - true if playback was terminated by calling KmlTour#stop
Event will be called when entry from playlist starts to play. Event callback will be called with curent entry as first parameter.
Id of kml gx:Tour entry
Tour name
Array of playlist entries
Index of current entry from playlist
Event will be called when all playlist entries are played, or tour playback being canceled. If tour playback was terminated, event callback will be called with terminated=true parameter.
Event will be called when tour starts to play, before any playlist entry starts to play.

方法

addPlaylistEntry(entry)

Add entry to this tour playlist.
参数名称 类型 描述信息
entry KmlTourFlyTo | KmlTourWait an entry to add to the playlist.

play(widget, cameraOptions)

Play this tour.
参数名称 类型 描述信息
widget CesiumWidget The widget.
cameraOptions object 可选 these options will be merged with Camera#flyTo options for FlyTo playlist entries.
Stop curently playing tour.