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:
|
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