/TSClusterMapView

MKMapView with animated clustering for iOS and OSX

Primary LanguageObjective-CMIT LicenseMIT

TSClusterMapView - MKMapView with clustering

Animated annotation clustering MKMapView subclass based off of ADClusterMapView.

CI Status Version License Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

TSClusterMapView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "TSClusterMapView"

Quick start

Subclass TSClusterMapView with your new or existing MKMapView

#import "TSClusterMapView.h"

@interface YourMapView : TSClusterMapView <MKMapViewDelegate, TSClusterMapViewDelegate>

Add annotations to be clustered using the add clustered annotation methods and single annotations using the standard add annotation.

- (void)addClusteredAnnotation:(id<MKAnnotation>)annotation;

- (void)addClusteredAnnotations:(NSArray *)annotations;

Author

Adam Share, adam@tapshield.com

License

TSClusterMapView is available under the MIT license. See the LICENSE file for more info.