Modify

Opened 11 months ago

Closed 8 months ago

#23350 closed enhancement (fixed)

[Patch] Add "amenity=bicycle_wash" as a preset

Reported by: mcliquid Owned by: team
Priority: normal Milestone: 24.03
Component: Internal preset Version:
Keywords: bicycle wash bicycle_wash Cc:

Description

Recognize amenity=bicycle_wash as a preset in "Transport/Bicycle/Bicycle Wash" and render tagged objects using a dedicated icon (see below).

Today the proposal for amenity=bicycle_wash was accepted. In this context, I would also like to request the acceptance of this tag in the main OpenStreetMap style. The use of the tag will remain low, as there will never be a bike wash station on every street corner, but the icon is already prepared and linked here, so it would be a good thing to find it on the map.

OSM Wiki: https://wiki.openstreetmap.org/wiki/Tag:amenity%3Dbicycle_wash
Proposed Icon: https://wiki.openstreetmap.org/wiki/File:Bicycle_wash.svg
PR in iD tagging scheme: https://github.com/openstreetmap/id-tagging-schema/pull/1032

Attachments (2)

resources.zip (95.5 KB ) - added by mcliquid 11 months ago.
[PATCH] changed files
bicycle_wash.svg (1.8 KB ) - added by taylor.smock 10 months ago.
Add white background

Download all attachments as: .zip

Change History (18)

comment:1 by taylor.smock, 11 months ago

If you are willing to write the preset, I would be more than willing to review and merge it.
Failing that, it will happen when usage of amenity=bicycle_wash hits 10k uses.

comment:3 by taylor.smock, 11 months ago

Looks like it; you are missing the icon though.

comment:4 by mcliquid, 11 months ago

I've added this Pull Request: https://github.com/JOSM/josm/pull/134

comment:5 by gaben, 11 months ago

Please specify the icon rendering in resources/styles/standard/elemstyles.mapcss. Also see DevelopersGuide/DefaultPresets and make sure the icon is rectangular.

comment:6 by mcliquid, 11 months ago

Hi gaben, I've added the mapcss to the PR. Does the icon have to be rectangular or square? Currently it is square just like the bicycle_rental icon I copied it from.

comment:7 by gaben, 11 months ago

Sorry, square. I will use the excuse that I'm not a native speaker :)

comment:8 by skyper, 11 months ago

Another option for tags below the minimal number is the external preset NewTags.

by mcliquid, 11 months ago

Attachment: resources.zip added

[PATCH] changed files

comment:9 by mcliquid, 11 months ago

I've added the changed files here (same as on GitHub (https://github.com/JOSM/josm/pull/134)) as I'm not able to commit them to SVN with my user.

comment:10 by mcliquid, 10 months ago

Hello, as this is my first ticket with additions, I would just like to ask carefully what the next steps are without bothering anyone unnecessarily. I appreciate that everyone here is contributing voluntarily. But perhaps I have overlooked something very relevant that is still missing for a merge? Thank you very much!

comment:11 by taylor.smock, 10 months ago

Milestone: 24.02

Just poke the ticket every two weeks if you don't see a response.

And if all else fails, cc me in the ticket.

Anyway, I'm targeting it for 24.02 instead of 24.01 since it is adding a translatable string; I could probably justify adding it now even so, but I prefer to give translators a chance to do the translation. And I'm intending to update the translations Friday, which isn't enough time to give translators for new/changed strings.

comment:12 by skyper, 10 months ago

Summary: Add "amenity=bicycle_wash" as a preset[Patch] Add "amenity=bicycle_wash" as a preset

You could have added [Patch]to the ticket's summary to have it listed under Open tickets, with patches attached

comment:13 by taylor.smock, 10 months ago

@mcliquid: There is an issue with the icon: it is only black. From wiki:DevelopersGuide/DefaultPresets:

Icons with transparent background must not be only black or only white. Otherwise if one uses a black or white background (no aerial imagery as background) in the Map View black or white icons would be invisible. Workaround: if you want to use a black icon add a square white background to the icon instead of a transparent background or better use a white halo.

I can add a background to the icon (a white background probably). Example:

Add white background

Last edited 10 months ago by taylor.smock (previous) (diff)

by taylor.smock, 10 months ago

Attachment: bicycle_wash.svg added

Add white background

comment:14 by taylor.smock, 8 months ago

Milestone: 24.0224.03

Ticket retargeted after milestone closed

comment:15 by mcliquid, 8 months ago

@taylor.smock I've changed the icon and added the white background. https://github.com/JOSM/josm/pull/134/

Anything else missing?

comment:16 by taylor.smock, 8 months ago

Resolution: fixed
Status: newclosed

In 19026/josm:

Fix #23350: Add amenity=bicycle_wash as a preset (patch by mcliquid)

The proposal (osmwiki:Proposal:Bicycle_Wash) was approved on 2023-12-18.

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.