using .osm files without the need to prefetch

Topics: Help, Windows Forms
Oct 6, 2012 at 7:52 PM


First of all, thanks a lot for the awesome library, it is what I have been looking for for a while now.

I have a question which has come up before, but I didn't find the answer I'm looking for yet unfortunately.

I'm looking for a way to use the control in Visual Basic 2010 so that it would use a downloaded .osm (openstreetmap) file rather than having to pre-cache the area where I will be working. On this page: it is listed that several 3th party websites offer an .osm file for individual countries. In my example, I have downloaded the file for Belgium which is around 170Mb in size.

I would like to include this file with my published .NET project so that at no stage an internet connection is required on the PC that will run the application. I have seen on this forum before people that have precached an area while having an internet connection, and than copy the cache folder to the end users computer as well. This seems a bit clumpsy to mee as the complete files are already available.

I might obviously be missing something as I have just recently started reading into Gmap.

Any help is greatly appreciated!



Oct 6, 2012 at 8:02 PM

it's possible to generate map tiles from osm file, someone has to use code from this project: 

..any volunteers? ;}


Oct 11, 2012 at 6:11 PM
Edited Oct 11, 2012 at 6:12 PM

@jensvanhoof: To clarify, the osm files do not contain any imagary - they contain the raw information needed to create the imagery. GMaps is designed to work with pre-compiled imagry. So to go from an osm file to GMaps you need to do the intermediate step of transforming that raw osm data into mapping tiles.

Most people opt to simply use the pre-fetcher that radioman has included with GMap to pre-fetch imagery for an area and then include it in their application. Exactly as you said. Note that it will be significantly larger than 170MB.