Android删除百度地图logo

Posted by PanMin on May 18, 2015

百度logo的index是1 zoom的index是2 比例尺的index是3

/**
* 删除百度地图logo
* */
vcBmapView.removeViewAt(2); 

/**
* 删除百度地图logo和缩放控件
* */
int count = vcBmapView.getChildCount();
for (int i = 0; i < count; i++) {
    View child = vcBmapView.getChildAt(i);
    if (child instanceof ImageView || child instanceof ZoomControls) {
        // 百度地图logo是ImageView的实例,缩放控件是ZoomControls的实例
        child.setVisibility(View.GONE);
    }
}