跳到主要内容

flywave-mapview.visibletileset.getcachedtile

Home > @flywave/flywave-mapview > VisibleTileSet > getCachedTile

VisibleTileSet.getCachedTile() method

Gets the tile corresponding to the given data source, key and offset from the cache.

Signature:

getCachedTile(dataSource: DataSource, tileKey: TileKey, offset: number, frameNumber: number): Tile | undefined;

Parameters

Parameter

Type

Description

dataSource

DataSource

The data source the tile belongs to.

tileKey

TileKey

The key identifying the tile.

offset

number

Tile offset.

frameNumber

number

Frame in which the tile was requested The tile if found in cache, undefined otherwise.

Returns:



[Tile](./flywave-mapview.tile.md) \| undefined