diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/view/SmallMapView.kt b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/view/SmallMapView.kt index 569b4c00eb..60f7bb459d 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/view/SmallMapView.kt +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/smp/view/SmallMapView.kt @@ -44,7 +44,7 @@ class SmallMapView @JvmOverloads constructor( private var mCarMarker: Marker? = null private var mStartMarker: Marker? = null private var mEndMarker: Marker? = null - private val zoomLevel = 14 + private val zoomLevel = 17 private val mCoordinatesLatLng: MutableList = ArrayList() private var mPolyline: Polyline? = null private var mCameraUpdate: CameraUpdate? = null @@ -299,8 +299,12 @@ class SmallMapView @JvmOverloads constructor( } } val cameraPosition: CameraPosition = - CameraPosition.Builder().target(mCarMarker!!.position).tilt(0f).bearing(bearing) - .zoom(zoomLevel.toFloat()).build() + CameraPosition.Builder() + .target(mCarMarker!!.position) + .tilt(0f) + .bearing(bearing) + .zoom(zoomLevel.toFloat()) + .build() mAMap?.moveCamera(CameraUpdateFactory.newCameraPosition(cameraPosition)) } diff --git a/libraries/mogo-map/src/main/java/com/mogo/map/AMapViewWrapper.java b/libraries/mogo-map/src/main/java/com/mogo/map/AMapViewWrapper.java index 80aa628eb3..77df0450d2 100644 --- a/libraries/mogo-map/src/main/java/com/mogo/map/AMapViewWrapper.java +++ b/libraries/mogo-map/src/main/java/com/mogo/map/AMapViewWrapper.java @@ -854,21 +854,21 @@ public class AMapViewWrapper implements IMogoMapView, @Override public void stepInVrMode(boolean isDayMode) { - try { - int mapStyle; - if (isDayMode) { - mCurrentUI = EnumMapUI.MAP_STYLE_DAY_VR; - mapStyle = MapAutoApi.MAP_STYLE_DAY_VR; - } else { - mCurrentUI = EnumMapUI.MAP_STYLE_NIGHT_VR; - mapStyle = MapAutoApi.MAP_STYLE_NIGHT_VR; - } - if (mMapView != null && mMapView.getMapAutoViewHelper() != null) { - mMapView.getMapAutoViewHelper().setMapStyle(mapStyle); - } - } catch (Exception e) { - e.printStackTrace(); - } +// try { +// int mapStyle; +// if (isDayMode) { +// mCurrentUI = EnumMapUI.MAP_STYLE_DAY_VR; +// mapStyle = MapAutoApi.MAP_STYLE_DAY_VR; +// } else { +// mCurrentUI = EnumMapUI.MAP_STYLE_NIGHT_VR; +// mapStyle = MapAutoApi.MAP_STYLE_NIGHT_VR; +// } +// if (mMapView != null && mMapView.getMapAutoViewHelper() != null) { +// mMapView.getMapAutoViewHelper().setMapStyle(mapStyle); +// } +// } catch (Exception e) { +// e.printStackTrace(); +// } } @Override