{"version":"0.1.0","code":"0000","result":true,"message":"处理成功","errdetail":"","timestamp":1671516369037,"data":{"id":71713779,"title":"6.4.1.4业务图层开关","slug":"pi29ri","format":"lake","bookId":26046811,"body":null,"body_draft":null,"body_html":"

基本介绍

根据用户的业务需求,用户可能:

1)预先关闭若干图层的功能。

2)更复杂的情况,用户可在程序运行过程中动态开启或关闭图层(开发中)。

不同于设置图层隐藏的是:关闭某个图层后,这些图层将不触发任何逻辑,因此可以节省CPU资源。


时序图

用户无法直接调用接口开关图层,只能通过配置文件配置(配置后SDK中图层创建逻辑将受到开关控制)。

以IBizGuideRouteControl::SetVisible为例,开启图层后才会创建RouteStartEndLayer图层:

JSON配置

配置文件:style_bl.json

位置:/biz_switch(和"virtual_bus"同一级)

默认值:不配置时,图层默认都是开启的,因此只需要配置关闭的图层。

如:

"biz_switch":\n{\n  "BizRouteTypeStartPoint": true,\n  "BizRouteTypeEndPoint": true,\n  "BizRouteTypeViaPoint": true,\n  "BizRouteTypeEndPathPoint": true,\n  "BizRouteTypeEagleStartPoint": true,\n  "BizRouteTypeEagleEndPoint": true,\n  "BizRouteTypeEagleViaPoint": true,\n  "BizRouteTypeCompareTip": true,\n  "BizRouteTypePath": true,\n  "BizRouteTypeDodgeLine": true,\n  "BizRouteTypeEaglePath": true,\n  "BizRouteTypeJamPoint": true,\n  "BizRouteTypeJamLine": true,\n  "BizRouteTypeWeather": true,\n  "BizRouteTypeRestArea": true,\n  "BizRouteTypeViaRoad": true,\n  "BizRouteTypeArrow": true,\n  "BizRouteTypeLittleCamera": true,\n  "BizRouteTypeTrafficLight": true,\n  "BizRouteTypeTrafficBlock": true,\n  "BizRouteTypeTrafficBlockOuter": true,\n  "BizRouteTypeTrafficEventTip": true,\n  "BizRouteTypeForbidden": true,\n  "BizRouteTypeTruckLimit": true,\n  "BizRouteTypeEnergyEmptyPoint": true,\n  "BizRouteTypeEnergyRemainPoint": true,\n  "BizRouteTypeEnergyKeyPoint": true,\n  "BizRouteTypeGuideCongestion": true,\n  "BizRouteTypeGuideLabel": true,\n  "BizRouteTypeGuidePathBoard": true,\n  "BizRouteTypeGuideEtaEvent": true,\n  "BizRouteTypeStartEndLine": true,\n  "BizRouteTypeStartEndPoint": true,\n  "BizRouteTypeStartEndLinePoint": true,\n  "BizRouteTypeThreeUrgent": true,\n  "BizRouteTypeOddLine": true,\n  "BizRouteTypeOddPoint": true,\n  "BizRouteTypeViaETA": true,\n  "BizSearchTypeLine": true,\n  "BizSearchTypePoiEndAreaPolygon": true,\n  "BizSearchTypePoiEndAreaPolyline": true,\n  "BizSearchTypePoiParentPoint": true,\n  "BizSearchTypePoiChildPoint": true,\n  "BizSearchTypePoiCentralPos": true,\n  "BizSearchTypePoiExitEntrance": true,\n  "BizSearchTypePoiBeginEnd": true,\n  "BizSearchTypePoiAlongRoute": true,\n  "BizSearchTypePoiParkRoute": true,\n  "BizSearchTypePoiLabel": true,\n  "BizSearchTypeChargeStation": true,\n  "BizSearchTypePoiAlongRoutePop": true,\n  "BizRoadCrossTypeRasterImage": true,\n  "BizRoadCrossTypeVector": true,\n  "BizRoadCrossTypeRealCity": true,\n  "BizAreaTypeRangeOnMapPolygon": true,\n  "BizAreaTypeRangeOnMapCircle": true,\n  "BizAreaTypeRangeOnMapPolygonLine": true,\n  "BizAreaTypeRangeOnMapCircleLine": true,\n  "BizAreaTypePolygonExhaustedPoint": true,\n  "BizAreaTypeCircleExhaustedPoint": true,\n  "BizAreaTypeRestrict": true,\n  "BizAreaTypeEndAreaParentPoint": true,\n  "BizAreaTypeEndAreaChildPoint": true,\n  "BizAreaTypeEndAreaPolygon": true,\n  "BizAreaTypeEndAreaPolyline": true,\n  "BizLabelTypeCruiseLane": true,\n  "BizLabelTypeGuideMixFork": true,\n  "BizLabelTypeCruiseCongestion": true,\n  "BizLabelTypeRoutePopAddViaPoint": true,\n  "BizLabelTypeRoutePopRemoveViaPoint": true,\n  "BizLabelTypeRoutePopTrafficEvent": true,\n  "BizLabelTypeRoutePopSearchPoint": true,\n  "BizLabelTypeRoutePopEndArea": true,\n  "BizLabelTypeGpsPoints": true,\n  "BizRoadFacilityTypeCruiseCamera": true,\n  "BizRoadFacilityTypeCruiseCongestion": true,\n  "BizRoadFacilityTypeCruiseFacility": true,\n  "BizRoadFacilityTypeGuideCameraActive": true,\n  "BizRoadFacilityTypeGuideCameraNormal": true,\n  "BizRoadFacilityTypeGuideIntervalCamera": true,\n  "BizRoadFacilityTypeGuideFacility": true,\n  "BizRoadFacilityTypeGuideTrafficEvent": true,\n  "BizRoadFacilityTypeGuideTrafficLight": true,\n  "BizRoadFacilityTypeCruiseCongestionPrompt": true,\n  "BizUserTypeGpsTrack": true,\n  "BizUserTypeGpsTrackLine": true,\n  "BizUserTypeSendToCar": true,\n  "BizUserTypeFavoriteMain": true,\n  "BizUserTypeFavoritePoi": true,\n  "BizUserTypeRainbowLine": true,\n  "BizFlyLineTypeLine": true,\n  "BizFlyLineTypePoint": true,\n  "BizCustomTypePoint1": true,\n  "BizCustomTypePoint2": true,\n  "BizCustomTypePoint3": true,\n  "BizCustomTypePoint4": true,\n  "BizCustomTypePoint5": true,\n  "BizCustomTypePoint6": true,\n  "BizCustomTypePoint7": true,\n  "BizCustomTypePoint8": true,\n  "BizCustomTypePoint9": true,\n  "BizCustomTypePoint10": true,\n  "BizCustomTypeLine1": true,\n  "BizCustomTypeLine2": true,\n  "BizCustomTypeLine3": true,\n  "BizCustomTypeLine4": true,\n  "BizCustomTypeLine5": true,\n  "BizCustomTypeLine6": true,\n  "BizCustomTypeLine7": true,\n  "BizCustomTypeLine8": true,\n  "BizCustomTypeLine9": true,\n  "BizCustomTypeLine10": true,\n  "BizCustomTypePolygon1": true,\n  "BizCustomTypePolygon2": true,\n  "BizCustomTypePolygon3": true,\n  "BizCustomTypePolygon4": true,\n  "BizCustomTypePolygon5": true,\n  "BizCustomTypePolygon6": true,\n  "BizCustomTypePolygon7": true,\n  "BizCustomTypePolygon8": true,\n  "BizCustomTypePolygon9": true,\n  "BizCustomTypePolygon10": true,\n  "BizCustomTypeCircle1": true,\n  "BizCustomTypeCircle2": true,\n  "BizCustomTypeCircle3": true,\n  "BizCustomTypeCircle4": true,\n  "BizCustomTypeCircle5": true,\n  "BizCustomTypeCircle6": true,\n  "BizCustomTypeCircle7": true,\n  "BizCustomTypeCircle8": true,\n  "BizCustomTypeCircle9": true,\n  "BizCustomTypeCircle10": true,\n  "BizCustomTypeArrow1": true,\n  "BizCustomTypeArrow2": true,\n  "BizCustomTypeArrow3": true,\n  "BizCustomTypeArrow4": true,\n  "BizCustomTypeArrow5": true,\n  "BizCustomTypeArrow6": true,\n  "BizCustomTypeArrow7": true,\n  "BizCustomTypeArrow8": true,\n  "BizCustomTypeArrow9": true,\n  "BizCustomTypeArrow10": true,\n  "BizCustomTypePlane1": true,\n  "BizCustomTypePlane2": true,\n  "BizCustomTypePlane3": true,\n  "BizCustomTypePlane4": true,\n  "BizCustomTypePlane5": true,\n  "BizCustomTypePlane6": true,\n  "BizCustomTypePlane7": true,\n  "BizCustomTypePlane8": true,\n  "BizCustomTypePlane9": true,\n  "BizCustomTypePlane10": true\n}

配置对照表

业务类型

业务含义

需联动关闭的业务类型

BizRouteTypeStartPoint

路线的起点图层


BizRouteTypeEndPoint

路线的终点图层


BizRouteTypeViaPoint

路线的途经点图层


BizRouteTypeEndPathPoint

路线末梢点图层


BizRouteTypeEagleStartPoint

鹰眼图路线的起点图层


BizRouteTypeEagleEndPoint

鹰眼图路线的终点图层


BizRouteTypeEagleViaPoint

鹰眼图路线的途经点图层


BizRouteTypeCompareTip

对比路线上的tips图层

BizRouteTypePath

路线上的路径图层

BizRouteTypeDodgeLine

避让路线图层

BizRouteTypeEaglePath

鹰眼图路线上的路径图层

BizRouteTypeJamPoint

拥堵事件

BizRouteTypeJamLine

拥堵路线

BizRouteTypeWeather

天气扎标

BizRouteTypeRestArea

服务区扎标

BizRouteTypeViaRoad

途经路扎标

BizRouteTypeArrow

路线规划、模拟导航或者导航图层上路线箭头

BizRouteTypeLittleCamera

路线的电子眼图层

BizRouteTypeTrafficLight

路线的红绿灯图层

BizRouteTypeTrafficBlock

路线上的封路事件

BizRouteTypeTrafficBlockOuter

路线外的封路事件

BizRouteTypeTrafficEventTip

路线上事件tips

BizRouteTypeForbidden

禁行

BizRouteTypeTruckLimit

货车限制

BizRouteTypeEnergyEmptyPoint

路线的能源耗尽点图层

BizRouteTypeEnergyRemainPoint

路线的剩余电量点图层

BizRouteTypeEnergyKeyPoint

电量关键点图层

BizRouteTypeGuideCongestion

导航拥堵时长

BizRouteTypeGuideLabel

导航多备选标签

BizRouteTypeGuidePathBoard

导航路径上路牌

BizRouteTypeGuideEtaEvent

动态导航下发的拥堵、封路、禁行、限行交通事件

BizRouteTypeStartEndLine

起终点连线的连线

BizRouteTypeStartEndLine和

BizRouteTypeStartEndPoint需要同时关闭才生效

BizRouteTypeStartEndPoint

起终点连线的终点

BizRouteTypeStartEndLinePoint

起终点连线的连线+终点

BizRouteTypeThreeUrgent

三急一超

BizRouteTypeOddLine

ODD(设计运行范围)线

BizRouteTypeOddPoint

ODD(设计运行范围)点

BizRouteTypeViaETA

途经路ETA和剩余电量图层

BizSearchTypeLine

搜索线绘制业务

BizSearchTypePoiEndAreaPolygon

多边形搜索图层业务

BizSearchTypePoiEndAreaPolygon和

BizSearchTypePoiEndAreaPolyline需要都关闭才生效

BizSearchTypePoiEndAreaPolyline

多边形边框搜索图层业务

BizSearchTypePoiParentPoint

父节点搜索图层业务

BizSearchTypePoiParentPoint、BizSearchTypePoiChildPoint、

BizSearchTypePoiCentralPos、

BizSearchTypePoiExitEntrance和

BizSearchTypePoiBeginEnd需要同时关闭才生效

BizSearchTypePoiChildPoint

子节点搜索图层业务

BizSearchTypePoiCentralPos

搜索POI中心点位置类型图层业务

BizSearchTypePoiExitEntrance

搜索POI出入口类型图层业务

BizSearchTypePoiBeginEnd

起始点搜索图层业务

BizSearchTypePoiAlongRoute

沿途搜图层业务

BizSearchTypePoiParkRoute

停车场图层业务

BizSearchTypePoiLabel

POI扎标图层业务

BizSearchTypeChargeStation

充电站搜索结果图层业务

BizSearchTypeChargeStation和

BizSearchTypeEagleChargeStation需要同时关闭才生效

BizSearchTypeEagleChargeStation

鹰眼充电站搜索结果图层业务

BizSearchTypePoiAlongRoutePop

鹰眼充电站搜索结果图层业务

BizRoadCrossTypeRasterImage

栅格图图层业务

BizRoadCrossTypeVector

矢量图图层业务

BizRoadCrossTypeRealCity

真实城市图层业务

BizAreaTypeRangeOnMapPolygon

Range On Map多边形图层业务

BizAreaTypeRangeOnMapPolygon、

BizAreaTypeRangeOnMapPolygonLine和

BizAreaTypePolygonExhaustedPoint需要同时关闭才生效

BizAreaTypeRangeOnMapPolygonLine

Range On Map多边形边线

BizAreaTypePolygonExhaustedPoint

多边形电量耗尽扎标点

BizAreaTypeRangeOnMapCircle

Range On Map圆形图层业务

BizAreaTypeRangeOnMapCircle、

BizAreaTypeRangeOnMapCircleLine和

BizAreaTypeCircleExhaustedPoint需要同时关闭才生效

BizAreaTypeRangeOnMapCircleLine

Range On Map圆形边线

BizAreaTypeCircleExhaustedPoint

圆形电量耗尽扎标点

BizAreaTypeRestrict

限行区域

BizAreaTypeEndAreaParentPoint

终点区域父节点

BizAreaTypeEndAreaParentPoint、

BizAreaTypeEndAreaChildPoint、

BizAreaTypeEndAreaPolygon和

BizAreaTypeEndAreaPolyline需要同时关闭才生效

BizAreaTypeEndAreaChildPoint

终点区域父节点

BizAreaTypeEndAreaPolygon

终点区域

BizAreaTypeEndAreaPolyline

终点区域边线

BizLabelTypeCruiseLane

巡航道路线扎标图层业务

BizLabelTypeGuideMixFork

分歧路口扎标图层业务

BizLabelTypeCruiseCongestion

巡航拥堵加粗图层业务

BizLabelTypeRoutePopAddViaPoint

路径上弹出添加途径点

BizLabelTypeRoutePopRemoveViaPoint

路径上弹出移除途径点

BizLabelTypeRoutePopTrafficEvent

路径上弹出交通事件

BizLabelTypeRoutePopSearchPoint

路径上弹出搜索的点

BizLabelTypeRoutePopEndArea

终点区域弹出框

BizLabelTypeGpsPoints

gps轨迹点的图层

BizRoadFacilityTypeCruiseCamera

巡航摄像头交通设施图层业务

BizRoadFacilityTypeCruiseCongestion

巡航拥堵事件交通设施图层业务

BizRoadFacilityTypeCruiseFacility

巡航交通设施图层业务

BizRoadFacilityTypeGuideCameraActive

导航电子眼交通设施图层业务,激活态

BizRoadFacilityTypeGuideCameraNormal

导航电子眼交通设施图层业务,扎点态

BizRoadFacilityTypeGuideIntervalCamera

区间测速电子眼交通设施图层业务

BizRoadFacilityTypeGuideFacility

导航交通设施交通设施图层业务

BizRoadFacilityTypeGuideTrafficEvent

导航交通事件交通设施图层业务

BizRoadFacilityTypeGuideTrafficLight

导航下红绿灯信号状态图层业务

BizRoadFacilityTypeCruiseCongestionPrompt

导航下红绿灯信号状态图层业务

BizUserTypeGpsTrack

用户历史轨迹图层业务

BizUserTypeGpsTrack和

BizUserTypeGpsTrackLine需要同时关闭才生效

BizUserTypeGpsTrackLine

用户历史轨迹(线)图层业务

BizUserTypeSendToCar

Send2Car图层业务

BizUserTypeFavoriteMain

收藏夹中主图查看模式

BizUserTypeFavoritePoi

收藏夹中poi查看模式

BizUserTypeRainbowLine

彩虹线业务图层

BizFlyLineTypeLine

飞线线

BizFlyLineTypeLine和

BizFlyLineTypePoint需要同时关闭才生效

BizFlyLineTypePoint

飞线点

BizCustomTypePoint1

自定义点图层1

BizCustomTypePoint2

自定义点图层2

BizCustomTypePoint3

自定义点图层3

BizCustomTypePoint4

自定义点图层4

BizCustomTypePoint5

自定义点图层5

BizCustomTypePoint6

自定义点图层6

BizCustomTypePoint7

自定义点图层7

BizCustomTypePoint8

自定义点图层8

BizCustomTypePoint9

自定义点图层9

BizCustomTypePoint10

自定义点图层10

BizCustomTypeLine1

自定义线图层1

BizCustomTypeLine2

自定义线图层2

BizCustomTypeLine3

自定义线图层3

BizCustomTypeLine4

自定义线图层4

BizCustomTypeLine5

自定义线图层5

BizCustomTypeLine6

自定义线图层6

BizCustomTypeLine7

自定义线图层7

BizCustomTypeLine8

自定义线图层8

BizCustomTypeLine9

自定义线图层9

BizCustomTypeLine10

自定义线图层10

BizCustomTypePolygon1

自定义多边形图层1

BizCustomTypePolygon2

自定义多边形图层2

BizCustomTypePolygon3

自定义多边形图层3

BizCustomTypePolygon4

自定义多边形图层4

BizCustomTypePolygon5

自定义多边形图层5

BizCustomTypePolygon6

自定义多边形图层6

BizCustomTypePolygon7

自定义多边形图层7

BizCustomTypePolygon8

自定义多边形图层8

BizCustomTypePolygon9

自定义多边形图层9

BizCustomTypePolygon10

自定义多边形图层10

BizCustomTypeCircle1

自定义扇形/圆形图层1

BizCustomTypeCircle2

自定义扇形/圆形图层2

BizCustomTypeCircle3

自定义扇形/圆形图层3

BizCustomTypeCircle4

自定义扇形/圆形图层4

BizCustomTypeCircle5

自定义扇形/圆形图层5

BizCustomTypeCircle6

自定义扇形/圆形图层6

BizCustomTypeCircle7

自定义扇形/圆形图层7

BizCustomTypeCircle8

自定义扇形/圆形图层8

BizCustomTypeCircle9

自定义扇形/圆形图层9

BizCustomTypeCircle10

自定义扇形/圆形图层10

BizCustomTypeArrow1

自定义箭头图层1

BizCustomTypeArrow2

自定义箭头图层2

BizCustomTypeArrow3

自定义箭头图层3

BizCustomTypeArrow4

自定义箭头图层4

BizCustomTypeArrow5

自定义箭头图层5

BizCustomTypeArrow6

自定义箭头图层6

BizCustomTypeArrow7

自定义箭头图层7

BizCustomTypeArrow8

自定义箭头图层8

BizCustomTypeArrow9

自定义箭头图层9

BizCustomTypeArrow10

自定义箭头图层10

BizCustomTypePlane1

自定义面板图层1

BizCustomTypePlane2

自定义面板图层2

BizCustomTypePlane3

自定义面板图层3

BizCustomTypePlane4

自定义面板图层4

BizCustomTypePlane5

自定义面板图层5

BizCustomTypePlane6

自定义面板图层6

BizCustomTypePlane7

自定义面板图层7

BizCustomTypePlane8

自定义面板图层8

BizCustomTypePlane9

自定义面板图层9

BizCustomTypePlane10

自定义面板图层10


注意事项




","body_lake":null,"pub_level":null,"status":"0","updated_at":"2022-04-06 07:04:04","deleted_at":null,"nameSpace":"mnlcaa/v610","browseCount":132,"collectCount":0,"estimateDate":24,"docStatus":0,"permissions":true,"overView":false}}