We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc680d3 commit 658c8f8Copy full SHA for 658c8f8
packages/turf-line-slice/index.js
@@ -54,7 +54,7 @@ function lineSlice(startPt, stopPt, line) {
54
clipCoords.push(coords[i]);
55
}
56
clipCoords.push(ends[1].geometry.coordinates);
57
- return linestring(clipCoords, line.properties);
+ return linestring(clipCoords, line.properties, { ...('id' in line && { id: line.id }) });
58
59
60
export { lineSlice };
0 commit comments