[6.5.0][map] 添加无人机视角

This commit is contained in:
renwj
2024-06-17 16:35:49 +08:00
parent f1ff3baf52
commit 00678b4842
4 changed files with 28 additions and 2 deletions

View File

@@ -32,6 +32,18 @@ object ConstantExt {
//高程数据模式
const val MAP_STYLE_VR_BRIDGE= 100
//无人机视角
const val MAP_STYLE_VR_ANGLE_DRONE = 11
//无人机视角-摄像机高度
const val MAP_STYLE_VR_EYE_HEIGHT_DRONE = 21.1f
//无人机视角-摄像机角度
const val MAP_STYLE_VR_OVER_LOOK_DRONE = 19.8f
//无人机视角-缩放值
const val MAP_STYLE_VR_ZOOM_VAL_DRONE = 2.9f
//漫游距离1公里
const val ROAM_DIS_1KM = 1000f
//漫游距离3公里

View File

@@ -1549,6 +1549,15 @@ class MapController(private var context: Context?, private val mMapView: IMapVie
// )
//
// }
ConstantExt.MAP_STYLE_VR_ANGLE_DRONE -> {
disableSkyboxAndInterpolation(
ConstantExt.MAP_STYLE_VR_EYE_HEIGHT_DRONE,
ConstantExt.MAP_STYLE_VR_OVER_LOOK_DRONE,
ConstantExt.MAP_STYLE_VR_ZOOM_VAL_DRONE,
ConstantExt.MAP_STYLE_VR_ANGLE_DRONE,
-1
)
}
}
if(type != ConstantExt.MAP_STYLE_VR_ROAM) {
mEventController?.dispatchMapViewVisualAngleChangeListener(type)

View File

@@ -52,7 +52,12 @@ enum class VisualAngleMode(val code: Int) : IMogoMapVisualAngle {
/**
* 天空盒模式
*/
MAP_STYLE_VR_SKY_BOX(10);
MAP_STYLE_VR_SKY_BOX(10),
/**
* 无人机模式
*/
MAP_STYLE_VR_DRONE(11);
override val isLongSight: Boolean
get() = code == MODE_LONG_SIGHT.code

View File

@@ -319,7 +319,7 @@ class AMapViewWrapper(mMapView: MapAutoView) : IMogoMapView, IMogoMapUIControlle
e(M_MAP + TAG, "切换地图近景需要传入要移动的经纬度数据")
return
}
// 近景传入经纬度为点击地图上静态marker经纬度数据为GPS坐标点。
// 近景传入经纬度为点击地图上静态marker经纬度数据为GPS坐标点。
mapAutoViewHelper.setNearViewAnglePosition(
LonLatPoint(
mogoLatLng.lon,