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
Name | Type |
---|---|
Args | extends any [] |
Hierarchy
AbstractFlightPathLegRenderer
<Args
>↳
CustomFlightPathLegRenderer
Constructors
constructor
• new CustomFlightPathLegRenderer<Args
>(renderVector
): CustomFlightPathLegRenderer
<Args
>
Constructor.
Type parameters
Name | Type |
---|---|
Args | extends any [] |
Parameters
Name | Type | Description |
---|---|---|
renderVector | (vector : CircleVector , isIngress : boolean , isEgress : boolean , leg : LegDefinition , context : CanvasRenderingContext2D , streamStack : GeoProjectionPathStreamStack , ...args : Args ) => void | A 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
Name | Type |
---|---|
vector | CircleVector |
isIngress | boolean |
isEgress | boolean |
leg | LegDefinition |
context | CanvasRenderingContext2D |
streamStack | GeoProjectionPathStreamStack |
...args | Args |
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
Name | Type | Description |
---|---|---|
leg | LegDefinition | The flight plan leg to render. |
context | CanvasRenderingContext2D | The canvas 2D rendering context to which to render. |
streamStack | GeoProjectionPathStreamStack | The path stream stack to which to render. |
partsToRender | number | The parts of the leg to render, as a combination of FlightPathLegRenderPart values. |
...args | Args | Additional arguments. |
Returns
void
Inherited from
AbstractFlightPathLegRenderer.render
Defined in
src/sdk/components/map/AbstractFlightPathLegRenderer.ts:45