Interface IBNMapManager


  • public interface IBNMapManager
    百度导航底图模块Manager接口.
    Since:
    2018-05-03
    • Method Detail

      • getMapView

        MapView getMapView()
        获取百度导航底图 View 实例对象
        Returns:
      • onResume

        void onResume()
        百度导航底图生命周期onResume,需要在Activity#onResume() 或者 Fragment#onResume() 中调用
      • onPause

        void onPause()
        百度导航底图生命周期onPause,需要在Activity#onPause() 或者 Fragment#onPause() 中调用
      • attach

        void attach​(ViewGroup mapViewParent)
        将mMapView加载进ViewGroup
        Parameters:
        mapViewParent - 装在MapView的父控件
      • detach

        void detach​(ViewGroup mapViewParent)
        从parent脱离
      • zoomIn

        void zoomIn()
        放大底图
      • zoomOut

        void zoomOut()
        缩小底图
      • getMaxZoomLevel

        float getMaxZoomLevel()
        获取地图最大缩放级别
        Returns:
        地图最大缩放级别
      • getMinZoomLevel

        float getMinZoomLevel()
        获取地图最小缩放级别
        Returns:
        地图最小缩放级别
      • getZoomLevel

        int getZoomLevel()
        获取缩放等级
        Returns:
      • getMapStatus

        BNMapStatus getMapStatus()
        获取地图的状态:中心点、比例尺
      • setMapStatus

        void setMapStatus​(BNMapStatus mapStatus)
        设置地图的状态:中心点、比例尺
      • setDpiScale

        void setDpiScale​(float scale)
        设置窗口的dpi适配系数
      • setMyLocationDataGjc02

        void setMyLocationDataGjc02​(BNLocationData data)
        设置定位数据
        Parameters:
        data - 定位数据
      • setMyLocationData

        void setMyLocationData​(BNLocationData data)
        设置定位数据
        Parameters:
        data - 定位数据,必须使用WGS84坐标系
      • setCarLogoVisible

        void setCarLogoVisible​(boolean isShow)
        是否隐藏车标
        Parameters:
        isShow -
      • clearRouteLayer

        void clearRouteLayer()
        清除路线