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

ClusterManager draws markers in invisible regions #404

Closed
kaads123 opened this issue Jun 28, 2017 · 3 comments
Closed

ClusterManager draws markers in invisible regions #404

kaads123 opened this issue Jun 28, 2017 · 3 comments

Comments

@kaads123
Copy link

kaads123 commented Jun 28, 2017

Summary:

ClusterManager draws all the markers/clusters, not only visible ones. It should draw only those that are in visibleRegion. This causes a map with 2000 markers skip frames and ANR (even on new devices) when zooming in/out.

Steps to reproduce:

Add 2000 or more markers and try zooming in and zooming out fast. This can be reproduced in the sample app

Expected behavior:

Draw only those markers/clusters which are in visibleRegion.latLngBounds of the GoogleMap

Observed behavior:

Draws every marker added to ClusterManager

Device and Android version:

Moto G3 with Android 6.0.1
Nexus 6P with Android 7.1.2

Screenshots:

screenshot_20170628-182053

Zoomed out from 20f to 1f quickly

@zamesilyasa
Copy link
Contributor

@kaads123
Looks like duplicate of #82

@kaads123
Copy link
Author

@zamesilyasa You're right, what should I do with this one?

@barbeau
Copy link
Collaborator

barbeau commented Jun 30, 2017

Closing as a duplicate of #82.

@kaads123 Thanks for the steps to reproduce and screenshot - I'll copy these over to #82 so we don't lose them.

@barbeau barbeau closed this as completed Jun 30, 2017
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

3 participants