ADClusterMapView icon indicating copy to clipboard operation
ADClusterMapView copied to clipboard

Enhancement Request: SelectedAnnotations

Open malandr2 opened this issue 10 years ago • 1 comments

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:

malandr2 avatar Jul 11 '14 14:07 malandr2

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

samuel-gallet avatar Jul 06 '16 09:07 samuel-gallet