AnsweredAssumed Answered

Get GeoPoint from Press on Screen

Question asked by sauegr01 on Jan 16, 2013
Latest reply on Jan 16, 2013 by sauegr01
I am trying to get the longitude and latitude of a point I mark on my map with a long press. Currently on a long press I get an icon to display where I press on the map using a MapPoint, but I want to get and display the Geo location of the point. Below is some of the code I use for handling a long press:

public void onLongPress(MotionEvent e){
     Point p = mapView.toMapPoint(new Point(e.getX(), e.getY()));

I than create a graphic and add it to the graphics layer. But using this information I need to convert the Point to a GeoPoint. Thank you in advance for any help.