Package com.baidu.mapapi.offscreen
Interface IBackgroundMapView
public interface IBackgroundMapView
Created by hexiaojiang
on 2025/11/25
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayer(IBackgroundDrawLayer backgroundDrawNaviLayer) 暂时外部不需要关注boolean关闭后台绘制地图voidboolean开启后台绘制地图支持void释放 Surface/SurfaceTexture 资源 必须在 GLThread 完全退出后调用android.graphics.BitmapDeprecated.booleansetCarOffset(int offsetx, int offsety) 设置自车位置(car logo)位置偏移voidsetCustomDrawOption(BkgCustomDrawOptions bkgCustomDrawOptions) 设置自定义绘制选项 openBackgroundMap之前调用booleansetDefaultLevel(float level) voidsetFps(int fps) 设置帧率 createBackgroundDrawMapView之后调用voidsetMapDpiScale(float mapScale) 设置多实例地图dpi基于主图的缩放系数voidsetNaviMapMargin(int left, int top, int right, int bottom) 设置多实例地图全览边距 MapMargin 该接口设置要在开启全览setNaviMapViewAllStatus(boolean isNaviMapViewAllStatus)之前设置voidsetNaviMapViewAllStatus(boolean isNaviMapViewAllStatus) 设置多实例地图是否开启全览 注:需要进入导航后多实例路线加载完成之后设置。voidsetNorthMode(boolean model) 设置旋转模式voidsetScreenShotCallback(IBackgroundMapView.IScreenShotCallback onScreenShot) 设置截图回调,通过回调获取截图
-
Method Details
-
openBackgroundMap
boolean openBackgroundMap()开启后台绘制地图支持- Returns:
-
closeBackgroundMap
boolean closeBackgroundMap()关闭后台绘制地图- Returns:
-
onDestroy
void onDestroy() -
screenShot
Deprecated.- Returns:
-
setScreenShotCallback
设置截图回调,通过回调获取截图- Parameters:
onScreenShot-
-
addLayer
暂时外部不需要关注- Parameters:
backgroundDrawNaviLayer-
-
setCustomDrawOption
设置自定义绘制选项 openBackgroundMap之前调用- Parameters:
bkgCustomDrawOptions-
-
setDefaultLevel
boolean setDefaultLevel(float level) -
setCarOffset
boolean setCarOffset(int offsetx, int offsety) 设置自车位置(car logo)位置偏移- Parameters:
offsetx- pxoffsety- 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 完全退出后调用
-