{"version":"0.1.0","code":"0000","result":true,"message":"处理成功","errdetail":"","timestamp":1671516364282,"data":{"id":71712594,"title":"6.3.4.1路线图层","slug":"vcmax2","format":"lake","bookId":26046811,"body":null,"body_draft":null,"body_html":"

场景图

\"image.png\"

说明:路线图层RoutePathLayer派生于基础图层BaseLayer,可以用于绘制导航路线。路线图层中包含路线图元

    RouteLayerItem,派生于LayerItem基础图元。

时序图


关键参数

字段

含义

com.autonavi.gbl.map.layer.RoutePathLayer

路线图层,item必须附加在Layer上

com.autonavi.gbl.map.layer.RouteLayerItem

路线图元

com.autonavi.gbl.map.layer.model.LayerItemType.LayerItemPathType

路线图元类型

com.autonavi.gbl.map.layer.model.RouteLayerStyle

路线图层样式

com.autonavi.gbl.map.layer.model.RouteLayerParam

路线样式参数

com.autonavi.gbl.map.layer.model.RouteLayerParam

参数

类型

描述

值对比/备注

lineExtract

boolean

是否是简易线

默认不使用,简易三维场景下使用

useColor

boolean

是否使用颜色填充

amap,无需配置

useCap

boolean

是否使用线帽

\"image.png\"\"image.png\"

canBeCovered

boolean

是否可被遮盖

\"image.png\"\"image.png\"

showArrow

boolean

是否显示箭头

\"image.png\"

needColorGradient

boolean

是否需要渐变

\"image.png\"\"image.png\"

lineWidth

int

路径线宽


borderLineWidth

int

路径线边框宽


fillMarker

int

路径线填充纹理


simple3DFillMarker

int

简易3D路径线填充纹理

默认不使用,简易三维场景下使用

borderMarker

int

边框填充纹理


fillColor

long

路径填充颜色

ARGB格式

borderColor

long

边框填充颜色

ARGB格式

selectFillColor

long

选中的填充颜色

amap,无需配置

unSelectFillColor

long

未选中的填充颜色

amap,无需配置

selectBorderColor

long

选中的边线颜色

amap,无需配置

unSelectBorderColor

long

未选中的边线颜色

amap,无需配置

routeTexture

MapRouteTexture

路线纹理枚举


lineTextureInfo

PolylineTextureInfo

纹理坐标参数


lineSimple3DTextureInfo

PolylineTextureInfo

简易三维下纹理坐标参数

默认不使用,简易三维场景下使用

lineCapTextureInfo

PolylineCapTextureInfo

线帽纹理参数


核心接口


void com.autonavi.gbl.map.layer.RoutePathLayer.setBusinessType(int nType)


void com.autonavi.gbl.map.layer.RoutePathLayer.setStyle(IPrepareLayerStyle pStyle)


void com.autonavi.gbl.map.layer.RoutePathLayer.setVisible(boolean bVisible)


void com.autonavi.gbl.map.layer.RoutePathLayer.setClickable(boolean bClickable)


void com.autonavi.gbl.map.layer.RoutePathLayer.setPriority(LayerPriority priority)


void com.autonavi.gbl.map.layer.RoutePathLayer.setCar2DPosition(long nIndex, float position)


void com.autonavi.gbl.map.layer.RoutePathLayer.setCar3DPosition(long nIndex, float position)


void com.autonavi.gbl.map.layer.RoutePathLayer.setLineWidthScale(float scale)


void com.autonavi.gbl.map.layer.RoutePathLayer.setRouteItemParam(RouteLayerParam routeParam)


void com.autonavi.gbl.map.layer.RoutePathLayer.setRouteDrawParam(RouteLayerDrawParam routeDrawParam)


void com.autonavi.gbl.map.layer.RoutePathLayer.setSelectStatus(boolean status)


void com.autonavi.gbl.map.layer.RoutePathLayer.setShowNaviRouteNameCountMap(HashMap<Integer, Integer> countMap)


路线图层接口众多,不逐一列举


说明:函数详情,请复制函数名称到在线API搜索


示例代码

\npublic void DrawRoute(PathInfo path, RouteLayerDrawParam drawParam, IPrepareLayerStyle pStyle)\n{\t\n\t/*< 主图视图中获取图层管理器 */\n\tLayerMgr layerMgr = mMapView.getLayerMgr()\n\t/*< 地图视图上创建路线图层 */\n\tRoutePathLayer routeLayer = new RoutePathLayer("RoutePathLayer_main", 0, mMapView);\n    \n    /*< 通过图层管理器将路线图层添加进地图视图mapview */\n\tlayerMgr.addLayer(routeLayer);\n\n\trouteLayer.setClickable(true);\n\trouteLayer.addClickObserver(mClickObserver);\n\trouteLayer.setVisible(true);\n\n\t/*< 设置路线业务类型,以便监听回调中识别是那个路线图层回调的 */\n\trouteLayer.setBusinessType(BusinessTypeRouteXXX);\n    /*< 优先级的设置值,查看文档“6.3.2.1图层优先级” */\n\trouteLayer.SetPriority(priority);\n\n    boolean            isSelected  = drawParam.mIsSelected; /是否选中 */\n    boolean            isNavi      = drawParam.mIsNavi;\t\t/是否导航态 */\n    RouteLayerScene routeScene  = drawParam.mRouteScene;\t/路线场景 */\n\t/*< 设置路线样式 */\n    routeLayer.setRouteDrawParam(drawParam);\n    \n    /*< 设置路线样式回调监听 */\n\tif(null != pStyle)\n\t{\n\t\trouteLayer.setStyle(pStyle);\n\t}\n    routeLayer.updateStyle();\n\n\tLineItem items = path.getLineItem(isNavi);\n\t/*< 内部会添加路线图元 */\n    routeLayer.addRouteItem(routeScene, isSelected, items.lineData, items.dataSize);\n\n    boolean enableGrown = true; /* mEnableGrown为true表示开启动画 */\n    int selectGrownDuration = 1000; /* 选中的路线,动画持续的时间(单位毫秒) ,具体值由业务方决定 */\n    int unselectGrownDuration = 500;/* 非选中路线,动画持续的时间(单位毫秒) ,具体值由业务方决定 */\n        \n\t/*< 设置生长动画,选中非选中 */\n    if (true == isSelected)\n    {\n        /*< ,mSelectGrownDuration动画执行的毫秒时间 */\n\t    routeLayer.setGrownAnimation(enableGrown, selectGrownDuration);\n    }\n    else\n    {   /*< 同上 */\n        routeLayer.setGrownAnimation(enableGrown, unselectGrownDuration);\n    }\n\n\t/*< 高亮路名 */\n    if (drawParam.mIsHighLightRoadName)\n    {\n        routeLayer.addRouteName();\n    }\n    else\n    {\n        routeLayer.removeRouteName();\n    }\n\n\t/*< 地图刷新 */\n    mMapView.resetTickCount(2);\n}
/* 获取路线图层样式配置 */\npublic class MapPrepareLayerStyle implements IPrepareLayerStyle {\n\t...\n\tprivate double mScaleFactor = 1.0;\n\t/**\n\t * <\n\t *\n\t * @return bool        true:成功 false:失败\n\t * @brief 路线图元样式回调接口\n\t * @param[in] pLayer         图元所在图层\n\t * @param[in] pItem          需要更新样式的具体图元,通过GetBusinessType返回值判断具体图层\n\t * @param[in] style          返回的样式数据结果\n\t * @note thread:main\n\t */\n    @Override\n    public boolean getRouteLayerStyle(BaseLayer baseLayer, LayerItem layerItem, RouteLayerStyle routeLayerStyle) {\n        int itemType = layerItem.getItemType();\n        int businessType = layerItem.getBusinessType();\n\n        RouteLayerItem routeLayerItem = (RouteLayerItem) layerItem;\n\t\tint businessType = routeLayerItem.getBusinessType();\n\t\tboolean ret = false;\n\t\tswitch(businessType)\n\t\t{\n\t\t\tcase BusinessTypeRouteXXX: /*< 添加路线图层时设定的业务类型 */\n\t\t\t{\n\t\t\t\tRouteLayerDrawParam routeDrawParam = routeLayerItem.getRouteDrawParam();\n\t\t\t\tswitch (routeDrawParam.mRouteStyleType) {\n\t\t\t\t\tcase RouteLayerStyleType.Main_Normal:\n\t\t\t\t\t{...}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase RouteLayerStyleType.Main_Offline:\n\t\t\t\t\t{...}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase RouteLayerStyleType.Main_HightLight:\n\t\t\t\t\t{\n\t\t\t\t\t\tif (mIsNightMode)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = false;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = false;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = false;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_dott_car_light", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_dott_car_light", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xff88a3be;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xff6b6c6d;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureNonavi;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = false;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = false;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = false;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_dott_car_fill", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = -1;\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xff0082ff;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xff0372dd;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureNavi;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = true;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = false;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_road_white_front_select_night", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_road_white_back_select_night", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xff3582e2;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xff3b92ff;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureDefault;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = true;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = false;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_road_white_front_select_night", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_road_white_back_select_night", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xff00b964;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xff02d674;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureOpen;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = true;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = false;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_road_white_front_select_night", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_road_white_back_select_night", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xffe4c61c;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xfff1d53a;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureAmble;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = true;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = false;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_road_white_front_select_night", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_road_white_back_select_night", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xffba1c1c;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xfff22d57;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureJam;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = true;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = false;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_road_white_front_select_night", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_road_white_back_select_night", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xff86021e;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xffa91d3b;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureCongested;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = false;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = false;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = false;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 20);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 10);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "global_image_map_aolr", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "global_image_map_aolr", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xffffffff;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xffffffff;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureArrow;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 80);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.25f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0.6f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = true;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = false;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 28);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 28);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_feeroad", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_feeroad", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xfff38c1e;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = -1;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureCharge;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0.75f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = true;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = false;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_nofeeroad", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_nofeeroad", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xfff38c1e;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureFree;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0.75f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = false;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = false;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_traffic_platenum_restrict_hl", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = -1;\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xfffbeeb9;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = -1;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureLimit;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.25f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0.6f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = false;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = false;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = false;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_ferry", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = -1;\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xff0096ff;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xff0096ff;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureFerry;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 16);\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trouteLayerStyle.arrow3DTextureId = -1;\n\t\t\t\t\t\t\trouteLayerStyle.highLightParam.fillColorHightLight = 0;\n\t\t\t\t\t\t\trouteLayerStyle.mPassedColor[0] = 0xff5e5f61;\n\t\t\t\t\t\t\trouteLayerStyle.mPassedColor[1] = 0xff484848;\n\t\t\t\t\t\t\trouteLayerStyle.mPassedColor[2] = 0xffffffff;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = false;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = false;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = true;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_dott_car_light", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_dott_car_light", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xff88a3be;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xff6b6c6d;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureNonavi;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = false;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = false;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = true;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_dott_car_fill", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = -1;\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xff0082ff;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xff0372dd;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureNavi;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = true;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = true;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_road_white_front_select", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_road_white_back_select", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xff2385ff;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xff0a6fed;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureDefault;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = true;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = true;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_road_white_front_select", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_road_white_back_select", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xff00c340;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xff00a45d;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureOpen;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = true;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = true;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_road_white_front_select", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_road_white_back_select", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xffffea00;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xffffcc00;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureAmble;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = true;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = true;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_road_white_front_select", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_road_white_back_select", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xfffd3021;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xffdd0f00;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureJam;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = true;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = true;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_road_white_front_select", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_road_white_back_select", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xffc1005a;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xff6e2900;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureCongested;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = false;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = false;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = true;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "global_image_map_aolr", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "global_image_map_aolr", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xffffffff;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xffffffff;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureArrow;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 80);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.25f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0.6f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = true;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = true;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 28);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 28);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_feeroad", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_feeroad", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xfff38c1e;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = -1;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureCharge;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0.75f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = true;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = true;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_lr_nofeeroad", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = getMarkerId(null, null, "map_lr_nofeeroad", "");\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xfff38c1e;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureFree;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0.75f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = true;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = false;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = true;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_traffic_platenum_restrict_hl", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = -1;\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xfffbeeb9;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = -1;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureLimit;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 32);\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x1 = 0.5f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y1 = 0.25f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineCapTextureInfo.y2 = 0.6f;\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRouteLayerParam layerParam = new RouteLayerParam();\n\t\t\t\t\t\t\t\tlayerParam.useCap = false;\n\t\t\t\t\t\t\t\tlayerParam.canBeCovered = true;\n\t\t\t\t\t\t\t\tlayerParam.showArrow = false;\n\t\t\t\t\t\t\t\tlayerParam.needColorGradient = true;\n\t\t\t\t\t\t\t\tlayerParam.lineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.borderLineWidth = (int)(mScaleFactor * 27);\n\t\t\t\t\t\t\t\tlayerParam.fillMarker = getMarkerId(null, null, "map_ferry", "");\n\t\t\t\t\t\t\t\tlayerParam.borderMarker = -1;\n\t\t\t\t\t\t\t\tlayerParam.fillColor = 0xff0096ff;\n\t\t\t\t\t\t\t\tlayerParam.borderColor = 0xff0096ff;\n\t\t\t\t\t\t\t\tlayerParam.routeTexture = MapRouteTexture.MapRouteTextureFerry;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x1 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y1 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.x2 = 1f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.y2 = 0f;\n\t\t\t\t\t\t\t\tlayerParam.lineTextureInfo.textureLen = (int)(mScaleFactor * 16);\n\t\t\t\t\t\t\t\trouteLayerStyle.vecParam.add(layerParam);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trouteLayerStyle.arrow3DTextureId = -1;\n\t\t\t\t\t\t\trouteLayerStyle.highLightParam.fillColorHightLight = 0;\n\t\t\t\t\t\t\trouteLayerStyle.mPassedColor[0] = 0xffadb2b6;\n\t\t\t\t\t\t\trouteLayerStyle.mPassedColor[1] = 0xff8d8f91;\n\t\t\t\t\t\t\trouteLayerStyle.mPassedColor[2] = 0xffffffff;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase RouteLayerStyleType.Main_Offline_HightLight:\n\t\t\t\t\t{...}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase RouteLayerStyleType.EaglEye_Normal:\n\t\t\t\t\t{...}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase RouteLayerStyleType.EaglEye_Offline:\n\t\t\t\t\t{...}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase RouteLayerStyleType.EaglEye_HightLight:\n\t\t\t\t\t{...}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase RouteLayerStyleType.EaglEye_Offline_HightLight:\n\t\t\t\t\t{...}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase BusinessTypeRouteYYY:\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n        return true;\n    }\n\t\n\t...\n}


特别备注:使用RouteLayerParam结构来配置路线样式。Json大串解析消耗性能,不推荐使用Json配置(省略)


JSON配置

消耗性能,不推荐使用(省略)


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