mirror of
https://github.com/CIMEngine/map.git
synced 2024-11-05 20:13:58 +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 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">
|
||||
${
|
||||
|
|
Loading…
Reference in a new issue