Interface IBackgroundMapView


public interface IBackgroundMapView
Created by hexiaojiang on 2025/11/25
  • Method Details

    • openBackgroundMap

      boolean openBackgroundMap()
      开启后台绘制地图支持
      Returns:
    • closeBackgroundMap

      boolean closeBackgroundMap()
      关闭后台绘制地图
      Returns:
    • onDestroy

      void onDestroy()
    • screenShot

      @Deprecated android.graphics.Bitmap screenShot()
      Deprecated.
      Returns:
    • setScreenShotCallback

      void setScreenShotCallback(IBackgroundMapView.IScreenShotCallback onScreenShot)
      设置截图回调,通过回调获取截图
      Parameters:
      onScreenShot -
    • addLayer

      void addLayer(IBackgroundDrawLayer backgroundDrawNaviLayer)
      暂时外部不需要关注
      Parameters:
      backgroundDrawNaviLayer -
    • setCustomDrawOption

      void setCustomDrawOption(BkgCustomDrawOptions bkgCustomDrawOptions)
      设置自定义绘制选项 openBackgroundMap之前调用
      Parameters:
      bkgCustomDrawOptions -
    • setNaviMapMargin

      void setNaviMapMargin(int left, int top, int right, int bottom)
      设置多实例地图全览边距 MapMargin 该接口设置要在开启全览setNaviMapViewAllStatus(boolean isNaviMapViewAllStatus) 之前设置
      Parameters:
      left - 距离地图左边界像素值
      top - 距离地图上边界像素值
      right - 距离地图右边界像素值
      bottom - 距离地图下边界像素值
    • setNaviMapViewAllStatus

      void setNaviMapViewAllStatus(boolean isNaviMapViewAllStatus)
      设置多实例地图是否开启全览 注:需要进入导航后多实例路线加载完成之后设置。
      Parameters:
      isNaviMapViewAllStatus - 设置是否需要开启全览,true 为开启,false 关闭全览
    • setDefaultLevel

      boolean setDefaultLevel(float level)
    • setCarOffset

      boolean setCarOffset(int offsetx, int offsety)
      设置自车位置(car logo)位置偏移
      Parameters:
      offsetx - px
      offsety - px
      Returns:
    • setMapDpiScale

      void setMapDpiScale(float mapScale)
      设置多实例地图dpi基于主图的缩放系数
      Parameters:
      mapScale - 地图元素缩放系数
    • setFps

      void setFps(int fps)
      设置帧率 createBackgroundDrawMapView之后调用
      Parameters:
      fps -
    • setNorthMode

      void setNorthMode(boolean model)
      设置旋转模式
      Parameters:
      model - 旋转模式。0:车头朝上;1:正北朝上。
    • releaseSurface

      void releaseSurface()
      释放 Surface/SurfaceTexture 资源 必须在 GLThread 完全退出后调用