Class: FieldService

ol.supermap.FieldService

字段服务类。

new ol.supermap.FieldService(url, options)

openlayers/services/FieldService.js, line 8
Name Type Description
url string

与客户端交互的服务地址。

options Object

参数。

Name Type Default Description
proxy string 可选

服务代理地址。

withCredentials boolean false 可选

请求是否携带 cookie。

crossOrigin boolean 可选

是否允许跨域请求。

headers Object 可选

请求头。

Example
new ol.supermap.FieldService(url).getFields(function(result){
          //doSomething
     });

Extends

Methods

getFields(params, callback)

openlayers/services/FieldService.js, line 30

字段查询服务。

Name Type Description
params SuperMap.FieldParameters

字段信息查询参数类。

callback RequestCallback

回调函数。

getFieldStatisticsInfo(params, callback)

openlayers/services/FieldService.js, line 54

字段统计服务。

Name Type Description
params SuperMap.FieldStatisticsParameters

查询所需参数类。

callback RequestCallback

回调函数。