Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to hide cluster count when we do full zoom out. #67

Open
vikash1307 opened this issue Mar 8, 2017 · 1 comment
Open

How to hide cluster count when we do full zoom out. #67

vikash1307 opened this issue Mar 8, 2017 · 1 comment

Comments

@vikash1307
Copy link

Hi,

I am using this framework and i loved it. I want to hide the cluster count when did full zoom out. Actually when more than one device in same position , i want to hide cluster count in full zoom out . Is this any way to do that.

@0xfima
Copy link

0xfima commented May 16, 2017

Hi, you can edit the FBClusteringManager.swift, and add action for full zoom here:
switch count { case 0: break case 1: clusteredAnnotations += annotations default: let coordinate = CLLocationCoordinate2D( latitude: CLLocationDegrees(totalLatitude)/CLLocationDegrees(count), longitude: CLLocationDegrees(totalLongitude)/CLLocationDegrees(count) ) let cluster = FBAnnotationCluster() cluster.coordinate = coordinate cluster.annotations = annotations clusteredAnnotations.append(cluster) }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants