public interface TileSource
Modifier and Type | Method and Description |
---|---|
javafx.scene.image.Image |
getAttributionImage() |
java.lang.String |
getAttributionLinkURL() |
java.lang.String |
getAttributionText(int zoom,
Coordinate topLeft,
Coordinate botRight) |
int |
getMaxZoom()
Specifies the maximum zoom value.
|
int |
getMinZoom()
Specifies the minimum zoom value.
|
java.lang.String |
getName()
A tile layer name has to be unique and has to consist only of characters
valid for filenames.
|
java.lang.String |
getTermsOfUseURL() |
int |
getTileSize()
Specifies how large each tile is.
|
java.lang.String |
getTileUrl(int zoom,
int tilex,
int tiley)
Constructs the tile url.
|
boolean |
isAttributionRequired() |
double |
latToTileY(double lat,
int zoom) |
double |
lonToTileX(double lon,
int zoom) |
double |
tileXToLon(int x,
int zoom) |
double |
tileYToLat(int y,
int zoom) |
int getMaxZoom()
getMaxZoom()
].JMapViewer#MAX_ZOOM
int getMinZoom()
java.lang.String getName()
java.lang.String getTileUrl(int zoom, int tilex, int tiley)
zoom
- tilex
- tiley
- int getTileSize()
boolean isAttributionRequired()
java.lang.String getAttributionText(int zoom, Coordinate topLeft, Coordinate botRight)
zoom
- The optional zoom level for the view.botRight
- The bottom right of the bounding box for attribution.topLeft
- The top left of the bounding box for attribution.javafx.scene.image.Image getAttributionImage()
java.lang.String getAttributionLinkURL()
java.lang.String getTermsOfUseURL()
double latToTileY(double lat, int zoom)
double lonToTileX(double lon, int zoom)
double tileYToLat(int y, int zoom)
double tileXToLon(int x, int zoom)