Added long tap menu in sample
This commit is contained in:
parent
bac077fa01
commit
b60b263950
1 changed files with 3 additions and 2 deletions
|
@ -439,8 +439,9 @@ public class MainActivity extends AppCompatActivity {
|
|||
public void onLongPress(MotionEvent e) {
|
||||
PointI point31 = new PointI();
|
||||
mapView.getLocationFromScreenPoint(new PointI((int) e.getX(), (int) e.getY()), point31);
|
||||
// geocode(point31);
|
||||
//Toast.makeText(MainActivity.this, "Geocoding...", Toast.LENGTH_SHORT).show();
|
||||
net.osmand.core.jni.LatLon jniLatLon = Utilities.convert31ToLatLon(point31);
|
||||
menu.show(new LatLon(jniLatLon.getLatitude(), jniLatLon.getLongitude()),
|
||||
new PointDescription(jniLatLon.getLatitude(), jniLatLon.getLongitude()), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue