Route

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

飞行路线对象类。
Name Type Default Description
options Object optional 包含以下属性:
isStopVisible Boolean false optional 站点标志是否可见。
isFlyLoop Boolean false optional Whether to cycle.
isLineVisible Boolean false optional Whether the flight route is visible.
routeName String '' optional Flight route name.
speed Number 50.0 optional Flight speed.
isAlongline Boolean false optional Whether to fly along the line.
totalDuration Number 0.0 optional Total flight time.
See:

Members

isAlongline : Boolean

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

isFlyLoop : Boolean

Gets or sets whether the flight route circulates.
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 site of the flight route is visible.
Default Value: false

isTiltFree : Boolean

Gets or sets whether the camera locks the pitch angle.

routeName : String

Gets or sets the name of the flight route.
Default Value: ''

speed : Number

Obtain or set the flight speed of the flight route, which is based on the site speed (unit: m/s).
Default Value: 50.0

readonlystopCollection : Array

Get a collection of all the sites for this flight route.

readonlystopCount : Number

Get the number of sites for this flight route.

readonlytotalDuration : Number

Gets or sets the total flight time (in seconds) of the flight route.

Methods

addStop(stop)boolean

Add a site.
Name Type Description
stop RouteStop Site object.
Returns:
Whether it was added successfully.

get(index)RouteStop

Obtain the site of the flight route through the index.
Name Type Description
index Number Site index.
Returns:
Returns the site of the current index.