Skip to content

Commit

Permalink
Scale by 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mojodna committed Oct 30, 2018
1 parent 2ee3016 commit a3d83e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/metrics/countries.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ module.exports = feature => {
return COUNTRY_INDEX.search(feature)
.features.filter(x => {
try {

const i = martinez.intersection(
x.geometry.coordinates,
feature.geometry.coordinates
[x.geometry.coordinates[0].map(([x, y]) => [x * 0.1, y * 0.1])],
[feature.geometry.coordinates[0].map(([x, y]) => [x * 0.1, y * 0.1])]
);

return i != null && i.length > 0;
Expand Down

0 comments on commit a3d83e7

Please sign in to comment.