Skip to content

Commit 63b33c3

Browse files
committed
don't add empty line strings to line coordinates
1 parent 2533f04 commit 63b33c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/geojson_utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ exports.calcTraceToLineCoords = function(calcTrace) {
3838
}
3939
}
4040

41-
coords.push(lineString);
41+
if(lineString.length > 0) {
42+
coords.push(lineString);
43+
}
4244

4345
return coords;
4446
};

0 commit comments

Comments
 (0)