Opened 6 years ago
Last modified 2 years ago
#18234 new enhancement
[Possible PATCH] render sides of barrier=guard_rail
| Reported by: | james2432 | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Internal mappaint style | Version: | |
| Keywords: | barrier guard rail | Cc: |
Description
Based on the description in the wiki: https://wiki.openstreetmap.org/wiki/Tag:barrier%3Dguard_rail
Right side of the way faces the road. Adding a styling to barrier=guard_rail that points to the inside, kind of like barrier=kerb (with little triangles) depending on the direction could greatly help drawing them.
Attachments (1)
Change History (5)
comment:1 by , 6 years ago
| Component: | Core → Internal mappaint style |
|---|---|
| Summary: | [Enhancement] barrier=guard_rail → render sides of barrier=guard_rail |
comment:2 by , 6 years ago
| Keywords: | barrier guard rail added |
|---|
comment:3 by , 2 years ago
by , 2 years ago
| Attachment: | add-guard_rail-inner-side-direction.patch added |
|---|
comment:4 by , 2 years ago
| Summary: | render sides of barrier=guard_rail → [Possible PATCH] render sides of barrier=guard_rail |
|---|
Taking a quick look at osmwiki:Tag:barrier=guard_rail, "[if] there is a clear inner/outer demarcation to the guard rail, construct the line so that the right side is inner and left side is outer."
How is no clear inner/outer demarcation indicated? How is the inner/outer demarcation indicated? Is there a sub-tag we should be using/encouraging?



Easy to fix by using custom mapcss.
Position of triangles on inner guard rail side (inner surface is smooth).
Direction of triangles points usual to highway.
# cat custom-elemsyles.mapcss way[barrier=guard_rail] { repeat-image: "presets/barrier/kerb_pattern.svg"; repeat-image-align: top; repeat-image-offset: 0.5; }