【问题标题】:How to add image into InfoWindow of marker in google maps API V2 Android?如何将图像添加到谷歌地图 API V2 Android 中标记的信息窗口中?
【发布时间】:2013-05-15 18:59:32
【问题描述】:

我有这个

 mapa.addMarker(new MarkerOptions()
                       .position(latlng)
                       .title("HI")
                       .snippet("HI;HI")
           .icon(BitmapDescriptorFactory.fromResource(R.drawable.same)));

但没有找到有关如何将图标添加到信息窗口的信息 有人可以帮助我吗?

【问题讨论】:

标签: android google-maps google-maps-markers infowindow


【解决方案1】:

您需要create your own InfoWindowAdapter 并使用getInfoContents()getInfoWindow() 来返回包含您要查找的图像的信息窗口内容。

【讨论】:

  • 这不是很好的文档是吗?没有 InfoWindowAdapter 接口的具体示例,只有图片显示如果您猜对了它应该是什么样子。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-08-22
  • 1970-01-01
  • 2017-11-14
  • 1970-01-01
  • 2013-08-04
  • 2018-06-05
  • 2015-03-05
相关资源
最近更新 更多