We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 704dbfd commit 6be9a7cCopy full SHA for 6be9a7c
src/extras/BuildingShapeUtils.js
@@ -85,8 +85,15 @@ class BuildingShapeUtils extends ShapeUtils {
85
openWays.push(result);
86
i++;
87
changed = true;
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
+ }
92
+ } else if (way1[way1.length - 1].getAttribute('ref') === way2[way2.length - 1].getAttribute('ref')) {
93
+ const tempway = BuildingShapeUtils.reverseWay(ways[i + 1])
94
+ const result = BuildingShapeUtils.joinWays(ways[i], tempway);
95
} else {
- openWays.push(way1);
96
+ openWays.push(ways[i]);
97
}
98
99
0 commit comments