私は自分の活動の 1 つに関する地図を持っています。マップはうまく機能しています。ただし、ズームといくつかのアニメーションを次のコードで変更したいと思います。ただし、これはどれも応答していません。私は何が欠けていますか?ありがとう!
googleMap.addMarker(new MarkerOptions().position(latLng).title(my_location.getLocationName()));
googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15));
// Zoom in, animating the camera.
googleMap.animateCamera(CameraUpdateFactory.zoomIn());
// Zoom out to zoom level 10, animating with a duration of 2 seconds.
googleMap.animateCamera(CameraUpdateFactory.zoomTo(10), 2000, null);
CameraPosition cameraPosition = new CameraPosition.Builder()
.target(latLng) // Sets the center of the map to my coordinates
.zoom(17) // Sets the zoom
.bearing(180) // Sets the orientation of the camera to south
.tilt(30) // Sets the tilt of the camera to 30 degrees
.build(); // Creates a CameraPosition from the builder
googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));