android-maps-extensions
android-maps-extensions copied to clipboard
Info Window not opened
Calling showInfoWindow() of class DelegatingMarker sometimes the InfoWindow was not opened, but clicking the marker opens the Info Window. The error was caused by the lines: In onShowInfoWindow of class GridClusteringStrategy: if (cluster.getMarkersInternal().size()< mMinMarkersCount){ or in older version: if (cluster.getMarkersInternal().size() ==1){
and in refresh() of class ClusterMarker: else if (count <mStrategy.getMinMarkersCount())
In my implementation mMinMarkersCount was set to 5 and mStrategy.getMinMarkersCount() results to 5.
cluster.getMarkersInternal().size() sometimes was 5 and count too.
Replacing the affected lines by:
if (cluster.getMarkersInternal().size()<= mMinMarkersCount){ else if (count <=mStrategy.getMinMarkersCount())
resolves this issue.