I am using Google Map in an Android app.
Google Map API provides a setOnMarkerClickListener
so that we can do what we want when user clicks on a marker.
googleMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {
@Override
public boolean onMarkerClick(Marker marker) {
//Do my stuff here
}
});
However, my marker image is pretty large and I only want a small part of it to be clickable.
And it seems there is no method of Marker
that returns its X Y position in its fragment.
So, is this actually feasible, assuming that I must use Google Map?