diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js index ffeb9c00e8..7a6c262513 100644 --- a/src/MarkerClusterGroup.js +++ b/src/MarkerClusterGroup.js @@ -220,7 +220,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({ if (this._topClusterLevel) { bounds.extend(this._topClusterLevel._bounds); } else { - for (var i = this._needsClustering.length; i >= 0; i--) { + for (var i = this._needsClustering.length - 1; i >= 0; i--) { bounds.extend(this._needsClustering[i].getLatLng()); } }