Return the whole map bounds instead of our size for _getExpandedVisibleBounds so they are always valid

This commit is contained in:
danzel
2014-10-28 09:26:04 +13:00
parent ac0b77b16f
commit ba0c2146ca
+1 -1
View File
@@ -871,7 +871,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
//Gets the maps visible bounds expanded in each direction by the size of the screen (so the user cannot see an area we do not cover in one pan)
_getExpandedVisibleBounds: function () {
if (!this.options.removeOutsideVisibleBounds) {
return this.getBounds();
return this._map.getBounds();
}
var map = this._map,