Skip to main content

Class: Epic2FacilityWaypointCache

Defined in: workingtitle-instruments-epic2/shared/Map/Epic2FacilityWaypointCache.ts:8

A Garmin-specific implementation of FacilityWaypointCache.

Implements

Properties

size

readonly size: number

Defined in: workingtitle-instruments-epic2/shared/Map/Epic2FacilityWaypointCache.ts:18

The maximum size of this cache.

Methods

get()

get<T>(facility): FacilityWaypoint<T>

Defined in: workingtitle-instruments-epic2/shared/Map/Epic2FacilityWaypointCache.ts:26

Gets a waypoint from the cache for a specific facility. If one does not exist, a new waypoint will be created.

Type Parameters

Type Parameter
T extends Facility

Parameters

ParameterTypeDescription
facilityFacilityThe facility for which to get a waypoint.

Returns

FacilityWaypoint<T>

A waypoint.

Implementation of

FacilityWaypointCache.get


getCache()

static getCache(bus): Epic2FacilityWaypointCache

Defined in: workingtitle-instruments-epic2/shared/Map/Epic2FacilityWaypointCache.ts:58

Gets a FacilityWaypointCache instance.

Parameters

ParameterTypeDescription
busEventBusThe event bus.

Returns

Epic2FacilityWaypointCache

A FacilityWaypointCache instance.