// 隐藏缩放控件 int childCount = mMapView.getChildCount(); View zoom = null; for (int i = ; i < childCount; i++) { View child = mMapView.getChildAt(i); if (child instanceof ZoomControls) { zoom = child; break; } } zoom.setVisibility(View.GONE); // 隐藏比例尺控件 int count = mMapView.getChildCount(); View scale = null; for (int i = ; i < count; i++) { View child = mMapView.getChildAt(i); if (child instanceof ZoomControls) { scale = child; break; } } scale.setVisibility(View.GONE); // 隐藏指南针 mUiSettings = mBaiduMap.getUiSettings(); mUiSettings.setCompassEnabled(true); // 删除百度地图logo mMapView.removeViewAt();