Skip to content

ui/map/aircraft/Aircraft2DRenderer

Classes

Aircraft2DRenderer

Defined in: ui/map/aircraft/Aircraft2DRenderer.ts:14

Wrapper for existing AircraftRenderer to implement IEntityRenderer interface This provides a consistent interface for both 2D and 3D renderers while maintaining compatibility with the existing 2D rendering implementation.

Implements

Constructors

Constructor
new Aircraft2DRenderer(displayOptions, stateManager): Aircraft2DRenderer;

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

Parameters
displayOptions

DisplayOptions

stateManager

StateManager

Returns

Aircraft2DRenderer

Methods

initialize()
initialize(map): void;

Defined in: ui/map/aircraft/Aircraft2DRenderer.ts:29

Eager source/layer setup matters when a 3D overlay is also enabled: the 3D custom layer is added right after this call, so 2D layers must already exist or they'd be lazily appended later and end up on top of the 3D layer.

Parameters
map

Map$1

Returns

void

Implementation of

IEntityRenderer.initialize

updateEntities()
updateEntities(entities, _simTime): void;

Defined in: ui/map/aircraft/Aircraft2DRenderer.ts:43

The Map is expected to contain a single 'batch' entry holding the full AircraftData, since the underlying 2D renderer processes all aircraft at once.

Parameters
entities

Map\<string, AircraftData>

_simTime

number

Returns

void

Implementation of

IEntityRenderer.updateEntities

updateDisplayOptions()
updateDisplayOptions(options): void;

Defined in: ui/map/aircraft/Aircraft2DRenderer.ts:55

Update display options (colors, sizes, visibility)

Parameters
options

DisplayOptions

Updated display options

Returns

void

Implementation of

IEntityRenderer.updateDisplayOptions

onStyleChange()
onStyleChange(): void;

Defined in: ui/map/aircraft/Aircraft2DRenderer.ts:68

Handle map style changes Called when the map style is changed to allow renderer to recreate layers

Returns

void

Implementation of

IEntityRenderer.onStyleChange

destroy()
destroy(): void;

Defined in: ui/map/aircraft/Aircraft2DRenderer.ts:74

Cleanup resources Called when renderer is being destroyed or replaced

Returns

void

Implementation of

IEntityRenderer.destroy

getType()
getType(): "2d";

Defined in: ui/map/aircraft/Aircraft2DRenderer.ts:79

Get renderer type

Returns

"2d"

'2d' for sprite-based rendering, '3d' for model-based rendering

Implementation of

IEntityRenderer.getType

getRenderer()
getRenderer(): AircraftRenderer | null;

Defined in: ui/map/aircraft/Aircraft2DRenderer.ts:84

Expose the underlying AircraftRenderer for 2D-specific calls.

Returns

AircraftRenderer | null