Skip to main content

Class: MapSystemLegRenderer

A map system flight plan leg renderer that uses a swappable style.

Hierarchy

Constructors

constructor

new MapSystemLegRenderer(): MapSystemLegRenderer

Returns

MapSystemLegRenderer

Inherited from

AbstractFlightPathLegRenderer.constructor

Properties

currentRenderStyle

currentRenderStyle: FlightPathRenderStyle | FlightPathVectorStyle

Defined in

src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:89


tempVector

Protected Readonly tempVector: CircleVector

Inherited from

AbstractFlightPathLegRenderer.tempVector

Defined in

src/sdk/components/map/AbstractFlightPathLegRenderer.ts:34


vectorRenderer

Protected Readonly vectorRenderer: FlightPathVectorLineRenderer

Defined in

src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:88


geoCircleCache

Static Protected Readonly geoCircleCache: GeoCircle[]

Inherited from

AbstractFlightPathLegRenderer.geoCircleCache

Defined in

src/sdk/components/map/AbstractFlightPathLegRenderer.ts:32


geoPointCache

Static Protected Readonly geoPointCache: GeoPoint[]

Inherited from

AbstractFlightPathLegRenderer.geoPointCache

Defined in

src/sdk/components/map/AbstractFlightPathLegRenderer.ts:31

Methods

render

render(leg, context, streamStack, partsToRender, ...args): void

Renders a flight plan leg path to a canvas.

Parameters

NameTypeDescription
legLegDefinitionThe flight plan leg to render.
contextCanvasRenderingContext2DThe canvas 2D rendering context to which to render.
streamStackGeoProjectionPathStreamStackThe path stream stack to which to render.
partsToRendernumberThe parts of the leg to render, as a combination of FlightPathLegRenderPart values.
...args[]Additional arguments.

Returns

void

Inherited from

AbstractFlightPathLegRenderer.render

Defined in

src/sdk/components/map/AbstractFlightPathLegRenderer.ts:45


renderVector

renderVector(vector, isIngress, isEgress, leg, context, streamStack): void

Renders a flight path vector.

Parameters

NameTypeDescription
vectorCircleVectorThe flight path vector to render.
isIngressbooleanWhether the vector is part of the ingress transition.
isEgressbooleanWhether the vector is part of the egress transition.
legLegDefinitionThe flight plan leg containing the vector to render.
contextCanvasRenderingContext2DThe canvas 2D rendering context to which to render.
streamStackGeoProjectionPathStreamStackThe path stream stack to which to render.

Returns

void

Overrides

AbstractFlightPathLegRenderer.renderVector

Defined in

src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:92