修改定位icon设置

This commit is contained in:
jiaguofeng
2020-06-29 17:05:58 +08:00
parent 6d82aea49a
commit 7d71476bfa

View File

@@ -614,20 +614,13 @@ public class AMapViewWrapper implements IMogoMapView, IMogoMapUIController, Loca
if (!checkAMapView()) {
return;
}
// AMapNaviViewOptions options = mMapView.getViewOptions();
// if ( options != null && mCarCursorOption.getNaviCursorRes() != 0 ) {
// options.setCarBitmap( BitmapFactory.decodeResource( getContext().getResources(), mCarCursorOption.getNaviCursorRes() ) );
// } else {
// options.setCarBitmap( BitmapFactory.decodeResource( getContext().getResources(), DEFAULT_OPTION.getNaviCursorRes() ) );
// }
// mMapView.setViewOptions( options );
if (mMapView.getMapAutoViewHelper() == null) {
return;
}
MyLocationStyle style = mMapView.getMapAutoViewHelper().getMyLocationStyle();
if (mCarCursorOption.getCarCursorBmp() != null && !mCarCursorOption.getCarCursorBmp().isRecycled()) {
// style.myLocationIcon( BitmapDescriptorFactory.fromBitmap( mCarCursorOption.getCarCursorBmp() ) );
style.myLocationIcon(mCarCursorOption.getCarCursorBmp());
} else {
if (mCarCursorOption.getCarCursorRes() != 0) {
style.myLocationIcon(mCarCursorOption.getCarCursorRes());
@@ -650,7 +643,7 @@ public class AMapViewWrapper implements IMogoMapView, IMogoMapUIController, Loca
@Override
public void changeBearing(float bearing) {
if (checkAMapView()) {
// mMapView.getMap().moveCamera( CameraUpdateFactory.changeBearing( bearing ) );
mMapView.getMapAutoViewHelper().setMapViewRotation(bearing);
}
}