Skip to content

Commit

Permalink
change kerb to curb
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerwuster authored and bhousel committed Nov 14, 2024
1 parent 5992d9b commit a011ddc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/validations/curb_nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ export function validationCurbNodes(context) {
data: { crossingWayID: wayID },
dynamicFixes: () => ['unspecified', 'flush', 'lowered', 'raised'].map(type => {
const tags = { barrier: 'kerb', kerb: type };
const iconID = getIconForCurbNode(tags); // Get the appropriate icon based on the tags
const iconID = getIconForCurbNode(tags);
return new ValidationFix({
icon: iconID, // Use the dynamically selected icon
icon: iconID,
title: `Add ${type} Curb Nodes`,
onClick: () => {
const action = applyCurbNodeFix(wayID, editor.staging.graph, tags);
Expand Down Expand Up @@ -88,10 +88,10 @@ export function validationCurbNodes(context) {


/**
* hasKerbNodes
* hasCurbNodes
* Checks if the given way already has curb nodes
* @param {Object} way - The way entity to check
* @return {Boolean} True if kerb nodes are present, false otherwise
* @return {Boolean} True if curb nodes are present, false otherwise
*/
function hasCurbNodes(way) {
const graph = editor.staging.graph;
Expand Down

0 comments on commit a011ddc

Please sign in to comment.