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

ClusterManager draws markers in invisible regions

Open kaads123 opened this issue 9 years ago • 3 comments

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

kaads123 avatar Jun 28 '17 15:06 kaads123

@kaads123 Looks like duplicate of https://github.com/googlemaps/android-maps-utils/issues/82

zamesilyasa avatar Jun 30 '17 08:06 zamesilyasa

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

kaads123 avatar Jun 30 '17 13:06 kaads123

Closing as a duplicate of https://github.com/googlemaps/android-maps-utils/issues/82.

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

barbeau avatar Jun 30 '17 13:06 barbeau