Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show a balloon above a marker in a MapActivity? Isn't there a widget?

I dont get the point, why I have to code so much for it. Like, I dont want to care about...

  • the position of the balloon (I just want to assign a geopoint)
  • the layout of a basic balloon (Later on I might want to implement a xml based layout)
  • the number of shown balloons (only display one at a time)
  • the open/close behaviour of the balloon (close, when an other bollon is tabbed)

Update

Solved it! See my answer below...

like image 276
OneWorld Avatar asked Oct 07 '10 10:10

OneWorld


1 Answers

Here is the "the missing widget"...

alt text

  • Balloons without icons: https://github.com/jgilfelt/android-mapviewballoons#readme

  • Balloons with icons (extends Jeff Gilfelt's project): https://github.com/galex/android-mapviewballoons (Offline, see comments to this answer)

like image 119
OneWorld Avatar answered Sep 17 '22 20:09

OneWorld