I read this answer on how to calculate the area of a polygon and I am trying to achieve the same. However, I consistently get 0 (zero) for the area.
JS fiddle is here. T
You should add .getLatLngs() see this fiddle
.getLatLngs()
L.GeometryUtil.geodesicArea(polygon.getLatLngs()));