[6.8.0][Feat]新增车外语音播报功能
This commit is contained in:
@@ -1699,20 +1699,22 @@ class TravelRealityView @JvmOverloads constructor(
|
||||
super.invokeOchInfo(ochInfo)
|
||||
Log.d(TAG, "invokeOchInfo:$ochInfo")
|
||||
if (ochInfo.type == 0) {
|
||||
val locList = ochInfo.latLonList
|
||||
if (locList.isEmpty() || locList.size < 2) {
|
||||
mStartLatLng = null
|
||||
mEndLatLng = null
|
||||
UiThreadHandler.post {
|
||||
hideStartEndMarker()
|
||||
val locationList = ochInfo.latLonList
|
||||
locationList?.let { locList->
|
||||
if (locList.isEmpty() || locList.size < 2) {
|
||||
mStartLatLng = null
|
||||
mEndLatLng = null
|
||||
UiThreadHandler.post {
|
||||
hideStartEndMarker()
|
||||
}
|
||||
} else {
|
||||
// 设置开始结束Marker位置
|
||||
mStartLatLng = LatLng(locList[0].latitude, locList[0].longitude)
|
||||
mEndLatLng = LatLng(locList[1].latitude, locList[1].longitude)
|
||||
}
|
||||
if (!isPlayingAnim) {
|
||||
drawStartAndEnd()
|
||||
}
|
||||
} else {
|
||||
// 设置开始结束Marker位置
|
||||
mStartLatLng = LatLng(locList[0].latitude, locList[0].longitude)
|
||||
mEndLatLng = LatLng(locList[1].latitude, locList[1].longitude)
|
||||
}
|
||||
if (!isPlayingAnim) {
|
||||
drawStartAndEnd()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
package com.mogo.eagle.core.data.och
|
||||
|
||||
import com.mogo.eagle.core.data.map.MogoLocation
|
||||
import com.mogo.eagle.core.data.map.SiteMarkerBean
|
||||
|
||||
// type 0-> 起终点坐标 坐标index 0 起点 坐标index 1 终点
|
||||
data class OchInfo(var type: Int, var latLonList: List<MogoLocation>)
|
||||
// type 1-> 起终点+站点
|
||||
data class OchInfo(var type: Int, var latLonList: List<MogoLocation>?) {
|
||||
var siteMarkerList: List<SiteMarkerBean>? = null// 起终点+站点
|
||||
}
|
||||
Reference in New Issue
Block a user