123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #import <Foundation/Foundation.h>
- #import <MapKit/MapKit.h>
- @protocol CCHMapClusterControllerDelegate;
- @protocol CCHMapClusterer;
- @protocol CCHMapAnimator;
- @interface CCHMapClusterController : NSObject
- @property (nonatomic, copy, readonly) NSSet *annotations;
- @property (nonatomic, readonly) MKMapView *mapView;
- @property (nonatomic) double marginFactor;
- @property (nonatomic) double cellSize;
- @property (nonatomic, readonly) double zoomLevel;
- @property (nonatomic) double maxZoomLevelForClustering;
- @property (nonatomic) NSUInteger minUniqueLocationsForClustering;
- @property (nonatomic, weak) id<CCHMapClusterControllerDelegate> delegate;
- @property (nonatomic, weak) id<CCHMapClusterer> clusterer;
- @property (nonatomic) BOOL reuseExistingClusterAnnotations;
- @property (nonatomic, weak) id<CCHMapAnimator> animator;
- @property (nonatomic, getter = isDebuggingEnabled) BOOL debuggingEnabled;
- - (instancetype)initWithMapView:(MKMapView *)mapView;
- - (void)addAnnotations:(NSArray *)annotations withCompletionHandler:(void (^)(void))completionHandler;
- - (void)removeAnnotations:(NSArray *)annotations withCompletionHandler:(void (^)(void))completionHandler;
- - (void)selectAnnotation:(id<MKAnnotation>)annotation andZoomToRegionWithLatitudinalMeters:(CLLocationDistance)latitudinalMeters longitudinalMeters:(CLLocationDistance)longitudinalMeters;
- @end
|