new ImageService(url, options)
Usage
import { ImageService } from '@supermapgis/iclient-ol';
new ImageService(url, options);<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
new ol.supermap.ImageService({paramsNames});
</script>
openlayers/services/ImageService.js, line 7
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
影像服务地址。例如: http://{ip}:{port}/iserver/{imageservice-imageserviceName}/restjsr/ |
|||||||||||||||
options |
Object |
参数。
|
- Version:
- 10.2.0
Example
ImageService(url,options).getCollections(function(result){
//doSomething
})
Extends
ImageService
-> ServiceBase
-> ol.Observable
Methods
-
getCollectionByID(collectionId, callback){Promise}
openlayers/services/ImageService.js, line 49 -
ID 值等于
collectionId参数值的影像集合(Collection)。ID 值用于在服务中唯一标识该影像集合。Name Type Description collectionIdstring 影像集合(Collection)的 ID,在一个影像服务中唯一标识影像集合。
callbackRequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。 -
getCollections(callback){Promise}
openlayers/services/ImageService.js, line 39 -
返回当前影像服务中的影像集合列表(Collections)。
Name Type Description callbackRequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。 -
search(itemSearch, callback){Promise}
openlayers/services/ImageService.js, line 60 -
查询与过滤条件匹配的影像数据。
Name Type Description itemSearchImageSearchParameter 可选 查询参数。
callbackRequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。