Skip to main content

Class: WaypointIconImageCache

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/WaypointIconImageCache.ts:8

The image cache specific to this instrument. GImageCache

Extends

  • ImageCache

Constructors

Constructor

new WaypointIconImageCache(): WaypointIconImageCache

Returns

WaypointIconImageCache

Inherited from

ImageCache.constructor

Methods

addToCache()

static addToCache(key, url): void

Defined in: sdk/graphics/img/ImageCache.ts:22

Loads the image from the url and adds it to the cache.

Parameters

ParameterTypeDescription
keystringThe image key to access it later.
urlstringThe url to load the image from.

Returns

void

Static

Inherited from

ImageCache.addToCache


get()

static get(key): HTMLImageElement

Defined in: sdk/graphics/img/ImageCache.ts:36

Gets a cached image element.

Parameters

ParameterTypeDescription
keystringThe key of the cached image.

Returns

HTMLImageElement

The cached image element.

Static

Inherited from

ImageCache.get


getAirportIcon()

static getAirportIcon(fac): HTMLImageElement

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/WaypointIconImageCache.ts:39

Maps the airport type to the right icon.

Parameters

ParameterTypeDescription
facAirportFacilityThe airport facility to get the icon for.

Returns

HTMLImageElement

The image element used for this type of airport.


getVorIcon()

static getVorIcon(type): HTMLImageElement

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/WaypointIconImageCache.ts:71

Maps the vor type to the right icon.

Parameters

ParameterTypeDescription
typeVorTypeThe vor type enum to get the icon for.

Returns

HTMLImageElement

The image elements used for this type of vor.


init()

static init(): void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/WaypointIconImageCache.ts:13

Initializes the icons used in this instrument.

Returns

void

Static