|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.nutiteq.maps.BaseMap
com.nutiteq.maps.projections.EPSG3785
com.nutiteq.maps.StoredMap
public class StoredMap
Note: to use stored map You need to also insert
FileSystem into map component using
BasicMapComponent.setFileSystem(FileSystem)
| Constructor Summary | |
|---|---|
StoredMap(java.lang.String name,
java.lang.String path,
boolean readCacheConf)
Constructor for StoredMap. |
|
StoredMap(java.lang.String name,
java.lang.String path,
boolean readCacheConf,
Copyright copyright)
Constructor for StoredMap. |
|
| Method Summary | |
|---|---|
java.lang.String |
buildPath(int mapX,
int mapY,
int zoom)
Build path for the tile image. |
WgsPoint |
getCenterLocation()
|
int |
getCenterZoom()
|
com.nutiteq.config.StoredMapConfig |
getConfig()
|
java.lang.String |
getFileExtension()
Get extension for files used by stored maps. |
int |
getHashSize()
Get the hash size. |
int |
getMaxZoom()
Maximum zoom level for implementing map. |
int |
getMinZoom()
Minimum zoom level for implementing map. |
ZoomRange |
getZoomRange()
Get zoom range for the map |
int |
getTilesPerFile()
Get the number of tiles per file. |
void |
initializeConfigUsingFs(FileSystem fs)
Read cache.conf |
boolean |
isInitializeConf()
|
com.nutiteq.config.StoredMapConfig |
readConfig(FileSystem fs)
|
void |
setFileExtension(java.lang.String fileExt)
Set extension for files used by stored maps. |
void |
setHashSize(int hashSize)
Set hash size. |
void |
setMaxZoom(int maxZoom)
Set maximum zoom level. |
void |
setMinZoom(int minZoom)
Set minimum zoom level. |
void |
setName(java.lang.String name)
Set the name of this map. |
void |
setZoomRange(ZoomRange zoomRange)
Set zoom range. |
void |
setTilesPerFile(int tilesPerFile)
Set tiles per file. |
| Methods inherited from class com.nutiteq.maps.projections.EPSG3785 |
|---|
mapPosToWgs, wgsToMapPos |
| Methods inherited from class com.nutiteq.maps.BaseMap |
|---|
addTileOverlay, getCopyright, getInitializationTask, getMapHeight, getMapWidth, getMissingTileImage, 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, getMissingTileImage, getTileMapBounds, getTileOverlay, getTileSize, mapPosToWgs, setMissingTileImage, zoom, wgsToMapPos |
| Constructor Detail |
|---|
public StoredMap(java.lang.String name,
java.lang.String path,
boolean readCacheConf)
name - map namepath - root path for the stored map datareadCacheConf - whether to read tiles_per_file and hash_size settings from
cache.conf
public StoredMap(java.lang.String name,
java.lang.String path,
boolean readCacheConf,
Copyright copyright)
name - map namepath - root path for the stored map datareadCacheConf - whether to read tiles_per_file and hash_size settings from
cache.confcopyright - Text/image for the copyright overlay| Method Detail |
|---|
public void initializeConfigUsingFs(FileSystem fs)
public com.nutiteq.config.StoredMapConfig readConfig(FileSystem fs)
public WgsPoint getCenterLocation()
public int getCenterZoom()
public void setName(java.lang.String name)
name - new namepublic int getMaxZoom()
GeoMap
getMaxZoom in interface GeoMapgetMaxZoom in class BaseMappublic int getMinZoom()
GeoMap
getMinZoom in interface GeoMapgetMinZoom in class BaseMappublic ZoomRange getZoomRange()
GeoMap
getZoomRange in interface GeoMapgetZoomRange in class BaseMap
public java.lang.String buildPath(int mapX,
int mapY,
int zoom)
UnstreamedMap
buildPath in interface UnstreamedMapmapX - tile top-left corner x on pixel mapmapY - tile top-left corner x on pixel mapzoom - zoom level
public void setTilesPerFile(int tilesPerFile)
tilesPerFile - new value for tiles per filepublic void setMaxZoom(int maxZoom)
maxZoom - new max zoom levelpublic void setMinZoom(int minZoom)
minZoom - new min zoom levelpublic void setZoomRange(ZoomRange zoomRange)
zoomRange - new zoom rangepublic void setHashSize(int hashSize)
hashSize - new hash size value.public int getHashSize()
public int getTilesPerFile()
public void setFileExtension(java.lang.String fileExt)
fileExt - file extensionpublic java.lang.String getFileExtension()
public com.nutiteq.config.StoredMapConfig getConfig()
public boolean isInitializeConf()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||