Skip to main content

Class: DefaultFlightPathPlanRenderer

The default flight plan renderer for Garmin maps.

Implements

Constructors

constructor

new DefaultFlightPathPlanRenderer(): DefaultFlightPathPlanRenderer

Returns

DefaultFlightPathPlanRenderer

Methods

render

render(plan, context, streamStack, renderEntirePlan, activeLegIndex, lnavData?, obsCourse?): void

Renders a flight plan to a canvas.

Parameters

NameTypeDescription
planFlightPlanThe flight plan to render.
contextCanvasRenderingContext2DThe canvas 2D rendering context to which to render.
streamStackGeoProjectionPathStreamStackThe path stream stack to which to render.
renderEntirePlanbooleanWhether to render the entire plan. If false, only the active leg and legs after the active leg will be rendered.
activeLegIndexnumberThe global index of the active flight plan leg, or -1 if there is no active leg.
lnavData?LNavTrackingStateLNAV tracking data for the flight plan to render, or undefined if LNAV is not tracking the flight plan.
obsCourse?numberThe active OBS course, or undefined if OBS is not active.

Returns

void

Implementation of

MapFlightPathPlanRenderer.render

Defined in

src/garminsdk/components/map/flightplan/MapDefaultFlightPathPlanRenderer.ts:196