OSMDroid: Adding a marker when user taps on map

后端 未结 1 506
孤街浪徒
孤街浪徒 2021-01-19 00:21

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

1条回答
  •  悲哀的现实
    2021-01-19 01:04

    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.

    0 讨论(0)
提交回复
热议问题