This project has moved. For the latest updates, please go here.

Cashing OSM Map tiles for WinRT using C# XAML

Jul 31, 2013 at 5:58 PM
I am trying to use OSM maps for offline routing in a Windows store navigation application. What I understood is that the Cashing you provide is only for WPF. Is there a way to do it in WinRT?

PS. I don't have experience in WPF and only worked on this Windows Store application from a couple of months. Before I was only working on embedded software in C.

Your help will be appreciated a lot. Thanks for the great work.
Coordinator
Jul 31, 2013 at 7:07 PM
Edited Jul 31, 2013 at 7:07 PM
Not sure how this would perform, but you may modify the BeginGetTiles method of the TileImageLoader class, which creates a BitmapImages from tile URLs. Attach an ImageOpened handler and save the image file somewhere. When the same URL is requested the next time, create a BitmapImage from the saved file.