MKMapView overlapping MKAnnotations only allow showing two of the callouts
| Originator: | nnhubbard | ||
| Number: | rdar://33768936 | Date Originated: | August 7, 2017 |
| Status: | Open | Resolved: | |
| Product: | iOS + SDK | Product Version: | |
| Classification: | Reproducible: | Always |
Area: MapKit Summary: I have three MKPointAnnotation objects that are added in the exact same coordinates to an MKMapView and they are each given a unique title. MKPointAnnotation *a1 = [[MKPointAnnotation alloc] init]; a1.coordinate = CLLocationCoordinate2DMake(45.875684, -122.656254); a1.title = @"Title 1"; [self.mapView addAnnotation:a1]; MKPointAnnotation *a2 = [[MKPointAnnotation alloc] init]; a2.coordinate = CLLocationCoordinate2DMake(45.875684, -122.656254); a2.title = @"Title 2"; [self.mapView addAnnotation:a2]; MKPointAnnotation *a3 = [[MKPointAnnotation alloc] init]; a3.coordinate = CLLocationCoordinate2DMake(45.875684, -122.656254); a3.title = @"Title 3"; [self.mapView addAnnotation:a3]; When adding them to the map, normally you can just tap the annotation, then tap again and again to cycle through the overlapped pins. However, when there are more than two, it seems you are limited to only cycling through two of the annotations, even though there are three that are overlapping. Title 1 is never shown: https://i.stack.imgur.com/AO1CF.gif Steps to Reproduce: Add more than two annotations to the map at the same exact location with different titles, then it will cycle through only two of the annotations. Expected Results: It should cycle through all annotations Observed Results: It only cycled through two annotations. Version: iOS 10
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!