Clustering with MapKit using Xcode 8+ and Swift 3+

Viewed 1520

I'm trying to use a third party solution for clustering annotations with MapKit.

I found this pod Cluster - https://github.com/efremidze/Cluster that seems to be for Swift 3.

Their example runs ok and I followed their guide for installations but I'm coming up with numerous errors.

Error ClusterManager has no member 'zoomLevel'

        manager.zoomLevel = 17

Error Value of type Annotation has no member 'type'

        annotation.type = .color(color, radius: 25)

Error Extra argument 'visibleMapRect' in call

    manager.reload(mapView, visibleMapRect: mapView.visibleMapRect)
2 Answers
Related