public void RegisterClusterClass(CKCluster clusterClass) { if (clusterClass != null) { this.clusterClass = clusterClass; } }
public override void SelectCluster(CKCluster cluster, bool animated) { if (_internalMap.SelectedAnnotations.Contains(cluster)) { return; } _internalMap.SelectAnnotation(cluster, animated); }
public void ShowCluster(CKCluster cluster, bool animated) { MKMapRect mapRect = MKMapRect.Null; foreach (var annoation in cluster.Annotations) { mapRect = MKMapRectByAddingPoint(mapRect, MKMapPoint.FromCoordinate(annoation.Coordinate)); } _internalMap.SetVisibleMapRect(mapRect, animated); }
public CKCluster ClusterWithCoordinate(CLLocationCoordinate2D coordinate) { return(CKCluster.ClusterWithCoordinate(coordinate)); }
public CKClusterAlgorithm() { this.clusterClass = new CKCluster(); }