public class HTTPTileDataSource extends TileDataSource
swigCMemOwn
构造器和说明 |
---|
HTTPTileDataSource(int minZoom,
int maxZoom,
java.lang.String baseURL)
创建一个HTTPTileDataSource对象
|
HTTPTileDataSource(int minZoom,
int maxZoom,
java.lang.String baseURL,
Projection projection)
创建一个HTTPTileDataSource对象
|
HTTPTileDataSource(long cPtr,
boolean cMemoryOwn) |
限定符和类型 | 方法和说明 |
---|---|
protected java.lang.String |
buildTileURL(java.lang.String baseURL,
MapTile tile) |
void |
delete() |
protected void |
finalize() |
java.lang.String |
getBaseURL()
获取基础url模板
|
static long |
getCPtr(HTTPTileDataSource obj) |
StringMap |
getHTTPHeaders()
获取http请求头的参数
|
int |
getRequestCount()
获取总的请求次数
|
StringVector |
getSubdomains()
Returns the subdomains for {s} tag.
|
boolean |
isMaxAgeHeaderCheck()
Returns true/false based on whether the max-age header check is used.
|
boolean |
isTMSScheme()
Returns true/false based whether the TMS tiling scheme is used.
|
void |
resetRequestCount()
重置总的请求次数
|
void |
setBaiduTile(boolean isBaiduTile)
设置是否是访问baidu瓦片
|
void |
setBaseURL(java.lang.String baseURL)
设置基础url模板
|
void |
setCachePath(boolean isOfflineDb,
java.lang.String path) |
void |
setCacheSize(int size)
设置缓存大小
|
void |
setHTTPHeaders(StringMap headers)
设置http请求头的参数
|
void |
setMaxAgeHeaderCheck(boolean maxAgeCheck)
Enables/disables the max-age header check.
|
void |
setOfflineDb(StringVector listPath)
设置离线地图列表
|
void |
setSubdomains(StringVector subdomains)
Sets the subdomains for {s} tag.
|
void |
setTdtRand(boolean rand)
对于天地图服务是否要进行随机值替换,包含字符串".tianditu.com/"或".tianditu.gov.cn/"就认为是天地图服务
|
void |
setTMSScheme(boolean tmsScheme)
Enables/disables the TMS tiling scheme.
|
void |
setZoomOffset(int offset)
设置层级偏移量。
|
static HTTPTileDataSource |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
protected void |
swigDirectorDisconnect() |
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
void |
swigReleaseOwnership() |
void |
swigTakeOwnership() |
getCPtr, getDataBounds, getMaxZoom, getMinZoom, getProjection, getTileSize, isIntervalLevel, loadTile, notifyTilesChanged, setDataBounds, setIntervalLevel, setTileSize
public HTTPTileDataSource(long cPtr, boolean cMemoryOwn)
public HTTPTileDataSource(int minZoom, int maxZoom, java.lang.String baseURL)
minZoom
- 最小层级maxZoom
- 最大层级baseURL
- 基础url模板 (例如, "http://tile.openstreetmap.org/{zoom}/{x}/{y}.png").public HTTPTileDataSource(int minZoom, int maxZoom, java.lang.String baseURL, Projection projection)
minZoom
- 最小层级maxZoom
- 最大层级baseURL
- 基础url模板 (例如, "http://tile.openstreetmap.org/{zoom}/{x}/{y}.png")projection
- 投影对象public static long getCPtr(HTTPTileDataSource obj)
protected void finalize()
finalize
在类中 TileDataSource
public void delete()
delete
在类中 TileDataSource
protected void swigDirectorDisconnect()
swigDirectorDisconnect
在类中 TileDataSource
public void swigReleaseOwnership()
swigReleaseOwnership
在类中 TileDataSource
public void swigTakeOwnership()
swigTakeOwnership
在类中 TileDataSource
public static HTTPTileDataSource swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
cPtr
- The native pointer of the instance.cMemoryOwn
- The ownership flag.public void setBaiduTile(boolean isBaiduTile)
isBaiduTile
- 是否百度瓦片public java.lang.String getBaseURL()
public void setBaseURL(java.lang.String baseURL)
baseURL
- 基础url模板(例如, "http://tile.openstreetmap.org/{zoom}/{x}/{y}.png").public StringVector getSubdomains()
public void setSubdomains(StringVector subdomains)
subdomains
- The list of subdomains to use.public boolean isTMSScheme()
public void setTMSScheme(boolean tmsScheme)
tmsScheme
- True is TMS tiling scheme should be used. False is XYZ should be used.public boolean isMaxAgeHeaderCheck()
public void setMaxAgeHeaderCheck(boolean maxAgeCheck)
maxAgeCheck
- True if the check should be enabled, false otherwise.public StringMap getHTTPHeaders()
public void setHTTPHeaders(StringMap headers)
headers
- http请求头的参数public int getRequestCount()
public void resetRequestCount()
public void setCacheSize(int size)
size
- public void setCachePath(boolean isOfflineDb, java.lang.String path)
public void setOfflineDb(StringVector listPath)
listPath
- 离线地图列表public void setZoomOffset(int offset)
offset
- 层级偏移量public void setTdtRand(boolean rand)
rand
- 是否要进行随机值替换protected java.lang.String buildTileURL(java.lang.String baseURL, MapTile tile)
public java.lang.String swigGetClassName()
swigGetClassName
在类中 TileDataSource
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
在类中 TileDataSource