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": [