public abstract class AbstractTileSource extends Object implements TileSource
Modifier and Type | Field and Description |
---|---|
protected Image |
attributionImage |
protected String |
attributionImageURL |
protected String |
attributionLinkURL |
protected String |
attributionText |
protected String |
termsOfUseText |
protected String |
termsOfUseURL |
Constructor and Description |
---|
AbstractTileSource() |
Modifier and Type | Method and Description |
---|---|
Image |
getAttributionImage() |
String |
getAttributionImageURL() |
String |
getAttributionLinkURL() |
String |
getAttributionText(int zoom,
ICoordinate topLeft,
ICoordinate botRight) |
String |
getTermsOfUseText() |
String |
getTermsOfUseURL() |
boolean |
isNoTileAtZoom(Map<String,List<String>> headers,
int statusCode,
byte[] content)
Determines, if the returned data from TileSource represent "no tile at this zoom level" situation.
|
boolean |
requiresAttribution() |
void |
setAttributionImage(Image attributionImage) |
void |
setAttributionImageURL(String attributionImageURL) |
void |
setAttributionLinkURL(String attributionLinkURL) |
void |
setAttributionText(String attributionText) |
void |
setTermsOfUseText(String termsOfUseText) |
void |
setTermsOfUseURL(String termsOfUseURL) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultTileSize, getDistance, getId, getMaxZoom, getMetadata, getMinZoom, getName, getTileId, getTileSize, getTileUrl, getTileXMax, getTileXMin, getTileYMax, getTileYMin, latLonToTileXY, latLonToTileXY, latLonToXY, latLonToXY, tileXYToLatLon, tileXYToLatLon, tileXYToLatLon, xyToLatLon, xyToLatLon
protected String attributionText
protected String attributionLinkURL
protected Image attributionImage
protected String attributionImageURL
protected String termsOfUseText
protected String termsOfUseURL
public AbstractTileSource()
public boolean requiresAttribution()
requiresAttribution
in interface Attributed
public String getAttributionText(int zoom, ICoordinate topLeft, ICoordinate botRight)
getAttributionText
in interface Attributed
zoom
- The optional zoom level for the view.topLeft
- The top left of the bounding box for attribution.botRight
- The bottom right of the bounding box for attribution.public String getAttributionLinkURL()
getAttributionLinkURL
in interface Attributed
public Image getAttributionImage()
getAttributionImage
in interface Attributed
public String getAttributionImageURL()
getAttributionImageURL
in interface Attributed
public String getTermsOfUseText()
getTermsOfUseText
in interface Attributed
public String getTermsOfUseURL()
getTermsOfUseURL
in interface Attributed
public void setAttributionText(String attributionText)
public void setAttributionLinkURL(String attributionLinkURL)
public void setAttributionImage(Image attributionImage)
public void setAttributionImageURL(String attributionImageURL)
public void setTermsOfUseText(String termsOfUseText)
public void setTermsOfUseURL(String termsOfUseURL)
public boolean isNoTileAtZoom(Map<String,List<String>> headers, int statusCode, byte[] content)
TileSource
isNoTileAtZoom
in interface TileSource
headers
- HTTP headers from response from TileSource serverstatusCode
- HTTP status codecontent
- byte array representing the data returned from the server