[Change]
增加控制地图「白天」「夜间」模式 Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
@@ -1,80 +1,57 @@
|
||||
package com.mogo.map.uicontroller;
|
||||
package com.mogo.map.uicontroller
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2019-12-26
|
||||
* <p>
|
||||
*
|
||||
*
|
||||
* 地图样式
|
||||
*/
|
||||
public enum EnumMapUI {
|
||||
enum class EnumMapUI(val code: Int, private val next: Int) {
|
||||
/**
|
||||
* 2D 白天模式
|
||||
*/
|
||||
MAP_STYLE_DAY(0, 1),
|
||||
|
||||
/**
|
||||
* 正北朝上2D
|
||||
* 2D 夜晚模式
|
||||
*/
|
||||
NorthUP_2D(0, 1),
|
||||
/**
|
||||
* 车头朝上2D
|
||||
*/
|
||||
CarUp_2D(1, 2),
|
||||
MAP_STYLE_NIGHT(1, 2),
|
||||
|
||||
/**
|
||||
* 3D,只能头朝上
|
||||
* SATEL模式
|
||||
*/
|
||||
CarUp_3D(2, 0),
|
||||
Type_AUTO_LIGHT_Night(2, 3),
|
||||
|
||||
/**
|
||||
* 白天模式
|
||||
* 日间导航模式
|
||||
*/
|
||||
Type_Light(3, 5),
|
||||
MAP_STYLE_DAY_NAV(3, 4),
|
||||
|
||||
/**
|
||||
* 夜晚模式
|
||||
* 夜间导航模式
|
||||
*/
|
||||
Type_Night(4, 4),
|
||||
MAP_STYLE_NIGHT_NAV(4, 5),
|
||||
|
||||
//------------------------2022-04-11暂时只有这两个使用-------------------------------
|
||||
/**
|
||||
* 夜间VR模式
|
||||
*/
|
||||
MAP_STYLE_NIGHT_VR(5, 6),
|
||||
|
||||
/**
|
||||
* 夜晚模式
|
||||
* 白天VR模式
|
||||
*/
|
||||
Type_AUTO_LIGHT_Night(5, 3),
|
||||
MAP_STYLE_DAY_VR(6, 7);
|
||||
//-------------------------2022-04-11暂时只有这两个使用------------------------------
|
||||
|
||||
/**
|
||||
* 自研地图的VR模式
|
||||
*/
|
||||
Type_VR(0, 0),
|
||||
|
||||
/**
|
||||
* 视距远景
|
||||
*/
|
||||
MODE_LONG_SIGHT(6, 7),
|
||||
|
||||
/**
|
||||
* 视距中景
|
||||
*/
|
||||
MODE_MEDIUM_SIGHT(7, 8),
|
||||
|
||||
/**
|
||||
* 视距近景
|
||||
*/
|
||||
MODE_CLOSE_SIGHT(8, 6);
|
||||
|
||||
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()) {
|
||||
operator fun next(): EnumMapUI {
|
||||
for (value in values()) {
|
||||
if (value.code == next) {
|
||||
return value;
|
||||
return value
|
||||
}
|
||||
}
|
||||
return this;
|
||||
return this
|
||||
}
|
||||
|
||||
public int getCode(){
|
||||
return code;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,17 +25,6 @@ import mogo.telematics.pad.MessagePad;
|
||||
*/
|
||||
public interface IMogoMapUIController {
|
||||
|
||||
/**
|
||||
* 实时路况
|
||||
*/
|
||||
void setTrafficEnabled(boolean visible);
|
||||
|
||||
/**
|
||||
* 地图缩放
|
||||
*
|
||||
* @param zoomIn true - 放大 false - 缩小
|
||||
*/
|
||||
MapControlResult changeZoom(boolean zoomIn);
|
||||
|
||||
/**
|
||||
* 修改缩放级别
|
||||
@@ -49,6 +38,21 @@ public interface IMogoMapUIController {
|
||||
*/
|
||||
void changeMapMode(EnumMapUI mode);
|
||||
|
||||
/**
|
||||
* 打开鹰眼模式
|
||||
*
|
||||
* @param zoomGestureEnable 是否支持手势缩放改变地图样式
|
||||
*/
|
||||
@Deprecated
|
||||
void openVrMode(boolean zoomGestureEnable);
|
||||
|
||||
/**
|
||||
* 进入VR 模式
|
||||
*
|
||||
* @param isDayMode true-白天模式,false-夜间模式
|
||||
*/
|
||||
void stepInVrMode(boolean isDayMode);
|
||||
|
||||
/**
|
||||
* 切换3D模式下远距,中距,近距视角
|
||||
*
|
||||
@@ -110,13 +114,6 @@ public interface IMogoMapUIController {
|
||||
void loseLockMode();
|
||||
|
||||
|
||||
/**
|
||||
* 预览全程
|
||||
*
|
||||
* @param bounds 显示范围
|
||||
*/
|
||||
void displayOverview(Rect bounds);
|
||||
|
||||
/**
|
||||
* 获取比例尺数据
|
||||
*
|
||||
@@ -301,32 +298,6 @@ public interface IMogoMapUIController {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 打开鹰眼模式
|
||||
*
|
||||
* @param zoomGestureEnable 是否支持手势缩放改变地图样式
|
||||
*/
|
||||
default void openVrMode(boolean zoomGestureEnable) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 将一个点匹配到车道的中心点
|
||||
*
|
||||
* @param lon
|
||||
* @param lat
|
||||
* @param angle
|
||||
* @param isGpsLocation 是否是 gps 坐标
|
||||
* @param isRTK
|
||||
* @return
|
||||
*/
|
||||
default double[] matchRoad(String id, double lon, double lat, double angle, boolean isGpsLocation, boolean isRTK) {
|
||||
return null;
|
||||
}
|
||||
|
||||
default void clearRoadCacheById(String id) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取车速资源缓存 id
|
||||
@@ -355,6 +326,7 @@ public interface IMogoMapUIController {
|
||||
|
||||
/**
|
||||
* 获取行车方向
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
float getAngle(double startLon, double startLat, double endLon, double endLat);
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
package com.mogo.map.uicontroller;
|
||||
|
||||
/**
|
||||
* 切换视距
|
||||
*
|
||||
* @author zhongchao
|
||||
*/
|
||||
public enum VisualAngleMode implements IMogoMapVisualAngle {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user