给220
0.0.58.5
2.1.16.5
1、修复应用杀进程后快速重启异常crash
2、针对模型加载失败增加了重试机制

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2022-01-14 13:11:04 +08:00
parent 3e808c1940
commit 05141a40bd
10 changed files with 135 additions and 149 deletions

View File

@@ -120,12 +120,13 @@ public class AMapWrapper implements IMogoMap {
}
@Override
public void addPreVehicleModel(int type, int modelRes) {
public String addPreVehicleModel(int type, int modelRes) {
try {
MarkerHelper.INSTANCE.addPreVehicleModel(type, modelRes);
return MarkerHelper.INSTANCE.addPreVehicleModel(type, modelRes);
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
@Override

View File

@@ -78,7 +78,7 @@ public class CustomMapApiBuilder implements IMogoMapApiBuilder {
mapParams.setDebugMode(false)
//.setDataFileSource(1) //todo 1-使用本地地图数据0-使用在线地图数据
.setCoordinateType(MapParams.COORDINATETYPE_GCJ02)
.setPerspectiveMode(MapParams.MAP_PERSPECTIVE_2D)
.setPerspectiveMode(MapParams.MAP_PERSPECTIVE_3D)
// .setZoom( 20 )
// .setPointToCenter( 0.734375f, 0.5f )
.setPointToCenter(0.5f, 0.5f) //todo 2D模式下需要注意ADAS部分遮挡