Class: MapFlightPlanWaypointRecordManager
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecordManager.ts:11
Manages flight plan waypoint records.
Constructors
Constructor
new MapFlightPlanWaypointRecordManager(
facLoader
,facWaypointCache
,waypointRenderer
,inactiveRenderRole
,activeRenderRole
):MapFlightPlanWaypointRecordManager
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecordManager.ts:26
Constructor.
Parameters
Parameter | Type | Description |
---|---|---|
facLoader | FacilityLoader | This manager's facility loader. |
facWaypointCache | FacilityWaypointCache | This manager's facility waypoint cache. |
waypointRenderer | MapWaypointRenderer | This manager's waypoint renderer. |
inactiveRenderRole | MapWaypointRenderRole | The role(s) under which waypoints should be registered when they are part of an inactive leg. |
activeRenderRole | MapWaypointRenderRole | The role(s) under which waypoints should be registered when they are part of an active leg. |
Returns
MapFlightPlanWaypointRecordManager
Methods
isBusy()
isBusy():
boolean
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecordManager.ts:39
Checks whether this manager is busy with a waypoint refresh.
Returns
boolean
Whether this manager is busy with a waypoint refresh.
refreshWaypoints()
refreshWaypoints(
flightPlan
,activeLegIndex
,repick
,startIndex?
,endIndex?
):Promise
<void
>
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecordManager.ts:54
Refreshes this manager's waypoint records, keeping them up to date with a specified flight plan.
Parameters
Parameter | Type | Description |
---|---|---|
flightPlan | null | FlightPlan | A flight plan. |
activeLegIndex | number | The global index of the active flight plan leg, or -1 if there is no active leg. |
repick | boolean | Whether to repick waypoints. |
startIndex? | number | The global index of the first flight plan leg from which to pick waypoints, inclusive. Defaults to 0. Ignored if repick is false. |
endIndex? | number | The global index of the last flight plan leg from which to pick waypoints, inclusive. Defaults to flightPlan.length - 1 . Ignored if repick is false. |
Returns
Promise
<void
>