From 3c255aebb05b95913c1f0b3f4bffb337e20e0981 Mon Sep 17 00:00:00 2001 From: Annie Cartas Date: Mon, 13 Jan 2025 12:44:44 -0500 Subject: [PATCH] Bugfix: Multiple polyines should map to multiple features in output --- src/geojson.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geojson.js b/src/geojson.js index be8f28c..8f972c5 100644 --- a/src/geojson.js +++ b/src/geojson.js @@ -14,7 +14,7 @@ function justType(gjType, shpType) { return function (gj) { var oftype = gj.features.filter(isType(gjType)); return { - geometries: shpType === 'POLYLINE' ? [oftype.map(justCoords)] : oftype.map(justCoords), + geometries: shpType === 'POLYLINE' ? oftype.map(l => [justCoords(l)]) : oftype.map(justCoords), properties: oftype.map(justProps), type: shpType, };