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:
Martin Raifer
2022-02-03 19:11:27 +01:00
parent fcd8a2b2e7
commit 6a9e0997c7
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -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;
}