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