[Pkg-javascript-commits] [leaflet-markercluster] 137/479: Partially fix the animation when a marker is added to an existing cluster.

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:00:21 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 5b5d0a9a6cf060adf92e212dd94e30ab00eaf2b4
Author: danzel <danzel at localhost.geek.nz>
Date:   Wed Aug 1 15:17:32 2012 +1200

    Partially fix the animation when a marker is added to an existing cluster.
---
 src/MarkerClusterGroup.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index 30886d9..65ed7cb 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -490,7 +490,7 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? {
 				this._forceLayout();
 				this._animationStart();
 
-				layer._setPos(this._map.latLngToLayerPoint(layer.getLatLng()));
+				layer._setPos(this._map.latLngToLayerPoint(newCluster.getLatLng()));
 				layer.setOpacity(0);
 
 				setTimeout(function () {

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