[Pkg-javascript-commits] [leaflet-markercluster] 14/479: Expand the bounds out to give a screen width on each side

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:00:03 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 8a0b912996dcf77e97beee925fa29b780ced0260
Author: danzel <danzel at localhost.geek.nz>
Date:   Fri Jul 13 11:09:02 2012 +1200

    Expand the bounds out to give a screen width on each side
---
 src/MarkerClusterGroup.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index 16eef00..95b788d 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -357,8 +357,8 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 	_getExpandedVisibleBounds: function () {
 		var map = this._map,
 			bounds = map.getPixelBounds(),
-			width = 0,//Math.abs(bounds.max.x - bounds.min.x),
-			height = 0,//Math.abs(bounds.max.y - bounds.min.y),
+			width = Math.abs(bounds.max.x - bounds.min.x),
+			height = Math.abs(bounds.max.y - bounds.min.y),
 			sw = map.unproject(new L.Point(bounds.min.x - width, bounds.min.y - height)),
 			ne = map.unproject(new L.Point(bounds.max.x + width, bounds.max.y + height));
 		

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