BitmapDescriptor 除了fromView()这个方法之后,百度api 还提供有fromResource(R.drawable.icon_marka)和fromBitmap(Bitmap),我们可以进行把view封装为Bitmap进行放入其中,下面提供view转换为Bitmap的方法
如图所示:用的BitmapDescriptor 除了fromView(),实现自定义多气泡覆盖物


每个覆盖物的点击事件

注意的是:再次刷新记得清楚上次的监听

BitmapDescriptor 除了fromView()这个方法之后,百度api 还提供有fromResource(R.drawable.icon_marka)和fromBitmap(Bitmap),我们可以进行把view封装为Bitmap进行放入其中,下面提供view转换为Bitmap的方法
如图所示:用的BitmapDescriptor 除了fromView(),实现自定义多气泡覆盖物
每个覆盖物的点击事件
本文标题:Android-百度地图自定义多气泡覆盖物
本文链接:https://www.haomeiwen.com/subject/zfpfpctx.html
网友评论