From 8df881a781370b6ec18aca63a59f4ab95c8c7b8d Mon Sep 17 00:00:00 2001 From: Brad Leege Date: Fri, 22 Jul 2016 13:46:56 -0500 Subject: [android] #5767 - Switching to Mapbox Outdoors --- .../mapboxsdk/testapp/activity/imagegenerator/SnapshotActivity.java | 3 ++- .../src/main/res/layout/activity_snapshot.xml | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src') diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/imagegenerator/SnapshotActivity.java b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/imagegenerator/SnapshotActivity.java index 93ebdcd157..84e394c72d 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/imagegenerator/SnapshotActivity.java +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/imagegenerator/SnapshotActivity.java @@ -12,7 +12,7 @@ import android.view.MenuItem; import android.view.View; import android.widget.ImageView; import android.widget.Toast; - +import com.mapbox.mapboxsdk.constants.Style; import com.mapbox.mapboxsdk.maps.MapView; import com.mapbox.mapboxsdk.maps.MapboxMap; import com.mapbox.mapboxsdk.maps.OnMapReadyCallback; @@ -41,6 +41,7 @@ public class SnapshotActivity extends AppCompatActivity { mapView.getMapAsync(new OnMapReadyCallback() { @Override public void onMapReady(@NonNull final MapboxMap mapboxMap) { + mapboxMap.setStyleUrl(Style.OUTDOORS); FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); fab.setColorFilter(ContextCompat.getColor(SnapshotActivity.this, R.color.primary)); fab.setOnClickListener(new View.OnClickListener() { diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_snapshot.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_snapshot.xml index b9701b53e0..ac69780592 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_snapshot.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_snapshot.xml @@ -29,8 +29,7 @@ android:id="@id/mapView" android:layout_width="match_parent" android:layout_height="0dp" - android:layout_weight="1" - app:style_url="@string/style_emerald" /> + android:layout_weight="1"/> -- cgit v1.2.1