Class: FieldService

ol.supermap.FieldService

The FieldService class.

new ol.supermap.FieldService(url, options)

FieldService.js, line 6
Name Type Description
url string

The url of service.

options Object

The optional parameters.

Name Type Default Description
proxy string optional

Service agent address.

serverType SuperMap.ServerType SuperMap.ServerType.ISERVER optional

Type of server iServer|iPortal|online.

withCredentials boolean false optional

Request whether to carry a cookie.

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

Extends

Methods

getFields(params, callback)

FieldService.js, line 27

Get fields.

Name Type Description
params SuperMap.FieldParameters

The FieldParameters class.

callback RequestCallback

The callback of result data returned by the server side.

getFieldStatisticsInfo(params, callback)

FieldService.js, line 50

Get fields.

Name Type Description
params SuperMap.FieldStatisticsParameters

The FieldParameters class.

callback RequestCallback

The callback of result data returned by the server side.