Skip to content

directionalCombo: handle [key]=left|right|both schema #10935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

tordans
Copy link
Collaborator

@tordans tordans commented Apr 4, 2025

This is a draft to resolve #10839

Following what was done in https://github.com/openstreetmap/iD/pull/9587/files


The UI part is done as far as I can see. When I test the code the tags and fields update as expected.
There is one gotcha that when updating one side of cycleway=both via the UI, the both values gets move to the "other" side. That is wrong but I think OK since users will see it and update the value right after the first change.
If we wanted to improve this, we would need to give the update method access to the "other side value" or something like this.

Test specs, however, don't work. They still expect the value to be the original input. I don't quite understand what is going on. Why do the changes I apply in the directionalCombo.tags not show in the specs?


todos

@tordans
Copy link
Collaborator Author

tordans commented Apr 4, 2025

@k-yle @tyrasd can you give me some pointers as to why the specs don't work and if this is generally a sane way to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance the directionalCombo to support sidewalk=both|left|right
1 participant