mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix typo in README (recieve --> receive)
This commit is contained in:
@@ -72,7 +72,7 @@ Other options
|
||||
|
||||
## Events
|
||||
If you register for click, mouseover, etc events just related to Markers in the cluster.
|
||||
To recieve events for clusters listen to 'cluster' + 'eventIWant', ex: 'clusterclick', 'clustermouseover'.
|
||||
To receive events for clusters listen to 'cluster' + 'eventIWant', ex: 'clusterclick', 'clustermouseover'.
|
||||
|
||||
Set your callback up as follows to handle both cases:
|
||||
|
||||
@@ -89,7 +89,7 @@ markers.on('clusterclick', function (a) {
|
||||
## Methods
|
||||
|
||||
### Getting the bounds of a cluster
|
||||
When you recieve an event from a cluster you can query it for the bounds.
|
||||
When you receive an event from a cluster you can query it for the bounds.
|
||||
See [example/marker-clustering-convexhull.html](http://leaflet.github.com/Leaflet.markercluster/example/marker-clustering-convexhull.html) for a working example.
|
||||
```javascript
|
||||
markers.on('clusterclick', function (a) {
|
||||
@@ -98,7 +98,7 @@ markers.on('clusterclick', function (a) {
|
||||
```
|
||||
|
||||
### Zooming to the bounds of a cluster
|
||||
When you recieve an event from a cluster you can zoom to its bounds in one easy step.
|
||||
When you receive an event from a cluster you can zoom to its bounds in one easy step.
|
||||
If all of the markers will appear at a higher zoom level, that zoom level is zoomed to instead.
|
||||
See [marker-clustering-zoomtobounds.html](http://leaflet.github.com/Leaflet.markercluster/example/marker-clustering-zoomtobounds.html) for a working example.
|
||||
```javascript
|
||||
|
||||
Reference in New Issue
Block a user