public class HTTPTileDataSource extends TileDataSource
swigCMemOwn| Constructor and Description |
|---|
HTTPTileDataSource(int minZoom,
int maxZoom,
java.lang.String baseURL)
Constructs a HTTPTileDataSource object.
|
HTTPTileDataSource(long cPtr,
boolean cMemoryOwn) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
buildTileUrl(MapTile tile) |
void |
delete() |
protected void |
finalize() |
java.lang.String |
getBaseURL()
Returns the base URL template containing tags.
|
static long |
getCPtr(HTTPTileDataSource obj) |
StringMap |
getHTTPHeaders()
Returns the current set of HTTP headers used.
|
TileData |
loadTile(MapTile mapTile)
Loads the specified tile.
|
void |
setBaseURL(java.lang.String baseURL)
Sets the base URL for the data source.
|
void |
setHTTPHeaders(StringMap headers)
Sets HTTP headers for all requests.
|
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, getMaxZoom, getMinZoom, getProjection, notifyTilesChangedpublic HTTPTileDataSource(long cPtr,
boolean cMemoryOwn)
public HTTPTileDataSource(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 static long getCPtr(HTTPTileDataSource obj)
protected void finalize()
finalize in class TileDataSourcepublic void delete()
delete in class TileDataSourceprotected void swigDirectorDisconnect()
swigDirectorDisconnect in class TileDataSourcepublic void swigReleaseOwnership()
swigReleaseOwnership in class TileDataSourcepublic void swigTakeOwnership()
swigTakeOwnership in class TileDataSourcepublic static HTTPTileDataSource swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
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 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)
TileDataSourceloadTile in class TileDataSourcemapTile - The tile to load.protected java.lang.String buildTileUrl(MapTile tile)
public java.lang.String swigGetClassName()
swigGetClassName in class TileDataSourcepublic java.lang.Object swigGetDirectorObject()
swigGetDirectorObject in class TileDataSource