[Pkg-javascript-commits] [leaflet-markercluster] 325/479: Fix example of passing options to constructor

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:00:47 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet-markercluster.

commit 626c2c61f79b3297eec7175eeecf2e40a23ac69d
Author: Mathieu Leplatre <leplatrem at gmail.com>
Date:   Wed Feb 27 11:26:00 2013 +0100

    Fix example of passing options to constructor
---
 README.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 13a5bde..b2f44b6 100644
--- a/README.md
+++ b/README.md
@@ -40,11 +40,11 @@ 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
 
 ```javascript
-var markers = new L.MarkerClusterGroup({ options: {
+var markers = new L.MarkerClusterGroup({
 	iconCreateFunction: function(cluster) {
 		return new L.DivIcon({ html: '<b>' + cluster.getChildCount() + '</b>' });
 	}
-}});
+});
 ```
 Check out the [custom example](http://leaflet.github.com/Leaflet.markercluster/example/marker-clustering-custom.html) for an example of this.
 

-- 
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