diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/MarkerDrawerManager.kt b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/MarkerDrawerManager.kt index 6a547935cd..222efc1ab6 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/MarkerDrawerManager.kt +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/MarkerDrawerManager.kt @@ -169,6 +169,10 @@ object MarkerDrawerManager { ) if (tmpDistance <= distance) { // 车此刻运动方向与两轨迹点朝向的夹角小于90(结合距离线段最近则车在两点之间,意味着已走过第index个轨迹点) + Log.d( + "MarkerDrawerManager", + "车辆定位为:($realLon,$realLat),index为:$index,线段为:(${latLng.longitude},${latLng.latitude})->(${routePoints[index + 1].longitude},${routePoints[index + 1].latitude})" + ) angle = getLineAngle( latLng.longitude, latLng.latitude, @@ -177,7 +181,7 @@ object MarkerDrawerManager { ) Log.d( "MarkerDrawerManager", - "index为:$index,车航向角为:$heading,到此路段的距离为:$tmpDistance,路段角度为:$angle" + "车航向角为:$heading,到此路段的距离为:$tmpDistance,路段角度为:$angle" ) if (getAngleDiff(angle, heading) < 90) { distance = tmpDistance