Navigation Menu

Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
fixed off-by-one typo resulting in concentric zones
  • Loading branch information
NonsenseInc committed Jan 14, 2021
1 parent 86cd4b1 commit 0eef504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.js
Expand Up @@ -39,7 +39,7 @@ request.onload = () => {

// extend the area by radius km
buffered = turf.buffer(ingeo, radius, { units: 'kilometers' });
if (buffered.features.length > 2) union = turf.union(...(buffered.features));
if (buffered.features.length > 1) union = turf.union(...(buffered.features));
else union = buffered;
outjson = L.geoJSON(union);

Expand All @@ -55,4 +55,4 @@ request.onerror = () => {
console.log("Error requesting data.");
};

request.send();
request.send();

0 comments on commit 0eef504

Please sign in to comment.