Fix typo in README (recieve --> receive)

This commit is contained in:
Fureigh
2014-08-13 01:47:49 -07:00
parent fe3bbd3760
commit 383da28c3f
+3 -3
View File
@@ -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