public abstract static class OsmTileSource.TransportMap extends AbstractOsmTileSource
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
PATTERN |
private static java.lang.String[] |
SERVER |
private int |
serverNum |
DEFAULT_OSM_ATTRIBUTIONmaxZoom, minZoom, osmMercatorbaseUrl, id, modTileFeatures, name, tileSizeattributionImage, attributionImageURL, attributionLinkURL, attributionText, termsOfUseText, termsOfUseURL| Constructor and Description |
|---|
TransportMap()
Constructs a new
TransportMap tile source. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.String |
getApiKey()
Get the thunderforest API key.
|
java.lang.String |
getAttributionLinkURL() |
java.lang.String |
getAttributionText(int zoom,
ICoordinate topLeft,
ICoordinate botRight) |
java.lang.String |
getBaseUrl() |
int |
getMaxZoom()
Specifies the maximum zoom value.
|
java.lang.String |
getTileUrl(int zoom,
int tilex,
int tiley)
Constructs the tile url.
|
getAttributionImage, getAttributionImageURL, getTermsOfUseText, getTermsOfUseURL, requiresAttributiongetCoveringTileRange, getDistance, getMinZoom, getServerCRS, isInside, latLonToTileXY, latLonToXY, projectedToTileXY, tileXYToLatLon, tileXYtoProjected, xyToLatLongetDefaultTileSize, getExtension, getId, getMetadata, getName, getTileId, getTilePath, getTileSize, getTileXMax, getTileXMin, getTileYMax, getTileYMin, isModTileFeatures, isNoTileAtZoom, latLonToTileXY, latLonToXY, tileXYToLatLon, tileXYToLatLon, toString, xyToLatLonsetAttributionImage, setAttributionImageURL, setAttributionLinkURL, setAttributionText, setTermsOfUseText, setTermsOfUseURLprivate static final java.lang.String PATTERN
private static final java.lang.String[] SERVER
private int serverNum
public TransportMap()
TransportMap tile source.protected abstract java.lang.String getApiKey()
public java.lang.String getBaseUrl()
getBaseUrl in class AbstractTMSTileSourcepublic int getMaxZoom()
TileSourceTileSource.getMaxZoom()].getMaxZoom in interface TileSourcegetMaxZoom in class AbstractOsmTileSourceJMapViewer.MAX_ZOOMpublic java.lang.String getTileUrl(int zoom, int tilex, int tiley) throws java.io.IOException
TileSourcegetTileUrl in interface TileSourcegetTileUrl in class AbstractTMSTileSourcezoom - zoom leveltilex - X coordinatetiley - Y coordinatejava.io.IOException - if any I/O error occurspublic java.lang.String getAttributionText(int zoom, ICoordinate topLeft, ICoordinate botRight)
getAttributionText in interface AttributedgetAttributionText in class AbstractOsmTileSourcezoom - 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 java.lang.String getAttributionLinkURL()
getAttributionLinkURL in interface AttributedgetAttributionLinkURL in class AbstractOsmTileSource