Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

-[MGLMapView addAnnotations:] assumes homogeneous input #5096

Closed
1ec5 opened this issue May 23, 2016 · 0 comments
Closed

-[MGLMapView addAnnotations:] assumes homogeneous input #5096

1ec5 opened this issue May 23, 2016 · 0 comments
Labels
crash iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS

Comments

@1ec5
Copy link
Contributor

1ec5 commented May 23, 2016

If you pass an array containing a point annotation and a shape annotation into -[MGLMapView addAnnotations:], this assertion fails because the method attempts to reassociate annotation tags with annotation model objects by indexing into the input array, as though the array either contains only points or contains only shapes:

2016-05-22 23:08:06.836 Mapbox GL[35532:22074429] *** Assertion failure in -[MGLMapView addAnnotations:], /Users/mxn/hub/mapbox-gl-native-2/platform/osx/src/MGLMapView.mm:1668
#3  0x000000010006118d in -[MGLMapView addAnnotations:] at /Users/mxn/hub/mapbox-gl-native-2/platform/osx/src/MGLMapView.mm:1668

/cc @boundsj

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS crash labels May 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crash iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS
Projects
None yet
Development

No branches or pull requests

1 participant