我在集群中使用了以下代码,但在这种情况下,cluster-3不会显示,只显示cluster-1和cluster-2。
clusters: {
// This style will be used for clusters with more than 0 markers
10: {
content: '<div class="cluster cluster-1">CLUSTER_COUNT</div>',
width: 53,
height: 52
},
// This style will be used for clusters with more than 20 markers
50: {
content: '<div class="cluster cluster-2">CLUSTER_COUNT</div>',
width: 56,
height: 55
},
// This style will be used for clusters with more than 50 markers
100: {
content: '<div class="cluster cluster-3">CLUSTER_COUNT</div>',
width: 66,
height: 65
}
},
其余代码与css和javascript相同,与http://gmap3.net/examples/clustering.html相同 请建议任何好的解决方案或它的缺点,我们不能改变现有的比例。
提前致谢。