如何在集群管理器的桶中获取准确的数字?
谁能给我举个例子?如何得到 42,35 而不是 20+,50+ 等?
最佳答案
May be this is not the best answer but it has been work for me.
public class CustomClusterClass extends DefaultClusterRenderer<Data> {
public CustomClusterClass(Context context, MapboxMap map,
ClusterManagerPlugin<Data> clusterManagerPlugin) {
super(context, map, clusterManagerPlugin);
}
@Override
protected String getClusterText(int bucket) {
return super.getClusterText(bucket).replace("+", "");
}
@Override
protected int getBucket(Cluster<Data> cluster) {
return cluster.getSize();
}
}
关于android-我如何在 "Android"的谷歌地图中实现集群管理器时获得确切的数字请给我正确的答案,如果有人有...?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39053100/