com.nutiteq.maps
Class MultiStoredMap
java.lang.Object
com.nutiteq.maps.BaseMap
com.nutiteq.maps.projections.EPSG3785
com.nutiteq.maps.StoredMap
com.nutiteq.maps.MultiStoredMap
- All Implemented Interfaces:
- GeoMap, Projection, UnstreamedMap
public class MultiStoredMap
- extends StoredMap
|
Constructor Summary |
MultiStoredMap(java.lang.String name,
java.lang.String basePath)
Enables to use multiple stored map packages. |
MultiStoredMap(java.lang.String name,
java.lang.String basePath,
Copyright copyright)
Enables to use multiple stored map packages. |
| Methods inherited from class com.nutiteq.maps.StoredMap |
getCenterLocation, getCenterZoom, getFileExtension, getHashSize, getMaxZoom, getMinZoom, getZoomRange, getTilesPerFile, readConfig, setFileExtension, setHashSize, setMaxZoom, setMinZoom, setName, setZoomRange, setTilesPerFile |
| 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 |
MultiStoredMap
public MultiStoredMap(java.lang.String name,
java.lang.String basePath)
- Enables to use multiple stored map packages.
All packages must be in the same directory tree, as next level sub-directories, and must use the same map name
example usage: mapComponent.setMap(new MultiStoredMap("OpenStreetMap", "root1/maps"));
- Parameters:
name - Name of map. Must be the same as used in package directory structurebasePath - File System root directory for the map packages, e.g. "root1/maps"
MultiStoredMap
public MultiStoredMap(java.lang.String name,
java.lang.String basePath,
Copyright copyright)
- Enables to use multiple stored map packages.
All packages must be in the same directory tree, as next level sub-directories, and must use the same map name
example usage: mapComponent.setMap(new MultiStoredMap("OpenStreetMap", "root1/maps",new StringCopyright("(c) OSM")));
- Parameters:
name - Name of map. Must be the same as used in package directory structurebasePath - File System root directory for the map packages, e.g. "root1/maps"copyright - CopyRight text/image for the overlay
initializeConfigUsingFs
public void initializeConfigUsingFs(FileSystem fs)
- Description copied from class:
StoredMap
- Read cache.conf
- Overrides:
initializeConfigUsingFs in class StoredMap
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- Overrides:
buildPath in class StoredMap
- 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 "/"
buildPath
public java.lang.String buildPath(java.lang.String path,
int mapX,
int mapY,
int zoom,
int hashSize,
int tilesPerFile,
int tpfx,
int tpfy)
getConfig
public com.nutiteq.config.StoredMapConfig getConfig()
- Overrides:
getConfig in class StoredMap
isInitializeConf
public boolean isInitializeConf()
- Overrides:
isInitializeConf in class StoredMap
getSupportedZoomLevels
public int[] getSupportedZoomLevels()