use aqueduct as default value for tunnel tag in waterway structure field

(prerequisite for https://github.com/openstreetmap/id-tagging-schema/pull/1273)
This commit is contained in:
Martin Raifer
2025-02-26 11:50:44 +01:00
parent 813f9ef8cd
commit 671e9f0069
+5 -2
View File
@@ -311,11 +311,14 @@ export function uiFieldRadio(field, context) {
}
if (field.type === 'structureRadio') {
// For waterways without a tunnel tag, set 'culvert' as
// the _oldType to default to if the user picks 'tunnel'
if (!!tags.waterway && !_oldType.tunnel) {
// default waterway tunnels to 'culvert'
_oldType.tunnel = 'culvert';
}
if (!!tags.waterway && !_oldType.bridge) {
// default waterway bridges to 'aqueduct'
_oldType.bridge = 'aqueduct';
}
wrap.call(structureExtras, tags);
}