Markers that have the same locations that do not appear in the Map when using the Google Map Android Clusters library. Shows only the clustered item (10+)

I am using Google Map Android Clustering Utitlity With Google Maps v2 Game Services.

I cannot view markers with the same locations. The cluster shows 10 and I cannot view these 10 markers even at maximum magnification. I want to know where it is possible to add an offset to markers with the same locations. Are there any predefined methods used in the cluster utility to solve this problem.

Thanks in advance.

enter image description here

+3


source to share


1 answer


Finally I found a job to fix this problem. Sorry for answering my own question, this might help someone.

Just changed the private method in DefaultClusterRenderer

from the Utility library. It has a method,

protected boolean shouldRenderAsCluster(Cluster<T> cluster)

      



Modify the above method to return false if the map is at the maximum or specified zoom level. If I zoom in on the map to its maximum level, it displays all the markers on the map in the same place, so it can appear as a single marker since it is in the same place. To show marker information / data for all markers, I displayed a list of marker details when the marker is clicked. It will be processed on Activity

,

public boolean onClusterItemClick(Object item)

      

+4


source







All Articles