java.lang.Object | ||
↳ | com.carto.datasources.TileDataSource | |
↳ | com.carto.datasources.CacheTileDataSource |
![]() |
A tile data source that loads tiles from another tile data source and caches them.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
clear()
Clear the cache.
| ||||||||||
synchronized void | delete() | ||||||||||
long |
getCapacity()
Returns the tile cache capacity.
| ||||||||||
MapBounds |
getDataExtent()
Returns the extent of the tiles in this data source.
| ||||||||||
TileDataSource |
getDataSource()
Returns the original data source that the cache uses.
| ||||||||||
int |
getMaxZoom()
Returns the maximum zoom level supported by this data source.
| ||||||||||
int |
getMinZoom()
Returns the minimum zoom level supported by this data source.
| ||||||||||
void |
notifyTilesChanged(boolean removeTiles)
Notifies listeners that the tiles have changed.
| ||||||||||
void |
setCapacity(long capacityInBytes)
Sets the cache capacity.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Clear the cache.
Returns the tile cache capacity.
Returns the extent of the tiles in this data source.
The bounds are in coordinate system of the projection of the data source.
Returns the original data source that the cache uses.
Returns the maximum zoom level supported by this data source.
Returns the minimum zoom level supported by this data source.
Notifies listeners that the tiles have changed. Action taken depends on the implementation of the
listeners, but generally all cached tiles will be reloaded. If the removeTiles flag is set all caches will be cleared
prior to reloading, if it's not set then the reloaded tiles will replace the old tiles in caches as they finish loading.
removeTiles | The remove tiles flag. |
---|
Sets the cache capacity.
capacityInBytes | The new tile cache capacity in bytes. |
---|