Skip to content

Custom MKAnnotationView image in mapView:viewForAnnotation #39

@iMacX

Description

@iMacX

Hi,

I'm trying to attribute a custom image depending on conditions to my MKAnnotationView in the method mapView:viewForAnnotation.

My map has more than 10000 pins and there is 3 groups of pins. For each group of pins (leafs, not cluster), I would like a different image.

My problem with your framework is that you are reusing a pool of annotations. The number of item in this pool depends on _numberOfClusters, setted by default to 32. In my case, 64.

Due to the fact the the pins are reused, I can't make a difference between the pins in mapView:viewForAnnotation.

In the description of your project, I see "Add support for multiple independant trees". Is there any implementation of this?

Thank you for your advice or putting me in the right direction to achieve this.

regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions