Closed GoogleCodeExporter closed 9 years ago
Confirmed with the following code:
Random r = new Random();
BitmapDescriptor magentaIcon =
BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_MAGENTA);
for (int i = 0; i < 20000; i++) {
LatLng position = new LatLng(r.nextDouble() * 170 - 95, r.nextDouble() * 360 - 180);
map.addMarker(new MarkerOptions().position(position).icon(magentaIcon));
}
Changes in API to be made:
ClusteringSettings.addMarkersOnlyInVisibleRegion(boolean)
Considerations:
1) Should default value of addMarkersOnlyInVisibleRegion be true?
2) Region to be used needs to be a bit bigger than what
Projection.getVisibleRegion() returns as it should include markers that are
outside of the screen in cluster that is partially visible.
Original comment by maciek.g...@gmail.com
on 22 Mar 2013 at 12:27
ClusteringSettings.addMarkersDynamically has been added. It has effect both
when clustering is enabled and disabled.
Default value stays false to have the same behaviour as in Google Maps Android
API v2.
Thank you for reporting this issue.
Original comment by maciek.g...@gmail.com
on 24 Mar 2013 at 6:51
Original issue reported on code.google.com by
Sabian...@gmail.com
on 20 Mar 2013 at 5:08