Beta
Internal
Gets the maximum number of tiles that can be added to the scene per frame
Beta
Internal
Gets the maximum number of tiles that can be added to the scene per frame
The way the cache usage is computed, either based on size in MB (mega bytes) or in number of tiles.
Sets the way tile cache is managing its elements.
Cache may be either keeping number of elements stored or the memory consumed by them.
Type of algorith used in cache for checking full saturation, may be counting number of elements or memory consumed by them.
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.
Optional
dataSource: DataSourceOptional
filter: ((tile) => boolean)Optional tile filter
Dispose tiles that are marked for removal by @xyzmaps/harp-lrucache#LRUCache algorithm.
Dispose a Tile
from cache, 'dispose()' is also called on the tile to free its resources.
Process callback function [[fun]] with each tile in the cache.
Optional [[dataSource]] parameter limits processing to the tiles that belongs to DataSource passed in.
The callback function to be called.
Optional
dataSource: DataSourceThe optional DataSource reference for tiles selection.
Process callback function [[fun]] with each visible tile in set.
The callback function to be called.
Gets the tile corresponding to the given data source, key and offset from the cache.
The data source the tile belongs to.
The key identifying the tile.
Tile offset.
Frame in which the tile was requested
The tile if found in cache, undefined otherwise.
Gets the tile corresponding to the given data source, key and offset from the rendered tiles.
The data source the tile belongs to.
The key identifying the tile.
Tile offset.
The tile if found among the rendered tiles, undefined otherwise.
Gets the tile corresponding to the given data source and location from the rendered tiles.
The data source the tile belongs to.
The geolocation included within the tile.
The tile if found among the rendered tiles, undefined otherwise.
Gets the tile corresponding to the given data source, key and offset, creating it if necessary.
The data source the tile belongs to.
The key identifying the tile.
Tile offset.
Frame in which the tile was requested
The tile if it was found or created, undefined otherwise.
Visit each tile in visible, rendered, and cached sets.
Optional
dataSource: DataSourceIf passed, only the tiles from this DataSource instance
are processed. If undefined
, tiles from all DataSources are processed.
Optional
filter: ((tile) => boolean)Optional tile filter
Removes all internal bookkeeping entries and cache related to specified datasource.
Called by MapView when DataSource has been removed from MapView.
Sets cache size.
cache size
Optional value specifying the way a Tiles cache usage is
computed, either based on size in MB (mega bytes) or in number of tiles. Defaults to
ResourceComputationType.EstimationInMb
.
Calculates a new set of visible tiles.
The camera storage level, see storageLevel.
The camera zoom level.
The data sources for which the visible tiles will be calculated.
Optional
elevationRangeSource: ElevationRangeSourceSource of elevation range data if any.
view ranges and their status since last update (changed or not).
Generated using TypeDoc
Manages visible Tiles for MapView.
Responsible for election of rendered tiles: