ui/map/aircraft/AircraftRoutes¶
Classes¶
AircraftRoutes¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:13
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:25
Parameters¶
map¶
Map$1
displayOptions¶
Returns¶
Methods¶
setupLayers()¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:39
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:54
Update route data and display
Parameters¶
data¶
Route data from server
Returns¶
void
setSelectedAircraft()¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:64
Set the selected aircraft ID
Parameters¶
aircraftId¶
string | null
Aircraft ID (null to deselect)
Returns¶
void
updateRouteDisplay()¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:73
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:101
Clear route display from map
Returns¶
void
updateDisplayOptions()¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:108
Update display options (called when user changes settings)
Parameters¶
options¶
Returns¶
void
clearRouteData()¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:127
Clear route data when aircraft is removed
Returns¶
void
getRouteData()¶
Defined in: ui/map/aircraft/AircraftRoutes.ts:137
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