hulab / ClusterKit

An iOS map clustering framework targeting MapKit, Google Maps and Mapbox.
MIT License
515 stars 86 forks source link

How can I add additional property to cluster? #60

Closed serhii-kucherenko closed 5 years ago

serhii-kucherenko commented 5 years ago

Hi, I'm trying to implement an individual view for each cluster based on the size - if it's a cluster or single marker. How can I add an additional property to cluster/marker so that I could get that data in the 'didSelect' method?

serhii-kucherenko commented 5 years ago

Solved it with let customAnnotations = cluster.annotations as! [MyAnnotation]