Skip to content
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

feat: add operation for cycling crosswalk tags #1160

Merged
merged 21 commits into from
Nov 8, 2023
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
8b60486
feat: add operation for cycling crosswalk tags
RitaDee Oct 20, 2023
8f2a536
refactor: replace highway with crosswalk
RitaDee Oct 21, 2023
b3490a2
refactor: edit operation for cycling crosswalk presets
RitaDee Oct 21, 2023
921dbf4
feat: add the 'cycle_crosswalk_tag' operation with its associated str…
RitaDee Oct 21, 2023
cbc0127
refactor: add crosswalk
RitaDee Oct 23, 2023
9b54bd9
refactor: consolidate annotation for cycle_highway_tag in core.yaml
RitaDee Oct 23, 2023
45bab7c
feat: extend hotkey operation to cycle through crosswalk presets
RitaDee Oct 24, 2023
bf107fb
refactor: separate handling of highway and crosswalk presets
RitaDee Oct 25, 2023
d2ff9ec
feat: add cycle tag functionality for highway and crosswalk
RitaDee Oct 25, 2023
60fdf1e
refactor: implement cycling through preset tags for highway and cross…
RitaDee Oct 25, 2023
b25c368
refactor: improve code structure and logic in operationCycleHighwayTag
RitaDee Oct 26, 2023
b372793
Merge branch 'main' into crosswalk
RitaDee Oct 26, 2023
69351cd
chore: rebase working branch with main
RitaDee Oct 26, 2023
1cb71aa
chore: rebase working branch with main
RitaDee Oct 27, 2023
ebd0a25
Merge branch 'crosswalk' of github.com:RitaDee/Rapid into crosswalk
RitaDee Oct 27, 2023
a6a3a59
refactor: correct the scope of isSameSelection in operationCycleHighw…
RitaDee Oct 27, 2023
d48c707
feat: update operationCycleHighwayTag
RitaDee Oct 30, 2023
a3f170a
refactor: update operationCycleHighwayTag
RitaDee Oct 31, 2023
38775ae
feat: add hotkey for crosswalk
RitaDee Oct 31, 2023
81aa162
refactor: use appropriate translation
RitaDee Oct 31, 2023
4514a6a
Merge branch 'main' into crosswalk
bhousel Nov 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions modules/operations/cycle_highway_tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export function operationCycleHighwayTag(context, selectedIDs) {
'highway/footway/crossing/ladder:skewed',
];

// Do not allow multi-select.
if (selectedIDs.length > 1) return false;

const selectedID = selectedIDs[0];
const entity = graph.hasEntity(selectedID);

Expand Down