Skip to main content

flywave-mapview.datasource.cangettile

Home > @flywave/flywave-mapview > DataSource > canGetTile

DataSource.canGetTile() method

Returns true if DataSource can load tile with given and zoom level.

Signature:

canGetTile(zoomLevel: number, tileKey: TileKey): boolean;

Parameters

Parameter

Type

Description

zoomLevel

number

The zoom level of the MapView.

tileKey

TileKey

The unique identifier for a map tile.

Returns:



boolean

`true` if the tile for the given can be loaded.