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

black square before map render #5795

Closed
incanus opened this issue Jul 26, 2016 · 4 comments
Closed

black square before map render #5795

incanus opened this issue Jul 26, 2016 · 4 comments
Labels
bug iOS Mapbox Maps SDK for iOS

Comments

@incanus
Copy link
Contributor

incanus commented Jul 26, 2016

Haven't been able to confirm on Android yet, but I see this almost every time on iOS.

Just before the map appears, a black square smaller than the map view shows up.

anigif-1469496685

@incanus incanus added bug iOS Mapbox Maps SDK for iOS labels Jul 26, 2016
@tobrun
Copy link
Member

tobrun commented Jul 26, 2016

Verified that I'm not seeing this on Android.
Start up frame-by-frame:

ezgif com-video-to-gif 52

idk but could be related to drawing before setting up the view correctly (related to glViewport or mbgl::Update::Dimensions?).

@friedbunny
Copy link
Contributor

My guess is that this has to do with the storyboard initialization.

@friedbunny
Copy link
Contributor

Setting MGLMapView.opaque = NO fixes the initial black flash — indeed, this issue (#3101) was the impetus for implementing opaque.

One idea I bounced off of @1ec5 was to set opaque = NO until mapDidFinishLoading fires, but that would have likely performance implications and complicate the situation where developers wanted to keep opaque = NO enabled themselves.

@friedbunny
Copy link
Contributor

Fixed in #7859 for most use cases.

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
Projects
None yet
Development

No branches or pull requests

3 participants