[Pkg-javascript-commits] [leaflet-markercluster] 125/219: Corrected example for refreshIconOptions

Jonas Smedegaard dr at jones.dk
Sat May 7 09:39:22 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 feb518cc356b5018ce49a06cdbd5877ebede5d10
Author: ghybs <ghybs at users.noreply.github.com>
Date:   Wed Oct 14 12:52:21 2015 +0400

    Corrected example for refreshIconOptions
    
    Corrected example for `L.Marker.refreshIconOptions` method.
---
 README.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index b393a31..ceea841 100644
--- a/README.md
+++ b/README.md
@@ -142,10 +142,10 @@ If passing a second argument that evaluates to `true`, the method will also trig
 ```javascript
 // Use as many times as required to update markers,
 // then call refreshClusters once finished.
-for (i in markersArray) {
-	markersArray[i].refreshIconOptions(newOptionsMap);
+for (i in markersSubArray) {
+	markersSubArray[i].refreshIconOptions(newOptionsMappingArray[i]);
 }
-markers.refreshClusters(group);
+markers.refreshClusters(markersSubArray);
 
 // If updating only one marker, pass true to
 // refresh this marker's parent clusters right away.

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