跳到主要内容

flywave-mapview.visibletileset.foreachcachedtile

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

VisibleTileSet.forEachCachedTile() method

Process callback function [[fun]] with each tile in the cache.

Optional [[dataSource]] parameter limits processing to the tiles that belongs to DataSource passed in.

Signature:

forEachCachedTile(fun: (tile: Tile) => void, dataSource?: DataSource): void;

Parameters

Parameter

Type

Description

fun

(tile: Tile) => void

The callback function to be called.

dataSource

DataSource

(Optional) The optional DataSource reference for tiles selection.

Returns:



void