public bool AnnotationTree(ICKAnnotationTree annotationTree, CKAnnotation annotation) { if (annotation == this.SelectedAnnotation) { return(false); } return(this.Delegate?.ClusterManager(this, annotation) ?? true); }
public virtual List <CKCluster> ClustersInRect(MKMapRect rect, double zoom, ICKAnnotationTree tree) { var annotations = tree.AnnotationsInRect(rect); var clusters = new List <CKCluster>(); foreach (var annotation in annotations) { var clustr = this.ClusterWithCoordinate(annotation.Coordinate); clustr.AddAnnotation(annotation); clusters.Add(clustr); } return(clusters); }