Source/DataSources/KmlTour.js
// Increment playlistIndex and call playEntry if terminated isn't true.
Increment playlistIndex and call playEntry if terminated isn't true.
Increment playlistIndex and call playEntry if terminated isn ' t true .
function playNext(viewer, cameraOptions, allDone, terminated) {
  var entry = this.playlist[this.playlistIndex];
  this.entryEnd.raiseEvent(entry, terminated);
  if (terminated) {
    allDone(terminated);
  } else {
    var indx = this._activeEntries.indexOf(entry);
    if (indx >= 0) {
      this._activeEntries.splice(indx, 1);
    }
    this.playlistIndex++;
    playEntry.call(this, viewer, cameraOptions, allDone);
  }
}
function playNext ( viewer , cameraOptions , allDone , terminated ) { var entry = this . playlist [ this . playlistIndex ] ; this . entryEnd . raiseEvent ( entry , terminated ) ; if ( terminated ) { allDone ( terminated ) ; } else { var indx = this . _activeEntries . indexOf ( entry ) ; if ( indx >= 0 ) { this . _activeEntries . splice ( indx , 1 ) ; } this . playlistIndex ++ ; playEntry . call ( this , viewer , cameraOptions , allDone ) ; } }
Increment playlistIndex and call playEntry if terminated isn't true.
Increment playlistIndex and call playEntry if terminated isn ' t true .