我有以下代码,但覆盖似乎在地图上不可见,尽管焦点在所需的地理点上。这是代码:
public void setOverlay()
{
MapView mapView = (MapView)findViewById(R.id.mapview);
mapView.getController().setCenter(place.getGeoPoint());
List<Overlay> mapOverlays = mapView.getOverlays();
Drawable drawable = this.getResources().getDrawable(R.drawable.ic_launcher);
MyItemizedOverlay itemizedOverlay = new MyItemizedOverlay(drawable);
OverlayItem overlayitem = new OverlayItem(place.getGeoPoint(), "Hola, Mundo!", "I'm in Mexico City!");
itemizedOverlay.addOverlay(overlayitem);
mapOverlays.add(itemizedOverlay);
}
这里可能是什么问题?