|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maryanovsky.map.client.osm.OsmTileLayer
public class OsmTileLayer
Implements an OpenStreetMaps.org tile layer.
| Constructor Summary | |
|---|---|
OsmTileLayer(String baseUrl,
int minZoom,
int maxZoom)
Creates a new OsmTileLayer with the specified base URL and
minimum and maximum zoom values. |
|
OsmTileLayer(String baseUrl,
String tileExtension,
int minZoom,
int maxZoom)
Creates a new OsmTileLayer with the specified base URL, tile
files' extension, and minimum and maximum zoom values. |
|
| Method Summary | |
|---|---|
Tile |
getTile(int x,
int y,
int zoom)
Returns the tile to display at the specified location (in pixels, relative to the top-left of the map) and zoom. |
SizeView |
getTileSize()
Returns the size of the tiles. |
void |
releaseTile(Tile tile)
Releases any resources associated with the specified tile that was returned by TileLayer.getTile(int, int, int). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OsmTileLayer(String baseUrl,
String tileExtension,
int minZoom,
int maxZoom)
OsmTileLayer with the specified base URL, tile
files' extension, and minimum and maximum zoom values.
public OsmTileLayer(String baseUrl,
int minZoom,
int maxZoom)
OsmTileLayer with the specified base URL and
minimum and maximum zoom values.
| Method Detail |
|---|
public SizeView getTileSize()
getTileSize in interface TileLayer
public Tile getTile(int x,
int y,
int zoom)
null
if there is no tile at the specified location, if, for example, it is
outside the boundaries of the map.
getTile in interface TileLayerpublic void releaseTile(Tile tile)
TileLayer.getTile(int, int, int).
releaseTile in interface TileLayer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||