android-maps-extensions icon indicating copy to clipboard operation
android-maps-extensions copied to clipboard

Info Window not opened

Open ostermannBernd opened this issue 2 years ago • 0 comments

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.

ostermannBernd avatar Jan 06 '23 16:01 ostermannBernd