I have a big problem with OSMdroid: I have a map with a bunch of markers, some of them are near each other so that the marker drawables are above each other.
Now, when the user clicks such a marker "stack" the code from the onClickListener
for each marker is executed.
How can I prevent this execution and instead show a list of the markers "clicked"?
Using Touch
event
public boolean onTouchEvent(MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN: {
//Add this item to array
break;
}
case MotionEvent.ACTION_UP: {
//Show list
break;
}
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.