Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement Request: SelectedAnnotations #43

Open
malandr2 opened this issue Jul 11, 2014 · 1 comment
Open

Enhancement Request: SelectedAnnotations #43

malandr2 opened this issue Jul 11, 2014 · 1 comment

Comments

@malandr2
Copy link

Hi,
I'd like to ask if this is possible, we are facing an issue when using 'selectedAnnotations' in ADClusterMapView it returns ADClusterAnnotation instances instead of the desired NSArray of original annotations that normally happens with MKMapView. In the case with ADClusterMapView, the app immediately crashes.

Example (from my debugger code):
po [[self.mapView selectedAnnotations] firstObject];
returns ADClusterAnnotation:

@samuel-gallet
Copy link

This behaviour is the one expected. Indeed if you are selecting a cluster annotation (with many child) you can't have anything but an ADClusterAnnotation.

However you can unwrap your annotations with the "originalAnnotations" from ADClusterAnnotation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants