From 19b49dfd613286ca970e242ba2e2fec7f576734e Mon Sep 17 00:00:00 2001 From: Denis Date: Sat, 6 May 2017 22:20:42 -0400 Subject: [PATCH] Fix @turf/circle translate properties (#717) * Fix circle translating properties * Update test/out fixture --- packages/turf-circle/index.js | 2 +- packages/turf-circle/test/out/circle1.geojson | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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++) { 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": [