From cfe942bb8027e38b86ae31465f11fc1d867ffd71 Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Wed, 10 Aug 2022 12:40:51 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=E4=BC=98=E5=8C=96=E5=85=A8=E8=A7=88?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E7=9A=84=E6=B7=A1=E5=85=A5=E6=B7=A1=E5=87=BA?= =?UTF-8?q?=E6=95=88=E6=9E=9C=E3=80=81=E9=A6=96=E6=AC=A1=E7=99=BD=E5=B1=8F?= =?UTF-8?q?=E9=97=AA=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mogo/eagle/core/function/smp/AMapCustomView.java | 4 ++-- .../com/mogo/eagle/core/function/smp/MarkerDrawerManager.kt | 1 - .../src/main/res/layout/module_overview_map_view.xml | 5 +++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/AMapCustomView.java b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/AMapCustomView.java index 71aa82ba9d..a97a937d2f 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/AMapCustomView.java +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/AMapCustomView.java @@ -17,7 +17,7 @@ import androidx.annotation.Nullable; import com.amap.api.maps.AMap; import com.amap.api.maps.CameraUpdate; import com.amap.api.maps.CameraUpdateFactory; -import com.amap.api.maps.MapView; +import com.amap.api.maps.TextureMapView; import com.amap.api.maps.UiSettings; import com.amap.api.maps.model.BitmapDescriptor; import com.amap.api.maps.model.BitmapDescriptorFactory; @@ -65,7 +65,7 @@ public class AMapCustomView extends RelativeLayout implements IMoGoMapLocationListener { public static final String TAG = "AMapCustomView"; - private MapView mAMapView; + private TextureMapView mAMapView; private AMap mAMap; private int zoomLevel = 15; private CameraUpdate mCameraUpdate; diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/MarkerDrawerManager.kt b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/MarkerDrawerManager.kt index 08f04fdb0e..0ab43a4063 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/MarkerDrawerManager.kt +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/MarkerDrawerManager.kt @@ -67,7 +67,6 @@ object MarkerDrawerManager { private fun loopRouteAndWipe(routePoints: List?, lon: Double, lat: Double) { if (routePoints != null && routePoints.isNotEmpty()) { val arrivedIndex: Int = getArrivedPointIndex(routePoints, lon, lat) - Log.d("cff", "thread is:${Thread.currentThread().name},arrivedIndex is:$arrivedIndex") if (arrivedIndex != -1 && lastArrivedIndex != arrivedIndex) { callback?.onLocationChanged(routePoints, arrivedIndex) lastArrivedIndex = arrivedIndex diff --git a/core/function-impl/mogo-core-function-map/src/main/res/layout/module_overview_map_view.xml b/core/function-impl/mogo-core-function-map/src/main/res/layout/module_overview_map_view.xml index d5184f1e3d..c50e325d22 100644 --- a/core/function-impl/mogo-core-function-map/src/main/res/layout/module_overview_map_view.xml +++ b/core/function-impl/mogo-core-function-map/src/main/res/layout/module_overview_map_view.xml @@ -17,10 +17,11 @@ android:layout_height="match_parent" android:layout_centerInParent="true"> - + android:layout_height="match_parent" + />