public class GoogleMapTileFactory extends ServerMapTileFactory
key=google_api_key mapType=roadmap, terrain, satellite or hybrid
StandardMapTileFactory.TilePathBuilder
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
API_KEY_PROPERTY
Set the api key to use for tracking/billing in the properties.
|
static java.lang.String |
MAPTYPE_PROPERTY
Set the map type displayed in the properties.
|
LOCAL_CACHE_ROOT_DIR_PROPERTY, localCacheDir
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 |
---|
GoogleMapTileFactory() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildFilePath(int x,
int y,
int z,
java.lang.String fileExt)
Build an image path to load, based on specified tile coordinates, zoom
level and file extension settings.
|
java.lang.String |
getApiKey() |
java.lang.String |
getMapType() |
java.util.Properties |
getProperties(java.util.Properties props)
Method to fill in a Properties object, reflecting the current
values of the PropertyConsumer.
|
protected java.awt.image.BufferedImage |
preprocessImage(java.awt.Image origImage,
int imageWidth,
int imageHeight)
Method that allows subclasses to modify the image as necessary before it
is passed into an OMGraphic.
|
void |
setApiKey(java.lang.String apiKey) |
void |
setMapType(java.lang.String mapType) |
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Method to set the properties in the PropertyConsumer.
|
buildCacheKey, buildLocalFilePath, getFromCache, getImageBytes, getPropertyInfo, load
configureFromProperties, createOMGraphicFromBufferedImage, get, getEmptyTile, getEmptyTileHandler, getFileExt, getMapTileRequester, getMtcTransform, getPropertyPrefix, getRootDir, getTileImagePreparer, getTileMatchingProjectionType, getTileNotMatchingProjectionType, getTiles, getTiles, getTiles, getTiles, getZoomLevelForProj, getZoomLevelInfo, load, 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 API_KEY_PROPERTY
public static final java.lang.String MAPTYPE_PROPERTY
public java.lang.String buildFilePath(int x, int y, int z, java.lang.String fileExt)
StandardMapTileFactory
buildFilePath
in class StandardMapTileFactory
x
- the x tile coordinatey
- the y tile coordinatez
- the zoom levelfileExt
- the file extension to use for the path.protected java.awt.image.BufferedImage preprocessImage(java.awt.Image origImage, int imageWidth, int imageHeight) throws java.lang.InterruptedException
StandardMapTileFactory
preprocessImage
in class StandardMapTileFactory
origImage
- Any java ImageimageWidth
- pixel widthimageHeight
- pixel heightjava.lang.InterruptedException
public void setProperties(java.lang.String prefix, java.util.Properties props)
PropertyConsumer
setProperties
in interface PropertyConsumer
setProperties
in class ServerMapTileFactory
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.props
- a Properties object that the PropertyConsumer
can use to retrieve expected properties it can use for
configuration.public java.util.Properties getProperties(java.util.Properties props)
PropertyConsumer
getProperties
in interface PropertyConsumer
getProperties
in class ServerMapTileFactory
props
- a Properties object to load the PropertyConsumer
properties into. If getList equals null, then a new
Properties object should be created.public java.lang.String getApiKey()
public void setApiKey(java.lang.String apiKey)
apiKey
- the apiKey to setpublic java.lang.String getMapType()
public void setMapType(java.lang.String mapType)
mapType
- the mapType to setCopyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details