mirror of
https://github.com/CIMEngine/map.git
synced 2024-11-22 02:46:22 +03:00
fix: area calculation
This commit is contained in:
parent
dd3b75fb6d
commit
a7952ae80e
1 changed files with 1 additions and 6 deletions
|
@ -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">
|
||||||
${
|
${
|
||||||
|
|
Loading…
Add table
Reference in a new issue