fix: area calculation

This commit is contained in:
Artemy 2023-07-05 16:06:28 +03:00
parent dd3b75fb6d
commit a7952ae80e

View file

@ -256,12 +256,7 @@ window.onload = async () => {
} }
</div> </div>
<div class="col-12 text-center glass"> <div class="col-12 text-center glass">
Area: ${(area(feature) / 1000000) Area: ${feature.properties.area} km²
.toFixed(2)
.replace(
/(\d)(?=(\d\d\d)+([^\d]|$))/g,
"$1 "
)} km²
</div> </div>
<div class="col-12 text-center mt-2"> <div class="col-12 text-center mt-2">
${ ${