From a9dbb1129df7f8c36233f123eef0f736dbb58154 Mon Sep 17 00:00:00 2001 From: Antonino Parisi Date: Tue, 19 Jan 2016 11:18:06 +0000 Subject: [PATCH] Bugfix for Cluster.updateIcon() Fixes an error when updating the cluster icon. --- src/markerclusterer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/markerclusterer.js b/src/markerclusterer.js index ebf218c..6cd1cd1 100755 --- a/src/markerclusterer.js +++ b/src/markerclusterer.js @@ -1012,7 +1012,7 @@ Cluster.prototype.updateIcon = function() { return; } - if (markers_.length < this.minClusterSize_) { + if (markers.length < this.minClusterSize_) { // Min cluster size not yet reached. this.clusterIcon_.hide(); return;