-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cycle road tag hotkey #6333
Cycle road tag hotkey #6333
Conversation
Merge upstream changes to local.
…tags. Works on untagged lines or ways already tagged with 'highway'.
This seems like a good way to speed up mapping, but there are a couple of reasons to not merge:
|
Understood. Re: point 1, I know that big changes are afoot for v3. This was an attempt to get something in at the tail end of the 2.x timeframe.
|
Following @BjornRasmussen 's concerns above:
@bhousel @quincylvania let us know what your thoughts are. We're open to either |
@gaoxm @Bonkles Thanks for this PR! I do think it'd be better to wait and see how we can integrate the feature with iD v3. Perhaps we make this customizable via the ribbon, so the hotkey cycles through your favorite presets? v3 will also include better assistance, so we can better explain and teach features like this. |
@quincylvania no problem whatsoever! Thanks for considering it. I'll try to stay on top of the current goings-on with iD v3 and resubmit this PR's basic functionality under the new v3 crop of changes. |
Add new hotkey, 'Shift + C', which cycles ways through a list of the most-used highway tags.
Only works when a single way is selected.
Here are the highway tag values we cycle through: 'residential', 'service', 'track', 'unclassified', 'tertiary'. (This list can be changed by modifying the ROAD_TYPES array in the operation).
Rules:
If the way has no tags whatsoever (for example, a freshly drawn line) this hotkey will add the tag 'highway=residential' to it.
If the way already has the highway tag:
If the user selects any other type of way, they will be told that the operation isn't permitted.
In the following gif, I:
Special note on undo history: I added the 'peek' history method to support better undo history for this hotkey. If the user mashes the hotkey 47 times, we don't want to have to hit undo 47 times just to remove the single tag change they made!