This commit is contained in:
wangcongtao
2021-02-24 16:47:14 +08:00
parent 5fa88c12a8
commit daa94e6058
5 changed files with 14 additions and 6 deletions

1
.idea/gradle.xml generated
View File

@@ -91,7 +91,6 @@
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>

View File

@@ -784,7 +784,7 @@ public class AMapViewWrapper implements IMogoMapView,
mSpeedView = new TextView( mMapView.getContext() );
mSpeedView.setTextColor( Color.WHITE );
mSpeedView.setTypeface( Typeface.defaultFromStyle( Typeface.BOLD ) );
mSpeedView.setShadowLayer( 10f, 5F, 5F, Color.BLACK );
// mSpeedView.setShadowLayer( 10f, 5F, 5F, Color.BLACK );
mSpeedView.setLayoutParams( new ViewGroup.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT ) );
}
mSpeedView.setText( String.valueOf( ( ( int ) ( speed * 3.6 ) ) ) );

View File

@@ -119,7 +119,7 @@ class BaseDrawer {
mSpeedView = new TextView( context );
mSpeedView.setTextColor( Color.WHITE );
mSpeedView.setTypeface( Typeface.defaultFromStyle( Typeface.BOLD ) );
mSpeedView.setShadowLayer( 10f, 5F, 5F, Color.BLACK );
// mSpeedView.setShadowLayer( 10f, 5F, 5F, Color.BLACK );
mSpeedView.setLayoutParams( new ViewGroup.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT ) );
}
mSpeedView.setText( String.valueOf( ( ( int ) ( speed * 3.6 ) ) ) );

View File

@@ -1,6 +1,7 @@
package com.mogo.module.service.spi;
import com.elegant.spi.annotations.Service;
import com.mogo.module.service.MarkerServiceHandler;
import com.mogo.module.service.uploadintime.SnapshotLocationController;
import com.mogo.realtime.api.IRealTimeProvider;
import com.mogo.realtime.entity.ADASRecognizedResult;
@@ -13,9 +14,7 @@ public class SPIRealTimeUpload implements IRealTimeProvider {
@Override
public List<ADASRecognizedResult> getLastADASRecognizedResult() {
//todo 待200ms 数据联调结束后 代码合并 更换类 ---> ADASRecognizedResult
// return MarkerServiceHandler.getADASController().getLastADASRecognizedResult();
return null;
return MarkerServiceHandler.getADASController().getLastADASRecognizedResult();
}
@Override

View File

@@ -44,6 +44,8 @@ class SnapshotLocationController {
return sInstance;
}
private CloudLocationInfo mLastLocationInfo = null;
private List< CloudLocationInfo > mLocationList = new ArrayList<>();
/**
@@ -55,6 +57,7 @@ class SnapshotLocationController {
if ( cli == null ) {
return;
}
mLastLocationInfo = cli;
mLocationList.add( cli );
}
@@ -94,6 +97,7 @@ class SnapshotLocationController {
cloudLocationInfo.setSatelliteTime( satelliteTime );
cloudLocationInfo.setSystemTime( System.currentTimeMillis() );
cloudLocationInfo.convertCoor2GCJ02();
mLastLocationInfo = cloudLocationInfo;
mMachineCacheList.add( cloudLocationInfo );
}
@@ -118,6 +122,12 @@ class SnapshotLocationController {
mLocationList.clear();
}
}
if ( list == null ) {
if ( mLastLocationInfo != null ) {
list = new ArrayList();
list.add( mLastLocationInfo );
}
}
return list;
}
}