Search code examples
c#dictionarywin-universal-appopenstreetmap

How to use OSM offline maps in uwp?


I have a Zip file contain all Open Street Maps tiles for specific region. Is there any way to create a map using OSM tiles in universal windows apps?


Solution

  • You can use a CustomMapTileDataSource. For each requested tile the event handler BitmapRequested is called. In this handler you can pass any bitmap to the map.

    In your case, you need to download the bitmaps beforehand and store it on the device. In the BitmapRequested handler you just deliver these bitmaps.