Skip to content

Commit

Permalink
Merge pull request #76 from PADAS/hotfix/no-analyzers-in-list
Browse files Browse the repository at this point in the history
Make the center of proximity analyzers a centroid
  • Loading branch information
JayLVulcan authored Oct 29, 2019
2 parents 14af634 + ee8b70a commit e09304a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/analyzers.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export const getAnalyzerAdminPoint = (geometry) => {

// use turf.circle to construct a GEOJson Feature of type polygon
// increase/decrease steps will affect the render fps
export const createGeoJSONCircle = (center, radius, options) => {
export const createGeoJSONCircle = (geometry, radius, options) => {
if (!options) options = { steps: 32, units: 'kilometers' };
const poly_circle = circle(center, radius / 1000, options);
const poly_circle = circle(centroid(geometry), radius / 1000, options);
return poly_circle;
};

Expand Down

0 comments on commit e09304a

Please sign in to comment.