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
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
Defined in
src/garminsdk/components/map/flightplan/MapFlightPathPlanRenderer.ts:19