Class: ImageService

ol.supermap.ImageService

影像服务类

new ol.supermap.ImageService(url, options)

openlayers/services/ImageService.js, line 7
Name Type Description
url string

服务地址。例如: http://{ip}:{port}/iserver/{imageservice-imageserviceName}/restjsr/

options Object

参数。

Name Type Default Description
proxy string 可选

服务代理地址。

withCredentials boolean false 可选

请求是否携带 cookie。

crossOrigin boolean 可选

是否允许跨域请求。

headers Object 可选

请求头。

Version:
  • 10.2.0
Example
ol.supermap.ImageService(url,options)
     .getCollections(function(result){
         //doSomething
     })

Extends

Methods

getCollectionByID(collectionId, callback)

openlayers/services/ImageService.js, line 52

ID值等于collectionId参数值的影像集合(Collection)。 ID值用于在服务中唯一标识该影像集合。

Name Type Description
collectionId string

影像集合(Collection)的ID,在一个影像服务中唯一标识影像集合。

callback RequestCallback

请求结果的回调函数。

getCollections(callback)

openlayers/services/ImageService.js, line 31

返回当前影像服务中的影像集合列表(Collections)。

Name Type Description
callback RequestCallback

请求结果的回调函数。

openlayers/services/ImageService.js, line 74

查询与过滤条件匹配的影像数据。

Name Type Description
itemSearch SuperMap.ImageSearchParameter 可选

查询参数

callback RequestCallback

请求结果的回调函数。