RouteStop

new Cesium.RouteStop(options)

Flight site object class. The flight path consists of multiple flight sites.
Name Type Description
options Object optional The object contains the following properties:
Name Type Description
duration Number optional The duration of the current site to the next site.
isExcluded Boolean optional Whether the current site is excluded. (not supported at this time)
waitTime Numbe optional The time spent on this site.
point Cartesian3 optional The location of this site.
heading Number optional The azimuth of the site, the azimuth angle is the angle with the true north direction.
tilt Number optional The pitch angle of this site.
stopName Stringr optional The name of the site.
distanceToNext Number optional The distance from the current site to the next site.
speed Number optional The flight speed of this site.

Members

duration : Number

Gets or sets the flight duration (in seconds) from the current site to the next site.
Default Value: 0

heading : Number

Gets or sets the camera heading angle of the current site (in radians).
Default Value: 0

readonlyindex : Number

Get the index of the current site.

readonlypoint : Cartesian3

Get the location of the current site.

promise : object

Gets or sets the promise of the current site for asynchronous operation of site events.
Example:
flyManager.stopArrived.addEventListener(function(routeStop){
         audioEle.play();
         var defer = Cesium.when.defer();
         //Asynchronous processing of playing audio
         routeStop.promise = defer;
         audioEle.onended = function(){
              defer.resolve(true);
              routeStop.promise = undefined;
            };
          });

speed : Number

Gets or sets the flight speed of the current site (in meters per second).

stopName : String

Gets or sets the current site name.
Default Value: ""

stopPlayMode : String

Gets or sets the current site action mode, including pause and rotate.
See:

surroundDuration : Number

Gets or sets the current site surround flight time (in seconds).

tilt : Number

Gets or sets the tilt angle of the camera at the current site (in radians).
Default Value: 0

waitTime : Number

Gets or sets the waiting time of the current site (in seconds).
Default Value: 0