This commit is contained in:
wangcongtao
2020-12-02 17:36:56 +08:00
parent ac43f5f25c
commit d01e9db647
7 changed files with 58 additions and 64 deletions

View File

@@ -201,17 +201,18 @@ class SnapshotSetDataDrawer extends BaseDrawer {
private View inflateView( CloudRoadData data, boolean machineVision, double curSpeed ) {
View rootView = LayoutInflater.from( AbsMogoApplication.getApp() ).inflate( R.layout.module_commons_layout_car, null );
SafeType safeType = getSafeType( data.getDistance(), data.getSpeed(), curSpeed );
TextView tv = rootView.findViewById( R.id.module_commons_marker_car_speed );
// 机器视觉展示速度,用户视觉展示安全类型
tv.setText( machineVision ? String.valueOf( data.getSpeed() ) : safeType.getMsg() );
// SafeType safeType = getSafeType( data.getDistance(), data.getSpeed(), curSpeed );
// TextView tv = rootView.findViewById( R.id.module_commons_marker_car_speed );
// // 机器视觉展示速度,用户视觉展示安全类型
// tv.setText( machineVision ? String.valueOf( data.getSpeed() ) : safeType.getMsg() );
ImageView iv = rootView.findViewById( R.id.module_commons_marker_car_model );
iv.setImageResource( MarkerResourceManager.getMarkerDrawableResId(
machineVision ? VisionMode.Machine : VisionMode.User,
AdasRecognizedType.valueFrom( data.getType() ),
getCarModelType(),
safeType
) );
// iv.setImageResource( MarkerResourceManager.getMarkerDrawableResId(
// machineVision ? VisionMode.Machine : VisionMode.User,
// AdasRecognizedType.valueFrom( data.getType() ),
// getCarModelType(),
// safeType
// ) );
iv.setImageResource( R.drawable.icon_map_marker_car_gray );
return rootView;
}