I am developing custom widgets for WAb (Developer Edition).
When I create polygon in a WGS84 layer, the automatically computed area for the polygon is wrong.
When the user creates polygon, I need to pass the poligon points to AreaMeasurement3D and get the area, all by javascript, without user intervantion, then I'll insert the correct area into new field in the layer.
How to do it?