Skip to content

ui/map/shapes/ShapeRenderer

Classes

ShapeRenderer

Defined in: ui/map/shapes/ShapeRenderer.ts:22

ShapeRenderer - Handles rendering of geographic shapes (polygons, polylines, etc.)

Renders shapes from the simulation: - POLY data (filled polygons like areas, zones, regions) - POLYLINE data (lines like routes, boundaries, paths) - Supports altitude-constrained areas (POLYALT)

Constructors

Constructor
new ShapeRenderer(mapDisplay, stateManager): ShapeRenderer;

Defined in: ui/map/shapes/ShapeRenderer.ts:37

Parameters
mapDisplay

MapDisplay

stateManager

StateManager

Returns

ShapeRenderer

Methods

initialize()
initialize(): void;

Defined in: ui/map/shapes/ShapeRenderer.ts:62

Create map sources/layers and render any shapes that arrived before the map was ready. Safe to re-run after a style change wipes the layers.

Returns

void

onStyleChange()
onStyleChange(): void;

Defined in: ui/map/shapes/ShapeRenderer.ts:316

Handle map style changes - re-add layers and re-render.

Returns

void

destroy()
destroy(): void;

Defined in: ui/map/shapes/ShapeRenderer.ts:335

Returns

void