public final class CachedTileMap<T> extends TileMap<T>
TileMap.ViewportTileProcessor<T>
Constructor and Description |
---|
CachedTileMap(long maxCachedTiles,
com.google.common.cache.CacheLoader<TileKey,T> imgLoad)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
cacheTile(TileKey key)
Buffer a map tile, given a map tile key.
|
T |
getTile(TileKey key)
Get a map tile, given a map tile key.
|
void |
invalidate(TileKey key) |
void |
invalidateAll() |
void |
invalidateAll(Iterable<TileKey> keys) |
boolean |
isCacheEnabled()
Returns if the map supports caching.
|
com.google.common.cache.CacheStats |
stats()
Return cache statistics for map tiles.
|
collectViewportTiles, convertLatLonToTileOffset, convertLatLonToViewportXY, convertTileOffsetToLatLon, convertViewportXYToLatLon, findZoomLevelAndMapCenter, isPreCacheEnabled, moveLatLonByViewportXY, processViewportTiles, setPreCachingHint
public boolean isCacheEnabled()
isCacheEnabled
in class TileMap<T>
public void invalidateAll()
@Nonnull public com.google.common.cache.CacheStats stats()
Copyright © 2018 TomTom International BV. All rights reserved.