mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
Fix typo in README (recieve --> receive)
This commit is contained in:
@@ -72,7 +72,7 @@ Other options
|
|||||||
|
|
||||||
## Events
|
## Events
|
||||||
If you register for click, mouseover, etc events just related to Markers in the cluster.
|
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:
|
Set your callback up as follows to handle both cases:
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ markers.on('clusterclick', function (a) {
|
|||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
### Getting the bounds of a cluster
|
### 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.
|
See [example/marker-clustering-convexhull.html](http://leaflet.github.com/Leaflet.markercluster/example/marker-clustering-convexhull.html) for a working example.
|
||||||
```javascript
|
```javascript
|
||||||
markers.on('clusterclick', function (a) {
|
markers.on('clusterclick', function (a) {
|
||||||
@@ -98,7 +98,7 @@ markers.on('clusterclick', function (a) {
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Zooming to the bounds of a cluster
|
### 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.
|
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.
|
See [marker-clustering-zoomtobounds.html](http://leaflet.github.com/Leaflet.markercluster/example/marker-clustering-zoomtobounds.html) for a working example.
|
||||||
```javascript
|
```javascript
|
||||||
|
|||||||
Reference in New Issue
Block a user