summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobrun <tobrun.van.nuland@gmail.com>2018-12-04 17:32:14 +0200
committerTobrun <tobrun@mapbox.com>2018-12-10 16:59:50 +0100
commit476aba6717860d16ffc09d45c29ed3e20db50817 (patch)
tree2f49346d1347e978089af62d073a7727151fde8b
parent63bf14ebe11c7aa7ae292431fac39c4278e1d011 (diff)
downloadqtlocation-mapboxgl-476aba6717860d16ffc09d45c29ed3e20db50817.tar.gz
[android] - update CircleLayer to be compatible
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/style/CircleLayerActivity.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/style/CircleLayerActivity.java b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/style/CircleLayerActivity.java
index 83a0f9cb08..c79321a1d1 100644
--- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/style/CircleLayerActivity.java
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/style/CircleLayerActivity.java
@@ -74,19 +74,15 @@ public class CircleLayerActivity extends AppCompatActivity implements View.OnCli
mapView.onCreate(savedInstanceState);
mapView.getMapAsync(map -> {
mapboxMap = map;
-
- mapboxMap.setStyle(Style.SATELLITE_STREETS, style -> {
+ mapboxMap.setStyle(Style.SATELLITE_STREETS);
+ mapView.addOnDidFinishLoadingStyleListener(() -> {
+ Style style = mapboxMap.getStyle();
addBusStopSource(style);
addBusStopCircleLayer(style);
initFloatingActionButtons();
isLoadingStyle = false;
});
});
-
- mapView.addOnDidFinishLoadingStyleListener(() -> {
- addBusStop();
- isLoadingStyle = false;
- });
}
private void addBusStopSource(Style style) {