Open trietbui85 opened 11 years ago
Thanks for the suggestion, @anticafe!
Looking at the Google Maps API docs, it looks like it should be possible to implement this by adding an extra value in Options.ClusterClickBehavior and a check against Marker.isInfoWindowShown()
. See https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/model/Marker#isInfoWindowShown()
Did you want to code this change? You could fork it, code it on your fork, and send a pull request. Let me know so we don't duplicate effort (I like the idea enough to implement it myself when I have time).
I just tried to implement this (see 13a1c6051c486f1e4c91845656d9a870839e2f8c), but I think I stumbled across a bug in the Google Maps API v2. The problem is the marker.isInfoWindowVisible() returns false when the OnMarkerClickListener calls marker.showInfoWindow() and the onMarkerClick(Marker) returns true, so, even though the Info Window is clearly visible, it is not possible to accurately test its visibility programmatically. I'm going to try to repeat this problem in a more concise example, and then submit a bug report to the Google Maps API v2 bug tracker.
Bug filed: https://code.google.com/p/gmaps-api-issues/issues/detail?id=5408 -- @anticafe and anyone else wanting this feature implemented, please star the issue
OK, let me describe step by step how to archive it.
In advanced mode
Thank you for great mapping cluster library.