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

Major bug with annotation views #6864

Closed
abushnaq-work opened this issue Oct 31, 2016 · 4 comments
Closed

Major bug with annotation views #6864

abushnaq-work opened this issue Oct 31, 2016 · 4 comments
Labels
bug iOS Mapbox Maps SDK for iOS performance Speed, stability, CPU usage, memory usage, or power usage

Comments

@abushnaq-work
Copy link

abushnaq-work commented Oct 31, 2016

Platform: iOS
Mapbox SDK version: 3.3.4 or 3.4.0-beta

I have a test app to try out the annotations/overlays feature of Mapbox with our mapping solution that is currently in progress. I am mapping about 20 or 30(maybe more) annotations and constructing their views in the call to viewForAnnotation. If I start the radar playing(it's playing in a custom layer in Mapbox) and I pan away from some of my annotations, viewForAnnotation is getting called for every frame update for every annotation that is not currently on the screen.

The expected behavior would be for the annotations to update when the user moves the map rather than 30 times per second per annotation view. This problem doesn't occur if I use imageForAnnotation instead.

I dug into your code on github and tracked this down to where it thinks the map is being updated which is why it's re-requesting all annotation views.

I can provide a sample project that demonstrates the issue but I don't see how to add an attachment here.

@boundsj
Copy link
Contributor

boundsj commented Oct 31, 2016

Thanks for the report @abushnaq-work. This looks like a duplicate of #6173 that'll be fixed by #5987.

@boundsj boundsj added iOS Mapbox Maps SDK for iOS performance Speed, stability, CPU usage, memory usage, or power usage bug labels Oct 31, 2016
@abushnaq-work
Copy link
Author

Thanks @boundsj . Is that scheduled for 3.4.0 ?

@friedbunny
Copy link
Contributor

Yup!

@boundsj
Copy link
Contributor

boundsj commented Nov 1, 2016

#5987 was merged to the release branch and will be in the next release (beta 2).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug iOS Mapbox Maps SDK for iOS performance Speed, stability, CPU usage, memory usage, or power usage
Projects
None yet
Development

No branches or pull requests

3 participants