com.tencent.tencentmap.mapsdk.maps

## 接口 TencentMapNavi

- 所有超级接口:
    IIndoor, IMyLocation, TencentMap

      public interface TencentMapNavi
      extends TencentMap

  导航地图
  从以下版本开始:
    2019-12-07

- - ### 嵌套类概要

    - ### 从接口继承的嵌套类/接口 com.tencent.tencentmap.mapsdk.maps.TencentMap

      `TencentMap.AsyncOperateCallback<T>, TencentMap.CancelableCallback, TencentMap.IClickedObject, TencentMap.InfoWindowAdapter, TencentMap.OnAuthResultCallback, TencentMap.OnCameraChangeListener, TencentMap.OnCompassClickedListener, TencentMap.OnDismissCallback, TencentMap.OnIndoorStateChangeListener, TencentMap.OnInfoWindowClickListener, TencentMap.OnMapClickListener, TencentMap.OnMapLoadedCallback, TencentMap.OnMapLongClickListener, TencentMap.OnMapPoiClickListener, TencentMap.OnMarkerClickListener, TencentMap.OnMarkerDragListener, TencentMap.OnMyLocationChangeListener, TencentMap.OnMyLocationClickListener, TencentMap.OnPolygonClickListener, TencentMap.OnPolylineClickListener, TencentMap.OnScaleViewChangedListener, TencentMap.OnTrafficEventClickListener, TencentMap.OnVectorOverlayClickListener, TencentMap.SnapshotReadyCallback`

  - ### 字段概要

    - ### 从接口继承的字段 com.tencent.tencentmap.mapsdk.maps.TencentMap

      `MAP_MODE_NAV, MAP_MODE_NAV_NIGHT, MAP_MODE_NAV_TRAFFIC, MAP_MODE_NORMAL, MAP_MODE_NORMAL_TRAFFIC, MAP_TYPE_DARK, MAP_TYPE_NAVI, MAP_TYPE_NIGHT, MAP_TYPE_NONE, MAP_TYPE_NORMAL, MAP_TYPE_SATELLITE, MAP_TYPE_TRAFFIC_NAVI, MAP_TYPE_TRAFFIC_NIGHT`

  - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `IntersectionOverlay` | `addIntersectionEnlargeOverlay(IntersectionOverlayOptions options)` 添加路口放大图
    `void` | `addSegmentsWithRouteName(java.util.List<MapRouteSection> sections, java.util.List<LatLng> points)` 添加路名信息
    `void` | `animateToNaviPosition(LatLng mLocation, float fRotate, float fTitle)`
    `void` | `animateToNaviPosition(LatLng mLocation, float fRotate, float fTitle, float fDestLevel)`
    `void` | `animateToNaviPosition(LatLng mLocation, float fRotate, float fTitle, float fDestLevel, boolean bo3D)`
    `void` | `animateToNaviPosition2(LatLng mLocation, float fRotate, float fTitle, float fDestLevel, boolean bo3D)`
    `CameraPosition` | `calculateZoomToSpanLevelAsync(java.util.List<IOverlay> elements, java.util.List<LatLng> points, int leftPadding, int rightPadding, int topPadding, int bottomPadding, TencentMap.AsyncOperateCallback<CameraPosition> callback)` 计算出要在当前底图可视区域内显示一组元素及一组点的比例尺和中心点（有填边）
    `float` | `calNaviLevel(LatLngBounds bound, float skewangle, int topPadding, boolean is3d)`
    `float` | `calNaviLevel2(LatLng curPos, LatLng nextPos, float skewangle, float rotateanble, int topPadding, boolean is3d)`
    `float` | `calNaviLevel3(LatLng curPos, LatLng nextPos, float skewangle, int leftPadding, int rightPadding, int topPadding, int bottomPadding, boolean is3d)`
    `void` | `clearRouteNameSegments()` 清除路名信息
    `boolean` | `isNaviStateEnabled()` 导航状态是否开启
    `void` | `moveToNavPosition(CameraUpdate cameraupdate, LatLng mTargetPosition)` 把地图变换到指定的状态(导航专用)
    `void` | `setNavCenter(int lat, int lng)` 设置导航中心点
    `void` | `setNaviFixingProportion(float xratio, float yratio)` 设置固定
    `void` | `setNaviFixingProportion2D(float xratio, float yratio)` 设置固定
    `void` | `setNaviStateEnabled(boolean enabled)` 导航状态开关
    `void` | `setOptionalResourcePath(java.lang.String resourcePath)` 设置导航需要的资源文件保存路径，使用前将需要的资源文件保存在这个目录中

    - ### 从接口继承的方法 com.tencent.tencentmap.mapsdk.maps.TencentMap

      `addAoiLayer, addArc, addCircle, addCustomLayer, addGroundOverlay, addMarker, addOnMapLoadedCallback, addPolygon, addPolyline, addTencentMapGestureListener, addTileOverlay, addVectorHeatOverlay, addVectorOverlay, addVisualLayer, animateCamera, animateCamera, animateCamera, calculateZoomToSpanLevel, clear, clearAllOverlays, clearCache, enableAutoMaxSkew, enableMultipleInfowindow, executeVisualLayerCommand, getBounderPoints, getCameraPosition, getCityName, getDebugError, getLanguage, getMapComponent, getMapContext, getMapHeight, getMapPadding, getMapStyle, getMapType, getMapWidth, getMaxZoomLevel, getMinZoomLevel, getProjection, getScreenMarkers, getUiSettings, getVersion, getVisualSettings, getZoomToSpanLevel, isBlockRouteEnabled, isDestroyed, isHandDrawMapEnable, isSateLiteEnable, isTrafficEnabled, loadKMLFile, moveCamera, removeOnMapLoadedCallback, removeTencentMapGestureListener, setBaseMapEnabled, setBlockRouteEnabled, setBuilding3dEffectEnable, setBuildingBlackList, setBuildingEnable, setCameraCenterProportion, setCameraCenterProportion, setCustomRender, setDrawPillarWith2DStyle, setForeignLanguage, setHandDrawMapEnable, setInfoWindowAdapter, setLanguage, setLocationCompassHidden, setLocationNavigationGravityLineHidden, setMapCenterAndScale, setMapFontSize, setMapFrameRate, setMapStyle, setMapType, setMaxZoomLevel, setMinZoomLevel, setMyLocationStyle, setOnCameraChangeListener, setOnCompassClickedListener, setOnInfoWindowClickListener, setOnMapClickListener, setOnMapLoadedCallback, setOnMapLongClickListener, setOnMapPoiClickListener, setOnMarkerClickListener, setOnMarkerDragListener, setOnPolygonClickListener, setOnPolylineClickListener, setOnScaleViewChangedListener, setOnTapMapViewInfoWindowHidden, setOnTrafficEventClickListener, setOnVectorOverlayClickListener, setOverSeaEnable, setOverSeaTileProvider, setPadding, setPadding, setPointToCenter, setPoisEnabled, setRestrictBounds, setSatelliteEnabled, setSceneByTag, setTencentMapGestureListener, setTrafficEnabled, setTrafficMode, showBuilding, snapshot, snapshot, snapshot, stopAnimation, updateVectorOverlay`

    - ### 从接口继承的方法 com.tencent.map.sdk.comps.indoor.IIndoor

      `getActivedIndoorBuilding, getActivedIndoorFloorNames, getIndoorFloorId, resetIndoorCellInfo, setIndoorCellInfo, setIndoorEnabled, setIndoorFloor, setIndoorFloor, setIndoorMaskColor, setOnIndoorStateChangeListener`

    - ### 从接口继承的方法 com.tencent.map.sdk.comps.mylocation.IMyLocation

      `getMyLocation, isMyLocationEnabled, setLocationSource, setMyLocationClickListener, setMyLocationEnabled, setOnMyLocationChangeListener`

- - ### 方法详细资料

    - #### animateToNaviPosition

          void animateToNaviPosition(LatLng mLocation,
                                     float fRotate,
                                     float fTitle)

    - #### animateToNaviPosition

          void animateToNaviPosition(LatLng mLocation,
                                     float fRotate,
                                     float fTitle,
                                     float fDestLevel)

    - #### animateToNaviPosition

          void animateToNaviPosition(LatLng mLocation,
                                     float fRotate,
                                     float fTitle,
                                     float fDestLevel,
                                     boolean bo3D)

    - #### animateToNaviPosition2

          void animateToNaviPosition2(LatLng mLocation,
                                      float fRotate,
                                      float fTitle,
                                      float fDestLevel,
                                      boolean bo3D)

    - #### calNaviLevel

          float calNaviLevel(LatLngBounds bound,
                             float skewangle,
                             int topPadding,
                             boolean is3d)

    - #### calNaviLevel2

          float calNaviLevel2(LatLng curPos,
                              LatLng nextPos,
                              float skewangle,
                              float rotateanble,
                              int topPadding,
                              boolean is3d)

    - #### calNaviLevel3

          float calNaviLevel3(LatLng curPos,
                              LatLng nextPos,
                              float skewangle,
                              int leftPadding,
                              int rightPadding,
                              int topPadding,
                              int bottomPadding,
                              boolean is3d)

    - #### setNaviFixingProportion

          void setNaviFixingProportion(float xratio,
                                       float yratio)

      设置固定
      参数:
        `xratio` -
        `yratio` -

    - #### setNaviFixingProportion2D

          void setNaviFixingProportion2D(float xratio,
                                         float yratio)

      设置固定
      参数:
        `xratio` -
        `yratio` -

    - #### clearRouteNameSegments

          void clearRouteNameSegments()

      清除路名信息

    - #### moveToNavPosition

          void moveToNavPosition(CameraUpdate cameraupdate,
                                 LatLng mTargetPosition)

      把地图变换到指定的状态(导航专用)
      参数:
        `cameraupdate` - 状态对象 参见`CameraUpdate`

    - #### calculateZoomToSpanLevelAsync

          CameraPosition calculateZoomToSpanLevelAsync(java.util.List<IOverlay> elements,
                                                       java.util.List<LatLng> points,
                                                       int leftPadding,
                                                       int rightPadding,
                                                       int topPadding,
                                                       int bottomPadding,
                                                       TencentMap.AsyncOperateCallback<CameraPosition> callback)

      计算出要在当前底图可视区域内显示一组元素及一组点的比例尺和中心点（有填边）
      参数:
        `elements` - 要显示在底图上的元素
        `points` - 要显示在底图上的点
        `leftPadding` - 要显示的元素和点距离底图左边的边距
        `rightPadding` - 要显示的元素和点距离底图右边的边距
        `topPadding` - 要显示的元素和点距离底图上边的边距
        `bottomPadding` - 要显示的元素和点距离底图下边的边距
        `callback，` - 异步回调
      返回:
        忽略返回值， 监听callback中的返回

    - #### addSegmentsWithRouteName

          void addSegmentsWithRouteName(java.util.List<MapRouteSection> sections,
                                        java.util.List<LatLng> points)

      添加路名信息
      参数:
        `sections` - 路段信息
        `points` - 路线点集
      从以下版本开始:
        4.3.0 新增接口

    - #### setNavCenter

          void setNavCenter(int lat,
                            int lng)

      设置导航中心点
      参数:
        `lat` -
        `lng` -

    - #### setNaviStateEnabled

          void setNaviStateEnabled(boolean enabled)

      导航状态开关
      参数:
        `enabled` -

    - #### isNaviStateEnabled

          boolean isNaviStateEnabled()

      导航状态是否开启
      返回:

    - #### setOptionalResourcePath

          void setOptionalResourcePath(java.lang.String resourcePath)

      设置导航需要的资源文件保存路径，使用前将需要的资源文件保存在这个目录中
      参数:
        `resourcePath` - 绝对路径

    - #### addIntersectionEnlargeOverlay

          IntersectionOverlay addIntersectionEnlargeOverlay(IntersectionOverlayOptions options)

      添加路口放大图
      参数:
        `options` - 路口放大图相关配置
      返回: