opt
This commit is contained in:
@@ -15,6 +15,7 @@ import com.mogo.module.common.MogoApisHandler;
|
||||
import com.mogo.module.common.R;
|
||||
import com.mogo.module.common.api.CallChatApi;
|
||||
import com.mogo.module.common.constants.DataTypes;
|
||||
import com.mogo.module.common.entity.V2XWarningEntity;
|
||||
import com.mogo.module.common.utils.SimpleHandlerThreadPool;
|
||||
import com.mogo.realtime.entity.CloudRoadData;
|
||||
import com.mogo.realtime.entity.MogoSnapshotSetData;
|
||||
@@ -136,6 +137,70 @@ public class SnapshotSetDataDrawer extends BaseDrawer implements IMogoMarkerClic
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* 绘制 marker
|
||||
*
|
||||
* @param data 道路数据
|
||||
* @return {@link IMogoMarker}
|
||||
*/
|
||||
// public IMogoMarker drawWarnDataMarker( V2XWarningEntity data ) {
|
||||
// if ( data == null ) {
|
||||
// return null;
|
||||
// }
|
||||
//
|
||||
// MogoMarkerOptions options = new MogoMarkerOptions()
|
||||
// .owner( DataTypes.TYPE_MARKER_CLOUD_DATA )
|
||||
// .anchor( 0.5f, 0.5f )
|
||||
// .rotate( ( float ) data.getHeading() )
|
||||
// .object( data )
|
||||
// .gps( true )
|
||||
// .controlAngle( true )
|
||||
// .position( new MogoLatLng( data.getWgslat(), data.getWgslon() ) );
|
||||
// String resIdVal = null;
|
||||
// if ( MogoApisHandler.getInstance().getApis().getStatusManagerApi().isVrMode() ) {
|
||||
// options.set3DMode( true );
|
||||
// // TODO: 2021/3/23 后端算法提供显示颜色
|
||||
// options.anchorColor( getModelRenderColor( data.getType(), data.getSpeed(), data.getWgslon(), data.getWgslat(), data.getHeading() ) );
|
||||
// int resId = getModelRes( data.getType() );
|
||||
// resIdVal = resId + "";
|
||||
// options.resName( mMarkerCachesResMd5Values.get( resIdVal ) );
|
||||
// options.icon3DRes( resId );
|
||||
// } else {
|
||||
// options.set3DMode( false );
|
||||
// View view = inflateView( data );
|
||||
// options.icon( view );
|
||||
// resIdVal = view.getId() + "";
|
||||
// }
|
||||
// IMogoMarker marker = MogoApisHandler.getInstance().getApis().getMapServiceApi().getMarkerManager( mContext ).addMarker( DataTypes.TYPE_MARKER_CLOUD_DATA, options );
|
||||
// cacheMarkerIconResMd5Val( resIdVal, marker );
|
||||
//
|
||||
// if ( !TextUtils.isEmpty( data.getSn() ) ) {
|
||||
// bindClickListener( marker );
|
||||
// }
|
||||
//
|
||||
// return marker;
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param data
|
||||
*/
|
||||
// public void renderWarnData(V2XWarningEntity data ) {
|
||||
//
|
||||
// IMogoMarker marker = drawWarnDataMarker(data);
|
||||
//
|
||||
// if ( marker == null ) {
|
||||
// continue;
|
||||
// }
|
||||
//
|
||||
//
|
||||
// renderSnapshotOneFrame( marker, uniqueKey, cloudRoadData, newMarkersCaches );
|
||||
//
|
||||
//
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
* mogo 他车、mogo 他车识别的社会车辆、路边单元识别的车辆
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user