Hi
Where does the Geographic Map gets its map data from?
I need a map control that can work offline. Are there some kind of default map data included on the control? Or do I need to connect it with BingMaps etc?
I need it on clients where internet connection are very rerely (or sometimes never).
Regards
Morten
jim geiger said: Could you please tell me where to find the "DV.Shared/TileSources" source code reference you cite above? Thanks a lot for this information.
Could you please tell me where to find the "DV.Shared/TileSources" source code reference you cite above? Thanks a lot for this information.
Hi Morten,
The XamGeographicMap control gets it's data from tile servers owned by different companies. Bing map tiles are served by a tile server owned by Microsoft for example. The map control does not have a default map for offline mode.
The issue with an offline map control is that, depending on the level of detail/depth you want to provide, it can require an impractical amount of disk space. http://wiki.openstreetmap.org/wiki/Tile_Disk_Usage
If you want to provide an offline experience then you need to store the tiles locally or create your own tile server that the application would use. You would then create your own tile source that provides the XamGeographicMap with URIs to the tile images. Create a class derived from Infragistics.Controls.Maps.MapTileSource and override the GetTileLayers method. This method is where you would provide the URIs to the tile images. For an example, check out our source code. In the DV.Shared/TileSources folder you will find source code for the different tile sources.