Class: RouteStop

RouteStop

new RouteStop(options)

Flight station object class. The flight route consists of multiple flight stations.

Name Type Description
options Object optional

Contains the following attributes:

Name Type Default Description
duration Number 10.0 optional

The duration from the current site to the next site.

waitTime Numbe 0.0 optional

The duration of stay on this website.

point Cartesian3 optional

The location of this site.

heading Number 0.0 optional

The azimuth of this site is the angle between it and the true north direction.

tilt Number 0.0 optional

The elevation angle of this site.

stopName Stringr optional

The name of the site.

stopPlayMode Number optional

The distance from the current site to the next site.

speed Number 0.0 optional

The flight speed of this site.

surroundDuration Number 0.0 optional

This site revolves around flight time.

speed Number 0.0 optional

The flight speed of this site.

stopPlayMode Number StopPlayMode.StopPause optional

The action modes of this site include pause and rotation

Members

durationNumber

Get or set the flight duration (in seconds) from the current site to the next site.

Default Value:
0

headingNumber

Get or set the camera heading angle (in radians) for the current site.

Default Value:
0

readonly indexNumber

Retrieve the index of the current site.

pointCartesian3

Get or set the location of the current site.

promiseobject

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 handling of audio playback
        routeStop.promise = defer;
        audioEle.onended = function(){
            defer.resolve(true);
            routeStop.promise = undefined;
        };
        });

speedNumber

Get or set the flight speed of the current site in meters per second.

stopNameString

Get or set the current site name.

Default Value:
""

stopPlayModeString

Get or set the current site action mode, including pause and rotate.

See:

surroundDurationNumber

Get or set the current station's surrounding flight time (in seconds).

tiltNumber

Get or set the tilt angle (in radians) of the camera at the current site.

Default Value:
0

waitTimeNumber

Get or set the waiting time (in seconds) for the current site.

Default Value:
0