Skip to main content

Class: CustomFlightPathLegRenderer<Args>

Renders flight plan leg paths one vector at a time, optionally excluding the ingress and/or egress transition vectors. The rendering behavior for each vector is controlled by a function passed to the class constructor.

Type parameters

NameType
Argsextends any[]

Hierarchy

Constructors

constructor

new CustomFlightPathLegRenderer<Args>(renderVector): CustomFlightPathLegRenderer<Args>

Constructor.

Type parameters

NameType
Argsextends any[]

Parameters

NameTypeDescription
renderVector(vector: CircleVector, isIngress: boolean, isEgress: boolean, leg: LegDefinition, context: CanvasRenderingContext2D, streamStack: GeoProjectionPathStreamStack, ...args: Args) => voidA function which renders individual flight path vectors.

Returns

CustomFlightPathLegRenderer<Args>

Overrides

AbstractFlightPathLegRenderer.constructor

Defined in

src/sdk/components/map/CustomFlightPathLegRenderer.ts:14

Properties

renderVector

Protected Readonly renderVector: (vector: CircleVector, isIngress: boolean, isEgress: boolean, leg: LegDefinition, context: CanvasRenderingContext2D, streamStack: GeoProjectionPathStreamStack, ...args: Args) => void

A function which renders individual flight path vectors.

Type declaration

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

A function which renders individual flight path vectors.

Parameters
NameType
vectorCircleVector
isIngressboolean
isEgressboolean
legLegDefinition
contextCanvasRenderingContext2D
streamStackGeoProjectionPathStreamStack
...argsArgs
Returns

void

Inherited from

AbstractFlightPathLegRenderer.renderVector

Defined in

src/sdk/components/map/CustomFlightPathLegRenderer.ts:15


tempVector

Protected Readonly tempVector: CircleVector

Inherited from

AbstractFlightPathLegRenderer.tempVector

Defined in

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


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

Returns

void

Inherited from

AbstractFlightPathLegRenderer.render

Defined in

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