public class

MapRenderLayer

extends MapView
java.lang.Object
   ↳ BaseMapView
     ↳ com.tencent.tencentmap.mapsdk.maps.MapView
       ↳ com.tencent.tencentmap.mapsdk.maps.MapRenderLayer

Class Overview

地图渲染Layer,支持将地图渲染到用户通过TencentMapOptions传染的Surfae/SurfaceTexture上, 用户无需将其添加到自己的UITree中,但需要正常调用其生命周期方法,在Surface/SurfaceTexture 尺寸发生变化时,需要调用其onSizeChanged的方法

Summary

Public Constructors
MapRenderLayer(Context context, TencentMapOptions tencentMapOptions)
根据给定的地图选项初始化地图
Public Methods
final void onSurfaceChanged(Object surface, int width, int height)
当需要更新Surface时(支持Surface/SurfaceTexture/SurfaceHolder),调用此方法
[Expand]
Inherited Methods
From class com.tencent.tencentmap.mapsdk.maps.MapView
From class java.lang.Object

Public Constructors

public MapRenderLayer (Context context, TencentMapOptions tencentMapOptions)

根据给定的地图选项初始化地图

Parameters
tencentMapOptions 腾讯地图选项

Public Methods

public final void onSurfaceChanged (Object surface, int width, int height)

当需要更新Surface时(支持Surface/SurfaceTexture/SurfaceHolder),调用此方法

Parameters
surface 需要更新的Surface
width 宽度
height 高度