how to set default zoom level in android google map?
i want to set default zoom level in google map to 11 miles can any one guide me how to achieve this?
any help would be appriciate开发者_如何转开发d.
Something like this:
MaView mapView = (MapView)findViewById(R.id.my_map);
MapController mapController = mapView.getController();
mapController.setZoom(14); // this isn't 11 miles.
Or maybe you have a MapActivity
? In that case, the idea is the same, but you'll get the MapView
differently.
newLatLngZoom()
is the method to set zooming level. 14f
is the zoom level.
mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(marker, 14F))
精彩评论