[6.4.0][视角切换] 优化道路事件触发时,视角切换导致的卡顿

This commit is contained in:
renwj
2024-04-19 14:02:37 +08:00
parent f5ffad3eda
commit d3da3c51d8

View File

@@ -283,7 +283,7 @@ class MoGoVisualAngleChangeProvider: IMoGoVisualAngleChangeProvider {
val car = if (isGps) CallerChassisLocationWGS84ListenerManager.getChassisLocationWGS84() else CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02()
val rotateAngle = MapAutoApi.getAngle(car.longitude, car.latitude, target.target.poi_lon, target.target.poi_lat)
Log.d(TAG, "angle->:$rotateAngle")
it.animateTo(0.0 ,0.0,1f, -rotateAngle,11.5f,28f,3000,target.target.isGps)
it.animateTo(0.0 ,0.0,1f, -rotateAngle,11.5f,12f,3000,target.target.isGps)
}
} else {
if (target.target is Default && previous != null && (previous.target is RoadEvent)) {