Class: DefaultFlightPathPlanRenderer
The default flight plan renderer for Garmin maps.
Implements
Constructors
constructor
• new DefaultFlightPathPlanRenderer(): DefaultFlightPathPlanRenderer
Returns
Methods
render
▸ render(plan
, context
, streamStack
, renderEntirePlan
, activeLegIndex
, lnavData?
, obsCourse?
): void
Renders a flight plan to a canvas.
Parameters
Name | Type | Description |
---|---|---|
plan | FlightPlan | The flight plan to render. |
context | CanvasRenderingContext2D | The canvas 2D rendering context to which to render. |
streamStack | GeoProjectionPathStreamStack | The path stream stack to which to render. |
renderEntirePlan | boolean | Whether to render the entire plan. If false, only the active leg and legs after the active leg will be rendered. |
activeLegIndex | number | The global index of the active flight plan leg, or -1 if there is no active leg. |
lnavData? | LNavTrackingState | LNAV tracking data for the flight plan to render, or undefined if LNAV is not tracking the flight plan. |
obsCourse? | number | The 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