MapEventLayer2: improve double tap (#493)

This commit is contained in:
Gustl22
2018-01-29 20:59:55 +01:00
committed by Emux
parent 57ce026efd
commit 3905ddb5e4
5 changed files with 42 additions and 7 deletions

View File

@@ -137,6 +137,11 @@ public class MarkerOverlayActivity extends SimpleMapActivity
Toast.makeText(MarkerOverlayActivity.this, "Map long press\n" + p, Toast.LENGTH_SHORT).show();
return true;
}
if (g instanceof Gesture.TripleTap) {
GeoPoint p = mMap.viewport().fromScreenPoint(e.getX(), e.getY());
Toast.makeText(MarkerOverlayActivity.this, "Map triple tap\n" + p, Toast.LENGTH_SHORT).show();
return true;
}
return false;
}
}