Cluster

Cluster is an easy map annotation clustering library. This repository uses an efficient method (QuadTree) to aggregate pins into a cluster.

Cluster


### Annotations

The `Annotation` class exposes a `style` property that allows you to customize the appearance.

```swift
var style: ClusterAnnotationStyle // The style of the cluster annotation view.

You can further customize the annotations by subclassing ClusterAnnotationView and overriding configure:

override func configure() {
    super.configure()

    // customize
}
Swift

Removing Annotations

To remove annotations, you can call remove(_ annotation: MKAnnotation). However the annotations will still display until you call reload().

In the case that shouldRemoveInvisibleAnnotations is set to false, annotations that have been removed may still appear on map until calling reload() on visible region.

Installation

CocoaPods

To install with CocoaPods, simply add this in your Podfile:

use_frameworks!
pod "Cluster"
Ruby

Carthage

To install with Carthage, simply add this in your Cartfile:

github "efremidze/Cluster"
Ruby

Communication

  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

GitHub

Easy Map Annotation Clustering 📍Read More

Latest commit to the master branch on 11-20-2023
Download as zip