mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 00:07:03 +02:00
Use tunnel=culvert on waterways when using the "add a tunnel" crossing ways fix (re: #6617)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user