Class OSMTileFactoryInfo
- java.lang.Object
-
- nl.bebr.mapviewer.data.TileFactoryInfo
-
- nl.bebr.mapviewer.data.tilefactory.OSMTileFactoryInfo
-
public class OSMTileFactoryInfo extends TileFactoryInfo
Uses OpenStreetMap- Author:
- Martin Dummer
-
-
Field Summary
-
Fields inherited from class nl.bebr.mapviewer.data.TileFactoryInfo
baseURL, FILE_NAME_FORMAT, TILE_EXTENSION
-
-
Constructor Summary
Constructors Constructor Description OSMTileFactoryInfo()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetTileUrl(int x, int y, int zoom)Returns the tile url for the specified tile at the specified zoom level.protected intrecalculateZoom(int zoom)-
Methods inherited from class nl.bebr.mapviewer.data.TileFactoryInfo
equals, getCacheInfo, getDefaultZoomLevel, getIconUrl, getLongitudeDegreeWidthInPixels, getLongitudeRadianWidthInPixels, getMapCenterInPixelsAtZoom, getMapWidthInTilesAtZoom, getMaximumZoomLevel, getMinimumZoomLevel, getName, getTileSize, getTotalMapZoom, hashCode, isPersistent, isXr2l, isYt2b, setDefaultZoomLevel, setIconUrl, setPersistent, setXr2l, setYt2b
-
-
-
-
Method Detail
-
getTileUrl
public String getTileUrl(int x, int y, int zoom)
Description copied from class: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.- Overrides:
getTileUrlin classTileFactoryInfozoom- the zoom level- Returns:
- a valid url to load the tile
-
recalculateZoom
protected int recalculateZoom(int zoom)
- Overrides:
recalculateZoomin classTileFactoryInfo
-
-