com.nutiteq.maps
Class OpenStreetMap

java.lang.Object
  extended by com.nutiteq.maps.BaseMap
      extended by com.nutiteq.maps.projections.EPSG3785
          extended by com.nutiteq.maps.OpenStreetMap
All Implemented Interfaces:
GeoMap, Projection, UnstreamedMap

public class OpenStreetMap
extends EPSG3785
implements GeoMap, UnstreamedMap

Default implementation using Open Street Map tiles server.


Field Summary
static OpenStreetMap MAPNIK
          Instance if Open Street Map
static int MAX_ZOOM
           
static int MIN_ZOOM
           
static int TILE_SIZE
           
 
Constructor Summary
OpenStreetMap(Copyright copyright, java.lang.String baseUrl, int tileSize, int minZoom, int maxZoom)
           
OpenStreetMap(java.lang.String baseUrl, int tileSize, int minZoom, int maxZoom)
           
 
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, getInitializationTask, 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, getInitializationTask, getMapHeight, getMapWidth, getMaxZoom, getMinZoom, getMissingTileImage, getZoomRange, getTileMapBounds, getTileOverlay, getTileSize, mapPosToWgs, setMissingTileImage, zoom, wgsToMapPos
 

Field Detail

MIN_ZOOM

public static final int MIN_ZOOM
See Also:
Constant Field Values

MAX_ZOOM

public static final int MAX_ZOOM
See Also:
Constant Field Values

TILE_SIZE

public static final int TILE_SIZE
See Also:
Constant Field Values

MAPNIK

public static final OpenStreetMap MAPNIK
Instance if Open Street Map

Constructor Detail

OpenStreetMap

public OpenStreetMap(java.lang.String baseUrl,
                     int tileSize,
                     int minZoom,
                     int maxZoom)

OpenStreetMap

public OpenStreetMap(Copyright copyright,
                     java.lang.String baseUrl,
                     int tileSize,
                     int minZoom,
                     int maxZoom)
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. For on-line URL must start with "http://" or "https://"; for filesystem starts with "file://"; for application package resource starts with "/"