I'm creating an application with new Google Maps API V2 and I have to intercept the click on InfoWindow, showed when a Marker is clicked.
Reading the documentation I assumed that I do that to listen to InfoWindows clicks :
mGoogleMap.setOnInfoWindowClickListener(new OnInfoWindowClickListener() {
@Override
public void onInfoWindowClick(Marker marker) {
Log.d("", marker.getTitle());
}
});
But unfortunatly the method is never called.
If I try to listen to marker click and use setOnMarkerClickListener instead of OnInfoWindowClickListener , this works fine.
Hope to find some help, thanks in advance
The OnInfoWindowClickListener gets called when you actually click on the Marker title popup and not the marker.
The above just works fine.
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