-
-
Notifications
You must be signed in to change notification settings - Fork 864
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
Black flicker when opening map on Android #617
Comments
Hey, thanks for the report. |
Yes I have seen on all physical devices that I have tested it . |
hmm, there isn't much we can do on our end here though. Rendering is handled upstream in mapbox-gl-native. Might want to investigate there. Workaround could be to display an overlay that disappears once the map has fully loaded. |
OK I'll give a try your workaround and let you know . Thanks for the quick response. |
It's a known issue: mapbox/mapbox-gl-native#10990 We could expose |
Ok, but that would simply give one the option to change the flicker color from black to something else, if I understood it correctly, right? Definitively a good ticket though :) Closing this and opening a ticket instead. |
The above suggestion works fine.
However i wonder if something else is going on on my and @Dkokkonas side as this feels like an issue that would be reported a lot more since it's such a big hit to the user experience of an otherwise smooth map solution. The lack of reporting on this makes me wonder.. |
It's the initial map view without the tiles being loaded in. I guess, that's just the way it is 🤷♂. |
Just popping up to say I'd apprceciate this! (but don't know my way around linking to native code) @mattijsf |
This works great on my side - remember to check your absolute ordering 😁
|
@dancherb Would you be able to clarify the "absolute ordering" you did to resolve the issue? I'm having a similar problem with my application |
@psusmars I just had to ensure that the coloured overlay was in fact rendering above the map before it disappeared, instead of under it (which would have no effect). Maybe make it bright pink while you're figuring the absolute ordering out to get it on top (i.e. zIndex and order of absolutely positioned components). |
Is there a ticket we can follow somewhere after all : ) ? Thanks a bunch, current workaround with overlay works as well but a bit messy |
Describe the bug
On android when loading the map there is a black flicker when rendering a MapView. You can see this visually on the gif below
To Reproduce
Reproduction code:
Expected behavior
No black flickering as it degrades the user experience (edited)
Screenshots

Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: