OSMDroid and OpenStreetMapViewItemizedOverlay
I'm using in my application OSMDroid. Everything works nice, but not everything is clear.开发者_开发技巧
OpenStreetMapViewItemizedOverlay or (OpenStreetMapViewItemizedOverlayWithFocus) will be used.
If the user clicks on an item from this overlay, a small pop-up occurs with item's title and description.
Does anybody know, how to implement click-listener if the user clicks on that pop-up?
I haven't found any methods for that and I'll be very thankfull for any suggestion or link.
As far as I know OSMDroid uses same API as google. Google's ItemizedOverlay
has two methods onTap(GeoPoint p, MapView mapView)
and onTap(int index)
which both
"handle a "tap" on an item"
and must be overwritten.
Have a look here: http://code.google.com/intl/de-DE/android/add-ons/google-apis/reference/index.html
精彩评论