-
Notifications
You must be signed in to change notification settings - Fork 1.3k
MGLAnnotation select not triggering a second time when changing zoom level #15193
Comments
Hi @tkrami, thanks for the detailed report. This looks similar to a bug we introduced in 5.1.0 and fixed with #15097 (for release in 5.2.0 tomorrow) — could you please give 5.2.0-beta.1 a try and report back if this annotation selection issue persists? 🙇 |
@friedbunny downgrading to version 4.11.1 works for me. When the 5.2.0 is released I will give it a try. |
@friedbunny Another issue was detected yesterday. We noticed that your app or its metadata provides access to external mechanisms for purchases or subscriptions to be used in the app, which does not comply with the App Store Review Guidelines. Specifically, the information button for Mapbox links to the website where digital products and services can be purchased. Do you know this issue? |
Noting that this is addressed here: #15406 (comment) @tkrami have you had a chance to test 5.2.0 for the original issue? |
@julianrex I do not test the newest release. I downgraded to pod 'Mapbox-iOS-SDK', '~> 4.11.0' and this will fix the issue for me. |
@julianrex I tried v5.2.0. It seems to work correctly with this version. |
@tkrami great, thanks for following up. 🙇 |
Hello,
we are using the sdk to display annotations an show detailed information about this by clicking one specific annotation.
But we have an issue in all of our apps. After clicking a annotation, deselecting it and zooming to a lower level the func mapView(_ mapView: MGLMapView, imageFor annotation: MGLAnnotation) -> MGLAnnotationImage? function do not trigger the click again.
Also checked that all annotations are drawn right on the map. Also implemented the quick fix by creating an image where the lower half of the icon is transparent (otherwise the sdk will draw the annotation wrong)
Steps to reproduce
Expected behavior
The func mapView(_ mapView: MGLMapView, imageFor annotation: MGLAnnotation) -> MGLAnnotationImage? function should be triggered on every zoom level and every time an annotation was selected. Its very annoying that some annotations are triggering this function and some annotation do nothing.
Actual behavior
The func mapView(_ mapView: MGLMapView, imageFor annotation: MGLAnnotation) -> MGLAnnotationImage? function is not triggered on every zoom level and every time an annotation was selected.
Configuration
**Mapbox SDK versions: 5.1.1
**iOS/macOS versions: 10.0 - 12.x
**Device/simulator models: all iPhones
**Xcode version: Version 10.2.1 (10E1001)
The text was updated successfully, but these errors were encountered: