From 76f1431033889fd8103d83b9748b5720e100cecb Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Tue, 30 May 2023 11:14:54 +0800 Subject: [PATCH] =?UTF-8?q?[3.2.0][Opt]=E4=BC=98=E5=8C=96=E4=B8=80?= =?UTF-8?q?=E4=B8=8B=E5=85=A8=E8=A7=88=E5=9C=B0=E5=9B=BE=E7=94=BB=E7=BA=BF?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mogo/eagle/core/function/smp/MarkerDrawerManager.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 2ee7841930..376078cfc7 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 @@ -113,7 +113,11 @@ object MarkerDrawerManager { baseDiffDis = diff // 距离最近的时候判断是否走过 if (DrivingDirectionUtils.getDegreeOfCar2Poi2(realLon, realLat, latLng.longitude, latLng.latitude, heading) >= 90) { - currentIndex = i + currentIndex = if (i < lastArrivedIndex) { + lastArrivedIndex + } else { + i + } } } }