public class GoogleMapsMapProvider extends RemoteTileProviderBase
sample 谷歌地图 地图服务提供者
GoogleMapsMapProvider 提供了聚合第三方的Google地图服务的能力,并封装了与 SuperMap iServer 地图相关的 GIS 功能。
RemoteTileProviderBase.GetDefaultImageWhenException
TiledMapProviderBase.AcceptOnePicDrawer, TiledMapProviderBase.DefaultTileImageDrawer, TiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameter
logger, message, SEND_REQUEST_COUNT
CACHE_DIR, defaultMapParameters, dpi, LINK_MARK, lock, QUESTION_MARK, REGEX, REPLACEMENT, tilePixHeight, tilePixWidth
构造器和说明 |
---|
GoogleMapsMapProvider() |
GoogleMapsMapProvider(GoogleMapsMapProviderSetting setting) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
cacheEnabled() |
java.lang.String |
getGoogleMapApiKey() |
protected byte[] |
getImageBySendURL(java.lang.String tileImageUrl)
根据url获得图片
|
protected byte[] |
getImageBySendURL(java.lang.String tileImageUrl, RemoteTileProviderBase.GetDefaultImageWhenException exceptionOpertor)
根据url获得图片
|
protected byte[] |
getImageBySendURL(java.lang.String tileImageUrl, RemoteTileProviderBase.GetDefaultImageWhenException exceptionOpertor, TiledMapProviderBase.TileImageParameter tileParam) |
protected Point2D |
getOrigin(java.lang.String arg0)
获取地图的左上角地理坐标。
|
OutputFormat[] |
getSupportImageFormat(java.lang.String mapName)
返回指定地图支持的图片格式数组
|
double[] |
getSupportResolutions(java.lang.String arg0)
返回当前服务支持的分辨率 。 |
protected byte[] |
getTileImage(TiledMapProviderBase.TileImageParameter tileParam) |
protected java.lang.String |
getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
获取谷歌地图瓦片URL
|
protected java.util.Map<java.lang.String,MapParameter> |
initDefaultMapParameter()
初始化默认地图状态,返回值为一个映射,键为地图名,值为地图参数对象。
|
protected java.util.List<java.lang.String> |
initSupportedMapNames()
初始化支持的地图列表
|
checkLicense, dispose, generateBigImage, getContent, getContent, getContent, getFinalConnectionURL, init, sendRequestByHttpURLConnection, sendRequestByHttpURLConnection, tileCacheReadOnly, viewEntire
checkSetting, clearAllCache, clearCache, fillWatermark, findNearest, getAccurateResolution, getBottom, getBottom, getBufferedImage, getDefaultMapParameter, getDefaultMapParameters, getLeft, getLeftIndex, getMapImage, getMapParameter, getMapProviderSetting, getNames, getOverview, getProximalResolution, getProximalResolution, getResolutoinByScale, getResource, getResource, getRight, getTileDataConverter, getTileIndex, getTop, getTop, getTopIndex, getTopOrBottomTileIndex, getVectorStyle, getVectorStyle, isResolutionEquals, measureArea, measureDistance, outputImage, outputImage, outputImageToFile, outputImageToFile, point2DConvert, queryByBounds, queryByDistance, queryByGeometry, queryBySQL, rectifyMapParameter, setDefaultMapParameter, setDefaultMapParameters, setMapProviderSetting, setProviderContext, support, updateMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFieldsByLayerName, getTileImage
public GoogleMapsMapProvider()
public GoogleMapsMapProvider(GoogleMapsMapProviderSetting setting)
public java.lang.String getGoogleMapApiKey()
protected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
获取谷歌地图瓦片URL
getTileImageUrl
在类中 RemoteTileProviderBase
tileParam图片参数
-protected boolean cacheEnabled()
cacheEnabled
在类中 TiledMapProviderBase
protected Point2D getOrigin(java.lang.String arg0)
TiledMapProviderBase
获取地图的左上角地理坐标。
getOrigin
在类中 TiledMapProviderBase
arg0
- 地图名public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
返回指定地图支持的图片格式数组
getSupportImageFormat
在类中 TiledMapProviderBase
mapName
-protected byte[] getImageBySendURL(java.lang.String tileImageUrl)
RemoteTileProviderBase
getImageBySendURL
在类中 RemoteTileProviderBase
protected byte[] getTileImage(TiledMapProviderBase.TileImageParameter tileParam)
getTileImage
在类中 RemoteTileProviderBase
protected byte[] getImageBySendURL(java.lang.String tileImageUrl, RemoteTileProviderBase.GetDefaultImageWhenException exceptionOpertor)
RemoteTileProviderBase
getImageBySendURL
在类中 RemoteTileProviderBase
exceptionOpertor
- 当存在异常执行的操作protected byte[] getImageBySendURL(java.lang.String tileImageUrl, RemoteTileProviderBase.GetDefaultImageWhenException exceptionOpertor, TiledMapProviderBase.TileImageParameter tileParam)
public double[] getSupportResolutions(java.lang.String arg0)
TiledMapProviderBase
返回当前服务支持的分辨率 。如果支持所有分辨率,则返回空。
getSupportResolutions
在类中 TiledMapProviderBase
arg0
- 地图名protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
初始化默认地图状态,返回值为一个映射,键为地图名,值为地图参数对象。
initDefaultMapParameter
在类中 TiledMapProviderBase
protected java.util.List<java.lang.String> initSupportedMapNames()
initSupportedMapNames
在类中 TiledMapProviderBase