I get a multypolygon from my web service and want to calculate the area of that polygon. I was trying to use this piece of code:
var poly = new OpenLayers.Geometry.MultiPolygon(poligon);
var area = geom.getArea();
But that returns the area in square degrees. The projection is EPSG:3243.
I then tried to use
OpenLayers. Layer. SphericalMercator
But that didn't help me a lot. Is there any other solution or some other hint?
Cheers!