[Pkg-javascript-commits] [leaflet-markercluster] 274/479: Correct getBounds when not on the map
Jonas Smedegaard
dr at jones.dk
Thu Oct 16 16:00:39 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet-markercluster.
commit e3ca8eb153739d2d40ee06df9bd55e0eb3fe089c
Author: danzel <danzel at localhost.geek.nz>
Date: Fri Oct 19 10:07:42 2012 +1300
Correct getBounds when not on the map
---
src/MarkerClusterGroup.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index ffeb9c0..7a6c262 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());
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git
More information about the Pkg-javascript-commits
mailing list