Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Variable rename in style fade switch example #869

Merged
merged 1 commit into from
Oct 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ public void onMapReady(MapboxMap mapboxMap) {
mapboxMap.addLayer(satelliteRasterLayer);

// Create a new camera position
CameraPosition cameraPositionForFragmentMap = new CameraPosition.Builder()
CameraPosition newCameraPosition = new CameraPosition.Builder()
.zoom(19)
.build();

// Animate the map camera to show the fade in/out UI of the satellite layer
mapboxMap.animateCamera(
CameraUpdateFactory.newCameraPosition(cameraPositionForFragmentMap), 9000);
CameraUpdateFactory.newCameraPosition(newCameraPosition), 9000);
}

// Add the mapView lifecycle to the activity's lifecycle methods
Expand Down