new mapboxgl.supermap.ChartService(url, options)
ChartService.js, line 7
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of service. |
||||||||||||||||||||||||
options |
Object |
The optional parameters.
|
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 thisObject This object.
Methods
-
getChartFeatureInfo(The)
ChartService.js, line 56 -
Get information of chart feature.
Name Type Description TheRequestCallback callback of result data returned by the server side.
-
queryChart(params, callback, resultFormat)
ChartService.js, line 30 -
Query chart service.
Name Type Default Description paramsSuperMap.ChartQueryParameters The ChartQueryParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON optional The format of result data.