RouteCollection

new SuperMap3D.RouteCollection(entityCollection)

The flight path collection object class.
Name Type Description
entityCollection EntityCollection The entity collection is used to create flight routes and flight stations.
Example:
//Create a flight path collection object.
        var routes = new Supermap3D.RouteCollection(entityCollection);
        //Read the text file that records the flight route.
        routes.fromFile('./test.fpf');

Members

readonlyready : Boolean

Get whether the route collection is ready.

readonlyroutes : Array.<Route>

Get the route collection array.

Methods

addRoute(route)

Add route object.
Name Type Description
route Route Route object.

fromFile(url)

Asynchronously load the fpf text file that records the flight path.
Name Type Description
url String Fpf text file path url.

fromXML(xml)

Read and analyze the fpf text file that records the flight path.
Name Type Description
xml String The fpf text file that records the flight path.
Example:
var routes = new SuperMap3D.RouteCollection();
var XMLContent = "......";
routes.fromXML(XMLContent);

get(index)Route

Get the flight path by index.
Name Type Description
index Number Index
Returns:
Returns the flight path corresponding to the index.