FlyManager

new SuperMap3D.FlyManager(options)

Flight management class, which controls the start, pause, stop and site events of the flight.
Name Type Description
options Object optional Contains the following properties:
Name Type Description
scene Scene optional scene object.
routes RouteCollection optional A collection of flightline objects (read from flight files).
Example:
//Create a flightline collection object.
var routes = new SuperMap3D.RouteCollection();
//Read flight files.
routes.fromFile('./test.fpf');
//Create a flight management object.
var fm = new SuperMap3D.FlyManager({
    scene : scene,
    routes : routes
});
See:

Members

readonlycurrentRoute : Route

Get the current flight path.

currentStopIndex : Number

Get or set the current station index (specify from this station to start flight).
Default Value: 0

playRate : Number

Get or set the flight speed of the flight path, greater than 1.0 accelerates, less than 1.0 decelerates.
Default Value: 1.0

readonlyreadyPromise : Promise

A promise to get the ready state of a flightline.

routes : RouteCollection

Get or set the current route collection object.

readonlystopArrived : Event

Get site arrival events.

Methods

getAllRouteStops()Array.<RouteStop>

Get all stops on the current flightline.
Returns:
Returns an array of all sites collection.

pause()

Suspend flight.

play()

start flight.

stop()

stop flight.

viewToStop(stop)

site positioning.
Name Type Description
stop RouteStop The camera is positioned to the site.