You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Mapbox Mapview shows a white screen flash before the Mapview is rendered. The flash stays for like 500ms after which the map is displayed. I am adding Mapview dynamically to my FrameLayout((addView()) at run time. Below is the code snippet. Please help !
Is there any property that needs to be specifically set for mapview
Platform: Android
Mapbox SDK version: 9.0.0
Steps to trigger behavior
Create a new Mapbox() Instance
Add it to a layout dynamically
Call Mapbox.getAsync() API
white screen flash before mapview is displayed
private fun initializeMapBoxMap() {
val mapView = MapView(context) // create new mapview
innerLayout.addView(mapView) // add mapView to the FrameLayout
mapView.getMapAsync { mapboxMap ->
// white screen shown at this point for 500 ms
mapboxMap.setStyle(Style.DARK) {
// white screen gone after this point
}
}
}
Expected behavior : white screen should not be shown before rendering maps
Actual behavior : white screen shown before rendering the maps
The text was updated successfully, but these errors were encountered:
we try to mask that the glsurfaceview has loaded but we don't have any content to render as we are still loading the style definition. instead of loading resources, having them offline will also improve the UX.
Mapbox Mapview shows a white screen flash before the Mapview is rendered. The flash stays for like 500ms after which the map is displayed. I am adding Mapview dynamically to my FrameLayout((addView()) at run time. Below is the code snippet. Please help !
Is there any property that needs to be specifically set for mapview
Platform: Android
Mapbox SDK version: 9.0.0
Steps to trigger behavior
Expected behavior : white screen should not be shown before rendering maps
Actual behavior : white screen shown before rendering the maps
The text was updated successfully, but these errors were encountered: