Use tunnel=culvert on waterways when using the "add a tunnel" crossing ways fix (re: #6617)

This commit is contained in:
Quincy Morgan
2019-12-11 10:31:33 -05:00
parent 5ab713462a
commit a7dd6db8a7
+6 -1
View File
@@ -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