Jacek Francuz
Jacek Francuz

Reputation: 2498

Label of markers used in MarkerClusterer

is it possible to change labels for markers used in MarkerClusterer project? I want them to display percents instead of number of grouped markers.

Thanks

Upvotes: 3

Views: 3885

Answers (2)

Musannif Zahir
Musannif Zahir

Reputation: 3029

It seems to be hardcoded to sum up the number of markers it is aggregating. You could try to override this method or modify the script per its license.

From the ClusterIcon.prototype.setSums method:

this.text_ = sums.text;

Upvotes: 6

user1469420
user1469420

Reputation: 121

All you have to do is define your own calculator function.

See the documentation for MarkerClustererPlus here:

http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.14/docs/reference.html

Upvotes: 3

Related Questions