#19826 closed enhancement (fixed)
[PATCH] Fix cycleway rendering in combination with oneway:bicycle=no and for cycleway:both
| Reported by: | Emvee | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | 22.12 |
| Component: | Internal mappaint style | Version: | |
| Keywords: | cycleway both | Cc: | gertheis.antal@…, Romwriter, mcliquid |
Description
I was updating a street with oneway access but tow-way access for cyclists, bicycle=no. I expected to see the lanes on both sides of the street but it was only on one side. In a work-around I tried cycleway:both=lane but that did not work, what did work is cycleway:right=lane + cycleway:left=lane but that triggers a validator warning.
From an example to play with, http://localhost:8111/load_object?objects=w446091066, enable Mapillary to see pictures of the street. Try replacing cycleway:left=lane + cycleway:right=lane by cycleway=lane or cycleway:both=lane
Two updates in this patch:
- Handle cycleway:both (taginfo 133333 times used of which 7158 positive)
- Render oneway:bicycle=no and cycleway=lane/shared_lane/track on both sides, before it was only rendered on one side
Attachments (1)
Change History (21)
by , 5 years ago
| Attachment: | cycleway_lanes_tracks.patch added |
|---|
comment:1 by , 5 years ago
As the situation about the meaning of cycleway=* together with oneway=yes is not clear and it is often interpreted as cycleway only on the side of the traffic-flow direction, I would prefer to have validator not warn about same values of cycleway:left/right=* together with oneway=yes.
As for the rendering, tags rendered in default mappaint should be in defaultpresets, too, e.g. we need to update it but I see that cycleway:left/right=opposite* needs to be removed, anyway, see #19828.
comment:2 by , 5 years ago
| Component: | Core mappaint → Internal mappaint style |
|---|
comment:3 by , 5 years ago
I think it is okay for the Validator to warn for the same values of cycleway:left and cycleway:right, this patch enables two alternatives with respect to rendering, cycleway:both=* and just cycleway=*, but anyhow, that is another issue.
For the rendering, cycleway:left/right=opposite* is already not taken into account.
comment:5 by , 4 years ago
I did forget that I did already submit this patch, so I did create a new ticket and just closed it again as duplicate.
Meanwhile cycleway:both=lane/shared_lane/track is used 14610+6241+5342 = 25193 times, I think a good reason to merge this.
comment:9 by , 3 years ago
| Cc: | added |
|---|---|
| Keywords: | both added; paint style removed |
comment:11 by , 3 years ago
Regardless of how useful tagging seems to some here (purely subjective). It is a fact that we have a massive increase in usage here, which is simply not represented in the editor. Is this function being actively blocked here for personal reasons?
comment:12 by , 3 years ago
Not in particular.
I tend to prioritize newly modified tickets when I'm looking for patches to apply. Those patches will tend to have better response times from external contributors and will be less likely to have been looked at and reviewed/discarded by other core maintainers.
Furthermore, attachment:cycleway_lanes_tracks.patch will probably not apply cleanly, so someone is going to have to figure out where the changes should actually go.
I'm doing a release today, which means I will not be merging any new code until Thursday at the earliest (significant bug fixes excluded).
comment:13 by , 3 years ago
comment:15 by , 3 years ago
Yes, I tried to indicate that using my last comment, but yes, the patch merges cleanly with the latest sources.
comment:16 by , 3 years ago
| Milestone: | → 22.11 |
|---|



cycleway_lanes_tracks patch