public class TileOverlaySource
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
TILESOURCE_TYPE_FBO_TEXTURE |
static int |
TILESOURCE_TYPE_IMAGE |
static int |
TILESOURCE_TYPE_IMAGE_DEM |
static int |
TILESOURCE_TYPE_VECTOR |
| 构造器和说明 |
|---|
TileOverlaySource(int id,
int type,
java.lang.String url)
Tile数据源,需要定数据的类型
Tile data source, the data type needs to be specified |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getId()
数据源唯一标识,请求时通过唯一标识来进行区分,内部生成
Unique identifier for the data source, used to distinguish during requests, internally generated |
int |
getMaxZoom()
数据最大级别,高于了没有数据
Maximum data level, no data above this level |
int |
getMinZoom()
数据最小级别,低于了没有数据
Minimum data level, no data below this level |
int |
getType()
数据源类型
Data source type |
java.lang.String |
getUrl()
数据源类型 下载地址
Data source type download URL |
boolean |
isCacheEnabled()
是否会缓存瓦片数据
Whether to cache tile data |
void |
setCacheEnabled(boolean cacheEnabled)
是否会缓存瓦片数据
Whether to cache tile data |
void |
setMaxZoom(int maxZoom)
数据最大级别,高于了没有数据
Maximum data level, no data above this level |
void |
setMinZoom(int minZoom)
数据最小级别,低于了没有数据
Minimum data level, no data below this level |
public static int TILESOURCE_TYPE_IMAGE
public static int TILESOURCE_TYPE_VECTOR
public static int TILESOURCE_TYPE_IMAGE_DEM
public static int TILESOURCE_TYPE_FBO_TEXTURE
public TileOverlaySource(int id,
int type,
java.lang.String url)
id - idtype - 数据类型
url - 数据下载的url
public int getId()
public int getType()
public int getMinZoom()
public void setMinZoom(int minZoom)
public int getMaxZoom()
public void setMaxZoom(int maxZoom)
public java.lang.String getUrl()
public void setCacheEnabled(boolean cacheEnabled)
public boolean isCacheEnabled()