Skip to main content

flywave-mapview.mapview.cleartilecache

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

MapView.clearTileCache() method

Clear the tile cache.

Signature:

clearTileCache(dataSourceName?: string, filter?: (tile: Tile) => boolean): void;

Parameters

Parameter

Type

Description

dataSourceName

string

(Optional) The name of the DataSource.

filter

(tile: Tile) => boolean

(Optional) Optional tile filter

Returns:



void

## Remarks

Remove the [Tile](./flywave-mapview.tile.md) objects created by cacheable [DataSource](./flywave-mapview.datasource.md)<!-- -->s. If a [DataSource](./flywave-mapview.datasource.md) name is provided, this method restricts the eviction the [DataSource](./flywave-mapview.datasource.md) with the given name.