1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #import <Foundation/Foundation.h>
- #import <MapKit/MapKit.h>
- @class CCHMapClusterController;
- @class CCHMapClusterAnnotation;
- @class CCHMapTree;
- @protocol CCHMapClusterer;
- @protocol CCHMapAnimator;
- @protocol CCHMapClusterControllerDelegate;
- @interface CCHMapClusterOperation : NSOperation
- @property (nonatomic) CCHMapTree *allAnnotationsMapTree;
- @property (nonatomic) CCHMapTree *visibleAnnotationsMapTree;
- @property (nonatomic) id<CCHMapClusterer> clusterer;
- @property (nonatomic) id<CCHMapAnimator> animator;
- @property (nonatomic, weak) id<CCHMapClusterControllerDelegate> clusterControllerDelegate;
- @property (nonatomic, weak) CCHMapClusterController *clusterController;
- - (instancetype)initWithMapView:(MKMapView *)mapView cellSize:(double)cellSize marginFactor:(double)marginFactor reuseExistingClusterAnnotations:(BOOL)reuseExistingClusterAnnotation maxZoomLevelForClustering:(double)maxZoomLevelForClustering minUniqueLocationsForClustering:(NSUInteger)minUniqueLocationsForClustering;
- + (double)cellMapSizeForCellSize:(double)cellSize withMapView:(MKMapView *)mapView;
- + (MKMapRect)gridMapRectForMapRect:(MKMapRect)mapRect withCellMapSize:(double)cellMapSize marginFactor:(double)marginFactor;
- @end
|