0

我已将以下代码用于集群,但在这种情况下,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 请提出任何好的解决方案或我们无法更改现有比率的缺点。

提前致谢。

4

0 回答 0