Android; MapView,我如何设置默认位置?

问题描述:

在android中使用MapView时,如何设置默认位置,以便每次加载此应用程序时,它都会自动在伦敦中心/放大位置?Android; MapView,我如何设置默认位置?

首先,拿到控制器指定地图:

MapController myMapController = myMapView.getController(); 

,然后调用:

myMapController.setCenter(new GeoPoint()) 

这将设置在给定的GeoPoint地图的中心。

MapViewMapController文档的更多信息

+0

辉煌,正是我需要的。谢谢 :) – Jimmy 2010-08-30 13:48:34