And here is my answer:
@Override
protected boolean hitTest(SearchResultOverlayItem item,
android.graphics.drawable.Drawable marker,
int hitX,
int hitY) {
if (hitX > -22 && hitX < 22
&& hitY < 4 && hitY > -36) {
return true;
}
return false;
}
On Feb 15, 3:50 pm, gnugu <[email protected]> wrote:
> Hello,
> I'm using Google maps. I put the markers on map and my
> inheritedItemizedOverlayoverrides onTap() method.
>
> Markers are 32x32 images.
>
> However, I can tap quite a bit away from the marker and still receive
> the event.
> This becomes a problem when markers are close to each other.
>
> Anybody knows why this is?
>
> Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en