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.
Defer asking for user location annotation view until delegate is set #9781
If an application sets the “Shows User Location” inspectable but sets MGLMapView.delegate in a -viewDidLoad method, -[MGLMapViewDelegate mapView:viewForAnnotation:] is never called for the userLocation annotation. -[MGLMapView setShowsUserLocation:] is currently responsible for calling -[MGLMapViewDelegate mapView:viewForAnnotation:] based on delegate being set, so the application ends up having to unset and reset showsUserLocation after setting delegate in order for -[MGLMapViewDelegate mapView:viewForAnnotation:] to be called.
-[MGLMapViewDelegate mapView:viewForAnnotation:] should also be called when delegate is set. Alternatively, it should only be called lazily when the annotation view is first needed. This would be a good opportunity to audit MGLMapView for any other code that should run when setting the delegate.
Activity
stale commentedon Dec 1, 2018
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
stale commentedon May 31, 2019
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
stale commentedon Dec 1, 2019
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.