[android] #4850 - add non-gl content to snapshot bitmap

This commit is contained in:
Tobrun
2016-04-27 12:34:39 +02:00
parent efa654bf4d
commit 2656b5c733
3 changed files with 13 additions and 7 deletions

View File

@@ -37,7 +37,6 @@ public class SnapshotActivity extends AppCompatActivity {
}
mapView = (MapView) findViewById(R.id.mapView);
mapView.setAccessToken(getString(R.string.mapbox_access_token));
mapView.onCreate(savedInstanceState);
mapView.getMapAsync(new OnMapReadyCallback() {
@Override

View File

@@ -30,6 +30,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
app:access_token="@string/mapbox_access_token"
app:style_url="@string/style_emerald" />
</LinearLayout>