Class: ChartService

ol.supermap.ChartService

The ChartService class.

new ol.supermap.ChartService(url, options)

ChartService.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.

crossOrigin boolean optional

Whether to allow cross-domain requests.

headers Object optional

Request header.

Example
new ol.supermap.ChartService(url)
 .queryChart(param,function(result){
     //doSomething
 })

Extends

Methods

getChartFeatureInfo(callback)

ChartService.js, line 57

Get information of chart feature.

Name Type Description
callback RequestCallback

The callback of result data returned by the server side.

queryChart(params, callback, resultFormat)

ChartService.js, line 31

Query chart service.

Name Type Description
params SuperMap.ChartQueryParameters

The ChartQueryParameters class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat SuperMap.DataFormat

The format of result data.