Skip to content

Commit

Permalink
Fix @turf/circle translate properties (#717)
Browse files Browse the repository at this point in the history
* Fix circle translating properties

* Update test/out fixture
  • Loading branch information
DenisCarriere authored May 7, 2017
1 parent 930ad2a commit 19b49df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/turf-circle/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down
4 changes: 3 additions & 1 deletion packages/turf-circle/test/out/circle1.geojson
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
},
{
"type": "Feature",
"properties": {},
"properties": {
"radius": 5
},
"geometry": {
"type": "Polygon",
"coordinates": [
Expand Down

0 comments on commit 19b49df

Please sign in to comment.