eclipse - Getting information from index in ArrayList depending on what Google Maps OverlayItem is being tapped (Android) -


i have user class in have arraylist of bar objects. create bunch of overlayitem objects google map using arraylist, i.e. arraylist holds latitude, longitude, name, , on. want able tap overlayitem , more information specific bar, such address, owner name, website url, etc. overlayitem holds latitude, longitude, title, , text snippet, i.e. not enough info want. how tell ontap() function bar object specific overlayitem i'm tapping on corresponds to?

i haven't used api can offer general advice. 1 option create map allow convert overlayitem reference bar object created from. depending on how ontap supplied may possible access outer variables inside give information without map. option may subclass overlayitem own version includes data need, provided api allows create , pass in own overlayitems.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -