-
Notifications
You must be signed in to change notification settings - Fork 96
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
"ERROR: Trying to select an annotation which has not been added" #26
Comments
Clustered annotations are not really on the map so it can't be selected. |
Ah that makes sense, ok On Wed, Feb 26, 2014, at 08:42 AM, Botond Kis wrote: Clustered annotations are not really on the map so it can't be I've never thought about this case. One possible fix would be to select — Reply to this email directly or [1]view it on GitHub. References |
I get this error even if clustering is disabled. The annotation with address 0x174e6ba00 is in the list of map annotations. It seems to me though, that it may occur if the annotation is not in the visible map area.
EDIT: Upon further review, I found that the annotation is contained in the aelf.mapView.annotations, but not in the self.mapview.displayedAnnotations, as it is just outside the visible map rect. Turning on clustering of invisible annotations (clusterInvisibleViews = YES) solved the problem I was experiencing, even do clustering is disable. :) |
I'm getting this error with OCMapView, but not MKMapView (which currently works perfectly).
I'm getting it on the following line of code:
annotation
is definitely added to self.mapView already, because it is visible there when iterating over self.mapView.annotations (and comparing pointer references - definitely same annotation object).This is on iOS7.
Any idea what could be wrong?
The text was updated successfully, but these errors were encountered: