[android] remove unnecessary JSON style declaration in the gradient line example

This commit is contained in:
Łukasz Paczos
2019-03-11 11:22:09 +01:00
committed by Łukasz Paczos
parent f84019cb89
commit 278347548d

View File

@@ -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(