Skip to main content

Class: DefaultMapRunwayDesignationImageCache

A default implementation of MapRunwayDesignationImageCache.

Implements

Constructors

constructor

new DefaultMapRunwayDesignationImageCache(): DefaultMapRunwayDesignationImageCache

Returns

DefaultMapRunwayDesignationImageCache

Properties

designatorCache

Protected Readonly designatorCache: Map<RunwayDesignator, HTMLImageElement>

Defined in

src/garminsdk/components/map/MapRunwayDesignationImageCache.ts:25


numberCache

Protected Readonly numberCache: Map<number, HTMLImageElement>

Defined in

src/garminsdk/components/map/MapRunwayDesignationImageCache.ts:24

Methods

getDesignator

getDesignator(designator): undefined | HTMLImageElement

Retrieves an image from this cache for a runway designator.

Parameters

NameTypeDescription
designatorRunwayDesignatorThe runway designator for which to retrieve an image.

Returns

undefined | HTMLImageElement

The image for the specified runway designator, or undefined if one could not be found.

Implementation of

MapRunwayDesignationImageCache.getDesignator

Defined in

src/garminsdk/components/map/MapRunwayDesignationImageCache.ts:55


getNumber

getNumber(num): undefined | HTMLImageElement

Retrieves an image from this cache for a runway number.

Parameters

NameTypeDescription
numnumberThe runway number for which to retrieve an image.

Returns

undefined | HTMLImageElement

The image for the specified runway number, or undefined if one could not be found.

Implementation of

MapRunwayDesignationImageCache.getNumber

Defined in

src/garminsdk/components/map/MapRunwayDesignationImageCache.ts:50


registerDesignator

registerDesignator(designator, src): void

Registers an image with this cache for a runway designator.

Parameters

NameTypeDescription
designatorRunwayDesignatorThe runway designator for which to register the image.
srcstringThe source URI of the image to register.

Returns

void

Defined in

src/garminsdk/components/map/MapRunwayDesignationImageCache.ts:43


registerNumber

registerNumber(num, src): void

Registers an image with this cache for a runway number.

Parameters

NameTypeDescription
numnumberThe runway number for which to register the image.
srcstringThe source URI of the image to register.

Returns

void

Defined in

src/garminsdk/components/map/MapRunwayDesignationImageCache.ts:32