You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I have tried implementing the ClusterKit proj in order to have clustering of annotations/(possibly polylines)(given that Mapbox does not have that functionality) in my app but it does not seem to work. No errors or anything it just does nothing and I am unsure what I am doing wrong.
Here is the relevant code:
viewDidLoad() {
let algorithm = CKNonHierarchicalDistanceBasedAlgorithm()
algorithm.cellSize = 200
mapView1.clusterManager.algorithm = algorithm
fetchData() //This is a call to firebase I add the annotations to an array of them inside an annotations object.
setupCluster() //This gest called multiple times IDK why, not sure if its the issue but I have been unable to change this
}
func setupCluster() {
mapView1.clusterManager.marginFactor = 1
print(ObjAnnotationArray.annotations, " These are teh annotations")
mapView1.clusterManager.annotations = ObjAnnotationArray.annotations
}
These are the delagete methods whwere I added functionality as specified in the docs.
I've also tried making use of this third party to create clusters of the annotation views, but nothing happens. No errors or anything are shown either?
Has this issue been resolved?
So I have tried implementing the ClusterKit proj in order to have clustering of annotations/(possibly polylines)(given that Mapbox does not have that functionality) in my app but it does not seem to work. No errors or anything it just does nothing and I am unsure what I am doing wrong.
Here is the relevant code:
These are the delagete methods whwere I added functionality as specified in the docs.
Any help/suggestions on how to solve this?
I have looked here at their example but cant find a solution there myself.
Also, here is the wiki on how to implement which I followed.
The text was updated successfully, but these errors were encountered: