當我打開應用程序時,它顯示整個世界,我必須不斷放大才能正確查看該位置。如何使相機縮放約11倍,就好像我要保持雙擊一樣?如何放大Google地圖位置?
public class MapsActivity extends FragmentActivity implements OnMapReadyCallback {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_maps);
SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
.findFragmentById(R.id.map);
mapFragment.getMapAsync(this);
}
@Override
public void onMapReady(GoogleMap map) {
map.addMarker(new MarkerOptions()
.position(new LatLng(10.625176, -61.354915))
.title("Tru-Valu, Trincity Mall"));
}