Select to view content in your preferred language

WAB 3D - How to pass polygon points to AreaMeasurement3D in js code, to get area?

538
0
03-10-2021 07:24 AM
MichaelLev
Frequent Contributor

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?

0 Kudos
0 Replies