This commit is contained in:
danzel
2013-10-14 13:54:38 +13:00
parent 1ef25fb1ae
commit c5fab2342b
+1 -5
View File
@@ -287,11 +287,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
}
}
//TODO: Can remove this isValid test when leaflet 0.6 is released
var nonPointBounds = this._nonPointGroup.getBounds();
if (nonPointBounds.isValid()) {
bounds.extend(nonPointBounds);
}
bounds.extend(this._nonPointGroup.getBounds());
return bounds;
},