org.openstreetmap.gui.jmapviewer
Class OsmTileSource.CycleMap
java.lang.Object
org.openstreetmap.gui.jmapviewer.OsmTileSource.AbstractOsmTileSource
org.openstreetmap.gui.jmapviewer.OsmTileSource.CycleMap
- All Implemented Interfaces:
- TileSource
- Enclosing class:
- OsmTileSource
public static class OsmTileSource.CycleMap
- extends OsmTileSource.AbstractOsmTileSource
Field Summary |
static java.lang.String |
NAME
|
private static java.lang.String |
PATTERN
|
private static java.lang.String[] |
SERVER
|
private int |
SERVER_NUM
|
Method Summary |
int |
getMaxZoom()
Specifies the maximum zoom value. |
java.lang.String |
getName()
A tile layer name has to be unique and has to consist only of characters
valid for filenames. |
TileSource.TileUpdate |
getTileUpdate()
|
java.lang.String |
getTileUrl(int zoom,
int tilex,
int tiley)
Constructs the tile url. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PATTERN
private static final java.lang.String PATTERN
- See Also:
- Constant Field Values
NAME
public static java.lang.String NAME
SERVER
private static final java.lang.String[] SERVER
SERVER_NUM
private int SERVER_NUM
OsmTileSource.CycleMap
public OsmTileSource.CycleMap()
getTileUrl
public java.lang.String getTileUrl(int zoom,
int tilex,
int tiley)
- Description copied from interface:
TileSource
- Constructs the tile url.
- Specified by:
getTileUrl
in interface TileSource
- Overrides:
getTileUrl
in class OsmTileSource.AbstractOsmTileSource
- Returns:
- fully qualified url for downloading the specified tile image
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 OsmTileSource.AbstractOsmTileSource
- Returns:
- maximum zoom value that has to be smaller or equal to
JMapViewer.MAX_ZOOM
getName
public java.lang.String getName()
- Description copied from interface:
TileSource
- A tile layer name has to be unique and has to consist only of characters
valid for filenames.
- Returns:
- Name of the tile layer
getTileUpdate
public TileSource.TileUpdate getTileUpdate()
- Returns:
- The supported tile update mechanism
- See Also:
TileSource.TileUpdate