I am using below code to draw line over map to calculate distance, But facing challenge as coordinates do not returning accurate value till 7 digits.
mapCenterLongitude and mapCenterLatitude returns values in decimal till 7 digits, but when passed to Graphics() the last digit of coordinates cuts down and returns back only 6 digits
val startPoints= Point(mapCenterLongitude!!.toDouble(), mapCenterLatitude!!.toDouble(), srWgs84) val locationMarker= SimpleMarkerSymbol(SimpleMarkerSymbol.Style.CIRCLE, 0xFF0000FF.toInt(), 10f)
val startLocation = Graphic(startPoints, locationMarker)