i have a doubt about the behaviour of the ScaleBar control.
Look at the sample:
when you draw a polyline, at the end of the drawing process, the length (in meters) appears in an alert.
If you compare the length with the scalebar, it looks like there is always a difference of about 20%.
I know that the map is in web Mercator, but according to the documentation it should fix the error.
I also know that the polyline length is geodesic, not planar, but the difference still appears too big to me.
Maybe is there something wrong with my code?
Thank you for your attention.