fix bug of model and add func obu track
This commit is contained in:
@@ -2,6 +2,23 @@ package com.mogo.eagle.core.data.traffic
|
||||
|
||||
import com.mogo.eagle.core.data.enums.TrafficTypeEnum
|
||||
|
||||
fun TrafficData.threatLevelColor():String{
|
||||
return when (threatLevel) {
|
||||
1 -> {
|
||||
"#D8D8D8FF"
|
||||
}
|
||||
2 -> {
|
||||
"#FFD53EFF"
|
||||
}
|
||||
3 -> {
|
||||
"#FF3C45FF"
|
||||
}
|
||||
else -> {
|
||||
"#D8D8D8FF"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @author xiaoyuzhou
|
||||
* @date 2021/8/17 8:41 下午
|
||||
|
||||
Reference in New Issue
Block a user