This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Is there a method to set width of steets?

1

Hi! I have a "problem": is some little town in the Alps there are a many buildings in a very little space, so that steets are very narrow (Esino Lario, in Italy, is an example: https://www.openstreetmap.org/#map=17/45.99736/9.33392). The result on the final map is that, at a certain zoom level, we have huge street that cover buildings. So, is there a method to set the width of the street in the final rappresentation of the map? Thanks for the help

Yiyi

asked 19 Jul '14, 14:08

Yiyi's gravatar image

Yiyi
16111
accept rate: 0%

Just for info (and in no way related to the question!) - there seem to be a bunch of not-quite-joining or overlapping ways in that area - might be worth having a go at tidying those up:

alt text

(19 Jul '14, 14:58) SomeoneElse ♦

Thank you!

(19 Jul '14, 20:39) Yiyi

One Answer:

4

The width=* key is defined as specifying things like the width of a way. See https://wiki.openstreetmap.org/wiki/Key:width

However I haven't seen a map renderer that honors that key or the lanes=* key. And you are correct, at some zoom levels it can result in streets that overlapping other features.

I would suggest that you assure the tagging is there to properly specify the width so when the renderer(s) are updated to honor the tagging it will show correctly.

The style for the default map at https://www.openstreetmap.org/ is maintained at https://github.com/gravitystorm/openstreetmap-carto and I believe there is a page there for reporting and tracking issues like this.

answered 19 Jul '14, 14:39

n76's gravatar image

n76
10.8k1082172
accept rate: 17%

edited 19 Jul '14, 14:42

Thanks Tod. I know the width=* key; I just have to wait new updates :-)

(19 Jul '14, 14:45) Yiyi
2

The JOSM editor with the "Lane and road attributes" map paint style renders width, lanes, and many other details. It's very helpfull to tag and understand those attributes.

(21 Jul '14, 10:07) Vincent de P... ♦
2

Rendering width=* was discussed a bit at https://github.com/gravitystorm/openstreetmap-carto/issues/265 but it was out of scope in that issue. I don't think anybody is working on this at the moment; help welcome :)

(21 Jul '14, 10:18) Vincent de P... ♦

Source code available on GitHub .