Class: CustomFlightPathLegRenderer<Args>
Defined in: src/sdk/components/map/CustomFlightPathLegRenderer.ts:9
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.
Extends
Type Parameters
| Type Parameter |
|---|
Args extends any[] |
Constructors
Constructor
new CustomFlightPathLegRenderer<
Args>(renderVector):CustomFlightPathLegRenderer<Args>
Defined in: src/sdk/components/map/CustomFlightPathLegRenderer.ts:14
Constructor.
Parameters
| Parameter | Type | Description |
|---|---|---|
renderVector | (vector, isIngress, isEgress, leg, context, streamStack, ...args) => void | A function which renders individual flight path vectors. |
Returns
CustomFlightPathLegRenderer<Args>
Overrides
AbstractFlightPathLegRenderer.constructor
Properties
renderVector()
protectedreadonlyrenderVector: (vector,isIngress,isEgress,leg,context,streamStack, ...args) =>void
Defined in: src/sdk/components/map/CustomFlightPathLegRenderer.ts:15
A function which renders individual flight path vectors.
Parameters
| Parameter | Type |
|---|---|
vector | Readonly<FlightPathVector> |
isIngress | boolean |
isEgress | boolean |
leg | LegDefinition |
context | CanvasRenderingContext2D |
streamStack | GeoProjectionPathStreamStack |
...args | Args |
Returns
void
Inherited from
AbstractFlightPathLegRenderer.renderVector
tempVector
protectedreadonlytempVector:FlightPathVector
Defined in: src/sdk/components/map/AbstractFlightPathLegRenderer.ts:34
Inherited from
AbstractFlightPathLegRenderer.tempVector
geoCircleCache
protectedreadonlystaticgeoCircleCache:GeoCircle[]
Defined in: src/sdk/components/map/AbstractFlightPathLegRenderer.ts:32
Inherited from
AbstractFlightPathLegRenderer.geoCircleCache
geoPointCache
protectedreadonlystaticgeoPointCache: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
| Parameter | 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