Hi,
I’m working on an app that’s primarily to be used in woodland areas. I.e. most likely outside network coverage.
I’m utilizing a raster background map (WMS), fetched from a national service provider.
How can I - if at all possible - accomplish letting the user cache relevant portions of this map when inside coverage, and utilizing this cache whenever coverage is lost ?
Built-in caching is available in the Web Edition, but I can’t seem to find any mention of such in the Android Edition.
Please advise.
Cheers
Lars
Background map caching?
Hi Lars,
Android Edition allows us to use cache. For WMS we can add cache like this:
wmsOverlay.TileCache = new FileBitmapTileCache(@"/mnt/sdcard/MapSuiteSampleData/TileCaches/", “WmsSamples”);
The cache of this path will copy files to sdcard. If we don’t have sdcard, we can also use “/data/data/The Application Name/TileCaches/” to copy cache files under our app folder.
You can get the sample in the attachment.
Regards,
Android support
CacheSample.zip (10.6 KB)