From a1575e10c1c40d6a6528c5b6d86a152dba659b0b Mon Sep 17 00:00:00 2001 From: danzel Date: Thu, 20 Sep 2012 11:28:11 +1200 Subject: [PATCH] build fixes --- src/MarkerClusterGroup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js index 905c8729a..33169000b 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(); } },