如何设置Android的谷歌地图默认缩放级别?

如何设置Android的谷歌地图默认缩放级别?

问题描述:

我想在谷歌地图设置默认缩放级别11英里
任何一个可以指导我如何实现这一目标?

i want to set default zoom level in google map to 11 miles can any one guide me how to achieve this?

任何帮助将appriciated。

any help would be appriciated.

事情是这样的:

MaView mapView = (MapView)findViewById(R.id.my_map);
MapController mapController = mapView.getController();
mapController.setZoom(14);    // this isn't 11 miles.

或者,也许你有一个 MapActivity ?在这种情况下,这个想法是一样的,但你会得到的图形页面是不同的。

Or maybe you have a MapActivity? In that case, the idea is the same, but you'll get the MapView differently.