com.nutiteq.maps
Class TMSMap
java.lang.Object
com.nutiteq.maps.BaseMap
com.nutiteq.maps.projections.EPSG3785
com.nutiteq.maps.TMSMap
- All Implemented Interfaces:
- GeoMap, Projection, UnstreamedMap
public class TMSMap
- extends EPSG3785
- implements UnstreamedMap
General Tiled Map Server API connector (url/zoom/x/y.format style)
|
Constructor Summary |
TMSMap(java.lang.String baseUrl,
int tileSize,
int minZoom,
int maxZoom,
java.lang.String format,
Copyright copyright)
Final URL will be generated as
baseUrlzoom/x/yformat |
TMSMap(java.lang.String baseUrl,
int tileSize,
int minZoom,
int maxZoom,
java.lang.String format,
java.lang.String copyright)
Tiled Map Server based general map server API. |
|
Method Summary |
java.lang.String |
buildPath(int mapX,
int mapY,
int zoom)
Build path for the tile image. |
void |
setRequestHeaders(javax.microedition.io.HttpConnection conn)
|
| 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 |
TMSMap
public TMSMap(java.lang.String baseUrl,
int tileSize,
int minZoom,
int maxZoom,
java.lang.String format,
Copyright copyright)
- Final URL will be generated as
baseUrlzoom/x/yformat
- Parameters:
copyright - Copyright graphics drawn to the mapbaseUrl - URL beginning for the map tile request.tileSize - Size of tile image in pixels, usually 256format - Tile image format, usually "png" or "jpg".minZoom - Minimum (world) zoom level for service. Could be 0maxZoom - Maximum zoom level. E.g. for OSM set it to 19
TMSMap
public TMSMap(java.lang.String baseUrl,
int tileSize,
int minZoom,
int maxZoom,
java.lang.String format,
java.lang.String copyright)
- Tiled Map Server based general map server API. Final URL will be
generated as baseUrlzoom/x/yformat
- Parameters:
copyright - Copyright as stringbaseUrl - URL beginning for the map tile request.tileSize - Size of tile image in pixels, usually 256format - Tile image format, usually "png" or "jpg".minZoom - Minimum (world) zoom level for service. Could be 0maxZoom - Maximum zoom level. E.g. for OSM set it to 19
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.
For on-line URL must start with "http://" or "https://";
for filesystem starts with "file://";
for application package resource starts with "/"
setRequestHeaders
public void setRequestHeaders(javax.microedition.io.HttpConnection conn)