RouteStop

new Supermap3D.RouteStop(options)

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

Members

duration : Number

Get or set the flight duration (unit: second) from the current station to the next station.
Default Value: 0

heading : Number

Get or set the camera heading angle of the current site (unit: radians).
Default Value: 0

readonlyindex : Number

Get the index of the current site.

point : Cartesian3

Get or set the location of the current site.

promise : object

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

speed : Number

Get or set the flight speed of the current station (unit: m/s).

stopName : String

Get or set the current site name.
Default Value: ""

stopPlayMode : String

Get or set the current site action mode, including pause and rotation.
See:

surroundDuration : Number

Gets or sets the current station orbiting time (unit: second).

tilt : Number

Get or set the tilt angle of the camera at the current site (unit: radians).
Default Value: 0

waitTime : Number

Get or set the waiting time (unit: second) of the current site.
Default Value: 0