Skip to main content

Class: WaypointIconImageCache

The image cache specific to this instrument. GImageCache

Hierarchy

  • ImageCache

    WaypointIconImageCache

Constructors

constructor

new WaypointIconImageCache(): WaypointIconImageCache

Returns

WaypointIconImageCache

Inherited from

ImageCache.constructor

Methods

addToCache

addToCache(key, url): void

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

Parameters

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

Returns

void

Static

Inherited from

ImageCache.addToCache

Defined in

sdk/graphics/img/ImageCache.ts:22


get

get(key): HTMLImageElement

Gets a cached image element.

Parameters

NameTypeDescription
keystringThe key of the cached image.

Returns

HTMLImageElement

The cached image element.

Static

Inherited from

ImageCache.get

Defined in

sdk/graphics/img/ImageCache.ts:36


getAirportIcon

getAirportIcon(fac): HTMLImageElement

Maps the airport type to the right icon.

Parameters

NameTypeDescription
facAirportFacilityThe airport facility to get the icon for.

Returns

HTMLImageElement

The image element used for this type of airport.

Defined in

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


getVorIcon

getVorIcon(type): HTMLImageElement

Maps the vor type to the right icon.

Parameters

NameTypeDescription
typeVorTypeThe vor type enum to get the icon for.

Returns

HTMLImageElement

The image elements used for this type of vor.

Defined in

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


init

init(): void

Initializes the icons used in this instrument.

Returns

void

Static

Defined in

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