Skip to content

Commit

Permalink
use aqueduct as default value for tunnel tag in waterway structur…
Browse files Browse the repository at this point in the history
…e field

(prerequisite for openstreetmap/id-tagging-schema#1273)
  • Loading branch information
tyrasd committed Feb 26, 2025
1 parent 813f9ef commit 671e9f0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/ui/fields/radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 671e9f0

Please sign in to comment.