public class TileMillMapTileFactory extends StandardMapTileFactory implements MapTileFactory, PropertyConsumer
# Inherited from StandardMapTileFactory rootDir=the jdbc driver/path string to use for the database file, "jdbc:sqlite:path to file" cacheSize=the number of mapTiles the factory should hold on to. The default is 100. #optional: # The class used to test for the existance of jdbc components. Assumes sqlitejdbc, but the code fetching the tiles # is pretty standard SQL - so you should be able to use any jdbc driver library. testClass=org.sqlite.JDBC
StandardMapTileFactory.TilePathBuilder
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_TEST_CLASS |
static java.lang.String |
TEST_CLASS_PROPERTY |
protected java.lang.String |
testClass
Test class to use for existence of JDBC drivers.
|
CACHE_SIZE_PROPERTY, EMPTY_TILE_HANDLER_PROPERTY, emptyTileHandler, FILE_EXT_PROPERTY, fileExt, lastProj, logger, mapTileLogger, mapTileRequester, mtcTransform, MTCTRANSFORM_PROPERTY, prefix, ROOT_DIR_PATH_PROPERTY, ROOT_DIR_PROPERTY, rootDir, rootDirProperty, scales, TILE_IMAGE_PREPARER_PROPERTY, TILE_PROPERTIES, tileImagePreparer, verbose, ZOOM_LEVEL_INFO_PROPERTY, ZOOM_LEVEL_TILE_SIZE_PROPERTY, zoomLevelInfo, zoomLevelTileSize
DEFAULT_MAX_CACHE_SIZE, logicalClock, objs
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
TileMillMapTileFactory() |
TileMillMapTileFactory(java.lang.String rootDir) |
Modifier and Type | Method and Description |
---|---|
java.util.Properties |
getProperties(java.util.Properties getList)
Method to fill in a Properties object, reflecting the current
values of the PropertyConsumer.
|
java.util.Properties |
getPropertyInfo(java.util.Properties list)
Method to fill in a Properties object with values reflecting
the properties able to be set on this PropertyConsumer.
|
CacheObject |
load(java.lang.Object key,
int x,
int y,
int zoomLevel,
Projection proj)
Fetches a new tile from the database.
|
void |
setProperties(java.lang.String prefix,
java.util.Properties setList)
Method to set the properties in the PropertyConsumer.
|
buildCacheKey, buildFilePath, configureFromProperties, createOMGraphicFromBufferedImage, get, getEmptyTile, getEmptyTileHandler, getFileExt, getFromCache, getMapTileRequester, getMtcTransform, getPropertyPrefix, getRootDir, getTileImagePreparer, getTileMatchingProjectionType, getTileNotMatchingProjectionType, getTiles, getTiles, getTiles, getTiles, getZoomLevelForProj, getZoomLevelInfo, load, preprocessImage, reset, setEmptyTileHandler, setFileExt, setMapTileRequester, setMtcTransform, setProperties, setPropertyPrefix, setRootDir, setTileImagePreparer, setZoomLevelInfo
clear, get, getCacheSize, listIterator, replaceLeastUsed, resetCache, resetCache, searchCache
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEmptyTileHandler, getTiles, getTiles, getTiles, reset, setMapTileRequester
getPropertyPrefix, setProperties, setPropertyPrefix
public static final java.lang.String DEFAULT_TEST_CLASS
public static final java.lang.String TEST_CLASS_PROPERTY
protected java.lang.String testClass
public TileMillMapTileFactory()
public TileMillMapTileFactory(java.lang.String rootDir)
public CacheObject load(java.lang.Object key, int x, int y, int zoomLevel, Projection proj)
load
in class StandardMapTileFactory
key
- cache keyx
- uv x coordinatey
- uv y coordinatezoomLevel
- zoom level for tile to loadproj
- passed solely to enable checking if the projection of the
tiles matches the rendered projection.public java.util.Properties getProperties(java.util.Properties getList)
PropertyConsumer
getProperties
in interface PropertyConsumer
getProperties
in class StandardMapTileFactory
getList
- a Properties object to load the PropertyConsumer
properties into. If getList equals null, then a new
Properties object should be created.public java.util.Properties getPropertyInfo(java.util.Properties list)
PropertyConsumer
getPropertyInfo
in interface PropertyConsumer
getPropertyInfo
in class StandardMapTileFactory
list
- a Properties object to load the PropertyConsumer
properties into. If getList equals null, then a new
Properties object should be created.public void setProperties(java.lang.String prefix, java.util.Properties setList)
PropertyConsumer
setProperties
in interface PropertyConsumer
setProperties
in class StandardMapTileFactory
prefix
- a String used by the PropertyConsumer to prepend
to each property value it wants to look up -
setList.getProperty(prefix.propertyKey). If the prefix
had already been set, then the prefix passed in should
replace that previous value.setList
- a Properties object that the PropertyConsumer
can use to retrieve expected properties it can use for
configuration.Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details