Skip to content

ui/map/aircraft/AircraftRouteRenderer

Classes

AircraftRouteRenderer

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:32

AircraftRouteRenderer - MapLibre rendering for aircraft routes: layer and source management, GeoJSON feature building, waypoint label placement and constraint formatting. Separated from AircraftRoutes to keep rendering concerns isolated.

Constructors

Constructor
new AircraftRouteRenderer(map, displayOptions): AircraftRouteRenderer;

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:50

Parameters
map

Map$1

displayOptions

DisplayOptions

Returns

AircraftRouteRenderer

Methods

setupLayers()
setupLayers(): void;

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:59

Set up route sources and layers on the map. Should be called after map style loads or changes.

Returns

void

buildRouteFeatures()
buildRouteFeatures(data, activeWaypointIndex): RouteFeatureSets;

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:185

Build GeoJSON features for route visualization

Parameters
data

RouteData

Route data from server

activeWaypointIndex

number

Index of active waypoint

Returns

RouteFeatureSets

Object containing all feature collections

updateMapSources()
updateMapSources(features, showLabels): void;

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:347

Update map sources with route features

Parameters
features

RouteFeatureSets

showLabels

boolean

Returns

void

clearRouteDisplay()
clearRouteDisplay(): void;

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:358

Clear all route display from map

Returns

void

updateRouteLinesVisibility()
updateRouteLinesVisibility(showRoutes, showRouteLines): void;

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:364

Parameters
showRoutes

boolean

showRouteLines

boolean

Returns

void

updateRouteLabelsVisibility()
updateRouteLabelsVisibility(showRoutes, showRouteLabels): void;

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:371

Parameters
showRoutes

boolean

showRouteLabels

boolean

Returns

void

updateRoutePointsVisibility()
updateRoutePointsVisibility(showRoutes, showRoutePoints): void;

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:375

Parameters
showRoutes

boolean

showRoutePoints

boolean

Returns

void

updateRouteColors()
updateRouteColors(displayOptions): void;

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:382

Update route colors from display options

Parameters
displayOptions

DisplayOptions

Returns

void

updateLabelSize()
updateLabelSize(size): void;

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:406

Update label text size

Parameters
size

number

Returns

void

Interfaces

RouteFeatureSets

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:18

GeoJSON feature collections produced by buildRouteFeatures and consumed by updateMapSources, one array per route map source.

Properties

completeRouteFeatures
completeRouteFeatures: Feature<Geometry, GeoJsonProperties>[];

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:19

aircraftToActiveFeatures
aircraftToActiveFeatures: Feature<Geometry, GeoJsonProperties>[];

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:20

remainingRouteFeatures
remainingRouteFeatures: Feature<Geometry, GeoJsonProperties>[];

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:21

waypointFeatures
waypointFeatures: Feature<Geometry, GeoJsonProperties>[];

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:22

labelFeatures
labelFeatures: Feature<Geometry, GeoJsonProperties>[];

Defined in: ui/map/aircraft/AircraftRouteRenderer.ts:23