remove networkold api and union the adasapis and adasstatus lat lon data
This commit is contained in:
@@ -38,7 +38,6 @@ import com.mogo.map.search.geo.MogoGeocodeResult;
|
||||
import com.mogo.map.search.geo.MogoRegeocodeResult;
|
||||
import com.mogo.map.search.geo.query.MogoRegeocodeQuery;
|
||||
import com.mogo.module.common.constants.DataTypes;
|
||||
import com.mogo.module.common.datacenter.SnapshotLocationDataCenter;
|
||||
import com.mogo.module.common.dialog.WMDialog;
|
||||
import com.mogo.module.common.drawer.IdentifyDataDrawer;
|
||||
import com.mogo.module.common.drawer.SnapshotSetDataDrawer;
|
||||
@@ -712,7 +711,6 @@ public class MockIntentHandler implements IntentHandler {
|
||||
JSONObject jo = new JSONObject(line);
|
||||
//改变rtk定位数据,触发自车移动
|
||||
MogoMapUIController.getInstance().syncLocation2Map(jo);
|
||||
SnapshotLocationDataCenter.getInstance().syncAdasLocationInfo(jo);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -127,21 +127,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
// });
|
||||
// }
|
||||
|
||||
/*
|
||||
* 云端下发数据与adas定频传输数据均发送至同一Handler线程处理
|
||||
*/
|
||||
// 云端下发的数据
|
||||
MoGoAiCloudRealTime.registerOnMsgListener(new IMogoCloudOnMsgListener() {
|
||||
@Override
|
||||
public void onMsgSend(long id) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMsgReceived(SocketDownData.LauncherSnapshotProto mogoSnapshotSetData) {
|
||||
DebugConfig.setStatus(DebugConfig.sDownloadSnapshot, true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2,11 +2,8 @@ package com.mogo.module.service.network;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.alibaba.android.arouter.launcher.ARouter;
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths;
|
||||
import com.mogo.eagle.core.network.MoGoRetrofitFactory;
|
||||
import com.mogo.module.common.constants.HostConst;
|
||||
import com.mogo.service.network.IMogoNetwork;
|
||||
|
||||
|
||||
/**
|
||||
@@ -22,7 +19,6 @@ public class ZhidaoRefreshModel {
|
||||
private final ZhidaoApiService mRefreshApiService;
|
||||
|
||||
public ZhidaoRefreshModel(Context context) {
|
||||
IMogoNetwork network = (IMogoNetwork) ARouter.getInstance().build(MogoServicePaths.PATH_SERVICES_NETWORK).navigation(context);
|
||||
this.mRefreshApiService = MoGoRetrofitFactory.getInstance(HostConst.CARLIFE_HOST).create(ZhidaoApiService.class);
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ public class MogoRouteOverlayManager implements
|
||||
}
|
||||
|
||||
private void intiDrawer() {
|
||||
RouteOverlayDrawer.getInstance(mContext).initdraw();
|
||||
RouteOverlayDrawer.getInstance(mContext).initDraw();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -8,9 +8,9 @@ import android.graphics.BitmapFactory;
|
||||
import android.graphics.Color;
|
||||
|
||||
import com.mogo.eagle.core.data.map.MogoLatLng;
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager;
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger;
|
||||
import com.mogo.eagle.core.utilcode.util.ColorUtils;
|
||||
import com.mogo.eagle.core.utilcode.util.ToastUtils;
|
||||
import com.mogo.map.MogoMarkerManager;
|
||||
import com.mogo.map.MogoOverlayManager;
|
||||
import com.mogo.map.marker.IMogoMarker;
|
||||
@@ -18,7 +18,6 @@ import com.mogo.map.marker.MogoMarkerOptions;
|
||||
import com.mogo.map.overlay.IMogoOverlayManager;
|
||||
import com.mogo.map.overlay.IMogoPolyline;
|
||||
import com.mogo.map.overlay.MogoPolylineOptions;
|
||||
import com.mogo.module.common.MogoApisHandler;
|
||||
import com.mogo.module.service.R;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -30,16 +29,16 @@ public class RouteOverlayDrawer {
|
||||
|
||||
private IMogoPolyline mMoGoPolyline;
|
||||
// 连接线参数
|
||||
private MogoPolylineOptions mPolylineOptions;
|
||||
private final MogoPolylineOptions mPolylineOptions;
|
||||
// 线路径集合
|
||||
private List<MogoLatLng> mPolylinePointList;
|
||||
private final List<MogoLatLng> mPolylinePointList;
|
||||
// 渐变色
|
||||
private List<Integer> mPolylineColors;
|
||||
private Context mContext;
|
||||
private final List<Integer> mPolylineColors;
|
||||
private final Bitmap endingBitmap;
|
||||
private final Context mContext;
|
||||
IMogoOverlayManager mogoOverlayManager;
|
||||
private IMogoMarker endMarker;
|
||||
private MogoMarkerOptions markderOptions;
|
||||
private Bitmap endingBitmap;
|
||||
private MogoMarkerOptions markerOptions;
|
||||
private static volatile RouteOverlayDrawer sInstance;
|
||||
private static final String markerType = "route_ending";
|
||||
|
||||
@@ -81,8 +80,8 @@ public class RouteOverlayDrawer {
|
||||
if (endMarker != null) {
|
||||
return;
|
||||
}
|
||||
if (markderOptions == null) {
|
||||
markderOptions = new MogoMarkerOptions()
|
||||
if (markerOptions == null) {
|
||||
markerOptions = new MogoMarkerOptions()
|
||||
.matchOnRoadSide(true)
|
||||
.gps(true)
|
||||
.icon(endingBitmap)
|
||||
@@ -92,9 +91,9 @@ public class RouteOverlayDrawer {
|
||||
.zIndex(30001);
|
||||
// .object(markerShowEntity)
|
||||
}
|
||||
markderOptions.latitude(lat).longitude(lon);
|
||||
markerOptions.latitude(lat).longitude(lon);
|
||||
//CallerLogger.INSTANCE.d(M_OLD_ROUTE + TAG,"addEndingMarker-"+lat+":"+lon);
|
||||
endMarker = MogoMarkerManager.getInstance(mContext).addMarker(markerType, markderOptions);
|
||||
endMarker = MogoMarkerManager.getInstance(mContext).addMarker(markerType, markerOptions);
|
||||
// if (DebugConfig.isDebug()){
|
||||
// ToastUtils.showLong("绘制终点marker,"+lat+":"+lon);
|
||||
// }
|
||||
@@ -152,9 +151,11 @@ public class RouteOverlayDrawer {
|
||||
CallerLogger.INSTANCE.d(M_OLD_ROUTE + TAG, "drawTrajectoryList cost : " + (drawend - drawstart));
|
||||
}
|
||||
|
||||
public void initdraw() {
|
||||
public void initDraw() {
|
||||
mPolylinePointList.clear();
|
||||
MogoLatLng latLng = new MogoLatLng(MogoApisHandler.getInstance().getApis().getAdasControllerApi().getLastLat(), MogoApisHandler.getInstance().getApis().getAdasControllerApi().getLastLon());
|
||||
MogoLatLng latLng = new MogoLatLng(
|
||||
CallerAutoPilotStatusListenerManager.INSTANCE.getCurWgs84Lat(),
|
||||
CallerAutoPilotStatusListenerManager.INSTANCE.getCurWgs84Lon());
|
||||
mPolylinePointList.add(latLng);
|
||||
mPolylinePointList.add(latLng);
|
||||
mPolylineColors.clear();
|
||||
|
||||
Reference in New Issue
Block a user