mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Update readme with notes on removing layers.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user