Key:layer

From OpenStreetMap Wiki
(Redirected from Tag:layer=-1)
Jump to: navigation, search
Help
Available languages
Deutsch English Suomi 日本語 Русский Українська

layer


One example for layer

Description

Used to mark the vertical relationship between two features.

Group

Properties

Element help

Can be attached on nodesCan be attached on waysCan be attached on areas

The layer tag is used to mark the vertical relationship between two features. If two ways intersect then they must have the same layer, if one passes above another then they should have different layers. In general it is assumed that any object that has no layer tag is at layer=0 which is normally used for the natural (or permanently changed) surface level. Positive values up to layer=5 are used for elements that pass above features on ground level and negative values down to layer=-5 for features that are underground.

Guidelines

The layer tag is a 2D representation and does not indicate absolute heights: a bridge over a stream should be at level 1 even if the stream is as far below it as the Grand Canyon, a track on top of Mount Everest would be layer=0 even though it is 8848 meters above sea level, a bridge within a perfectly flat street should be layer=1 if is crossing over a river: the tag makes no implication of a vertical height change.

Here are the main guidelines:

Note that there can some ambiguity about whether a particular crossing should be tagged as a bridge or as a tunnel, particularly where the distance under the upper way is long. In general the way though a tunnel tends to be longer and darker, whereas the way under a bridge tends to be shorter and less dark. The GDF standard uses the term 'brunnel' to cover both features.

Things to avoid

Here are some common examples of how not to use the layer tag:

Examples

Layers used well for an interchange and for railways
This layers view of Washington using ITO Map shows how elements are correctly organised with elements that pass over other elements at ground level using layer 1 (red) unless it is necessary for them to to use layer 2 (orange). Elements underground are using layers -1 or -2 as appropriate.
Confusing use of layers along a canal and railway
This view of the Grand Union canal in the UK shows incorrect use of layers. The canal switches from surface (no layer) to layer -1 (dark blue) to layer 2 (orange) for no reason. bridges and tunnels are using high layer numbers than necessary and some don't have layers at all. A point where a stream and footpath pass under the canal in a tunnel are shown at the same layer as the canal (layer -1 as it happens). A car park and collection of tracks in the village are shown at layer=-1 - no layer tag is needed given that they are at ground level.
Golf course layers.png
Layer tags used incorrectly for woods and a golf course. The woods are on layer 2, a golf course on layer -1 and a common on layer -2. These features are all at ground level and will render correctly without layering.

See also

Personal tools
Namespaces
Variants
Actions
site
Toolbox