{"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":"

基本介绍

导航规划业务图层控制器主要是控制关于路径规划、导航中的业务图层,比如路线、起终点、交通事件、路线上的箭头、路线上的天气服务区等业务图层。另外,很多业务图层是和路线相关的,在绘制路线时触发它们的业务图层绘制,比如电量耗尽点图层。而路线相关单独在路线绘制中介绍。

场景图

路线图层(起终点、中途点等)

途径图ETA和剩余电量图层

路线末梢点图层

鹰眼路线、起终点、中途点图层

避让路线图层

拥堵事件图层(路线外)

拥堵路线图层

路线上天气图层

服务区扎标图层

途经路扎标图层

路线上红绿灯图层

路线上封路事件图层

路线外封路事件图层

路线上事件Tip图层

点击后:

禁行图层

对比路线Tip图层

路线上箭头图层

路线上能源耗尽点图层

路线上剩余电量点图层

电量关键点图层

导航拥堵时长图层

聊天室风格(从V560开始,默认不开启)

多备选标签图层

路线编号标签图层

路径路牌图层

导航动态交通事件图层

导航连接线线/点图层

三急一超图层

ODD(设计运行范围)线/点

术语解释:设计运行范围(OperationalDesign Domain,ODD),指自动驾驶系统被设计的起作用的条件及适用范围,车厂会根据天气环境、道路情况(直路、弯路的半径)、车速、车流量等信息作出测定,采集在安全的环境之内的道路数据

途经路ETA和剩余电量图层

深绿路况扎标图层

导航熟悉路线图层

室内停车场甬道标签图层

室内停车场终点标签图层

行前拥堵气泡图层

时序图

参考概述

关键参数

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    }

ODD点&线图层

\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);

JSON配置

路线起终点图层(示例)

  "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}

ODD点&线图层(示例)

\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        }

注意事项

1、多备选路线图层只显示选中路的方法

有两种方法可只显示单条路线。相关接口如下:

// 更新引导路线数据

BizGuideRouteControl.setPathInfos(ArrayList< BizPathInfoAttrs > pathInfo, int selectIndex)



2、获取路径线矩形框的方法

//获取单路径矩型框

static RectDouble com.autonavi.gbl.layer.BizGuideRouteControl.getOnePathBound(PathInfo path)


//获取多路径矩型框

static RectDouble com.autonavi.gbl.layer.BizGuideRouteControl.getPathResultBound(ArrayList< PathInfo > pathInfoList)


关联文档:全览

3、导航拥堵气泡的聊天室形态

【版本号】V560

【图层对接】HMI需要对接PrepareLayerGuideCongestionParam.showChatRoomStyle字段。

【用途】图层获取PrepareLayerParam.GetPrepareLayerParam时,如果showChatRoomStyle返回true,则显示为聊天室形式的拥堵气泡。

【注意点】1)聊天室功能不仅包含拥堵聊天气泡,同时也包含HMI开发的聊天室功能。如果除了气泡展示形态的需求之外,还需要聊天室功能,则需要自行开发聊天室功能。

2)蓝色消息图标不一定会展示:当服务端下发了拥堵ID时,才会显示蓝色消息图标。

4、路线编号图层

【开关接口】:BizGuideRouteControl.enableRoutePathNumber;设置是否绘制路线编号扎标开关,true:绘制 false:不绘制

【调用时机】:如需要开启路线编号图层,需要在BizGuideRouteControl.UpdatePaths之前开启。

","body_lake":null,"pub_level":null,"status":"0","updated_at":"2022-11-29 06:22:25","deleted_at":null,"nameSpace":"mnlcaa/v610","browseCount":466,"collectCount":0,"estimateDate":54,"docStatus":0,"permissions":true,"overView":false}}