com.amap.api.navi.model

## 类 RouteOverlayOptions

- java.lang.Object
- - com.amap.api.navi.model.RouteOverlayOptions

-     public class RouteOverlayOptions
      extends java.lang.Object

  RouteOverlay的配置选项类
  Configuration options class for RouteOverlay
  从以下版本开始:
    1.8.0

- - ### 构造器概要

    构造器
    构造器和说明
    `RouteOverlayOptions()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `setArrowColor(int arrowColor)` 设置路线上转弯处箭头的颜色 Set the color of the arrow at the turn on the route
    `void` | `setArrowOnTrafficRoute(Bitmap arrowOnTrafficRoute)` 设置浮于道路上的『小箭头』图标的纹理位图 Set the texture bitmap of the "small arrow" icon floating on the road.
    `void` | `setArrowSideColor(int arrowSideColor)` 设置3D箭头侧面颜色，只有显示 3D箭头情况加才有效 Set the side color of 3D arrows, only effective when 3D arrows are displayed
    `void` | `setFairWayRes(Bitmap fairWayRes)` 设置路线虚线纹理 Set route dashed line texture
    `void` | `setJamTraffic(Bitmap jamTraffic)` 设置交通状况拥堵下的纹理位图 Set the texture bitmap under congested traffic conditions.
    `void` | `setLineWidth(float lineWidth)` 设置导航线路的宽度 Set the width of the navigation route
    `void` | `setNormalRoute(Bitmap normalRoute)` 设置无路况路线的纹理 Set the texture of routes without traffic conditions.
    `void` | `setOnRouteCameShow(boolean routeCameShow)` 设置路线上的摄像头气泡是否显示 Set whether the camera bubble on the route is displayed.
    `void` | `setPassFairRoute(Bitmap passFairRoute)` 自定义走过的步行路线纹理（虚线） Customize passed walking route texture (dashed line).
    `void` | `setPassRoute(Bitmap passRoute)` 自定义走过的路线纹理（实线） Customize passed route texture (solid line).
    `void` | `setRect(Rect rect)` 设置全览状态下，路线距离四周的边距 Set the margin of the route from the surroundings in the overview state
    `void` | `setSlowTraffic(Bitmap slowTraffic)` 设置交通状况迟缓下的纹理位图 Set the texture bitmap under slow traffic conditions.
    `void` | `setSmoothTraffic(Bitmap smoothTraffic)` 设置交通状况情况良好下的纹理位图 Set the texture bitmap under good traffic conditions.
    `void` | `setTurnArrowIs3D(boolean turnArrowIs3)` 设置是否显示3D箭头，默认显示 Set whether to display 3D arrows, displayed by default
    `void` | `setUnknownTraffic(Bitmap unknownTraffic)` 设置交通状况未知下的纹理位图 Set the texture bitmap under unknown traffic conditions.
    `void` | `setVeryJamTraffic(Bitmap veryJamTraffic)` 设置交通状况非常拥堵下的纹理位图 Set the texture bitmap under very congested traffic conditions

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### RouteOverlayOptions

          public RouteOverlayOptions()

  - ### 方法详细资料

    - #### setFairWayRes

          public void setFairWayRes(Bitmap fairWayRes)

      设置路线虚线纹理
      Set route dashed line texture
      参数:
        `fairWayRes` -

        建议使用新接口`RouteOverlayOptions.setDashedLineColor(CoreRouteDashedLineColor)`
        It is recommended to use the new interface `RouteOverlayOptions.setDashedLineColor(CoreRouteDashedLineColor)`

      从以下版本开始:
        6.3.0

    - #### setPassRoute

          public void setPassRoute(Bitmap passRoute)

      自定义走过的路线纹理（实线）
      Customize passed route texture (solid line). 建议使用新接口`RouteOverlayOptions.setRouteGreyColor(CoreRoutePassLineColor)`
      It is recommended to use the new interface `RouteOverlayOptions.setRouteGreyColor(CoreRoutePassLineColor)`

      默认走过路线置灰功能为关，需要在`AMapNaviViewOptions.setAfterRouteAutoGray(boolean)`打开，该方法才生效
      The default passed route graying function is off. It needs to be turned on in `AMapNaviViewOptions.setAfterRouteAutoGray(boolean)` for this method to take effect

      参数:
        `passRoute` -
      从以下版本开始:
        6.2.0

    - #### setPassFairRoute

          public void setPassFairRoute(Bitmap passFairRoute)

      自定义走过的步行路线纹理（虚线）
      Customize passed walking route texture (dashed line).

      建议使用新接口`RouteOverlayOptions.setRouteGreyColor(CoreRoutePassLineColor)`
      It is recommended to use the new interface `RouteOverlayOptions.setRouteGreyColor(CoreRoutePassLineColor)`

      默认走过路线置灰功能为关，需要在`AMapNaviViewOptions.setAfterRouteAutoGray(boolean)`打开，该方法才生效
      The default passed route graying function is off. It needs to be turned on in `AMapNaviViewOptions.setAfterRouteAutoGray(boolean)` for this method to take effect

      参数:
        `passFairRoute` -
      从以下版本开始:
        7.5.0

    - #### setRect

          public void setRect(Rect rect)

      设置全览状态下，路线距离四周的边距
      Set the margin of the route from the surroundings in the overview state
      参数:
        `rect` -
      从以下版本开始:
        6.2.0

    - #### setOnRouteCameShow

          public void setOnRouteCameShow(boolean routeCameShow)

      设置路线上的摄像头气泡是否显示
      Set whether the camera bubble on the route is displayed.
      参数:
        `routeCameShow` - true代表显示，false代表不显示
        true means display, false means not display
      从以下版本开始:
        5.0.0

    - #### setArrowColor

          public void setArrowColor(int arrowColor)

      设置路线上转弯处箭头的颜色
      Set the color of the arrow at the turn on the route
      参数:
        `arrowColor` - 颜色值
        Color value

    - #### setVeryJamTraffic

          public void setVeryJamTraffic(Bitmap veryJamTraffic)

      设置交通状况非常拥堵下的纹理位图
      Set the texture bitmap under very congested traffic conditions
      参数:
        `veryJamTraffic` - 位图图片
        Bitmap image

    - #### setSmoothTraffic

          public void setSmoothTraffic(Bitmap smoothTraffic)

      设置交通状况情况良好下的纹理位图
      Set the texture bitmap under good traffic conditions.

      建议使用新接口`com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List)`
      It is recommended to use the new interface `com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List)`

      参数:
        `smoothTraffic` - 位图图片
        Bitmap image

    - #### setUnknownTraffic

          public void setUnknownTraffic(Bitmap unknownTraffic)

      设置交通状况未知下的纹理位图
      Set the texture bitmap under unknown traffic conditions.

      建议使用新接口`com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List)`
      It is recommended to use the new interface `com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List)`

      参数:
        `unknownTraffic` - 位图图片
        Bitmap image

    - #### setSlowTraffic

          public void setSlowTraffic(Bitmap slowTraffic)

      设置交通状况迟缓下的纹理位图
      Set the texture bitmap under slow traffic conditions.

      建议使用新接口`com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List)`
      It is recommended to use the new interface `com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List)`

      参数:
        `slowTraffic` - 位图图片
        Bitmap image

    - #### setJamTraffic

          public void setJamTraffic(Bitmap jamTraffic)

      设置交通状况拥堵下的纹理位图
      Set the texture bitmap under congested traffic conditions.

      建议使用新接口`com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List)`
      It is recommended to use the new interface `com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List)`

      参数:
        `jamTraffic` - 位图图片
        Bitmap image

    - #### setArrowOnTrafficRoute

          public void setArrowOnTrafficRoute(Bitmap arrowOnTrafficRoute)

      设置浮于道路上的『小箭头』图标的纹理位图
      Set the texture bitmap of the "small arrow" icon floating on the road.

      注意：使用SDK自动画路时，无法通过此接口自定义路线上小箭头的纹理样式，可通过自定义带小箭头的路线纹理来实现。
      Note: When using SDK automatic route drawing, the texture style of the small arrow on the route cannot be customized through this interface. It can be achieved by customizing the route texture with small arrows.
      注意：需要通过 `RouteOverLay.setArrowOnRoute(boolean)` 设置为true来显示自定义小箭头，才会生效。自定义小箭头默认是不显示的。
      Note: Custom small arrows need to be displayed by setting `RouteOverLay.setArrowOnRoute(boolean)` to true to take effect. Custom small arrows are not displayed by default.

      参数:
        `arrowOnTrafficRoute` - 位图图片
        Bitmap image

    - #### setNormalRoute

          public void setNormalRoute(Bitmap normalRoute)

      设置无路况路线的纹理
      Set the texture of routes without traffic conditions.

      建议使用新接口`com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List)`
      It is recommended to use the new interface `com.amap.api.navi.model.RouteOverlayOptions#setRouteStatusColor(List)`

      参数:
        `normalRoute` - 纹理图片
        Texture image

    - #### setLineWidth

          public void setLineWidth(float lineWidth)

      设置导航线路的宽度
      Set the width of the navigation route
      参数:
        `lineWidth` - 单位：像素
        Unit: pixels

    - #### setTurnArrowIs3D

          public void setTurnArrowIs3D(boolean turnArrowIs3)

      设置是否显示3D箭头，默认显示
      Set whether to display 3D arrows, displayed by default
      参数:
        `turnArrowIs3` - true 显示,false 不显示
        true display, false not display
      从以下版本开始:
        6.6.0

    - #### setArrowSideColor

          public void setArrowSideColor(int arrowSideColor)

      设置3D箭头侧面颜色，只有显示 3D箭头情况加才有效
      Set the side color of 3D arrows, only effective when 3D arrows are displayed
      参数:
        `arrowSideColor` -
      从以下版本开始:
        6.6.0