Merge remote-tracking branch 'origin/feature/v1.0.5' into feature/v1.0.5
This commit is contained in:
@@ -872,4 +872,11 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void changeBearing( float bearing ) {
|
||||||
|
if ( checkAMapView() ) {
|
||||||
|
mMapView.getMap().moveCamera( CameraUpdateFactory.changeBearing( bearing ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -269,4 +269,11 @@ public class AMapUIController implements IMogoMapUIController {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void changeBearing( float bearing ) {
|
||||||
|
if ( mClient != null ) {
|
||||||
|
mClient.changeBearing( bearing );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -199,7 +199,8 @@ public interface IMogoMapUIController {
|
|||||||
/**
|
/**
|
||||||
* 配置自车图标样式
|
* 配置自车图标样式
|
||||||
*
|
*
|
||||||
* @param option 为空时使用默认配置
|
* @param option 为空时使用
|
||||||
|
* 默认配置
|
||||||
*/
|
*/
|
||||||
void setCarCursorOption( @Nullable CarCursorOption option );
|
void setCarCursorOption( @Nullable CarCursorOption option );
|
||||||
|
|
||||||
@@ -209,4 +210,10 @@ public interface IMogoMapUIController {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
MapCameraPosition getMapCameraPosition();
|
MapCameraPosition getMapCameraPosition();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 切换地图视图视角
|
||||||
|
* @param bearing
|
||||||
|
*/
|
||||||
|
void changeBearing(float bearing);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -262,4 +262,11 @@ public class MogoMapUIController implements IMogoMapUIController {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void changeBearing( float bearing ) {
|
||||||
|
if ( mDelegate != null ) {
|
||||||
|
mDelegate.changeBearing( bearing );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,6 +85,10 @@ public class MockIntentHandler implements IntentHandler {
|
|||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 8:
|
||||||
|
float bearing = intent.getFloatExtra( "bearing", 0 );
|
||||||
|
MarkerServiceHandler.getMapUIController().changeBearing( bearing );
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user