android:关于百度地图

1,设置中心点

MapStatusUpdate u = MapStatusUpdateFactory.newLatLng(point);
mBaiduMap.animateMapStatus(u);
point为LatLng类型

2,去掉自带的缩放控件,logo,比例尺的方法

// 去掉缩放控件
int childCount = mMapView.getChildCount();
View zoom = null;
for (int i = 0; i < childCount; i++) {
View child = mMapView.getChildAt(i);
if (child instanceof ZoomControls) {
zoom = child;
break;
}
}
zoom.setVisibility(View.GONE);


// 去掉百度地图logo
mMapView.removeViewAt(1);
// 去掉地图上比例尺
mMapView.removeViewAt(2);

发布了13 篇原创文章 · 获赞 4 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/u011429167/article/details/49619021