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

一世执手 提交于 2019-11-26 14:05:08

问题


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...


回答1:


Here is the "the missing widget"...

  • 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)



来源:https://stackoverflow.com/questions/3880623/how-to-show-a-balloon-above-a-marker-in-a-mapactivity-isnt-there-a-widget

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!