Android Overlay setting Boundary for ontap method?
===

Recently i have drew a custom polygon around my country by creating a overlay class and drew it using path. 
I have many sector of a map, each sector is divided and filled with color with a overlay class. However when i use the ontap function, only the last overlay item ontap fuction get called.

I believe is because i did not set a boundary for the overlay?  The following is my overlay code


    public class SectorOverlay  extends  Overlay{

	CustomPolygon customPolygon =null;
	Context context;
	
	public SectorOverlay(Context context, CustomPolygon customPolygon) {
		this.context=context;
		this.customPolygon =customPolygon;
	}
	@Override
	public void draw(Canvas canvas, MapView mapView, boolean shadow) 
	{
		shadow=false;

		Paint paint = new Paint();
		paint = new Paint(Paint.ANTI_ALIAS_FLAG);
		paint.setStrokeWidth(2);
		paint.setColor(0x10000000);     
		paint.setStyle(Paint.Style.FILL_AND_STROKE);
		paint.setAntiAlias(true);
		Point point1_draw = new Point();        
		
		if(customPolygon!=null)
		{
			
				Path path = new Path();
				path.setFillType(Path.FillType.EVEN_ODD);
				for(int n=0;n<customPolygon.getCorrdinateList().size();n++)
				{

					GeoPoint sector1 = new GeoPoint((int)(customPolygon.getCorrdinateList().get(n).getLatitude()*1e6), (int)((customPolygon.getCorrdinateList().get(n).getLongitude())*1e6));
					if(n==0){
						mapView.getProjection().toPixels(sector1, point1_draw);
						path.moveTo(point1_draw.x,point1_draw.y);
					}else
					{
						mapView.getProjection().toPixels(sector1, point1_draw);
						path.lineTo(point1_draw.x,point1_draw.y);
					}
				}

				path.close();
				canvas.drawPath(path, paint);


			
		}

	}
	@Override
	public boolean onTap(GeoPoint p, MapView mapView) {
		
		
		new CommonOpearation().showToast(context, customPolygon.getName());
		
		
	return	true;
	}


}