summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorŁukasz Paczos <lukas.paczos@gmail.com>2019-03-11 11:22:09 +0100
committerŁukasz Paczos <lukasz.paczos@mapbox.com>2019-03-11 13:28:28 +0100
commit278347548daa7314e2367364d55f1090d5bab9a9 (patch)
treed32633466fd7c8088625f426671bcaabc8519c7a /platform
parentf84019cb89cc8274be7bb1fda3855b738281bdac (diff)
downloadqtlocation-mapboxgl-278347548daa7314e2367364d55f1090d5bab9a9.tar.gz
[android] remove unnecessary JSON style declaration in the gradient line example
Diffstat (limited to 'platform')
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/style/GradientLineActivity.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/style/GradientLineActivity.java b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/style/GradientLineActivity.java
index c5225ce96f..9c7c7560ca 100644
--- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/style/GradientLineActivity.java
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/style/GradientLineActivity.java
@@ -53,7 +53,6 @@ public class GradientLineActivity extends AppCompatActivity implements OnMapRead
try {
String geoJson = ResourceUtils.readRawResource(GradientLineActivity.this, R.raw.test_line_gradient_feature);
mapboxMap.setStyle(new Style.Builder()
- .fromJson(geoJson)
.withSource(new GeoJsonSource(LINE_SOURCE, geoJson, new GeoJsonOptions().withLineMetrics(true)))
.withLayer(new LineLayer("gradient", LINE_SOURCE)
.withProperties(