Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info Window not opened #72

Open
ostermannBernd opened this issue Jan 6, 2023 · 0 comments
Open

Info Window not opened #72

ostermannBernd opened this issue Jan 6, 2023 · 0 comments

Comments

@ostermannBernd
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant