Skip to content

Commit 5126ba3

Browse files
Fix convex function ignoring given properties (Turfjs#2762)
1 parent 42ad7b8 commit 5126ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/turf-convex/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function convex<P extends GeoJsonProperties = GeoJsonProperties>(
5656

5757
// Convex hull should have at least 3 different vertices in order to create a valid polygon
5858
if (convexHull.length > 3) {
59-
return polygon([convexHull]);
59+
return polygon<P>([convexHull], options.properties);
6060
}
6161
return null;
6262
}

0 commit comments

Comments
 (0)