Osmarender/Tags

From OpenStreetMap Wiki
Jump to navigation Jump to search

Map data can be tagged with a number of specific tags which give Osmarender hints about how to render the data. These tags should not be used in the main database (with the possible exception of osmarender:nameDirection).

osmarender:nameDirection

By default Osmarender will draw street names left-to-right along ways. It uses the longitude (horizontal position) of the start and end points of the way to determine the direction.

In some cases, for example, very winding roads, the automatically chosen name direction is not ideal. In this case the way can be tagged with osmarender:nameDirection=-1 or osmarender:nameDirection=1 as a hint to tell Osmarender which way to draw the name.

osmarender:render

If a node or way is tagged with osmarender:render=no then it will not be rendered by Osmarender even if there is a rule for it. This is implemented using a rule in the standard map features rule file.

osmarender:renderName

If a node or way is tagged with osmarender:renderName=no then the line or symbol for the element will be rendered but the name will not be. This is implemented using a rule in the standard map features rule file.

osmarender:renderRef

If a node or way is tagged with osmarender:renderRef=no then the line or symbol for the element will be rendered but the value of the ref key will not be. This is implemented using a rule in the standard map features rule file.

Label relation

If position of a symbol or label for unusually shaped area is not perfect, you can use Relations/Proposed/Label to tell osmareneder where exactly should be label placed.