转载请注明出处:http://blog.csdn.net/qq_19520407/article/details/42583979
最近在研究百度地图API,通过POI搜索时发现每次只能显示10个覆盖物,强迫症不能忍啊有木有,官方demo并不能满足我的需求,研究了一段时间实现了显示所有覆盖物的功能。
来,看图(= =这回要犯密集恐惧症了)
下面来看看代码是如何实现的
- map.xml 很简单,就一个MapView控件
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<com.baidu.mapapi.