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 eb57ea7349..88d82fe662 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 @@ -549,6 +549,7 @@ public class AMapNaviViewWrapper implements IMogoMapView, if ( visible && NaviClient.getInstance( getContext() ).isNaviing() ) { return; } + if ( checkAMapView() ) { MyLocationStyle style = getMyLocationStyle(); if ( style == null ) { @@ -557,6 +558,7 @@ public class AMapNaviViewWrapper implements IMogoMapView, style.showMyLocation( visible ); if ( mCurrentUIMode == EnumMapUI.CarUp_2D || mCurrentUIMode == EnumMapUI.CarUp_3D ) { + style.myLocationType( MyLocationStyle.LOCATION_TYPE_LOCATION_ROTATE_NO_CENTER ); } else { style.myLocationType( MyLocationStyle.LOCATION_TYPE_FOLLOW ); 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 fcfe6a1b54..c476080240 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 @@ -888,6 +888,7 @@ public class AMapViewWrapper implements IMogoMapView, @Override public void onMapLoaded() { Logger.i(TAG, "autoop--onMapLoaded: "); + MapAutoApi.INSTANCE.getMyLocationStyle().myLocationIcon(R.raw.selfbus, true); //修改自车模型,未来需区分车的类型 mMapView.getMapAutoViewHelper().setRenderFrequency(true, 50); MogoMapListenerHandler.getInstance().onMapLoaded(); mMapLoaded = true; diff --git a/libraries/map-custom/src/main/res/raw/selfbus.n3d b/libraries/map-custom/src/main/res/raw/selfbus.n3d new file mode 100644 index 0000000000..0d0cd7d9d5 Binary files /dev/null and b/libraries/map-custom/src/main/res/raw/selfbus.n3d differ