Skip to content

Instantly share code, notes, and snippets.

@pigreco
Last active October 16, 2016 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pigreco/3e579abd3518ec7c41663fd0acd9c5a6 to your computer and use it in GitHub Desktop.
Save pigreco/3e579abd3518ec7c41663fd0acd9c5a6 to your computer and use it in GitHub Desktop.
<div class="demo-wrapper">
<div class="csspie" data-start="0" data-value="[% to_int((( $area *100 )/0.26135)) %]"></div>
<div class="csspie big" data-start="[% to_int((( $area*100)/0.26135))%]" data-value="[%(100 - to_int((($area*100 )/0.26135)))%]"></div>
</div>
@pigreco
Copy link
Author

pigreco commented Oct 16, 2016

da utilizzare nel caso si utilizzasse un sistema di coordinate metrico, tipo EPSG 3004
il valore 2560386609 rappresenta la somma delle aree di tutti i comuni.

@pigreco
Copy link
Author

pigreco commented Oct 16, 2016

da utilizzare nel caso si utilizzasse un sistema di coordinate geografico, tipo EPSG 4326
il valore 0.26135 rappresenta la somma delle aree di tutti i comuni.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment