类 SLMapServerInfo
- java.lang.Object
-
- org.meteoinfo.data.mapdata.webmap.TileFactoryInfo
-
- org.meteoinfo.data.mapdata.webmap.bmng.SLMapServerInfo
-
public class SLMapServerInfo extends TileFactoryInfo
A TileFactoryInfo subclass which knows how to connect to the SwingLabs map server. This server contains 2k resolution Blue Marble data from NASA.
-
-
字段概要
-
从类继承的字段 org.meteoinfo.data.mapdata.webmap.TileFactoryInfo
baseURL, longitudeDegreeWidthInPixels, longitudeRadianWidthInPixels, mapCenterInPixelsAtZoom, mapWidthInTilesAtZoom, maximumZoomLevel, minimumZoomLevel, totalMapZoom
-
-
构造器概要
构造器 构造器 说明 SLMapServerInfo()SLMapServerInfo(String baseURL)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetMapWidthInTilesAtZoom(int zoom)Get map width in tiles at zoomintgetMidpoint()intgetTileSize(int zoom)Get the tile size.StringgetTileUrl(int x, int y, int zoom)Returns the tile url for the specified tile at the specified zoom level.-
从类继承的方法 org.meteoinfo.data.mapdata.webmap.TileFactoryInfo
getDefaultZoomLevel, getLanguage, getLongitudeDegreeWidthInPixels, getLongitudeRadianWidthInPixels, getMapCenterInPixelsAtZoom, getMaximumZoomLevel, getMinimumZoomLevel, getName, getServerNum, getTotalMapZoom, isXr2l, isYt2b, setDefaultZoomLevel, setLanguage, setXr2l, setYt2b
-
-
-
-
构造器详细资料
-
SLMapServerInfo
public SLMapServerInfo()
-
SLMapServerInfo
public SLMapServerInfo(String baseURL)
-
-
方法详细资料
-
getMidpoint
public int getMidpoint()
-
getTileSize
public int getTileSize(int zoom)
从类复制的说明:TileFactoryInfoGet the tile size.- 覆盖:
getTileSize在类中TileFactoryInfo- 参数:
zoom- Zoom- 返回:
- the tile size
-
getMapWidthInTilesAtZoom
public int getMapWidthInTilesAtZoom(int zoom)
从类复制的说明:TileFactoryInfoGet map width in tiles at zoom- 覆盖:
getMapWidthInTilesAtZoom在类中TileFactoryInfo- 参数:
zoom- The zoom- 返回:
- Map width
-
getTileUrl
public String getTileUrl(int x, int y, int zoom)
从类复制的说明:TileFactoryInfoReturns the tile url for the specified tile at the specified zoom level. By default it will generate a tile url using the base url and parameters specified in the constructor. Thus if
then the resulting url would be:baseURl = http://www.myserver.com/maps?version=0.1 xparam = x yparam = y zparam = z tilepoint = [1,2] zoom level = 3
Note that the URL can be ahttp://www.myserver.com/maps?version=0.1&x=1&y=2&z=3file:url.- 覆盖:
getTileUrl在类中TileFactoryInfo- 参数:
x- Xy- Yzoom- the zoom level- 返回:
- a valid url to load the tile
-
-