Skip to main content

Interface: MapFlightPathPlanRenderer

Renders the path for flight plans to canvas.

Implemented by

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

Defined in

src/garminsdk/components/map/flightplan/MapFlightPathPlanRenderer.ts:19