org.openstreetmap.gui.jmapviewer.tilesources
Class AbstractMapQuestTileSource
java.lang.Object
org.openstreetmap.gui.jmapviewer.tilesources.AbstractTileSource
org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
org.openstreetmap.gui.jmapviewer.tilesources.AbstractOsmTileSource
org.openstreetmap.gui.jmapviewer.tilesources.AbstractMapQuestTileSource
- All Implemented Interfaces:
- Attributed, TileSource
- Direct Known Subclasses:
- MapQuestOpenAerialTileSource, MapQuestOsmTileSource
public class AbstractMapQuestTileSource
- extends AbstractOsmTileSource
Methods inherited from class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource |
getExtension, getMinZoom, getName, getTilePath, getTileSize, getTileType, getTileUrl, latToTileY, lonToTileX, tileXToLon, tileYToLat, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LOGO_BASE64
private static final java.lang.String LOGO_BASE64
- See Also:
- Constant Field Values
MAPQUEST_ATTRIBUTION
protected static final java.lang.String MAPQUEST_ATTRIBUTION
- See Also:
- Constant Field Values
MAPQUEST_WEBSITE
protected static final java.lang.String MAPQUEST_WEBSITE
- See Also:
- Constant Field Values
NUMBER_OF_SERVERS
private static final int NUMBER_OF_SERVERS
- See Also:
- Constant Field Values
SERVER_NUM
private int SERVER_NUM
AbstractMapQuestTileSource
public AbstractMapQuestTileSource(java.lang.String name,
java.lang.String base_url)
getBaseUrl
public java.lang.String getBaseUrl()
- Overrides:
getBaseUrl
in class AbstractTMSTileSource
getTileUpdate
public TileSource.TileUpdate getTileUpdate()
- Returns:
- The supported tile update mechanism
- See Also:
TileSource.TileUpdate
getAttributionImage
public java.awt.Image getAttributionImage()
- Specified by:
getAttributionImage
in interface Attributed
- Overrides:
getAttributionImage
in class AbstractOsmTileSource
- Returns:
- The URL for the attribution image. Null if no image should be displayed.
getAttributionImageURL
public java.lang.String getAttributionImageURL()
- Specified by:
getAttributionImageURL
in interface Attributed
- Overrides:
getAttributionImageURL
in class AbstractOsmTileSource
- Returns:
- The URL to open when the user clicks the attribution image.
When return value is null, the image is still displayed (provided getAttributionImage()
returns a value other than null), but the image does not link to a website.
getTermsOfUseURL
public java.lang.String getTermsOfUseURL()
- Specified by:
getTermsOfUseURL
in interface Attributed
- Overrides:
getTermsOfUseURL
in class AbstractOsmTileSource
- Returns:
- The URL to open when the user clicks the attribution "Terms of Use" text.
JOSM