[3.2.0][Opt]优化一下全览地图画线逻辑

This commit is contained in:
chenfufeng
2023-05-30 11:14:54 +08:00
parent e70a66fff4
commit 76f1431033

View File

@@ -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
}
}
}
}