I'm using Google Maps Android API Utility Library in order to show several markers in a map in a clustered way.
I've followed the instructions to make it work, as well as taking a look at the examples in the library, but I can't figure out how to show an InfoWindow
when a marker is clicked.
I guess getMap().setOnMarkerClickListener(mClusterManager);
is the one managing the onClick
events, and if commented out, I can override it using getMap().setInfoWindowAdapter(new InfoWindowAdapter() {));
but I have no access to my custom marker object.
Nevertheless, if I use getMap().setOnMarkerClickListener(mClusterManager);
, I can't find a way to show the InfoWindow
when a marker has been clicked.
Does anybody have any idea about how to achieve this?
Thanks a lot in advance!