Hi,
I’m trying to utilize a time cache for my wms overlay in the app, so that the user can cache map tiles prior to going offline in a designated area.
I’m using the code below, which I thought would put the cached tiles in a sub folder (album?) in the images folder. But the tiles seem to be put into the main photo storage folder ?!?
WmsOverlay ortho =
new
WmsOverlay();
//…some setup of the overlay
string
appName =
this
.Resources.GetString(Resource.String.ApplicationNameEng);
var _dir =
new
File(Android.OS.Environment.GetExternalStoragePublicDirectory(Android.OS.Environment.DirectoryPictures),
“TileCache”
);
if
(!_dir.Exists()) { _dir.Mkdirs(); }
ortho.TileCache =
new
FileBitmapTileCache(_dir.Path +
“/”
, appName);
// => …/TileCache/LifeTrees/…
What am I doing wrong here ? Is Android playing trick on me ? Please advise.