public class SLMapServerInfo extends TileFactoryInfo
baseURL, longitudeDegreeWidthInPixels, longitudeRadianWidthInPixels, mapCenterInPixelsAtZoom, mapWidthInTilesAtZoom, maximumZoomLevel, minimumZoomLevel, totalMapZoom| 构造器 | 说明 |
|---|---|
SLMapServerInfo() |
|
SLMapServerInfo(String baseURL) |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getMapWidthInTilesAtZoom(int zoom) |
Get map width in tiles at 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultZoomLevel, getLanguage, getLongitudeDegreeWidthInPixels, getLongitudeRadianWidthInPixels, getMapCenterInPixelsAtZoom, getMaximumZoomLevel, getMinimumZoomLevel, getName, getServerNum, getTotalMapZoom, isXr2l, isYt2b, setDefaultZoomLevel, setLanguage, setXr2l, setYt2bpublic SLMapServerInfo()
public SLMapServerInfo(String baseURL)
public int getMidpoint()
public int getTileSize(int zoom)
TileFactoryInfogetTileSize 在类中 TileFactoryInfozoom - Zoompublic int getMapWidthInTilesAtZoom(int zoom)
TileFactoryInfogetMapWidthInTilesAtZoom 在类中 TileFactoryInfozoom - The zoompublic 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 在类中 TileFactoryInfox - Xy - Yzoom - the zoom levelCopyright © 2019. All rights reserved.