[Pkg-javascript-commits] [leaflet-markercluster] 146/219: Added getChildCount and getAllChildMarkers
Jonas Smedegaard
dr at jones.dk
Sat May 7 09:39:28 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet-markercluster.
commit 37e92371908c235ca3ccd93a52a6ab2fa1fc63ab
Author: ghybs <ghybs1 at gmail.com>
Date: Mon Oct 19 11:16:47 2015 +0400
Added getChildCount and getAllChildMarkers
methods to Methods section (previously they were mentioned only in the Customising section).
---
README.md | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index f1a0644..ded5f9a 100644
--- a/README.md
+++ b/README.md
@@ -51,7 +51,7 @@ var markers = L.markerClusterGroup({
As an option to MarkerClusterGroup you can provide your own function for creating the Icon for the clustered markers.
The default implementation changes color at bounds of 10 and 100, but more advanced uses may require customising this.
You do not need to include the .Default css if you go this way.
-You are passed a MarkerCluster object, you'll probably want to use `getChildCount()` or `getAllChildMarkers()` to work out the icon to show
+You are passed a MarkerCluster object, you'll probably want to use `getChildCount()` or `getAllChildMarkers()` to work out the icon to show.
```javascript
var markers = L.markerClusterGroup({
@@ -197,6 +197,10 @@ markers.on('clusterclick', function (a) {
});
```
+#### Other clusters methods
+* **getChildCount**: Returns the total number of markers contained within that cluster.
+* **getAllChildMarkers**: Returns the array of total markers contained within that cluster.
+
## Handling LOTS of markers
The Clusterer can handle 10,000 or even 50,000 markers (in chrome). IE9 has some issues with 50,000.
- [realworld 10,000 example](http://leaflet.github.com/Leaflet.markercluster/example/marker-clustering-realworld.10000.html)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git
More information about the Pkg-javascript-commits
mailing list