The measure tool can not measure length in the UTM system. The web_Mercator system represents lengths greater than the actual value. Is there a solution to solve problem?
Hi Anjelina, I'm not sure I understand what's not working. I think the Measurement widget works with all coordinate systems and projections. Do you have a simplified reproducible test case you could share?
The measurement tool calculates the distances in the web-mercator system and shows the distances more than the actual value. The measurement tool needs to have settings that allow you to select the UTM projection to calculate the length. Is there any solution?
There is no way to set a specific projection with the measurement widget.
For 2D MapViews, distances are computed geodetically for geographic coordinate systems and web mercator. For non-web mercator projected coordinate systems, computations will be performed planimetrically for distances up to the threshold distance defined by the geodesicDistanceThreshold property of the widget's ViewModel. Distances equivalent to and beyond the threshold will be computed geodetically. By default the threshold is set to 100km.
Another option would be to use the geometryEngine to calculate distances.
If you still need help, please share a simplified code example showing the issue you are facing.
Retrieving data ...