Route

new Cesium.Route(options, isStopVisible, isFlyLoop, isLineVisible, routeName, speed, isAlongline, totalDuration)

The flight path object class.
Name Type Default Description
options Object optional Contains the following attributes:
isStopVisible Boolean false optional Whether the site logo is visible.
isFlyLoop Boolean false optional Whether to fly in a loop.
isLineVisible Boolean false optional Flight route visibility (optional)
routeName String '' optional The name of the flight route.
speed Number 50.0 optional Flight speed.
isAlongline Boolean false optional Fly along the route (optional).
totalDuration Number 0.0 optional Total flight time.
See:

Members

isAlongline : Boolean

Get or set for determining the flight route is flying along the route.
Default Value: false

isAltitudeFree : Boolean

Gets or sets whether the camera height is locked.

isFlyLoop : Boolean

Gets or sets whether the flight route is cyclically flying.
Default Value: false

isHeadingFree : Boolean

Gets or sets whether the camera locks the azimuth.

isLineVisible : Boolean

Gets or sets whether the path of the flight route is visible.
Default Value: false

isStopVisible : Boolean

Gets or sets whether the stop of the flight route is visible.
Default Value: false

isTiltFree : Boolean

Gets or sets whether the camera locks the pitch angle.

routeName : String

Get or set the name of the flight route.
Default Value: ''

speed : Number

Get or set the flight speed of the flight route, priority is based on the stop speed (unit: m/s).
Default Value: 50.0

readonlystopCollection : Array

Get the collection of all stations of the flight route.

readonlystopCount : Number

Get the number of stops on the flight route.

readonlytotalDuration : Number

Get or set the total flight time of the flight route (unit: second).

Methods

addStop(stop)boolean

Add a site.
Name Type Description
stop RouteStop Site object.
Returns:
Whether the addition is successful.

get(index)RouteStop

Get the stop of the flight route by index.
Name Type Description
index Number Site index.
Returns:
Returns the site currently indexed.

removeStop(stop)

Remove the flight station, the parameter is the station object.
Name Type Description
stop Object Site object