update markercluster to latest version

This commit is contained in:
Dominik Moritz
2012-09-12 14:17:03 +01:00
parent 3ecd0b875b
commit 79c262e25b
3 changed files with 45 additions and 20 deletions

View File

@@ -182,7 +182,7 @@ my.Map = Backbone.View.extend({
var countAfter = 0;
this.features.eachLayer(function(){countAfter++;});
var sizeIncreased = countAfter - countBefore > 0;
if (!this.state.get('cluster') && countAfter > 99 && sizeIncreased) {
if (!this.state.get('cluster') && countAfter > 64 && sizeIncreased) {
this.state.set({cluster: true});
return;
}