-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Features disappear after adding icons to style. #1307
Comments
Looks like this issue mapbox/mapbox-gl-native-ios#627 still exist in Mapbox 10. |
@imurashov-belkacar thank you for reporting. If you can add a video, as well as any additional information/ code snippets pertaining to how you're adding your icons, that would be most appreciated. |
Hi, @ZiZasaurus
Here I load images with Nuke library, but it's doesn't matter, with other image loading libraries the same. |
@ZiZasaurus This is how it's looking on device. Images, are blinked and missed. bug.mp4 |
@imurashov-belkacar Thank you for the snippet and the video. When are you making your request for the images? Are you requesting them when the map loads, goes idle or at another time? |
@ZiZasaurus Hi. Thank you for your responses. |
Environment
Observed behavior and steps to reproduce
I have a layer with a approximately 1500 features on it. Application get icons for these features from network (~40-50 icons) and then I add them to the style one by one. After first start of app, part of icons disappear, then they can appear and disappear again. It's going on not in 100% of cases, but often enough.
Expected behavior
Icons not disappear from viewport.
Notes / preliminary analysis
When it started, Mapbox emits StyleImageRemoveUnused event and in log I see repeated message like this with different icon id.
[Mapbox] [Warning, maps-core]: {}[Style]: Unused image 'some unique icon key' will be removed. Subscribe to StyleImageRemoveUnused event to control removal of unused images.
But icons are used. They are on screen.
Additional links and references
I can attach video if it would be helpful.
The text was updated successfully, but these errors were encountered: