修复缩放为2D模式的bug

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2022-02-15 17:11:00 +08:00
parent c17927fb72
commit 86f5c2e212
2 changed files with 1 additions and 21 deletions

View File

@@ -130,6 +130,7 @@ public class AMapViewWrapper implements IMogoMapView,
if (options != null) {
//设置手势是否可以缩放 isCanZoom true 可缩放 false 不可缩放
options.setZoomGesturesEnabled(true);
options.setScaleVRMode(true);
// 设置自车的图片对象
//options.setMyLocationStyle(options.getMyLocationStyle().myLocationIcon(DEFAULT_OPTION.getCarCursorRes()));
}
@@ -335,24 +336,6 @@ public class AMapViewWrapper implements IMogoMapView,
moveToCenter(latLng, true);
}
private void setUIMode(EnumMapUI ui) {
this.mCurrentCarUIMode = ui;
if (mMapView.getMapAutoViewHelper() != null) {
switch (ui) {
case CarUp_2D:
case CarUp_3D:
mMapView.getMapAutoViewHelper().setMapViewPerspective(MapAutoApi.MAP_PERSPECTIVE_UP_CAR);
break;
case NorthUP_2D:
if (mCurrentUI == EnumMapUI.Type_VR) {
return;
}
mMapView.getMapAutoViewHelper().setMapViewPerspective(MapAutoApi.MAP_PERSPECTIVE_UP_NORTH);
break;
}
}
}
private boolean checkAMapView() {
if (mMapView == null || mMapView.getMapAutoViewHelper() == null) {
Logger.e(TAG, "自研mapView实例为空请检查");