更改设置自车模型的时机

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2022-02-16 19:43:27 +08:00
parent 2a8993c34c
commit 0554fe45ed
3 changed files with 5 additions and 5 deletions

View File

@@ -60,12 +60,12 @@ class AutopilotStatusInfo : Serializable {
var rtk = 0
/**
* 自动驾驶状态 0非自动驾驶1自动驾驶
* 底盘的自动驾驶状态 0非自动驾驶1自动驾驶
*/
var pilotmode = 0
/**
* 自动驾驶状态 0非自动驾驶1自动驾驶
* 底盘的自动驾驶状态 0非自动驾驶1自动驾驶
*/
var control_pilotmode = 0

View File

@@ -134,8 +134,9 @@ public class AMapViewWrapper implements IMogoMapView,
if (options.getMyLocationStyle() != null) {
options.getMyLocationStyle().setDisplayAnimEnable(false);
}
// 设置自车的图片对象
//options.setMyLocationStyle(options.getMyLocationStyle().myLocationIcon(DEFAULT_OPTION.getCarCursorRes()));
//修改自车模型,未来需区分车的类型
options.setMyLocationStyle(options.getMyLocationStyle().myLocationIcon(HdMapBuildConfig.currentCarVrIconRes, true));
// MapAutoApi.INSTANCE.getMyLocationStyle().myLocationIcon(HdMapBuildConfig.currentCarVrIconRes, true);
}
}
@@ -716,7 +717,6 @@ public class AMapViewWrapper implements IMogoMapView,
@Override
public void onMapLoaded() {
Logger.i(TAG, "autoop--onMapLoaded: ");
MapAutoApi.INSTANCE.getMyLocationStyle().myLocationIcon(HdMapBuildConfig.currentCarVrIconRes, true); //修改自车模型,未来需区分车的类型
mMapLoaded = true;
CameraPosition cameraPosition = mMapView.getMapAutoViewHelper().getCameraPosition();
Trace.beginSection("timer.onCameraChangeFinish");