Hi everybody, Currently, I find many ways yo add scale bar to Arcgis map on Android but it does not seem supporting that. Can everybody help me to solve this problem.
Thank you for your answer. But is there any way to caculate length from point A to point B?
Yes there is a way.
The MapView class has a function toMapPoint(float screenx, float screeny).
You could use this function to determine the real distance between two points, and use it to draw a scalebar yourself.
calculating the length itself:
Point strtPoint = mapview.toMapPoint(screenX1, screenY1); Point endPoint = mapview.toMapPoint(screenX2, screenY2); Line line = new Line(); line.setStart(strtPoint); line.setEnd(endPoint); double length = line.calculateLength2D();