MarkerClusterer中使用的标记标签

时间:2011-04-12 19:41:49

标签: javascript google-maps google-maps-api-3 google-maps-markers

是否可以更改MarkerClusterer项目中使用的标记的标签? 我希望它们显示百分比而不是分组标记的数量。

由于

2 个答案:

答案 0 :(得分:6)

似乎硬编码总结了它聚合的标记数量。您可以尝试覆盖此方法或根据其许可证修改脚本。

来自ClusterIcon.prototype.setSums方法:

this.text_ = sums.text;

答案 1 :(得分:3)

您所要做的就是定义自己的计算器功能。

请在此处查看MarkerClustererPlus的文档:

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