From 2eab1722094bdda269281c032c901d3517c9b8a1 Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Wed, 25 Jun 2025 11:38:19 +0800 Subject: [PATCH] =?UTF-8?q?[8.1.0][opt]=E7=BB=98=E5=88=B6=E8=BD=A6?= =?UTF-8?q?=E5=89=8D=E5=BC=95=E5=AF=BC=E7=BA=BF=E6=97=B6=E9=99=8D=E4=BD=8E?= =?UTF-8?q?=E8=87=AA=E8=BD=A6=E5=AE=9A=E4=BD=8D=E8=8E=B7=E5=8F=96=E9=80=9F?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/routeoverlay/RouteOverlayDrawer.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/routeoverlay/RouteOverlayDrawer.java b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/routeoverlay/RouteOverlayDrawer.java index a65047f64b..29983c3fd9 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/routeoverlay/RouteOverlayDrawer.java +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/routeoverlay/RouteOverlayDrawer.java @@ -1,7 +1,6 @@ package com.mogo.eagle.core.function.business.routeoverlay; import static com.mogo.map.MogoMap.DEFAULT; -import static com.mogo.map.MogoMap.SMALL_DES_MAP; import android.annotation.SuppressLint; import android.graphics.Color; @@ -13,7 +12,6 @@ import androidx.core.util.Pools; import com.mogo.eagle.core.data.config.FunctionBuildConfig; import com.mogo.eagle.core.data.map.MogoLatLng; import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationWGS84ListenerManager; -import com.mogo.eagle.core.function.call.map.CallerMapIdentifyManager; import com.mogo.eagle.core.function.call.map.CallerMapUIServiceManager; import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils; import com.mogo.eagle.core.utilcode.util.DrivingDirectionUtils; @@ -188,8 +186,8 @@ public class RouteOverlayDrawer { RouteStrategy.INSTANCE.check(route.getVelocity(), route.getAcceleration(), routeList.size()); } } - double lon = CallerChassisLocationWGS84ListenerManager.INSTANCE.getWgs84Lon(); - double lat = CallerChassisLocationWGS84ListenerManager.INSTANCE.getWgs84Lat(); + double lon = CallerChassisLocationWGS84ListenerManager.INSTANCE.getChassisLocationWGS84().getLongitude(); + double lat = CallerChassisLocationWGS84ListenerManager.INSTANCE.getChassisLocationWGS84().getLatitude(); if (!points.isEmpty()) { MogoLatLng top = null; while (!points.isEmpty()) { @@ -200,8 +198,8 @@ public class RouteOverlayDrawer { if (first == top) { break; } - lon = CallerChassisLocationWGS84ListenerManager.INSTANCE.getWgs84Lon(); - lat = CallerChassisLocationWGS84ListenerManager.INSTANCE.getWgs84Lat(); + lon = CallerChassisLocationWGS84ListenerManager.INSTANCE.getChassisLocationWGS84().getLongitude(); + lat = CallerChassisLocationWGS84ListenerManager.INSTANCE.getChassisLocationWGS84().getLatitude(); long angle = isPointOnCarFront(lon, lat, bearing, first.lon, first.lat); if (angle >= 90) { if (isColorfulStrategy) { @@ -268,9 +266,6 @@ public class RouteOverlayDrawer { mPolylineOptions = options; } overlayManager.showOrUpdateLine(options,DEFAULT); - if (FunctionBuildConfig.isDrawDecIdentifyData && CallerMapIdentifyManager.INSTANCE.isDecViewLoaded()) { - overlayManager.showOrUpdateLine(options,SMALL_DES_MAP); - } } else { isExcept = true; }