[dev_arch_opt_3.0]

[Change]
[
1、修改底盘数据Gnss回调为定位回调
2、增加WGS84转GCJ02高德坐标系方法
3、增加底盘数据转换为GCJ02坐标系后的回调
]

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2023-01-11 19:28:34 +08:00
parent 4674124add
commit 193454cc6c
21 changed files with 351 additions and 214 deletions

View File

@@ -10,6 +10,7 @@ import android.widget.FrameLayout;
import androidx.annotation.Nullable;
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger;
import com.zhidaoauto.map.sdk.open.view.MapAutoView;
/**
* @author congtaowang
@@ -33,27 +34,24 @@ public class MogoMapView extends MogoBaseMapView implements ILifeCycle {
super(context, attrs, defStyleAttr);
}
private boolean mIsVrMode = false;
private MapAutoView mapAutoView;
@Override
protected void addMapView(Context context) {
mMapView = MogoMapDelegateFactory.getMapView(context);
if (mMapView != null) {
if (mapAutoView == null) {
mapAutoView = new MapAutoView(context);
}
if (mMapView == null) {
mMapView = new AMapViewWrapper(mapAutoView);
final View mapView = mMapView.getMapView();
if (mapView != null) {
addView(mapView, new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
} else {
CallerLogger.INSTANCE.e(TAG, "create MapView instance failed.");
}
} else {
CallerLogger.INSTANCE.e(TAG, "create IMogoMapView instance failed.");
}
}
public boolean isVrMode() {
return mIsVrMode;
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);