public abstract class AbstractOsmTileSource extends AbstractTMSTileSource
TileSource.TileUpdate
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_OSM_ATTRIBUTION
The OSM attribution.
|
baseUrl, id, name
attributionImage, attributionImageURL, attributionLinkURL, attributionText, termsOfUseText, termsOfUseURL
Constructor and Description |
---|
AbstractOsmTileSource(String name,
String base_url,
String id)
Constructs a new OSM tile source
|
Modifier and Type | Method and Description |
---|---|
Image |
getAttributionImage() |
String |
getAttributionImageURL() |
String |
getAttributionLinkURL() |
String |
getAttributionText(int zoom,
Coordinate topLeft,
Coordinate botRight) |
int |
getMaxZoom()
Specifies the maximum zoom value.
|
String |
getTermsOfUseText() |
String |
getTermsOfUseURL() |
boolean |
requiresAttribution() |
getBaseUrl, getDistance, getExtension, getId, 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 String DEFAULT_OSM_ATTRIBUTION
public AbstractOsmTileSource(String name, String base_url, String id)
name
- Source name as displayed in GUIbase_url
- Source URLid
- unique id for the tile source; contains only characters that
are safe for file names; can be nullpublic 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 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 String getAttributionLinkURL()
getAttributionLinkURL
in interface Attributed
getAttributionLinkURL
in class AbstractTileSource
public Image getAttributionImage()
getAttributionImage
in interface Attributed
getAttributionImage
in class AbstractTileSource
public String getAttributionImageURL()
getAttributionImageURL
in interface Attributed
getAttributionImageURL
in class AbstractTileSource
public String getTermsOfUseText()
getTermsOfUseText
in interface Attributed
getTermsOfUseText
in class AbstractTileSource
public String getTermsOfUseURL()
getTermsOfUseURL
in interface Attributed
getTermsOfUseURL
in class AbstractTileSource