Как установить уровень масштабирования SupportMapFragment
? я попробовал некоторые ответы, которые я нашел в подобных вопросах, как это один ответил купить парень по имени Роб который предложил:SupportMapFragment set google maps Уровень масштабирования
LatLng currentLocation = mService.getCurrentLocation();
CameraPosition cameraPosition = new CameraPosition.Builder()
.target(currentLocation) // Sets the center of the map to the current location of the user
.zoom(17) // Sets the zoom
.bearing(90) // Sets the orientation of the camera to east
.tilt(30) // Sets the tilt of the camera to 30 degrees
.build(); // Creates a CameraPosition from the builder
mGoogleMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));
Но это решение не работает. Итак, как я могу установить уровень масштабирования, зная, что я использую SupportMapFragment
.
Thx Mustanser :) это работает отлично – TeachMePls