public class TileSourceInfo extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
cookies
cookies that needs to be sent to tile source
|
protected String |
id
id for this imagery entry, optional at the moment
|
protected int |
maxZoom
maximum zoom level supported by the tile source
|
protected Map<String,String> |
metadataHeaders
mapping <header key, metadata key>
|
protected int |
minZoom
minimum zoom level supported by the tile source
|
protected String |
name
name of the imagery layer
|
protected Map<String,String> |
noTileHeaders
headers meaning, that there is no tile at this zoom level
|
private int |
tileSize
tile size of the displayed tiles
|
protected String |
url
URL of the imagery service
|
Constructor and Description |
---|
TileSourceInfo()
Creates empty TileSourceInfo class
|
TileSourceInfo(String name)
Create a TileSourceInfo class
|
TileSourceInfo(String name,
String baseUrl,
String id)
Create a TileSourceInfo class
|
Modifier and Type | Method and Description |
---|---|
String |
getCookies()
Request cookies to be sent together with request
|
String |
getId()
Request ID of the tile source.
|
int |
getMaxZoom()
Request supported maximum zoom level
|
Map<String,String> |
getMetadataHeaders()
Request metadata headers
|
int |
getMinZoom()
Request supported minimum zoom level
|
String |
getName()
Request name of the tile source
|
Map<String,String> |
getNoTileHeaders()
Request header information for empty tiles for servers delivering such tile types
|
int |
getTileSize()
Request tile size of this tile source
|
String |
getUrl()
Request URL of the tile source
|
void |
setId(String id)
Sets the tile id.
|
void |
setName(String name)
Sets the tile name.
|
void |
setTileSize(int tileSize)
Sets the tile size provided by this tile source
|
void |
setUrl(String url)
Sets the tile URL.
|
protected Map<String,String> noTileHeaders
protected int minZoom
protected int maxZoom
private int tileSize
protected Map<String,String> metadataHeaders
public TileSourceInfo(String name, String baseUrl, String id)
name
- namebaseUrl
- base URLid
- unique idpublic TileSourceInfo(String name)
name
- namepublic TileSourceInfo()
public final String getName()
public final String getId()
public Map<String,String> getNoTileHeaders()
public int getMinZoom()
public int getMaxZoom()
public String getCookies()
public int getTileSize()
public Map<String,String> getMetadataHeaders()
public final void setTileSize(int tileSize)
tileSize
- tile size in pixels