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

Copy iOS 11 Clustering #45

Open
efremidze opened this issue Sep 11, 2017 · 2 comments
Open

Copy iOS 11 Clustering #45

efremidze opened this issue Sep 11, 2017 · 2 comments

Comments

@efremidze
Copy link
Owner

efremidze commented Sep 11, 2017

Add option to cluster like iOS 11

https://developer.apple.com/documentation/mapkit/mkmapviewdelegate/2867923-mapview

extension MapKitViewController: ClusterDelegate {
    
    func mapView(_ mapView: MKMapView, clusterAnnotationForMemberAnnotations memberAnnotations: [MKAnnotation]) -> ClusterAnnotation {
        let annotation = ClusterAnnotation(memberAnnotations: memberAnnotations)
        annotation.title = "Emojis"
        return annotation
    }

}
@efremidze efremidze changed the title Copy iOS Clustering Copy iOS 11 Clustering Sep 11, 2017
@kylebrowning
Copy link

What exactly does this do?

@efremidze
Copy link
Owner Author

Adds iOS 11 syntax for clustering.

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

No branches or pull requests

2 participants