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¶
Defined in: ui/map/aircraft/Aircraft2DRenderer.ts:19
Parameters¶
displayOptions¶
stateManager¶
Returns¶
Methods¶
initialize()¶
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¶
updateEntities()¶
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()¶
Defined in: ui/map/aircraft/Aircraft2DRenderer.ts:55
Update display options (colors, sizes, visibility)
Parameters¶
options¶
Updated display options
Returns¶
void
Implementation of¶
IEntityRenderer.updateDisplayOptions
onStyleChange()¶
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¶
destroy()¶
Defined in: ui/map/aircraft/Aircraft2DRenderer.ts:74
Cleanup resources Called when renderer is being destroyed or replaced
Returns¶
void
Implementation of¶
getType()¶
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¶
getRenderer()¶
Defined in: ui/map/aircraft/Aircraft2DRenderer.ts:84
Expose the underlying AircraftRenderer for 2D-specific calls.
Returns¶
AircraftRenderer | null