This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Major bug with annotation views #6864
Labels
bug
iOS
Mapbox Maps SDK for iOS
performance
Speed, stability, CPU usage, memory usage, or power usage
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.
The text was updated successfully, but these errors were encountered: