logo separator

[mkgmap-dev] highway-symbol and name

From Toby Speight T.M.Speight.90 at cantab.net on Sat Oct 24 22:27:58 BST 2009

0> In article <925e75ca0910240630g5615dc30w826a2f2f8976d344 at mail.gmail.com>,
0> Ralf Reimann <URL:mailto:ralrei at gmx.de> ("Ralf") wrote:

Ralf> the style-file called "lines" contains something like this:
Ralf> highway=secondary {name '${ref|highway-symbol:oval} ${name}' |
Ralf> '${ref|highway-symbol:oval}' | '${name}' }
Ralf>
Ralf> Can you explain me how this should work?

The above means:

* If the highway has both 'ref' and 'name' tags, give it a name made of
  the 'ref' value in an oval box, followed by the 'name' value; else
* if the highway has a 'ref' tag, give it a name made of the 'ref' value
  in an oval box; else
* if the highway has a 'name' tag, give it a name made of the 'name'
  value.


Ralf> I would expect to see somewhere the name of the street, but in
Ralf> Mapsource you can only see the ref of the street (as tooltip
Ralf> holding the mouse pointer over the street).  Also the etrex shows
Ralf> me routing information like "ref to ref", but no street name.

Are you using the default style?  If you're using your own style, then
perhaps you have another 'name' rule that is overriding this one?  It
can be quite difficult to see which rules are in effect, unfortunately.

I'm not using the default style, but this section is the same in mine,
and I do see both ref and name in directions on the eTrex.


Ralf> I think in Germany it's a good idea to show routing information
Ralf> only as ref for highway=motorway and highway=primary.  I have
Ralf> never seen the ref for the other streets like K39, L273 and so on
Ralf> at the road signs.

If you want that (ref but no name), then it's easy to change your lines
style thus:

/--------
| highway=motorway {name '${ref|highway-symbol:hbox} ${name}' }
| highway=trunk {name '${ref|highway-symbol:hbox} ${name}' }
| highway=primary {name '${ref|highway-symbol:box} ${name}' }
\--------

Does that help?



More information about the mkgmap-dev mailing list