Skip to content

Commit

Permalink
Use tunnel=culvert on waterways when using the "add a tunnel" cross…
Browse files Browse the repository at this point in the history
…ing ways fix (re: #6617)
  • Loading branch information
quincylvania committed Dec 11, 2019
1 parent 5ab7134 commit a7dd6db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/validations/crossing_ways.js
Expand Up @@ -550,7 +550,12 @@ export function validationCrossingWays(context) {
tags.bridge = 'yes';
tags.layer = '1';
} else {
tags.tunnel = 'yes';
var tunnelValue = 'yes';
if (getFeatureTypeForTags(tags) === 'waterway') {
// use `tunnel=culvert` for waterways by default
tunnelValue = 'culvert';
}
tags.tunnel = tunnelValue;
tags.layer = '-1';
}
// apply the structure tags to the way
Expand Down

0 comments on commit a7dd6db

Please sign in to comment.