gpt4 book ai didi

android-我如何在 "Android"的谷歌地图中实现集群管理器时获得确切的数字请给我正确的答案,如果有人有...?

转载 作者:行者123 更新时间:2023-11-29 17:15:51 25 4
gpt4 key购买 nike

如何在集群管理器的桶中获取准确的数字?

谁能给我举个例子?如何得到 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com