Awesome
<p align="center"> <img src="Resources/git_banner.png" width=434 /> </p> <p align="center"> <a href="https://travis-ci.org/hulab/ClusterKit"> <img src="http://img.shields.io/travis/hulab/ClusterKit.svg?style=flat" alt="CI Status"> </a> <a href="http://cocoapods.org/pods/ClusterKit"> <img src="https://img.shields.io/cocoapods/v/ClusterKit.svg?style=flat" alt="Version"> </a> <a href="http://cocoapods.org/pods/ClusterKit"> <img src="https://img.shields.io/cocoapods/l/ClusterKit.svg?style=flat" alt="License"> </a> <a href="http://cocoapods.org/pods/ClusterKit"> <img src="https://img.shields.io/cocoapods/p/ClusterKit.svg?style=flat" alt="Platform"> </a> <a href="https://swift.org/package-manager"> <img src="https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg" alt="Swift Package Manager" /> </a> <a href="https://github.com/Carthage/Carthage"> <img src="https://img.shields.io/badge/Carthage-compatible-brightgreen.svg?style=flat" alt="Carthage"> </a> </p>ClusterKit is an elegant and efficiant clustering controller for maps. Its flexible architecture make it very customizable, you can use your own algorithm and even your own map provider.
Features
- Native supports of MapKit, GoogleMaps, Mapbox and YandexMapKit.
- Comes with 2 clustering algorithms, a Grid Based Algorithm and a Non Hierarchical Distance Based Algorithm.
- Annotations are stored in a QuadTree for efficient region queries.
- Cluster center can be switched to Centroid, Nearest Centroid, Bottom.
- Handles pin selection as well as drag and dropping.
- Written in Objective-C with full Swift interop support.
MapKit | GoogleMaps | Mapbox |
---|---|---|
Installation & Usage
Please follow the wiki for integration.
If you want to try it, simply run:
pod try ClusterKit
Or clone the repo and run pod install
from the Examples directory first.
Provide the Google API Key in the AppDelegate in order to try it with GoogleMaps.
Provide the Mapbox Access Token in the AppDelegate in order to try it with Mapbox.
Provide the Yandex API Key in the AppDelegate in order to try it with YandexMapKit.
Credits
Assets by Hugo des Gayets.
Thanks @petropavel13 for the YandexMapKit integration.
License
ClusterKit is available under the MIT license. See the LICENSE file for more info.