public class BaiduMapProvider extends RemoteTileProviderBase implements KeywordsQueryable, Disposable
Service provider for Baidu Map.
The BaiduMapMapProvider provides the capabilites of obtaining a map service from the Baidu Maps online service and encapsulates SuperMap iServer map related GIS functions.
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 |
---|
BaiduMapProvider() |
BaiduMapProvider(BaiduMapProviderSetting setting) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
cacheEnabled() |
void |
dispose()
Release the resource object.
|
protected Point2D |
getOrigin(java.lang.String arg0)
Get the geographical coordinate of left upper corner of the map.
|
OutputFormat[] |
getSupportImageFormat(java.lang.String arg0)
Return the supported image formats.
|
double[] |
getSupportResolutions(java.lang.String arg0)
Returns the resolution of the current service support. |
protected TiledMapProviderBase.TileDataConverter |
getTileDataConverter() |
protected byte[] |
getTileImage(TiledMapProviderBase.TileImageParameter tileParam) |
protected java.lang.String |
getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam) |
protected java.util.Map<java.lang.String,MapParameter> |
initDefaultMapParameter()
Initializing the default map status, a mapping object will be returned, of which the key is map name, valude is map parameter object.
|
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)
|
QueryResult |
queryByKeywords(java.lang.String mapName, KeywordsQueryParameterSet queryParameterSet)
Querys the features on the map based on the keywords.
|
boolean |
support(java.lang.String mapName, MapCapability capability)
Determines whether the map supports the specified function.
|
generateBigImage, getContent, getContent, getContent, getImageBySendURL, getImageBySendURL, init, sendRequestByHttpURLConnection, sendRequestByHttpURLConnection, viewEntire
checkSetting, clearCache, fillWatermark, findNearest, getDefaultMapParameter, getDefaultMapParameters, getMapImage, getMapParameter, getMapProviderSetting, getNames, getOverview, getProximalResolution, getProximalResolution, getResolutoinByScale, getResource, getResource, getVectorStyle, measureArea, measureDistance, outputImage, outputImage, outputImageToFile, outputImageToFile, queryByBounds, queryByDistance, queryByGeometry, queryBySQL, rectifyMapParameter, setDefaultMapParameter, setDefaultMapParameters, setMapProviderSetting, setProviderContext, updateMap
public BaiduMapProvider()
public BaiduMapProvider(BaiduMapProviderSetting setting)
protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
TiledMapProviderBase
Initializing the default map status, a mapping object will be returned, of which the key is map name, valude is map parameter object.
initDefaultMapParameter
in class TiledMapProviderBase
protected java.util.List<java.lang.String> initSupportedMapNames()
TiledMapProviderBase
initSupportedMapNames
in class TiledMapProviderBase
public QueryResult queryByKeywords(java.lang.String mapName, KeywordsQueryParameterSet queryParameterSet)
KeywordsQueryable
queryByKeywords
in interface KeywordsQueryable
mapName
- Map name.public void dispose()
TiledMapProviderBase
Release the resource object.
dispose
in interface Disposable
dispose
in class RemoteTileProviderBase
protected byte[] getTileImage(TiledMapProviderBase.TileImageParameter tileParam)
getTileImage
in class RemoteTileProviderBase
protected TiledMapProviderBase.TileDataConverter getTileDataConverter()
getTileDataConverter
in class TiledMapProviderBase
protected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
getTileImageUrl
in class RemoteTileProviderBase
protected boolean cacheEnabled()
cacheEnabled
in class TiledMapProviderBase
protected boolean isResolutionEquals(double resolution1, double resolution2)
TiledMapProviderBase
Determines if two resolutions are within the tolerance (1.0E-6)
isResolutionEquals
in class TiledMapProviderBase
resolution1
- Resolution 1resolution2
- Resolution 2protected Point2D getOrigin(java.lang.String arg0)
TiledMapProviderBase
Get the geographical coordinate of left upper corner of the map.
getOrigin
in class TiledMapProviderBase
arg0
- The map name.public OutputFormat[] getSupportImageFormat(java.lang.String arg0)
TiledMapProviderBase
Return the supported image formats.
getSupportImageFormat
in class TiledMapProviderBase
arg0
- The map name.public double[] getSupportResolutions(java.lang.String arg0)
TiledMapProviderBase
Returns the resolution of the current service support. If all resolutions are supported, empty is returned.
getSupportResolutions
in class TiledMapProviderBase
arg0
- The map name.public boolean support(java.lang.String mapName, MapCapability capability)
MapProvider
support
in interface MapProvider
support
in class TiledMapProviderBase
mapName
- The map name.capability
- Function type.