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
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Annotation selection not working on Mapbox iOS SDK 5.1.0 #15088
MGLAnnotationView cannot be selected on map by tapping annotation and delegate - (void)mapView:(MGLMapView *)mapView didSelectAnnotation:(id <MGLAnnotation>)annotation; isn't called. Same code has worked with Mapbox 5.0.0 and earlier.
Steps to reproduce
Add MGLAnnotationView on map
Tap it
Expected behavior
MGLAnnotation gets selected and didSelectAnnotation delegate is called.
Actual behavior
Nothing happens. Annotation isn't selected.
Configuration
Mapbox SDK versions: 5.1.0 iOS/macOS versions: iOS 12.3.1 Device/simulator models: reprodusable on both simulator and device. Xcode version: 10.2.1
Hi, I have the same problem.
When I zoom in/out by pinch and release both fingers at the same time, no problem happens.
Releasing fingers one by one, may cause the problem.
I hope it will help.
Activity
friedbunny commentedon Jul 10, 2019
Thanks for the report, @anttifinnair — seems related to #15082.
anttifinnair commentedon Jul 11, 2019
Yes, that looks related. Selection randomly works on some zoom levels/rotation but mostly it doesn't.
bDivergent commentedon Jul 11, 2019
That is what I have also experienced. When I zoom in too far then the annotation will not be visible. Nothing happens.
julianrex commentedon Jul 12, 2019
Noting I added #15106 which may be the cause, rather than #15082.
azukinohiroki commentedon Aug 22, 2019
Hi, I have the same problem.
When I zoom in/out by pinch and release both fingers at the same time, no problem happens.
Releasing fingers one by one, may cause the problem.
I hope it will help.
friedbunny commentedon Aug 22, 2019
This was fixed by #15097 in
ios-v5.2.0. If anyone is still experiencing it after updating, definitely please let us know.