public class BingMapsMapProvider extends RemoteTileProviderBase
BingMaps the map service provider.
BingMapsMapProvider provides the ability to get map services from Bing Maps online services and encapsulates GIS functionality related to SuperMap iServer .
RemoteTileProviderBase.GetDefaultImageWhenException
TiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameter
SEND_REQUEST_COUNT
CACHE_DIR, LINK_MARK, lock, logger, message, QUESTION_MARK, REGEX, REPLACEMENT, tilePixHeight, tilePixWidth
Constructor and Description |
---|
BingMapsMapProvider()
Default constructor
|
BingMapsMapProvider(BingMapsMapProviderSetting setting)
Constructors with parameters
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
cacheEnabled() |
protected java.lang.String |
getBingMapsTileTemplate()
Gets the url template for the bing maps tile
|
protected int |
getLevel(double resolution)
According to the resolution to obtain the corresponding level
|
protected java.lang.String |
getMapName()
Gets the map name.
|
protected Point2D |
getOrigin(java.lang.String mapName)
Get the geographical coordinate of left upper corner of the map.
|
protected java.lang.String |
getRemoteTileImageUrl(int colIndex, int rowIndex, double currentResolution)
Gets the address of the remote server.
|
protected java.lang.String |
getSubDomain()
Randomly return a field.
|
protected java.util.List<java.lang.String> |
getSubDomains()
Gets a list of map server domain names.
|
OutputFormat[] |
getSupportImageFormat(java.lang.String mapName)
Gets an array of supported image formats.
|
double[] |
getSupportResolutions(java.lang.String mapName)
Returns the resolution of the current service support. |
double[] |
getSupportScales(java.lang.String mapName)
Get a collection of supported scales
|
protected java.lang.String |
getTileImageUrl(java.lang.String mapName, int colIndex, int rowIndex, double currentResolution)
Calculates the tile's url.
|
protected java.lang.String |
getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam) |
protected java.util.Map<java.lang.String,MapParameter> |
initDefaultMapParameter()
Initialize the default map state.
|
protected boolean |
initLODInfos()
Initializes tile information.
|
protected java.util.List<java.lang.String> |
initSupportedMapNames()
Initializes the supported map list.
|
protected boolean |
isResolutionEquals(double resolution1, double resolution2)
Determines if two resolutions are within the tolerance (1.0E-6)
|
protected boolean |
loadMetaData()
Load the REST service metadata information.
|
protected void |
setSubdomains(java.util.List<java.lang.String> subdomains)
Sets a list of map server domain names.
|
dispose, generateBigImage, getContent, getContent, getContent, getImageBySendURL, getImageBySendURL, getTileImage, init, sendRequestByHttpURLConnection, sendRequestByHttpURLConnection, viewEntire
checkSetting, clearCache, fillWatermark, findNearest, getDefaultMapParameter, getDefaultMapParameters, getMapImage, getMapParameter, getMapProviderSetting, getNames, getOverview, getProximalResolution, getProximalResolution, getResolutoinByScale, getResource, getResource, getTileDataConverter, getVectorStyle, measureArea, measureDistance, outputImage, outputImage, outputImageToFile, outputImageToFile, queryByBounds, queryByDistance, queryByGeometry, queryBySQL, rectifyMapParameter, setDefaultMapParameter, setDefaultMapParameters, setMapProviderSetting, setProviderContext, support, updateMap
public BingMapsMapProvider(BingMapsMapProviderSetting setting)
Constructors with parameters
setting
- Map service provider configurationpublic BingMapsMapProvider()
Default constructor
public double[] getSupportScales(java.lang.String mapName)
mapName
-public double[] getSupportResolutions(java.lang.String mapName)
TiledMapProviderBase
Returns the resolution of the current service support. If all resolutions are supported, empty is returned.
getSupportResolutions
in class TiledMapProviderBase
mapName
- The map name.public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
Gets an array of supported image formats.
getSupportImageFormat
in class TiledMapProviderBase
mapName
- Map nameprotected java.util.List<java.lang.String> initSupportedMapNames()
TiledMapProviderBase
initSupportedMapNames
in class TiledMapProviderBase
protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
initDefaultMapParameter
in class TiledMapProviderBase
protected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
getTileImageUrl
in class RemoteTileProviderBase
protected Point2D getOrigin(java.lang.String mapName)
TiledMapProviderBase
Get the geographical coordinate of left upper corner of the map.
getOrigin
in class TiledMapProviderBase
mapName
- The map name.protected boolean isResolutionEquals(double resolution1, double resolution2)
TiledMapProviderBase
Determines if two resolutions are within the tolerance (1.0E-6)
isResolutionEquals
in class TiledMapProviderBase
resolution1
- doubleresolution2
- doubleprotected boolean loadMetaData()
Load the REST service metadata information.
protected boolean initLODInfos()
protected java.lang.String getTileImageUrl(java.lang.String mapName, int colIndex, int rowIndex, double currentResolution)
colIndex
-rule
-currentResolution
-protected java.lang.String getRemoteTileImageUrl(int colIndex, int rowIndex, double currentResolution)
colIndex
-rule
-currentResolution
-protected java.lang.String getSubDomain()
protected int getLevel(double resolution)
resolution
-protected java.lang.String getMapName()
protected java.util.List<java.lang.String> getSubDomains()
protected void setSubdomains(java.util.List<java.lang.String> subdomains)
subdomains
-protected java.lang.String getBingMapsTileTemplate()
protected boolean cacheEnabled()
cacheEnabled
in class TiledMapProviderBase