[Pkg-javascript-commits] [leaflet-markercluster] 96/219: fix removeLayers when cluster is not on the map
Jonas Smedegaard
dr at jones.dk
Sat May 7 09:39:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet-markercluster.
commit 801f6443fb82f1f33649e9260f4461503b4db06c
Author: Egon Steiner <es at intermaps.com>
Date: Thu Sep 17 12:39:22 2015 +0200
fix removeLayers when cluster is not on the map
---
src/MarkerClusterGroup.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index c487468..2117c7a 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -260,6 +260,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
m = layersArray[i];
this._arraySplice(this._needsClustering, m);
npg.removeLayer(m);
+ if (!this._arraySplice(this._needsClustering, m) && this.hasLayer(m)) {
+ this._needsRemoving.push(m);
+ }
}
return this;
}
--
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