Revert "8.0.15 回退hdmap到2.0.0.18 不再给工控机传灯态信息"
This reverts commit 4419a315
This commit is contained in:
@@ -31,6 +31,6 @@ class AsyncDataToAutopilotServer private constructor() : IMoGoTrafficLightListen
|
||||
|
||||
override fun onTrafficLightStatus(trafficLightResult: TrafficLightResult) {
|
||||
val autopilotControlCmdParameter = AutopilotControlCmdParameter("light", trafficLightResult)
|
||||
// CallerAutoPilotManager.sendDataToAutopilot(GsonUtils.toJson(autopilotControlCmdParameter))
|
||||
CallerAutoPilotManager.sendDataToAutopilot(GsonUtils.toJson(autopilotControlCmdParameter))
|
||||
}
|
||||
}
|
||||
@@ -166,9 +166,6 @@ public class SmallMapDirectionView
|
||||
@Override
|
||||
public void onLocationChanged(@Nullable MogoLocation location) {
|
||||
//Logger.d(TAG, "onCarLocationChanged2 :" + location.getLatitude()+":"+location.getLongitude());
|
||||
if (location == null){
|
||||
return;
|
||||
}
|
||||
LatLng currentLatLng = new LatLng(location.getLatitude(), location.getLongitude());
|
||||
//更新车辆位置
|
||||
if (mCarMarker != null) {
|
||||
|
||||
@@ -80,7 +80,7 @@ MOGO_TRAFFICLIVE_VERSION=1.3.15
|
||||
MOGO_LOCATION_VERSION=1.3.15
|
||||
######## MogoAiCloudSDK Version ########
|
||||
# 自研地图
|
||||
MAP_SDK_VERSION=2.0.0.18
|
||||
MAP_SDK_VERSION=2.0.0.20
|
||||
# websocket
|
||||
WEBSOCKET_VERSION=1.1.7
|
||||
## 产品库必备配置,产品库自动对versionCode和versionName版本进行升级
|
||||
|
||||
@@ -800,18 +800,18 @@ public class AMapViewWrapper implements IMogoMapView,
|
||||
}
|
||||
|
||||
|
||||
// @Override
|
||||
// public void onMapInit() {
|
||||
// Logger.i(TAG, "autoop--onMapInit: ");
|
||||
// MogoMapListenerHandler.getInstance().onMapLoaded();
|
||||
// }
|
||||
@Override
|
||||
public void onMapInit() {
|
||||
Logger.i(TAG, "autoop--onMapInit: ");
|
||||
MogoMapListenerHandler.getInstance().onMapLoaded();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMapLoaded() {
|
||||
Logger.i(TAG, "autoop--onMapLoaded: ");
|
||||
MapAutoApi.INSTANCE.getMyLocationStyle().myLocationIcon(HdMapBuildConfig.currentCarVrIconRes, true); //修改自车模型,未来需区分车的类型
|
||||
//mMapView.getMapAutoViewHelper().setRenderFrequency(true, 50);// 地图刷新频率
|
||||
MogoMapListenerHandler.getInstance().onMapLoaded();
|
||||
//MogoMapListenerHandler.getInstance().onMapLoaded();
|
||||
mMapLoaded = true;
|
||||
CameraPosition cameraPosition = mMapView.getMapAutoViewHelper().getCameraPosition();
|
||||
Trace.beginSection("timer.onCameraChangeFinish");
|
||||
|
||||
@@ -119,22 +119,21 @@ public class RouteOverlayDrawer {
|
||||
for (MogoLatLng latLng : routeList) {
|
||||
mPolylinePointList.add(latLng);
|
||||
}
|
||||
// mPolylineColors.clear();
|
||||
mPolylineColors.clear();
|
||||
// mPolylineColors.addAll(ColorUtils.gradientAlpha_("#FF2AAFFD", "#7b2965ED", "#002965ED", mPolylinePointList.size()));
|
||||
long start = System.currentTimeMillis();
|
||||
// List<Integer> list = new ArrayList<>();
|
||||
List<Integer> list = new ArrayList<>();
|
||||
// list = ColorUtils.gradientAlpha("#FF2AAFFD", "#002965ED", mPolylinePointList.size());
|
||||
int[] startColor = ColorUtils.hexToArgb("#FF2AAFFD");
|
||||
int[] endColor = ColorUtils.hexToArgb("#002965ED");
|
||||
// list.add(Color.argb(startColor[0],startColor[1],startColor[2],startColor[3]));
|
||||
// list.add(Color.argb(endColor[0],endColor[1],endColor[2],endColor[3]));
|
||||
list.add(Color.argb(startColor[0],startColor[1],startColor[2],startColor[3]));
|
||||
list.add(Color.argb(endColor[0],endColor[1],endColor[2],endColor[3]));
|
||||
long end = System.currentTimeMillis();
|
||||
Log.d("MogoRouteOverlayManager","get color cost : "+ (end-start));
|
||||
|
||||
// mPolylineColors.addAll(list);
|
||||
mPolylineColors.addAll(list);
|
||||
// 线条粗细,渐变,渐变色值
|
||||
// mPolylineOptions.width(12).useGradient(true).colorValues(mPolylineColors);
|
||||
mPolylineOptions.width(12).useGradient(false).color(Color.argb(startColor[0],startColor[1],startColor[2],startColor[3]));
|
||||
mPolylineOptions.width(12).useGradient(true).colorValues(mPolylineColors);
|
||||
if (mMoGoPolyline == null || mMoGoPolyline.isDestroyed()){
|
||||
mPolylineOptions.points(mPolylinePointList);
|
||||
mMoGoPolyline = mogoOverlayManager.addPolyline(mPolylineOptions);
|
||||
|
||||
Reference in New Issue
Block a user