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.GetDefaultImageWhenExceptionTiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameterSEND_REQUEST_COUNTCACHE_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, viewEntirecheckSetting, 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, updateMappublic GoogleMapsMapProvider()
public GoogleMapsMapProvider(GoogleMapsMapProviderSetting setting)
protected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileImagePrameter)
Get the Google Maps tile URL
getTileImageUrl in class RemoteTileProviderBasetileParam - Picture parametersprotected boolean cacheEnabled()
cacheEnabled in class TiledMapProviderBaseprotected 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)
Returns an array of image formats supported by the specified map
getSupportImageFormat in class TiledMapProviderBasemapName -protected byte[] getImageBySendURL(java.lang.String tileImageUrl)
RemoteTileProviderBasegetImageBySendURL in class RemoteTileProviderBaseprotected byte[] getTileImage(TiledMapProviderBase.TileImageParameter tileParam)
getTileImage in class RemoteTileProviderBase
protected byte[] getImageBySendURL(java.lang.String tileImageUrl,
RemoteTileProviderBase.GetDefaultImageWhenException exceptionOpertor)
RemoteTileProviderBasegetImageBySendURL in class RemoteTileProviderBaseexceptionOpertor - When there is an exception to the operation
protected byte[] getImageBySendURL(java.lang.String tileImageUrl,
RemoteTileProviderBase.GetDefaultImageWhenException exceptionOpertor,
TiledMapProviderBase.TileImageParameter tileParam)
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.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 TiledMapProviderBaseprotected java.util.List<java.lang.String> initSupportedMapNames()
initSupportedMapNames in class TiledMapProviderBase