mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.35k stars 1.33k forks source link

Map is drawn over drawer #16469

Closed kalucky0 closed 4 years ago

kalucky0 commented 4 years ago

Platform: Android Mapbox SDK version: 9.2.0

It happens from time to time on different phones. I'm using mikepenz's MaterialDrawer but it is also happening with default material drawer in my other app. Never occurred on my phone, but my users are complaining about it quite often.

Expected behavior

obraz

Actual behavior

obraz

The code

findViewById(R.id.progressBar).setVisibility(View.VISIBLE);
findViewById(R.id.mapView).setVisibility(View.INVISIBLE);
setTitle("Mapa");
mapView.onCreate(savedInstanceState);
mapView.getMapAsync(mapboxMap -> mapboxMap.setStyle(new Style.Builder().fromUri("mapbox://styles/kalucki23/cka9w99ev1qoz1iog344td4sa"), style -> {
     Log.e("Test", "Test");
     findViewById(R.id.mapView).setVisibility(View.VISIBLE);
}));
tobrun commented 4 years ago

This stems from rendering with a GLSurfaceView, You can opt to use TextureView instead: -xml: textureMode=true -mapboxMapOptions#textureMode(true)