方法
# static getImage(url, options)
根据url和出图参数,返回地图图片出图结构体,支持的服务如下:
1、场景服务2.0-覆盖物图层,具体出图参数参考SceneServer.getCoverings()
2、资源服务2.0-GDBP出图,具体出图参数参考ResourceServer.getImage()
3、地图图片图层1.0和2.0,具体出图参数参考MapServer.getImage()
4、资源服务1.0-GDBP出图,具体出图参数参考MapServer.getImage()
5、ArcGIS的地图图片服务,具体出图参数参考ArcGISMapServer.getImage()
6、WMS的地图图片服务,具体出图参数参考WMSServer.getImage()
7、影像服务,具体出图参数参考ImageServer.getImage()
参数:
名称 | 类型 | 默认值 | 描述 |
---|---|---|---|
url |
String | 服务地址 |
|
options |
Object | 出图参数 |
|
headers |
Object | {} | 请求头对象 |
queryParameters |
Object | {} | 额外请求参数,优先级小于其他的出图参数,同名属性,会被下面的出图参数覆盖 |
tokenKey |
String | 'token' | token名 |
tokenValue |
String | null | token值 |
formatMode |
String | 'normal' | 生成参数格式,normal: 按照默认逻辑设置参数,replace: 将部分参数设置为可替换的模版字符串 |
请求结构体
# static getModelCache(url, options)
根据url和出图参数,返回模型缓存出图结构体,支持的服务如下:
1、场景服务1.0和2.0-模型缓存,具体出图参数参考SceneServer.getModelCache()
2、M3D服务-模型缓存,具体出图参数参考M3DServer.getModelCache()
3、C3sium3Dtils-模型缓存,具体出图参数参考Cesium3DTilesServer.getModelCache()
参数:
名称 | 类型 | 默认值 | 描述 |
---|---|---|---|
url |
String | 服务地址 |
|
options |
Object | 出图参数 |
|
headers |
Object | {} | 请求头对象 |
queryParameters |
Object | {} | 额外请求参数,优先级小于其他的出图参数,同名属性,会被下面的出图参数覆盖 |
tokenKey |
String | 'token' | token名 |
tokenValue |
String | null | token值 |
请求结构体
# static getTerrain(url, options)
根据url和出图参数,返回MapGIS地形瓦片出图结构体,具体出图参数参考SceneServer.getTerrainTile()
参数:
名称 | 类型 | 默认值 | 描述 |
---|---|---|---|
url |
String | 服务地址 |
|
options |
Object | 出图参数 |
|
headers |
Object | {} | 请求头对象 |
queryParameters |
Object | {} | 额外请求参数,优先级小于其他的出图参数,同名属性,会被下面的出图参数覆盖 |
tokenKey |
String | 'token' | token名 |
tokenValue |
String | null | token值 |
请求结构体
# static getTerrainCache(url, options)
根据url和出图参数,返回地形缓存出图结构体,具体出图参数参考TerrainServer.getTerrainCache()
参数:
名称 | 类型 | 默认值 | 描述 |
---|---|---|---|
url |
String | 服务地址 |
|
options |
Object | 出图参数 |
|
headers |
Object | {} | 请求头对象 |
queryParameters |
Object | {} | 额外请求参数,优先级小于其他的出图参数,同名属性,会被下面的出图参数覆盖 |
tokenKey |
String | 'token' | token名 |
tokenValue |
String | null | token值 |
请求结构体
# static getTile(url, options)
根据url和出图参数,返回瓦片出图结构体,支持的服务如下:
1、IGS1.0和2.0的瓦片服务,具体出图参数参考TileServer.getTile()
2、ArcGIS瓦片服务,具体出图参数参考ArcGISMapServer.getTile()
3、WMTS服务,具体出图参数参考WMTSServer.getTile()
4、影像服务,具体出图参数参考ImageServer.getTile()
参数:
名称 | 类型 | 默认值 | 描述 |
---|---|---|---|
url |
String | 服务地址 |
|
options |
Object | 出图参数 |
|
headers |
Object | {} | 请求头对象 |
queryParameters |
Object | {} | 额外请求参数,优先级小于其他的出图参数,同名属性,会被下面的出图参数覆盖 |
tokenKey |
String | 'token' | token名 |
tokenValue |
String | null | token值 |
请求结构体