[3.4.0][视角] 优化代码逻辑
This commit is contained in:
@@ -206,16 +206,19 @@ class MoGoVisualAngleChangeProvider: IMoGoVisualAngleChangeProvider {
|
||||
}
|
||||
if (record.target is Default && roadEventFlag) {
|
||||
roadEventFlag = false
|
||||
it.setLockMode(true)
|
||||
//it.setLockMode(true)
|
||||
}
|
||||
if (record.target is RoadEvent) {
|
||||
it.setLockMode(false)
|
||||
roadEventFlag = true
|
||||
it.animateTo(record.target.poi_lon, record.target.poi_lon, 0f, 1000, true)
|
||||
scope.launch {
|
||||
delay(500)
|
||||
it.changeMapVisualAngle(angle, null)
|
||||
}
|
||||
Log.d("TTTTTT", "scene:${record.target}")
|
||||
// scope.launch {
|
||||
// delay(500)
|
||||
// it.changeMapVisualAngle(angle, null)
|
||||
// }
|
||||
it.animateTo(record.target.poi_lon, record.target.poi_lat, record.target.poi_angle.toFloat(), 1000, true)
|
||||
// it.animateTo(record.target.poi_lon, record.target.poi_lat, 0f, 1000, true)
|
||||
|
||||
} else {
|
||||
it.changeMapVisualAngle(angle, null)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user