[3.2.0][Opt]新增全览模式轨迹线绘制的日志

This commit is contained in:
chenfufeng
2023-06-07 18:12:18 +08:00
parent 604b718352
commit c9d9a7e95a
2 changed files with 3 additions and 3 deletions

View File

@@ -166,7 +166,7 @@ object MarkerDrawerManager {
}
}
}
Log.d("MarkerDrawerManager", "当次计算已走过的点的索引为:$currentIndex,存储的上次索引为:$lastArrivedIndex")
Log.d("MarkerDrawerManager", "当次计算已走过的点的索引为:$currentIndex,存储的上次索引为:$lastArrivedIndex, ,起点为:(${newPoints[0].longitude},${newPoints[0].latitude}),终点为:(${newPoints.last().longitude},${newPoints.last().latitude})")
if (!isLongDistance) {
// 过滤缓存的非当次轨迹的索引,并且出现车已走过索引跳跃过大时视为无效复用上一次计算结果
if (currentIndex < lastArrivedIndex || (lastArrivedIndex >= 0 && currentIndex - lastArrivedIndex >= 10)) {

View File

@@ -471,7 +471,7 @@ class OverMapView @JvmOverloads constructor(
Log.d(TAG, "全局路径规划轨迹为空")
return
}
Log.d(TAG, "全局路径规划轨迹下发")
Log.d(TAG, "全局路径规划轨迹下发,起点为:(${locationList[0].longitude},${locationList[0].latitude}),终点为:(${locationList.last().longitude},${locationList.last().latitude})")
isFirst = true
MarkerDrawerManager.resetStatus()
val list: List<MessagePad.Location> = locationList
@@ -783,7 +783,7 @@ class OverMapView @JvmOverloads constructor(
texIndexList.add(i - 1)
}
if (mAMap != null && coordinates.size > 2) {
// Log.d(TAG, "绘制时轨迹点数为:${coordinates.size},纹理数为:${textureList.size},车辆index为$locIndex")
Log.d(TAG, "绘制时轨迹点数为:${coordinates.size},车辆index为$locIndex,起点为:(${coordinates[0].longitude},${coordinates[0].latitude}),终点为:(${coordinates.last().longitude},${coordinates.last().latitude})")
//设置线段纹理
val polylineOptions = PolylineOptions()
polylineOptions.addAll(coordinates)