[6.5.0][map] 添加无人机视角
This commit is contained in:
@@ -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公里
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -319,7 +319,7 @@ class AMapViewWrapper(mMapView: MapAutoView) : IMogoMapView, IMogoMapUIControlle
|
||||
e(M_MAP + TAG, "切换地图近景需要传入要移动的经纬度数据")
|
||||
return
|
||||
}
|
||||
// 近景传入经纬度为点击地图上静态marker经纬度数据,为GPS坐标点。
|
||||
// 近景传入经纬度为点击地图上静态marker经纬度数据,为GPS坐标点。
|
||||
mapAutoViewHelper.setNearViewAnglePosition(
|
||||
LonLatPoint(
|
||||
mogoLatLng.lon,
|
||||
|
||||
Reference in New Issue
Block a user