public final class TileOverlayOptions
extends java.lang.Object
Constructor and Description |
---|
TileOverlayOptions() |
Modifier and Type | Method and Description |
---|---|
TileOverlayOptions |
betterQuality(boolean betterQuality)
当前 TileOverlay 是否以高清模式加载
|
TileOverlayOptions |
diskCacheDir(java.lang.String diskCacheDir)
设置磁盘缓存路径
如果有 WRITE_EXTERNAL_STORAGE 权限,diskCacheDir 的父目录为 /sdcard/tencentmapsdk/app_package_name/data/tile 如果没有 WRITE_EXTERNAL_STORAGE 权限,diskCacheDir 的父目录为 Context#getFilesDir() .getAbsolutePath()/tile |
java.lang.String |
getDiskCacheDir()
获取磁盘缓存目录
|
int |
getMaxMemoryCacheSize(TencentMapContext context)
获得最大内存缓存大小
|
TileProvider |
getTileProvider()
获取瓦片源
|
java.lang.String |
getVersionInfo()
设置瓦片数据的版本信息
|
int |
getZIndex()
获取 TileOverlay 的绘制层级
|
boolean |
isBetterQuality()
是否高清
|
TileOverlayOptions |
maxMemoryCacheSize(int maxMemoryCacheSize)
设置最大内存缓存值
|
TileOverlayOptions |
tileProvider(TileProvider tileProvider)
设置瓦片源
|
java.lang.String |
toString() |
TileOverlayOptions |
versionInfo(java.lang.String versionInfo)
瓦片图层数据的版本信息,不同版本的数据会存放到
getDiskCacheDir() /getVersionInfo() 目录下 |
TileOverlayOptions |
zIndex(int zindex)
设置瓦片的绘制层级,该参数只对添加多层 TileOverlay 的情况下有意义。
|
public TileOverlayOptions tileProvider(TileProvider tileProvider)
tileProvider
- public TileOverlayOptions diskCacheDir(java.lang.String diskCacheDir)
Context#getFilesDir()
.getAbsolutePath()/tilediskCacheDir
- 磁盘缓存目录public TileOverlayOptions maxMemoryCacheSize(int maxMemoryCacheSize)
maxMemoryCacheSize
- 内存缓存值 单位:字节public TileOverlayOptions versionInfo(java.lang.String versionInfo)
getDiskCacheDir()
/getVersionInfo()
目录下public TileOverlayOptions zIndex(int zindex)
zindex
- public TileOverlayOptions betterQuality(boolean betterQuality)
betterQuality
- 如果是 true,将以高清模式加载瓦片,每个瓦片会以 256*256 dp 展示;public TileProvider getTileProvider()
public int getZIndex()
public boolean isBetterQuality()
public java.lang.String getDiskCacheDir()
public java.lang.String getVersionInfo()
public int getMaxMemoryCacheSize(TencentMapContext context)
public java.lang.String toString()
toString
in class java.lang.Object