I know we can get the screenPoint from the touched location on the ESRI map using this
val screenPoint = android.graphics.Point(motionEvent.x.roundToInt(), motionEvent.y.roundToInt())
And also we can get the mapPoint from the screenPoint using this
val mapPoint = mapView?.screenToLocation(screenPoint)
Now how do I get the latitude and longitude from these screenPoint or mapPoint
You can get the
CoordinateFormatteras belowReference: https://developers.arcgis.com/android/latest/java/sample-code/format-coordinates/