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.

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

Extends

Methods

getChartFeatureInfo(callback)

ChartService.js, line 55

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 29

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.