
Hi Carlos, thanks for your version. I like that as well. Your proposed additional rule would not work, I think it could be highway=* & ref=* & highway!=motorway & highway!=trunk & highway!=primary & highway!=secondary & highway!=tertiary { addlabel '${ref}' } If I got that right we have java code which eliminates a duplicate ref which just differs in highway shield but this rule allows the style to add one more label if the road also has different values in int_ref, nat_ref etc. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Carlos Dávila <cdavilam@orangecorreo.es> Gesendet: Freitag, 14. April 2017 17:23:58 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] [Patch] Default Style change handling of road refs El 14/04/17 a las 10:55, Gerd Petermann escribió:
Hi all,
got no feedback on this: http://gis.19327.n8.nabble.com/Possible-problem-with-global-search-index-sin...
The patch changes the default style so that road refs are no longer added to the road name, instead they are added as an additional label,
So, a way like this http://www.openstreetmap.org/way/115469125 with name=Hamburger Straße, ref=B 105 will appear as "Hamburger Straße" in the map and will be found when searching for "B 105".
Without the patch the road appears as "B 105 Hamburger Straße" (the B 105 in a highway shield) in the map and as "Hamburger Straße (B105) or "Hamburger Straße" or "B 105 Hamburger Straße" (without shield) when searching for Hamburger. I always found that very irritating.
Please comment or propose improvements. Gerd
I'd prefer to display highway shields if the road has a ref, rather than name. See attached patch. Note that with both proposed patches the line highway=* & ref=* { addlabel '${ref}' } would add a duplicate entry to index for mayor roads having a ref. Perhaps it should be changed to (highway!=motorway | highway!=trunk | highway!=primary | highway!=secondary | highway!=tertiary) & highway=* & ref=* { addlabel '${ref}' }