google-maps-ios-utils icon indicating copy to clipboard operation
google-maps-ios-utils copied to clipboard

How to show 2 different type of clusters on same map?

Open pooja-mishra opened this issue 9 years ago • 5 comments

I am able to show 2 different kind of clusters by creating 2 GClusterManager objects. But issue is cluster items are reset to newly created GClusterManager object, so when we zoom in map, items of first GClusterManager object are nor breaking into individual markers.

pooja-mishra avatar Aug 28 '15 10:08 pooja-mishra

@pooja-mishra Hi I am having same issue with clusters on my app.Did you figure out how to solve this issue?

Thanks

rimaad avatar May 26 '16 11:05 rimaad

@rimaad Try this http://stackoverflow.com/questions/32371839/how-to-handle-multiple-type-of-clustering-in-google-map-ios-sdk

pooja-mishra avatar May 27 '16 04:05 pooja-mishra

Thanks @pooja-mishra and sorry for the late reply. I looked at this solution in this method but I didn't figure out how to divide clusters into groups to work independent on the map.Any ideas ?

Thanks , rimaad

rimaad avatar Jun 16 '16 10:06 rimaad

@rimaad You can define item type in GQuadItem. You can create separate array for each type of group in "NonHierarchicalDistanceBasedAlgorithm" based on item type. You will have to handle clusters in GDefaultClusterRenderer to group same type of clusters. You will have to play around this.

pooja-mishra avatar Jun 23 '16 04:06 pooja-mishra

@pooja-mishra thanks pooja a lot .That is exactly solution that I implemented.

Thanks once again,

rimaad avatar Jun 23 '16 13:06 rimaad