org.openstreetmap.gui.jmapviewer
Class OsmTileSource.Mapnik

java.lang.Object
  extended by org.openstreetmap.gui.jmapviewer.OsmTileSource.AbstractOsmTileSource
      extended by org.openstreetmap.gui.jmapviewer.OsmTileSource.Mapnik
All Implemented Interfaces:
TileSource
Enclosing class:
OsmTileSource

public static class OsmTileSource.Mapnik
extends OsmTileSource.AbstractOsmTileSource


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openstreetmap.gui.jmapviewer.interfaces.TileSource
TileSource.TileUpdate
 
Field Summary
static java.lang.String NAME
           
 
Constructor Summary
OsmTileSource.Mapnik()
           
 
Method Summary
 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 org.openstreetmap.gui.jmapviewer.OsmTileSource.AbstractOsmTileSource
getMaxZoom, getMinZoom, getTileType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static java.lang.String NAME
Constructor Detail

OsmTileSource.Mapnik

public OsmTileSource.Mapnik()
Method Detail

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

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

getTileUpdate

public TileSource.TileUpdate getTileUpdate()
Returns:
The supported tile update mechanism
See Also:
TileSource.TileUpdate