com.amap.api.navi

## 类 AMapNaviView

- java.lang.Object
- - FrameLayout
  - - com.amap.api.navi.AMapNaviView

-     public class AMapNaviView
      extends FrameLayout

  自定义导航视图类
  Custom navigation view class

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static int` | `CAR_UP_MODE` 0-车头向上模式 0-Car heading up mode
    `static int` | `NORTH_UP_MODE` 1-正北向上模式，步行和骑行导航如果打开了sensor，此模式将无效 1-North up mode, this mode will be invalid if sensor is turned on for walking and cycling navigation.

  - ### 构造器概要

    构造器
    构造器和说明
    `AMapNaviView(Context context, AMapNaviViewOptions options)` 根据给定的参数构造一个导航视图类对象 Construct a navigation view class object with the given parameters.

  - ### 方法概要

    所有方法 实例方法 具体方法 已过时的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `displayOverview()` 已过时。 请使用 `AMapNaviView.setShowMode(int)` Please use `AMapNaviView.setShowMode(int)`
    `double` | `getAnchorX()` 获取当前锁车态下，自车位置锁定在屏幕x轴的位置比率，范围：0-1，0代表最左侧，1代表最右侧 Get the position ratio of the vehicle position locked on the x-axis of the screen under the current vehicle lock state, range: 0-1, 0 represents the leftmost, 1 represents the rightmost
    `double` | `getAnchorY()` 获取当前锁车态下，自车位置锁定在屏幕y轴的位置比率，范围：0-1，0代表最顶端，1代表最底部 Get the position ratio of the vehicle position locked on the y-axis of the screen under the current vehicle lock state, range: 0-1, 0 represents the topmost, 1 represents the bottommost
    `int` | `getLockTilt()` 已过时。 请使用 `AMapNaviViewOptions.getTilt()` Please use `AMapNaviViewOptions.getTilt()`
    `int` | `getLockZoom()` 已过时。 请使用 `AMapNaviViewOptions.getZoom()` Please use `AMapNaviViewOptions.getZoom()`
    `com.amap.api.maps.AMap` | `getMap()` 获取地图控制类 Get map control class
    `int` | `getNaviMode()` 获取导航模式 Get navigation mode
    `AMapNaviViewOptions` | `getViewOptions()` 返回导航自定义视图的属性配置对象 Return the property configuration object of the navigation custom view.
    `boolean` | `isAutoChangeZoom()` 已过时。 请使用 `AMapNaviViewOptions.isAutoChangeZoom()` Please use `AMapNaviViewOptions.isAutoChangeZoom()`
    `boolean` | `isOrientationLandscape()` 返回当前屏幕的横竖屏状态 Return the current screen orientation status
    `boolean` | `isRouteOverviewNow()` 是否是路线全览模式 Whether it is route overview mode
    `boolean` | `isShowRoadEnlarge()` 当前是否正在显示路口放大图 Whether currently displaying intersection enlargement map
    `boolean` | `isTrafficLine()` 已过时。 请使用 `AMapNaviViewOptions.isTrafficLine()` Please use `AMapNaviViewOptions.isTrafficLine()`
    `boolean` | `onBackPressed()` 与Activity.onBackPressed同步。
    `void` | `onCreate(Bundle bundle)` 与Activity onCreate同步 Synchronize with Activity onCreate
    `void` | `onCreate(Bundle bundle, Activity activity, AmapPageType pageType)` 与Activity onCreate同步 使用这个方法可以通过pageType指定启动的页面类型
    `void` | `onDestroy()` 与Activity onDestroy同步 Synchronize with Activity onDestroy.
    `void` | `onPause()` 与Activity onPause同步 Synchronize with Activity onPause
    `void` | `onResume()` 与Activity onResume同步 Synchronize with Activity onResume
    `void` | `onSaveInstanceState(Bundle paramBundle)` 与Activity onSaveInstanceState同步 Synchronize with Activity onSaveInstanceState
    `void` | `recoverLockMode()` 已过时。 请使用 `AMapNaviView.setShowMode(int)` Please use `AMapNaviView.setShowMode(int)`
    `void` | `reInit(Bundle bundle)` 重新初始化导航自定义导航视图 Reinitialize the custom navigation view.
    `void` | `setAMapNaviViewListener(AMapNaviViewListener aMapNaviSettingListener)` 设置自定义导航界面的事件回调监听 Set event callback listener for custom navigation interface
    `void` | `setCarOverlayVisible(boolean isVisible)` 设置是否隐藏自定义导航view上的车标，包括自车、罗盘、牵引线 Set whether to hide the vehicle icon on the custom navigation view, including the vehicle, compass, and traction line
    `boolean` | `setCommonOverlayData(java.lang.String data)` 设置外部通用点线面数据 Set external general point-line-surface data
    `void` | `setDriveGuideNaviAnimation(boolean isNaviAnimation)` 设置驾车导航动画开关，包括：转场动画和导航态动画 Configure driving navigation animation toggles, including transition animations and navigation mode animations.
    `void` | `setLazyDirectionView(DirectionView lazyDirectionView)` 设置自定义的指南针视图 Set custom compass view
    `void` | `setLazyDriveWayView(DriveWayView lazyDriveWayView)` 设置自定义的车道线视图 Set custom lane line view
    `void` | `setLazyNextTurnTipView(NextTurnTipView lazyNextTurnTipView)` 设置自定义的转向图标 Set custom turn icon
    `void` | `setLazyOverviewButtonView(OverviewButtonView lazyOverviewButtonView)` 设置用户自定义的全览按钮 Set user-defined overview button
    `void` | `setLazyTrafficButtonView(TrafficButtonView lazyTrafficButtonView)` 设置自定义的路况按钮视图 Set custom traffic condition button view
    `void` | `setLazyTrafficProgressBarView(TrafficProgressBar lazyTrafficProgressBarView)` 设置用户自定义的导航光柱条View Set user-defined navigation light column bar View.
    `void` | `setLazyZoomButtonView(ZoomButtonView zoomButtonView)` 设置自定义的地图缩放按钮 Set custom map zoom button
    `void` | `setLazyZoomInIntersectionView(ZoomInIntersectionView zoomInIntersectionView)` 设置自定义的路口放大图 Set custom intersection enlargement map
    `void` | `setLockTilt(int lockTilt)` 已过时。 请使用 `AMapNaviViewOptions.setTilt(int)` Please use `AMapNaviViewOptions.setTilt(int)`
    `void` | `setLockZoom(int lockZoom)` 已过时。 请使用 `AMapNaviViewOptions.setZoom(int)` Please use `AMapNaviViewOptions.setZoom(int)`
    `void` | `setNaviMode(int mode)` 已过时。 请使用 `AMapNaviViewOptions.setNaviMode(int)` Please use `AMapNaviViewOptions.setNaviMode(int)`
    `void` | `setOnCameraChangeListener(com.amap.api.maps.AMap.OnCameraChangeListener cameraChangeListener)` 设置自定义导航view中地图的视角变化事件监听 Set map view change event listener in custom navigation view
    `void` | `setOnMapLoadedListener(com.amap.api.maps.AMap.OnMapLoadedListener loadListener)` 设置自定义导航view中地图的加载完成事件监听 Set map loading completion event listener in custom navigation view
    `void` | `setOnMapTouchListener(com.amap.api.maps.AMap.OnMapTouchListener mapTouchListener)` 设置自定义导航view中地图的点击事件监听 Set map click event listener in custom navigation view
    `void` | `setOnMarkerClickListener(com.amap.api.maps.AMap.OnMarkerClickListener listener)` 设置marker点击事件 Set marker click event
    `void` | `setOnPolylineClickListener(com.amap.api.maps.AMap.OnPolylineClickListener listener)` 设置polyline点击事件 Set polyline click event
    `void` | `setRouteMarkerVisible(boolean showStartEndVia, boolean showFootFerry, boolean showForbidden)` 已过时。
    `void` | `setRouteMarkerVisible(boolean showStartEndVia, boolean showFootFerry, boolean showForbidden, boolean showRouteStartIcon, boolean showRouteEndIcon)` 是否显示 起终途点\步行轮渡扎点\禁行限行封路icon\路线起点icon\路线终点icon Whether to display start/end/waypoint\walking ferry waypoint\prohibition/restriction/road closure icon\route start icon\route end icon
    `void` | `setShowDriveCongestion(boolean showDriveCongestion)` 是否显示拥堵气泡 Whether to display congestion bubble
    `void` | `setShowMode(int showMode)` 设置导航页面显示模式 Set navigation page display mode
    `void` | `setShowTrafficLightView(boolean showTrafficLightView)` 是否显示红绿灯倒计时气泡 Whether to display traffic light countdown bubble
    `void` | `setTMCRouteColor(int defaultColor, int smoothColor, int slowColor, int jamColor, int seriousJamColor, int verysmoothColor)` 设置光柱图的路口颜色 Set the intersection color of the light column chart
    `void` | `setTMCRouteLayout(int left, int top, int width, int height)` 设置光柱图的位置 Set the position of the light column chart
    `void` | `setTrafficLightsVisible(boolean isVisible)` 设置是否显示路线上的交通信号灯 Set whether to display traffic lights on the route
    `void` | `setTrafficLine(boolean isTrafficEnable)` 已过时。 请使用 `AMapNaviViewOptions.setTrafficLine(boolean)` Please use `AMapNaviViewOptions.setTrafficLine(boolean)`
    `void` | `setViewOptions(AMapNaviViewOptions options)` 设置导航自定义视图界面的属性配置对象，用于控制导航地图的仰角，是否展示车道信息，是否显示路况放大图等属性 Set the property configuration object of the navigation custom view interface, used to control properties such as map tilt angle, whether to display lane information, whether to display traffic condition enlargement map, etc.
    `void` | `zoomIn()` 扩大一级当前地图缩放级别 Zoom in one level of the current map zoom level
    `void` | `zoomOut()` 缩小一级当前地图缩放级别 Zoom out one level of the current map zoom level

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

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

- - ### 字段详细资料

    - #### CAR_UP_MODE

          public static final int CAR_UP_MODE

      0-车头向上模式
      0-Car heading up mode
      从以下版本开始:
        1.7.0
      另请参阅:
        常量字段值

    - #### NORTH_UP_MODE

          public static final int NORTH_UP_MODE

      1-正北向上模式，步行和骑行导航如果打开了sensor，此模式将无效
      1-North up mode, this mode will be invalid if sensor is turned on for walking and cycling navigation.
      从以下版本开始:
        1.7.0
      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### AMapNaviView

          public AMapNaviView(Context context,
                              AMapNaviViewOptions options)

      根据给定的参数构造一个导航视图类对象
      Construct a navigation view class object with the given parameters.
      参数:
        `context` - 指定的Context对象。
        Specified Context object.
        `options` - 指定的视图属性配置对象。
        Specified view property configuration object.

  - ### 方法详细资料

    - #### reInit

          public void reInit(Bundle bundle)

      重新初始化导航自定义导航视图
      Reinitialize the custom navigation view.

      当使用`AMapNavi.destroy()`销毁了导航，或使用`AMap.clear()`清空了地图，需要调用此接口重新初始化导航自定义视图。
      When navigation is destroyed using `AMapNavi.destroy()` or the map is cleared using `AMap.clear()`, this interface needs to be called to reinitialize the custom navigation view.

      从以下版本开始:
        7.9.0

    - #### onBackPressed

          public boolean onBackPressed()

      与Activity.onBackPressed同步。
      返回:
        AMapNaviView内部的返回处理是否已经完成。true: 已经完成， false：有需要处理的内容

    - #### getAnchorX

          public double getAnchorX()

      获取当前锁车态下，自车位置锁定在屏幕x轴的位置比率，范围：0-1，0代表最左侧，1代表最右侧
      Get the position ratio of the vehicle position locked on the x-axis of the screen under the current vehicle lock state, range: 0-1, 0 represents the leftmost, 1 represents the rightmost
      返回:
        自车位置锁定在x轴的位置，从左至右
        Vehicle position locked on the x-axis, from left to right

    - #### getAnchorY

          public double getAnchorY()

      获取当前锁车态下，自车位置锁定在屏幕y轴的位置比率，范围：0-1，0代表最顶端，1代表最底部
      Get the position ratio of the vehicle position locked on the y-axis of the screen under the current vehicle lock state, range: 0-1, 0 represents the topmost, 1 represents the bottommost
      返回:
        自车位置锁定在y轴的位置，从上至下
        Vehicle position locked on the y-axis, from top to bottom

    - #### getLockZoom

          public int getLockZoom()

      已过时。 请使用 `AMapNaviViewOptions.getZoom()`
      Please use `AMapNaviViewOptions.getZoom()`
      获取锁车缩放级别（仅在关闭了动态比例尺下生效）
      Get the vehicle lock zoom level (only effective when dynamic scale is turned off)
      返回:
        锁车缩放级别
        Vehicle lock zoom level
      从以下版本开始:
        1.7.0

    - #### setLockZoom

          public void setLockZoom(int lockZoom)

      已过时。 请使用 `AMapNaviViewOptions.setZoom(int)`
      Please use `AMapNaviViewOptions.setZoom(int)`
      设置锁车缩放级别（仅在关闭了动态比例尺下生效）
      Set the vehicle lock zoom level (only effective when dynamic scale is turned off)
      参数:
        `lockZoom` - 锁车缩放级别
        Vehicle lock zoom level
      从以下版本开始:
        1.7.0

    - #### getLockTilt

          public int getLockTilt()

      已过时。 请使用 `AMapNaviViewOptions.getTilt()`
      Please use `AMapNaviViewOptions.getTilt()`
      获取锁车倾斜角度
      Get the vehicle lock tilt angle
      返回:
        锁车倾斜角度
        Vehicle lock tilt angle
      从以下版本开始:
        1.7.0

    - #### setLockTilt

          public void setLockTilt(int lockTilt)

      已过时。 请使用 `AMapNaviViewOptions.setTilt(int)`
      Please use `AMapNaviViewOptions.setTilt(int)`
      设置锁车态下地图倾斜角度
      Set the map tilt angle under vehicle lock state
      参数:
        `lockTilt` - 地图倾斜角度
        Map tilt angle
      从以下版本开始:
        1.7.0

    - #### getNaviMode

          public int getNaviMode()

      获取导航模式
      Get navigation mode
      返回:
        导航模式 0-CAR_UP_MODE 1-NORTH_UP_MODE
        Navigation mode 0-CAR_UP_MODE 1-NORTH_UP_MODE
      从以下版本开始:
        1.7.0

    - #### setNaviMode

          public void setNaviMode(int mode)

      已过时。 请使用 `AMapNaviViewOptions.setNaviMode(int)`
      Please use `AMapNaviViewOptions.setNaviMode(int)`
      设置导航模式
      Set navigation mode
      参数:
        `mode` - 导航模式 0-CAR_UP_MODE 1-NORTH_UP_MODE
        Navigation mode 0-CAR_UP_MODE 1-NORTH_UP_MODE
      从以下版本开始:
        1.7.0

    - #### isAutoChangeZoom

          public boolean isAutoChangeZoom()

      已过时。 请使用 `AMapNaviViewOptions.isAutoChangeZoom()`
      Please use `AMapNaviViewOptions.isAutoChangeZoom()`
      是否自动去进行缩放变化
      Whether to automatically perform zoom changes
      返回:
        是否自动去进行缩放变化
        Whether to automatically perform zoom changes
      从以下版本开始:
        1.5.0

    - #### getViewOptions

          public AMapNaviViewOptions getViewOptions()

      返回导航自定义视图的属性配置对象
      Return the property configuration object of the navigation custom view.
      返回:
        AMapNaviViewOptions对象。
        AMapNaviViewOptions object.

    - #### setViewOptions

          public void setViewOptions(AMapNaviViewOptions options)

      设置导航自定义视图界面的属性配置对象，用于控制导航地图的仰角，是否展示车道信息，是否显示路况放大图等属性
      Set the property configuration object of the navigation custom view interface, used to control properties such as map tilt angle, whether to display lane information, whether to display traffic condition enlargement map, etc.
      参数:
        `options` - 指定的导航视图属性配置对象
        Specified navigation view property configuration object

    - #### getMap

          public com.amap.api.maps.AMap getMap()

      获取地图控制类
      Get map control class
      返回:
        地图控制类AMap对象
        Map control class AMap object

    - #### onCreate

          public final void onCreate(Bundle bundle)

      与Activity onCreate同步
      Synchronize with Activity onCreate
      参数:
        `bundle` -

    - #### onCreate

          public final void onCreate(Bundle bundle,
                                     Activity activity,
                                     AmapPageType pageType)

      与Activity onCreate同步 使用这个方法可以通过pageType指定启动的页面类型
      参数:
        `bundle` -
        `activity` - 启动这个view的Activity， 可以传null
        `pageType` - 需要启动的页面类型。默认值：`AmapPageType.NAVI`导航界面。
        可选值：
    - `AmapPageType.ROUTE` 显示算路界面， 但需要展示算路界面的时候，使用这个值，使用这个值的时候，建议外部不要使用导航进行算路
    - `AmapPageType.NAVI` 显示导航界面, 当在启动界面的时候，已经进行算路了，建议使用这个值
    从以下版本开始:
      10.0.820

  - #### onResume

        public final void onResume()

    与Activity onResume同步
    Synchronize with Activity onResume

  - #### onPause

        public final void onPause()

    与Activity onPause同步
    Synchronize with Activity onPause

  - #### onDestroy

        public final void onDestroy()

    与Activity onDestroy同步
    Synchronize with Activity onDestroy.

    在1.6.0之前，此方法会自动执行AMapNavi.stopNavi(); 在1.6.0之后（包括1.6.0），请用户自己根据需要选择执行AMapNavi.stopNavi();
    Before 1.6.0, this method would automatically execute AMapNavi.stopNavi(); After 1.6.0 (including 1.6.0), users should choose to execute AMapNavi.stopNavi() according to their needs;

  - #### onSaveInstanceState

        public final void onSaveInstanceState(Bundle paramBundle)

    与Activity onSaveInstanceState同步
    Synchronize with Activity onSaveInstanceState
    参数:
      `paramBundle` -

  - #### displayOverview

        public void displayOverview()

    已过时。 请使用 `AMapNaviView.setShowMode(int)`
    Please use `AMapNaviView.setShowMode(int)`
    展示全览：成功算路获得路径之后，可将地图缩放到完全展示该路径
    Display overview: After successfully calculating the route and obtaining the path, the map can be zoomed to fully display the path
    从以下版本开始:
      1.5.0

  - #### recoverLockMode

        public void recoverLockMode()

    已过时。 请使用 `AMapNaviView.setShowMode(int)`
    Please use `AMapNaviView.setShowMode(int)`
    恢复锁车状态:用于用户主动恢复之前的导航锁车状态（比如从全览画面，挪动地图后画面返回）
    Restore vehicle lock state: Used for users to actively restore the previous navigation vehicle lock state (such as returning to the screen after moving the map from the overview screen)
    从以下版本开始:
      1.5.0

  - #### setShowMode

        public void setShowMode(int showMode)

    设置导航页面显示模式
    Set navigation page display mode
    参数:
      `showMode` - 1-锁车态 2-全览态 3-普通态
      1-Vehicle lock state 2-Overview state 3-Normal state
    从以下版本开始:
      7.4.0

  - #### isTrafficLine

        public boolean isTrafficLine()

    已过时。 请使用 `AMapNaviViewOptions.isTrafficLine()`
    Please use `AMapNaviViewOptions.isTrafficLine()`
    获取地图实时路况的显示状态
    Get the display status of real-time traffic conditions on the map
    返回:
      true-当前显示实时路况，false-当前不显示实时路况
      true-Currently displaying real-time traffic conditions, false-Currently not displaying real-time traffic conditions
    从以下版本开始:
      1.7.0.2

  - #### setTrafficLine

        public void setTrafficLine(boolean isTrafficEnable)

    已过时。 请使用 `AMapNaviViewOptions.setTrafficLine(boolean)`
    Please use `AMapNaviViewOptions.setTrafficLine(boolean)`
    设置实时路况显示状态（请使用此方法实现自定义的路况按钮）
    Set real-time traffic condition display status (please use this method to implement custom traffic condition buttons)
    参数:
      `isTrafficEnable` - 实时路况状态
      Real-time traffic condition status
    从以下版本开始:
      1.7.0.2

  - #### setAMapNaviViewListener

        public void setAMapNaviViewListener(AMapNaviViewListener aMapNaviSettingListener)

    设置自定义导航界面的事件回调监听
    Set event callback listener for custom navigation interface
    参数:
      `aMapNaviSettingListener` - 界面事件回调监听器
      Interface event callback listener

  - #### isShowRoadEnlarge

        public boolean isShowRoadEnlarge()

    当前是否正在显示路口放大图
    Whether currently displaying intersection enlargement map
    返回:
      是否正在显示路口放大图
      Whether currently displaying intersection enlargement map
    从以下版本开始:
      1.5.0

  - #### isOrientationLandscape

        public boolean isOrientationLandscape()

    返回当前屏幕的横竖屏状态
    Return the current screen orientation status
    返回:
      true-横屏，false-竖屏
      true-Landscape, false-Portrait
    从以下版本开始:
      1.5.0

  - #### setLazyDriveWayView

        public void setLazyDriveWayView(DriveWayView lazyDriveWayView)

    设置自定义的车道线视图
    Set custom lane line view
    参数:
      `lazyDriveWayView` -
    从以下版本开始:
      1.9.0

  - #### setLazyZoomInIntersectionView

        public void setLazyZoomInIntersectionView(ZoomInIntersectionView zoomInIntersectionView)

    设置自定义的路口放大图
    Set custom intersection enlargement map
    参数:
      `zoomInIntersectionView` -
    从以下版本开始:
      1.9.0

  - #### setLazyDirectionView

        public void setLazyDirectionView(DirectionView lazyDirectionView)

    设置自定义的指南针视图
    Set custom compass view
    参数:
      `lazyDirectionView` -
    从以下版本开始:
      1.9.0

  - #### setLazyTrafficButtonView

        public void setLazyTrafficButtonView(TrafficButtonView lazyTrafficButtonView)

    设置自定义的路况按钮视图
    Set custom traffic condition button view
    参数:
      `lazyTrafficButtonView` -
    从以下版本开始:
      1.9.0

  - #### setLazyNextTurnTipView

        public void setLazyNextTurnTipView(NextTurnTipView lazyNextTurnTipView)

    设置自定义的转向图标
    Set custom turn icon
    参数:
      `lazyNextTurnTipView` -
    从以下版本开始:
      1.9.0

  - #### setLazyZoomButtonView

        public void setLazyZoomButtonView(ZoomButtonView zoomButtonView)

    设置自定义的地图缩放按钮
    Set custom map zoom button
    参数:
      `zoomButtonView` -

  - #### setLazyOverviewButtonView

        public void setLazyOverviewButtonView(OverviewButtonView lazyOverviewButtonView)

    设置用户自定义的全览按钮
    Set user-defined overview button
    参数:
      `lazyOverviewButtonView` -

  - #### setLazyTrafficProgressBarView

        public void setLazyTrafficProgressBarView(TrafficProgressBar lazyTrafficProgressBarView)

    设置用户自定义的导航光柱条View
    Set user-defined navigation light column bar View.

    设置自定义的光柱条view，只需要设置位置和宽、高即可，颜色车标等元素，导航SDK内部会帮助进行更新操作。
    To set a custom light column bar view, just set the position, width, and height. The navigation SDK will help update elements such as color and vehicle icons internally.

    参数:
      `lazyTrafficProgressBarView` -
    从以下版本开始:
      7.4.0

  - #### zoomIn

        public void zoomIn()

    扩大一级当前地图缩放级别
    Zoom in one level of the current map zoom level

  - #### zoomOut

        public void zoomOut()

    缩小一级当前地图缩放级别
    Zoom out one level of the current map zoom level

  - #### isRouteOverviewNow

        public boolean isRouteOverviewNow()

    是否是路线全览模式
    Whether it is route overview mode
    返回:
      true代表当前是全览，false代表当前非全览模式
      true means current is overview, false means current is not overview mode

  - #### setOnMapLoadedListener

        public void setOnMapLoadedListener(com.amap.api.maps.AMap.OnMapLoadedListener loadListener)

    设置自定义导航view中地图的加载完成事件监听
    Set map loading completion event listener in custom navigation view
    参数:
      `loadListener` - OnMapLoadedListener监听
      OnMapLoadedListener listener
    从以下版本开始:
      6.2.0

  - #### setOnCameraChangeListener

        public void setOnCameraChangeListener(com.amap.api.maps.AMap.OnCameraChangeListener cameraChangeListener)

    设置自定义导航view中地图的视角变化事件监听
    Set map view change event listener in custom navigation view
    参数:
      `cameraChangeListener` - OnCameraChangeListener监听
      OnCameraChangeListener listener
    从以下版本开始:
      6.2.0

  - #### setOnMapTouchListener

        public void setOnMapTouchListener(com.amap.api.maps.AMap.OnMapTouchListener mapTouchListener)

    设置自定义导航view中地图的点击事件监听
    Set map click event listener in custom navigation view
    参数:
      `mapTouchListener` - OnMapTouchListener监听
      OnMapTouchListener listener
    从以下版本开始:
      6.2.0

  - #### setCarOverlayVisible

        public void setCarOverlayVisible(boolean isVisible)

    设置是否隐藏自定义导航view上的车标，包括自车、罗盘、牵引线
    Set whether to hide the vehicle icon on the custom navigation view, including the vehicle, compass, and traction line
    参数:
      `isVisible` - true-显示 false-不显示， 默认为显示
      true-Show false-Hide, default is show
    从以下版本开始:
      6.2.0

  - #### setTrafficLightsVisible

        public void setTrafficLightsVisible(boolean isVisible)

    设置是否显示路线上的交通信号灯
    Set whether to display traffic lights on the route
    参数:
      `isVisible` - true 显示 false 不显示 默认为显示
      true Show false Hide default is show
    从以下版本开始:
      6.2.0

  - #### setRouteMarkerVisible

        @Deprecated
        public void setRouteMarkerVisible(boolean showStartEndVia,
                                                      boolean showFootFerry,
                                                      boolean showForbidden)

    已过时。
    是否显示 起终途点\步行轮渡扎点\禁行限行封路icon
    Whether to display start/end/waypoint\walking ferry waypoint\prohibition/restriction/road closure icon
    参数:
      `showStartEndVia` - 是否显示起终途点
      Whether to display start/end/waypoint
      `showFootFerry` - 是否显示步行轮渡扎点
      Whether to display walking ferry waypoint
      `showForbidden` - 是否显示禁行限行图标
      Whether to display prohibition/restriction icon
    从以下版本开始:
      7.4.0

  - #### setRouteMarkerVisible

        public void setRouteMarkerVisible(boolean showStartEndVia,
                                          boolean showFootFerry,
                                          boolean showForbidden,
                                          boolean showRouteStartIcon,
                                          boolean showRouteEndIcon)

    是否显示 起终途点\步行轮渡扎点\禁行限行封路icon\路线起点icon\路线终点icon
    Whether to display start/end/waypoint\walking ferry waypoint\prohibition/restriction/road closure icon\route start icon\route end icon
    参数:
      `showStartEndVia` - 是否显示起终途点
      Whether to display start/end/waypoint
      `showFootFerry` - 是否显示步行轮渡扎点
      Whether to display walking ferry waypoint
      `showForbidden` - 是否显示禁行限行图标
      Whether to display prohibition/restriction icon
      `showRouteStartIcon` - 是否显示路线期起点Icon
      Whether to display route start icon
      `showRouteEndIcon` - 是否显示路线期终点Icon
      Whether to display route end icon
    从以下版本开始:
      9.0.0

  - #### setOnMarkerClickListener

        public void setOnMarkerClickListener(com.amap.api.maps.AMap.OnMarkerClickListener listener)

    设置marker点击事件
    Set marker click event
    参数:
      `listener` -
    从以下版本开始:
      6.3.0

  - #### setOnPolylineClickListener

        public void setOnPolylineClickListener(com.amap.api.maps.AMap.OnPolylineClickListener listener)

    设置polyline点击事件
    Set polyline click event
    参数:
      `listener` -
    从以下版本开始:
      6.3.0

  - #### setTMCRouteLayout

        public void setTMCRouteLayout(int left,
                                      int top,
                                      int width,
                                      int height)

    设置光柱图的位置
    Set the position of the light column chart
    参数:
      `left` -
      `top` -
      `width` -
      `height` -
    从以下版本开始:
      10.0.0

  - #### setTMCRouteColor

        public void setTMCRouteColor(int defaultColor,
                                     int smoothColor,
                                     int slowColor,
                                     int jamColor,
                                     int seriousJamColor,
                                     int verysmoothColor)

    设置光柱图的路口颜色
    Set the intersection color of the light column chart
    参数:
      `defaultColor` - 交通状况默认
      Traffic condition default
      `smoothColor` - 交通状况情况良好
      Traffic condition smooth
      `slowColor` - 交通状况迟缓
      Traffic condition slow
      `jamColor` - 交通状况拥堵
      Traffic condition jam
      `seriousJamColor` - 交通状况严重拥堵
      Traffic condition serious jam
      `verysmoothColor` - 交通状况情况非常通畅
      Traffic condition very smooth
    从以下版本开始:
      10.0.0

  - #### setCommonOverlayData

        public boolean setCommonOverlayData(java.lang.String data)

    设置外部通用点线面数据
    Set external general point-line-surface data
    参数:
      `data` -
    返回:
      true设置成功，false设置失败
      true setting successful, false setting failed
    从以下版本开始:
      10.0.3

  - #### setShowDriveCongestion

        public void setShowDriveCongestion(boolean showDriveCongestion)

    是否显示拥堵气泡
    Whether to display congestion bubble
    参数:
      `showDriveCongestion` -
    从以下版本开始:
      10.0.5

  - #### setShowTrafficLightView

        public void setShowTrafficLightView(boolean showTrafficLightView)

    是否显示红绿灯倒计时气泡
    Whether to display traffic light countdown bubble
    参数:
      `showTrafficLightView` -
    从以下版本开始:
      10.0.5

  - #### setDriveGuideNaviAnimation

        public void setDriveGuideNaviAnimation(boolean isNaviAnimation)

    设置驾车导航动画开关，包括：转场动画和导航态动画
    Configure driving navigation animation toggles, including transition animations and navigation mode animations.
    参数:
      `isNaviAnimation` -
    从以下版本开始:
      10.1.111