public class TerrainTileDataSource extends TileDataSource
swigCMemOwn
构造器和说明 |
---|
TerrainTileDataSource(int minZoom,
int maxZoom,
java.lang.String baseURL)
Constructs a HTTPTileDataSource object.
|
TerrainTileDataSource(int minZoom,
int maxZoom,
java.lang.String baseURL,
Projection projection) |
TerrainTileDataSource(int minZoom,
int maxZoom,
java.lang.String baseURL,
Projection projection,
TerrainTileDataSourceType terrainTileDataSourceType) |
TerrainTileDataSource(int minZoom,
int maxZoom,
java.lang.String baseURL,
TerrainTileDataSourceType terrainTileDataSourceType)
Constructs a HTTPTileDataSource object.
|
TerrainTileDataSource(long cPtr,
boolean cMemoryOwn) |
限定符和类型 | 方法和说明 |
---|---|
protected java.lang.String |
buildTileURL(java.lang.String baseURL,
MapTile tile) |
void |
delete() |
protected void |
finalize() |
java.lang.String |
getBaseURL()
Returns the base URL template containing tags.
|
java.lang.String |
getBounds() |
static long |
getCPtr(TerrainTileDataSource obj) |
TerrainTileDataSourceType |
getDataSourceType() |
StringMap |
getHTTPHeaders()
Returns the current set of HTTP headers used.
|
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.
|
TileData |
loadTile(MapTile mapTile)
Loads the specified tile.
|
void |
resetRequestCount() |
void |
setBaseURL(java.lang.String baseURL)
Sets the base URL for the data source.
|
void |
setCachePath(boolean isOfflineDb,
java.lang.String path) |
void |
setCacheSize(int size) |
void |
setHTTPHeaders(StringMap headers)
Sets HTTP headers for all requests.
|
void |
setMaxAgeHeaderCheck(boolean maxAgeCheck)
Enables/disables the max-age header check.
|
void |
setSubdomains(StringVector subdomains)
Sets the subdomains for {s} tag.
|
void |
setTMSScheme(boolean tmsScheme)
Enables/disables the TMS tiling scheme.
|
static TerrainTileDataSource |
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() |
int |
terrainMaxZoom() |
getCPtr, getDataBounds, getMaxZoom, getMinZoom, getProjection, getTileSize, isIntervalLevel, notifyTilesChanged, setDataBounds, setIntervalLevel, setTileSize
public TerrainTileDataSource(long cPtr, boolean cMemoryOwn)
public TerrainTileDataSource(int minZoom, int maxZoom, java.lang.String baseURL, TerrainTileDataSourceType terrainTileDataSourceType)
minZoom
- The minimum zoom level supported by this data source.maxZoom
- The maximum zoom level supported by this data source.baseURL
- The base URL containing tags (for example, "http://tile.openstreetmap.org/{zoom}/{x}/{y}.png").public TerrainTileDataSource(int minZoom, int maxZoom, java.lang.String baseURL)
minZoom
- The minimum zoom level supported by this data source.maxZoom
- The maximum zoom level supported by this data source.baseURL
- The base URL containing tags (for example, "http://tile.openstreetmap.org/{zoom}/{x}/{y}.png").public TerrainTileDataSource(int minZoom, int maxZoom, java.lang.String baseURL, Projection projection, TerrainTileDataSourceType terrainTileDataSourceType)
public TerrainTileDataSource(int minZoom, int maxZoom, java.lang.String baseURL, Projection projection)
public static long getCPtr(TerrainTileDataSource 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 TerrainTileDataSource swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
cPtr
- The native pointer of the instance.cMemoryOwn
- The ownership flag.public java.lang.String getBaseURL()
public void setBaseURL(java.lang.String baseURL)
baseURL
- The base URL containing tags (for example, "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
- A map of HTTP headers that will be used in subsequent requests.public TileData loadTile(MapTile mapTile)
TileDataSource
loadTile
在类中 TileDataSource
mapTile
- The tile to load.public int getRequestCount()
public void resetRequestCount()
public void setCacheSize(int size)
public void setCachePath(boolean isOfflineDb, java.lang.String path)
public TerrainTileDataSourceType getDataSourceType()
public int terrainMaxZoom()
public java.lang.String getBounds()
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