描述 KmlTour,它使用 KmlTourFlyTo 和 KmlTourWait 在给定时间间隔引导相机到指定目的地。 Describes a KmlTour, which uses KmlTourFlyTo, and KmlTourWait to guide the camera to a specified destinations on given time intervals.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
name |
string | 从 KML 解析的名称 name parsed from KML |
id |
string | 从 KML 解析的 id id parsed from KML |
playlist |
Array | 包含 KmlTourFlyTos 和 KmlTourWaits 的数组 array with KmlTourFlyTos and KmlTourWaits |
演示: Demo:
另见: See:
成员 Members
entryEnd : Event
当播放列表中的条目结束播放时将调用该事件。将使用以下参数调用事件回调: 1.entry - 条目 2.termied - 如果通过调用终止播放,则为 true 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
entryStart : Event
当播放列表中的条目开始播放时将调用事件。将使用当前条目作为第一个参数来调用事件回调。 Event will be called when entry from playlist starts to play. Event callback will be called with curent entry as first parameter.
kml gx 的 ID:旅游条目 Id of kml gx:Tour entry
行程名称 Tour name
播放列表条目数组 Array of playlist entries
播放列表中当前条目的索引 Index of current entry from playlist
tourEnd : Event
当播放完所有播放列表条目或取消巡演播放时,将调用该事件。如果游览播放终止,将使用终止= true 参数调用事件回调。 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.
tourStart : Event
当巡演开始播放、任何播放列表条目开始播放之前,事件将被调用。 Event will be called when tour starts to play, before any playlist entry starts to play.
方法 Methods
添加条目到此巡演播放列表。 Add entry to this tour playlist.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
entry |
KmlTourFlyTo | KmlTourWait | 要添加到播放列表的条目。 an entry to add to the playlist. |
玩这个旅游。 Play this tour.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
widget |
CesiumWidget | 小部件。 The widget. |
cameraOptions |
object |
可选 optional
这些选项将与 these options will be merged with Camera#flyTo
FlyTo 播放列表条目的选项。 options for FlyTo playlist entries. |
停止当前的巡演。 Stop curently playing tour.
