Enhancement Request: SelectedAnnotations
malandr2 opened this issue · 1 comments
malandr2 commented
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 commented
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