#1856 - Setting more detailed zoom level for location toggle on centering

This commit is contained in:
Brad Leege
2015-08-12 11:17:44 -05:00
parent f5a95e18d9
commit 1c74bc23c3

View File

@@ -341,7 +341,8 @@ public class MainActivity extends AppCompatActivity {
mapView.setMyLocationEnabled(enableGps);
Location location = mapView.getMyLocation();
if (location != null) {
mapView.setCenterCoordinate(new LatLng(location), true);
mapView.setZoomLevel(8);
mapView.setCenterCoordinate(new LatLng(location));
}
locationFAB.setColorFilter(getResources().getColor(R.color.primary));
}