Skip to content

Commit 13257ce

Browse files
authored
Update BuildingShapeUtils.js
1 parent bdd439a commit 13257ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/extras/BuildingShapeUtils.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,15 @@ class BuildingShapeUtils extends ShapeUtils {
8888
} else if (way1[0].getAttribute('ref') === way2[0].getAttribute('ref')) {
8989
const tempway = BuildingShapeUtils.reverseWay(ways[i]);
9090
const result = BuildingShapeUtils.joinWays(tempway, ways[i + 1]);
91+
openWays.push(result);
92+
i++;
93+
changed = true;
9194
} else if (way1[way1.length - 1].getAttribute('ref') === way2[way2.length - 1].getAttribute('ref')) {
9295
const tempway = BuildingShapeUtils.reverseWay(ways[i + 1]);
9396
const result = BuildingShapeUtils.joinWays(ways[i], tempway);
97+
openWays.push(result);
98+
i++;
99+
changed = true;
94100
} else {
95101
openWays.push(ways[i]);
96102
}

0 commit comments

Comments
 (0)