Skip to content

Commit 30dce47

Browse files
RitaDeebhousel
andauthored
feat: add operation for cycling crosswalk tags (#1160)
* feat: add operation for cycling crosswalk tags * refactor: replace highway with crosswalk * refactor: edit operation for cycling crosswalk presets * feat: add the 'cycle_crosswalk_tag' operation with its associated strings * refactor: add crosswalk * refactor: consolidate annotation for cycle_highway_tag in core.yaml * feat: extend hotkey operation to cycle through crosswalk presets * refactor: separate handling of highway and crosswalk presets * feat: add cycle tag functionality for highway and crosswalk * refactor: implement cycling through preset tags for highway and crossing entities * refactor: improve code structure and logic in operationCycleHighwayTag * chore: rebase working branch with main * chore: rebase working branch with main * refactor: correct the scope of isSameSelection in operationCycleHighwayTag * feat: update operationCycleHighwayTag * refactor: update operationCycleHighwayTag * feat: add hotkey for crosswalk * refactor: use appropriate translation --------- Co-authored-by: Bryan Housel <bhousel@gmail.com>
1 parent e5a416e commit 30dce47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/operations/cycle_highway_tag.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ export function operationCycleHighwayTag(context, selectedIDs) {
4343
'highway/footway/crossing/ladder:skewed',
4444
];
4545

46+
// Do not allow multi-select.
47+
if (selectedIDs.length > 1) return false;
48+
4649
const selectedID = selectedIDs[0];
4750
const entity = graph.hasEntity(selectedID);
4851

0 commit comments

Comments
 (0)