Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was 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

@1ec5

Description

@1ec5

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

Metadata

Metadata

Assignees

Labels

annotationsAnnotations on iOS and macOS or markers on AndroidbugiOSMapbox Maps SDK for iOSrelease blockerBlocks the next final release

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions