public class MercatorTileImage extends Objectimplements CoordinateTransformer
| Constructor and Description |
|---|
MercatorTileImage(int zoom, int x, int y)
Create a tile defined by zoom, x and y and a default size of 256x256 pixels.
|
MercatorTileImage(int zoom, int x, int y, int tileWidth, int tileHeight)
Create a tile defined by zoom, x and y with a user defined width and height.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getLat1()
|
double |
getLat2()
|
double |
getLon1()
|
double |
getLon2()
|
int |
getTileHeight()
Get the height of the tile
|
int |
getTileWidth()
Get the width of the tile
|
int |
getTileX()
|
int |
getTileY()
|
int |
getTileZoom()
|
double |
getX(double lon)
|
double |
getY(double lat)
|
void |
setTileX(int tileX)
Set the x coordinate.
|
void |
setTileY(int tileY)
Set the y coordinate.
|
void |
setTileZoom(int tileZoom)
Set zoom level to tileZoom.
|
String |
toString()
|
public MercatorTileImage(int zoom,
int x,
int y)
zoom - the zoom level.
x - the x coordinate.
y - the y coordinate.
public MercatorTileImage(int zoom,
int x,
int y,
int tileWidth,
int tileHeight)
zoom - the zoom level.
x - the x coordinate.
y - the y coordinate.
tileWidth - the width of the tile
tileHeight - the height of the tile
public StringtoString()
public double getX(double lon)
public double getY(double lat)
public int getTileZoom()
public int getTileX()
public int getTileY()
public double getLon1()
public double getLat1()
public double getLon2()
public double getLat2()
public void setTileZoom(int tileZoom)
tileZoom - the new zoom level.
public void setTileX(int tileX)
tileX - the new x coordinate.
public void setTileY(int tileY)
tileY - the new y coordinate.
public int getTileWidth()
public int getTileHeight()