Skip to main content

Class: AbstractFlightPlanLegWaypointsRecord

An abstract implementation of FlightPlanLegWaypointsRecord.

Hierarchy

Implements

Constructors

constructor

new AbstractFlightPlanLegWaypointsRecord(leg, waypointRenderer, facLoader, inactiveRenderRole, activeRenderRole): AbstractFlightPlanLegWaypointsRecord

Constructor.

Parameters

NameTypeDescription
legLegDefinitionThe flight plan leg associated with this record.
waypointRendererMapWaypointRendererThe renderer used to render this record's waypoints.
facLoaderFacilityLoaderThe facility loader used by this waypoint.
inactiveRenderRoleMapWaypointRenderRoleThe role(s) under which the waypoint should be registered when it is part of an inactive leg.
activeRenderRoleMapWaypointRenderRoleThe role(s) under which the waypoint should be registered when it is part of an active leg.

Returns

AbstractFlightPlanLegWaypointsRecord

Defined in

src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:46

Properties

activeRenderRole

Protected Readonly activeRenderRole: MapWaypointRenderRole

The role(s) under which the waypoint should be registered when it is part of an active leg.

Defined in

src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:51


facLoader

Protected Readonly facLoader: FacilityLoader

The facility loader used by this waypoint.

Defined in

src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:49


inactiveRenderRole

Protected Readonly inactiveRenderRole: MapWaypointRenderRole

The role(s) under which the waypoint should be registered when it is part of an inactive leg.

Defined in

src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:50


isActive

Protected isActive: boolean = false

Defined in

src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:34


leg

Readonly leg: LegDefinition

The flight plan leg associated with this record.

Implementation of

FlightPlanLegWaypointsRecord.leg

Defined in

src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:47


uid

Protected uid: string

Defined in

src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:33


waypointRenderer

Protected Readonly waypointRenderer: MapWaypointRenderer

The renderer used to render this record's waypoints.

Defined in

src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:48

Methods

deregisterWaypoint

deregisterWaypoint(waypoint, role): void

Removes a registration for a waypoint from this record's waypoint renderer.

Parameters

NameTypeDescription
waypointWaypointA waypoint.
roleMapWaypointRenderRoleThe role(s) from which the waypoint should be deregistered.

Returns

void

Defined in

src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:75


destroy

destroy(): void

Destroys this record. Deregisters all this record's waypoints with this record's waypoint renderer.

Returns

void

Implementation of

FlightPlanLegWaypointsRecord.destroy

Defined in

src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:59


refresh

refresh(isActive): Promise<void>

Refreshes this record's waypoints, keeping them up to date with this record's associated flight plan leg.

Parameters

NameTypeDescription
isActivebooleanWhether this record's leg is the active leg.

Returns

Promise<void>

Implementation of

FlightPlanLegWaypointsRecord.refresh

Defined in

src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:56


registerWaypoint

registerWaypoint(waypoint, role): void

Registers a waypoint with this record's waypoint renderer.

Parameters

NameTypeDescription
waypointWaypointA waypoint.
roleMapWaypointRenderRoleThe role(s) under which the waypoint should be registered.

Returns

void

Defined in

src/garminsdk/components/map/flightplan/MapFlightPlanWaypointRecord.ts:66