[Pkg-javascript-commits] [leaflet-markercluster] 97/479: Fix clusters not appearing on fast zoom out then zoom in one. Fixes #12
Jonas Smedegaard
dr at jones.dk
Thu Oct 16 16:00:15 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 9227311e5e103c7eb36f52919ff63d834b9691ac
Author: danzel <danzel at localhost.geek.nz>
Date: Tue Jul 24 17:05:22 2012 +1200
Fix clusters not appearing on fast zoom out then zoom in one. Fixes #12
---
src/MarkerClusterGroup.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index 5e1f6ef..116fff7 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -308,6 +308,8 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? {
//Immediately fire an event to update the opacity and locations (If we immediately set it they won't animate)
setTimeout(function () {
//Update opacities
+ me._topClusterLevel._recursivelyBecomeVisible(bounds, depthToStartAt + depthToDescend);
+ //TODO Maybe? Update markers in _recursivelyBecomeVisible
for (i in me._layers) {
var n = me._layers[i];
--
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