
I would like to be able to insert hex chars into labels so I can stop parts (or all) of labels being displayed when zoomed out (as described in cgpsmapper doc). Is there anyway our style code can support that? I know it has some highway shields but how about the other codes? Cheers, Mark

Hi, Mark, AFAIk it's actually not working with "styling". But i already asked in the thread: "[mkgmap-dev] Handling of Garmin magic label codes (highwayshields etc.) differs from mp-format input to osm-format ?" There Steve and/or Clinton gave my the trick to directly insert the code into the style file. You have to put the real hex sign( not the code like e.g. "~[0x1f]" in the name line at the position where it should be. ex. out of my lines file. highway=* {name '${ref|highway-symbol:box:6:4}${name}' | '${ref|highway-symbol:box}' | '${name}'; add display_name = '${ref} ${name}' } The square in front of ${name} represents the code. cheers Gert

Hi Mark, unfortunately this hex sign square is not visible in the mail list. I have replaced it with HEXSIGN as marker. ex. highway=* {name '${ref|highway-symbol:box:6:4}HEXSIGN${name}' | '${ref|highway-symbol:box}' | '${name}'; add display_name = '${ref} ${name}' } cheers Gert

Hi Gert,
Hi Mark, unfortunately this hex sign square is not visible in the mail list. I have replaced it with HEXSIGN as marker.
ex. highway=* {name '${ref|highway-symbol:box:6:4}HEXSIGN${name}' | '${ref|highway-symbol:box}' | '${name}'; add display_name = '${ref} ${name}' }
cheers Gert
Thanks a lot for that info. I can put the control characters directly into the file using emacs - very easy. Cheers, Mark
participants (2)
-
Gert Münzel
-
Mark Burton