Skip to content

Commit

Permalink
Fix imperial area calculation. fixes Leaflet#320
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtoye committed Sep 17, 2014
1 parent 55fa2cf commit 07e4907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ext/GeometryUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ L.GeometryUtil = L.extend(L.GeometryUtil || {}, {
areaStr = area.toFixed(2) + ' m²';
}
} else {
area *= 0.836127; // Square yards in 1 meter
area /= 0.836127; // Square yards in 1 meter

if (area >= 3097600) { //3097600 square yards in 1 square mile
areaStr = (area / 3097600).toFixed(2) + ' mi²';
Expand Down

0 comments on commit 07e4907

Please sign in to comment.