We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4ff57e commit 707017bCopy full SHA for 707017b
src/extras/BuildingShapeUtils.js
@@ -57,10 +57,12 @@ class BuildingShapeUtils extends ShapeUtils {
57
* @return {boolean}
58
*/
59
static isSelfIntersecting(way) {
60
+ const nodes = way.getElementsByTagName('nd');
61
if (BuildingShapeUtils.isClosed(way)){
- // Drop the final node.
62
+ nodes.pop();
63
}
- // create empty array
64
+ const refs = [];
65
+
66
// foreach (node in way)
67
// if (the ref value exists in the array)
68
// return true;
0 commit comments