Class: FlightPathLegLineRenderer<Args>
Renders flight plan leg paths as lines, with support for different styles for each flight path vector in the leg.
Type parameters
Name | Type |
---|---|
Args | extends any [] = any [] |
Hierarchy
AbstractFlightPathLegRenderer
<Args
>↳
FlightPathLegLineRenderer
Constructors
constructor
• new FlightPathLegLineRenderer<Args
>(styleSelector
): FlightPathLegLineRenderer
<Args
>
Constructor.
Type parameters
Name | Type |
---|---|
Args | extends any [] = any [] |
Parameters
Name | Type | Description |
---|---|---|
styleSelector | FlightPathLegLineStyleSelector <Args > | A function which selects a style for each rendered vector. |
Returns
FlightPathLegLineRenderer
<Args
>
Overrides
AbstractFlightPathLegRenderer.constructor
Defined in
src/sdk/components/map/FlightPathLegLineRenderer.ts:93
Properties
tempVector
• Protected
Readonly
tempVector: CircleVector
Inherited from
AbstractFlightPathLegRenderer.tempVector
Defined in
src/sdk/components/map/AbstractFlightPathLegRenderer.ts:34
geoCircleCache
▪ Static
Protected
Readonly
geoCircleCache: GeoCircle
[]
Overrides
AbstractFlightPathLegRenderer.geoCircleCache
Defined in
src/sdk/components/map/FlightPathLegLineRenderer.ts:60
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
Overrides
AbstractFlightPathLegRenderer.render
Defined in
src/sdk/components/map/FlightPathLegLineRenderer.ts:100
renderVector
▸ renderVector(vector
, isIngress
, isEgress
, leg
, context
, streamStack
, ...args
): void
Renders a flight path vector.
Parameters
Name | Type | Description |
---|---|---|
vector | CircleVector | The flight path vector to render. |
isIngress | boolean | Whether the vector is part of the ingress transition. |
isEgress | boolean | Whether the vector is part of the egress transition. |
leg | LegDefinition | The flight plan leg containing the vector to render. |
context | CanvasRenderingContext2D | The canvas 2D rendering context to which to render. |
streamStack | GeoProjectionPathStreamStack | The path stream stack to which to render. |
...args | Args | - |
Returns
void
Overrides
AbstractFlightPathLegRenderer.renderVector
Defined in
src/sdk/components/map/FlightPathLegLineRenderer.ts:119