如何在Google Maps API V2 Android中将图像添加到标记的InfoWindow中? [英] How to add image into InfoWindow of marker in google maps API V2 Android?

查看:82
本文介绍了如何在Google Maps API V2 Android中将图像添加到标记的InfoWindow中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个

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

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

but no find information of how add into infowindow a icon someone can help me?

推荐答案

您将需要

You will need to create your own InfoWindowAdapter and use getInfoContents() or getInfoWindow() to return the info window contents containing the image you seek.

这篇关于如何在Google Maps API V2 Android中将图像添加到标记的InfoWindow中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆