Kevin Duffey wrote:
Using Mark Murphy's online books, he describes how to do this. I don't
know if it is the only way, but basically you extend
ItemizedOverlay<OverlayItem>, in the constructor you do the
items.add(OverlyaItem) method call. This will add overlayitem's to the
map. These items are clickable and you can implement the click handler
in the OverlayItem extending class that you provide/add.
That'll work for tapping on an OverlayItem. It will not work for tapping
on arbitrary spots on the map, though. I haven't tried doing that.
yeah, as i might have said ;-) i tried overlayitem.onTap() etc and
got nowhere. supposedly as you say it will trap a click on the item
in the overlay, but it didn't work for me.
however, i made a mistake in my code, and found that subclassing
MapView and overriding onTouchEvent() actually works. it's quite a
heavy-handed way of doing it, as i don't have much facility for
selectively filtering events.
eh, ok i could mock up my own retroactive ACTION_DOWN in the
situation where the drag goes outside my slop allowance, but that
seems very messy...
thanks all
--
jason.vp.engineering.particle
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en