public class GoogleMapsMapProvider extends RemoteTileProviderBase
sample Google Map, the map service provider.
GoogleMapsMapProvider provides the ability to to aggregate third-party Google Maps services, encapsulates the GIS function associated with the SuperMap iServer map.
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 |
---|
GoogleMapsMapProvider() |
GoogleMapsMapProvider(GoogleMapsMapProviderSetting setting) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
cacheEnabled() |
protected byte[] |
getImageBySendURL(java.lang.String tileImageUrl)
Gets a picture based on url
|
protected byte[] |
getImageBySendURL(java.lang.String tileImageUrl, RemoteTileProviderBase.GetDefaultImageWhenException exceptionOpertor)
Gets a picture based on url
|
protected byte[] |
getImageBySendURL(java.lang.String tileImageUrl, RemoteTileProviderBase.GetDefaultImageWhenException exceptionOpertor, TiledMapProviderBase.TileImageParameter tileParam) |
protected Point2D |
getOrigin(java.lang.String arg0)
Get the geographical coordinate of left upper corner of the map.
|
OutputFormat[] |
getSupportImageFormat(java.lang.String arg0)
Returns an array of image formats supported by the specified map
|
double[] |
getSupportResolutions(java.lang.String arg0)
Returns the resolution of the current service support. |
protected byte[] |
getTileImage(TiledMapProviderBase.TileImageParameter tileParam) |
protected java.lang.String |
getTileImageUrl(TiledMapProviderBase.TileImageParameter tileImagePrameter)
Get the Google Maps tile URL
|
protected java.util.Map<java.lang.String,MapParameter> |
initDefaultMapParameter()
Initializes the default map state, the return value is a map, the key is the map name, and the value is the map parameter object.
|
protected java.util.List<java.lang.String> |
initSupportedMapNames()
Initialize the list of supported maps
|
dispose, generateBigImage, getContent, getContent, getContent, init, sendRequestByHttpURLConnection, sendRequestByHttpURLConnection, viewEntire
checkSetting, clearCache, fillWatermark, findNearest, getDefaultMapParameter, getDefaultMapParameters, getMapImage, getMapParameter, getMapProviderSetting, getNames, getOverview, getProximalResolution, getProximalResolution, getResolutoinByScale, getResource, getResource, getTileDataConverter, getVectorStyle, isResolutionEquals, measureArea, measureDistance, outputImage, outputImage, outputImageToFile, outputImageToFile, queryByBounds, queryByDistance, queryByGeometry, queryBySQL, rectifyMapParameter, setDefaultMapParameter, setDefaultMapParameters, setMapProviderSetting, setProviderContext, support, updateMap
public GoogleMapsMapProvider()
public GoogleMapsMapProvider(GoogleMapsMapProviderSetting setting)
protected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileImagePrameter)
Get the Google Maps tile URL
getTileImageUrl
in class RemoteTileProviderBase
tileParam
- Picture parametersprotected boolean cacheEnabled()
cacheEnabled
in class TiledMapProviderBase
protected 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)
Returns an array of image formats supported by the specified map
getSupportImageFormat
in class TiledMapProviderBase
mapName
-protected byte[] getImageBySendURL(java.lang.String tileImageUrl)
RemoteTileProviderBase
getImageBySendURL
in class RemoteTileProviderBase
protected byte[] getTileImage(TiledMapProviderBase.TileImageParameter tileParam)
getTileImage
in class RemoteTileProviderBase
protected byte[] getImageBySendURL(java.lang.String tileImageUrl, RemoteTileProviderBase.GetDefaultImageWhenException exceptionOpertor)
RemoteTileProviderBase
getImageBySendURL
in class RemoteTileProviderBase
exceptionOpertor
- When there is an exception to the operationprotected byte[] getImageBySendURL(java.lang.String tileImageUrl, RemoteTileProviderBase.GetDefaultImageWhenException exceptionOpertor, TiledMapProviderBase.TileImageParameter tileParam)
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.protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
Initializes the default map state, the return value is a map, the key is the map name, and the value is the map parameter object.
initDefaultMapParameter
in class TiledMapProviderBase
protected java.util.List<java.lang.String> initSupportedMapNames()
initSupportedMapNames
in class TiledMapProviderBase