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