public abstract class AbstractTMSTileSource extends AbstractTileSource
TileSource.TileUpdate
Modifier and Type | Field and Description |
---|---|
protected String |
baseUrl |
protected String |
name |
attributionImage, attributionImageURL, attributionLinkURL, attributionText, termsOfUseText, termsOfUseURL
Constructor and Description |
---|
AbstractTMSTileSource(String name,
String base_url) |
Modifier and Type | Method and Description |
---|---|
String |
getBaseUrl() |
String |
getExtension() |
int |
getMaxZoom()
Specifies the maximum zoom value.
|
int |
getMinZoom()
Specifies the minimum zoom value.
|
String |
getName()
A tile layer name has to be unique and has to consist only of characters
valid for filenames.
|
String |
getTilePath(int zoom,
int tilex,
int tiley) |
int |
getTileSize()
Specifies how large each tile is.
|
String |
getTileType()
Specifies the tile image type.
|
String |
getTileUrl(int zoom,
int tilex,
int tiley)
Constructs the tile url.
|
double |
latToTileY(double lat,
int zoom) |
double |
lonToTileX(double lon,
int zoom) |
double |
tileXToLon(int x,
int zoom) |
double |
tileYToLat(int y,
int zoom) |
String |
toString() |
getAttributionImage, getAttributionImageURL, getAttributionLinkURL, getAttributionText, getTermsOfUseText, getTermsOfUseURL, requiresAttribution, setAttributionImage, setAttributionImageURL, setAttributionLinkURL, setAttributionText, setTermsOfUseText, setTermsOfUseURL
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTileUpdate
public AbstractTMSTileSource(String name, String base_url)
public String getName()
TileSource
public int getMaxZoom()
TileSource
TileSource.getMaxZoom()
].JMapViewer.MAX_ZOOM
public int getMinZoom()
TileSource
public String getExtension()
public String getTilePath(int zoom, int tilex, int tiley) throws IOException
IOException
- when subclass cannot return the tile URLpublic String getBaseUrl()
public String getTileUrl(int zoom, int tilex, int tiley) throws IOException
TileSource
IOException
public String getTileType()
TileSource
"png"
.public int getTileSize()
TileSource
public double latToTileY(double lat, int zoom)
public double lonToTileX(double lon, int zoom)
public double tileYToLat(int y, int zoom)
public double tileXToLon(int x, int zoom)