Skip to content

addAnnotations for not just once #12

@wayn

Description

@wayn

REVClusterMap is a great project I found for this too long.

But found some problems in my project.

I'm addAnnotations for many times, and need keep old annotations, but seems i will lost the old annotations.

I'm looked into the code, I think the problem should happen in REVClusterMapView the functions regionDidChangeAnimated and addAnnotations

in addAnnotations

annotationsCopy = [annotations copy];

and after this I move the map, we will call regionDidChangeAnimated

[super removeAnnotations:self.annotations];

NSArray *add = [REVClusterManager clusterAnnotationsForMapView:self forAnnotations:annotationsCopy blocks:self.blocks minClusterLevel:self.minimumClusterLevel];

we remove all, and just add new.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions