From fd4a4a53a7ffa2a745bb947e05e0a7a3d4d5dd26 Mon Sep 17 00:00:00 2001 From: Denis Date: Sat, 6 May 2017 20:51:03 -0400 Subject: [PATCH 1/2] Fix circle translating properties --- packages/turf-circle/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/turf-circle/index.js b/packages/turf-circle/index.js index a850983a8c..8d4bddabf4 100644 --- a/packages/turf-circle/index.js +++ b/packages/turf-circle/index.js @@ -30,7 +30,7 @@ module.exports = function (center, radius, steps, units, properties) { // default params steps = steps || 64; - properties = properties | center.properties | {}; + properties = properties || center.properties || {}; var coordinates = []; for (var i = 0; i < steps; i++) { From 0ac2b272818fb63973f41102f848a0366dcfd046 Mon Sep 17 00:00:00 2001 From: Denis Date: Sat, 6 May 2017 22:13:38 -0400 Subject: [PATCH 2/2] Update test/out fixture --- packages/turf-circle/test/out/circle1.geojson | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/turf-circle/test/out/circle1.geojson b/packages/turf-circle/test/out/circle1.geojson index afbc964219..f4ce6b9248 100644 --- a/packages/turf-circle/test/out/circle1.geojson +++ b/packages/turf-circle/test/out/circle1.geojson @@ -16,7 +16,9 @@ }, { "type": "Feature", - "properties": {}, + "properties": { + "radius": 5 + }, "geometry": { "type": "Polygon", "coordinates": [