I like to implement similar method of Google Map's onMapClick(LatLng arg)
at Osmdroid. What I did was
public boolean dispatchTouchEvent(MotionEvent ev) {
return super.dispatchTouchEvent(ev);
}
But dispatchTouchEvent
is called multiple times when the map is clicked only one time. How can I implement similar method of Google Map at Osmdroid?
Thanks
You can use OSMBonusPack MapEventsOverlay and MapEventsReceiver.