diff --git a/modules/actions/sync_crossing_tags.js b/modules/actions/sync_crossing_tags.js index 5e634c6a4..08a9cd0c3 100644 --- a/modules/actions/sync_crossing_tags.js +++ b/modules/actions/sync_crossing_tags.js @@ -156,9 +156,8 @@ export function actionSyncCrossingTags(entityID) { const node = graph.hasEntity(nodeID); if (!node) continue; - if (node.isEndpoint(graph) && connectsToRoad(node, graph)) { - continue; - } + if (node.isEndpoint(graph)) continue; + if (isCrossingWay) { // Parent is a crossing - we are adding/updating crossing tags on childNodes.. let isCandidate = false; for (const other of graph.parentWays(node)) { @@ -188,17 +187,6 @@ export function actionSyncCrossingTags(entityID) { } - function connectsToRoad(node, graph) { - // Check if the node connects to a road - const parentWays = graph.parentWays(node); - const connects = parentWays.some(way => { - const highwayTag = way.tags.highway; - return highwayTag && highwayTag !== 'footway' && highwayTag !== 'path'; - }); - return connects; - } - - // Sync the tags to the child nodes.. const isInformalCrossing = ['informal', 'no'].includes(syncTags.crossing); for (const child of childNodes) {