getFromCache

suspend fun getFromCache(x: Double, y: Double, level: Int, request: Request? = definedExternally): HTMLImageElement?(source)

Gets the tile from the cache if its available.

Return

A promise for the image that will resolve when the image is available, or undefined if the tile is not in the cache.

Parameters

x

The tile X coordinate.

y

The tile Y coordinate.

level

The tile level.

request

The request object. Intended for internal use only.

See also