We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42ad7b8 commit 5126ba3Copy full SHA for 5126ba3
packages/turf-convex/index.ts
@@ -56,7 +56,7 @@ function convex<P extends GeoJsonProperties = GeoJsonProperties>(
56
57
// Convex hull should have at least 3 different vertices in order to create a valid polygon
58
if (convexHull.length > 3) {
59
- return polygon([convexHull]);
+ return polygon<P>([convexHull], options.properties);
60
}
61
return null;
62
0 commit comments