[Pkg-javascript-commits] [leaflet-markercluster] 247/479: build fixes

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:00:36 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 a1575e10c1c40d6a6528c5b6d86a152dba659b0b
Author: danzel <danzel at localhost.geek.nz>
Date:   Thu Sep 20 11:28:11 2012 +1200

    build fixes
---
 src/MarkerClusterGroup.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index 905c872..3316900 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -186,12 +186,12 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 			//Layer should be visible now but isn't on screen, just pan over to it
 			this._map.on('moveend', showMarker, this);
 			if (!layer._icon) {
-				map.panTo(layer.getLatLng());
+				this._map.panTo(layer.getLatLng());
 			}
 		} else {
 			this._map.on('moveend', showMarker, this);
 			this.on('animationend', showMarker, this);
-			map.setView(layer.getLatLng(), layer.__parent._zoom + 1);
+			this._map.setView(layer.getLatLng(), layer.__parent._zoom + 1);
 			layer.__parent.zoomToBounds();
 		}
 	},

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