优化显示逻辑
This commit is contained in:
@@ -581,6 +581,40 @@ public class MockIntentHandler implements IntentHandler {
|
||||
latLngs.add( new MogoLatLng( 39.981990561932,116.412893641626 ) );
|
||||
marker.startSmoothInMs(latLngs, 20_000L );
|
||||
break;
|
||||
case 49:
|
||||
// 39.96741320378243, 116.41045709250723
|
||||
// 39.98232698552779,116.41879656379113;
|
||||
MogoMarkerOptions options1 = new MogoMarkerOptions()
|
||||
.owner( DataTypes.TYPE_MARKER_ADAS )
|
||||
.anchor( 0.5f, 0.5f )
|
||||
.set3DMode( false )
|
||||
.position( new MogoLatLng( 39.96741320378243, 116.41045709250723 ) )
|
||||
.gps( true )
|
||||
.controlAngle( false )
|
||||
.icon(BitmapFactory.decodeResource( context.getResources(), R.drawable.sy ) )
|
||||
.rotate( ( float ) 358.526123 );
|
||||
IMogoMarker marker1 = MogoApisHandler.getInstance().getApis().getMapServiceApi().getMarkerManager( context ).addMarker( DataTypes.TYPE_MARKER_ADAS, options1 );
|
||||
MogoMarkerOptions options2 = new MogoMarkerOptions()
|
||||
.owner( DataTypes.TYPE_MARKER_ADAS )
|
||||
.anchor( 0.5f, 0.5f )
|
||||
.set3DMode( false )
|
||||
.position( new MogoLatLng( 39.98232698552779,116.41879656379113 ) )
|
||||
.gps( true )
|
||||
.controlAngle( false )
|
||||
.icon(BitmapFactory.decodeResource( context.getResources(), R.drawable.sr ) )
|
||||
.rotate( ( float ) 358.526123 );
|
||||
IMogoMarker marker2 = MogoApisHandler.getInstance().getApis().getMapServiceApi().getMarkerManager( context ).addMarker( DataTypes.TYPE_MARKER_ADAS, options2 );
|
||||
MogoMarkerOptions options3 = new MogoMarkerOptions()
|
||||
.owner( DataTypes.TYPE_MARKER_ADAS )
|
||||
.anchor( 0.5f, 0.5f )
|
||||
.set3DMode( false )
|
||||
.position( new MogoLatLng( 39.97631642243,116.418249382739 ) )
|
||||
.gps( true )
|
||||
.controlAngle( false )
|
||||
.icon(BitmapFactory.decodeResource( context.getResources(), R.drawable.bg_map_marker_red ) )
|
||||
.rotate( ( float ) 358.526123 );
|
||||
IMogoMarker marker3 = MogoApisHandler.getInstance().getApis().getMapServiceApi().getMarkerManager( context ).addMarker( DataTypes.TYPE_MARKER_ADAS, options3 );
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -697,6 +731,7 @@ public class MockIntentHandler implements IntentHandler {
|
||||
jo.put( "satelliteTime", System.currentTimeMillis() );
|
||||
jo.put( "systemTime", System.currentTimeMillis() );
|
||||
MarkerServiceHandler.getApis().getMapServiceApi().getMapUIController().syncLocation2Map( jo );
|
||||
Log.i( "mock-timer-loc-map", "cost " + ( System.currentTimeMillis() - start ) + "ms" );
|
||||
SnapshotLocationController.getInstance().syncAdasLocationInfo( jo );
|
||||
Log.i( "mock-timer-loc", "cost " + ( System.currentTimeMillis() - start ) + "ms" );
|
||||
mLocationMockHandler.sendEmptyMessageDelayed( 1, 100L );
|
||||
|
||||
Reference in New Issue
Block a user