Skip to main content

flywave-mapview.visibletileset.cleartilecache

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

VisibleTileSet.clearTileCache() method

Clear the tile cache.

Remove the Tile objects created by cacheable DataSource. If a DataSource name is provided, this method restricts the eviction the DataSource with the given name.

Signature:

clearTileCache(dataSource?: DataSource, filter?: (tile: Tile) => boolean): void;

Parameters

Parameter

Type

Description

dataSource

DataSource

(Optional)

filter

(tile: Tile) => boolean

(Optional) Optional tile filter

Returns:



void