Flight route collection object class.
Name | Type | Description |
---|---|---|
entityCollection |
EntityCollection | Entity collection used to create flight routes and flight sites. |
Example:
//Create a flight route collection object.
var routes = new Cesium.RouteCollection(entityCollection);
//Read the text file that records the flight path.
routes.fromFile('./test.fpf');
Members
-
Get the route collection ready.
-
readonlyroutes : Array.<Route>
-
Get an array of route collections.
Methods
-
Add a route object.
Name Type Description route
Route Route object. -
Asynchronously load the fpf text file that records the flight path.
Name Type Description url
String Fpf text file path url. -
Read the fpf text file that parses the flight path.
Name Type Description xml
String Record the fpf text file of the flight path. Example:
var routes = new Cesium.RouteCollection(); var XMLContent = "......"; routes.fromXML(XMLContent);
-
get(index) → Route
-
Get the flight route through the index.
Name Type Description index
Number 索引。 Returns:
Returns the flight path corresponding to the index.