OCMapView 1.0
Simple and easy to use clustering mapView.
/Users/Boti/Documents/coding/iPhone Development/OCMapView+Sample/OCMapView/OCAlgorithms.h
Go to the documentation of this file.
00001 //
00002 //  OCAlgorythms.h
00003 //  openClusterMapView
00004 //
00005 //  Created by Botond Kis on 15.07.11.
00006 //
00007 
00008 #import <Foundation/Foundation.h>
00009 #import <MapKit/MapKit.h>
00010 
00011 
00013 
00014 typedef enum {
00015     OCClusteringMethodBubble,
00016     OCClusteringMethodGrid
00017 } OCClusteringMethod;
00018 
00020 
00022 @protocol OCAlgorithmDelegate <NSObject>
00023 @required
00025 - (NSArray *)algorithmClusteredPartially;
00026 @optional
00028 - (void)algorithmDidBeganClustering;
00030 - (void)algorithmDidFinishClustering;
00031 @end
00032 
00034 
00043 @interface OCAlgorithms : NSObject{
00045 
00047     id <OCAlgorithmDelegate> delegate;
00048 }
00049 
00051 
00058 + (NSArray*) bubbleClusteringWithAnnotations:(NSArray *) annotationsToCluster andClusterRadius:(CLLocationDistance)radius grouped:(BOOL) grouped;
00059 
00060 
00061 
00063 
00069 + (NSArray*) gridClusteringWithAnnotations:(NSArray *) annotationsToCluster andClusterRect:(MKCoordinateSpan)tileRect grouped:(BOOL) grouped;
00070 
00071 @end
 All Data Structures Files Functions Variables Enumerations Enumerator Properties