NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

A few questions... I have read that one should tag a bridge with layer=1 and a tunnel with layer=-1, always(?) A lot of times the road on the bridge is on ground level and the crossing road under has been lowered (with an area around the bridge). Then it would feel more natural to set the bridge to layer=0 and a segment of the road under as layer=-1. Is this totally wrong?

How would a bridge on ground level with tag layer=1 be rendered in a future 3D-map?? Or will you have to use elevation data only for that?

Another thing, if two ways join on the same bridge, how should I draw this? If I set a node at the start of the bridge on each way it will look like two seperate bridges, right?

asked 30 Jan '11, 12:42

Divvi's gravatar image

accept rate: 0%

Don't worry. A level bridge at layer=0 with a road (or river) in a hollow underneath at layer=-1 it totally ok.

A future 3D map might choose to show a bridge with layer=1 as an arched structure. But that is a design choice of the rendering designer, not something you should worry (too much) about.

Unfortunately we don't have a good solution for the case of several ways sharing a bridge. You can add them to a single type=bridge relation but that is pretty much unused by data consumers today.

permanent link

answered 30 Jan '11, 12:52

petschge's gravatar image

accept rate: 21%

Layer tags simply define the relative position of two or more things. Ground level is usually considered to be layer=0. If you feel that bridge is on layer 0 and the thing(s) below are lower numbers that is fine. Any object without a layer tag will be assumed to be layer=0, but it helps to add a layer=* tag to at least one object when one crosses another. Usually the way on the bridge will be layer=1, but it doesn't have to be.

permanent link

answered 30 Jan '11, 14:18

ChrisH's gravatar image

accept rate: 15%

You can use any layer numbers you like. Layer numbers are only relevant when ways cross. Two consective segments of a way need not have the same layer number, even if those two segments constitute a billiard-table-flat section of road. You could legitimately have a bridge at layer 10 and the road underneath it at say layer 9. The actual layer number does not relate to height above ground; it is purely for determining what layer is above/below what.

permanent link

answered 26 Jul '11, 12:19

mwbg's gravatar image

accept rate: 0%


Generally speaking, it's not necessary to add a layer tag unless many objects pass over/under one another. See Layer in the OSM Wiki.

permanent link

answered 30 Jan '11, 19:47

Baloo%20Uriza's gravatar image

Baloo Uriza
accept rate: 9%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 30 Jan '11, 12:42

question was seen: 7,211 times

last updated: 26 Jul '11, 23:39

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum