From e96198bc210e5d38da8604edbd67108577d4b9d0 Mon Sep 17 00:00:00 2001 From: Nick Kampe Date: Wed, 20 Mar 2019 23:20:39 -0500 Subject: [PATCH] Added support for null geometry to return valid GeoJSON --- geojson.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geojson.js b/geojson.js index 8550a87..6afffb7 100644 --- a/geojson.js +++ b/geojson.js @@ -270,7 +270,7 @@ throw new InvalidGeometryError(item, params); } - return geom; + return geom.coordinates? geom : null; } // Returns the function to be used to