Class: Epic2FacilityWaypointCache
Defined in: workingtitle-instruments-epic2/shared/Map/Epic2FacilityWaypointCache.ts:8
A Garmin-specific implementation of FacilityWaypointCache.
Implements
Properties
size
readonlysize: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
| Parameter | Type | Description |
|---|---|---|
facility | Facility | The facility for which to get a waypoint. |
Returns
A waypoint.
Implementation of
getCache()
staticgetCache(bus):Epic2FacilityWaypointCache
Defined in: workingtitle-instruments-epic2/shared/Map/Epic2FacilityWaypointCache.ts:58
Gets a FacilityWaypointCache instance.
Parameters
| Parameter | Type | Description |
|---|---|---|
bus | EventBus | The event bus. |
Returns
Epic2FacilityWaypointCache
A FacilityWaypointCache instance.