com.nutiteq.maps
Class CloudMade

java.lang.Object
  extended by com.nutiteq.maps.BaseMap
      extended by com.nutiteq.maps.projections.EPSG3785
          extended by 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).


Field Summary
static int TILE_SIZE_256
           
static int TILE_SIZE_64
           
 
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.projections.EPSG3785
mapPosToWgs, wgsToMapPos
 
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
 

Field Detail

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
Constructor Detail

CloudMade

public CloudMade(java.lang.String licenseKey,
                 int tileSize,
                 int mapLayout)
Constructor for CloudMade map.

Parameters:
licenseKey - license key issued by CloudMade
tileSize - 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)
Method Detail

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 map
mapY - tile top-left corner x on pixel map
zoom - zoom level
Returns:
path for the tile image. Could be URL, file path or jar resource path