android 百度最新地图sdk包怎么去除 放大缩小按钮

// 隐藏缩放控件

                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();
上一篇:Windows Azure HDInsight 支持预览版 Hadoop 2.2 群集


下一篇:轻松搞定C语言中复杂的声明