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