I want to disable clicking/tapping on map markers
. I know you can disable default behavior
by setting up an empty map.setOnMarkerClickListener
and return true; However, this still takes the tap as clicking on the marker. I want to pass the tap on to the onMapClickListener
.
In my app, tapping the map moves a marker around, and if you're tapping close to where the marker is already, it just thinks you're tapping the marker! You would think there is a Marker.setClickable
method but there isn't.
Just override the onclick event:
map.setOnMarkerClickListener(new OnMarkerClickListener() {
public boolean onMarkerClick(Marker arg0) {
return true;
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With