Class: DefaultFlightPathPlanRenderer
Defined in: src/garminsdk/components/map/flightplan/MapDefaultFlightPathPlanRenderer.ts:190
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
Defined in: src/garminsdk/components/map/flightplan/MapDefaultFlightPathPlanRenderer.ts:196
Renders a flight plan to a canvas.
Parameters
Parameter | 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