mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user