We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdd439a commit 13257ceCopy full SHA for 13257ce
src/extras/BuildingShapeUtils.js
@@ -88,9 +88,15 @@ class BuildingShapeUtils extends ShapeUtils {
88
} else if (way1[0].getAttribute('ref') === way2[0].getAttribute('ref')) {
89
const tempway = BuildingShapeUtils.reverseWay(ways[i]);
90
const result = BuildingShapeUtils.joinWays(tempway, ways[i + 1]);
91
+ openWays.push(result);
92
+ i++;
93
+ changed = true;
94
} else if (way1[way1.length - 1].getAttribute('ref') === way2[way2.length - 1].getAttribute('ref')) {
95
const tempway = BuildingShapeUtils.reverseWay(ways[i + 1]);
96
const result = BuildingShapeUtils.joinWays(ways[i], tempway);
97
98
99
100
} else {
101
openWays.push(ways[i]);
102
}
0 commit comments