public class BingMapTileSource extends QuadTreeTileSource implements IStyledTileSource<String>
retrieveBingKey(android.content.Context)
must be invoked.BitmapTileSourceBase.LowMemoryException
Modifier and Type | Field and Description |
---|---|
static String |
IMAGERYSET_AERIAL
Aerial imagery mode
|
static String |
IMAGERYSET_AERIALWITHLABELS
Aerial imagery with road overlay mode
|
static String |
IMAGERYSET_ROAD
Roads imagery mode
|
mImageFilenameEnding, mName, random
CACHE_MAPTILECOUNT_DEFAULT, DEBUG_TILE_PROVIDERS, DEBUGMODE, DEFAULT_MAXIMUM_CACHED_FILE_AGE, MAXIMUM_ZOOMLEVEL, MINIMUM_ZOOMLEVEL, NUMBER_OF_TILE_DOWNLOAD_THREADS, NUMBER_OF_TILE_FILESYSTEM_THREADS, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ONE_YEAR, OSMDROID_PATH, TILE_DOWNLOAD_MAXIMUM_QUEUE_SIZE, TILE_EXPIRY_TIME_MILLISECONDS, TILE_FILESYSTEM_MAXIMUM_QUEUE_SIZE, TILE_MAX_CACHE_SIZE_BYTES, TILE_PATH_BASE, TILE_PATH_EXTENSION, TILE_TRIM_CACHE_SIZE_BYTES
Constructor and Description |
---|
BingMapTileSource(String aLocale)
Constructor.
Warning, the static method retrieveBingKey(android.content.Context) should have been invoked once before constructor invocation |
Modifier and Type | Method and Description |
---|---|
protected String |
getBaseUrl() |
static String |
getBingKey() |
int |
getMaximumZoomLevel()
get maximum zoom level
|
int |
getMinimumZoomLevel()
get minimum zoom level
|
String |
getStyle() |
int |
getTileSizePixels()
get tile size in pixel
|
String |
getTileURLString(MapTile pTile) |
String |
pathBase()
get the base path used for caching purpose
|
static void |
retrieveBingKey(android.content.Context aContext)
Read the API key from the manifest.
This method should be invoked before class instantiation. |
void |
setStyle(String pStyle) |
protected void |
updateBaseUrl()
Resolves url patterns to update urls with current map view mode and available sub domain.
When several subdomains are available, change current sub domain in a cycle manner |
quadTree
getDrawable, getDrawable, getTileRelativeFilenameString, imageFilenameEnding, localizedName, name, ordinal
public static final String IMAGERYSET_AERIAL
public static final String IMAGERYSET_AERIALWITHLABELS
public static final String IMAGERYSET_ROAD
public BingMapTileSource(String aLocale)
retrieveBingKey(android.content.Context)
should have been invoked once before constructor invocationaLocale
- The language used with BingMap REST service to retrieve tiles.public static void retrieveBingKey(android.content.Context aContext)
public static String getBingKey()
protected String getBaseUrl()
getBaseUrl
in class OnlineTileSourceBase
public String getTileURLString(MapTile pTile)
getTileURLString
in class QuadTreeTileSource
public int getMinimumZoomLevel()
getMinimumZoomLevel
in interface ITileSource
getMinimumZoomLevel
in class BitmapTileSourceBase
public int getMaximumZoomLevel()
getMaximumZoomLevel
in interface ITileSource
getMaximumZoomLevel
in class BitmapTileSourceBase
public int getTileSizePixels()
getTileSizePixels
in interface ITileSource
getTileSizePixels
in class BitmapTileSourceBase
public String pathBase()
pathBase
in class BitmapTileSourceBase
public void setStyle(String pStyle)
setStyle
in interface IStyledTileSource<String>
public String getStyle()
getStyle
in interface IStyledTileSource<String>
protected void updateBaseUrl()
Copyright © 2014. All Rights Reserved.