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, setYt2bpublic SLMapServerInfo()
public SLMapServerInfo(String baseURL)
baseURL - the base URLpublic int getMidpoint()
public int getTileSize(int zoom)
TileFactoryInfogetTileSize in class TileFactoryInfozoom - the zoom levelpublic int getMapWidthInTilesAtZoom(int zoom)
getMapWidthInTilesAtZoom in class TileFactoryInfozoom - the zoom levelpublic String getTileUrl(int x, int y, int zoom)
TileFactoryInfobaseURl =
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 TileFactoryInfox - the x value, measured from left to righty - the y value, measured from top to bottomzoom - the zoom levelCopyright © 2014. All Rights Reserved.