KmlTour

open external class KmlTour(var name: String, var id: String, var playlist: ReadonlyArray<JsAny>)(source)

Describes a KmlTour, which uses KmlTourFlyTo, and KmlTourWait to guide the camera to a specified destinations on given time intervals.

See also

Constructors

Link copied to clipboard
constructor(name: String, id: String, playlist: ReadonlyArray<JsAny>)

Properties

Link copied to clipboard
external var entryEnd: DefaultEvent

Event will be called when entry from playlist ends to play.

Link copied to clipboard
external var entryStart: DefaultEvent

Event will be called when entry from playlist starts to play.

Link copied to clipboard
external var id: String

id parsed from KML

Link copied to clipboard
external var name: String

name parsed from KML

Link copied to clipboard

array with KmlTourFlyTos and KmlTourWaits

Link copied to clipboard
external var playlistIndex: Int

Index of current entry from playlist

Link copied to clipboard
external var tourEnd: DefaultEvent

Event will be called when all playlist entries are played, or tour playback being canceled.

Link copied to clipboard
external var tourStart: DefaultEvent

Event will be called when tour starts to play, before any playlist entry starts to play.

Functions

Link copied to clipboard
external fun addPlaylistEntry(entry: KmlTourFlyTo)

Add entry to this tour playlist.

external fun addPlaylistEntry(entry: KmlTourWait)
Link copied to clipboard
external fun play(widget: CesiumWidget, cameraOptions: JsAny? = definedExternally)

Play this tour.

Link copied to clipboard
external fun stop()

Stop curently playing tour.