You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The text was updated successfully, but these errors were encountered:
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
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:
The text was updated successfully, but these errors were encountered: