Skip to content

Commit 3c255ae

Browse files
committed
Bugfix: Multiple polyines should map to multiple features in output
1 parent 48a0fe7 commit 3c255ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/geojson.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function justType(gjType, shpType) {
1414
return function (gj) {
1515
var oftype = gj.features.filter(isType(gjType));
1616
return {
17-
geometries: shpType === 'POLYLINE' ? [oftype.map(justCoords)] : oftype.map(justCoords),
17+
geometries: shpType === 'POLYLINE' ? oftype.map(l => [justCoords(l)]) : oftype.map(justCoords),
1818
properties: oftype.map(justProps),
1919
type: shpType,
2020
};

0 commit comments

Comments
 (0)