public abstract class AbstractOsmTileSource extends AbstractTMSTileSource
TileSource.TileUpdate
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_OSM_ATTRIBUTION
The OSM attribution.
|
baseUrl, name
attributionImage, attributionImageURL, attributionLinkURL, attributionText, termsOfUseText, termsOfUseURL
Constructor and Description |
---|
AbstractOsmTileSource(java.lang.String name,
java.lang.String base_url)
Constructs a new OSM tile source
|
Modifier and Type | Method and Description |
---|---|
java.awt.Image |
getAttributionImage() |
java.lang.String |
getAttributionImageURL() |
java.lang.String |
getAttributionLinkURL() |
java.lang.String |
getAttributionText(int zoom,
Coordinate topLeft,
Coordinate botRight) |
int |
getMaxZoom()
Specifies the maximum zoom value.
|
java.lang.String |
getTermsOfUseText() |
java.lang.String |
getTermsOfUseURL() |
boolean |
requiresAttribution() |
getBaseUrl, getDistance, getExtension, getMinZoom, getName, getTilePath, getTileSize, getTileType, getTileUrl, latToTileY, LatToY, lonToTileX, LonToX, tileXToLon, tileYToLat, toString, XToLon, YToLat
setAttributionImage, setAttributionImageURL, setAttributionLinkURL, setAttributionText, setTermsOfUseText, setTermsOfUseURL
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTileUpdate
public static final java.lang.String DEFAULT_OSM_ATTRIBUTION
public AbstractOsmTileSource(java.lang.String name, java.lang.String base_url)
name
- Source name as displayed in GUIbase_url
- Source URLpublic int getMaxZoom()
TileSource
TileSource.getMaxZoom()
].getMaxZoom
in interface TileSource
getMaxZoom
in class AbstractTMSTileSource
JMapViewer.MAX_ZOOM
public boolean requiresAttribution()
requiresAttribution
in interface Attributed
requiresAttribution
in class AbstractTileSource
public java.lang.String getAttributionText(int zoom, Coordinate topLeft, Coordinate botRight)
getAttributionText
in interface Attributed
getAttributionText
in class AbstractTileSource
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 AbstractTileSource
public java.awt.Image getAttributionImage()
getAttributionImage
in interface Attributed
getAttributionImage
in class AbstractTileSource
public java.lang.String getAttributionImageURL()
getAttributionImageURL
in interface Attributed
getAttributionImageURL
in class AbstractTileSource
public java.lang.String getTermsOfUseText()
getTermsOfUseText
in interface Attributed
getTermsOfUseText
in class AbstractTileSource
public java.lang.String getTermsOfUseURL()
getTermsOfUseURL
in interface Attributed
getTermsOfUseURL
in class AbstractTileSource