close the trace log when init and add new interface of map which getRoadAngle

This commit is contained in:
zhongchao
2022-05-17 14:34:14 +08:00
parent 2ce6e1649f
commit 67a7b9d1b7
5 changed files with 26 additions and 1 deletions

View File

@@ -65,7 +65,6 @@ class TraceManager {
FileWriteManager.getInstance()
.init(context, MoGoAiCloudClientConfig.getInstance().sn, pkgName, fwBuildMap)
setTraceLogEnable(true)
FileWriteManager.getInstance().registerListener { type ->
val param = traceInfoCache[type]
param?.let {

View File

@@ -301,4 +301,10 @@ public interface IMogoMapUIController {
* @return
*/
float getAngle(double startLon, double startLat, double endLon, double endLat);
/**
* 获取当前道路方向
* @return angle
*/
Double getRoadAngle(Double lon,Double lat,float angle);
}

View File

@@ -1011,6 +1011,10 @@ public class AMapViewWrapper implements IMogoMapView,
return MapAutoApi.INSTANCE.getAngle(startLon, startLat, endLon, endLat);
}
@Override
public Double getRoadAngle(Double lon,Double lat,float angle) {
return MapDataApi.INSTANCE.getRoadRectInfo(lon, lat, angle).getAngle();
}
/**
* 加载3D模型

View File

@@ -386,4 +386,12 @@ public class MogoMapUIController implements IMogoMapUIController {
}
return 0.0f;
}
@Override
public Double getRoadAngle(Double lon, Double lat, float angle) {
if (mDelegate != null) {
return mDelegate.getRoadAngle(lon, lat, angle);
}
return 0.0;
}
}

View File

@@ -324,4 +324,12 @@ public class AMapUIController implements IMogoMapUIController {
}
return 0;
}
@Override
public Double getRoadAngle(Double lon, Double lat, float angle) {
if (mClient != null) {
return mClient.getRoadAngle(lon, lat, angle);
}
return 0.0;
}
}