Partially fix the animation when a marker is added to an existing cluster.

This commit is contained in:
danzel
2012-08-01 15:17:32 +12:00
parent 1be9202f05
commit 5b5d0a9a6c
+1 -1
View File
@@ -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 () {