This project has moved and is read-only. For the latest updates, please go here.

Offline tile caching for non-WPF controls

Dec 23, 2012 at 7:44 AM

Are there any major problems to be expected if one were to port the existing WPF caching implementation to Win8 and the other supported platforms?  Or can you suggest the best method to implement some alternative?

Thanks!  Jay

Dec 23, 2012 at 3:10 PM

Hi Jay, the current caching implementation in MapControl.WPF is based on System.Runtime.Caching.ObjectCache, which is not available in Silverlight or WinRT. While i think that map tile caching is not a necessary feature in Silverlight, i agree that it would make sense in WinRT.

I haven't done any serious development for that platform yet, but i guess you could easily implement a caching mechanism based on tile image files that are stored for example in the local application data folder. You might replace the current TileImageLoader class by one that performs this task. I guess you would use the BitmapEncoder and BitmapDecoder classes in Windows.Graphics.Imaging for such an implementation.

I will further investigate this and let you know if i find out more.