automatically enable clustering if there is a large number of markers

This commit is contained in:
Dominik Moritz
2012-09-12 01:52:58 +01:00
parent e167591253
commit 89890c8acb
3 changed files with 23 additions and 17 deletions

View File

@@ -54,7 +54,7 @@ test('_setupGeometryField', function () {
lonField: 'lon',
latField: 'lat',
autoZoom: true,
cluster: true
cluster: false
};
deepEqual(view.state.toJSON(), exp);
deepEqual(view.menu.state.toJSON(), exp);
@@ -165,10 +165,7 @@ test('Popup', function () {
test('Popup - Custom', function () {
var dataset = GeoJSONFixture.getDataset();
var view = new recline.View.Map({
model: dataset,
state: {
cluster: false
}
model: dataset
});
$('.fixtures').append(view.el);
view.infobox = function(record) {