org.openstreetmap.gui.jmapviewer.tilesources
Class ScanexTileSource
java.lang.Object
org.openstreetmap.gui.jmapviewer.tilesources.AbstractTileSource
org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
org.openstreetmap.gui.jmapviewer.tilesources.ScanexTileSource
- All Implemented Interfaces:
- Attributed, TileSource
public class ScanexTileSource
- extends AbstractTMSTileSource
Methods inherited from class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTileSource |
getAttributionImage, getAttributionImageURL, getAttributionLinkURL, getAttributionText, getTermsOfUseText, getTermsOfUseURL, requiresAttribution, setAttributionImage, setAttributionImageURL, setAttributionLinkURL, setAttributionText, setTermsOfUseText, setTermsOfUseURL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
API_KEY
private static java.lang.String API_KEY
Layer
private ScanexTileSource.ScanexLayer Layer
RADIUS_E
private static double RADIUS_E
EQUATOR
private static double EQUATOR
E
private static double E
cached_lat
private double cached_lat
ScanexTileSource
public ScanexTileSource(java.lang.String url)
getMaxZoom
public int getMaxZoom()
- Description copied from interface:
TileSource
- Specifies the maximum zoom value. The number of zoom levels is [0..
TileSource.getMaxZoom()
].
- Specified by:
getMaxZoom
in interface TileSource
- Overrides:
getMaxZoom
in class AbstractTMSTileSource
- Returns:
- maximum zoom value that has to be smaller or equal to
JMapViewer.MAX_ZOOM
getExtension
public java.lang.String getExtension()
- Overrides:
getExtension
in class AbstractTMSTileSource
getTilePath
public java.lang.String getTilePath(int zoom,
int tilex,
int tiley)
- Overrides:
getTilePath
in class AbstractTMSTileSource
getTileUpdate
public TileSource.TileUpdate getTileUpdate()
- Returns:
- The supported tile update mechanism
- See Also:
TileSource.TileUpdate
latToTileY
public double latToTileY(double lat,
int zoom)
- Specified by:
latToTileY
in interface TileSource
- Overrides:
latToTileY
in class AbstractTMSTileSource
lonToTileX
public double lonToTileX(double lon,
int zoom)
- Specified by:
lonToTileX
in interface TileSource
- Overrides:
lonToTileX
in class AbstractTMSTileSource
tileYToLat
public double tileYToLat(int y,
int zoom)
- Specified by:
tileYToLat
in interface TileSource
- Overrides:
tileYToLat
in class AbstractTMSTileSource
NextTerm
private double NextTerm(double lat,
double y,
int zoom)
tileXToLon
public double tileXToLon(int x,
int zoom)
- Specified by:
tileXToLon
in interface TileSource
- Overrides:
tileXToLon
in class AbstractTMSTileSource
JOSM