ui/map/aircraft/AircraftRoutes¶
Classes¶
AircraftRoutes¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:14
AircraftRoutes - Manages aircraft route visualization on the map
Holds the route data and selection state and coordinates with AircraftRouteRenderer for the actual MapLibre rendering. Routes are only shown for the selected aircraft and respect user display preferences.
Constructors¶
Constructor¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:26
Parameters¶
map¶
Map$1
displayOptions¶
Returns¶
Methods¶
setupLayers()¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:40
Set up route layers on the map. Should be called after map style loads or changes.
Returns¶
void
updateRouteData()¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:55
Update route data and display
Parameters¶
data¶
Route data from server
Returns¶
void
setSelectedAircraft()¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:65
Set the selected aircraft ID
Parameters¶
aircraftId¶
string | null
Aircraft ID (null to deselect)
Returns¶
void
updateRouteDisplay()¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:74
Update route display on the map. Clears the display unless routes are enabled and valid route data exists for the selected aircraft.
Returns¶
void
clearRouteDisplay()¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:102
Clear route display from map
Returns¶
void
updateDisplayOptions()¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:109
Update display options (called when user changes settings)
Parameters¶
options¶
Returns¶
void
clearRouteData()¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:128
Clear route data when aircraft is removed
Returns¶
void
getRouteData()¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:138
Get the current route data (used by RouteDrawingManager to anchor a leader line from the last existing waypoint of an aircraft that already has a route).
Returns¶
RouteData | null