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

[iOS]Missing markers after removeAnnotations/addAnnotations is called #7342

Closed
andrewstay opened this issue Dec 8, 2016 · 2 comments
Closed
Assignees
Labels
annotations Annotations on iOS and macOS or markers on Android bug iOS Mapbox Maps SDK for iOS
Milestone

Comments

@andrewstay
Copy link

**Platform:**iOS
Mapbox SDK version: ios-v3.4.0-beta.4

Steps to trigger behavior

  1. Create an instance of MGLMapView
  2. Add annotations with random data
  3. Provide view for the created annotations via
    -[MGLMapViewDelegate mapView:viewForAnnotation:]
  4. Observe views are correctly instantiated and displayed in the map.
  5. Remove existing annotations as following:
    [self.mapView removeAnnotations:self.mapView.annotations];
  6. Instantiate new random annotations and set them up into the instance of the map view
    [self.mapView addAnnotations:annotations];

Expected behavior

All newly added annotations which fit the visible coordinates should be displayed.

Actual behavior

The annotations which are located close the the edge of the visible bounds are not displayed. Only few annotations are visible in the map.

Please review the video and the test application attached.
Please read "readme.txt" for details on how to run the test application.
TestMapbox.zip

https://www.dropbox.com/s/gnka3kf89bw0rup/AnnotationsIssue.mov?dl=0

@andrewstay andrewstay changed the title [iOS]Missing markers after addAnnotations/removeAnnotations is called [iOS]Missing markers after removeAnnotations/addAnnotations is called Dec 8, 2016
@tobrun tobrun added the iOS Mapbox Maps SDK for iOS label Dec 8, 2016
@boundsj boundsj added annotations Annotations on iOS and macOS or markers on Android bug labels Dec 9, 2016
@boundsj boundsj added this to the ios-v3.4.0 milestone Dec 9, 2016
@boundsj boundsj self-assigned this Dec 9, 2016
@1ec5
Copy link
Contributor

1ec5 commented Dec 14, 2016

Fixed in #7423 on the v3.4.0 release branch.

@1ec5 1ec5 closed this as completed Dec 14, 2016
@boundsj
Copy link
Contributor

boundsj commented Dec 14, 2016

Also, thanks so much @andrewstay for the detailed description and attaching the repro app. That was very helpful! Beta 5 is available so please test again with that version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
annotations Annotations on iOS and macOS or markers on Android bug iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

4 participants