在Google地图上显示英国

时间:2012-04-20 06:00:30

标签: android

我创建了一个应用程序,其中显示了Google地图(3.0版平板电脑)。

当我第一次加载时,我需要用缩放显示英国

用户应该可以放大和缩小。

我该怎么做?

1 个答案:

答案 0 :(得分:1)

试试这段代码:

private MapController mapController;
mapController = mapView.getController();
mapController.setCenter(new GeoPoint((int)(54*1E6),(int)(-2*1E6))); // UK coords
mapController.setZoom(4);
mapView.postInvalidate();