[android] - programmatically create GlSurfaceView

This commit is contained in:
tobrun
2018-02-06 13:41:16 +01:00
committed by Tobrun
parent 7bccc9d695
commit aeba621573
2 changed files with 2 additions and 9 deletions

View File

@@ -292,7 +292,7 @@ public class MapView extends FrameLayout {
addView(textureView, 0);
} else {
GLSurfaceView glSurfaceView = (GLSurfaceView) findViewById(R.id.surfaceView);
GLSurfaceView glSurfaceView = new GLSurfaceView(getContext());
glSurfaceView.setZOrderMediaOverlay(mapboxMapOptions.getRenderSurfaceOnTop());
mapRenderer = new GLSurfaceViewMapRenderer(getContext(), glSurfaceView, options.getLocalIdeographFontFamily()) {
@Override
@@ -302,7 +302,7 @@ public class MapView extends FrameLayout {
}
};
glSurfaceView.setVisibility(View.VISIBLE);
addView(glSurfaceView, 0);
}
nativeMapView = new NativeMapView(this, mapRenderer);

View File

@@ -1,13 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<android.opengl.GLSurfaceView
android:id="@+id/surfaceView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@null"
android:visibility="gone"/>
<FrameLayout
android:id="@+id/markerViewContainer"
android:layout_width="match_parent"