{"version":"0.1.0","code":"0000","result":true,"message":"处理成功","errdetail":"","timestamp":1671518031897,"data":{"id":71712895,"title":"6.4.4导航规划业务图层控制器","slug":"uhut0s","format":"lake","bookId":26046811,"body":null,"body_draft":null,"body_html":"
导航规划业务图层控制器主要是控制关于路径规划、导航中的业务图层,比如路线、起终点、交通事件、路线上的箭头、路线上的天气服务区等业务图层。另外,很多业务图层是和路线相关的,在绘制路线时触发它们的业务图层绘制,比如电量耗尽点图层。而路线相关单独在路线绘制中介绍。
点击后:
聊天室风格(从V560开始,默认不开启)
术语解释:设计运行范围(OperationalDesign Domain,ODD),指自动驾驶系统被设计的起作用的条件及适用范围,车厂会根据天气环境、道路情况(直路、弯路的半径)、车速、车流量等信息作出测定,采集在安全的环境之内的道路数据
参考概述
com.autonavi.gbl.layer.model.BizRouteType
分类 | 二级分类 | 业务图层 | 枚举类型 | 图元 | 对应图元Item | 是否内聚 | 是否动态纹理 |
导航规划 | 路线绘制 | 路线起点图层 | BizRouteTypeStartPoint | 点图元 | RoutePathPointItem | 否 | 否 |
路线终点图层 | BizRouteTypeEndPoint | 点图元 | RoutePathPointItem | 否 | 否 | ||
路线途径点图层 | BizRouteTypeViaPoint | 点图元 | RoutePathPointItem | 否 | 否 | ||
路线末梢点图层 | BizRouteTypeEndPathPoint | 点图元 | PointLayerItem | 否 | 否 | ||
对比路线Tip 图层 | BizRouteTypeCompareTip | 点图元 | RouteCompareTipsLayerItem | 否 | 是 | ||
路线上路径图层 | BizRouteTypePath | 路线图元 | RouteLayerItem | 否 | 否 | ||
拥堵事件图层(路线外) | BizRouteTypeJamPoint | 点图元 | RouteJamPointLayerItem | 否 | 否 | ||
拥堵路线图层 | BizRouteTypeJamLine | 线图元 | RouteJamLineLayerItem | 否 | 否 | ||
路线上电子眼 图层 | BizRouteTypeLittleCamera | 点图元 | PointLayerItem | 否 | 否 | ||
路线上红绿灯图层 | BizRouteTypeTrafficLight | 点图元 | PointLayerItem | 否 | 否 | ||
路线上封路事件图层 | BizRouteTypeTrafficBlock | 点图元 | RouteBlockLayerItem | 否 | 否 | ||
路线外封路事件图层 | BizRouteTypeTrafficBlockOuter | 点图元 | RouteBlockLayerItem | 否 | 否 | ||
路线上事件Tip图层 | BizRouteTypeTrafficEventTip | 点图元 | RouteTrafficEventTipsLayerItem | 否 | 否 | ||
禁行图层 | BizRouteTypeForbidden | 点图层 | RouteForbiddenLayerItem | 否 | 无 | ||
路线上能源耗尽点图层 | BizRouteTypeEnergyEmptyPoint | 点图元 | RoutePathPointItem | 否 | 否 | ||
路线上剩余电量点图层 | BizRouteTypeEnergyRemainPoint | 点图元 | RoutePathPointItem | 否 | 否 | ||
电量关键点图层 | BizRouteTypeEnergyKeyPoint | 点图元 | PointLayerItem | 否 | 是 | ||
深绿路况扎标图层 | BizRouteTypePathTMCPoint | 点图元 | PathTMCPointLayerItem | ||||
鹰眼图层 | 鹰眼路线起点图层 | BizRouteTypeEagleStartPoint | 点图元 | RoutePathPointItem | 否 | 否 | |
鹰眼路线终点图层 | BizRouteTypeEagleEndPoint | 点图元 | RoutePathPointItem | 否 | 否 | ||
鹰眼图路线的途经点图层 | BizRouteTypeEagleViaPoint | 点图元 | RoutePathPointItem | 否 | 否 | ||
鹰眼路线路径图层 | BizRouteTypeEaglePath | 路线图元 | RouteLayerItem | 否 | 否 | ||
其他图层 | 避让路线图层 | BizRouteTypeDodgeLine | 线图元 | LineLayerItem | 否 | 否 | |
路线上天气图层 | BizRouteTypeWeather | 点图元 | RouteWeatherLayerItem | 否 | 否 | ||
服务区扎标图层 | BizRouteTypeRestArea | 点图元 | RouteRestAreaLayerItem | 否 | 是 | ||
途经路扎标图层 | BizRouteTypeViaRoad | 点图元 | RouteViaRoadLayerItem | 否 | 是 | ||
路线上箭头图层 | BizRouteTypeArrow | 箭头图元 | ArrowLayerItem | 是 | 否 | ||
导航拥堵时长图层 | BizRouteTypeGuideCongestion | 点图元 | GuideCongestionLayerItem | 是 | 是 | ||
多备选标签图层 | BizRouteTypeGuideLabel | 点图元 | GuideLabelLayerItem | 是 | 是 | ||
路线编号标签图层 | BizRouteTypePathNumberPoint | 点图元 | RouteNumberLayerItem | 是 | 否 | ||
路径路牌图层 | BizRouteTypeGuidePathBoard | 点图元 | PathBoardLayerItem | 是 | 是 | ||
导航动态交通事件图层 | BizRouteTypeGuideEtaEvent | 点图元 | GuideETAEventLayerItem | 是 | 是 | ||
导航连接线线图层 | BizRouteTypeStartEndLine | 线图元 | LineLayerItem | 是 | 否 | ||
导航连接线终点图层 | BizRouteTypeStartEndPoint | 点图元 | PointLayerItem | 是 | 否 | ||
三急一超图层 | BizRouteTypeThreeUrgent | 点图元 | ThreeUrgentLayerItem | 否 | 否 | ||
ODD(设计运行范围)线 | BizRouteTypeOddLine | 线图元 | LineLayerItem | 否 | 否 | ||
ODD(设计运行范围)点 | BizRouteTypeOddPoint | 点图元 | OddLayerItem | 否 | 否 | ||
途经路ETA剩余电量图层 | BizRouteTypeViaETA | 点图元 | ViaETALayerItem | 否 | 是 | ||
导航熟悉路线标签 | BizRouteTypeGuideFamiliarRoute | 点图元 | GuideFamiliarRouteLayerItem | 是 | 否 | ||
室内停车场甬道标签图层 | BizRouteTypeRouteIndoorPark | 点图元 | RouteIndoorParkLayerItem | 是 | 否 | ||
室内停车场终点标签图层 | BizRouteTypeRouteIndoorParkEnd | 点图元 | RouteIndoorParkEndLayerItem | 是 | 否 | ||
行前拥堵气泡图层 | BizRouteTypeRouteJamBubbles | 点图元 | RouteJamBubblesLayerItem | 是 | 是 |
备注:以上二级分类中"路线绘制"包含的业务图层是在绘制路线时一起触发,并没有独立的业务接口,具体参见路线绘制
//获取路线图层实例\nBaseLayer com.autonavi.gbl.layer.BizGuideRouteControl.getRouteLayer(int type)\n\n//更新路线上的箭头\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.updatePathArrow()\n\n//设置路线是否对比模式\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.setCompareRouteMode(boolean compareMode)\n\n//更新电量关键点信息\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.updateEnergyKeyInfo(ArrayList<BizEnergyKeyInfo> energyKeyInfos)\n\n//导航拥堵时长信息\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.updateGuideCongestionBoard(NaviCongestionInfo naviCongestionInfo)\n\n//动态导航下发的拥堵、封路、禁行、限行交通事件图层业务\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.updateGuideETAEvent(BizGuideETAEventInfo info)\n\n//更新Odd信息\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.updateOddInfo(ArrayList<BizOddInfo> oddInfoList)\n\n//更新避让路线图层\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.updateRouteDodgeLine(int groupSegIndex)\n\n//更新服务区扎标信息\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.updateRouteRestAreaInfo(ArrayList<BizRouteRestAreaInfo> restAreaInfos)\n\n//更新途经路扎标信息\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.updateRouteViaRoadInfo(ArrayList<BizRouteViaRoadInfo > viaRoadInfos)\n\n//设置彩虹线绘制范围,用于象限的计算\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.updateThreeUrgentInfo(ArrayList<BizThreeUrgentInfo> ThreeUrgentInfos)\n\n//更新TMC数据到路线上(BL已内聚,HMI接收到TMC信息时只需调用UpdatePaths重绘路线)\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.updateTmcLightBar(ArrayList<LightBarInfo> lightBarInfos)\n \n//显示第几个中途点ETA和剩余电量,默认显示第一个(如果等于-1,则显示全部途经点,包括服务器推荐的途径充电站)\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.showViaETAByIndex(int viaIndex) \n\n//更新途经点ETA剩余电量信息可显示范围\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.updateViaETAPreviewRect(RectDouble previewRect) \n\n//设置熟悉路线\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.setFamiliarRoute(PathInfo pathInfo)\n\n//楼层切换\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.setParkFloor(int floor)\n\n//更新更新行前拥堵气泡显示范围\nvoid com.autonavi.gbl.layer.BizGuideRouteControl.updateRouteJamBubblesPreviewRect(RectDouble previewRect)
说明:函数详情,请复制函数名称到在线API搜索
guideRouteControl.updateRouteDodgeLine(0)//绘制第0段路避让路线
// 分段预览时移到段\n guideRouteControl.moveToPathSegment(index);
/*< pItems 源自路线服务请求沿途天气数据 */\n final ArrayList<BizRouteWeatherInfo> weatherInfos = new ArrayList<>();\n for (int i = 0; i < pItems.size(); i++) {\n BizRouteWeatherInfo info = new BizRouteWeatherInfo();\n info.weatherLabelInfo = pItems.get(i);\n weatherInfos.add(info);\n }\n /*< 绘制沿途天气扎标标 */\n guideRouteControl.updateRouteWeatherInfo(weatherInfos);
ArrayList<BizRouteRestAreaInfo> restAreaInfos = new ArrayList<>();\n BizRouteRestAreaInfo routeRestAreaInfo = new BizRouteRestAreaInfo();\n routeRestAreaInfo.restAreaLabelInfo.pos.lon = 116.356796;\n routeRestAreaInfo.restAreaLabelInfo.pos.lat = 39.939559;\n restAreaInfos.add(routeRestAreaInfo);\n routeRestAreaInfo.restAreaLabelInfo.pos.lon = 116.356093;\n routeRestAreaInfo.restAreaLabelInfo.pos.lat = 39.938857;\n restAreaInfos.add(routeRestAreaInfo);\n routeRestAreaInfo.restAreaLabelInfo.pos.lon = 116.357172;\n routeRestAreaInfo.restAreaLabelInfo.pos.lat = 39.940276;\n restAreaInfos.add(routeRestAreaInfo);\n mGuideRouteControl.updateRouteRestAreaInfo(restAreaInfos);
ArrayList<BizRouteViaRoadInfo> viaRoadInfos = new ArrayList<>();\n BizRouteViaRoadInfo routeViaRoadInfo = new BizRouteViaRoadInfo();\n routeViaRoadInfo.viaRoadLabelInfo.point.lon = 116.356796;\n routeViaRoadInfo.viaRoadLabelInfo.point.lat = 39.939559;\n viaRoadInfos.add(routeViaRoadInfo);\n\n BizRouteViaRoadInfo routeViaRoadInfo2 = new BizRouteViaRoadInfo();\n routeViaRoadInfo2.viaRoadLabelInfo.point.lon = 116.356093;\n routeViaRoadInfo2.viaRoadLabelInfo.point.lat = 39.938857;\n viaRoadInfos.add(routeViaRoadInfo2);\n\n BizRouteViaRoadInfo routeViaRoadInfo3 = new BizRouteViaRoadInfo();\n routeViaRoadInfo3.viaRoadLabelInfo.point.lon = 116.357172;\n routeViaRoadInfo3.viaRoadLabelInfo.point.lat = 39.940276;\n viaRoadInfos.add(routeViaRoadInfo3);\n guideRouteControl.updateRouteViaRoadInfo(viaRoadInfos);
\t@Override\n public void INaviObserver.onShowNaviManeuver(ManeuverInfo info) {\n //更新箭头\n ArrayList<Long> segmentCounts = new ArrayList<>();\n segmentCounts.add(info.segmentIndex);//加一个,显示一个\n BizPresenter.getInstance().setPathArrowSegment(segmentCounts);//设置转向箭头要显示导航段\n BizPresenter.getInstance().updatePathArrow();//更新路线上的箭头\n }
/**\n * 添加三急一超图层\n */\n private void addThreeUrgentLayer() {\n ArrayList<BizThreeUrgentInfo> threeUrgentPointList = new ArrayList<>();\n BizThreeUrgentInfo threeUrgentInfo = new BizThreeUrgentInfo();\n threeUrgentInfo.mPos3D.lon = 116.349497;//文大东路52号院\n threeUrgentInfo.mPos3D.lat = 39.950244;\n threeUrgentInfo.id = "1001";\n threeUrgentInfo.mType = ThreeUrgentType.RapidAcceleration; // 三急一超显示类型\n threeUrgentInfo.mPassingSpeed = 80; // 经过时速度\n threeUrgentInfo.mElectronicEyeSpeed = 60; // 电子眼速度\n threeUrgentInfo.mbIsMaxOverSpeedPoint = false; // 是否是最大超速点\n threeUrgentPointList.add(threeUrgentInfo);\n\n BizThreeUrgentInfo threeUrgentInfo1 = new BizThreeUrgentInfo();\n threeUrgentInfo1.mPos3D.lon = 116.358638;//海云轩公寓\n threeUrgentInfo1.mPos3D.lat = 39.948682;\n threeUrgentInfo1.mType = ThreeUrgentType.OverSpeed;\n threeUrgentInfo1.id = "1002";\n threeUrgentInfo1.mPassingSpeed = 120;\n threeUrgentInfo1.mElectronicEyeSpeed = 60;\n threeUrgentInfo1.mbIsMaxOverSpeedPoint = true;\n threeUrgentPointList.add(threeUrgentInfo1);\n\n BizThreeUrgentInfo threeUrgentInfo2 = new BizThreeUrgentInfo();\n threeUrgentInfo2.mPos3D.lon = 116.349948;//中坤大厦\n threeUrgentInfo2.mPos3D.lat = 39.943549;\n threeUrgentInfo2.mType = ThreeUrgentType.RapidDeceleration;\n threeUrgentInfo2.id = "1003";\n threeUrgentInfo2.mPassingSpeed = 120;\n threeUrgentInfo2.mElectronicEyeSpeed = 60;\n threeUrgentInfo2.mbIsMaxOverSpeedPoint = false;\n threeUrgentPointList.add(threeUrgentInfo2);\n\n BizThreeUrgentInfo threeUrgentInfo3 = new BizThreeUrgentInfo();\n threeUrgentInfo3.mPos3D.lon = 116.35687;//成铭大厦\n threeUrgentInfo3.mPos3D.lat = 39.939439;\n threeUrgentInfo3.mType = ThreeUrgentType.SharpTurn;\n threeUrgentInfo3.id = "1004";\n threeUrgentInfo3.mPassingSpeed = 120;\n threeUrgentInfo3.mElectronicEyeSpeed = 60;\n threeUrgentInfo3.mbIsMaxOverSpeedPoint = false;\n threeUrgentPointList.add(threeUrgentInfo3);\n\n ArrayList<Coord3DDouble> vecPointList = new ArrayList<>();\n vecPointList.add(threeUrgentInfo.mPos3D);\n vecPointList.add(threeUrgentInfo1.mPos3D);\n vecPointList.add(threeUrgentInfo2.mPos3D);\n vecPointList.add(threeUrgentInfo3.mPos3D);\n RectDouble rect = new RectDouble();\n //获取四个点的最大区域范围\n BizLayerUtil.getRect(vecPointList, rect);\n\n bizGuideRouteControl.setThreeUrgentDrawRect(rect); //设置绘制范围,用于计算点的飘向\n bizGuideRouteControl.updateThreeUrgentInfo(threeUrgentPointList);\n }
\tODDDrawMode etype = ODDDrawModeNormal;\n //设置显示模式\n bizGuideRouteControl.SetODDDrawMode(etype);\n ArrayList<OddSegInfo> oriOddInfos = new ArrayList<>();\n ArrayList<BizOddInfo> bizOddInfos = new ArrayList<>();\n\n pathInfo.getOddSegInfos(oriOddInfos);\n\n int filterDis = 50;\n for (int i = 0; i < oriOddInfos.size(); i++)\n {\n //过滤掉50米以下的ODD数据\n if (oriOddInfos.get(i).m_OddLen > filterDis * 100)\n {\n BizOddInfo bizOdd = new BizOddInfo();\n bizOdd.oddSegInfo = oriOddInfos.get(i);\n\n ArrayList<Coord2Double<double> > vecPoints = new ArrayList<>();\n pathInfo.getODDPoints(i, vecPoints);\n\n for (int j = 0; j < vecPoints.size(); j++)\n {\n Coord3Double<double> coord = new Coord3Double<>();\n coord.lon = vecPoints.get(j).lon;\n coord.lat = vecPoints.get(j).lat;\n coord.z = 0.0;\n bizOdd.vecPoints.add(coord);\n }\n\n bizOddInfos.push_back(bizOdd);\n }\n }\n\n\tbizGuideRouteControl.updateOddInfo(bizOddInfos);
"point_route_start": {\n "point_layer_item_style": {\n "normal_style": {\n "poi_marker_id": "global_image_bubble_start_day_night",\n "poi_marker_info": "middle_down_x_y"\n }\n }\n },\n "point_route_end": {\n "point_layer_item_style": {\n "normal_style": {\n "poi_marker_id": "global_image_bubble_end_day_night",\n "poi_marker_info": "middle_down_x_y"\n }\n }\n },
"point_route_end_path": {\n "point_layer_item_style": {\n "normal_style": {\n "poi_marker_id": "global_image_end_icon_day_night"\n }\n }\n },
\t"line_route_dodge_line": {\n\t\t\t"line_layer_item_style": {\n\t\t\t\t"priority":0,\n\t\t\t\t"use_cap":1,\n\t\t\t\t"use_color":1,\n\t\t\t\t"draw_cover":1,\n\t\t\t\t"can_be_coveredbylabel":1,\n\t\t\t\t"fill_texture": {\n\t\t\t\t\t"marker_id":"map_frontlr",\n\t\t\t\t\t"marker_info":"",\n\t\t\t\t\t"color":"0xff00baff",\n\t\t\t\t\t"width":32\n\t\t\t\t},\n\t\t\t\t"border_texture": {\n\t\t\t\t\t"marker_id":"map_frontlr",\n\t\t\t\t\t"marker_info":"",\n\t\t\t\t\t"color":"0xff0066ff",\n\t\t\t\t\t"width":40\n\t\t\t\t},\n\t\t\t\t"texture_info": {\n\t\t\t\t\t"x1":0.0,\n\t\t\t\t\t"y1":0.5,\n\t\t\t\t\t"x2":1.0,\n\t\t\t\t\t"y2":0.5,\n\t\t\t\t\t"texture_len":32\n\t\t\t\t},\n\t\t\t\t"cap_texture_info": {\n\t\t\t\t\t"x1":0.0,\n\t\t\t\t\t"y1":0.5,\n\t\t\t\t\t"x2":1.0,\n\t\t\t\t\t"y2":0.75\n\t\t\t\t}\n\t\t\t}\n\t\t},
"point_route_energy_empty": {\n "point_layer_item_style": {\n "normal_style": {\n "poi_marker_id": "id_dynamic"\n }\n }\n }
"point_route_energy_remain": {\n "point_layer_item_style": {\n "normal_style": {\n "poi_marker_id": "id_dynamic"\n }\n }\n }
"arrow_route_arrow_style": {\n "arrow_layer_item_style": {\n "arrow_2d_texture_info": {\n "use_cap": 1,\n "use_color": 1,\n "draw_cover": 1,\n "can_be_coveredbylabel": 1,\n "solid_arrow_in2dmap": 1,\n "fill_texture": {\n "marker_id": "arrow_line_inner",\n "color": "0xffffffff",\n "width": 48\n },\n "border_texture": {\n "marker_id": "arrow_line_outer",\n "color": "0xff0b6fc4",\n "width": 40\n },\n "texture_info": {\n "x1": 0.12,\n "y1": 0.77,\n "x2": 0.88,\n "y2": 0.77,\n "texture_len": 0\n },\n "cap_texture_info": {\n "x1": 0.12,\n "y1": 0.85,\n "x2": 0.88,\n "y2": 1\n }\n },\n "arrow_3d_texture_info": {\n "draw_3d_arrow": 1,\n "bias_width": 0,\n "auto_zoomer_width": 0,\n "solid_res_marker_id": "threed_arrow_line_shadow",\n "solid_top_face_color": "0xfff0f9ff",\n "solid_side_face_color": "0xff2c428a",\n "solid_shadow_color": "0x4d000000",\n "solid_height": 5,\n "solid_thickness": 10,\n "solid_border_line_top_line_width": 3,\n "solid_border_line_side_line_width": 0,\n "solid_border_line_bottom_line_width": 0,\n "solid_border_line_top_line_color": "0xff506cc9",\n "solid_border_line_side_line_color": "0xff1c3575",\n "solid_border_line_bottom_line_color": "0xff1c3575",\n "solid_arrow_header_param": {\n "header_angle": 55,\n "header_width_rate": 2.8\n },\n "solid_texture_info": {\n "x1": 0.3,\n "y1": 0.77,\n "x2": 0.7,\n "y2": 0.77,\n "texture_len": 0.01\n },\n "solid_cap_texture_info": {\n "x1": 0.3,\n "y1": 0.8,\n "x2": 0.7,\n "y2": 1.0\n },\n "solid_header_texture_info": {\n "x1": 0.12,\n "y1": 0.75,\n "x2": 0.88,\n "y2": 0.0\n }\n }\n }\n },
"point_route_energy_keypoint": {\n "point_layer_item_style": {\n "normal_style": {\n "poi_marker_id": "id_dynamic"\n }\n }\n },
"route_avoid_jam_line": {\n "line_layer_item_style": {\n "use_cap": 1,\n "use_color": 0,\n "draw_cover": 1,\n "can_be_coveredbylabel": 0,\n "fill_texture": {\n "marker_id": "map_lr_bad",\n "color":"0xff2578e0",\n "width": 12\n }\n }\n },
"guide_destination_over_speed_point": {\n\t\t\t"point_layer_item_style": {\n\t\t\t\t"normal_style": {\n\t\t\t\t\t"poi_marker_id": "id_dynamic"\n\t\t\t\t},\n\t\t\t\t"focus_style": {\n\t\t\t\t\t"poi_marker_id": "id_dynamic_focus"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t"guide_destination_sharp_turn_point": {\n\t\t\t"point_layer_item_style": {\n\t\t\t\t"normal_style": {\n\t\t\t\t\t"poi_marker_id": "global_image_fast_turn_day_night"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t"guide_destination_rapid_acceleration_point": {\n\t\t\t"point_layer_item_style": {\n\t\t\t\t"normal_style": {\n\t\t\t\t\t"poi_marker_id": "global_image_fast_accelerate_day_night"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t"guide_destination_rapid_deceleration_point": {\n\t\t\t"point_layer_item_style": {\n\t\t\t\t"normal_style": {\n\t\t\t\t\t"poi_marker_id": "global_image_fast_slow_down_day_night"\n\t\t\t\t}\n\t\t\t}\n\t\t}
\t "point_alongroute_odd": {\n\t\t\t"point_layer_item_style": {\n\t\t\t\t"normal_style": {\n\t\t\t\t\t"poi_marker_id": "global_image_odd_icon_day_night",\n\t\t\t\t\t"poi_marker_info": "along_search_x_y"\n\t\t\t\t},\n\t\t\t\t"focus_style": {\n\t\t\t\t\t"poi_marker_id": "global_image_odd_icon_big_day_night",\n\t\t\t\t\t"poi_marker_info": "along_search_x_y"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n "odd_line":{\n\t\t\t"line_layer_item_style":{\n\t\t\t\t"priority":0,\n\t\t\t\t"use_cap":0,\n\t\t\t\t"use_color":1,\n\t\t\t\t"draw_cover":1,\n\t\t\t\t"can_be_coveredbylabel":0,\n\t\t\t\t"odd_width":8,\n\t\t\t\t"fill_texture":{\n\t\t\t\t\t"marker_id":"map_lr",\n\t\t\t\t\t"marker_info":"",\n\t\t\t\t\t"color":"0xff51b3ff",\n\t\t\t\t\t"width":80\n\t\t\t\t},\n\t\t\t\t"border_texture":{\n\t\t\t\t\t"marker_id":"map_lr",\n\t\t\t\t\t"marker_info":"",\n\t\t\t\t\t"color":"0xff0f8df3",\n\t\t\t\t\t"width":90\n\t\t\t\t},\n\t\t\t\t"texture_info":{\n\t\t\t\t\t"x1":0.0,\n\t\t\t\t\t"y1":0.5,\n\t\t\t\t\t"x2":1.0,\n\t\t\t\t\t"y2":0.5,\n\t\t\t\t\t"texture_len":32\n\t\t\t\t},\n "passed_color_info":{\n "passed_color":"0xff365167",\n "passed_side_color":"0xff365167"\n }\t\t \n\t\t\t}\n\t\t}
"point_route_jam_bubbles_left_up": {\n "point_layer_item_style": {\n "normal_style": {\n "poi_marker_id": "route_jam_bubbles_left_up.xml",\n "poi_marker_info":"marker_info_route_jam_bubbles_left_up"\n }\n }\n },\n "point_route_jam_bubbles_left_down": {\n "point_layer_item_style": {\n "normal_style": {\n "poi_marker_id": "route_jam_bubbles_left_down.xml",\n "poi_marker_info":"marker_info_route_jam_bubbles_left_down"\n }\n }\n },\n "point_route_jam_bubbles_right_up": {\n "point_layer_item_style": {\n "normal_style": {\n "poi_marker_id": "route_jam_bubbles_right_up.xml",\n "poi_marker_info":"marker_info_route_jam_bubbles_right_up"\n }\n }\n },\n "point_route_jam_bubbles_right_down": {\n "point_layer_item_style": {\n "normal_style": {\n "poi_marker_id": "route_jam_bubbles_right_down.xml",\n "poi_marker_info":"marker_info_route_jam_bubbles_right_down"\n }\n }\n }\n\n\n "marker_info_route_jam_bubbles_left_up": {\n "anchor":13,\n "x_offset":15,\n "y_offset":25,\n "night_style": {\n "color":[{"sub_title":"#e6ffffff"}]\n },\n "day_style": {\n "color":[{"sub_title":"#e6000000"}]\n }\n },\n "marker_info_route_jam_bubbles_left_down": {\n "anchor":11,\n "x_offset":15,\n "y_offset":10,\n "night_style": {\n "color":[{"sub_title":"#e6ffffff"}]\n },\n "day_style": {\n "color":[{"sub_title":"#e6000000"}]\n }\n },\n "marker_info_route_jam_bubbles_right_up": {\n "anchor":12,\n "x_offset":15,\n "y_offset":25,\n "night_style": {\n "color":[{"sub_title":"#e6ffffff"}]\n },\n "day_style": {\n "color":[{"sub_title":"#e6000000"}]\n }\n },\n "marker_info_route_jam_bubbles_right_down": {\n "anchor":10,\n "x_offset":15,\n "y_offset":10,\n "night_style": {\n "color":[{"sub_title":"#e6ffffff"}]\n },\n "day_style": {\n "color":[{"sub_title":"#e6000000"}]\n }\n }
有两种方法可只显示单条路线。相关接口如下:
// 更新引导路线数据
BizGuideRouteControl.setPathInfos(ArrayList< BizPathInfoAttrs > pathInfo, int selectIndex)
//获取单路径矩型框
static RectDouble com.autonavi.gbl.layer.BizGuideRouteControl.getOnePathBound(PathInfo path)
//获取多路径矩型框
static RectDouble com.autonavi.gbl.layer.BizGuideRouteControl.getPathResultBound(ArrayList< PathInfo > pathInfoList)
关联文档:全览
【版本号】V560
【图层对接】HMI需要对接PrepareLayerGuideCongestionParam.showChatRoomStyle字段。
【用途】图层获取PrepareLayerParam.GetPrepareLayerParam时,如果showChatRoomStyle返回true,则显示为聊天室形式的拥堵气泡。
【注意点】1)聊天室功能不仅包含拥堵聊天气泡,同时也包含HMI开发的聊天室功能。如果除了气泡展示形态的需求之外,还需要聊天室功能,则需要自行开发聊天室功能。
2)蓝色消息图标不一定会展示:当服务端下发了拥堵ID时,才会显示蓝色消息图标。
【开关接口】:BizGuideRouteControl.enableRoutePathNumber;设置是否绘制路线编号扎标开关,true:绘制 false:不绘制
【调用时机】:如需要开启路线编号图层,需要在BizGuideRouteControl.UpdatePaths之前开启。