字段补齐,测试数据添加

This commit is contained in:
liujing
2021-03-31 13:27:15 +08:00
parent 5fd9fec0c6
commit aef0349f24
4 changed files with 96 additions and 32 deletions

View File

@@ -49,6 +49,7 @@ public class V2XWarningMarker implements IV2XMarker {
.longitude(markerShowEntity.getMarkerLocation().getLon());
IMarkerView iMarkerView = MapMarkerAdapter.getMarkerView(mContext, markerShowEntity, options);
options.icon3DRes(com.mogo.module.service.R.raw.people);
options.anchorColor("#DC143C");
IMogoMarker marker = V2XServiceManager.getMarkerManager().addMarker(markerShowEntity.getMarkerType(), options);
iMarkerView.setMarker(marker);
marker.setToTop();

View File

@@ -75,7 +75,7 @@ public class V2XWarningWindow extends V2XBasWindow implements IV2XWindow {
break;
}
distance.setText(String.valueOf(mV2XWarningEntity.getDistance()) + "");
warningTextView.setText(mV2XWarningEntity.getTipContent());
warningTextView.setText(mV2XWarningEntity.getWarningContent());
AIAssist.getInstance(V2XUtils.getApp()).speakTTSVoice(mV2XWarningEntity.getTts());
}
if (runnableV2XEvent == null) {

View File

@@ -1,6 +1,5 @@
{
"type":0,
"targetType": "1",
"lat":39.977121,
"lon":116.417537,
"distance": 2.22,
@@ -9,6 +8,11 @@
"from": 1,
"angle": 120,
"direction": 10014,
"speed":11.108121
"speed":11.108121,
"targetColor": "#D8BFD8",
"stopLineDistance":20,
"stopLineLat": 39.977123,
"stopLineLon": 116.417537,
"warningContent": "小新行人",
"heading": 30
}