Skip to main content

Class: MapSystemLegRenderer<Args>

Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:87

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

Extends​

Type Parameters​

Type ParameterDefault type
Args extends any[][]

Constructors​

Constructor​

new MapSystemLegRenderer<Args>(): MapSystemLegRenderer<Args>

Returns​

MapSystemLegRenderer<Args>

Inherited from​

AbstractFlightPathLegRenderer.constructor

Properties​

currentRenderStyle​

currentRenderStyle: FlightPathRenderStyle | FlightPathVectorStyle

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


tempVector​

protected readonly tempVector: FlightPathVector

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

Inherited from​

AbstractFlightPathLegRenderer.tempVector


vectorRenderer​

protected readonly vectorRenderer: FlightPathVectorLineRenderer

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


geoCircleCache​

protected readonly static geoCircleCache: GeoCircle[]

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

Inherited from​

AbstractFlightPathLegRenderer.geoCircleCache


geoPointCache​

protected readonly static geoPointCache: GeoPoint[]

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

Inherited from​

AbstractFlightPathLegRenderer.geoPointCache

Methods​

render()​

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

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

Renders a flight plan leg path to a canvas.

Parameters​

ParameterTypeDescription
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.
...argsArgsAdditional arguments.

Returns​

void

Inherited from​

AbstractFlightPathLegRenderer.render


renderVector()​

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

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

Renders a flight path vector.

Parameters​

ParameterTypeDescription
vectorReadonly<FlightPathVector>The 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.
...argsArgs-

Returns​

void

Overrides​

AbstractFlightPathLegRenderer.renderVector