Skip to main content

Class: ProcMapFullFlightPathPlanRenderer

Defined in: src/garminsdk/components/map/flightplan/ProcMapFlightPathPlanRenderer.ts:19

The full-route renderer for procedure preview flight plan paths. Renders all flight path vectors within flight plan legs, including transition vectors, with support for different styles for procedure and transition previews.

Extends​

Constructors​

Constructor​

new ProcMapFullFlightPathPlanRenderer(renderOrder, renderActiveLegLast): ProcMapFullFlightPathPlanRenderer

Defined in: src/sdk/components/map/AbstractFlightPathPlanRenderer.ts:20

Constructor.

Parameters​

ParameterTypeDefault valueDescription
renderOrderFlightPathPlanRenderOrder'forward'The order which this renderer renders the flight plan legs. Forward order renders the legs in a first-to-last fashion. Reverse order renders the legs in a last-to-first fashion. Defaults to forward.
renderActiveLegLastbooleantrueWhether to render the active leg last. Defaults to true.

Returns​

ProcMapFullFlightPathPlanRenderer

Inherited from​

AbstractFlightPathPlanRenderer.constructor

Properties​

renderActiveLegLast​

protected readonly renderActiveLegLast: boolean = true

Defined in: src/sdk/components/map/AbstractFlightPathPlanRenderer.ts:20

Whether to render the active leg last. Defaults to true.

Inherited from​

AbstractFlightPathPlanRenderer.renderActiveLegLast


renderOrder​

protected readonly renderOrder: FlightPathPlanRenderOrder = 'forward'

Defined in: src/sdk/components/map/AbstractFlightPathPlanRenderer.ts:20

The order which this renderer renders the flight plan legs. Forward order renders the legs in a first-to-last fashion. Reverse order renders the legs in a last-to-first fashion. Defaults to forward.

Inherited from​

AbstractFlightPathPlanRenderer.renderOrder

Methods​

render()​

render(plan, startIndex, endIndex, context, streamStack, ...args): void

Defined in: src/sdk/components/map/AbstractFlightPathPlanRenderer.ts:32

Renders a flight plan path to a canvas.

Parameters​

ParameterTypeDescription
planFlightPlanThe flight plan to render.
startIndexnumber | undefinedThe global index of the first flight plan leg to render, inclusive. Defaults to 0.
endIndexnumber | undefinedThe global index of the last flight plan leg to render, inclusive. Defaults to plan.length - 1.
contextCanvasRenderingContext2DThe canvas 2D rendering context to which to render.
streamStackGeoProjectionPathStreamStackThe path stream stack to which to render.
...args[boolean]Additional arguments.

Returns​

void

Inherited from​

AbstractFlightPathPlanRenderer.render


renderLeg()​

protected renderLeg(leg, plan, activeLeg, legIndex, activeLegIndex, context, streamStack, isTransition): void

Defined in: src/garminsdk/components/map/flightplan/ProcMapFlightPathPlanRenderer.ts:28

Renders a flight plan leg.

Parameters​

ParameterTypeDescription
legLegDefinitionThe flight plan leg to render.
planFlightPlanThe flight plan containing the leg to render.
activeLegLegDefinition | undefinedThe active leg in the flight plan.
legIndexnumberThe global index of the leg in its flight plan.
activeLegIndexnumberThe global index of the active flight plan leg.
contextCanvasRenderingContext2DThe canvas 2D rendering context to which to render.
streamStackGeoProjectionPathStreamStackThe path stream stack to which to render.
isTransitionboolean-

Returns​

void

Overrides​

AbstractFlightPathPlanRenderer.renderLeg