FlyManager

new Cesium.FlyManager(options)

Flight management, control the start, pause, stop and site events of the flight.
Name Type Description
options Object optional Contains the following attributes:
Name Type Description
scene Scene optional Scene object.
routes RouteCollection optional The flight path collection object (read from the flight file).
Example:
//Create a flight route collection object.
var routes = new Cesium.RouteCollection();
//Read the flight file.
routes.fromFile('./test.fpf');
//Create flight management objects.
var fm = new Cesium.FlyManager({
    scene : scene,
    routes : routes
});
See:

Members

readonlycurrentRoute : Route

Get the current flight route.

currentStopIndex : Number

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

playRate : Number

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

readonlyreadyPromise : Promise

A promise to get the ready status of the flight route.

routes : RouteCollection

Get or set the current route collection object.

readonlystopArrived : Event

Get site arrival event.

Methods

getAllRouteStops()Array.<RouteStop>

Get all the stops of the current flight route.
Returns:
Returns an array of all site collections.

pause()

Suspend the flight.

play()

Start flying.

stop()

Stop flying.

viewToStop(stop)

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