diSelect Annotation
Hi,
I am trying to integrate your cluster into my project it's quite awesome. I have some clarification. now I am working on a rental project so I need to take maker and I need to show callout view. unfortunately, when I tap marker nothing is happing pls kindly do needful and also when the map is load I need to zoom it on country base I changed specific location but I don't know zooming kindly check it
herewith i attached delegate method screen check it once


` let algorithm = CKNonHierarchicalDistanceBasedAlgorithm() algorithm.cellSize = 200
mapView.clusterManager.algorithm = algorithm
mapView.clusterManager.marginFactor = 1
mapView.clusterManager.maxZoomLevel = 50
let paris = CLLocationCoordinate2D(latitude: 11.5449, longitude: 104.8922)
mapView.setCenter(paris, animated: false)
`
Hi, I'm not sure to understand your issue.
To show the callout view you need to set the property MKAnnotationView's property canShowCallout to true in your func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) implementation.
For zooming to the annotation, you can change the mapview camera. Hope that's help.
Hi
Thanks for your reply. I need to show some view when the user taps the marker. as per your last suggestion canshowCallout i set as true but I don't know why it's not working I add some screen kindly check it once.
I am also not able to select any annotations. didSelectAnnotation is not getting called ? @syedrazackimran any solution you found ?
in my situation, didSelectAnnotation is not getting called too.
Did you find any solution?
in my situation, didSelectAnnotation is not getting called too.
Did you find any solution?
I have actually found the solution. I wasn't setting correctly the point width and height.
@tarangpatel try with:
annotationView.frame.size.height = 50 annotationView.frame.size.width = 50