Modify

Opened 5 years ago

Closed 3 years ago

Last modified 3 years ago

#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:

  1. Handle cycleway:both (taginfo 133333 times used of which 7158 positive)
  2. Render oneway:bicycle=no and cycleway=lane/shared_lane/track on both sides, before it was only rendered on one side

Attachments (1)

cycleway_lanes_tracks.patch (1.3 KB ) - added by Emvee 5 years ago.
cycleway_lanes_tracks patch

Download all attachments as: .zip

Change History (21)

by Emvee, 5 years ago

Attachment: cycleway_lanes_tracks.patch added

cycleway_lanes_tracks patch

comment:1 by skyper, 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 Klumbumbus, 5 years ago

Component: Core mappaintInternal mappaint style

comment:3 by Emvee, 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:4 by anonymous, 4 years ago

Ticket #21746 has been marked as a duplicate of this ticket.

comment:5 by Emvee, 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:6 by skyper, 3 years ago

Ticket #22360 has been marked as a duplicate of this ticket.

comment:7 by skyper, 3 years ago

Ticket #22450 has been marked as a duplicate of this ticket.

comment:8 by skyper, 3 years ago

Ticket #19910 has been marked as a duplicate of this ticket.

comment:9 by skyper, 3 years ago

Cc: gertheis.antal@… Romwriter mcliquid added
Keywords: both added; paint style removed

comment:10 by skyper, 3 years ago

#19910 has some more comments. See also #10317.

comment:11 by mcliquid, 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 taylor.smock, 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 Emvee, 3 years ago

Thanks for linking #19910 and #10317 here, it shows to my opinion there is quite some traction to improve this.

I did just an "svn up" and did not get conflicts so the patch still applies cleanly.

comment:14 by mcliquid, 3 years ago

@Emvee Is this now ready for merge?

comment:15 by Emvee, 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 taylor.smock, 3 years ago

Milestone: 22.11

comment:17 by taylor.smock, 3 years ago

Resolution: fixed
Status: newclosed

In 18588/josm:

Fix #19826: Fix cycleway rendering in combination with oneway:bicycle=no and for cycleway:both (patch by Emvee)

comment:18 by mcliquid, 3 years ago

Thank you! Really appreciate!

comment:19 by skyper, 3 years ago

Ticket #22566 has been marked as a duplicate of this ticket.

comment:20 by taylor.smock, 3 years ago

Milestone: 22.1122.12

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.