mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-11-15 14:33:36 +01:00
Fixed area calculation
This commit is contained in:
parent
263d14e188
commit
0ae365e478
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ const areaMap = new Map()
|
|||
// Modified from https://stackoverflow.com/a/33670691
|
||||
function calcPolygonArea(vertices) {
|
||||
const hit = areaMap.get(vertices)
|
||||
if (hit !== null) {
|
||||
if (hit) {
|
||||
return hit
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue