mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-04 22:18:06 +02:00
Handle indoor features like buildings when checking for crossing ways
see https://github.com/openstreetmap/iD/issues/8944#issuecomment-1029213558
This commit is contained in:
@@ -109,7 +109,8 @@ export function validationCrossingWays(context) {
|
||||
if (featureType1 === 'waterway' && featureType2 === 'highway' && tags2.man_made === 'pier') return true;
|
||||
if (featureType2 === 'waterway' && featureType1 === 'highway' && tags1.man_made === 'pier') return true;
|
||||
|
||||
if (featureType1 === 'building' || featureType2 === 'building') {
|
||||
if (featureType1 === 'building' || featureType2 === 'building' ||
|
||||
taggedAsIndoor(tags1) || taggedAsIndoor(tags2)) {
|
||||
// for building crossings, different layers are enough
|
||||
if (layer1 !== layer2) return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user