mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 07:25:15 +02:00
Better describe culvert in fix for waterway-road intersection warnings (#10783)
This commit is contained in:
committed by
GitHub
parent
6f16060a78
commit
2ff01beba3
@@ -505,7 +505,12 @@ export function validationCrossingWays(context) {
|
||||
// don't recommend adding tunnels under waterways since they're uncommon
|
||||
var skipTunnelFix = otherFeatureType === 'waterway' && selectedFeatureType !== 'waterway';
|
||||
if (allowsTunnel(selectedFeatureType) && !skipTunnelFix) {
|
||||
fixes.push(makeAddBridgeOrTunnelFix('add_a_tunnel', 'temaki-tunnel', 'tunnel'));
|
||||
if (selectedFeatureType === 'waterway') {
|
||||
// naming piped waterway "tunnel" is a confusing osmism, culvert should be more clear
|
||||
fixes.push(makeAddBridgeOrTunnelFix('add_a_culvert', 'temaki-waste', 'tunnel'));
|
||||
} else {
|
||||
fixes.push(makeAddBridgeOrTunnelFix('add_a_tunnel', 'temaki-tunnel', 'tunnel'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user