com.nutiteq.maps
Class CloudMade
java.lang.Object
com.nutiteq.maps.BaseMap
com.nutiteq.maps.projections.EPSG3785
com.nutiteq.maps.CloudMade
- All Implemented Interfaces:
- GeoMap, Projection, UnstreamedMap
public class CloudMade
- extends EPSG3785
- implements GeoMap, UnstreamedMap
Map for using CloudMade maps (with tile size 64 and 256).
|
Constructor Summary |
CloudMade(Copyright copyright,
java.lang.String licenseKey,
int tileSize,
int mapLayout)
|
CloudMade(java.lang.String licenseKey,
int tileSize,
int mapLayout)
Constructor for CloudMade map. |
|
Method Summary |
java.lang.String |
buildPath(int mapX,
int mapY,
int zoom)
Build path for the tile image. |
| Methods inherited from class com.nutiteq.maps.BaseMap |
addTileOverlay, getCopyright, getMapHeight, getMapWidth, getMaxZoom, getMinZoom, getMissingTileImage, getZoomRange, getTileMapBounds, getTileOverlay, getTileSize, setCopyright, setMissingTileImage, zoom |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.nutiteq.maps.GeoMap |
addTileOverlay, getCopyright, getMapHeight, getMapWidth, getMaxZoom, getMinZoom, getMissingTileImage, getZoomRange, getTileMapBounds, getTileOverlay, getTileSize, mapPosToWgs, setMissingTileImage, zoom, wgsToMapPos |
TILE_SIZE_64
public static final int TILE_SIZE_64
- See Also:
- Constant Field Values
TILE_SIZE_256
public static final int TILE_SIZE_256
- See Also:
- Constant Field Values
CloudMade
public CloudMade(java.lang.String licenseKey,
int tileSize,
int mapLayout)
- Constructor for CloudMade map.
- Parameters:
licenseKey - license key issued by CloudMadetileSize - used tile size (64 or 256)mapLayout - used map layout (currently only 1 is supported by CloudMade)
CloudMade
public CloudMade(Copyright copyright,
java.lang.String licenseKey,
int tileSize,
int mapLayout)
buildPath
public java.lang.String buildPath(int mapX,
int mapY,
int zoom)
- Description copied from interface:
UnstreamedMap
- Build path for the tile image. Images reading from network and application
jar is supported.
- Specified by:
buildPath in interface UnstreamedMap
- Parameters:
mapX - tile top-left corner x on pixel mapmapY - tile top-left corner x on pixel mapzoom - zoom level
- Returns:
- path for the tile image. Could be URL, file path or jar resource
path