[6.3.0][V2N] 修正道路施工重复多展示多次2

This commit is contained in:
renwj
2024-03-26 19:44:03 +08:00
parent 883e66481c
commit 961cd57629
2 changed files with 3 additions and 4 deletions

View File

@@ -31,7 +31,6 @@ import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxManager.saveMsgBox
import com.mogo.eagle.core.utilcode.util.CoordinateTransform
import com.mogo.eagle.core.utilcode.util.CoordinateUtils
import com.mogo.eagle.core.utilcode.util.DrivingDirectionUtils
import com.mogo.eagle.core.utilcode.util.GsonUtils
import com.mogo.eagle.function.biz.v2x.V2XBizTrace
import com.mogo.eagle.function.biz.v2x.v2n.scenario.scene.airoad.AiRoadMarker
import com.mogo.eagle.function.biz.v2x.v2n.scenario.scene.airoad.AiRoadMarker.Marker
@@ -72,7 +71,7 @@ internal object V2NIdentifyDrawer {
itx.longitude,
itx.latitude,
car.heading.toInt()
) < 90
) < 90 && CoordinateUtils.calculateLineDistance(car.longitude, car.latitude, itx.longitude, itx.latitude) <= 300
}
if (filtered.isEmpty()) {
if (msg.what == MSG_WHAT_DRAW_SHIGONE) {
@@ -198,7 +197,7 @@ internal object V2NIdentifyDrawer {
eventLon,
eventLat,
car.heading.toInt()
) < 90
) < 90 && CoordinateUtils.calculateLineDistance(car.longitude, car.latitude, eventLon, eventLat) <= 300
}
if (filtered.isEmpty()) {
Log.d("V2NIdentifyDrawer", "---callback -- drawYongDu --- 2 filter is empty ---")

View File

@@ -108,7 +108,7 @@ object MarkerRemoveManager {
elapsed += delta
}
Log.d(TAG, "--- checkTask --- 5 ---:delta:$delta, elapsed:${elapsed}, id: ${marker.id}")
if (elapsed >= 100) {
if (elapsed >= 500) {
var removeMarkerError = false
marker.markers?.forEach {
try {