public class SLMapServerInfo extends TileFactoryInfo
baseURL
Constructor and Description |
---|
SLMapServerInfo()
Uses the default base URL
|
SLMapServerInfo(String baseURL) |
Modifier and Type | Method and Description |
---|---|
int |
getMapWidthInTilesAtZoom(int zoom) |
int |
getMidpoint() |
int |
getTileSize(int zoom)
Get the tile size.
|
String |
getTileUrl(int x,
int y,
int zoom)
Returns the tile url for the specified tile at the specified zoom level.
|
getBaseURL, getDefaultZoomLevel, getLongitudeDegreeWidthInPixels, getLongitudeRadianWidthInPixels, getMapCenterInPixelsAtZoom, getMaximumZoomLevel, getMinimumZoomLevel, getName, getTotalMapZoom, isXr2l, isYt2b, setDefaultZoomLevel, setXr2l, setYt2b
public SLMapServerInfo()
public SLMapServerInfo(String baseURL)
baseURL
- the base URLpublic int getMidpoint()
public int getTileSize(int zoom)
TileFactoryInfo
getTileSize
in class TileFactoryInfo
zoom
- the zoom levelpublic int getMapWidthInTilesAtZoom(int zoom)
getMapWidthInTilesAtZoom
in class TileFactoryInfo
zoom
- the zoom levelpublic String getTileUrl(int x, int y, int zoom)
TileFactoryInfo
baseURl =
http://www.myserver.com/maps?version=0.1 xparam = x yparam = y zparam = z tilepoint = [1,2] zoom level = 3
then the resulting url would be:
http://www.myserver.com/maps?version=0.1&x=1&y=2&z=3
Note that the URL can be
a file:
url.getTileUrl
in class TileFactoryInfo
x
- the x value, measured from left to righty
- the y value, measured from top to bottomzoom
- the zoom levelCopyright © 2013. All Rights Reserved.