Reputation: 2498
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
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
Reputation: 121
All you have to do is define your own calculator function.
See the documentation for MarkerClustererPlus here:
Upvotes: 3