Worldwide routable Garmin maps: URL REMOVED

That would be very nice of You.
I live in Poland, You can send me a small piece of poland modified
by You i.e. on my e-mail address miszczu1983@o2.pl.

However, I would preffer if You could explain me how to do it by myslesf, because what I want is the combined routable map of many asia and middle east countries since I am going there on motorbike.

BTW, Lambertus, You are doing a hell of good job here !

The howto via mail … I can give you some links.

Here a download of a gmapsupp.img (Poland complete, datas from OSM, 02-02-2010, the map is 55 MB). I used --road-name-pois, so that you should find the streetnames via “All POI” or “Geographic Points”. I also used the default style because the Oregon is faster without custom style-files.

http://mirror.live-modules.org/quax/fluxflux-sl/playground/gmapsupp.img

flux.

this is working as described.
Awesome.
Can You give me brief support how to do that with my map?

http://www.cferrero.net/maps/maps_index.html

I think here you will find all answers to your questions. No need to repeat things which are written in an excellent howto …

flux.

That’s an awesome page. Thanks for the link!

Thank You for that load,

altough there is one question - to make my gmapsupp.img with the parameter, I have to download .osm files first.
How to dawnload OSM files instead of .img files from Lambertus site?

You can read that in Step 1 of http://www.cferrero.net/maps/maps_index.html too.

This is right, but I need to combine maps from many countries accross 3 continents.
Geofabric allows either to choose from predefined countries where the ones which I am looking for are not included, either download whole continents (a lot of stuff for my bandwitch).

Or is there maybe a way to re-compile the img file with that parameter?
My .img file is already ready.

Did you try: http://downloads.cloudmade.com/ or other suppliers of .osm data?

Hacking the img file is not doable I think.

http://www.mkgmap.org.uk/page/main
The mkgmap program takes OpenStreetMap data and generates a map in the Garmin .img file format so that it can be loaded onto compatible GPS units.

I do not know about a possibility to recompile a .img file. You can split a .img file and add another typfile, but that is all.

I take e. g. the europe.osm.bz2 and cut my preferred region(s) with osmosis and then create my map(s). You can merge different gmapsupp.img(s) to one gmapsupp.img or with the Oregon 300 you can have different gmapsupp.img(s) at your SDHC. Just make sure that there is no gmapsupp.img in the internal storage! My gmapsupp.img(s) at the SDHC are named gmapsupp.img, gmapsupp1.img, gmapsupp2.img and so on.

flux.

But thats what miszczu1983 is asking for I think. Which program do you use for that? And what is the result of adding a typfile? That program cannot export it?

Splitting a gmapsupp.img means to have the tiles back (e. g. 63240001, 63240002 …) and the .mps. If I want to change the look of the map on my Garmin Unit I can add different typefiles (I have searched for different typfiles around the web).

To split a foreign gmapsupp.img I am using gmt (GMapTool, the binary for linux). For my own gmapsupp.img I can use my tiles and different typfiles.

As far as I experienced it is not possible to add the road-names as pois in this way, because the road-names are included in the tiles (.img files)!

And this was the question I think …

flux.

Do I understand correctly that you invoke mkgmap again on some selected tyles to generate one gmapsupp.img and that the result depends on a used style file?

The first part is correct, it is what my website is doing all the time. The second part (of adding a typ file); I’m not sure about that. I’ve never used typ files before, but I assume that it would work this way.

So what you can do is download a bunch of tiles from my site and recombine them using Mkgmap or another tool (perhaps MapSetToolkit) while adding a typ file. But that won’t give you the road POI’s, for that you will need to download the OSM data and render your map yourself (or wait until next weekend when I’ll release the next update).

Here two screenshots (Garmin Etrex Vista HCx, Night), based on the same gmapsupp.img (I only added a typfile with a special family-id to receive the look of the second screenshot):

Original look (without typfile)

Customized look (with typfile from user:Christoph, AIO-Map)

The map with the typfile is looking different, but the map is much slower at the Vista HCx and it is to customized at the Oregon 300.

Therefore I do NOT use any typfile in my own maps.

flux.

Sorry… I still do not understand completerly the process.

– do you add the typefile to some directory in your garmin device? So indeed use the same gmapsupp.img
– do you generate a new gmapsupp.img (using mkgmap with that typefile)?

Which of the two?

By the way: How do you manage to make such clear pictures of the garmin screen?

At first I have to say, that I use linux for my work, the only exception is the Garmin program xImage for the screenshots (–> http://www8.garmin.com/support/agree.jsp?id=545), because there is no equivalent for linux.

  1. I have a gmapsupp.img.

  2. If it is a foreign one, I use gmt (–> http://www.anpo.republika.pl/download.html) to split the gmapsupp.img to its tiles.

  3. If it is my own, I have the tiles before I merge the tiles to a gmapsupp.img.

  4. Then I add a typfile with the corresponding and needed family-id to the tiles and merge a gmapsupp.img:

java -jar mkgmap-version.jar --gmapsupp --family-id=4 --family-name=MYMAP *.img MYTYPEFILE.TYP

–family-id=4 is depending on the typfile, you have to find the correct id for the used typfile, normally the creator of the typfile can give you the id or you can find it in the web

*.img are my tiles (63240001.img and so on) I want to merge to a gmapsupp.img

MYTYPEFILE.TYP is the used typfile, the .TYP must be in upper letters! In the second screenshot you see the typfile of Christoph (AIO-Map) and the needed family-id=4 …

  1. I have a new gmapsupp.img with a customized look!

flux.

Edit: You can open the typfile (stylefile) in the online editor and there you can see the needed family-id → http://ati.land.cz/gps/typdecomp/editor.cgi

Here a screenshot:

Thank you flux for all explications. I understand now. Thank you too for xImage. It works out of the box. Just grabbing a screenshot by connecting a USB cable. Great.

Hahaha, I thought that I massively improved the loading time of the tile definitions because I rewrote the OpenLayers section in the webpage scripts that loads the KML file with the tile definitions…

Well think again, it turns out that disabling gzip output in the server side script did the trick all by itself. The strange thing is: the AJAX call is downloading the data immediately and the processing of the zipped data also seems to be immediate (according to a spike in CPU and bandwidth usage), however the result is only shown about 12-13 seconds later… mystery.

Compression is handled by adding the following two lines to the server side PHP scripts:

ob_start("ob_gzhandler");
[my functional code]
ob_flush(); 

I’ll see if there are other, better, ways of doing compression…

Edit1: When I let the compression be handled by the webserver (controlled through .htaccess) then it works fast as expected. Investigating further…

Edit2: This seems like a browser issue. FF 3.5.5, 3.5.7, 3.6 and IE 8 are slow in displaying the tiles from a zipped source, but webkit is very fast. Thanks to crschmidt for the pointer.

Edit3: Problem solved, the error originated from this side of the monitor ofcourse: The PHP script that returns the gzipped KML content also returned the content-length header set to the size of the source KML file instead of the gzipped size… So as a result the browser is expecting more data and is waiting for it until a timeout occurs. Duh.

Well, the KML output script is fixed now and facilitates browsers that support compressed content as well as those browsers that do not.

i am trying to follow flux instructions.
here is what I did:

downloaded mkgmap.
Placed tiles (smal .img files) in mkgmap folder.
When I enter any command in command prompt, i have error : invalid or corrupr jarfile 6324004.img
(which is first tile).
If I remove this file, the error repeats on next tile.

What am I doing wrong? Do I have to use .osm files instead of .img files?
The splitter returns me same error for .gz2 files.