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:

http://code.google.com/p/osmbonuspack/source/browse/trunk/OSMBonusPack/src/org/osmdroid/bonuspack/overlays/MapEventsOverlay.java

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top