Class: MapSystemLegRenderer
A map system flight plan leg renderer that uses a swappable style.
Hierarchy
↳
MapSystemLegRenderer
Constructors
constructor
• new MapSystemLegRenderer(): MapSystemLegRenderer
Returns
Inherited from
AbstractFlightPathLegRenderer.constructor
Properties
currentRenderStyle
• currentRenderStyle: FlightPathRenderStyle
| FlightPathVectorStyle
Defined in
src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:89
tempVector
• Protected
Readonly
tempVector: CircleVector
Inherited from
AbstractFlightPathLegRenderer.tempVector
Defined in
src/sdk/components/map/AbstractFlightPathLegRenderer.ts:34
vectorRenderer
• Protected
Readonly
vectorRenderer: FlightPathVectorLineRenderer
Defined in
src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:88
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 | [] | Additional arguments. |
Returns
void
Inherited from
AbstractFlightPathLegRenderer.render
Defined in
src/sdk/components/map/AbstractFlightPathLegRenderer.ts:45
renderVector
▸ renderVector(vector
, isIngress
, isEgress
, leg
, context
, streamStack
): 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. |
Returns
void
Overrides
AbstractFlightPathLegRenderer.renderVector
Defined in
src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:92