org.openstreetmap.gui.jmapviewer.tilesources
Class AbstractMapQuestTileSource

java.lang.Object
  extended by org.openstreetmap.gui.jmapviewer.tilesources.AbstractTileSource
      extended by org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
          extended by org.openstreetmap.gui.jmapviewer.tilesources.AbstractOsmTileSource
              extended by org.openstreetmap.gui.jmapviewer.tilesources.AbstractMapQuestTileSource
All Implemented Interfaces:
Attributed, TileSource
Direct Known Subclasses:
MapQuestOpenAerialTileSource, MapQuestOsmTileSource

public class AbstractMapQuestTileSource
extends AbstractOsmTileSource


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openstreetmap.gui.jmapviewer.interfaces.TileSource
TileSource.TileUpdate
 
Field Summary
private static java.lang.String LOGO_BASE64
           
protected static java.lang.String MAPQUEST_ATTRIBUTION
           
protected static java.lang.String MAPQUEST_WEBSITE
           
private static int NUMBER_OF_SERVERS
           
private  int SERVER_NUM
           
 
Fields inherited from class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
baseUrl, name
 
Fields inherited from class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTileSource
attributionImage, attributionImageURL, attributionLinkURL, attributionText, termsOfUseText, termsOfUseURL
 
Constructor Summary
AbstractMapQuestTileSource(java.lang.String name, java.lang.String base_url)
           
 
Method Summary
 java.awt.Image getAttributionImage()
           
 java.lang.String getAttributionImageURL()
           
 java.lang.String getBaseUrl()
           
 java.lang.String getTermsOfUseURL()
           
 TileSource.TileUpdate getTileUpdate()
           
 
Methods inherited from class org.openstreetmap.gui.jmapviewer.tilesources.AbstractOsmTileSource
getAttributionLinkURL, getAttributionText, getMaxZoom, getTermsOfUseText, requiresAttribution
 
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 org.openstreetmap.gui.jmapviewer.tilesources.AbstractTileSource
setAttributionImage, setAttributionImageURL, setAttributionLinkURL, setAttributionText, setTermsOfUseText, setTermsOfUseURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

AbstractMapQuestTileSource

public AbstractMapQuestTileSource(java.lang.String name,
                                  java.lang.String base_url)
Method Detail

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