We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 929c07b commit 70fc546Copy full SHA for 70fc546
src/extras/BuildingShapeUtils.js
@@ -129,7 +129,7 @@ class BuildingShapeUtils extends ShapeUtils {
129
if (currentRingWays[0].querySelector('nd').getAttribute('ref') ===
130
currentRingWays[currentRingWays.length - 1].querySelector('nd:last-of-type').getAttribute('ref')) {
131
if (BuildingShapeUtils.isSelfIntersecting(BuildingShapeUtils.joinAllWays(currentRingWays))) {
132
- return;
+ return [];
133
}
134
return currentRingWays;
135
0 commit comments