com.supermap.services.providers
类 GoogleMapsMapProvider
- java.lang.Object
-
- com.supermap.services.components.spi.TiledMapProviderBase
-
- com.supermap.services.providers.RemoteTileProviderBase
-
- com.supermap.services.providers.GoogleMapsMapProvider
-
- 所有已实现的接口:
- Disposable, MapProvider, ProviderContextAware
public class GoogleMapsMapProvider extends RemoteTileProviderBase
sample 谷歌地图 地图服务提供者
GoogleMapsMapProvider 提供了聚合第三方的Google地图服务的能力,并封装了与 SuperMap iServer 地图相关的 GIS 功能。
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.supermap.services.providers.RemoteTileProviderBase
RemoteTileProviderBase.GetDefaultImageWhenException
-
从类继承的嵌套类/接口 com.supermap.services.components.spi.TiledMapProviderBase
TiledMapProviderBase.AcceptOnePicDrawer, TiledMapProviderBase.DefaultTileImageDrawer, TiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameter
-
-
字段概要
-
从类继承的字段 com.supermap.services.providers.RemoteTileProviderBase
logger, message, SEND_REQUEST_COUNT
-
从类继承的字段 com.supermap.services.components.spi.TiledMapProviderBase
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)
获取谷歌地图瓦片URLprotected java.util.Map<java.lang.String,MapParameter>
initDefaultMapParameter()
初始化默认地图状态,返回值为一个映射,键为地图名,值为地图参数对象。protected java.util.List<java.lang.String>
initSupportedMapNames()
初始化支持的地图列表-
从类继承的方法 com.supermap.services.providers.RemoteTileProviderBase
checkLicense, dispose, generateBigImage, getContent, getContent, getContent, getFinalConnectionURL, init, sendRequestByHttpURLConnection, sendRequestByHttpURLConnection, tileCacheReadOnly, viewEntire
-
从类继承的方法 com.supermap.services.components.spi.TiledMapProviderBase
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
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.supermap.services.components.spi.MapProvider
getFieldsByLayerName, getTileImage
-
-
-
-
构造器详细资料
-
GoogleMapsMapProvider
public GoogleMapsMapProvider()
-
GoogleMapsMapProvider
public GoogleMapsMapProvider(GoogleMapsMapProviderSetting setting)
-
-
方法详细资料
-
getGoogleMapApiKey
public java.lang.String getGoogleMapApiKey()
-
getTileImageUrl
protected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
获取谷歌地图瓦片URL
- 指定者:
getTileImageUrl
在类中RemoteTileProviderBase
- 参数:
tileParam图片参数
-
-
cacheEnabled
protected boolean cacheEnabled()
- 指定者:
cacheEnabled
在类中TiledMapProviderBase
-
getOrigin
protected Point2D getOrigin(java.lang.String arg0)
从类复制的说明:TiledMapProviderBase
获取地图的左上角地理坐标。
- 指定者:
getOrigin
在类中TiledMapProviderBase
- 参数:
arg0
- 地图名- 返回:
- 地图的左上角地理坐标。
-
getSupportImageFormat
public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
返回指定地图支持的图片格式数组
- 指定者:
getSupportImageFormat
在类中TiledMapProviderBase
- 参数:
mapName
-- 返回:
- 从以下版本开始:
- 7.1.0
-
getImageBySendURL
protected byte[] getImageBySendURL(java.lang.String tileImageUrl)
从类复制的说明:RemoteTileProviderBase
根据url获得图片- 覆盖:
getImageBySendURL
在类中RemoteTileProviderBase
- 返回:
- url对应图片
-
getTileImage
protected byte[] getTileImage(TiledMapProviderBase.TileImageParameter tileParam)
- 覆盖:
getTileImage
在类中RemoteTileProviderBase
-
getImageBySendURL
protected byte[] getImageBySendURL(java.lang.String tileImageUrl, RemoteTileProviderBase.GetDefaultImageWhenException exceptionOpertor)
从类复制的说明:RemoteTileProviderBase
根据url获得图片- 覆盖:
getImageBySendURL
在类中RemoteTileProviderBase
exceptionOpertor
- 当存在异常执行的操作- 返回:
- url对应图片
-
getImageBySendURL
protected byte[] getImageBySendURL(java.lang.String tileImageUrl, RemoteTileProviderBase.GetDefaultImageWhenException exceptionOpertor, TiledMapProviderBase.TileImageParameter tileParam)
-
getSupportResolutions
public double[] getSupportResolutions(java.lang.String arg0)
从类复制的说明:TiledMapProviderBase
返回当前服务支持的分辨率 。如果支持所有分辨率,则返回空。
- 指定者:
getSupportResolutions
在类中TiledMapProviderBase
- 参数:
arg0
- 地图名- 返回:
- 分辨率数组
-
initDefaultMapParameter
protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
初始化默认地图状态,返回值为一个映射,键为地图名,值为地图参数对象。
- 指定者:
initDefaultMapParameter
在类中TiledMapProviderBase
- 返回:
- 地图状态映射,键为地图名,值为地图参数对象。
-
initSupportedMapNames
protected java.util.List<java.lang.String> initSupportedMapNames()
初始化支持的地图列表- 指定者:
initSupportedMapNames
在类中TiledMapProviderBase
- 返回:
- 地图名列表
-
-