fix: 自动采集结束后主界面增加刷新功能,修改地图旋转的问题
This commit is contained in:
parent
0459d1e87c
commit
292863dcf7
@ -1062,10 +1062,12 @@ public class AutoTakePictureActivity extends BaseActivity implements View.OnClic
|
||||
case R.id.iv_zoom_add://放大
|
||||
CameraUpdate cameraUpdateIn = CameraUpdateFactory.zoomIn();
|
||||
tencentMap.animateCamera(cameraUpdateIn);
|
||||
setLocMarkerStyle(MyLocationStyle.LOCATION_TYPE_FOLLOW_NO_CENTER);
|
||||
break;
|
||||
case R.id.iv_zoom_del://缩小
|
||||
CameraUpdate cameraUpdateOut = CameraUpdateFactory.zoomOut();
|
||||
tencentMap.animateCamera(cameraUpdateOut);
|
||||
setLocMarkerStyle(MyLocationStyle.LOCATION_TYPE_FOLLOW_NO_CENTER);
|
||||
break;
|
||||
case R.id.iv_location://定位:
|
||||
if (Constant.currentLocation != null) {
|
||||
@ -1351,6 +1353,12 @@ public class AutoTakePictureActivity extends BaseActivity implements View.OnClic
|
||||
public void onComplete() {
|
||||
// // 重新刷新地图
|
||||
// initRoadLine2Map();
|
||||
// 通知主界面刷新
|
||||
Message obtains = Message.obtain();
|
||||
obtains.what = Constant.JOB_WORD_MONITOR;
|
||||
obtains.obj = true;
|
||||
EventBus.getDefault().post(obtains);
|
||||
|
||||
dismissLoadingDialog();
|
||||
// 执行结束后清空已匹配列表
|
||||
roadMatchEntityList.clear();
|
||||
@ -1580,7 +1588,7 @@ public class AutoTakePictureActivity extends BaseActivity implements View.OnClic
|
||||
new LatLng(tencentLocation.getLatitude(), tencentLocation.getLongitude()), //中心点坐标,地图目标经纬度
|
||||
17, //目标缩放级别
|
||||
0, //目标倾斜角
|
||||
tencentLocation.getBearing())); //目标旋转角 0~360° (正北方为0)
|
||||
0)); //目标旋转角 0~360° (正北方为0)
|
||||
tencentMap.animateCamera(cameraSigma);
|
||||
}
|
||||
// 判断当前点位和上一个点位的距离,如果距离过近,忽略该点
|
||||
@ -1650,7 +1658,7 @@ public class AutoTakePictureActivity extends BaseActivity implements View.OnClic
|
||||
new LatLng(tencentLocation.getLatitude(), tencentLocation.getLongitude()), //中心点坐标,地图目标经纬度
|
||||
17, //目标缩放级别
|
||||
0, //目标倾斜角
|
||||
tencentLocation.getBearing())); //目标旋转角 0~360° (正北方为0)
|
||||
0)); //目标旋转角 0~360° (正北方为0)
|
||||
tencentMap.animateCamera(cameraSigma);
|
||||
}
|
||||
// 判断当前点位和上一个点位的距离,如果距离过近,忽略该点
|
||||
|
@ -690,7 +690,7 @@ public class PictureActivity extends BaseActivity implements View.OnClickListene
|
||||
new LatLng(Constant.currentLocation.getLatitude(), Constant.currentLocation.getLongitude()), //中心点坐标,地图目标经纬度
|
||||
tencentMap.getCameraPosition().zoom, //目标缩放级别
|
||||
0, //目标倾斜角
|
||||
tencentLocation.getBearing())); //目标旋转角 0~360° (正北方为0)
|
||||
0)); //目标旋转角 0~360° (正北方为0)
|
||||
tencentMap.animateCamera(cameraSigma);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user