From 2a79c434f967dfd0935b1f5a7da149f06697d2ac Mon Sep 17 00:00:00 2001 From: zhangyuanzhen Date: Wed, 19 Feb 2020 16:41:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E8=93=9D=E7=82=B9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/mogo/map/impl/amap/AMapNaviViewWrapper.java | 4 ++-- .../com/mogo/module/extensions/entrance/EntranceFragment.java | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/libraries/map-amap/src/main/java/com/mogo/map/impl/amap/AMapNaviViewWrapper.java b/libraries/map-amap/src/main/java/com/mogo/map/impl/amap/AMapNaviViewWrapper.java index ca22bb50f1..c65ca81a70 100644 --- a/libraries/map-amap/src/main/java/com/mogo/map/impl/amap/AMapNaviViewWrapper.java +++ b/libraries/map-amap/src/main/java/com/mogo/map/impl/amap/AMapNaviViewWrapper.java @@ -411,7 +411,6 @@ public class AMapNaviViewWrapper implements IMogoMapView, @Override public void showMyLocation(boolean visible) { if (checkAMapView()) { - mMapView.getMap().setMyLocationEnabled(visible); MyLocationStyle style = mMapView.getMap().getMyLocationStyle(); style.showMyLocation(visible); mMapView.getMap().setMyLocationStyle(style); @@ -424,6 +423,7 @@ public class AMapNaviViewWrapper implements IMogoMapView, MyLocationStyle style = mMapView.getMap().getMyLocationStyle(); style.myLocationType(MyLocationStyle.LOCATION_TYPE_LOCATION_ROTATE_NO_CENTER); style.interval(1000); + style.anchor(0.5F,0.5F); style.strokeColor(Color.TRANSPARENT); style.strokeWidth(0); style.myLocationIcon( @@ -462,7 +462,7 @@ public class AMapNaviViewWrapper implements IMogoMapView, public void onNaviStarted() { if (checkAMapView()) { mMapView.setCarOverlayVisible(true); - //showMyLocation( false ); + showMyLocation( false ); } } diff --git a/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java b/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java index 4747dfffa9..11288b1cc7 100644 --- a/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java +++ b/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java @@ -191,8 +191,6 @@ public class EntranceFragment extends MvpFragment< EntranceView, EntrancePresent mCommonAddress.setVisibility( View.GONE ); mNaviInfo.setVisibility( View.VISIBLE ); mExitNavi.setVisibility( View.VISIBLE ); - - mMApUIController.showMyLocation(false); mMApUIController.setPointToCenter( 0.675926, 0.77552 ); } @@ -203,8 +201,6 @@ public class EntranceFragment extends MvpFragment< EntranceView, EntrancePresent mExitNavi.setVisibility( View.GONE ); mSpeedLimit.setVisibility( View.GONE ); mMApUIController.setPointToCenter( 0.66145, 0.590688 ); - mMApUIController.showMyLocation(true); - } @Override