mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
Tidy up readme
This commit is contained in:
@@ -23,10 +23,10 @@ map.addLayer(markers);
|
||||
|
||||
### Defaults
|
||||
By default the Clusterer enables some nice defaults for you:
|
||||
showCoverageOnHover: When you mouse over a cluster it shows the bounds of its markers.
|
||||
zoomToBoundsOnClick: When you click a cluster we zoom to its bounds.
|
||||
spiderfyOnMaxZoom: When you click a cluster at the bottom zoom level we spiderfy it so you can see all of its markers.
|
||||
removeOutsideVisibleBounds: Clusters and markers too far from the viewport are removed from the map for performance.
|
||||
* **showCoverageOnHover**: When you mouse over a cluster it shows the bounds of its markers.
|
||||
* **zoomToBoundsOnClick**: When you click a cluster we zoom to its bounds.
|
||||
* **spiderfyOnMaxZoom**: When you click a cluster at the bottom zoom level we spiderfy it so you can see all of its markers.
|
||||
* **removeOutsideVisibleBounds**: Clusters and markers too far from the viewport are removed from the map for performance.
|
||||
|
||||
You can disable any of these as you want in the options when you create the MarkerClusterGroup:
|
||||
```javascript
|
||||
|
||||
Reference in New Issue
Block a user