Closed GoogleCodeExporter closed 8 years ago
Here's the default calculator function from the MarkerClustererPlus source code:
function (markers, numStyles) {
var index = 0;
var count = markers.length.toString();
var dv = count;
while (dv !== 0) {
dv = parseInt(dv / 10, 10);
index++;
}
index = Math.min(index, numStyles);
return {
text: count,
index: index
};
};
Read the MarkerClustererPlus Reference for the specifications of a calculator
function and how to provide your own.
Original comment by garylitt...@gmail.com
on 27 Feb 2012 at 4:30
Original comment by garylitt...@gmail.com
on 16 Mar 2012 at 4:24
Original issue reported on code.google.com by
dto...@gmail.com
on 30 Nov 2011 at 6:47