Class: MapSystemLegRenderer
Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:87
A map system flight plan leg renderer that uses a swappable style.
Extends
Constructors
Constructor
new MapSystemLegRenderer():
MapSystemLegRenderer
Returns
MapSystemLegRenderer
Inherited from
AbstractFlightPathLegRenderer
.constructor
Properties
currentRenderStyle
currentRenderStyle:
FlightPathRenderStyle
|FlightPathVectorStyle
Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:89
tempVector
protected
readonly
tempVector:CircleVector
Defined in: src/sdk/components/map/AbstractFlightPathLegRenderer.ts:34
Inherited from
AbstractFlightPathLegRenderer
.tempVector
vectorRenderer
protected
readonly
vectorRenderer:FlightPathVectorLineRenderer
Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:88
geoCircleCache
protected
readonly
static
geoCircleCache:GeoCircle
[]
Defined in: src/sdk/components/map/AbstractFlightPathLegRenderer.ts:32
Inherited from
AbstractFlightPathLegRenderer
.geoCircleCache
geoPointCache
protected
readonly
static
geoPointCache: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 | [] | Additional arguments. |
Returns
void
Inherited from
AbstractFlightPathLegRenderer
.render
renderVector()
protected
renderVector(vector
,isIngress
,isEgress
,leg
,context
,streamStack
):void
Defined in: src/sdk/components/mapsystem/MapSystemPlanRenderer.ts:92
Renders a flight path vector.
Parameters
Parameter | 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