[6.0.0] fix jira bug

This commit is contained in:
zhongchao
2023-08-29 18:38:53 +08:00
parent b1af886d44
commit cfd0a4b410

View File

@@ -161,10 +161,6 @@ public class AMapViewWrapper implements IMogoMapView,
}
private void initListeners() {
MapAutoViewHelper options = mMapView.getMapAutoViewHelper();
if (options != null) {
options.setScaleVRMode(true);
}
mMapView.setOnMarkClickListener(this);
mMapView.setOnMapLoadedListener(this);
mMapView.setOnMapTouchListener(this);
@@ -724,6 +720,12 @@ public class AMapViewWrapper implements IMogoMapView,
public void onMapLoaded() {
CallerLogger.i(M_MAP + TAG, "autoop--onMapLoaded: ");
if (checkAMapView()) {
MapAutoViewHelper options = mMapView.getMapAutoViewHelper();
if (options != null) {
options.setScaleVRMode(true);
}else{
CallerLogger.i(M_MAP + TAG, "autoop--getMapAutoViewHelper is null");
}
CameraPosition cameraPosition = mMapView.getMapAutoViewHelper().getCameraPosition();
MogoMapListenerHandler.Companion.getMogoMapListenerHandler().onMapChanged(ObjectUtils.fromAMap(cameraPosition.getTarget()),
cameraPosition.getZoom(),