[add] 云下发数据监听类
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.mogo.module.v2x.listener;
|
||||
|
||||
import com.mogo.module.common.entity.V2XWarningEntity;
|
||||
import com.mogo.service.connection.IMogoOnMessageListener;
|
||||
|
||||
/**
|
||||
* @author liujing
|
||||
* @description 车路云—场景预警-云下发数据监听 前车/行人/摩托车/盲区碰撞预警
|
||||
* @since: 2021/3/31
|
||||
*/
|
||||
public class V2XMessageListener_401013 implements IMogoOnMessageListener<V2XWarningEntity> {
|
||||
@Override
|
||||
public Class target() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMsgReceived(V2XWarningEntity obj) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,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(mMarkerEntity.getTargetColor());
|
||||
options.anchorColor("#FF4040");
|
||||
IMogoMarker marker = V2XServiceManager.getMarkerManager().addMarker(markerShowEntity.getMarkerType(), options);
|
||||
iMarkerView.setMarker(marker);
|
||||
marker.setToTop();
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"type":0,
|
||||
"lat":39.977113,
|
||||
"lon":116.417457,
|
||||
"lat":39.977148,
|
||||
"lon":116.417478,
|
||||
"distance": 2.22,
|
||||
"collisionLat": 39.977139,
|
||||
"collisionLon": 116.417607,
|
||||
"collisionLat": 39.977131,
|
||||
"collisionLon": 116.417741,
|
||||
"from": 1,
|
||||
"angle": 120,
|
||||
"direction": 10014,
|
||||
|
||||
Reference in New Issue
Block a user