Remove __layer property on markers that are removed, otherwise on re-adding them we'll assume they are already added. Woops!

This commit is contained in:
danzel
2012-10-17 15:16:27 +13:00
parent f529500d42
commit 89d2236917
+3
View File
@@ -120,6 +120,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
L.FeatureGroup.prototype.removeLayer.call(this, layer);
layer.setOpacity(1);
}
delete layer.__parent;
return this;
},