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.GetDefaultImageWhenExceptionTiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameterSEND_REQUEST_COUNTCACHE_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, viewEntirecheckSetting, 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, updateMappublic BaiduMapProvider()
public BaiduMapProvider(BaiduMapProviderSetting setting)
protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
TiledMapProviderBaseInitializing 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 TiledMapProviderBaseprotected java.util.List<java.lang.String> initSupportedMapNames()
TiledMapProviderBaseinitSupportedMapNames in class TiledMapProviderBasepublic QueryResult queryByKeywords(java.lang.String mapName, KeywordsQueryParameterSet queryParameterSet)
KeywordsQueryablequeryByKeywords in interface KeywordsQueryablemapName - Map name.public void dispose()
TiledMapProviderBaseRelease the resource object.
dispose in interface Disposabledispose in class RemoteTileProviderBaseprotected byte[] getTileImage(TiledMapProviderBase.TileImageParameter tileParam)
getTileImage in class RemoteTileProviderBaseprotected TiledMapProviderBase.TileDataConverter getTileDataConverter()
getTileDataConverter in class TiledMapProviderBaseprotected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
getTileImageUrl in class RemoteTileProviderBaseprotected boolean cacheEnabled()
cacheEnabled in class TiledMapProviderBase
protected boolean isResolutionEquals(double resolution1,
                         double resolution2)
TiledMapProviderBaseDetermines if two resolutions are within the tolerance (1.0E-6)
isResolutionEquals in class TiledMapProviderBaseresolution1 - Resolution 1resolution2 - Resolution 2protected Point2D getOrigin(java.lang.String arg0)
TiledMapProviderBaseGet the geographical coordinate of left upper corner of the map.
getOrigin in class TiledMapProviderBasearg0 - The map name.public OutputFormat[] getSupportImageFormat(java.lang.String arg0)
TiledMapProviderBaseReturn the supported image formats.
getSupportImageFormat in class TiledMapProviderBasearg0 - The map name.public double[] getSupportResolutions(java.lang.String arg0)
TiledMapProviderBaseReturns the resolution of the current service support. If all resolutions are supported, empty is returned.
getSupportResolutions in class TiledMapProviderBasearg0 - The map name.
public boolean support(java.lang.String mapName,
              MapCapability capability)
MapProvidersupport in interface MapProvidersupport in class TiledMapProviderBasemapName - The map name.capability - Function type.