From 89626b2d0cab6f6650bf8059c36958f5097c6a6a Mon Sep 17 00:00:00 2001 From: zhongchao Date: Mon, 16 Jan 2023 18:09:31 +0800 Subject: [PATCH 1/2] [2.13.2] fix bug of draw fusion control --- .../core/function/business/identify/MapIdentifySubscriber.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/identify/MapIdentifySubscriber.kt b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/identify/MapIdentifySubscriber.kt index 2ecce80381..4ca9d9e1cf 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/identify/MapIdentifySubscriber.kt +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/identify/MapIdentifySubscriber.kt @@ -61,7 +61,7 @@ class MapIdentifySubscriber private constructor() : IMoGoIdentifyListener, IMoGo fun renderAiCloudResult(cloudData: List) { try { - if (FunctionBuildConfig.isDrawIdentifyData) { + if (FunctionBuildConfig.isDrawAiCloudFusion) { ThreadUtils.getSinglePool().execute { // aiCloudDataDrawer.renderAiCloudResult(cloudData) IdentifyFactory.renderAiCloudResult(cloudData) From 4af1ea1633bff83331eff9f65b857a231469d1be Mon Sep 17 00:00:00 2001 From: renwj Date: Mon, 16 Jan 2023 18:10:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?[2.13.2][MAP]=E6=9B=B4=E6=94=B9=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E8=8E=B7=E5=8F=96=E8=BD=A6=E9=81=93=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E7=BA=BF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/mogo/map/AMapWrapper.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/libraries/mogo-map/src/main/java/com/mogo/map/AMapWrapper.java b/libraries/mogo-map/src/main/java/com/mogo/map/AMapWrapper.java index 884d7e9c34..084d329bfe 100644 --- a/libraries/mogo-map/src/main/java/com/mogo/map/AMapWrapper.java +++ b/libraries/mogo-map/src/main/java/com/mogo/map/AMapWrapper.java @@ -342,12 +342,17 @@ public class AMapWrapper implements IMogoMap { @Override public CenterLine getCenterLineRangeInfo(double lon, double lat, float angle, float distance) { - com.zhidaoauto.map.sdk.open.road.CenterLine info = MapDataApi.INSTANCE.getCenterLineRangeInfo(lon, lat, angle, distance); - CenterLine ret = null; - if (info != null) { - ret = new CenterLine(info.id, info.tile_id, info.road_id, info.lane_id, convert(info.points), info.angle == null ? 0f : info.angle); + try { + com.zhidaoauto.map.sdk.open.road.CenterLine info = MapDataApi.INSTANCE.getCenterLineRoadNode(lon, lat, angle, distance); + CenterLine ret = null; + if (info != null) { + ret = new CenterLine(info.id, info.tile_id, info.road_id, info.lane_id, convert(info.points), info.angle == null ? 0f : info.angle); + } + return ret; + } catch (Throwable t) { + t.printStackTrace(); + return null; } - return ret; } @Override