当我调用这个方法时,蓝点并没有出现在地图上,直到我从ddms发送位置, 突然出现。MyLocationOverlay没有出现
private void findMyLocation(final Location location){
final MyLocationOverlay myLocationOverlay = new MyLocationOverlay(this, mapView);
myLocationOverlay.enableMyLocation();
myLocationOverlay.enableCompass();
final GeoPoint point = new GeoPoint((int) (location.getLatitude() * 1E6),
(int) (location.getLongitude() * 1E6));
controller.animateTo(point);
controller.setCenter(point);
mapView.getOverlays().add(myLocationOverlay);
mapView.postInvalidate();
}
如何在调用此方法后显示蓝点? 非常感谢。
正如CommonsWare所说,您如何建议在知道您的位置之前显示您的位置? – Falmarri 2010-12-17 21:03:59