ItemizedOverlay.onTap() imprecise?

by gnugu » Tue, 16 Feb 2010 07:50:55 GMT

Sponsored Links
I'm using Google maps. I put the markers on map and my inherited
ItemizedOverlay overrides 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?



ItemizedOverlay.onTap() imprecise?

by gnugu » Wed, 17 Feb 2010 02:45:26 GMT

 And here is my answer:
        protected boolean hitTest(SearchResultOverlayItem item,
            int hitX,
            int hitY) {

                if (hitX > -22 && hitX < 22
                                && hitY < 4 && hitY > -36) {
                        return true;
                return false;


Sponsored Links

Other Threads

1. Simulate the SIM in the emulator how to do that?

For calling and sending sms, you can use the eclipse to simulate these
on the emulator. What else do you need?

Open the "Emulator Options" from the Android views.

Thanks and Regards,
Kumar Bibek.


2. How to run a class in background among a package of class

Hi all,
in my app in one package there are some classes.
from those classes i want to run one class that is the
Gps functionality class.
i want to run that class in background.
how i do it, i don't know.
i am not able to make it solve from any document.
if anybody knows the way to solve it
please me by  run a "hello world" app in the background.
 i am not able to solve this problem by going through document.

Thanks in advance,

Best Regards
Subrat Kumar Panda.


3. Android square root function

4. Invoke GlobalActions dialog (Shutdown/Reboot...) on Android-x86

5. Simulate the SIM in the emulator how to do that?

6. How many Android phones have touchscreens?

7. Paket Baru WTI: Internet Unlimited XL naik menjadi Rp 250 ribu/bulan