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, setTermsOfUseURLclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTileUpdatepublic AbstractTMSTileSource(String name, String base_url)
public String getName()
TileSourcepublic int getMaxZoom()
TileSourceTileSource.getMaxZoom()].JMapViewer.MAX_ZOOMpublic int getMinZoom()
TileSourcepublic 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
TileSourceIOExceptionpublic String getTileType()
TileSource"png".public int getTileSize()
TileSourcepublic 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)