Skip to main content

Class: MapDefaultFlightPlanWaypointRecordManager

Defined in: src/garminsdk/components/map/flightplan/MapDefaultFlightPlanWaypointRecordManager.ts:27

Manages flight plan waypoint records.

Implements​

Constructors​

Constructor​

new MapDefaultFlightPlanWaypointRecordManager(facLoader, facWaypointCache, waypointRenderer, inactiveRenderRole, activeRenderRole, options?): MapDefaultFlightPlanWaypointRecordManager

Defined in: src/garminsdk/components/map/flightplan/MapDefaultFlightPlanWaypointRecordManager.ts:45

Creates a new instance of MapDefaultFlightPlanWaypointRecordManager.

Parameters​

ParameterTypeDescription
facLoaderFacilityLoaderThis manager's facility loader.
facWaypointCacheFacilityWaypointCacheThis manager's facility waypoint cache.
waypointRendererMapWaypointRendererThis manager's waypoint renderer.
inactiveRenderRoleMapWaypointRenderRoleThe role(s) under which waypoints should be registered when they are part of an inactive leg.
activeRenderRoleMapWaypointRenderRoleThe role(s) under which waypoints should be registered when they are part of an active leg.
options?Readonly<MapDefaultFlightPlanWaypointRecordManagerOptions>Options with which to configure the manager.

Returns​

MapDefaultFlightPlanWaypointRecordManager

Methods​

isBusy()​

isBusy(): boolean

Defined in: src/garminsdk/components/map/flightplan/MapDefaultFlightPlanWaypointRecordManager.ts:57

Checks whether this manager is busy with a waypoint refresh.

Returns​

boolean

Whether this manager is busy with a waypoint refresh.

Implementation of​

MapFlightPlanWaypointRecordManager.isBusy


refreshWaypoints()​

refreshWaypoints(flightPlan, activeLegIndex, repick, startIndex?, endIndex?): Promise<void>

Defined in: src/garminsdk/components/map/flightplan/MapDefaultFlightPlanWaypointRecordManager.ts:62

Refreshes this manager's waypoint records, keeping them up to date with a specified flight plan.

Parameters​

ParameterTypeDescription
flightPlanFlightPlan | nullA flight plan.
activeLegIndexnumberThe global index of the active flight plan leg, or -1 if there is no active leg.
repickbooleanWhether to repick waypoints.
startIndex?numberThe global index of the first flight plan leg from which to pick waypoints, inclusive. Defaults to 0. Ignored if repick is false.
endIndex?numberThe 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>

Implementation of​

MapFlightPlanWaypointRecordManager.refreshWaypoints