Skip to content

Commit 671e9f0

Browse files
committed
use aqueduct as default value for tunnel tag in waterway structure field
(prerequisite for openstreetmap/id-tagging-schema#1273)
1 parent 813f9ef commit 671e9f0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/ui/fields/radio.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,14 @@ export function uiFieldRadio(field, context) {
311311
}
312312

313313
if (field.type === 'structureRadio') {
314-
// For waterways without a tunnel tag, set 'culvert' as
315-
// the _oldType to default to if the user picks 'tunnel'
316314
if (!!tags.waterway && !_oldType.tunnel) {
315+
// default waterway tunnels to 'culvert'
317316
_oldType.tunnel = 'culvert';
318317
}
318+
if (!!tags.waterway && !_oldType.bridge) {
319+
// default waterway bridges to 'aqueduct'
320+
_oldType.bridge = 'aqueduct';
321+
}
319322

320323
wrap.call(structureExtras, tags);
321324
}

0 commit comments

Comments
 (0)