[android] - use builder json/url for constructing style object

This commit is contained in:
Tobrun
2018-12-05 18:21:40 +02:00
committed by Tobrun
parent f8f8e0b749
commit 981689477b
3 changed files with 18 additions and 13 deletions

View File

@@ -504,7 +504,8 @@ public class ExpressionTest extends BaseActivityTest {
validateTestSetup();
invoke(mapboxMap, (uiController, mapboxMap) -> {
LatLng latLng = new LatLng(51, 17);
mapboxMap.getStyle().addSource(new GeoJsonSource("source", Point.fromLngLat(latLng.getLongitude(), latLng.getLatitude())));
mapboxMap.getStyle()
.addSource(new GeoJsonSource("source", Point.fromLngLat(latLng.getLongitude(), latLng.getLatitude())));
SymbolLayer layer = new SymbolLayer("layer", "source");
mapboxMap.getStyle().addLayer(layer);