本文整理匯總了Java中com.baidu.mapapi.map.MapView.removeViewAt方法的典型用法代碼示例。如果您正苦於以下問題:Java MapView.removeViewAt方法的具體用法?Java MapView.removeViewAt怎麽用?Java MapView.removeViewAt使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.baidu.mapapi.map.MapView
的用法示例。
在下文中一共展示了MapView.removeViewAt方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: IniView
import com.baidu.mapapi.map.MapView; //導入方法依賴的package包/類
@Override
protected void IniView() {
bt_Ok = (Button) findViewById(R.id.bt_Ok);
tv_location = (TextView) findViewById(R.id.tv_location);
mDrawerLayout = (DrawerLayout) findViewById(R.id.dl_left);
mTopbanner = (TopBanner) findViewById(R.id.topbanner);
mAboutAuthor = (TextView) findViewById(R.id.tv_about_me);
mCurrentLocation = (ImageView)findViewById(R.id.iv_location);
mStopMock = (ImageView)findViewById(R.id.iv_stop_location);
mPreciseLocation = (TextView)findViewById(R.id.tv_precise);
mAddProcess = (TextView) findViewById(R.id.tv_add_app);
//加載旋轉動畫
mOperatingAnim = AnimationUtils.loadAnimation(this, R.anim.spinloaing);
LinearInterpolator lin = new LinearInterpolator();
mOperatingAnim.setInterpolator(lin);
// 地圖初始化
mMapView = (MapView) findViewById(R.id.bmapView);
mBaiduMap = mMapView.getMap();
// 開啟定位圖層
mBaiduMap.setMyLocationEnabled(true);
//隱藏地圖比例尺
mMapView.showScaleControl(false);
//關閉縮放放大控件
mMapView.showZoomControls(false);
mMapView.removeViewAt(1);
// 定位初始化
mLocClient = new LocationClient(this);
}
示例2: initMap
import com.baidu.mapapi.map.MapView; //導入方法依賴的package包/類
/**
* init mapview
*/
public void initMap() {
mMapView = (MapView) findViewById(R.id.bmapView);
mBaiduMap = mMapView.getMap();
// remove map logo
mMapView.removeViewAt(1);
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);
mBaiduMap = mMapView.getMap();
UiSettings mUiSettings = mBaiduMap.getUiSettings();
mUiSettings.setCompassEnabled(false);
mBaiduMap.setMyLocationEnabled(true);
mLocClient = new LocationClient(this);
mLocClient.registerLocationListener(myListener);
LocationClientOption option = new LocationClientOption();
option.setLocationMode(LocationClientOption.LocationMode.Hight_Accuracy);
option.setOpenGps(true);
option.setCoorType("bd09ll");
option.setScanSpan(1000);
option.setIsNeedAddress(true);
mLocClient.setLocOption(option);
mLocClient.start();
}