Another _noHas hack to fix removing layers.

This commit is contained in:
danzel
2013-06-14 16:22:34 +12:00
parent a34aaa610d
commit 9152c2aaba
+2
View File
@@ -448,7 +448,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
//Cluster is currently on the map, need to put the marker on the map instead
L.FeatureGroup.prototype.removeLayer.call(this, cluster);
if (!dontUpdateMap) {
otherMarker._noHas = true;
L.FeatureGroup.prototype.addLayer.call(this, otherMarker);
delete otherMarker._noHas;
}
}
} else {