This commit is contained in:
wangcongtao
2019-12-27 19:56:30 +08:00
parent 522c5e2dbf
commit ae9ddcb369
308 changed files with 6608 additions and 607 deletions

View File

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

View File

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