Jeremie Cornet roger that, I am tested it on WAB 1.2. I isolated the error on my setup:
Our service, Geometry Engine not checked, length and area work perfectly. With the ESRI service, and again Geometry Engine is not checked, both work.
However, with either service, if the Geometry Engine is checked, the measurements are wrong.
When using the local GeometryEngine, it overestimates, rather inflates, the measurement by about 50%. Adam Gebhart you are not seeing that? The layers I bring in to WAB is GA State Plane East if this matters.
I will take a look at the code in a bit, but I am wondering, does it get the current map.spatialreference? And reproject to web mercator? Can it do that locally or does it need to call a geometryservice to reproject? If we can't reproject locally, then perhaps the best thing to do for now would be to put in a simple If statement, which would remove the Add Measurements, if the local geometryEngine functionality is used.
Can I just say, thank you again for the great work. I really like seeing Measure and Draw integrated, this is such a nice widget. Great interface design too.
Oh, may I ask Jeremie, if you are in and tinkering with the code, do you plan to add Measurement to the Point?
And... I know this next question is more complex, but once this can measure Segments this will be the only measurement tool we need, I wonder if we can add that as well. We use Tom Sellsted 's widget now for measuring Segments, although it would seem logical to combine this into the widget as well, to make one super-Widget for all measure and drawing.
edit: I looked at Tom's widget, it appears to measure locally. It is nice how it dynamically updates the segment measurement texts as well.
Great work everyone. Really loving WAB & community!