I want to display a marker on map where user taps on map.
Also this should not infect double tap for zooming and/or moving Mapview
.
I am using osmdroid-android-4.0.jar
Look at OSMBonusPack MapEventsOverlay/MapEventsReceiver:
You create a MapEventsOverlay, you add it to the maps overlay, and you pass it a MapEventsReceiver in which you implement your own singleTapUpHelper code.
来源:https://stackoverflow.com/questions/20946715/osmdroid-adding-a-marker-when-user-taps-on-map