Source/DataSources/KmlTour.js
/**
 * @alias KmlTour
 * @constructor
 *
 * @param {String} name name parsed from KML
 * @param {String} id id parsed from KML
 * @param {Array} playlist array with KMLTourFlyTos, KMLTourWaits and KMLTourSoundCues
 */


@param {String} name name parsed from KML
@param {String} id id parsed from KML
@param {Array} playlist array with KMLTourFlyTos, KMLTourWaits and KMLTourSoundCues
@param { String } name name parsed from KML @param { String } id id parsed from KML @param { Array } playlist array with KMLTourFlyTos KMLTourWaits and KMLTourSoundCues
function KmlTour(name, id) {
  this.id = id;
  this.name = name;
  this.playlistIndex = 0;
  this.playlist = [];
  this.tourStart = new Event();
  this.tourEnd = new Event();
  this.entryStart = new Event();
  this.entryEnd = new Event();
  this._activeEntries = [];
}
function KmlTour ( name , id ) { this . id = id ; this . name = name ; this . playlistIndex = 0 ; this . playlist = [ ] ; this . tourStart = new Event ( ) ; this . tourEnd = new Event ( ) ; this . entryStart = new Event ( ) ; this . entryEnd = new Event ( ) ; this . _activeEntries = [ ] ; }
@alias KmlTour
 @constructor
@alias KmlTour @constructor
/**
   * Id of kml gx:Tour entry
   * @type String
   */ /**
   * Tour name
   * @type String
   */ /**
   * Index of current entry from playlist
   * @type Number
   */ /**
   * Array of playlist entries
   * @type Array
   */ /**
   * Event will be called when tour starts to play,
   * before any playlist entry starts to play.
   * @type Event
   */ /**
   * 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.
   * @type Event
   */ /**
   * Event will be called when entry from playlist starts to play.
   *
   * Event callback will be called with curent entry as first parameter.
   * @type Event
   */ /**
   * 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 {@link KmlTour#stop}
   * @type Event
   */