killlllme / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

MarkerClustererPlus - Add support for setting "batchSize" via options #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What feature would you like to see added?
We would like to be able to set batchSize via the constructor options (just as 
you can batchSizeIE for IE).  

We're dealing with 5000+ markers using markerclustererplus. It holds up 
amazingly well.   That said, clusters are added to the map and cluster counts 
are incrementally updated after each chunk of MarkerClusterer.BATCH_SIZE 
markers are processed.  When working with thousands of markers in 
markerclusterer plus, we'd like to be able to increase the value of 
MarkerClusterer.BATCH_SIZE to reduce or eliminate those updates / flickers.

We realize the batching itself is an important feature, especially for IE, we 
just happen to have scenarios where markerclustererplus behaves/feels cleaner 
during zoom operations etc. with MarkerClusterer.BATCH_SIZE set much higher (at 
least in modern, non IE browsers).  We'd like to avoid creating our own version 
of the code.  Thanks.

Additional comments:
Thanks for the recent work on markerclusterer_plus_

Original issue reported on code.google.com by rtay...@piersystem.com on 2 Nov 2011 at 5:23

GoogleCodeExporter commented 9 years ago
This is a reasonable request and easy enough to add, so I'll get to it shortly.

Can you recommend a better default for MarkerClusterer.BATCH_SIZE? It is 
currently set to 2000.

Original comment by garylitt...@gmail.com on 4 Nov 2011 at 5:38

GoogleCodeExporter commented 9 years ago
We would likely put it around 5000 for our environment.  However, it's quite 
possible that 2000 is great for most environments so I hesitate to suggest 
another number.  Thanks

Original comment by rtay...@piersystem.com on 4 Nov 2011 at 6:23

GoogleCodeExporter commented 9 years ago
A batchSize parameter has now been added to the 2.0.6 tagged release of 
MarkerClustererPlus.

The default is still 2000, but you can change it to anything you like using the 
"batchSize" option. Use "batchSizeIE" for the value to be used when IE is 
running.

Original comment by garylitt...@gmail.com on 7 Nov 2011 at 2:16