We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8a7829 commit aa0a5d4Copy full SHA for aa0a5d4
src/extras/BuildingShapeUtils.js
@@ -84,10 +84,10 @@ class BuildingShapeUtils extends ShapeUtils {
84
const validWays = [];
85
86
for (const way of ways) {
87
- if (BuildingShapeUtils.isSelfIntersecting(w)) {
+ if (BuildingShapeUtils.isSelfIntersecting(way)) {
88
const id = w.getAttribute();
89
const msg = 'Way ' + id + ' is self-intersecting';
90
- window.printError(msg)
+ window.printError(msg);
91
} else {
92
validWays.push(way);
93
}
@@ -154,7 +154,7 @@ class BuildingShapeUtils extends ShapeUtils {
154
return [];
155
156
157
- valisWays.forEach(w => {
+ validWays.forEach(w => {
158
const wayID = w.getAttribute('id');
159
if (usedWays.has(wayID)){
160
return;
0 commit comments