Limiting cacheSize for hillshadingTileSource
, TileCache
or ITileCache
#1212
-
Hi, Is it possible to limit the size of the tile cache for the That's the code I'm using https://github.com/jhotadhari/react-native-mapsforge-vtm/blob/fbcf75df543bb3a61fa629300288bb3dede3c866/android/src/main/java/com/jhotadhari/reactnative/mapsforge/vtm/react/modules/MapLayerHillshadingModule.java#L251:
I think I copied the cache implementation from here vtm/vtm-app/src/org/oscim/app/MapLayers.java Line 112 in 459e08f
It feels that the cache is growing unlimited. And the method
What I am doing wrong? Is limiting the Thanks for your help ... and thousand thanks for implementing hillshading into vtm and these wonderful ClasyHillShading algorithms! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is not a OkHttp On Android this is a SQLite cache. There is no implementation for fixed size. Only clear cache is currently supported. |
Beta Was this translation helpful? Give feedback.
This is not a OkHttp
Cache
on file system like inBitmapTileActivity
where its size can be handled by OkHttp.On Android this is a SQLite cache. There is no implementation for fixed size. Only clear cache is currently supported.