This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-[MGLMapViewDelegate mapView:viewForAnnotation:] causes assertion failure if upgrading from v3.3.x #6100
Labels
annotations
Annotations on iOS and macOS or markers on Android
bug
iOS
Mapbox Maps SDK for iOS
release blocker
Blocks the next final release
Milestone
Prior to #5882,
-[MGLMapViewDelegate mapView:viewForAnnotation:]
was only called for “user-contributed” annotations, never for the user location annotation. Now that it’s additionally called for the user location annotation, the most obvious implementation of this method will trip this assertion unless MGLUserLocationAnnotationView or a user-contributed annotation class is specifically accounted for. Instead of asserting, we should simply ignore the returned annotation view. We can consider making it a hard assertion in a future release./cc @friedbunny @frederoni
The text was updated successfully, but these errors were encountered: