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_ATTRIBUTION
maxZoom, minZoom, osmMercator
baseUrl, id, modTileFeatures, name, tileSize
attributionImage, 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, requiresAttribution
getCoveringTileRange, getDistance, getMinZoom, getServerCRS, isInside, latLonToTileXY, latLonToXY, projectedToTileXY, tileXYToLatLon, tileXYtoProjected, xyToLatLon
getDefaultTileSize, getExtension, getId, getMetadata, getName, getTileId, getTilePath, getTileSize, getTileXMax, getTileXMin, getTileYMax, getTileYMin, isModTileFeatures, isNoTileAtZoom, latLonToTileXY, latLonToXY, tileXYToLatLon, tileXYToLatLon, toString, xyToLatLon
setAttributionImage, setAttributionImageURL, setAttributionLinkURL, setAttributionText, setTermsOfUseText, setTermsOfUseURL
private 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 AbstractTMSTileSource
public int getMaxZoom()
TileSource
TileSource.getMaxZoom()
].getMaxZoom
in interface TileSource
getMaxZoom
in class AbstractOsmTileSource
JMapViewer.MAX_ZOOM
public java.lang.String getTileUrl(int zoom, int tilex, int tiley) throws java.io.IOException
TileSource
getTileUrl
in interface TileSource
getTileUrl
in class AbstractTMSTileSource
zoom
- 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 Attributed
getAttributionText
in class AbstractOsmTileSource
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 java.lang.String getAttributionLinkURL()
getAttributionLinkURL
in interface Attributed
getAttributionLinkURL
in class AbstractOsmTileSource