From 7df83364fd29b4253eca6b5343f331c531d51f86 Mon Sep 17 00:00:00 2001 From: Mark Stosberg Date: Fri, 22 Apr 2016 11:23:43 -0400 Subject: [PATCH] Simplify/improve example It's not clear why the translation to a feature collection was made in the example. The rendered result was `null`, which made this feature look broken. I think the old example was broken because the output was expected to be a FeatureCollection, but since the input is a Feature.Point, the output is a Feature.Polygon. --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 99a788e..74eb5b4 100644 --- a/README.md +++ b/README.md @@ -33,9 +33,8 @@ var pt = { var unit = 'miles'; var buffered = turf.buffer(pt, 500, unit); -var result = turf.featurecollection([buffered, pt]); -//=result +//=buffered ```