Skip to content

Commit 835da74

Browse files
authored
Update BuildingShapeUtils.js
1 parent cbcbda9 commit 835da74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extras/BuildingShapeUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class BuildingShapeUtils extends ShapeUtils {
5757
* @return {boolean}
5858
*/
5959
static isSelfIntersecting(way) {
60-
const nodes = way.getElementsByTagName('nd');
60+
const nodes = Array.from(way.getElementsByTagName('nd'));
6161
if (BuildingShapeUtils.isClosed(way)){
6262
nodes.pop();
6363
}

0 commit comments

Comments
 (0)