flywave-mapview.visibletileset.gettile
Home > @flywave/flywave-mapview > VisibleTileSet > getTile
VisibleTileSet.getTile() method
Gets the tile corresponding to the given data source, key and offset, creating it if necessary.
Signature:
getTile(dataSource: DataSource, tileKey: TileKey, offset: number, frameNumber: number): Tile | undefined;
Parameters
Parameter | Type | Description |
|---|---|---|
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 it was found or created, undefined otherwise. |
Returns:
[Tile](./flywave-mapview.tile.md) \| undefined