Class: ChartService

mapboxgl.supermap.ChartService

The ChartService class.

new mapboxgl.supermap.ChartService(url, options)

ChartService.js, line 7
Name Type Description
url string

The url of service.

options Object

The optional parameters.

Name Type Default Description
proxy string optional

Service agent address.

withCredentials boolean false optional

Request whether to carry a cookie.

serverType SuperMap.ServerType SuperMap.ServerType.ISERVER optional

Type of server iServer|iPortal|online。

crossOrigin boolean optional

Whether to allow cross-domain requests.

headers Object optional

Request header.

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

Extends

Events

inherited initialized

ServiceBase.js, line 23

Triggered after the constructor construct succeeds.

Properties:
Name Type Description
this Object

This object.

Methods

getChartFeatureInfo(The)

ChartService.js, line 56

Get information of chart feature.

Name Type Description
The RequestCallback

callback of result data returned by the server side.

queryChart(params, callback, resultFormat)

ChartService.js, line 30

Query chart service.

Name Type Default Description
params SuperMap.ChartQueryParameters

The ChartQueryParameters class.

callback RequestCallback

The callback of result data returned by the server side.

resultFormat SuperMap.DataFormat SuperMap.DataFormat.GEOJSON optional

The format of result data.