We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbcbda9 commit 835da74Copy full SHA for 835da74
src/extras/BuildingShapeUtils.js
@@ -57,7 +57,7 @@ class BuildingShapeUtils extends ShapeUtils {
57
* @return {boolean}
58
*/
59
static isSelfIntersecting(way) {
60
- const nodes = way.getElementsByTagName('nd');
+ const nodes = Array.from(way.getElementsByTagName('nd'));
61
if (BuildingShapeUtils.isClosed(way)){
62
nodes.pop();
63
}
0 commit comments