AnsweredAssumed Answered

4.5 Scalebar

Question asked by dlimos on Oct 26, 2017
Latest reply on Oct 27, 2017 by TSolow-esristaff

Hello everyone,

 

i have a doubt about the behaviour of the ScaleBar control.

 

Look at the sample: 

 

JS Bin - Collaborative JavaScript Debugging 

 

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.

 

Davide

Outcomes