Class VirtualEarthTileFactoryInfo
- java.lang.Object
-
- nl.bebr.mapviewer.data.TileFactoryInfo
-
- nl.bebr.mapviewer.data.tilefactory.VirtualEarthTileFactoryInfo
-
public class VirtualEarthTileFactoryInfo extends TileFactoryInfo
http://www.viavirtualearth.com/vve/Articles/RollYourOwnTileServer.ashx- Version:
- $Id: MicrosoftVirtualEarthProvider.java 115 2007-11-08 22:04:36Z fabriziogiudici $
- Author:
- Fabrizio Giudici
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVirtualEarthTileFactoryInfo.MVEModeThe map mode
-
Field Summary
Fields Modifier and Type Field Description static VirtualEarthTileFactoryInfo.MVEModeHYBRIDUse hybrid mapstatic VirtualEarthTileFactoryInfo.MVEModeMAPUse road mapstatic VirtualEarthTileFactoryInfo.MVEModeSATELLITEUse satellite map-
Fields inherited from class nl.bebr.mapviewer.data.TileFactoryInfo
baseURL, FILE_NAME_FORMAT, TILE_EXTENSION
-
-
Constructor Summary
Constructors Constructor Description VirtualEarthTileFactoryInfo(VirtualEarthTileFactoryInfo.MVEMode mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TileCacheInfogetCacheInfo(URI uri)TranslatesURItoStringgetModeLabel()StringgetModeName()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, getDefaultZoomLevel, getIconUrl, getLongitudeDegreeWidthInPixels, getLongitudeRadianWidthInPixels, getMapCenterInPixelsAtZoom, getMapWidthInTilesAtZoom, getMaximumZoomLevel, getMinimumZoomLevel, getName, getTileSize, getTotalMapZoom, hashCode, isPersistent, isXr2l, isYt2b, setDefaultZoomLevel, setIconUrl, setPersistent, setXr2l, setYt2b
-
-
-
-
Field Detail
-
MAP
public static final VirtualEarthTileFactoryInfo.MVEMode MAP
Use road map
-
SATELLITE
public static final VirtualEarthTileFactoryInfo.MVEMode SATELLITE
Use satellite map
-
HYBRID
public static final VirtualEarthTileFactoryInfo.MVEMode HYBRID
Use hybrid map
-
-
Constructor Detail
-
VirtualEarthTileFactoryInfo
public VirtualEarthTileFactoryInfo(VirtualEarthTileFactoryInfo.MVEMode mode)
- Parameters:
mode- the mode
-
-
Method Detail
-
getModeName
public String getModeName()
- Returns:
- the name of the selected mode
-
getModeLabel
public String getModeLabel()
- Returns:
- the label of the selected mode
-
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
-
getCacheInfo
public TileCacheInfo getCacheInfo(URI uri)
Description copied from class:TileFactoryInfoTranslatesURIto- Overrides:
getCacheInfoin classTileFactoryInfo- Returns:
-
recalculateZoom
protected int recalculateZoom(int zoom)
- Overrides:
recalculateZoomin classTileFactoryInfo
-
-