Abstract Class: AbstractFlightPlanLegWaypointsRecord
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:31
An abstract implementation of FlightPlanLegWaypointsRecord.
Extended by
Implements
Constructors
Constructor
new AbstractFlightPlanLegWaypointsRecord(
leg,waypointRenderer,facLoader,inactiveRenderRole,activeRenderRole):AbstractFlightPlanLegWaypointsRecord
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:47
Constructor.
Parameters
| Parameter | Type | Description |
|---|---|---|
leg | LegDefinition | The flight plan leg associated with this record. |
waypointRenderer | MapWaypointRenderer | The renderer used to render this record's waypoints. |
facLoader | FacilityLoader | The facility loader used by this record. |
inactiveRenderRole | MapWaypointRenderRole | The role(s) under which the waypoint should be registered when it is part of an inactive leg. |
activeRenderRole | MapWaypointRenderRole | The role(s) under which the waypoint should be registered when it is part of an active leg. |
Returns
AbstractFlightPlanLegWaypointsRecord
Properties
activeRenderRole
protectedreadonlyactiveRenderRole:MapWaypointRenderRole
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:52
The role(s) under which the waypoint should be registered when it is part of an active leg.
facLoader
protectedreadonlyfacLoader:FacilityLoader
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:50
The facility loader used by this record.
inactiveRenderRole
protectedreadonlyinactiveRenderRole:MapWaypointRenderRole
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:51
The role(s) under which the waypoint should be registered when it is part of an inactive leg.
isActive
protectedisActive:boolean=false
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:35
leg
readonlyleg:LegDefinition
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:48
The flight plan leg associated with this record.
Implementation of
FlightPlanLegWaypointsRecord.leg
uid
protecteduid:string
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:34
waypointRenderer
protectedreadonlywaypointRenderer:MapWaypointRenderer
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:49
The renderer used to render this record's waypoints.
Methods
deregisterWaypoint()
protectedderegisterWaypoint(waypoint,role):void
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:76
Removes a registration for a waypoint from this record's waypoint renderer.
Parameters
| Parameter | Type | Description |
|---|---|---|
waypoint | Waypoint | A waypoint. |
role | MapWaypointRenderRole | The role(s) from which the waypoint should be deregistered. |
Returns
void
destroy()
abstractdestroy():void
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:60
Destroys this record. Deregisters all this record's waypoints with this record's waypoint renderer.
Returns
void
Implementation of
FlightPlanLegWaypointsRecord.destroy
refresh()
abstractrefresh(isActive):Promise<void>
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:57
Refreshes this record's waypoints, keeping them up to date with this record's associated flight plan leg.
Parameters
| Parameter | Type | Description |
|---|---|---|
isActive | boolean | Whether this record's leg is the active leg. |
Returns
Promise<void>
Implementation of
FlightPlanLegWaypointsRecord.refresh
registerWaypoint()
protectedregisterWaypoint(waypoint,role):void
Defined in: src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:67
Registers a waypoint with this record's waypoint renderer.
Parameters
| Parameter | Type | Description |
|---|---|---|
waypoint | Waypoint | A waypoint. |
role | MapWaypointRenderRole | The role(s) under which the waypoint should be registered. |
Returns
void