From 3ce313c5b8dcd4984680b4f858f84e9d964d2b2d Mon Sep 17 00:00:00 2001 From: jiaguofeng Date: Mon, 20 Jul 2020 18:39:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E5=90=AC=E4=BA=8B=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/mogo/map/impl/custom/AMapViewWrapper.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/map-custom/src/main/java/com/mogo/map/impl/custom/AMapViewWrapper.java b/libraries/map-custom/src/main/java/com/mogo/map/impl/custom/AMapViewWrapper.java index abd47e4663..5f5ed9d7fc 100644 --- a/libraries/map-custom/src/main/java/com/mogo/map/impl/custom/AMapViewWrapper.java +++ b/libraries/map-custom/src/main/java/com/mogo/map/impl/custom/AMapViewWrapper.java @@ -204,6 +204,7 @@ public class AMapViewWrapper implements IMogoMapView, IMogoMapUIController, Loca public void onResume() { if (mMapView != null) { mMapView.onResume(); + initListeners(); Logger.d(TAG, "map onResume"); } } @@ -707,17 +708,17 @@ public class AMapViewWrapper implements IMogoMapView, IMogoMapUIController, Loca @Override public void onMapStatusChanged(int type, int value) { - Logger.i(TAG, "mapop--onMapStatusChanged: "+type+","+value); + Log.i(TAG, "mapop--onMapStatusChanged: "+type+","+value); } @Override public void onCameraChange(int type, int value) { - Logger.i(TAG, "mapop--onCameraChange: "+type+","+value); + Log.i(TAG, "mapop--onCameraChange: "+type+","+value); } @Override public void onCameraChangeFinish(@Nullable CameraPosition cameraPosition) { - Logger.i(TAG, "mapop--onCameraChangeFinish: "+cameraPosition); + Log.i(TAG, "mapop--onCameraChangeFinish: "+cameraPosition); if ( cameraPosition != null ) { Trace.beginSection( "timer.onCameraChangeFinish" ); MogoMapListenerHandler.getInstance().onMapChanged(ObjectUtils.fromAMap( cameraPosition.getTarget() ),