我使用以下代码以缩放级别显示单个标记,但它不会在地图上居中标记。只会显示一个标记:
LatLng latLng = new LatLng(Latitude, Longitude);
cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, 11.0f);
此代码将其居中,但不提供任何缩放:
LatLngBounds bounds = latLngBuilder.build();
cameraUpdate = CameraUpdateFactory.newLatLngBounds(bounds, 30);
我需要居中和缩放。