Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个应用程序,其中显示了 Google 地图(3.0 版平板电脑)。
当我第一次加载它时,我需要用缩放显示UK 。
用户应该能够放大和缩小。
我怎样才能做到这一点?
试试这个代码:
private MapController mapController; mapController = mapView.getController(); mapController.setCenter(new GeoPoint((int)(54*1E6),(int)(-2*1E6))); // UK coords mapController.setZoom(4); mapView.postInvalidate();