[Pkg-javascript-commits] [leaflet-markercluster] 45/219: Return the whole map bounds instead of our size for _getExpandedVisibleBounds so they are always valid

Jonas Smedegaard dr at jones.dk
Sat May 7 09:39:10 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet-markercluster.

commit ba0c2146cac507a7592a7ddc827e18b662514bda
Author: danzel <danzel at localhost.geek.nz>
Date:   Tue Oct 28 09:26:04 2014 +1300

    Return the whole map bounds instead of our size for _getExpandedVisibleBounds so they are always valid
---
 src/MarkerClusterGroup.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index ac5add8..03e4275 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -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,

-- 
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