How to get a point on map by tap in 100.0.0?

816
1
Jump to solution
03-02-2017 08:04 PM
SharjeelAhmed
New Contributor II

In previous SDK It was possible to get a point on map using following code.

public boolean onSingleTap(MotionEvent point) {

    Point mapPoint = mMapView.toMapPoint(point.getX(), point.getY());

}

However, in 100.x, toMapPoint function doesn't exist anymore. How can we get a point on map if we have  MotionEvent object?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
SharjeelAhmed
New Contributor II

Found the alternative function in SDK 100.x:

mMapView.screenToLocation(point);

View solution in original post

1 Reply
SharjeelAhmed
New Contributor II

Found the alternative function in SDK 100.x:

mMapView.screenToLocation(point);