[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)
|
||||
|
||||
Reference in New Issue
Block a user