Open mjheidari opened 8 years ago
Yep - having the same issue.
100,000 markers, i think its time for server side clustering. Or limit your zoom levels
Do something like so:
if bounds area is greater than X amount, then count() markers in area by however accuracy you want, like
round(latitude, 2) round(longitude, 2)
Accuracy by decimal point: http://gis.stackexchange.com/questions/8650/how-to-measure-the-accuracy-of-latitude-and-longitude
@ldrrp It's failing on only 10,000-15,000 markers for me. It's not crashing the browser though, it just refuses to display the clusters. I can try to display the 10,000 and it won't work but then right after in the same instance I try 1,000 and it works.
I had the same issue and it turns out it was because of redraw
method. It's called each time you add a new marker, so adding 1000+ markers called 1000 redraws.
I solved it by deboucing the redraw method (using underscore's debounce, but your mileage might vary)
Hi. i use only about 100,000 marker, but it's crash the browser!!