Tuesday, 23 August 2022

How to get click on the android cluster group?

Am not able to get click on the android cluster group, I tried different solutions.

The first solution was to split the cluster using the below solution

override fun shouldRenderAsCluster(cluster: Cluster): Boolean { return cluster.size > 1 }

It didn't work some of the clusters are not splitting

The second solution was to get click on the cluster group as shown below screenshot, but am getting click only in the marker, not the cluster

clusterManager.setOnClusterItemClickListener { item -> return@setOnClusterItemClickListener false }

I need to get click on the cluster group, to show data of each item in the cluster on a custom view is this possible ?

enter image description here



from How to get click on the android cluster group?

No comments:

Post a Comment