This commit is contained in:
wangcongtao
2020-02-27 12:41:08 +08:00
parent 4781b10eba
commit 0d3ae83b97
9 changed files with 136 additions and 33 deletions

View File

@@ -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 );
}
}
}
}

View File

@@ -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 );
}
}
}