[6.2.6][V2N] taxi乘客屏新地图样式,v2n事件触发时,不切换视角

This commit is contained in:
renwj
2024-01-04 17:09:42 +08:00
parent ff4d40126a
commit d2e5828ca7

View File

@@ -7,6 +7,7 @@ import androidx.lifecycle.*
import androidx.lifecycle.Lifecycle.Event
import androidx.lifecycle.Lifecycle.Event.ON_DESTROY
import com.alibaba.android.arouter.facade.annotation.Route
import com.mogo.eagle.core.data.config.FunctionBuildConfig
import com.mogo.eagle.core.data.constants.MogoServicePaths
import com.mogo.eagle.core.data.map.*
import com.mogo.eagle.core.function.angle.scenes.CrossRoad
@@ -18,6 +19,7 @@ import com.mogo.eagle.core.function.call.autopilot.*
import com.mogo.eagle.core.function.call.map.*
import com.mogo.eagle.core.function.call.map.CallerMapRoadListenerManager.OnRoadListener
import com.mogo.eagle.core.utilcode.kotlin.*
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils
import com.zhidaoauto.map.data.road.StopLine
import com.zhidaoauto.map.sdk.open.tools.*
import kotlinx.coroutines.*
@@ -269,10 +271,12 @@ class MoGoVisualAngleChangeProvider: IMoGoVisualAngleChangeProvider {
if (record.target is RoadEvent) {
it.setLockMode(false)
roadEventFlag = true
scope.launch {
it.animateTo(0.0 ,0.0,1f, - record.target.poi_angle.toFloat(),11.5f,28f,3000,record.target.isGps)
//taxi乘客屏使用的新地图效果切了视角也看不到
if (!AppIdentityModeUtils.isTaxiPassenger(FunctionBuildConfig.appIdentityMode)) {
scope.launch {
it.animateTo(0.0 ,0.0,1f, - record.target.poi_angle.toFloat(),11.5f,28f,3000,record.target.isGps)
}
}
} else {
it.changeMapVisualAngle(angle, null)
}