class OverlayTest extends ItemizedOverlay<OverlayItem>
{
//用MapView构造ItemizedOverlay
public OverlayTest(Drawable ,MapView mapView)
{
super(,mapView);
}
protected boolean onTap(int index)
{
//在此处理item点击事件   
System.out.println("item onTap: "+index);
return true;
}
public boolean onTap(GeoPoint pt, MapView mapView)
{
 //在此处理MapView的点击事件,当返回 true时   
super.onTap(pt,mapView);
return false;
}
}