Talk:Mkgmap/help/Custom styles

From OpenStreetMap Wiki
Jump to: navigation, search

The information on the level parameter was moved to the "old customization" page along with the old style file description. Is the level parameter obsolete, too? Has it changed? Or should it be moved back to the current documentation? --Nop 16:40, 13 January 2009 (UTC) No, but if you wan't you can write it into the options file within the style-file folder. It has become an additional step now however. It's now possible to use level 0-7 directly in the files, instead of writing resolution .... In fact the resolution seems not to work. I.e. you have MAP1 with three levels 24,22,20 and MAP2 with three levels 24,20,16. One would expect that it's now the resolution that is responsible for when what shows up. In reality there is nothing but levels though. So Level 1 will allways show up with all other maps not depending on resolution at the same time, also for level 2 and consecutive. So when zooming out while showing both MAP1 and MAP2 at the same time (either in Mapsource or on GPS) both times level 1 and 2 will appear on the same level, while you would expect to have level 2 from MAP1 appearing together with level 1 from MAP2. At least that's my experience. Therefore I assume that the --level option has been obsoleted in documentation. It's easier to use level instead of resolution in the style-file directly.--Extremecarver 18:37, 13 January 2009 (UTC)

This means if I need the resolution (because all my rules are tuned by resolution), I need to do the level mapping myself before generating the style file?
In the new style files, you can use either level or resolution, mkgmap will convert as appropriate. The --levels option works the same way that it used to. AcousticNewt 22:17, 14 January 2009 (UTC)
When you mention two Maps at the same time, do you mean 2 OSM files in one GMAPSUPP.IMG or do you mean two maps that can be turned on and off on the GPS? --Nop 22:16, 13 January 2009 (UTC)
When I mean two maps, it doesn't matter whether they are of the same area and joined by tdb to be shown simultaneously by Mapsource/GPS or if there are really two different FID and different areas. For what I experienced only the level - not the resolution has any effect. We have up to 8 levels, and it does not matter whether they are 24,23,22,21,20,19,18,17 or 24,22,20,18,16,12,8,4. For Mapsource and the GPS the only thing that counts the levels, not the resolution.
And no- you don't need to do any level mapping yourself before generating the style file. There are advantages of using the old levels command (either in option files in style-file or in cmd parsed to mkgmap) because by having the resolution defined in the respective files and now changing the --levels you can quickly adjust how much information is in how many levels. On the other hand having level directly inside the respective files, it's easier to keep an overview. At least for the moment you don't need to change anything, though off course I can't predict future development and maybe some day one has to change. For the moment it's enough to change map-features.txt to a stylefile using the script (and then testrunning it to see if there were any syntax errors - likely there were if you departed from a map-features by Computerteddy which had one syntax error (I did the change for him and discovered it).--Extremecarver 00:55, 14 January 2009 (UTC)

Where do rules for relations go? Is there an additional file for them not mentioned here? --Nop 13:34, 27 February 2009 (UTC)

Yes you have to write them to the relations file inside the style file folder. --Extremecarver 17:02, 27 February 2009 (UTC)