dev
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
package com.mogo.map.uicontroller;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2019-12-26
|
||||
* <p>
|
||||
* 地图样式
|
||||
*/
|
||||
public enum EnumMapUI {
|
||||
|
||||
/**
|
||||
* 正北朝上2D
|
||||
*/
|
||||
NorthUP_2D( 0, 1 ),
|
||||
/**
|
||||
* 车头朝上2D
|
||||
*/
|
||||
CarUp_2D( 1, 2 ),
|
||||
|
||||
/**
|
||||
* 3D,只能头朝上
|
||||
*/
|
||||
CarUp_3D( 2, 0 ),
|
||||
|
||||
/**
|
||||
* 白天模式
|
||||
*/
|
||||
Type_Light( 3, 4 ),
|
||||
|
||||
/**
|
||||
* 夜晚模式
|
||||
*/
|
||||
Type_Night( 4, 3 ),
|
||||
|
||||
/**
|
||||
* 导航模式
|
||||
*/
|
||||
Type_Navi( 5, 5 );
|
||||
|
||||
private int next;
|
||||
private int code;
|
||||
|
||||
EnumMapUI( int code, int next ) {
|
||||
this.code = code;
|
||||
this.next = next;
|
||||
}
|
||||
|
||||
public EnumMapUI next() {
|
||||
for ( EnumMapUI value : EnumMapUI.values() ) {
|
||||
if ( value.code == next ) {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.mogo.map.uicontroller;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2019-12-26
|
||||
* <p>
|
||||
* 地图UI控制
|
||||
*/
|
||||
public interface IMogoMapUIController {
|
||||
|
||||
/**
|
||||
* 实时路况
|
||||
*
|
||||
* @param visible
|
||||
*/
|
||||
void setTrafficEnabled( boolean visible );
|
||||
|
||||
/**
|
||||
* 地图缩放
|
||||
*
|
||||
* @param zoomIn true - 方法 false - 缩小
|
||||
*/
|
||||
void changeZoom( boolean zoomIn );
|
||||
|
||||
/**
|
||||
* 切换2D/3D模式
|
||||
*
|
||||
* @param mode true - 3D模式 false - 2D模式
|
||||
*/
|
||||
void changeMapMode( EnumMapUI mode );
|
||||
|
||||
/**
|
||||
* 将地图移动至当前位置
|
||||
*/
|
||||
void moveToCurrentLocation();
|
||||
|
||||
/**
|
||||
* 显示我的位置
|
||||
*
|
||||
* @param visible true - 显示 false - 不显示
|
||||
*/
|
||||
void showMyLocation( boolean visible );
|
||||
|
||||
/**
|
||||
* 解锁锁车
|
||||
*/
|
||||
void recoverLockMode();
|
||||
|
||||
/**
|
||||
* 预览全程
|
||||
*/
|
||||
void displayOverview();
|
||||
}
|
||||
Reference in New Issue
Block a user