Merge remote-tracking branch 'origin/feature/v1.0.5' into feature/v1.0.5

This commit is contained in:
董宏宇
2020-05-07 15:19:46 +08:00
5 changed files with 33 additions and 1 deletions

View File

@@ -872,4 +872,11 @@ public class AMapNaviViewWrapper implements IMogoMapView,
}
return null;
}
@Override
public void changeBearing( float bearing ) {
if ( checkAMapView() ) {
mMapView.getMap().moveCamera( CameraUpdateFactory.changeBearing( bearing ) );
}
}
}

View File

@@ -269,4 +269,11 @@ public class AMapUIController implements IMogoMapUIController {
}
return null;
}
@Override
public void changeBearing( float bearing ) {
if ( mClient != null ) {
mClient.changeBearing( bearing );
}
}
}

View File

@@ -199,7 +199,8 @@ public interface IMogoMapUIController {
/**
* 配置自车图标样式
*
* @param option 为空时使用默认配置
* @param option 为空时使用
* 默认配置
*/
void setCarCursorOption( @Nullable CarCursorOption option );
@@ -209,4 +210,10 @@ public interface IMogoMapUIController {
* @return
*/
MapCameraPosition getMapCameraPosition();
/**
* 切换地图视图视角
* @param bearing
*/
void changeBearing(float bearing);
}

View File

@@ -262,4 +262,11 @@ public class MogoMapUIController implements IMogoMapUIController {
}
return null;
}
@Override
public void changeBearing( float bearing ) {
if ( mDelegate != null ) {
mDelegate.changeBearing( bearing );
}
}
}

View File

@@ -85,6 +85,10 @@ public class MockIntentHandler implements IntentHandler {
} );
}
break;
case 8:
float bearing = intent.getFloatExtra( "bearing", 0 );
MarkerServiceHandler.getMapUIController().changeBearing( bearing );
break;
}
}
}