new ImageCollectionService(url, options)
Usage
import { ImageCollectionService } from '@supermapgis/iclient-mapboxgl';
new ImageCollectionService(url, options);<script type="text/javascript" src="https://iclient.supermap.io/dist/mapboxgl/iclient-mapboxgl.js"></script>
<script>
new mapboxgl.supermap.ImageCollectionService({paramsNames});
</script>
mapboxgl/services/ImageCollectionService.js, line 8
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
影像服务地址。例如: http://{ip}:{port}/iserver/{imageservice-imageserviceName}/restjsr/ |
||||||||||||||||||
options |
Object |
参数。
|
- Version:
- 10.2.0
Example
new ImageCollectionService(url,options)
.getLegend(collectionId, queryParams, function(result){
//doSomething
})
Extends
ImageCollectionService
-> ServiceBase
Events
-
inherited initialized
mapboxgl/services/ServiceBase.js, line 32 -
构造函数构造成功之后触发。
Properties:
Name Type Description thisObject this 对象。
Methods
-
deleteItemByID(featureId, callback){Promise}
mapboxgl/services/ImageCollectionService.js, line 73 -
删除影像集合中指定 ID (
featureId) 的 Item 对象,即从影像集合中删除指定的影像。Name Type Description featureIdstring Feature 的本地标识符。
callbackRequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。 -
getItemByID(featureId, callback){Promise}
mapboxgl/services/ImageCollectionService.js, line 84 -
返回影像集合中的指定 ID(
featureId)的 Item 对象,即返回影像集合中指定的影像。Name Type Description featureIdstring Feature 的本地标识符。
callbackRequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。 -
getLegend(queryParams, callback){Promise}
mapboxgl/services/ImageCollectionService.js, line 41 -
返回当前影像集合的图例信息。
Name Type Description queryParamsObject query 参数。
Name Type Description renderingRuleImageRenderingRule 可选 指定影像显示的风格,包含拉伸显示方式、颜色表、波段组合以及应用栅格函数进行快速处理等。不指定时,使用发布服务时所配置的风格。
callbackRequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。 -
getStatistics(callback){Promise}
mapboxgl/services/ImageCollectionService.js, line 53 -
返回当前影像集合的统计信息。包括文件数量,文件大小等信息。
Name Type Description callbackRequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。 -
getTileInfo(callback){Promise}
mapboxgl/services/ImageCollectionService.js, line 63 -
返回影像集合所提供的服务瓦片的信息,包括:每层瓦片的分辨率,比例尺等信息,方便前端进行图层叠加。
Name Type Description callbackRequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。