Clear our internal cluster layer when we are removed from the map so those layers aren't there when we are re-added. Fixes #211

This commit is contained in:
danzel
2013-07-05 12:03:20 +12:00
parent c4f4d81722
commit 63e43e430f
+2
View File
@@ -443,6 +443,8 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
this._featureGroup.onRemove(map);
this._nonPointGroup.onRemove(map);
this._featureGroup.clearLayers();
this._map = null;
},