百度地图定位到指定点,并显示指定图标
1.屏幕移动到指定点
MapStatus.Builder builder = new MapStatus.Builder();
builder.target(latLng).zoom(18.0f);
mBaiduMap.animateMapStatus(MapStatusUpdateFactory.newMapStatus(builder.build()));
latLng为指定点
2.绘制指定图标
BitmapDescriptor searchBdA = BitmapDescriptorFactory.fromResource(R.drawable.ico_search);
MarkerOptions option = new MarkerOptions().icon(searchBdA).position(latLng);
mBaiduMap.addOverlay(option);
searchBdA为指定icon