Update readme with notes on removing layers.

This commit is contained in:
danzel
2012-10-11 10:45:02 +13:00
parent 1d1f3de244
commit 5064f6e8fc
+2
View File
@@ -102,6 +102,8 @@ addLayer, removeLayer and clearLayers are supported and they should work for mos
### Bulk adding and removing Markers
addLayers and removeLayers are bulk methods for adding and removing markers and should be favoured over the single versions when doing bulk addition/removal of markers. Each takes an array of markers
If you are removing a lot of markers it will almost definitely be better to call clearLayers then call addLayers to add the markers you don't want to remove back in. See [#59](https://github.com/danzel/Leaflet.markercluster/issues/59#issuecomment-9320628) for details.
### Other Methods
````
hasLayer(layer): Returns true if the given layer (marker) is in the MarkerClusterGroup