google-maps-ios-utils
google-maps-ios-utils copied to clipboard
How to show 2 different type of clusters on same map?
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 Hi I am having same issue with clusters on my app.Did you figure out how to solve this issue?
Thanks
@rimaad Try this http://stackoverflow.com/questions/32371839/how-to-handle-multiple-type-of-clustering-in-google-map-ios-sdk
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 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 thanks pooja a lot .That is exactly solution that I implemented.
Thanks once again,