Osmdroid bonuspack show infowindow

I tried to link oscdroid bonuspack infowindow to polygon in mapview. The goal is that when I touch a polygon, I need to show some information about that polygon. I've looked at a few examples, but they've all been used with ExtendedItemizedOverlay. is it possible to link infowindow to my custom overlay class which includes a polygon list.

thanks in advance.

+3


source to share


1 answer


Inside Tutorial_1, you can see how to add InfoWindows:

https://code.google.com/p/osmbonuspack/wiki/Tutorial_1

Also, I made a small tutorial to make them quickly available.



http://mobiledevstories.wordpress.com/2014/03/01/osmdroid-bonus-pack-markers-with-clickable-infowindows/

What I will do according to your needs is change the layout inside bonuspack_bubble.xml and include TextViews with additional information you need. If you need a reference to a polygon or other object in the map, simply modify the MyInfoWindow constructor to get the objects you want.

hope this helps!

+3


source







All Articles