opt
This commit is contained in:
@@ -138,6 +138,8 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
mMapView.setRouteOverlayVisible( false );
|
||||
mMapView.setCarOverlayVisible( false );
|
||||
mMapView.setNaviMode( AMapNaviView.CAR_UP_MODE );
|
||||
|
||||
setRenderFps( 20 );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -631,4 +633,14 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
MotionEvent upEvent = MotionEvent.obtain(downTime + 100, eventTime + 100, MotionEvent.ACTION_UP, 0,0, metaState);
|
||||
mMapView.dispatchTouchEvent(upEvent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRenderFps( int fps ) {
|
||||
if ( checkAMapView() ) {
|
||||
if ( mMapView.getMap() != null ) {
|
||||
mMapView.getMap().setRenderFps( fps );
|
||||
Logger.d( TAG, "设置刷新帧率 fps = %s", fps );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,4 +177,11 @@ public class AMapUIController implements IMogoMapUIController {
|
||||
mClient.startJumpAnimation( marker, high, interpolator, duration );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRenderFps( int fps ) {
|
||||
if ( mClient != null ) {
|
||||
mClient.setRenderFps( fps );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user