Route

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

Flightline object class. (This class cannot be created, it can only be obtained through the RouteCollection collection of flight routes)
Name Type Default Description
options Object optional Contains the following properties:
isStopVisible Boolean false optional Whether the site logo is visible.
isFlyLoop Boolean false optional Whether to fly circularly.
isLineVisible Boolean false optional Whether the flight path is visible.
routeName String '' optional Flightline name.
speed Number 50.0 optional flight speed.
isAlongline Boolean false optional Whether to fly along the route.
totalDuration Number 0.0 optional total flight time.
See:

Members

isAlongline : Boolean

Get or set whether the flight route is to fly along the route.
Default Value: false

isAltitudeFree : Boolean

Get or set whether the camera height is locked.

isFlyLoop : Boolean

Get or set whether the flight path is cyclic.
Default Value: false

isHeadingFree : Boolean

Get or set whether the camera locks the azimuth.

isLineVisible : Boolean

Get or set whether the path of the flight path is visible.
Default Value: false

isStopVisible : Boolean

Get or set whether the site of this flight path is visible.
Default Value: false

isTiltFree : Boolean

Get or set whether the camera locks the pitch angle.

routeName : String

Get or set the name of the flightline.
Default Value: ''

speed : Number

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

readonlystopCollection : Array

Get a collection of all stops for this flightline.

readonlystopCount : Number

Get the number of stops of the flight path.

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 site for this flightline by index.
Name Type Description
index Number site index.
Returns:
Returns the currently indexed site.

removeStop(stop)

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