[build][xs]: .
This commit is contained in:
11
dist/recline.js
vendored
11
dist/recline.js
vendored
@@ -2531,6 +2531,8 @@ this.recline.View = this.recline.View || {};
|
|||||||
// latField: {id of field containing latitude in the dataset}
|
// latField: {id of field containing latitude in the dataset}
|
||||||
// autoZoom: true,
|
// autoZoom: true,
|
||||||
// // use cluster support
|
// // use cluster support
|
||||||
|
// // cluster: true = always on
|
||||||
|
// // cluster: false = always off
|
||||||
// cluster: false
|
// cluster: false
|
||||||
// }
|
// }
|
||||||
// </pre>
|
// </pre>
|
||||||
@@ -2720,15 +2722,6 @@ my.Map = Backbone.View.extend({
|
|||||||
this._remove(doc);
|
this._remove(doc);
|
||||||
}
|
}
|
||||||
|
|
||||||
// enable clustering if there is a large number of markers
|
|
||||||
var countAfter = 0;
|
|
||||||
this.features.eachLayer(function(){countAfter++;});
|
|
||||||
var sizeIncreased = countAfter - countBefore > 0;
|
|
||||||
if (!this.state.get('cluster') && countAfter > 64 && sizeIncreased) {
|
|
||||||
this.state.set({cluster: true});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// this must come before zooming!
|
// this must come before zooming!
|
||||||
// if not: errors when using e.g. circle markers like
|
// if not: errors when using e.g. circle markers like
|
||||||
// "Cannot call method 'project' of undefined"
|
// "Cannot call method 'project' of undefined"
|
||||||
|
|||||||
Reference in New Issue
Block a user