So I'm currently using this to calculate the area of a polygon using mercator projection in d3
The problem is I need to convert it to meters or kilometers. I'm not really sure what formula to use as I think it changes depending on the zoom level correct? Can anybody point me to the right direction to get this formula correct?
I'm actually thinking of switching to leaflet just to get the area. Thoughts?
Thanks!